@fox-js/foxui-pad 4.0.1-14 → 4.0.1-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +4981 -4937
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(S,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(S=typeof globalThis<"u"?globalThis:S||self,t(S.FoxUI={},S.Vue,S.FoxValidator,S.ElementPlus,S.ElementPlusIconsVue,S.FoxI18n))})(this,function(S,t,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(S,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(S=typeof globalThis<"u"?globalThis:S||self,t(S.FoxUI={},S.Vue,S.FoxValidator,S.ElementPlus,S.ElementPlusIconsVue,S.FoxI18n))})(this,function(S,t,Ue,v,De,Ee){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Sep 25 2023 11:07:24 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Et=window,Kl=typeof window<"u";function Yl(){return typeof Et<"u"?Et.requestAnimationFrame||Et.webkitRequestAnimationFrame||function(e){Et.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wl(e){Kl?cancelAnimationFrame(e):clearTimeout(e)}const no=Yl();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Dt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=ln(Ce(e),Ce(n)),a==1&&(o==1?e=an(e):n=an(n));let l=to(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(an(l)):Ce(l)}function an(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return to(n,r)}function Ce(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function ln(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function to(e,n){[e,n]=ln(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var de=(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))(de||{});function ft(e,n=0,a=de.HALF_EVEN){if(a===de.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=ft(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,no(l[1],r,o,a)?(o?"-":"")+rn(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&no(i,s,o,a)&&(s=rn(s),s.length>n)?(o?"-":"")+rn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function no(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===de.DOWN||!a&&o===de.FLOOR||a&&o===de.CEILING)return!1;if(o===de.UP||a&&o===de.FLOOR||!a&&o===de.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case de.HALF_DOWN:return!1;case de.HALF_UP:return!0;case de.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function rn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function sn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=ht(e),n=ht(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=ht(e.replace(".","")),n=ht(n.replace(".","")),e.length<n.length){let h=e;e=n,n=h}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,u="";for(let h=0;h<s;h++)c[h]=e.length-1;for(let h=0;h<2*e.length;h++){let g=0;for(let C=n.length-1;C>=d&&C>=0;C--)c[C]>-1&&c[C]<e.length&&(g+=parseInt(e[c[C]--])*parseInt(n[C]));g+=i,i=Math.floor(g/10),u=g%10+u,d--}return u=ht(Yl(u,r)),a==1&&(u="-"+u),u}function Yl(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function ht(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 cn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Ce(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let u=e.length-d+l;e=Ce(e.substring(0,u)+"."+e.substring(u))}else l==d&&(e=Ce(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Dt(c,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ce(ft(i,a-2))}function un(e,n){return e=e.toString(),n=n.toString(),n=dn(n),Dt(e,n)}function dn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function oo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ao(e),ao(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=un(e,sn(n,ft(cn(e,n),0,de.FLOOR)));return a+o}function ao(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function lo(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=ln(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ne{value;static RoundingModes=de;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ne.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ne.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ne.getPrettyValue(this.value,n,a)}static round(n,a=0,o=de.HALF_EVEN){if(n=ne.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ft(n,a,o)}round(n=0,a=de.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ne(ft(this.value,n,a))}static floor(n){return n=ne.validate(n),n.indexOf(".")===-1?n:ne.round(n,0,de.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,de.FLOOR)}static ceil(n){return n=ne.validate(n),n.indexOf(".")===-1?n:ne.round(n,0,de.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,de.CEILING)}static add(n,a){return n=ne.validate(n),a=ne.validate(a),Dt(n,a)}add(n){return new ne(Dt(this.value,n.getValue()))}static subtract(n,a){return n=ne.validate(n),a=ne.validate(a),un(n,a)}subtract(n){return new ne(un(this.value,n.getValue()))}static multiply(n,a){return n=ne.validate(n),a=ne.validate(a),sn(n,a)}multiply(n){return new ne(sn(this.value,n.getValue()))}static divide(n,a,o){return n=ne.validate(n),a=ne.validate(a),cn(n,a,o)}divide(n,a){return new ne(cn(this.value,n.getValue(),a))}static modulus(n,a){return n=ne.validate(n),a=ne.validate(a),oo(n,a)}modulus(n){return new ne(oo(this.value,n.getValue()))}static compareTo(n,a){return n=ne.validate(n),a=ne.validate(a),lo(n,a)}compareTo(n){return lo(this.value,n.getValue())}static negate(n){return n=ne.validate(n),dn(n)}negate(){return new ne(dn(this.value))}}function ro(e,n){return ne.multiply(`${e}`,`${n}`)}function fn(e,n,a=8){return ne.divide(`${e}`,`${n}`,a)}function hn(e,n){return e=`${e}`,n=`${n}`,ne.compareTo(e,n)}function io(e){return ne.negate(e)}function Et(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let u;if(o>0){let h="",g=i.split("").reverse();for(let C=0;C<g.length;C++)h+=g[C]+((C+1)%o==0&&C+1!=g.length?l:"");c.length==0?u=`${s}${h.split("").reverse().join("")}`:u=`${s}${h.split("").reverse().join("")}.${c}`}else c.length==0?u=`${s}${i}`:u=`${s}${i}.${c}`;return u}function so(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const co=eo,Wl=Array.isArray,Ul=e=>xt(e)==="[object Map]",Gl=e=>xt(e)==="[object Set]",Fe=e=>e instanceof Date,mn=e=>typeof e=="function",uo=e=>typeof e=="string",Xl=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Zl=e=>Be(e)&&mn(e.then)&&mn(e.catch),fo=Object.prototype.toString,xt=e=>fo.call(e),gn=e=>xt(e)==="[object Object]",ho=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Jl(e){return e.__esModule||ho&&e[Symbol.toStringTag]==="Module"}const Ql=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=Ue(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}function pn(e,n,a=!1){if(!a)Ue(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!gn(s))continue;r=pn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!gn(s))continue;r=pn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const yn=Ql?Promise.resolve():null;function er(e,...n){yn!==null?n&&n.length>0?yn.then(()=>{e(n)}):yn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function se(e){return typeof e=="number"?e:Number(e)}const tr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function tt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):tr[a]||"object"}function mo(e){return e&&typeof e=="object"&&"setInterval"in e}function go(e){return!e||e.offsetParent===null}function po(e){let n=!!e&&"length"in e&&e.length,a=tt(e);return a==="function"||mo(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function yo(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function nr(e,n=[]){let a=n;return e!=null&&(po(Object(e))?yo(a,typeof e=="string"?[e]:e):a.push(e)),a}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=tt(e),o=tt(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],d=n[i];if(!Le(c,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Le(r,s))return!1}return!0}return!1}const Ge=typeof window<"u";function bn(e){return e==null}function bo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function So(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wo(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function Co(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function ko(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function or(e,n=!0,a=!0){n?e=ko(e,".",/\./g):e=e.replace(/\./g,""),a?e=ko(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ar(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Le(e,a))return!0}):n.indexOf(e)}function lr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Le(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mt(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Se(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const rr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e},ge=Symbol.for("BroadcastKey");class Sn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):bo(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Nt(e,n,a,o){const l=new Sn(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ir(e,n,a){const o=a;if(o[ge])return o[ge];const l=t.inject(ge,null),r=new Sn(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ge]=r,t.provide(ge,r),t.onUnmounted(()=>{r.destroy(),o[ge]=void 0}),r}function gt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ge]??t.inject(ge,null):t.inject(ge,null)}const Xe=e=>e.default??e;class sr{error(n,a){const o=a,l=gt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=gt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let vo=new sr;function cr(e){vo=e}function ur(e,n){Xe(We).setValidator(e,n)}function dr(e){Xe(We).deleteValidator(e)}let To=["blur","clear"];function fr(e){To=e}function $o(){return To}let Do=["focus","change"];function hr(e){Do=e}function Eo(){return Do}function mr(e){Xe(We).messages(e)}function pt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Vt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Me=Symbol("ValidateSchemaKey");class xo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Vt(pt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=Vt(o);const l=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=vo;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?Xe(We).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?Xe(We).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Xe(We).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Vt(n):this.rules=Vt([n]);const o=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=Xe(We),c=new i(l),d=this.proxy??s;return c.validate(s,{context:d}).then(h=>{if(h.pass)this.success();else{let g="error";Array.isArray(h.errors)&&h.errors.length>0&&(g=h.errors[0].message??g,h.errors=[h.errors[0]],h.errors[0].ref=d),this.error(g)}return h}).catch(h=>{const g=h.message??`${h}`;return this.error(g),h})}}return Promise.resolve({pass:!0})}}function Bt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new xo(n,a,e)}const No=Symbol.for("EventEmitterKey");class gr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Vo(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function pr(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function yr(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function wn(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ne=Symbol("DomainKey"),nt=Symbol("DataItemsKey");class It{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const br=new It;function ot(){return br}function Pe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const Cn=Symbol("OriginalDateKey");function kn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ne,null);s===null&&(s=ot());const i=e||n.prop||n.name,c=new It(i);c.parent=s;const d=p=>{r[Cn]||g(p),c.set("modelValue",p)},u=()=>c.getForSelf("modelValue")??null,h=()=>r[Cn]??null,g=p=>{const v={};Ue(!0,v,t.toRaw(p)),r[Cn]=v};t.isReactive(n)?t.watchEffect(()=>{c.merge(n,a)}):c.merge(n,a),n.modelValue&&g(n.modelValue),r[Ne]=c,t.provide(Ne,c);let C=null,b=null;if(l!==null){const p=t.inject(ge,null);C=Nt(r,p,i,o),c.broadcast=C,r[ge]=C,t.provide(ge,C),r.broadcast=(m,y,...f)=>Reflect.apply(C.emit,C,[m,y,...f]);const v=t.inject(Me,null);b=Bt(r,v,{componentName:""}),c.validateSchema=b,r[Me]=b,t.provide(Me,b),r[nt]=new Map,r.validate=(m=!0)=>{const y=[];let f=null;const A={deep:!1};if(m===!0)f={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;f={name:L=>L?R.indexOf(L)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(A.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const L=R.include;f={name:F=>F?L.indexOf(F)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const L=R.exclude;f={name:F=>F?L.indexOf(F)===-1:!1}}else f={name:"*"}}if(f){const R=C?.emitToChildren(f,"validate",A);R&&Reflect.apply([].push,y,R)}return y.length==1?y[0]:y.length>1?Promise.all(y).then(R=>{let L=[];return R.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(L=[...L,...F.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,y=!0)=>{if(y){const f=Reflect.ownKeys(m),A=[...f],R={name:L=>{const F=f.includes(L);if(F){const I=A.findIndex(D=>L===D);I!==-1&&A.splice(I,1)}return F}};C?.emitToChildren(R,"setNameValidateRules",m,!1),A.length>0&&A.forEach(L=>{let F=String(L);const D=Ao(c,F,{componentName:"",fieldName:F,pureDataValidate:!0},C,b);r[nt].set(F,D);const E=m[F];E&&D.validateSchema.setRule(E)})}},r.clearValidate=(m=!0)=>{let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const f=m;y={name:A=>A?f.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const f=m;if(Array.isArray(f.include)&&f.include.length>0){const A=f.include;y={name:R=>R?A.indexOf(R)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const A=f.exclude;y={name:R=>R?A.indexOf(R)===-1:!1}}else y={name:"*"}}y&&C?.emitToChildren(y,"clearValidate",!1)},r.resetFields=m=>{const y=u();if(!y)return;const f={};if(Ue(!0,f,h()??{}),Array.isArray(m))m.forEach(A=>{y[A]=f[A]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(R=>{y[R]=f[R]});else if(m&&Array.isArray(m.exclude)){let A=m.exclude??[];Reflect.ownKeys(f).forEach(R=>{A.includes(R)||(y[R]=f[R])})}else Object.assign(y,f);r.clearValidate(m)},r.setModelValue=(m,y)=>{!y||y===i?d(m):C?.emitToChildren({name:y},"setModelValue",m)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ne]=void 0,r[nt]&&(r[nt].clear(),r[nt]=void 0),C!==null&&(C.destroy(),r[ge]=void 0),b!==null&&(b.destroy(),r[Me]=void 0)}),c}function Bo(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ne,null);r===null&&(r=ot());const s=e||n.prop||n.name,i=new It(s);return i.parent=r,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,a)}):i.merge(n,a),l[Ne]=i,t.provide(Ne,i),t.onUnmounted(()=>{i.destroy(),l[Ne]=void 0}),i}function Io(e,n,a){const l=Pe(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{n.setRule(s)}))}function pe(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ge,null),i=Nt(l,s,r,a);l[ge]=i,t.provide(ge,i),l.broadcast=(b,p,...v)=>Reflect.apply(i.emit,i,[b,p,...v]);const c=t.inject(Me,null);e.fieldName=e.fieldName??r;const d=Bt(l,c,e);l[Me]=d,t.provide(Me,d),Io(l,d,r),l.validate=(b=null)=>{const p=[];let v=!1,m=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)m=!0,v=!0;else if(b&&typeof b=="object"){const y=b;y.ignoreHidden===!0&&go(l.$el)?m=!1:(Array.isArray(y.include)&&y.include.indexOf(r)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(r),m=!0),v=y.deep??!1}else typeof b=="boolean"&&(v=b),m=!0;if(m){const y=d?.validate();p.push(y)}if(v){let y=null;const f={deep:!1};if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const A=b;y={name:R=>R?A.indexOf(R)!==-1:!1}}else if(b!=null&&typeof b=="object"){const A=b;if(f.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const R=A.include;y={name:L=>L?R.indexOf(L)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const R=A.exclude;y={name:L=>L?R.indexOf(L)===-1:!1}}else y={name:"*"}}if(y){const A=i.emitToChildren(y,"validate",f);Reflect.apply([].push,p,A)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(y=>{let f=[];return y.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(f=[...f,...A.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>d?.setRule(b),l.setNameValidateRules=(b,p=!1)=>{const v=b[r];if(v&&d?.setRule(v),p){const m={name:y=>Reflect.ownKeys(b).includes(y)};i.emitToChildren(m,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&d?.clear();let p=null;if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const v=b;p={name:m=>m?v.indexOf(m)!==-1:!1}}else if(b!=null&&typeof b=="object"){const v=b;if(Array.isArray(v.include)&&v.include.length>0){const m=v.include;p={name:y=>y?m.indexOf(y)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const m=v.exclude;p={name:y=>y?m.indexOf(y)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const u=new gr(l);l[No]=u;const h=yt((b="validate")=>{b==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:$o()).forEach(b=>{u.on(b,p=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Eo()).forEach(b=>{u.on(b,p=>{h("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ge]=void 0,d.destroy(),l[Me]=void 0,u.destroy(),l[No]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(b,...p)=>{Reflect.apply(u.emit,u,[b,...p])},onEvent:(b,p)=>{Reflect.apply(u.on,u,[p])},offEvent:(b,p)=>{Reflect.apply(u.off,u,[p])}}}function Ao(e,n,a,o,l){const r={},s=n??"";a.fieldName=s,a.validateHandler={getValue(d){const u=e.getForSelf("modelValue");return u?u[s]:null}};const i=Bt({},l,a);r.validate=(d=null)=>{const u=[];let h=!1,g=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)g=!0,h=!0;else if(d&&typeof d=="object"){const C=d;Array.isArray(C.include)&&C.include.indexOf(s)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(s),g=!0,h=C.deep??!1}else typeof d=="boolean"&&(h=d),g=!0;if(g){const C=i?.validate();u.push(C)}if(h){let C=null;const b={deep:!1};if(d===!0)C={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;C={name:v=>v?p.indexOf(v)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Array.isArray(p.include)&&p.include.length>0){const v=p.include;C={name:m=>m?v.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const v=p.exclude;C={name:m=>m?v.indexOf(m)===-1:!1}}else C={name:"*"}}if(C){const p=c.emitToChildren(C,"validate",b);Reflect.apply([].push,u,p)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(C=>{let b=[];return C.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(b=[...b,...p.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>i?.setRule(d),r.setNameValidateRules=d=>{const u=d[s];u&&i?.setRule(u)};const c=Nt(null,o,s,r);return{broadcast:c,validateSchema:i}}const ye=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,n)}px`:"";function ce(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Ge){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const o=Number(e);return isNaN(o)?0:o}const je="PageStateKey";function Ie(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function vn(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight),e.headerPadding=Ie(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight),e.footerPadding=Ie(a.footerPadding??n.footerPadding),e.contentPadding=Ie(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function Oo(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;vn(o,r,n,!0,s,i,c,d);const u=t.reactive(o),h=e.getForParent(je);h&&(o.height=Ot(e,h),o.width=Rt(e,h),t.watch([()=>h.height,()=>h.width,()=>h.contentPadding,()=>h.headerMounted,()=>h.footerMounted],()=>{u.height=Ot(e,h),u.width=Rt(e,h)}));const g=!h;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,b,p=-1,v=-1,m=0,y=0])=>{vn(u,b,n,g,p,v,m,y)}),e.set(je,u),u}function At(e){return e.get(je)}function bt(e,n){if(n=n??e.get(je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function St(e,n){if(n=n??e.get(je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Ot(e,n){if(n=n??e.get(je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=bt(e,n),o=St(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Rt(e,n){return n=n??e.get(je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Sr(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function wr(e){return!!e.getForParent(je)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function xe(e,n,a=1,o){const l=Pe();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Tn(c,o))return c}const s=e.value;return Tn(s,o)?s:null}):t.computed(()=>{const r=e.value;return Tn(r,o)?r:l?.get(n)})}function ke(e){return xe(e,"readonly",0,function(a){return te(a)})}function ve(e){return xe(e,"disabled",0,function(a){return te(a)})}function ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ro=new Map,Ft=new Map;let $n=null;function Cr(e){$n=e}function Fo(e,n,a){if(a){let o=Ft.get(a);o||(o=new Map,Ft.set(a,o)),o.set(e,n)}else Ro.set(e,n)}function Ae(e,n,a){!a&&$n&&(a=$n(e)??void 0);let o=null;if(a){let l=Ft.get(a);l&&(o=l.get(n))}return o||(o=Ro.get(n)),o}function kr(e,n){for(let a in e){const o=e[a];Fo(a,o,n)}}function vr(e){Ft.delete(e)}function Tr(){return{top:0,left:0,bottom:0,right:0}}function $r(e=0,n=0){if(Ge){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(n,o),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Dr{packages;installers;_version;get version(){return this._version}constructor(n,a,o){this.packages=n,this.installers=a,this._version=o}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ot();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Vo(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=Ue({},Tr(),n.safeAreaInset),s=$r(o,l),i=Ue({},s.pageLayout,n.pageLayout);a=a??ot(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){Cr(n)}setAPI(n,a,o){Fo(n,a,o)}getAPI(n,a,o){return Ae(n,a,o)}batchSetAPI(n,a){kr(n,a)}clearScopeAPI(n){vr(n)}getRootDomain(){return ot()}}const Er=[k.ElAffix,k.ElAlert,k.ElAutocomplete,k.ElAutoResizer,k.ElAvatar,k.ElBacktop,k.ElBadge,k.ElBreadcrumb,k.ElBreadcrumbItem,k.ElButton,k.ElButtonGroup,k.ElCalendar,k.ElCard,k.ElCarousel,k.ElCarouselItem,k.ElCascader,k.ElCascaderPanel,k.ElCheckTag,k.ElCheckbox,k.ElCheckboxButton,k.ElCheckboxGroup,k.ElCol,k.ElCollapse,k.ElCollapseItem,k.ElCollapseTransition,k.ElColorPicker,k.ElConfigProvider,k.ElContainer,k.ElAside,k.ElFooter,k.ElHeader,k.ElMain,k.ElDatePicker,k.ElDescriptions,k.ElDescriptionsItem,k.ElDialog,k.ElDivider,k.ElDrawer,k.ElDropdown,k.ElDropdownItem,k.ElDropdownMenu,k.ElEmpty,k.ElForm,k.ElFormItem,k.ElIcon,k.ElImage,k.ElImageViewer,k.ElInput,k.ElInputNumber,k.ElLink,k.ElMenu,k.ElSubMenu,k.ElMenuItem,k.ElMenuItemGroup,k.ElPageHeader,k.ElPagination,k.ElPopconfirm,k.ElPopover,k.ElPopper,k.ElProgress,k.ElRadio,k.ElRadioButton,k.ElRadioGroup,k.ElRate,k.ElResult,k.ElRow,k.ElScrollbar,k.ElSelect,k.ElOption,k.ElOptionGroup,k.ElSelectV2,k.ElSkeleton,k.ElSkeletonItem,k.ElSlider,k.ElSpace,k.ElSteps,k.ElStep,k.ElSwitch,k.ElTable,k.ElTableColumn,k.ElTableV2,k.ElTabs,k.ElTabPane,k.ElTag,k.ElTimePicker,k.ElTimeSelect,k.ElTimeline,k.ElTimelineItem,k.ElTooltip,k.ElTransfer,k.ElTree,k.ElTreeSelect,k.ElTreeV2,k.ElUpload],xr=[k.ElInfiniteScroll,k.ElLoading,k.ElMessage,k.ElMessageBox,k.ElNotification,k.ElPopoverDirective],Nr=e=>{Er.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),xr.forEach(n=>{e.use(n)})};function J(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},we={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Lo={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}},Mo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Po=[];for(const e in Mo)Po.push(e);function fe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Vr=Symbol.for("InnerPageScopeKey"),Br=(e,n)=>({inheritAttrs:!0,props:{...he,...Lo,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(a,o){const l=kn(a.name,a);if(l){const d=Oo(l,a);fe({getPageContentHeight:()=>Ot(l,d),getPageContentWidth:()=>Rt(l,d),getPageHeaderHeight:()=>bt(l,d),getPageFooterHeight:()=>St(l,d)});const u=t.inject(Vr,!1);d&&u&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=d=>{const u=i?.proxy;u&&typeof u.setNameValidateRules=="function"&&u.setNameValidateRules(d,!0)};return t.watch(()=>a.rules,(d,u)=>{if(!d&&!u)return;const h=t.toRaw(u),g=t.toRaw(d),C=g?Reflect.ownKeys(g):[];(h?Reflect.ownKeys(h):[]).forEach(p=>{C.includes(p)||(g[p]=[])}),c(g)},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);c(d)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:s}}}),{componentName:Ir,create:Ar,scope:Kh}=J("page"),Or=Ar(Br(Ir));function Rr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const ue=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},qo=ue(Or,[["render",Rr]]),Fr=["aria-labelledby"],Lr=t.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),Mr=[Lr],Pr=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mr,14,Fr))}}),qr=["aria-labelledby"],zr=t.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),jr=[zr],_r=t.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jr,14,qr))}}),Hr=["aria-labelledby"],Kr=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yr=[Kr],Wr=t.defineComponent({__name:"JoySmile",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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},Yr,14,Hr))}}),Ur=["aria-labelledby"],Gr=t.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),Xr=[Gr],Zr=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Xr,14,Ur))}}),Jr=["aria-labelledby"],Qr=t.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),ei=[Qr],ti=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ei,14,Jr))}});function Dn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function En(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const ni=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=Pe(),i=s?At(s):null;i&&(i.headerMounted=!0);const c=t.computed(()=>{const T=e;return{[T]:!0,[`${T}--border`]:l.border,[`${T}--fixed`]:l.fixed,[`${T}--safe-area-inset-top`]:l.safeAreaInsetTop}}),d=l.height!==null&&l.height!==void 0?ce(l.height):null,u=t.computed(()=>{const T={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const x=Ie(l.padding??i.headerPadding);return Object.assign(T,x),d&&(i.headerHeight=d),T.height=i.headerHeight,T.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,T.safeAreaTop>0&&(T.top=T.safeAreaTop+(x.top??0),T.height=T.height+T.safeAreaTop),T}if(d&&(T.height=d),l.padding){const x=Ie(l.padding);Object.assign(T,x)}return T}),h=t.ref(null),g=()=>{if(i&&h.value&&h.value.offsetParent!==null){if(!o){const T=Dn(h.value);i.headerAllHeight=T.height}return i.headerMounted=!0,!0}return!1};t.onMounted(()=>{i&&wn(g,50,5,50,!0)}),t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const C=t.computed(()=>{const T={};return u.value.height!==null&&u.value.height!==void 0&&(T.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(T.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(T.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(T.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(T.paddingBottom=`${u.value.bottom}px`),T}),b=t.computed(()=>{const T={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(T.top=`${u.value.safeAreaTop}px`),T}),p=t.computed(()=>{const T={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(T.top=`${u.value.safeAreaTop}px`),T}),v=t.computed(()=>!!l.leftShow),m=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),y=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),f=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),A=t.computed(()=>l.leftIcon),R=t.computed(()=>A.value||r.slots.leftIcon),L=t.computed(()=>l.titleIcon),F=t.computed(()=>l.titleIcon||r.slots.titleIcon),I=t.computed(()=>l.rightIcon),D=t.computed(()=>l.rightIcon||r.slots.rightIcon);function E(){r.emit("back")}function j(){r.emit("click-title")}function P(){r.emit("click-right")}function w(){r.emit("click-right-text")}return{headerBarRef:h,classes:c,styles:C,mHeaderShow:m,leftStyles:b,rightStyles:p,mLeftShow:v,mTitleShow:y,mRightShow:f,mLeftIcon:A,hasLeftIcon:R,mTitleIcon:L,hasTitleIcon:F,mRightIcon:I,hasRightIcon:D,handleLeft:E,handleCenter:j,handleRight:P,handleRightText:w}}}),{componentName:oi,create:ai,scope:li}=J("header-bar"),ri=ai(ni(oi,li,_r)),ii={key:1,class:"fox-header-bar__title"},si={key:0,class:"title-text"};function ci(e,n,a,o,l,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[1]||(n[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",ii,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",si,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[3]||(n[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const zo=ue(ri,[["render",ci]]);function ui(e,n,a=!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(o,l){const r=Pe(),s=r?At(r):null,i=t.computed(()=>{const C=e;return{[C]:!0,[`${C}--${o.align}`]:!0,[`${C}--border`]:o.border,[`${C}--fixed`]:o.fixed,[`${C}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,d=t.computed(()=>{const C={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=Ie(o.padding??s.footerPadding);return Object.assign(C,b),c&&(s.footerHeight=c),C.height=s.footerHeight,C.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,C.safeAreaBottom>0&&(C.height=C.height+C.safeAreaBottom,C.bottom=C.safeAreaBottom+(b.bottom??0)),C}if(c&&(C.height=c),o.padding){const b=Ie(o.padding);Object.assign(C,b)}return C}),u=t.ref(null),h=()=>{if(s&&u.value&&u.value.offsetParent!==null){if(!a){const C=Dn(u.value);s.footerAllHeight=C.height}return s.footerMounted=!0,!0}return!1};t.onMounted(()=>{s&&wn(h,50,5,50,!0)}),t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const g=t.computed(()=>{const C={};return d.value.height!==null&&d.value.height!==void 0&&(C.height=ye(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(C.paddingTop=ye(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(C.paddingLeft=ye(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(C.paddingRight=ye(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(C.paddingBottom=ye(d.value.bottom)),C});return{footerBarRef:u,classes:i,styles:g}}}}const{componentName:di,create:fi,scope:Yh}=J("footer-bar"),hi=fi(ui(di));function mi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const jo=ue(hi,[["render",mi]]);function gi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=Pe(),l=t.computed(()=>({[e]:!0})),r=o?At(o):null,s=t.computed(()=>{const d={};if(o&&r){if(a.padding){const C=Ie(a.padding);Object.assign(r.contentPadding,C)}const u=bt(o,r),h=St(o,r);let g="";if(r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,r.contentPadding,d.height=g,r.contentPadding.top||u>0){const C=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${u+C}px`}if(r.contentPadding.bottom||h>0){const C=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${h+C}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const u=Ie(a.padding);u.left&&(d.paddingLeft=`${u.left}px`),u.top&&(d.paddingTop=`${u.top}px`),u.right&&(d.paddingRight=`${u.right}px`),u.bottom&&(d.paddingBottom=`${u.bottom}px`)}return d}),i=t.ref(null),c=()=>{if(r&&i.value){const d=En(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>bt(o),()=>St(o)],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:pi,create:yi,scope:Wh}=J("content"),bi=yi(gi(pi));function Si(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _o=ue(bi,[["render",Si]]),at="GroupStateKey",Ho=Symbol.for("GroupScopeKey");function Lt(){return t.inject(Ho,!1)}function Mt(e=!0){t.provide(Ho,e)}function wi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];bn(l)||(e[o]=l)})}function Ci(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};wi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(at,r),r}function xn(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(at);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const u=ce(r),h=ce(s);i||(i=d.type??"grid");const g=()=>{const C=n===""||n===-1,b=ce(n);let p=se(a);const v=ce(o);if(!C){let f=(b-(p-1)*v)/p;for(;h!==-1&&f>h;)p++,f=(b-(p-1)*v)/p;for(;u!==-1&&p>1&&f<u;)p--,f=(b-(p-1)*v)/p}let m=!1;const y=c.layout;y.value.width=n,y.value.column!==p&&(y.value.column=p,m=!0),y.value.gutter!==v&&(y.value.gutter=v,m=!0),y.value.type!==i&&(y.value.type=i,m=!0),m&&t.triggerRef(y)};if(l)g();else{const C=++c.passport;setTimeout(()=>{C===c.passport&&g()},50)}}function Pt(e,n=!1){let a;return n?a=e.getForParent(at):a=e.get(at),a.layout}function qt(e,n=!1){let a;return n?a=e.getForParent(at):a=e.get(at),a.order}function Ko(e,n=1){if(n==="stretch")return-1;const a=se(n);return a===-1?100:100*a/e}function zt(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=Ko(n.column,a),s>0&&(r.width=`${s}%`);const i=Ko(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function jt(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=se(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=se(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Yo=Symbol("RollingStateKey");function ki(e){t.provide(Yo,e)}function vi(){return t.inject(Yo,null)}function Nn(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Ti(e){let n=Nn(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Nn(a),document.body.removeChild(a)}return n}function $i(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Di={...he,...Lo,...Mo};function Ei(e,n,a){return{props:Di,emits:["update:collapse"],setup(o,l){const r=kn(o.name,o,Po),s=Ci(r,{type:o.type}),i=Lt();Mt(!0);const c=o.rollingDisplay?vi():null,d=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),h=t.computed(()=>i&&r?Pt(r,!0).value:null),g=t.getCurrentInstance(),C=V=>{const _=g?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(V,!0)};t.watch(()=>o.rules,(V,_)=>{if(!V&&!_)return;const Y=t.toRaw(_),Z=t.toRaw(V),W=Z?Reflect.ownKeys(Z):[];(Y?Reflect.ownKeys(Y):[]).forEach(le=>{W.includes(le)||(Z[le]=[])}),C(Z)},{deep:!0});const b=e,p=t.computed(()=>{const V={};V.height=q.value;const _=i?qt(r,!0):null;if(h.value&&_){if(h.value.type==="grid"){const Y=jt(_,h.value,o.span,o.offset);Object.assign(V,Y)}else if(h.value.type==="flow"){const Y=zt(_,h.value,o.span,o.offset,o.width);Object.assign(V,Y)}}else if(o.width){const Y=ye(o.width);V.width=Y}return V}),v=t.computed(()=>{const V=s.layout.value.type;return V==="grid"||V==="flow"?{[`${b}--${V}`]:!0,[`${b}--${V}-justify-${o.justify}`]:!0,[`${b}--${V}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${V}`]:!0,[`${b}--gutter`]:!0}}),m=t.computed(()=>{if(s.layout.value.type==="grid"){let _="";if(o.columnWidth)_=`repeat(auto-fill, ${o.columnWidth})`;else{const Y=$i(D.value,s.layout.value.column,s.layout.value.gutter);_=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":_}}}),y=t.toRef(o,"title"),f=t.toRef(o,"gutter"),A=t.toRef(o,"column"),R=t.computed(()=>i||u.value?!0:te(o.isWrap)),L=[],F=V=>{L.push(V)},I=()=>{let V=L.length;L.splice(0,V)},D=t.ref(-1),E=V=>{const _=En(V).width;_>0&&_!==D.value&&(D.value=_)};xn(r,D.value,A.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([D,A,f],([V,_,Y])=>{s.order.index=0,xn(r,V,_,Y,!1,o.minItemWidth,o.maxItemWidth,o.type)});const j=t.computed(()=>B.value?o.expandText??"":o.collapseText??""),P=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),w=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),T=t.ref(),x=t.ref(),q=t.computed(()=>O.value||ye(o.height)||""),B=t.ref(!1),O=t.ref(""),N=t.ref(!1);let z=-1;const H=(V,_=!0)=>{const Y=T.value;if(Y&&B.value!==V){if(z=z===-1?Ti(Y):z,N.value=!0,_)if(Y.style["will-change"]="height",Y.ontransitionend=function(){Y.ontransitionend=null,this.style["will-change"]="auto",V||(O.value="",N.value=!1)},V){let Z=0;o.collapseHeight?Z=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(Z=x.value.offsetHeight),O.value=`${z}px`,t.nextTick(()=>{O.value=`${Z}px`})}else O.value=`${z}px`;else if(V){let Z=0;o.collapseHeight?Z=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(Z=x.value.offsetHeight),O.value=`${Z}px`}else N.value=!1,O.value=`${z}px`;B.value=V,l.emit("update:collapse",V)}};t.watch(()=>o.collapse,V=>{H(V)});const K=()=>{U()},U=V=>{V=V??!B.value,H(V)};fe({toggleCollapse:U,doLayout:()=>{L[0]&&(E(L[0]),xn(r,D.value,A.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let oe=null,re=!0;const G=V=>{if(o.rules){const _=t.toRaw(o.rules);C(_)}if(Ge&&(V&&H(te(o.collapse),!1),o.autoLayout&&Array.isArray(L)&&L.length>0)){const _=L[0];E(_),window.ResizeObserver&&(oe=new window.ResizeObserver(()=>{E(_)}),oe.observe(_))}},ae=()=>{oe?.disconnect(),oe=null},M=!u.value||c?.acquire();M&&(d.value=u.value?!0:null),t.onMounted(()=>{if(M&&(G(re),re=!1),u.value&&c){let V=null,_=c.initialHeight;c.observe(T.value,Y=>{if(Y!==d.value)if(Y)d.value=!0,B.value||(O.value=""),V=setTimeout(()=>{V=null,d.value!==!1&&(G(re),re=!1)},100);else{if(V!==null&&clearTimeout(V),d.value=!1,!B.value)if(re)O.value=c.initialHeight;else{let Z=Nn(T.value);Z<=0?O.value=_:(O.value=`${Z}px`,_=O.value)}re||ae()}})}}),t.onUnmounted(()=>{oe?.disconnect(),c&&c.unobserve(T.value)});const $=(V,_,Y,Z)=>{const W={...v.value};return _===0&&(W[`${b}__first`]=!0),Y>=Z-1&&(W[`${b}__last`]=!0),t.h("div",{ref:F,key:`${_}`,class:W,style:m.value},V)};return()=>{if(u.value&&d.value!==!0){const W=o.tag||"div";return t.h(W,{ref:T,prop:o.name,class:{[`${b}`]:!0,"is-collapse":N.value},style:p.value},[])}s.order.index=0;const V=[];let _=0;if(l.slots.header){const W={key:`${_++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},Q=t.h("div",W,[l.slots.header()]);V.push(Q)}else{const W=[];if(y.value){if(o.showMark){const le={class:{[`${b}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const Te=t.h("div",le);W.push(Te)}const Q=t.h("div",{class:{[`${b}__header-title`]:!0}},[y.value]);W.push(Q)}if(l.slots.toolbar&&W.push(l.slots.toolbar()),o.showCollapse){const Q=[];if(j.value){const Qe={class:P.value},et=t.h("span",Qe,[j.value]);Q.push(et)}const le={class:w.value},Te=a(o.collapseIcon,le);if(Te&&Q.push(Te),Q.length>0){const Qe=t.h("div",{class:{[`${b}__header-collapse`]:!0},onClick:K},Q);W.push(Qe)}}if(W.length>0){const Q={key:`${_++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},le=t.h("div",Q,W);V.push(le)}}I();const Y=l.slots.default?l.slots.default():[],Z=s.layout.value.type;if(Z==="grid"){const W=$(Y,_++,0,Y.length);V.push(W)}else if(Z==="flow"){const W=$(Y,_++,0,Y.length);V.push(W)}else for(let W=0;W<Y.length;W++){const Q=Y[W],le=$([Q],_++,W,Y.length);V.push(le)}if(R.value){const W=o.tag||"div";return t.h(W,{ref:T,prop:o.name,class:{[`${b}`]:!0,"is-collapse":N.value},style:p.value},[V])}else return V}}}}const{componentName:xi,create:Ni,scope:Vi}=J("group"),Wo=Ni(Ei(xi,Vi,(e,n)=>(e=e??$e.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]}))));function Bi(e){return e===window}const Ii=/matrix\((.+)\)/,Uo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Bi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const u=Ii.exec(d);if(u){let g=u[1].split(/\s*,\s*/);g.length==6&&(i+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};function Ai(e){return e===window}const He=e=>{const n=t.unref(e);if(Ai(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Oi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ri{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new Oi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Go=new Ri,Xo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Fi,create:Li}=J("price"),Mi=Li({props:{...Xo},setup(e){const n=t.computed(()=>({[Fi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Ve(e.price)==0?"":Et(e.price,e.decimalLength,!0,se(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),Pi=["innerHTML"],qi=["innerHTML"];function zi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Pi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qi)):t.createCommentVNode("",!0)],2)}const Vn=ue(Mi,[["render",zi]]),{componentName:_t,create:ji}=J("hint-text"),_i=ji({components:{Price:Vn},props:{...Xo,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.ref(!0),s=t.ref({x:0,y:0}),i=t.ref({x:0,y:0}),c=t.ref(0),d=t.ref(0),u=t.ref(e.placement),h=t.computed(()=>({[_t]:!0})),g=t.ref(null),C=(I,D,E=10)=>{if(!Ge||D===!1||!I)return;r.value=!0;const j=He(e.reference);c.value=j.width,d.value=j.height,setTimeout(()=>{if(!g.value||!e.reference||e.reference.offsetParent===null)return;const P=Uo(e.reference),w=document.documentElement.clientWidth||document.body.clientWidth,T=g.value.offsetWidth,x=g.value.offsetHeight;P.y-x>=0?(u.value="top",s.value.y=P.y-x-10-4,i.value.y=x):(u.value="bottom",s.value.y=P.y+d.value+10,i.value.y=-10);const q=P.x+T-w;q<0?(s.value.x=P.x,i.value.x=20):(s.value.x=P.x-q,i.value.x=q+20),r.value=!1},E)},b=yt(()=>{C(e.message,e.visible)},10),p=t.computed(()=>e.visible&&v.value),v=t.ref(!0),m=yt(I=>{const D=I[0];D&&(v.value=D.isIntersecting)},10),y=new IntersectionObserver(m);t.watch([()=>e.message,()=>e.visible],([I,D])=>{C(I,D)}),t.onMounted(()=>{C(e.message,e.visible),Go.watch(e.reference,b),y.observe(e.reference)}),t.onBeforeMount(()=>{Go.unwatch(e.reference,b),y.unobserve(e.reference),y.disconnect()});const f=t.computed(()=>{const I={"min-width":ye(c.value)};return r.value?I.visibility="hidden":I.transform=`translate(${s.value.x}px, ${s.value.y}px)`,I}),A=t.computed(()=>({[`${_t}__content`]:!0})),R=t.computed(()=>({})),L=t.computed(()=>({[`${_t}__arrow`]:!0,[`${_t}__arrow-${e.placement}`]:!0})),F=t.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:g,classes:h,styles:f,textClasses:A,textStyles:R,arrowClasses:L,arrowStyles:F}}}),Hi={key:1,class:"text"};function Ki(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Hi,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Ht=ue(_i,[["render",Ki]]);class Zo{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Bn={},Yi=new Zo,lt=new Map,In=e=>{if(e){const n=document.getElementById(e);lt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of lt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}lt.clear()}},Wi=e=>{const n=document.getElementById(e.id);if(n){const a=lt.get(e.id);a?e={...Bn,...a,...e}:e={...Bn,...e};const o=t.createVNode(Ht,e);return t.render(o,n),e.id}},Ui=e=>{e.unmount=In;let n;if(e.id){if(n=e.id,lt.has(n))return Wi(e)}else n=`hinttext_${Yi.get()}`;e={...Bn,...e},e.id=n,lt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ht,e);return t.render(o,a),document.body.appendChild(a),n},Gi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Kt={show(e,n,a={},o=!0){return o&&In(),Gi(n),Ui({...a,message:n,reference:e})},hide(e){In(e)},install(e){e.config.globalProperties.$hintText=Kt}},{componentName:Jo,create:Xi}=J("item"),Zi=Xi({inheritAttrs:!0,props:{...he,...we},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;pe({componentName:Jo,validate:!1},a);const o=Pe(),l=Lt();Mt(!1);const r=t.computed(()=>l&&o?Pt(o,!1).value:null),s=Jo,i=t.ref(null),c=t.computed(()=>{const G={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(G[e.errorMarkClass]=!!j.value,G[e.warnMarkClass]=!!D.value,G[e.infoMarkClass]=!!F.value,typeof i.value=="function"){const ae=i.value(a);G[ae]=!0}else if(typeof i.value=="string"){const ae=i.value;G[ae]=!0}return G}),d=t.computed(()=>{const G={},ae=l&&o?qt(o,!1):null;if(r.value&&ae)if(r.value.type==="grid"){const M=jt(ae,r.value,e.span,e.offset);Object.assign(G,M)}else if(r.value.type==="flow"){const M=zt(ae,r.value,e.span,e.offset,e.width);Object.assign(G,M)}else return e.width&&(G.width=ye(e.width)),G;else e.width&&(G.width=ye(e.width));return G}),u=t.ref(null),h=t.computed({get:()=>u.value??te(e.isRequired),set:G=>{u.value=G}}),g=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),C=xe(t.toRef(e,"labelPosition"),"labelPosition",_e.Near),b=t.computed(()=>C&&C.value==="top"?"top":C&&C.value==="right"?"right":"left"),p=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),m=xe(t.toRef(e,"labelWidth"),"labelWidth",_e.Near),y=t.computed(()=>m&&m.value?{width:ye(m.value)}:{}),f=t.computed(()=>({"label--string":!0,"label--required":h.value})),A=t.computed(()=>({content:!0,[e.contentClass]:!0})),R=t.computed(()=>({...e.contentStyle})),L=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(G){h.value=G},setErrorTip(G){L.errorTip=G},setErrorIcon(G){L.errorIcon=G},setWarnTip(G){L.warnTip=G},setWarnIcon(G){L.warnIcon=G},setInfoTip(G){L.infoTip=G},setInfoIcon(G){L.infoIcon=G},setCustomClassName(G){i.value=G}});const F=t.computed(()=>e.infoTip||L.infoTip),I=t.computed(()=>e.infoIcon||L.infoIcon),D=t.computed(()=>e.warnTip||L.warnTip),E=t.computed(()=>e.warnIcon||L.warnIcon),j=t.computed(()=>e.errorTip||L.errorTip),P=t.computed(()=>e.errorIcon||L.errorIcon),w=t.computed(()=>j.value?"error":D.value?"warn":F.value?"info":""),T=t.computed(()=>w.value.length>0),x=t.computed(()=>w.value==="error"?j.value:w.value==="warn"?D.value:w.value==="info"?F.value:""),q=t.computed(()=>w.value==="error"?P.value:w.value==="warn"?E.value:w.value==="info"?I.value:null),B=t.computed(()=>{let G={[`${s}__tip`]:!0,[`${s}__tip--${w.value}`]:!0};return w.value==="error"&&e.errorClass?G[`${e.errorClass}`]=!0:w.value==="warn"&&e.warnClass?G[`${e.warnClass}`]=!0:w.value==="info"&&e.infoClass&&(G[`${e.infoClass}`]=!0),G}),O=t.computed(()=>{let G={};return C&&C.value==="top"||!g.value?G["padding-left"]="0px":m&&m.value&&(G["padding-left"]=ye(m.value)),G}),N=()=>t.h(q.value,{width:12,height:12}),z=t.computed(()=>n.slots.fixedTip),H=t.computed(()=>({[`${s}__fixed-tip`]:!0})),K=t.ref();let U="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([G,ae,M,$])=>{K.value&&(G&&!me(ae)?U?Kt.show(K.value,ae,{...$,id:U,type:M},!0):U=Kt.show(K.value,ae,{...$,type:M},!0):Kt.hide(U))});let ee=null;const oe=()=>{ee||!K.value||(ee=new IntersectionObserver(G=>{let ae=!1;for(let M of G)if(M.intersectionRatio>0){ae=!0,ae&&n.emit("appear",M);break}ae||n.emit("disappear")}),ee.observe(K.value))},re=()=>{!ee||!K.value||(ee.unobserve(K.value),ee=null)};return t.watch(()=>te(e.appearListen),G=>{G?oe():re()}),t.onMounted(()=>{te(e.appearListen)&&oe()}),t.onUnmounted(re),{classes:c,styles:d,mainClasses:p,hasLabel:g,labelClasses:v,labelStyles:y,labelStringClasses:f,contentClasses:A,contentStyles:R,contentRef:K,hasTip:T,mTip:x,mIcon:q,renderIcon:N,tipClasses:B,tipStyles:O,hasFixedTip:z,fixedTipClasses:H}}}),Ji=["prop"],Qi={key:0,class:"fox-item__tip--icon"},es={class:"fox-item__tip--text"};function ts(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",Qi,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",es,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ji)}const be=ue(Zi,[["render",ts]]);function ns(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=Pe(),r=Lt();Mt(!1);const s=t.computed(()=>r&&l?Pt(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const u={},h=r&&l?qt(l,!1):null;if(s.value&&h)if(s.value.type==="grid"){const g=jt(h,s.value,a.span,a.offset);Object.assign(u,g)}else if(s.value.type==="flow"){const g=zt(h,s.value,a.span,a.offset,a.width);Object.assign(u,g)}else return a.width&&(u.width=ye(a.width)),u;else a.width&&(u.width=ye(a.width));return u});return()=>{const u={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:os,create:as,scope:Gh}=J("slot-item"),Qo=as(ns(os));function ls(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Pe(),i=Lt();Mt(!1);const c=t.computed(()=>{const d={};if(i&&s){const u=Pt(s,!1),h=qt(s,!1);if(u.value&&h)if(u.value.type==="grid"){const g=jt(h,u.value,a.span,a.offset);Object.assign(d,g)}else if(u.value.type==="flow"){const g=zt(h,u.value,a.span,a.offset,a.width);Object.assign(d,g)}else a.width&&(d.width=ye(a.width))}else a.width&&(d.width=ye(a.width));return d});return()=>{const d=[];if(o.slots.default){const h=o.slots.default();if(a.divide)for(let g=0;g<h.length;g++){if(g>0){const C=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(C)}d.push(h[g])}else Reflect.apply([].push,d,h)}const u={class:r.value,style:c.value};return t.h("div",u,d)}}}}const{componentName:rs,create:is,scope:Xh}=J("row-item"),ea=is(ls(rs)),ta={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 ss(e,n,a){return{props:{...he,...we,...ta},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__readonly`]:s.value})),b=w=>{h.value=w,i("update:modelValue",w),i("input",w)},p=w=>{i("change",w)};let v=ie(o,"hintText"),m=t.ref(!1);const y=w=>{let x=w.target.value;u.value=!0,me(v.value)||(m.value=!0),i("focus",x,w)},f=w=>{setTimeout(()=>{m.value&&(m.value=!1),u.value=!1},0);let x=w.target.value;o.maxLength&&x.length>Number(o.maxLength)&&(x=x.slice(0,Number(o.maxLength))),i("blur",x,w)},A=()=>{i("clear","")},R=t.ref(!1);let L=null;const F=()=>{o.showTooltip&&R.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{R.value=!0},150))},I=()=>{L&&(clearTimeout(L),R.value=!1,L=null)},D=t.computed(()=>R.value||m.value),E=t.computed(()=>R.value?h.value:v.value),j=t.computed(()=>Ve(o.unit)>0),P=t.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const T={...l.attrs,ref:P,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:A,onChange:p,onInput:b,onFocus:y,onBlur:f,onMouseover:F,onMouseleave:I},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:j.value&&(x.suffix=()=>[o.unit]);const q=[],B=t.h(k.ElInput,T,x);q.push(B);const O={default:()=>q};l.slots.default&&(O.label=l.slots.default),l.slots.default&&(O.fixedTip=l.slots.fixedTip);const z={...Se(o,ta),hintText:E.value,hintVisible:D.value,prop:`${o.prop}_item`};return t.h(a,z,O)}}}}const{componentName:cs,create:us,scope:ds}=J("input-item"),na=us(ss(cs,ds,be)),An={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:{}}},oa=2e3;let aa=oa;const fs=(e,n)=>({components:n,props:{...An},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==oa&&(aa=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++aa,a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=p=>{o("click-pop",p)},h=p=>{p.stopPropagation(),o("click-close-icon",p),o("update:visible",!1)},g=p=>{o("click-overlay",p),a.closeOnClickOverlay&&o("update:visible",!1)},C=p=>{o("opend",p)},b=p=>{o("closed",p)};return t.watch(()=>a.visible,p=>{a.visible?c():d()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:u,onClickCloseIcon:h,onClickOverlay:g,onOpened:C,onClosed:b}}}),la={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},On={...An,...la,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let wt=0;const ra="fox-overflow-hidden",ia=()=>Ge?document.body:{classList:[]},hs=e=>[()=>{if(e())try{!wt&&ia().classList.add(ra),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&ia().classList.remove(ra)}catch{}}],ms={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:gs,create:ps}=J("overlay"),ys=ps({props:{...ms},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=hs(()=>e.lockScroll),l=t.computed(()=>({[gs]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function bs(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Yt=ue(ys,[["render",bs]]),{componentName:Ss,create:ws}=J("popup"),Cs=ws(fs(Ss,{[Yt.name]:Yt,Close:Zr}));function ks(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Ke=ue(Cs,[["render",ks]]),sa=10;function vs(e,n){return e>n&&e>sa?"horizontal":n>e&&n>sa?"vertical":""}function Rn(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),u=t.ref(""),h=()=>u.value==="vertical",g=()=>u.value==="horizontal",C=()=>{s.value=0,i.value=0,c.value=0,d.value=0,u.value="",a.value=0};return{move:v=>{const m=v.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-a.value,u.value||(u.value=vs(c.value,d.value))},start:v=>{C(),e.value=v.touches[0].clientX,n.value=v.touches[0].clientY,a.value=Date.now()},reset:C,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:u,isVertical:h,isHorizontal:g}}let ca=36;function Ts(){return ca}function $s(e){ca=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Fn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Ds(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function Ze(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ua(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Es=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function xs(){const e=t.getCurrentInstance();return new Es(e.proxy)}function da(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=Ze(e,n),s=Ze(e,a);return r===s}function Ns(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let d=a[s].findIndex(u=>{if(r==="text")return Oe(e,u)===i;if(r==="value"){let h=Ze(e,u);return h==null&&(h=Oe(e,u)),h===i}else if(r==="item")return da(e,u,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(h=>{if(r==="text")return Oe(e,h)===c;if(r==="value"){let g=Ze(e,h);return g==null&&(g=Oe(e,h)),g===c}else if(r==="item")return da(e,h,c)});if(d==-1)break;l.push(d);const u=Fn(e,s[d]);if(!Array.isArray(u))break;s=u}}return l}function fa(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],u=Oe(e,d);if(l.texts.push(u),l.items.push(d),r==="text")l.values.push(u);else if(r==="value"){let h=Ze(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],u=Oe(e,d),h=Object.assign({},d);if(h.children=null,l.texts.push(u),l.items.push(h),r==="text")l.values.push(u);else if(r==="value"){let g=Ze(e,d);g==null&&(g=u),l.values.push(g)}else l.values.push(h);if(!Array.isArray(d.children))break;s=d.children}}return l}function ha(e){return{text:e,value:e}}const Vs=15,Bs=300,Is=200,{create:As}=J("picker-column");function Os(e){e.stopPropagation()}function Rs(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Os(e)}const Fs=As({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...la},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=I=>I>=h.currIndex+8||I<=h.currIndex-8,i=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${h.deg})`,top:`${r.value}px`})),c=I=>`transform: rotate3d(1, 0, 0, ${-h.rotation*I}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${h.scrollDistance+r.value}px, 0)`})),u=t.ref(null),h=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),C=I=>Oe(e,I),b=I=>Ze(e,I),p=Rn(),v=()=>{h.transitionEndTrigger&&(h.transitionEndTrigger(),h.transitionEndTrigger=null)},m=(I,D=!1,E=!1)=>{if(h.currIndex=I,D){const j=()=>{h.moving=!1,n("update:modelValue",I),n("change",I)};E?h.transitionEndTrigger=j:j()}},y=(I,D,E)=>{let j=I+h.startDistance;if(D==="end"){const P=-(g.value.length-1)*e.itemHeight;j<P&&(j=P,(!E||E<=0)&&(E=e.swipeDuration)),j>0&&(j=0,(!E||E<=0)&&(E=e.swipeDuration));let w=Math.abs(Math.round(-j/e.itemHeight));const T=-w*e.itemHeight,x=`${(w+1)*h.rotation}deg`,q=E?E>0:!1;m(w,!0,q),f(T,D,E,x)}else{let P=(-j/e.itemHeight+1)*h.rotation;const w=(g.value.length+1)*h.rotation,T=0;if(P=Math.min(Math.max(P,T),w),e.threeDimensional&&(P<T||P>w))return;f(j,null,void 0,`${P}deg`)}},f=(I=0,D,E=Is,j)=>{D==="end"?h.scrollTime=E:h.scrollTime=0,h.deg=j,h.scrollDistance=I},A=(I,D)=>(I=Math.abs(I/D)/.003*(I<0?-1:1),I),R=I=>{if(!e.readonly){if(h.moving){const D=u.value,{transform:E}=window.getComputedStyle(D);h.scrollDistance=+E.slice(7,E.length-1).split(", ")[5]}h.startDistance=h.scrollDistance,p.start(I),h.transitionEndTrigger=null}},L=I=>{e.readonly||(h.moving=!0,p.move(I),p.isVertical()&&(h.moving=!0,Rs(I,!0)),y(p.deltaY.value,"",0))},F=()=>{if(e.readonly)return;const I=p.deltaY.value,D=p.duration.value;if(D<Bs&&Math.abs(I)>Vs){const j=A(I,D);y(j,"end",e.swipeDuration)}else y(I,"end",0)};return t.watch(()=>e.modelValue,I=>{if(h.currIndex!==I){h.currIndex=I;const D=-I*e.itemHeight;y(D)}}),t.onMounted(()=>{const I=-e.modelValue*e.itemHeight;y(I)}),{classes:a,styles:o,contentClasses:l,source:g,itemText:C,itemValue:b,...t.toRefs(h),roller:u,getItemText:Oe,onTouchStart:R,onTouchMove:L,onTouchEnd:F,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:v}}}),Ls={key:1,class:"fox-picker__item-tile"};function Ms(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Ls,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const ma=ue(Fs,[["render",Ms]]),{create:Ps,componentName:qs,scope:zs}=J("picker"),js=Ps({components:{[ma.name]:ma,[Ke.name]:Ke},props:{...On},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=De.useFoxI18n(zs),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Ts());t.watch(()=>e.visible,E=>{E&&s.value<=0&&setTimeout(()=>{if(r.value){const j=He(r.value);s.value=j.height,$s(s.value)}},50)});const i=t.computed(()=>({[qs]:!0})),c=xs(),d=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([E,j])=>{if(E){let P=await c.load("select",E,j);if(P.length>0){let w=P[0];if(Array.isArray(w)){if(typeof w[0]=="string"){let T=P,x=[];T.forEach(q=>{let B=q.map(O=>ha(O));x.push(B)}),u.value=x}else u.value=P;d.value="multipleColumn"}else if(typeof w=="string"){let T=P,x=[],q=T.map(B=>ha(B));x.push(q),u.value=x,d.value="singleColumn"}else{const T=Fn(e,w);Array.isArray(T)?(d.value="cascade",u.value=[P]):(d.value="singleColumn",u.value=[P])}}else u.value=[]}},{immediate:!0});const h=t.ref([]),g=t.ref(e.modelValue),C=t.ref([]),b=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([E,j])=>{let P=Ns(e,E,j,d.value);if(!Le(P,b.value)){b.value=P;let w=fa(e,P,j,d.value);w&&(h.value=w.texts,n("update:text",h.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,E=>{p.value=E});const v=E=>{let j=ua(e,E);return Be(j)?j.defaultIndex??0:0},m=E=>{if(e.readonly===!0)return!0;let j=ua(e,E);return Be(j)?j.readonly??!1:!1},y=(E,j)=>{let P=b.value;P[E]=j;for(let T=0;T<E;T++)P[T]==null&&(P[T]=v(T));if(d.value==="cascade")for(let T=E+1;T<A.value.length;T++){let x=v(T);T<P.length?P[T]=x:P.push(x)}else for(let T=P.length;T<A.value.length;T++){let x=v(T);P.push(x)}b.value=P;let w=fa(e,P,u.value,d.value);w&&(h.value=w.texts,g.value=w.values,C.value=w.items)},f=E=>E<b.value.length?b.value[E]:v(E),A=t.computed(()=>{if(u.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return u.value;let E=[],j=0,P=u.value[0],w=0;for(;;){let T=P.map(B=>{let O=Object.assign({},B);return Ds(e,O,null),O});E.push(T),j>=b.value.length?w=0:w=b.value[j],(w<0||w>=P.length)&&(w=0);let x=P[w];const q=Fn(e,x);if(!Array.isArray(q))break;P=q,j++}return E}),R=t.computed(()=>se(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:A,dataType:d,show:p,itemHeight:s,top:R,isReadonly:m,getIndex:f,change:(E,j)=>{y(E,j)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let E=u.value.length-1;for(;E>=0&&!(b.value[E]===null||b.value[E]===void 0);E--);if(E>=0&&y(E,0),d.value==="singleColumn"){let j=g.value.length>0?g.value[0]:"",P=C.value.length>0?C.value[0]:null;e.readonly||(n("update:modelValue",j),n("update:text",h.value),n("change",j,P)),n("confirm",j)}else e.readonly||(n("update:modelValue",g.value),n("update:text",h.value),n("change",g.value,C.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),_s={class:"fox-picker__bar"},Hs={class:"fox-picker__title"},Ks={class:"fox-picker__bar__action"},Ys={class:"fox-picker__column"};function Ws(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",_s,[t.createElementVNode("view",Hs,t.toDisplayString(e.title),1),t.createElementVNode("view",Ks,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ys,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":u=>e.change(d,u),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Ct=ue(js,[["render",Ws]]),ga={...On,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Us(e,n,a){return{props:{...he,...we,...ga},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=e,g=t.computed(()=>({[h]:!0})),C=xe(t.computed(()=>o.textAlign),"textAlign"),b=t.computed(()=>({textAlign:C.value??"right"})),p=ie(o,"modelValue"),v=t.ref([]),m=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),y=t.ref(!1),f=()=>{y.value=!0},A=x=>{y.value=x},R=x=>{p.value=x,i("update:modelValue",x)},L=x=>{v.value=x,Array.isArray(x)&&x.length===0?i("update:text",x[0]):i("update:text",x)},F=(x,q)=>{Array.isArray(q)&&q.length==1?i("change",x,q[0]):i("change",x,q)};let I=ie(o,"hintText"),D=t.ref(!1);const E=x=>{let B=x.target.value;u.value=!0,me(I.value)||(D.value=!0),i("focus",B,x)},j=x=>{setTimeout(()=>{D.value&&(D.value=!1),u.value=!1},0);let B=x.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),y.value?setTimeout(()=>{i("blur",B,x)},50):i("blur",B,x)},P=()=>{i("clear","")},w=t.computed(()=>Ve(o.unit)>0),T=t.ref();return fe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},select:()=>{T?.value.select()}}),()=>{const x={class:g.value,style:b.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,clearable:te(o.clearable),readonly:!0,value:m.value,onClick:f,onFocus:E,onBlur:j},q={};l.slots.prepend&&(q.prepend=l.slots.prepend),l.slots.append&&(q.append=l.slots.append),l.slots.prefix&&(q.prefix=l.slots.prefix),l.slots.suffix?q.suffix=l.slots.suffix:w.value?q.suffix=()=>[o.unit]:q.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const B=[],O=t.h(k.ElInput,x,q);B.push(O);const N={default:()=>B};l.slots.default&&(N.label=l.slots.default),l.slots.fixedTip&&(N.fixedTip=l.slots.fixedTip);const z=mt(o,On);z.disabled=!1,z.readonly=r.value||s.value,z.visible=y.value,z["onUpdate:visible"]=A,z.modelValue=p.value,z.onUpdateModel=R,z.text=v.value,z["onUpdate:text"]=L,z.onClear=P,z.onChange=F;const H=t.h(Ct,z);N.hide=()=>[H];const U={...Se(o,ga),hintText:I.value,hintVisible:D.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,U,N)}}}}const{componentName:Gs,create:Xs,scope:Zs}=J("select-item"),pa=Xs(Us(Gs,Zs,be));var qe=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 ya={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",u="week",h="month",g="quarter",C="year",b="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,y={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("_")},f=function(w,T,x){var q=String(w);return!q||q.length>=T?w:""+Array(T+1-q.length).join(x)+w},A={s:f,z:function(w){var T=-w.utcOffset(),x=Math.abs(T),q=Math.floor(x/60),B=x%60;return(T<=0?"+":"-")+f(q,2,"0")+":"+f(B,2,"0")},m:function w(T,x){if(T.date()<x.date())return-w(x,T);var q=12*(x.year()-T.year())+(x.month()-T.month()),B=T.clone().add(q,h),O=x-B<0,N=T.clone().add(q+(O?-1:1),h);return+(-(q+(x-B)/(O?B-N:N-B))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:C,w:u,d,D:b,h:c,m:i,s,ms:r,Q:g}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},R="en",L={};L[R]=y;var F=function(w){return w instanceof j},I=function w(T,x,q){var B;if(!T)return R;if(typeof T=="string"){var O=T.toLowerCase();L[O]&&(B=O),x&&(L[O]=x,B=O);var N=T.split("-");if(!B&&N.length>1)return w(N[0])}else{var z=T.name;L[z]=T,B=z}return!q&&B&&(R=B),B||!q&&R},D=function(w,T){if(F(w))return w.clone();var x=typeof T=="object"?T:{};return x.date=w,x.args=arguments,new j(x)},E=A;E.l=I,E.i=F,E.w=function(w,T){return D(w,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var j=function(){function w(x){this.$L=I(x.locale,null,!0),this.parse(x)}var T=w.prototype;return T.parse=function(x){this.$d=function(q){var B=q.date,O=q.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var N=B.match(v);if(N){var z=N[2]-1||0,H=(N[7]||"0").substring(0,3);return O?new Date(Date.UTC(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,H)):new Date(N[1],z,N[3]||1,N[4]||0,N[5]||0,N[6]||0,H)}}return new Date(B)}(x),this.$x=x.x||{},this.init()},T.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},T.$utils=function(){return E},T.isValid=function(){return this.$d.toString()!==p},T.isSame=function(x,q){var B=D(x);return this.startOf(q)<=B&&B<=this.endOf(q)},T.isAfter=function(x,q){return D(x)<this.startOf(q)},T.isBefore=function(x,q){return this.endOf(q)<D(x)},T.$g=function(x,q,B){return E.u(x)?this[q]:this.set(B,x)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(x,q){var B=this,O=!!E.u(q)||q,N=E.p(x),z=function(ae,M){var $=E.w(B.$u?Date.UTC(B.$y,M,ae):new Date(B.$y,M,ae),B);return O?$:$.endOf(d)},H=function(ae,M){return E.w(B.toDate()[ae].apply(B.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(M)),B)},K=this.$W,U=this.$M,ee=this.$D,oe="set"+(this.$u?"UTC":"");switch(N){case C:return O?z(1,0):z(31,11);case h:return O?z(1,U):z(0,U+1);case u:var re=this.$locale().weekStart||0,G=(K<re?K+7:K)-re;return z(O?ee-G:ee+(6-G),U);case d:case b:return H(oe+"Hours",0);case c:return H(oe+"Minutes",1);case i:return H(oe+"Seconds",2);case s:return H(oe+"Milliseconds",3);default:return this.clone()}},T.endOf=function(x){return this.startOf(x,!1)},T.$set=function(x,q){var B,O=E.p(x),N="set"+(this.$u?"UTC":""),z=(B={},B[d]=N+"Date",B[b]=N+"Date",B[h]=N+"Month",B[C]=N+"FullYear",B[c]=N+"Hours",B[i]=N+"Minutes",B[s]=N+"Seconds",B[r]=N+"Milliseconds",B)[O],H=O===d?this.$D+(q-this.$W):q;if(O===h||O===C){var K=this.clone().set(b,1);K.$d[z](H),K.init(),this.$d=K.set(b,Math.min(this.$D,K.daysInMonth())).$d}else z&&this.$d[z](H);return this.init(),this},T.set=function(x,q){return this.clone().$set(x,q)},T.get=function(x){return this[E.p(x)]()},T.add=function(x,q){var B,O=this;x=Number(x);var N=E.p(q),z=function(U){var ee=D(O);return E.w(ee.date(ee.date()+Math.round(U*x)),O)};if(N===h)return this.set(h,this.$M+x);if(N===C)return this.set(C,this.$y+x);if(N===d)return z(1);if(N===u)return z(7);var H=(B={},B[i]=o,B[c]=l,B[s]=a,B)[N]||1,K=this.$d.getTime()+x*H;return E.w(K,this)},T.subtract=function(x,q){return this.add(-1*x,q)},T.format=function(x){var q=this,B=this.$locale();if(!this.isValid())return B.invalidDate||p;var O=x||"YYYY-MM-DDTHH:mm:ssZ",N=E.z(this),z=this.$H,H=this.$m,K=this.$M,U=B.weekdays,ee=B.months,oe=function(M,$,V,_){return M&&(M[$]||M(q,O))||V[$].slice(0,_)},re=function(M){return E.s(z%12||12,M,"0")},G=B.meridiem||function(M,$,V){var _=M<12?"AM":"PM";return V?_.toLowerCase():_},ae={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:E.s(K+1,2,"0"),MMM:oe(B.monthsShort,K,ee,3),MMMM:oe(ee,K),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:oe(B.weekdaysMin,this.$W,U,2),ddd:oe(B.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(z),HH:E.s(z,2,"0"),h:re(1),hh:re(2),a:G(z,H,!0),A:G(z,H,!1),m:String(H),mm:E.s(H,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:N};return O.replace(m,function(M,$){return $||ae[M]||N.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(x,q,B){var O,N=E.p(q),z=D(x),H=(z.utcOffset()-this.utcOffset())*o,K=this-z,U=E.m(this,z);return U=(O={},O[C]=U/12,O[h]=U,O[g]=U/3,O[u]=(K-H)/6048e5,O[d]=(K-H)/864e5,O[c]=K/l,O[i]=K/o,O[s]=K/a,O)[N]||K,B?U:E.a(U)},T.daysInMonth=function(){return this.endOf(h).$D},T.$locale=function(){return L[this.$L]},T.locale=function(x,q){if(!x)return this.$L;var B=this.clone(),O=I(x,q,!0);return O&&(B.$L=O),B},T.clone=function(){return E.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()},w}(),P=j.prototype;return D.prototype=P,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",h],["$y",C],["$D",b]].forEach(function(w){P[w[1]]=function(T){return this.$g(T,w[0],w[1])}}),D.extend=function(w,T){return w.$i||(w(T,j,D),w.$i=!0),D},D.locale=I,D.isDayjs=F,D.unix=function(w){return D(1e3*w)},D.en=L[R],D.Ls=L,D.p={},D})})(ya);var Js=ya.exports;const Re=ze(Js);var ba={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(v){this[p]=+v}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var m=v.match(/([+-]|\d\d)/g),y=60*m[1]+(+m[2]||0);return y===0?0:m[0]==="+"?-y:y}(p)}],h=function(p){var v=i[p];return v&&(v.indexOf?v:v.s.concat(v.f))},g=function(p,v){var m,y=i.meridiem;if(y){for(var f=1;f<=24;f+=1)if(p.indexOf(y(f,0,v))>-1){m=f>12;break}}else m=p===(v?"pm":"PM");return m},C={A:[s,function(p){this.afternoon=g(p,!1)}],a:[s,function(p){this.afternoon=g(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(p){var v=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],v)for(var y=1;y<=31;y+=1)v(y).replace(/\[|\]/g,"")===p&&(this.day=y)}],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(p){var v=h("months"),m=(h("monthsShort")||v.map(function(y){return y.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var v=h("months").indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(p){this.year=c(p)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function b(p){var v,m;v=p,m=i&&i.formats;for(var y=(p=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,E,j){var P=j&&j.toUpperCase();return E||m[j]||a[j]||m[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,T,x){return T||x.slice(1)})})).match(o),f=y.length,A=0;A<f;A+=1){var R=y[A],L=C[R],F=L&&L[0],I=L&&L[1];y[A]=I?{regex:F,parser:I}:R.replace(/^\[|\]$/g,"")}return function(D){for(var E={},j=0,P=0;j<f;j+=1){var w=y[j];if(typeof w=="string")P+=w.length;else{var T=w.regex,x=w.parser,q=D.slice(P),B=T.exec(q)[0];x.call(E,B),D=D.replace(B,"")}}return function(O){var N=O.afternoon;if(N!==void 0){var z=O.hours;N?z<12&&(O.hours+=12):z===12&&(O.hours=0),delete O.afternoon}}(E),E}}return function(p,v,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var y=v.prototype,f=y.parse;y.parse=function(A){var R=A.date,L=A.utc,F=A.args;this.$u=L;var I=F[1];if(typeof I=="string"){var D=F[2]===!0,E=F[3]===!0,j=D||E,P=F[2];E&&(P=F[2]),i=this.$locale(),!D&&P&&(i=m.Ls[P]),this.$d=function(q,B,O){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*q);var N=b(B)(q),z=N.year,H=N.month,K=N.day,U=N.hours,ee=N.minutes,oe=N.seconds,re=N.milliseconds,G=N.zone,ae=new Date,M=K||(z||H?1:ae.getDate()),$=z||ae.getFullYear(),V=0;z&&!H||(V=H>0?H-1:ae.getMonth());var _=U||0,Y=ee||0,Z=oe||0,W=re||0;return G?new Date(Date.UTC($,V,M,_,Y,Z,W+60*G.offset*1e3)):O?new Date(Date.UTC($,V,M,_,Y,Z,W)):new Date($,V,M,_,Y,Z,W)}catch{return new Date("")}}(R,I,L),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),j&&R!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var w=I.length,T=1;T<=w;T+=1){F[1]=I[T-1];var x=m.apply(this,F);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}T===w&&(this.$d=new Date(""))}else f.call(this,A)}}})})(ba);var Qs=ba.exports;const ec=ze(Qs);var Sa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),h=(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(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}});return s.bind(this)(h)}}})})(Sa);var tc=Sa.exports;const nc=ze(tc);var wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){var r=o.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},i=function(h,g,C,b,p){var v=h.name?h:h.$locale(),m=s(v[g]),y=s(v[C]),f=m||y.map(function(R){return R.slice(0,b)});if(!p)return f;var A=v.weekStart;return f.map(function(R,L){return f[(L+(A||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(h,g){return h.formats[g]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,p,v){return p||v.slice(1)})}(h.formats[g.toUpperCase()])},u=function(){var h=this;return{months:function(g){return g?g.format("MMMM"):i(h,"months")},monthsShort:function(g){return g?g.format("MMM"):i(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(h,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(h,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(h.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},l.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(g){return d(h,g)},meridiem:h.meridiem,ordinal:h.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(h){return i(c(),"weekdays",null,null,h)},l.weekdaysShort=function(h){return i(c(),"weekdaysShort","weekdays",3,h)},l.weekdaysMin=function(h){return i(c(),"weekdaysMin","weekdays",2,h)}}})})(wa);var oc=wa.exports;const ac=ze(oc);var Ca={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(o).add(1,o).date(d),h=s(this).endOf(a);if(u.isBefore(h))return 1}var g=s(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),C=this.diff(g,a,!0);return C<0?s(this).startOf("week").week():Math.ceil(C)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ca);var lc=Ca.exports;const rc=ze(lc);var ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(ka);var ic=ka.exports;const sc=ze(ic);var va={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(va);var cc=va.exports;const uc=ze(cc);var Ta={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Ta);var dc=Ta.exports;const fc=ze(dc);var $a={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})($a);var hc=$a.exports;const mc=ze(hc);Re.extend(ac),Re.extend(nc),Re.extend(ec),Re.extend(rc),Re.extend(sc),Re.extend(uc),Re.extend(fc),Re.extend(mc);const X={format(e,n){return Re(e).format(n)},parser(e,n){return Re(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,d=r+(6-s)*864e5,u=this.date2Str(new Date(c)),h=this.date2Str(new Date(d));return[u,h]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,u=this.date2Str(new Date(c)),h=this.date2Str(new Date(d));return[u,h]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=X.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=X.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},Da=new Date().getFullYear(),Ln={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Wt=(e,n,a)=>{let o;if(Fe(n)?o=n:typeof n=="string"&&Ve(n)>0?o=X.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Mn=(e,n,a)=>{Fe(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),X.format(new Date(o),a)};let Pn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Da-10,0,1),validator:Fe},maxDate:{type:Date,default:()=>new Date(Da+10,11,31),validator:Fe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:gc,scope:pc}=J("date-picker"),yc=gc({components:{[Ct.name]:Ct},props:{...Pn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=De.useFoxI18n(pc),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,m=>{l.value=m});function r(m,y){return new Date(m,y,0).getDate()}const s=(m,y)=>{const f=e[`${m}Date`],A=f.getFullYear();let R=1,L=1,F=0,I=0;m==="max"&&(R=12,L=r(y.getFullYear(),y.getMonth()+1),F=23,I=59);const D=I;return y.getFullYear()===A&&(R=f.getMonth()+1,y.getMonth()+1===R&&(L=f.getDate(),y.getDate()===L&&(F=f.getHours(),y.getHours()===F&&(I=f.getMinutes())))),{[`${m}Year`]:A,[`${m}Month`]:R,[`${m}Date`]:L,[`${m}Hour`]:F,[`${m}Minute`]:I,[`${m}Seconds`]:D}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:m,maxDate:y,maxMonth:f,maxHour:A,maxMinute:R,maxSeconds:L}=s("max",g.value),{minYear:F,minDate:I,minMonth:D,minHour:E,minMinute:j,minSeconds:P}=s("min",g.value);let w=[{type:"year",range:[F,m]},{type:"month",range:[D,f]},{type:"day",range:[I,y]},{type:"hour",range:[E,A]},{type:"minute",range:[j,R]},{type:"seconds",range:[P,L]}];switch(e.type){case"date":w=w.slice(0,3);break;case"datetime":w=w.slice(0,5);break;case"time":w=w.slice(3,6);break;case"year-month":w=w.slice(0,2);break;case"month-day":w=w.slice(1,3);break;case"datehour":w=w.slice(0,4);break;case"hour-minute":w=w.slice(3,5);break}return w}),c=(m,y,f)=>{if(!(y>m))return null;const A=[];for(;m<=y;)e.isShowChinese?A.push({text:m+o[f],value:m}):A.push({text:`${m}`,value:m}),f==="minute"?m+=e.minuteStep:m++;return A},d=t.computed(()=>{let m=[];return i.value.forEach(y=>{let f=c(y.range[0],y.range[1],y.type);f&&m.push(f)}),m}),u=(m,y)=>m==="year"?y.getFullYear():m==="month"?y.getMonth()+1:m==="day"?y.getDate():m==="hour"?y.getHours():m==="minute"?y.getMinutes():m==="seconds"?y.getSeconds():0,h=t.ref(),g=t.ref(null);t.watchEffect(()=>{let m,y=e.modelValue;if(typeof y=="string"?y.length==0?m=new Date:e.valueFormat?m=Wt(e,e.modelValue,e.valueFormat):m=Wt(e,y,Ln[e.type]):Fe(y)?m=y:m=new Date,!!m&&(!g.value||m.getTime()!==g.value.getTime())){g.value=m;let f=[];i.value.forEach(A=>{let R=u(A.type,m);f.push(R)}),h.value=f}});const C=m=>{if(e.type==="date"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])))}else if(e.type==="datetime"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3],y[4])}else if(e.type==="time"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),f.getMonth(),f.getDate(),y[0],y[1],y[2]);g.value=A}else if(e.type==="year-month"){let y=m,f=new Date(y[0],y[1]-1);g.value=f}else if(e.type==="month-day"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),y[0]-1,y[1]);g.value=A}else if(e.type==="datehour"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3])}else if(e.type==="hour-minute"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),f.getMonth(),f.getDate(),y[0],y[1]);g.value=A}h.value=m};return{columns:d,dateIndexs:h,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{C(m),l.value=!1;let y=g.value??new Date;if(e.valueFormat){let f=Mn(e,y,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",y);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function bc(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const qn=ue(yc,[["render",bc]]);function Sc(e){let n=e.format;if(!n){let a=e.type??"date";n=Ln[a]}return n}const Ea={...Pn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function wc(e,n,a){return{props:{...he,...we,...Ea,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),g=ie(o,"modelValue",O=>O==null?null:typeof O=="string"?O.length==0?null:o.valueFormat?Wt(o,O,o.valueFormat)??O:Wt(o,O,Ln[o.type])??O:Fe(O)?O:null),C=t.computed(()=>{if(!g.value)return"";const O=Sc(o);return Mn(o,g.value,O)}),b=e,p=t.computed(()=>({[`${b}__input`]:!0})),v=xe(t.computed(()=>o.textAlign),"textAlign"),m=t.computed(()=>({textAlign:v.value??"right"}));let y=ie(o,"hintText"),f=t.ref(!1);const A=t.ref(!1),R=()=>{A.value=!0},L=()=>{A.value=!1},F=O=>{A.value=O},I=O=>{if(g.value=O,o.valueFormat){let N=Mn(o,O,o.valueFormat);i("update:modelValue",N,{}),i("change",N,{})}else i("update:modelValue",O,{}),i("change",O,{})},D=O=>{let z=O.target.value;u.value=!0,i("focus",z,O)},E=O=>{setTimeout(()=>{u.value=!1},0);let z=O.target.value;o.maxLength&&z.length>Number(o.maxLength)&&(z=z.slice(0,Number(o.maxLength))),i("blur",z,O)},j=O=>{g.value="",i("update:modelValue","",O),i("change","",O),i("clear",""),L()},P=t.computed(()=>Ve(o.unit)>0),w=xe(t.computed(()=>o.longTermValue),"longTermValue",_e.Near),T=t.ref(te(o.longTerm)),x=O=>{T.value=O,i("update:longTerm",O),O&&i("update:modelValue",w.value)},q=te(o.isLongTerm);if(q){const O=()=>{T.value===!0?i("update:modelValue",w.value):Le(w.value,g.value)&&(T.value=!0)};O(),t.watch([()=>o.longTerm],([N])=>{T.value!==N&&O()})}const B=t.ref();return fe({showPicker:R,hidePicker:L,focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const O={class:p.value,style:m.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:C.value,onClick:R,onFocus:D,onBlur:E},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix?N.prefix=l.slots.prefix:N.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h($e.Calendar)}),l.slots.suffix?N.suffix=l.slots.suffix:P.value&&(N.suffix=()=>[o.unit]);const z=[],H=t.h(k.ElInput,O,N);z.push(H);const K={default:()=>z};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const U=mt(o,Pn);U.valueFormat=null,U.disabled=!1,U.readonly=r.value||s.value||T.value,U.visible=A.value,U["onUpdate:visible"]=F,U.modelValue=g.value,U["onUpdate:modelValue"]=I,U.onClear=j;const ee={};if(l.slots.top){const M=l.slots.top();ee.top=()=>M}if(l.slots.bottom){const M=l.slots.bottom();ee.default=()=>M}const oe=t.h(qn,U,ee);if(K.hide=()=>[oe],q){const M={label:o.longTermText,modelValue:T.value,"onUpdate:modelValue":x},$=t.h(k.ElCheckbox,M),V=t.h("div",{class:{[`${b}__append`]:!0}},[$]);K.append=()=>V}const G={...Se(o,Ea),class:{[`${b}__wrapper`]:!0,"has-append":q},hintText:y.value,hintVisible:f.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,G,K)}}}}const{componentName:Cc,create:kc,scope:vc}=J("date-item"),xa=kc(wc(Cc,vc,be)),Tc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),zn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},Na=39,Va=64,{create:$c,scope:Dc}=J("calendar-pane"),Ec=$c({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:X.getDay(0)},endDate:{type:String,default:X.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=De.useFoxI18n(Dc),r=o(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${Na}px`})),i=t.computed(()=>({height:`${Va}px`})),c=JSON.parse(l("weekdays")),d=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),h=t.ref(null),g=t.ref(null),C=t.ref(null),b=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>a.btn),m=t.computed(()=>a["top-info"]),y=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),A=M=>M.split("-"),R=M=>X.isEqual(f.currDate[0],M),L=M=>X.isEqual(f.currDate[1],M),F=M=>f.currDate?.length>0?f.currDate?.some($=>X.isEqual($,M)):!1,I=(M,$)=>$.curData[0]+"-"+$.curData[1]+"-"+X.getNumTwoBit(+M.day),D=(M,$)=>{const V=I(M,$),{type:_}=e;return M.type=="curr"?X.isEqual(f.currDate,V)||(_=="range"||_=="week")&&(R(V)||L(V))||_=="multiple"&&F(V)?`${f.dayPrefix}--active`:f.propStartDate&&X.compareDate(V,f.propStartDate)||f.propEndDate&&X.compareDate(f.propEndDate,V)?`${f.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&X.compareDate(f.currDate[0],V)&&X.compareDate(V,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},E=()=>{const{type:M}=e;if(M=="range"&&f.chooseData.length==2||M!="range"){let $=f.chooseData.slice(0);M=="week"&&($={weekDate:[P(f.chooseData[0]),P(f.chooseData[1])]}),n("choose",$),e.poppable&&n("update")}},j=(M,$,V=!1)=>{if(D(M,$)!=`${f.dayPrefix}--disabled`){const{type:_}=e;let[Y,Z]=$.curData,W=[...$.curData];if(W[2]=X.getNumTwoBit(Number(M.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=X.getWhatDay(+W[0],+W[1],+W[2]),_=="multiple")if(f.currDate?.length>0){let Q;f.currDate?.forEach((le,Te)=>{le==W[3]&&(Q=Te)}),V?f.chooseData.push([...W]):Q!==void 0?(f.currDate.splice(Q,1),f.chooseData.splice(Q,1)):(f.currDate.push(W[3]),f.chooseData.push([...W]))}else f.currDate=[W[3]],f.chooseData=[[...W]];else if(_=="range"){let Q=Object.values(f.currDate).length;Q==2||Q==0?f.currDate=[W[3]]:X.compareDate(f.currDate[0],W[3])?Array.isArray(f.currDate)&&f.currDate.push(W[3]):Array.isArray(f.currDate)&&f.currDate.unshift(W[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...W]]:X.compareDate(f.chooseData[0][3],W[3])?f.chooseData=[...f.chooseData,[...W]]:f.chooseData=[[...W],...f.chooseData]}else if(_=="week"){let Q=X.getWeekDate(Y,Z,M.day,e.firstDayOfWeek);f.propStartDate&&X.compareDate(Q[0],f.propStartDate)&&Q.splice(0,1,f.propStartDate),f.propEndDate&&X.compareDate(f.propEndDate,Q[1])&&Q.splice(1,1,f.propEndDate),f.currDate=Q,f.chooseData=[X.formatResultDate(Q[0]),X.formatResultDate(Q[1])]}else f.currDate=W[3],f.chooseData=[...W];if(!V){let Q=f.chooseData;_=="week"&&(Q={weekDate:[P(f.chooseData[0]),P(f.chooseData[1])]}),n("select",Q),(e.isAutoBackFill||!e.poppable)&&E()}}},P=M=>{let[$,V,_]=M;return{date:M,monthWeekNum:X.getMonthWeek($,V,_,e.firstDayOfWeek),yearWeekNum:X.getYearWeek($,V,_,e.firstDayOfWeek)}},w=M=>{const $=M=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let V=parseInt($.curData[0]),_=parseInt($.curData[1].toString().replace(/^0/,""));switch(M){case"prev":_==1&&(V-=1),_=_==1?12:--_;break;case"next":_==12&&(V+=1),_=_==12?1:++_;break}return[V+"",X.getNumTwoBit(_),X.getMonthDays(String(V),String(_))+""]},T=(M,$,V)=>{let{year:_,month:Y}=V;return $=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(Z,W)=>({day:String(W+1),type:$,year:_,month:Y}))},x=(M,$,V,_)=>{M=M-e.firstDayOfWeek;let{year:Y,month:Z}=V;return $=="prev"&&M>=7&&(M-=7),Array.from(Array(_),(Q,le)=>({day:String(le+1),type:$,year:Y,month:Z})).slice(_-M)},q=(M,$)=>{const V=X.getMonthPreDay(+M[0],+M[1]);let _=Number(M[1])-1,Y=Number(M[0]);_<=0&&(_=12,Y+=1);const Z=X.getMonthDays(String(M[0]),String(M[1])),W=X.getMonthDays(Y+"",_+""),Q={year:M[0],month:M[1]},le={curData:M,title:l("monthTitle",{year:Q.year,month:Q.month}),monthData:[...x(V,"prev",{month:String(_),year:String(Y)},W),...T(Z,"curr",Q)],cssHeight:0,cssScrollHeight:0},Te=le.monthData.length>35?6:5;le.cssHeight=Na+Va*Te;let Qe=0;f.monthsData.length>0&&(Qe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),le.cssScrollHeight=Qe,$=="next"?(!f.endData||!X.compareDate(`${f.endData[0]}-${f.endData[1]}-${X.getMonthDays(f.endData[0],f.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&f.monthsData.push(le):!f.startData||!X.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(le):f.unLoadPrev=!0},B=()=>{let M=e.startDate?e.startDate:X.getDay(0),$=e.endDate?e.endDate:X.getDay(365);f.propStartDate=M,f.propEndDate=$,f.startData=A(M),f.endData=A($),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const V={year:Number(f.startData[0]),month:Number(f.startData[1])},_={year:Number(f.endData[0]),month:Number(f.endData[1])};let Y=_.month-V.month;_.year-V.year>0&&(Y=Y+12*(_.year-V.year)),Y<=0&&(Y=1),q(f.startData,"next");let Z=1;do q(w("next"),"next");while(Z++<Y);if(f.monthsNum=Y,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(M&&X.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),$&&X.compareDate($,f.currDate[1])&&f.currDate.splice(1,1,$),f.defaultData=[...A(f.currDate[0]),...A(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let W=[],Q={};f.currDate.forEach(le=>{M&&!X.compareDate(le,M)&&$&&!X.compareDate($,le)&&(Object.hasOwnProperty.call(Q,le)||(W.push(le),Q[le]=le))}),f.currDate=[...W],f.defaultData=[...A(W[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[W,Q,le]=A(f.currDate[0]),Te=X.getWeekDate(W,Q,le,e.firstDayOfWeek);f.currDate=Te,M&&X.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),$&&X.compareDate($,f.currDate[1])&&f.currDate.splice(1,1,$),f.defaultData=[...A(f.currDate[0]),...A(f.currDate[1])]}}else f.currDate&&(M&&X.compareDate(f.currDate,M)?f.currDate=M:$&&!X.compareDate(f.currDate,$)&&(f.currDate=$),f.defaultData=[...A(f.currDate)])};fe({scrollToDate:M=>{X.compareDate(M,f.propStartDate)?M=f.propStartDate:X.compareDate(M,f.propEndDate)||(M=f.propEndDate);let $=A(M);f.monthsData.forEach((V,_)=>{if(V.title==l("monthTitle",{year:$[0],month:$[1]})&&u.value){let Y=f.monthsData[_].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let Z=0,W=setInterval(()=>{if(Z++,u.value){let Q=Y/10;u.value.scrollTop=u.value.scrollTop+Q}Z>=10&&(clearInterval(W),u.value&&(u.value.scrollTop=f.monthsData[_].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[_].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,$=0;f.defaultData.length>0&&f.monthsData.forEach((Y,Z)=>{Y.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(M=Z),(e.type=="range"||e.type=="week")&&Y.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&($=Z)}),H(f.monthsNum,M),f.currentIndex=M,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(j({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),j({day:f.defaultData[5],type:"curr"},f.monthsData[$],!0)):e.type=="week"?j({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(Y=>{let Z=A(Y),W=f.currentIndex;f.monthsData.forEach((Q,le)=>{Q.title==l("monthTitle",{year:Z[0],month:Z[1]})&&(W=le)}),j({day:Z[2],type:"curr"},f.monthsData[W],!0)}):j({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let V=f.monthsData[f.monthsData.length-1],_=V.cssHeight+V.cssScrollHeight;eo(()=>{u?.value&&h?.value&&C?.value&&(b.value=u.value.clientHeight,h.value.style.height=`${_}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(_/(f.monthsNum+1))}});const H=(M,$)=>{M>=3?$>0&&$<M?f.defaultRange=[$-1,$+3]:$==0?f.defaultRange=[$,$+4]:$==M&&(f.defaultRange=[$-2,$+2]):f.defaultRange=[0,M+2];let V=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=V},K=(M,$)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&D(M,$)=="fox-calendar__day--active",U=(M,$)=>K(M,$)&&R(I(M,$)),ee=(M,$)=>f.currDate.length>=2&&L(I(M,$))?K(M,$):!1,oe=()=>{if(f.currDate.length>=2)return X.isEqual(f.currDate[0],f.currDate[1])},re=M=>{const $=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return X.isEqual($,X.date2Str(new Date))},G=M=>{if(f.monthsData.length<=1)return;const $=M.target.scrollTop;let V=Math.floor($/f.avgHeight);if(V==0)$>=f.monthsData[V+1].cssScrollHeight&&(V+=1);else if(V>0&&V<f.monthsNum-1)$>=f.monthsData[V+1].cssScrollHeight&&(V+=1),$<f.monthsData[V].cssScrollHeight&&(V-=1);else{const _=Math.round($+b.value);_<f.monthsData[V].cssScrollHeight+f.monthsData[V].cssHeight&&$>f.monthsData[V-1].cssScrollHeight&&(V-=1),V+1<=f.monthsNum&&_>=f.monthsData[V+1].cssScrollHeight+f.monthsData[V+1].cssHeight&&(V+=1),V>=1&&$<f.monthsData[V-1].cssScrollHeight&&(V-=1)}f.currentIndex!==V&&(f.currentIndex=V,H(f.monthsNum,V)),f.yearMonthTitle=f.monthsData[V].title},ae=()=>{f.chooseData.splice(0),f.monthsData.splice(0),B()};return B(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&ae()}),{dayTitleStyle:s,dayCellStyle:i,weeks:d,compConthsData:p,showTopBtn:v,topInfo:m,bottomInfo:y,rangeTip:oe,mothsViewScroll:G,getClass:D,isStartTip:U,isEndTip:ee,chooseDay:j,isCurrDay:re,confirm:E,months:u,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:h,weeksPanel:g,viewArea:C}}}),xc={class:"fox-calendar__header"},Nc={key:0,class:"fox-calendar__header-title"},Vc={key:1,class:"fox-calendar__header-slot"},Bc={key:2,class:"fox-calendar__header-subtitle"},Ic={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ac={class:"fox-calendar__panel",ref:"monthsPanel"},Oc={class:"fox-calendar__days"},Rc=["onClick"],Fc={class:"fox-calendar__day-value"},Lc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Mc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Pc={key:2,class:"fox-calendar__day-tips--curr"},qc={key:4,class:"fox-calendar__day-tip"},zc={key:0,class:"fox-calendar__footer"};function jc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",xc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Nc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Vc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Ac,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",Oc,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,s)},[t.createElementVNode("view",Fc,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Lc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Mc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Pc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",qc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Rc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",zc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Ba=ue(Ec,[["render",jc]]),{create:_c}=J("calendar-picker"),Hc=_c({components:{[Ba.name]:Ba,[Ke.name]:Ke},props:{...zn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=p=>{i.value?.scrollToDate(p)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),fe({scrollToDate:c,initPosition:d});const u=()=>{n("update:visible",!1)},h=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{h()},update:u,close:h,select:p=>{n("select",p)},choose:p=>{h(),n("choose",p)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Kc(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const jn=ue(Hc,[["render",Kc]]),_n=(e,n)=>{let a;return Fe(e)?a=e:typeof e=="string"&&Ve(e)>0?a=X.parser(e,n):a=new Date,a},rt=(e,n,a)=>(Fe(n)||(n=new Date),X.format(n,a)),it=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=X.date2Str(e),r=X.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},Ia={...zn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Yc(e,n,a){return{props:{...he,...we,...Ia},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),h=t.ref(!1);const g=t.ref(!1),C=t.computed(()=>o.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},v=(B,O="one",N="YYYY-MM-DD")=>{if(Tc(B)){p();return}if(C.value&&Array.isArray(B)&&B.length==2){let z,H;typeof B[0]=="string"?(z=_n(B[0],N),H=_n(B[1],N)):(z=B[0],H=B[1]);let K=it(z),U=it(H);(b.startDate===null||b.startDate.getTime()!==z.getTime()||b.endDate?.getTime()!==H.getTime())&&(b.startDate=z,b.startArray=K,b.endDate=H,b.endArray=U)}else{let z;typeof B=="string"?z=_n(B,N):z=B;let H=it(z);(b.startDate===null||b.startDate.getTime()!==z.getTime())&&(b.startDate=z,b.startArray=H)}};v(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,B=>{v(B,o.type,o.valueFormat)});const m=t.computed(()=>{if(b.startDate===null)return"";if(C.value){let B=rt(o,b.startDate,o.format),O=rt(o,b.endDate,o.format);return`${B} ${o.rangeSeparator} ${O}`}else{let B=rt(o,b.startDate,o.format);return o.showWeek&&(B=`${B} ${b.startArray[4]}`),B}}),y=t.computed(()=>{if(b.startDate===null)return null;if(C.value){let B=X.date2Str(b.startDate),O=X.date2Str(b.endDate??new Date);return[B,O]}else return X.date2Str(b.startDate)}),f="fox-input-item",A=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),R=xe(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:R.value??"right"})),F=t.ref(!1),I=()=>{s.value||r.value||(F.value=!0)},D=()=>{F.value=!1},E=B=>{F.value=B},j=B=>{if(B){if(C.value&&Array.isArray(B)){let O=B[0],N=se(O[0]),z=se(O[1]),H=se(O[2]),K=new Date(N,z-1,H),U=B[1];N=se(U[0]),z=se(U[1]),H=se(U[2]);let ee=new Date(N,z-1,H);if(b.startDate=K,b.startArray=it(K),b.endDate=ee,b.endArray=it(ee),o.valueFormat){let oe=rt(o,K,o.valueFormat),re=rt(o,ee,o.valueFormat);i("update:modelValue",[oe,re],{})}else i("update:modelValue",[K,ee],{})}else{let O=B,N=se(O[0]),z=se(O[1]),H=se(O[2]),K=new Date(N,z-1,H);if(b.startDate=K,b.startArray=it(K),o.valueFormat){let U=rt(o,K,o.valueFormat);i("update:modelValue",U,{})}else i("update:modelValue",K,{})}i("change",B,{})}},P=B=>{let N=B.target.value;g.value=!0,i("focus",N,B)},w=B=>{setTimeout(()=>{g.value=!1},0);let N=B.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),i("blur",N,B)},T=t.computed(()=>Ve(o.unit)>0),x=B=>{p(),i("update:modelValue",null,B),i("change","",B),i("clear","")},q=t.ref();return fe({showPicker:I,hidePicker:D,focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const B={class:A.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:m.value,onClick:I,onFocus:P,onBlur:w,onClear:x},O={};l.slots.prepend&&(O.prepend=l.slots.prepend),l.slots.append&&(O.append=l.slots.append),l.slots.prefix?O.prefix=l.slots.prefix:O.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h($e.Calendar)}),l.slots.suffix?O.suffix=l.slots.suffix:T.value&&(O.suffix=()=>[o.unit]);const N=[],z=t.h(k.ElInput,B,O);N.push(z);const H={default:()=>N};l.slots.default&&(H.label=l.slots.default),l.slots.fixedTip&&(H.fixedTip=l.slots.fixedTip);const K=mt(o,zn);K.visible=F.value,K["onUpdate:visible"]=E,K["default-value"]=y.value,K.onChoose=j;const U={};if(l.slots.btn){const ae=l.slots.btn();U.btn=()=>ae}l.slots.day&&(U.day=l.slots.day),l.slots.topInfo&&(U.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(U.bottomInfo=l.slots.bottomInfo);const ee=t.h(jn,K,U);H.hide=()=>[ee];const re={...Se(o,Ia),hintText:u.value,hintVisible:h.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,re,H)}}}}const{componentName:Wc,create:Uc,scope:Gc}=J("calendar-item"),Aa=Uc(Yc(Wc,Gc,be)),Oa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xc(e,n,a){return{props:{...he,...we,...Oa},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=L=>{h.value=L,i("update:modelValue",L),i("change",L)};let p=ie(o,"hintText"),v=t.ref(!1);const m=L=>{let I=L.target.value;u.value=!0,me(p.value)||(v.value=!0),i("focus",I,L)},y=L=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let I=L.target.value;o.maxLength&&I.length>Number(o.maxLength)&&(I=I.slice(0,Number(o.maxLength))),i("blur",I,L)},f=()=>{i("clear","")},A=L=>{i("visible-change",L)},R=t.ref();return fe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const F={...l.attrs,ref:R,class:C.value,placeholder:d.placeholder.value,disabled:r.value,readonly:s.value,modelValue:h.value,"onUpdate:modelValue":b,onClear:f,onFocus:m,onBlur:y,onVisibleChange:A},I={},D=[],E=t.h(k.ElTimePicker,F,I);D.push(E);const j={default:()=>D};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const w={...Se(o,Oa),hintText:p.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,w,j)}}}}const{componentName:Zc,create:Jc,scope:Qc}=J("time-item"),Ra=Jc(Xc(Zc,Qc,be)),Fa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function eu(e,n,a){return{props:{...he,...we,...Fa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=R=>{h.value=R,i("update:modelValue",R),i("change",R)};let p=ie(o,"hintText"),v=t.ref(!1);const m=R=>{let F=R.target.value;u.value=!0,me(p.value)||(v.value=!0),i("focus",F,R)},y=R=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let F=R.target.value;o.maxLength&&F.length>Number(o.maxLength)&&(F=F.slice(0,Number(o.maxLength))),i("blur",F,R)},f=()=>{i("clear","")},A=t.ref();return fe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const L={...l.attrs,ref:A,class:C.value,placeholder:d.placeholder.value,disabled:r.value,readonly:s.value,modelValue:h.value,"onUpdate:modelValue":b,onClear:f,onFocus:m,onBlur:y},F={},I=[],D=t.h(k.ElTimeSelect,L,F);I.push(D);const E={default:()=>I};l.slots.default&&(E.label=l.slots.default),l.slots.fixedTip&&(E.fixedTip=l.slots.fixedTip);const P={...Se(o,Fa),hintText:p.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,P,E)}}}}const{componentName:tu,create:nu,scope:ou}=J("time-select-item"),La=nu(eu(tu,ou,be));function Ma(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Pa(e,n,a=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=ro(`${e}`,`${n}`);return Ma(o)}else{let o=fn(`${e}`,io(`${n}`),20);return Ma(o)}}function au(e,n=-1,a=!1,o=3,l=","){return Et(e,n,a,o,l)}function qa(e,n,a,o,l=!0){if(e=="")return"";if(e=so(e),n=se(n),n==1)return e;if(o)e=Pa(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(se(a)+2,"0"):e=fn(e,1,se(a)));else{let r=-1*n;e=Pa(e,r)}return e}function za(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=te(n.minInclude),l=hn(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=te(n.maxInclude),l=hn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const ja={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 lu(e,n,a){return{props:{...he,...we,...ja},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(!1),d=ie(o,"modelValue"),u=t.ref("");t.watch([()=>d.value,()=>o.rates,()=>o.precision],([w,T,x])=>{if(me(w)){u.value="";return}const q=qa(w,T,x,!1);u.value!==q&&(u.value=q)},{immediate:!0});const h=t.computed(()=>{let w="";return c.value&&(w=u.value),w}),{t:g}=De.useFoxI18n(n),C=t.computed(()=>{let w=o.placeholder??"";return!c.value&&!me(u.value)?w=au(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):w=g(["placeholder",w]),w}),b=e,p=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__placeholder`]:u.value.length>0})),v=xe(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:v.value??"right"});const m=t.ref(""),y=t.computed(()=>{let w=m.value;return me(w)&&(w=o.errorTip??""),w}),f=t.ref(""),A=t.ref(!1),R=(w,T)=>{if(w=`${w}`,me(w)){u.value="",d.value="",T.forEach(x=>{i(x,"")}),te(o.showTip)&&A.value&&(A.value=!1);return}if(w.length>=2){let x=w;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){t.triggerRef(u);return}}if(w!="-"){if(!So(w)){t.triggerRef(u);return}if(o.integerLength!=-1&&wo(w)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&Co(w)>Number(o.decimalLength)){t.triggerRef(u);return}let x=za(w,o);if(x.maxValid===!1){m.value=x.message,t.triggerRef(u);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(u);return}f.value=w,te(o.showTip)&&(A.value=w.length>0),u.value=w,d.value=qa(w,o.rates,o.precision,!0),T.forEach(x=>{i(x,d.value)})},L=w=>{R(w,["update:modelValue","input"])},F=w=>{R(w,["update:modelValue","change"])},I=w=>{if(c.value=!0,te(o.showTip)){let T=u.value;me(T)&&(T=o.hintText),me(T)||(f.value=T,A.value=!0)}m.value="",i("focus",d.value,w)},D=w=>{if(setTimeout(()=>{c.value=!1,te(o.showTip)&&A.value===!0&&(A.value=!1)},0),!me(u.value)){let T=za(u.value,o);if(T.minValid===!1||T.maxValid===!1){m.value=T.message;return}}i("update:modelValue",d.value,w),i("blur",d.value,w)},E=()=>{i("clear","")},j=t.computed(()=>Ve(o.unit)>0),P=t.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const T={...l.attrs,ref:P,class:p.value,type:"digit",maxlength:o.maxLength,placeholder:C.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:E,onInput:L,onChange:F,onFocus:I,onBlur:D},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:j.value&&(x.suffix=()=>[o.unit]);const q=[],B=t.h(k.ElInput,T,x);q.push(B);const O={default:()=>q};l.slots.default&&(O.label=l.slots.default),l.slots.fixedTip&&(O.fixedTip=l.slots.fixedTip);const z={...Se(o,ja),errorTip:y.value,hintText:f.value,hintVisible:A.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,z,O)}}}}const{componentName:ru,create:iu,scope:su}=J("money-item"),_a=iu(lu(ru,su,be)),Ha={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 cu(e,n,a){return{props:{...he,...we,...Ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0,[`${g}__append`]:L.value})),b=t.computed(()=>({[`${g}__unit`]:!0})),p=I=>{h.value=I,i("update:modelValue",I),i("input",I)},v=I=>{i("change",I)};let m=ie(o,"hintText"),y=t.ref(!1);const f=I=>{let E=I.target.value;u.value=!0,me(m.value)||(y.value=!0),i("focus",E,I)},A=I=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let E=I.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),i("blur",E,I)},R=()=>{i("clear","")},L=t.computed(()=>Ve(o.unit)>0),F=t.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const D={...l.attrs,ref:F,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:R,onChange:v,onInput:p,onFocus:f,onBlur:A},E={},j=[],P=t.h(k.ElInputNumber,D,E);j.push(P);const w={default:()=>j};l.slots.default&&(w.label=l.slots.default),l.slots.fixedTip&&(w.fixedTip=l.slots.fixedTip);const x={...Se(o,Ha),hintText:m.value,hintVisible:y.value,prop:`${o.prop}_item`};if(l.slots.append)w.append=l.slots.append;else if(L.value){const B={class:b.value},O=t.h("div",B,[o.unit]);w.append=()=>O}return t.h(a,x,w)}}}}const{componentName:uu,create:du,scope:fu}=J("input-number-item"),Ka=du(cu(uu,fu,be));function kt(e,n){const a=e.textKey??"text";return n[a]??""}function vt(e,n){const a=e.valueKey??"value";return n[a]}function Ya(e,n){const a=e.childrenKey??"children";return n[a]}function Ut(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=kt(e,l),s=vt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Wa(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(kt(e,n[s])===r){const c=vt(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const u=Ya(e,n[s]);Array.isArray(u)&&Wa(e,u,a,o+1,l);return}}function Ua(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(vt(e,n[s])===r){const c=kt(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const u=Ya(e,n[s]);Array.isArray(u)&&Ua(e,u,a,o+1,l);return}}function Hn(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=kt(e,n[o]),r=kt(e,a[o]);if(l!==r)return!1;const s=vt(e,n[o]),i=vt(e,a[o]);if(s!==i)return!1}return!0}let hu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Ae(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Be(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function mu(){const e=t.getCurrentInstance();return new hu(e.proxy)}const Gt=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...u}=o,h={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return h.children&&h.children.length&&(h.children=Gt(h.children,h,a)),h}),Ga=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ga(o.children,n)},gu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},pu=(e,n)=>{const a={...gu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:u,[r]:h}=d,g=c[h]=c[h]||[];!i.length&&h===o&&(i=g),g.push(d),d.children=c[u]||(c[u]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((u,h)=>u[s]-h[s])}),c=null,i},yu=/scroll|auto|overlay/i,bu=window;function Su(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Xa(e,n=bu){let a=e;for(;a&&a!==n&&Su(a);){const{overflowY:o}=window.getComputedStyle(a);if(yu.test(o))return a;a=a.parentNode}return n}const{create:wu}=J("sticky"),Cu=wu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!a.value&&!d)return;const u=He(a),h=o.value,g=He(h),C=He(d);l.height=u.height;const b=()=>{let v=!1;if(e.position==="top")v=d?r.value>u.top&&C.bottom>0:r.value>u.top;else{const m=document.documentElement.clientHeight;v=d?C.bottom>0&&m-r.value-g.height>C.top:m-r.value<u.bottom}return v},p=()=>{if(d)if(e.position==="top"){const v=C.bottom-r.value-g.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,m=C.bottom-(v-r.value);return m<0?m:0}return 0};l.transform=p(),l.fixed=b()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),Xa(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Xa(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function ku(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Xt=ue(Cu,[["render",ku]]),vu=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let g=await o(l,a);r.value.width=g.width||0,r.value.height=g.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Rn();let d="";const u=(g,C)=>{let b=g;switch(e.direction=="horizontal"?(d=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(d=C>0?"bottom":"top",b=C,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),d){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),i.moving=!0,u(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Tu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:$u}=J("ext-tabs"),Du=$u({components:{[Xt.name]:Xt,JoySmile:Wr},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=D=>{D.forEach((E,j)=>{let P=E.type;if(P=P.name||P,P=="fox-ext-tab-pane"){let w=new Tu;if(E.props?.title||E.props?.["pane-key"]||E.props?.paneKey){let T=tt(E.props?.["pane-key"]),x=T=="number"||T=="string"?String(E.props?.["pane-key"]):null,q=tt(E.props?.paneKey),B=q=="number"||q=="string"?String(E.props?.paneKey):null;w.title=E.props?.title,w.paneKey=x||B||String(j),w.disabled=E.props?.disabled}r.value.push(w)}else{if(E.children==" ")return;Array.isArray(E.children)&&s(E.children)}})},i=t.ref(e.modelValue||0),c=D=>{let E=r.value.findIndex(j=>j.paneKey==D);r.value.length==0||E==-1||(i.value=E)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),h=t.ref([]),g=D=>{const E=u.value,j=h.value;if(!E||!j||!j[i.value])return;const P=j[i.value];let w=0;e.direction==="vertical"?w=P.offsetTop-E.offsetTop+10-(E.offsetHeight-P.offsetHeight)/2:w=P.offsetLeft-(E.offsetWidth-P.offsetWidth)/2,C(E,w,D?0:.3,e.direction)},C=(D,E,j,P)=>{let w=0;const T=P==="horizontal"?D.scrollLeft:D.scrollTop,x=j===0?1:Math.round(j*1e3/16);function q(){P==="horizontal"?D.scrollLeft+=(E-T)/x:D.scrollTop+=(E-T)/x,++w<x&&co(q)}q()},b=(D=a.default?.())=>{r.value=[],D=D?.filter(E=>typeof E.children!="string"),D&&D.length&&s(D),c(e.modelValue),t.nextTick(()=>{g()})},p=D=>{l=D.fixed};t.watch(()=>a.default?.(),D=>{b(D)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,D=>{if(c(D),g(),l){let E=He(o.value).top+v(),j=Math.ceil(E-e.top);window.scrollTo({top:j,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const m={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,m.updateValue(r.value[i.value])},prev:()=>{i.value-=1,m.updateValue(r.value[i.value])},updateValue:D=>{n("update:modelValue",D.paneKey),n("change",D)},tabChange:(D,E)=>{n("click",D),!(D.disabled||i.value==E)&&(i.value=E,m.updateValue(D))},setTabItemRef:(D,E)=>{h.value[E]=D}},{tabsContentRef:y,touchState:f,touchMethods:A}=vu(e,m),R=t.computed(()=>{let D=i.value*100;f.moving&&(D+=f.offset);let E={transform:e.direction=="horizontal"?`translate3d(-${D}%, 0, 0)`:`translate3d( 0,-${D}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(E={}),E}),L=t.computed(()=>({background:e.background})),F=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),I=t.computed(()=>{if(!e.titleGutter)return{};const D=ye(e.titleGutter);return e.direction==="vertical"?{marginTop:D,marginBottom:D}:{marginLeft:D,marginRight:D}});return{navRef:u,tabsContentRef:y,titles:r,contentStyle:R,tabsNavStyle:L,titleStyle:I,tabsActiveStyle:F,container:o,getScrollY:d,onStickyScroll:p,...m,...A}}}),Eu=["onClick"],xu=["onClick"];function Nu(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Eu))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,d)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,xu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Zt=ue(Du,[["render",Nu]]),{create:Vu}=J("ext-tab-pane"),Bu=Vu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Iu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Jt=ue(Bu,[["render",Iu]]);class Za{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Gt(n,null,this.config)}updateChildren(n,a){a?a.children=Gt(n,a,this.config):this.nodes=Gt(n,null,this.config)}getNodeByValue(n){let a;return Ga(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Au,scope:Ou}=J("cascader-pane"),Ru=Au({components:{Loading:Pr,Checklist:ti,[Zt.name]:Zt,[Jt.name]:Jt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const a=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),l=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Za([],{})),i=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),d=new Map;let u;const h=async()=>{d.clear(),i.value=[],o.value=0,l.value=!1,u=null;let{options:m}=e;a.value.convertConfig&&(m=pu(m,a.value.convertConfig)),s.value=new Za(m,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!s.value.nodes.length&&await C({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],g()},g=async()=>{const m=r.value;if(m===void 0||!s.value.nodes.length)return;if(m.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let y=m;if(c.value&&Array.isArray(m)&&m.length){y=[];let f=s.value.nodes.find(A=>A.value===m[0]);if(f){y=[f.value],l.value=!0;const A=await m.slice(1).reduce(async(R,L)=>{const F=await R;await C(F);const I=F?.children?.find(D=>D.value===L);return I&&y.push(L),Promise.resolve(I)},Promise.resolve(f));await C(A),l.value=!1}}y.length&&m===e.modelValue&&s.value.getPathNodesByValue(y).map((A,R)=>{o.value=R,v.handleNode(A,!0)})},C=async m=>{if(!m)return;if(!a.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,c.value)||s.value.hasChildren(m,c.value))return;m.loading=!0;const y=m.root?null:m;let f=d.get(m);f||(f=new Promise(R=>{a.value.lazyLoad?.(m,R)}),d.set(m,f));const A=await f;Array.isArray(A)&&A.length>0?s.value.updateChildren(A,y):m.leaf=!0,m.loading=!1,d.delete(m)},b=m=>{const y=m.map(f=>f.value);r.value=y,n("change",y,m),n("update:modelValue",y,m)},{t:p}=De.useFoxI18n(Ou),v={async handleNode(m,y){const{disabled:f,loading:A}=m;if(!(!y&&f||!i.value[o.value])){if(s.value.isLeaf(m,c.value)){if(m.leaf=!0,i.value[o.value].selectedNode=m,i.value=i.value.slice(0,m.level+1),!y){const R=i.value.map(L=>L.selectedNode);b(R),n("pathChange",R)}return}if(s.value.hasChildren(m,c.value)){const R=m.level+1;if(i.value[o.value].selectedNode=m,i.value=i.value.slice(0,R),i.value.push({nodes:m.children||[],selectedNode:null}),o.value=R,!y){const L=i.value.map(F=>F.selectedNode);n("pathChange",L)}return}u=m,!A&&(await C(m),u===m&&(i.value[o.value].selectedNode=m,v.handleNode(m,y)))}},handleTabClick(m){u=null,o.value=Number(m.paneKey)},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:p("select")},isSelected(m,y){return m.selectedNode&&m.selectedNode.value===y.value}};return t.watch([a,()=>e.options],()=>{h()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==r.value&&(r.value=m,g())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(r.value)&&r.value.length>0&&g()}),{panes:i,initLoading:l,tabsCursor:o,...v}}}),Fu={role:"menu",class:"fox-cascader__pane"},Lu=["aria-checked","aria-disabled","onClick"],Mu={class:"fox-cascader__item__title"},Pu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function qu(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),d=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(u),key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,g),disabled:g.disabled}]),"aria-checked":e.isSelected(u,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(g,!1)},[t.createElementVNode("view",Mu,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Lu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Pu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Ja=ue(Ru,[["render",qu]]),{create:zu}=J("cascader-picker"),ju=zu({components:{[Ja.name]:Ja,[Ke.name]:Ke},props:{...An,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),_u=["innerHTML"];function Hu(e,n,a,o,l,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,_u)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Kn=ue(ju,[["render",Hu]]),Qa={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Ku(e,n,a){return{props:{...he,...we,...Qa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),h=t.ref(!1);const g=t.ref(!1),C=mu(),b=t.ref([]);t.watch([()=>o.source,()=>o.params],async([q,B])=>{q&&(b.value=await C.load(q,B))},{immediate:!0});const p=t.ref([]),v=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),m=t.ref([]),y=t.ref([]);t.watch([()=>o.modelValue,b],async([q,B])=>{if(o.lazy===!0){y.value.length==0&&(p.value=Array.isArray(q)?q:[],m.value=Array.isArray(q)?q:[]);return}if(o.valueType==="item"){let O=q;if(!Hn(o,O,y.value)){y.value=O;let N=Ut(o,O);p.value=N.texts,m.value=N.values}}else if(o.valueType==="text"){let O=q,N=[];if(Wa(o,B,O,0,N),!Hn(o,N,y.value)){y.value=N;let z=Ut(o,N);O.value=z.texts,m.value=z.values}}else{let O=q,N=[];if(Ua(o,B,O,0,N),!Hn(o,N,y.value)){y.value=N;let z=Ut(o,N);p.value=z.texts,O.value=z.values}}});const f=e,A=t.computed(()=>({[f]:!0})),R=xe(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:R.value??"right"})),F=t.ref(!1),I=()=>{r.value===!0||s.value===!0||(F.value=!0)},D=q=>{F.value=q},E=(q,B)=>{let O=B.map(z=>{if(z==null)return z;let H={...z};return Reflect.deleteProperty(H,"text"),H[o.textKey]=z.text??"",Reflect.deleteProperty(H,"value"),H[o.valueKey]=z.value??"",H});y.value=O;let N=Ut(o,O);p.value=N.texts,m.value=N.values,o.valueType==="text"?(i("change",p.value,O),i("update:modelValue",p.value)):o.valueType==="item"?(i("change",O,O),i("update:modelValue",O)):(i("change",m.value,O),i("update:modelValue",m.value)),i("update:pathNodes",O)},j=q=>{let B=q.map(O=>{if(O==null)return O;let N={...O};return Reflect.deleteProperty(N,"text"),N[o.textKey]=O.text??"",Reflect.deleteProperty(N,"value"),N[o.valueKey]=O.value??"",N});i("pathChange",B)},P=q=>{g.value=!0,i("focus",m.value,q)},w=q=>{setTimeout(()=>{g.value=!1},0),i("blur",m.value,q)},T=t.computed(()=>Ve(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!s.value);const x=t.ref();return fe({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const q={class:A.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,value:v.value,onClick:I,onFocus:P,onBlur:w},B={};l.slots.prepend&&(B.prepend=l.slots.prepend),l.slots.append&&(B.append=l.slots.append),l.slots.prefix&&(B.prefix=l.slots.prefix),l.slots.suffix?B.suffix=l.slots.suffix:T.value?B.suffix=()=>[o.unit]:B.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const O=[],N=t.h(k.ElInput,q,B);O.push(N);const z={default:()=>O};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);let H={};H.visible=F.value,H["onUpdate:visible"]=D,H.modelValue=m.value,H.onChange=E,H.onPathChange=j,H.options=b.value,H.title=o.title,H.lazy=o.lazy,H.lazyLoad=o.lazyLoad,H.valueKey=o.valueKey,H.textKey=o.textKey,H.childrenKey=o.childrenKey,H.convertConfig=o.convertConfig;const K=t.h(Kn,H);z.hide=()=>[K];const ee={...Se(o,Qa),hintText:u.value,hintVisible:h.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,ee,z)}}}}const{componentName:Yu,create:Wu,scope:Uu}=J("cascader-item"),el=Wu(Ku(Yu,Uu,be)),tl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gu(e,n,a){return{props:{...he,...we,...tl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=F=>{h.value=F,i("update:modelValue",F),i("input",F)},p=F=>{i("change",F)},v=F=>{i("select",F)};let m=ie(o,"hintText"),y=t.ref(!1);const f=F=>{let D=F.target.value;u.value=!0,me(m.value)||(y.value=!0),i("focus",D,F)},A=F=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let D=F.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),i("blur",D,F)},R=()=>{i("clear","")},L=t.ref();return fe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const I={...l.attrs,ref:L,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,onClear:R,onChange:p,onInput:b,onFocus:f,onBlur:A,onSelect:v},D={};l.slots.prepend&&(D.prepend=l.slots.prepend),l.slots.append&&(D.append=l.slots.append),l.slots.prefix&&(D.prefix=l.slots.prefix),l.slots.suffix&&(D.suffix=l.slots.suffix),l.slots.option&&(D.default=l.slots.option);const E=[],j=t.h(k.ElAutocomplete,I,D);E.push(j);const P={default:()=>E};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const T={...Se(o,tl),hintText:m.value,hintVisible:y.value,prop:`${o.prop}_item`};return t.h(a,T,P)}}}}const{componentName:Xu,create:Zu,scope:Ju}=J("autocomplete-item"),nl=Zu(Gu(Xu,Ju,be));function Qu(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],h=c.find(g=>g[o]===u);if(!h)break;s.push(h[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],u=r[c];const h=d.find(g=>g[o]===u);if(!h)break;s.push(h[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],h=c.find(g=>g[o]===u);if(!h)break;s.push(h[a]),c=h[l]}}return s}let ed=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function td(){const e=t.getCurrentInstance();return new ed(e.proxy)}const ol={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 nd(e,n){return{props:{...ol},setup(a,{attrs:o,slots:l}){const r=td(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,u])=>{s.value=await r.load(a.sourceType,d,u)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Qu(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...o};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},i.value):t.h(c,d,{default:()=>i.value}):t.h(c,d,i.value)}}}}const{componentName:Zh,create:od,scope:Jh}=J("mapping"),Qt=od(nd());function ad(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function ld(e,n){return{props:{...ol},setup(a,{attrs:o,slots:l}){return()=>{const r={default:s=>{const i=ad(s.row,s.column.property);return l.default?t.h(Qt,{...a,modelValue:i},{default:l.default}):t.h(Qt,{...a,modelValue:i})}};return t.h(k.ElTableColumn,{...o},r)}}}}const{componentName:Qh,create:rd,scope:em}=J("table-mapping-column"),al=rd(ld()),id=Symbol.for("TableStateKey");function ll(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function sd(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(id,{});return()=>{const r=l.currentRow?l.currentRow.value:null,s={default:i=>{const c=ll(i.row,i.column.property),d=r?ll(r,i.column.property):null,u=c===d,h={class:{"el-radio__input":!0,"is-checked":u}},g=t.h("span",h,[t.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":u}};return t.h("label",C,[g])}};return t.h(k.ElTableColumn,{...o},s)}}}}const{componentName:tm,create:cd,scope:nm}=J("table-radio-column"),rl=cd(sd()),ud={},dd={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"},fd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function hd(e,n){return t.openBlock(),t.createElementBlock("svg",dd,fd)}const md=ue(ud,[["render",hd]]),{componentName:am,create:gd,scope:lm}=J("table-setting"),pd={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:"不固定"}},yd=gd({components:{FoxPopover:k.ElPopover,FoxCheckbox:k.ElCheckbox,FoxCheckboxGroup:k.ElCheckboxGroup,FoxButton:k.ElButton,FoxIcon:k.ElIcon,DragIcon:md,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...pd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(N=>N.label===""||N.type?!1:N.fixed===""||N.fixed===!0||N.fixed==="left")),s=t.computed(()=>l.value.filter(N=>N.label===""||N.type?!1:N.fixed==="right")),i=t.computed(()=>l.value.filter(N=>!(N.label===""||N.type||N.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||s.value.length>0)&&i.value.length>0),d=t.computed(()=>r.value.length>0),u=t.computed(()=>s.value.length>0),h=N=>N.length>1,g=N=>{const z=[];l.value=N.map((K,U)=>(!(K.label===""||K.type)&&K.visible!==!1&&z.push(K.prop),{...K,sortIndex:U})),i.value.length+r.value.length+s.value.length===z.length?y.value=!0:z.length>0&&(f.value=!0),L.value=z},C=N=>N?N.type?N.type:N.label?N.prop:"":"",b=(N,z)=>{if(N.length!==z.length)return!1;const H=N.map(K=>C(K));for(let K of z){const U=C(K);if(H.indexOf(U)===-1)return!1}return!0},p=N=>{if(!N){const z=e.tableRef.getColumnSetting(),H=z.srcColumnPropertyList;o=H.map((K,U)=>({...K,sortIndex:U})),N=z.columnPropertyList,N&&N.length>0&&b(H,N)||(N=H)}g(N)},v=()=>{e.tableRef.setColumnSetting(l.value)},m=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),f=t.ref(!1),A=N=>{const z=[];l.value.forEach(K=>{N&&!(K.label===""||K.type)&&z.push(K.prop),K.visible=N}),y.value=!1,f.value=!1,i.value.length+r.value.length+s.value.length===z.length?y.value=!0:z.length>0&&(f.value=!0),L.value=z,v()},R=()=>{p(o),v()},L=t.ref([]),F=N=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const K=N.indexOf(H.prop)!==-1;H.visible=K}),y.value=!1,f.value=!1;const z=i.value.length+r.value.length+s.value.length;N.length===z?y.value=!0:N.length>0&&(f.value=!0),v()},I=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const D={currentRow:null,index:null,roleType:null},E=N=>N?N.dataset&&N.dataset.role==="row"?N:N.tagName.toLowerCase()!=="body"?(N=N.parentElement,E(N)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:c,isShowLeftFixedTitle:d,isShowRightFixedTitle:u,isDraggble:h,isCheckAll:y,isIndeterminate:f,handleCheckAllChange:A,handleReset:R,checkedValue:L,handleCheckChange:F,onShow:I,onDragStart:N=>{const z=N.currentTarget;z&&z.dataset&&(D.roleType=z.dataset.roleType,D.index=z.dataset.index)},onDragEnd:N=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},onDragOver:N=>{const z=N.currentTarget;N.relatedTarget;const H=E(z);if(!H)return;const K=H.dataset&&H.dataset.roleType;D.roleType===K&&(N.preventDefault(),D.currentRow&&D.currentRow!==H&&D.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),D.currentRow=H)},onDragLeave:N=>{N.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},onDrop:N=>{const z=N.currentTarget,H=E(z);if(!H)return;const K=H.dataset&&H.dataset.roleType;if(D.roleType!==K)return;N.preventDefault();const U=Number(D.index),ee=Number(H.dataset.index);if(U!==ee){if(U<ee){const oe=l.value[U];l.value.splice(U,1),l.value.splice(ee,0,oe)}else{const oe=l.value[U];l.value.splice(U,1),l.value.splice(ee+1,0,oe)}g(l.value),v()}},toLeftFixed:N=>{const z=l.value[N];z.fixed="left",v()},toRightFixed:N=>{const z=l.value[N];z.fixed="right",v()},toUnFixed:N=>{const z=l.value[N];z.fixed=void 0,v()},checkboxLabelStyle:m}}}),bd={class:"fox-table-setting"},Sd={class:"fox-table-setting__header"},wd={class:"fox-table-setting__body"},Cd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},kd={key:0,class:"fox-table-setting__body-title"},vd=["data-index","draggable"],Td={class:"tools-item"},$d={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Dd={key:0,class:"fox-table-setting__body-title"},Ed=["data-index","draggable"],xd={class:"tools-item"},Nd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vd={key:0,class:"fox-table-setting__body-title"},Bd=["data-index","draggable"],Id={class:"tools-item"};function Ad(e,n,a,o,l,r){const s=t.resolveComponent("FoxCheckbox"),i=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),h=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("Download"),C=t.resolveComponent("fox-checkbox"),b=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",bd,[t.createElementVNode("div",Sd,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",wd,[t.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Cd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",kd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[2]||(n[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[3]||(n[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[4]||(n[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[5]||(n[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Td,[t.createVNode(h,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,vd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",$d,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",Dd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[7]||(n[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[8]||(n[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[9]||(n[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[10]||(n[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",xd,[t.createVNode(h,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ed))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Nd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Vd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[12]||(n[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[13]||(n[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[14]||(n[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[15]||(n[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(C,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(h,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Yn=ue(yd,[["render",Ad]]);let Od=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=(o-1)*l,u=d+l;u>a.length&&(u=a.length);const h=a.slice(d,u);return{totalSize:a.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s,i]);const c=Ae(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,s,i]))}};function Rd(){const e=t.getCurrentInstance();return new Od(e.proxy)}class Fd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Ae(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Ae(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Ae(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Ld(){const e=t.getCurrentInstance();return new Fd(e.proxy)}const Md=Symbol.for("TableStateKey");function Pd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function Wn(e,n){return e.filter(o=>{for(let l in n){const r=n[l],s=Pd(o,l);if(r!==s)return!1}return!0})}const il={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},sl={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Un={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function qd(e,n,a){return{inheritAttrs:!1,props:{...he,...we,...il,...sl,...Un},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,l){const{locale:r}=De.useFoxI18n(n),{emitEvent:s}=pe({componentName:e,validateHandler:{getValue(...$){return f.value}}},o.prop??l.attrs.name),i=e,c=t.computed(()=>({[i]:!0})),d=t.computed(()=>({[`${i}__setting`]:!0})),u=t.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${o.footerAlign}`]:!0})),h=t.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,$=>{g.value=$});const C=$=>{g.value=$,s("page-index-change",$)},b=t.ref(o.pageSize);t.watch(()=>o.pageSize,$=>{b.value=$});const p=$=>{b.value=$,s("page-size-change",$)},v=t.shallowRef({}),m=t.computed(()=>({...v.value,...o.params??{},...o.baseParams??{}})),y=t.ref(0),f=t.ref(),A=Rd();let R=!0;const L=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:te(o.autoLoad),F=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,$=>te($)),I=async($,V,_,Y)=>{try{const Z=await A.load("table",$,V,_,Y,R,r.value);y.value=Z.totalSize,f.value=Z.page}catch(Z){console.error("[FoxUI] Load Table Data Fail",Z),y.value=0,f.value=[]}R=!1,setTimeout(()=>{s("loaded-data")},250)};t.watch([g,b],([$,V],[_,Y])=>{V!==Y&&(g.value=1,$=1),I(o.data,$,V,m.value)}),t.watch([()=>o.data,m],([$,V],[_,Y])=>{L()&&($!==_&&(R=!0),!(!Array.isArray($)&&Le($,_)&&Le(V,Y))&&I($,g.value,b.value,V))},{deep:!0});const D=($={},V=!1)=>new Promise(_=>{v.value=t.toRaw($??{}),t.triggerRef(v),V||(g.value=o.pageIndex??1),t.nextTick(async()=>{await I(o.data,g.value,b.value,m.value),_()})}),E=()=>{y.value=0,f.value=[]};let j=!1;const P=()=>{j||(j=!0,D())};L()&&!F.value&&D();const w=t.ref(null);t.provide(Md,{currentRow:w});const T=($,V)=>{w.value=$,s("current-change",$,V)},x=($,V,_)=>{s("row-click",$,V,_),te(o.rowClickSelectable)===!0&&M?.value.toggleRowSelection($)},q=[],B=($,V)=>{if(s("expand-change",$,V),te(o.uniqueExpansion))if(Array.isArray(V)&&V.length==0){const _=q.length;q.splice(0,_)}else{q.forEach(Y=>{Y!==$&&M?.value.toggleRowExpansion(Y,!1)});const _=q.length;q.splice(0,_,$)}},O=l.attrs.id??o.prop??l.attrs.name,N=Ld(),z=t.ref([]);let H=[];const K=()=>({srcColumnPropertyList:H.map(V=>({...V})),columnPropertyList:z.value}),U=$=>{z.value=[...$],oe()},ee=async()=>{const $=await N.load(O);$&&(z.value=$)},oe=()=>{N.save(O,z.value)},re=()=>{N.remove(O)};ee();const G=$=>$?$.type?$.type:$.label?$.prop:"":"",ae=t.computed(()=>{if(typeof l.slots.default=="function"){const $=l.slots.default(),V=new Map;if(H=[],$.forEach(_=>{const Y=_;if(!Y.props)return;const Z=G(Y.props);V.set(Z,_);const W={label:"",prop:""};Object.assign(W,Y.props),H.push(W)}),z.value.length===H.length){const _=[];for(let Y of z.value){const Z=G(Y),W=V.get(Z);if(!W)return $;if(Y.visible===!1)continue;const Q=W;Q.props.fixed=Y.fixed,_.push(Q)}return _}return $}return[]}),M=t.ref();return fe({clearSelection:()=>M?.value.clearSelection(),getSelectionRows:()=>M?.value.getSelectionRows(),toggleRowSelection:($,V)=>{M?.value.toggleRowSelection($,V)},toggleRowSelectionByProp:($,V)=>{if(!f.value)return;const _=Wn(f.value,$);_.length!==0&&_.forEach(Y=>{M?.value.toggleRowSelection(Y,V)})},toggleAllSelection:()=>{M?.value.toggleAllSelection()},toggleRowExpansion:($,V)=>{M?.value.toggleRowExpansion($,V)},toggleRowExpansionByProp:($,V)=>{if(!f.value)return;const _=Wn(f.value,$);_.length!==0&&_.forEach(Y=>{M?.value.toggleRowExpansion(Y,V)})},setCurrentRow:$=>{M?.value.setCurrentRow($)},setCurrentRowByProp:$=>{if(!f.value)return;const V=Wn(f.value,$);V.length!==0&&M?.value.setCurrentRow(V[0])},getCurrentRow:()=>w.value,clearSort:()=>{M?.value.clearSort()},clearFilter:$=>{M?.value.clearFilter($)},doLayout:()=>{M?.value.doLayout()},sort:($,V)=>{M?.value.sort($,V)},scrollTo:($,V)=>{M?.value.scrollTo($,V)},setScrollTop:$=>{M?.value.setScrollTop($)},setScrollLeft:$=>{M?.value.setScrollLeft($)},loadData:D,clearData:E,getData(){return f.value},getTotalSize(){return y.value},getPageIndex(){return g.value},getPageSize(){return b.value},getColumnSetting:K,setColumnSetting:U,removeColumnSetting:re}),()=>{const V={...l.attrs,onCurrentChange:T,onRowClick:x,onExpandChange:B,data:f.value,ref:M,class:c.value},_={};l.slots.default&&(_.default=()=>ae.value),l.slots.append&&(_.append=l.slots.append),l.slots.empty&&(_.empty=l.slots.empty);const Y=[],Z=t.h(k.ElTable,V,_);Y.push(Z);let W=null;if(typeof l.slots.pagination=="function")W=l.slots.pagination();else if(o.showPagination){const et={class:h.value,total:y.value,pageSize:b.value,"onUpdate:pageSize":p,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":C,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};W=t.h(k.ElPagination,et)}if(o.showSetting){const et=[];W&&et.push(W);const zh=t.h(k.ElIcon,{class:d.value},{default:()=>t.h($e.Setting)}),jh=mt(o,Un),_h=t.h(Yn,{...jh,tableRef:{getColumnSetting:K,setColumnSetting:U,removeColumnSetting:re}},{default:()=>zh});et.push(_h);const Hh=t.h("div",{class:u.value},et);Y.push(Hh)}else W&&Y.push(W);const Q={default:()=>Y},Te={...Se(o,il,sl,Un),prop:`${o.prop}_item`};return Te.contentClass=`${i}__wrap`,Te.errorMarkClass="is-table-error",F.value&&L()&&(Te["appear-listen"]=!0,Te.onAppear=P),t.h(a,Te,Q)}}}}const{componentName:zd,create:jd,scope:_d}=J("table-item"),cl=jd(qd(zd,_d,be));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Kd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Yd(){const e=t.getCurrentInstance();return new Kd(e.proxy)}function ul(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=st(e,n),l=st(e,a);if(o!==l)return!1;const r=Tt(e,n),s=Tt(e,a);return r===s}function Wd(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;let l=null;for(let r of o){let s=!1;if(a==="text")s=st(e,r)===n;else if(a==="item")s=ul(e,r,n);else{let i=Tt(e,r);i==null&&(i=st(e,r)),s=i===n}if(s){l=r;break}}return l}function Ud(e){return{text:e,value:e}}function Gd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const dl={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Xd(e,n,a){return{inheritAttrs:!0,props:{...he,...we,...dl},emits:["change","update:modelValue"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(null),d=t.ref(null),u=(F,I,D,E=!0)=>{const j=Wd(o,F,I,D);if(j===null){if(d.value===null)return;d.value=null,c.value=null,E&&(i("update:modelValue",null),i("change",null));return}if(!ul(o,j,d.value)){c.value=F;const w=t.toRaw(j);d.value=w;let T=null;o.valueType==="text"?T=st(o,w):o.valueType==="item"?T=w:T=Tt(o,w),E&&(i("update:modelValue",T),i("change",T))}},h=t.ref([]),g=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,F=>te(F)),C=Yd(),b=async(F,I)=>{if(F){const D=await C.load("radio",F,I);if(D.length>0)if(typeof D[0]=="string"){let P=D.map(w=>Ud(w));h.value=P}else h.value=D}};t.watch([()=>o.source,()=>o.params],async([F,I])=>{b(F,I)},{immediate:!g.value});let p=!1;const v=()=>{p||(p=!0,b(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([F,I])=>{u(I,o.valueType,F,!1)});const m=e,y=t.computed(()=>({[m]:!0,[`is-${o.direction}`]:!0})),f=F=>{u(F,"value",h.value,!0)};let A=ie(o,"hintText"),R=ie(o,"hintVisible");const L=(F,I)=>{const D=[];return F.forEach((E,j)=>{const P=Tt(o,E),w=st(o,E);let T=Hd(o,E);r.value===!0&&(T=r.value),s.value===!0&&(T=s.value);const x=Gd(o,E,j)??{},q=`${P}_${j}`,B={...x,key:q,label:P,disabled:T,size:o.size,border:te(o.border)};o.itemType==="button"?D.push(t.h(k.ElRadioButton,B,{default:()=>[w]})):typeof I=="function"?D.push(t.h(k.ElRadio,B,{default:()=>I(E)})):D.push(t.h(k.ElRadio,B,{default:()=>[w]}))}),D};return()=>{const I={...l.attrs,class:y.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},D=[],E={};l.slots.options?E.default=l.slots.options:E.default=()=>L(h.value,l.slots.text);const j=t.h(k.ElRadioGroup,I,E);D.push(j);const P={default:()=>D};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const T={...Se(o,dl),hintText:A.value,hintVisible:R.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&(T["appear-listen"]=!0,T.onAppear=v),t.h(a,T,P)}}}}const{componentName:Zd,create:Jd,scope:Qd}=J("radio-item"),fl=Jd(Xd(Zd,Qd,be));function ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ef(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class tf{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function nf(){const e=t.getCurrentInstance();return new tf(e.proxy)}function hl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=ct(e,n),l=ct(e,a);if(o!==l)return!1;const r=ut(e,n),s=ut(e,a);return r===s}function of(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const l=[];return n.forEach(r=>{for(let s of o){let i=!1;if(a==="text")i=ct(e,s)===r;else if(a==="item")i=hl(e,s,r);else{let c=ut(e,s);c==null&&(c=ct(e,s)),i=c===r}if(i){l.push(s);break}}}),l}function af(e){return{text:e,value:e}}function lf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const ml={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function rf(e,n,a){return{inheritAttrs:!1,props:{...he,...we,...ml},emits:["change","update:modelValue"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref([]),d=t.ref([]),u=(F,I,D,E=!0)=>{const j=of(o,F,I,D);if(j===null){if(d.value===null||d.value.length===0)return;c.value=[],d.value=[],E&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(j.length!==d.value.length)P=!1;else for(let w=0;w<j.length;w++){const T=j[w],x=d.value[w];if(!hl(o,T,x)){P=!1;break}}if(!P){d.value=j;let w=[],T=[];j.forEach(q=>{w.push(ut(o,q)),o.valueType==="text"?T.push(ct(o,q)):o.valueType==="item"?T.push(q):T.push(ut(o,q))}),c.value=w;const x=t.toRaw(T);E&&(i("update:modelValue",x),i("change",x))}},h=t.ref([]),g=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,F=>te(F)),C=nf(),b=async(F,I)=>{if(F){const D=await C.load("checkbox",F,I);if(D.length>0)if(typeof D[0]=="string"){let P=D.map(w=>af(w));h.value=P}else h.value=D}};t.watch([()=>o.source,()=>o.params],async([F,I])=>{b(F,I)},{immediate:!g.value});let p=!1;const v=()=>{p||(p=!0,b(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([F,I])=>{u(I,o.valueType,F,!1)});const m=e,y=t.computed(()=>({[m]:!0,[`is-${o.direction}`]:!0})),f=F=>{u(F,"value",h.value,!0)};let A=ie(o,"hintText"),R=ie(o,"hintVisible");const L=(F,I)=>{const D=[];return F.forEach((E,j)=>{const P=ut(o,E),w=ct(o,E);let T=ef(o,E);r.value===!0&&(T=r.value),s.value===!0&&(T=s.value);const x=lf(o,E,j)??{},q=`${P}_${j}`,B={...x,key:q,class:o.itemClass,label:P,disabled:T,size:o.size,border:te(o.border)};o.itemType==="button"?D.push(t.h(k.ElCheckboxButton,B,{default:()=>[w]})):typeof I=="function"?D.push(t.h(k.ElCheckbox,B,{default:()=>I(E)})):D.push(t.h(k.ElCheckbox,B,{default:()=>[w]}))}),D};return()=>{const I={...l.attrs,class:y.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:f},D=[],E={};l.slots.options?E.default=l.slots.options:E.default=()=>L(h.value,l.slots.text);const j=t.h(k.ElCheckboxGroup,I,E);D.push(j);const P={default:()=>D};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const T={...Se(o,ml),hintText:A.value,hintVisible:R.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&(T["appear-listen"]=!0,T.onAppear=v),t.h(a,T,P)}}}}const{componentName:sf,create:cf,scope:uf}=J("checkbox-item"),gl=cf(rf(sf,uf,be)),pl={modelValue:{type:[Number,String],required:!1}};function df(e,n,a){return{props:{...he,...we,...pl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",p=>se(p)),d=e,u=t.computed(()=>({[d]:!0})),h=p=>{i("update:modelValue",p),i("change",p)};let g=ie(o,"hintText"),C=t.ref(!1);const b=t.ref();return fe({}),()=>{const v={...l.attrs,ref:b,class:u.value,readonly:s.value||r.value,modelValue:c.value,onChange:h},m={},y=[],f=t.h(k.ElRate,v,m);y.push(f);const A={default:()=>y};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const L={...Se(o,pl),hintText:g.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(a,L,A)}}}}const{componentName:ff,create:hf,scope:mf}=J("rate-item"),yl=hf(df(ff,mf,be)),bl={modelValue:{type:[Boolean,String,Number],required:!1}};function gf(e,n,a){return{props:{...he,...we,...bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),d=e,u=t.computed(()=>({[d]:!0})),h=p=>{i("update:modelValue",p),i("change",p)};let g=ie(o,"hintText"),C=ie(o,"hintVisible");const b=t.ref();return fe({}),()=>{const v={...l.attrs,ref:b,class:u.value,readonly:s.value,disabled:r.value,modelValue:c.value,onChange:h},m={},y=[],f=t.h(k.ElSwitch,v,m);y.push(f);const A={default:()=>y};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const L={...Se(o,bl),hintText:g.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(a,L,A)}}}}const{componentName:pf,create:yf,scope:bf}=J("switch-item"),Sl=yf(gf(pf,bf,be)),wl={modelValue:{type:[String,Number,Boolean],required:!1}};function Sf(e,n,a){return{props:{...he,...we,...wl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ve(t.computed(()=>o.disabled)),s=ke(t.computed(()=>o.readonly)),i=t.ref(!1),{emitEvent:c}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),d=ie(o,"modelValue"),u=e,h=t.computed(()=>({[u]:!0})),g=R=>{c("update:modelValue",R),c("change",R)};let C=ie(o,"hintText"),b=t.ref(!1);const p=R=>{let F=R.target.value;i.value=!0,me(C.value)||(b.value=!0),c("focus",F,R)},v=R=>{setTimeout(()=>{b.value&&(b.value=!1),i.value=!1},0);let F=R.target.value;o.maxLength&&F.length>Number(o.maxLength)&&(F=F.slice(0,Number(o.maxLength))),y.value||c("blur",F,R)},m=()=>{c("clear","")},y=t.ref(!1),f=R=>{y.value=R,c("visible-change",R),R||c("selected")},A=t.ref();return fe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const L={...l.attrs,ref:A,class:h.value,disabled:r.value||s.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:m,onFocus:p,onBlur:v,onVisibleChange:f},F={};l.slots.option&&(F.default=l.slots.option);const I=[],D=t.h(k.ElTreeSelect,L,F);I.push(D);const E={default:()=>I};l.slots.default&&(E.label=l.slots.default),l.slots.fixedTip&&(E.fixedTip=l.slots.fixedTip);const P={...Se(o,wl),hintText:C.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(a,P,E)}}}}const{componentName:wf,create:Cf,scope:kf}=J("tree-select-item"),Cl=Cf(Sf(wf,kf,be)),vf=Symbol.for("InnerPageScopeKey"),Tf=Symbol.for("PageWrapperKey");function $f(e,n){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(a,o){t.provide(vf,!0);const l={};t.provide(Tf,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=t.ref(!0),i=c=>{s.value=c};return()=>{const d={...o.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},u={};if(typeof o.slots.default=="function"){const h=o.slots.default();u.default=()=>h}return t.h(k.ElDialog,d,u)}}}}const{componentName:rm,create:Df,scope:im}=J("dialog-item"),kl=Df($f());function Ef(e,n){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(a,{slots:o}){const l=e,r=t.computed(()=>({[l]:!0})),s=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),c=t.computed(()=>{const u={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?u["is-left"]=!0:u["is-right"]=!0,u}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const p={class:s.value,style:i.value};u=t.h(a.icon??"div",p)}const h={class:c.value,style:d.value},g=o.default?o.default():[],C=t.h("div",h,g),b={class:r.value};return a.textPosition==="right"?t.h("div",b,[u,C]):t.h("div",b,[C,u])}}}}const{componentName:xf,create:Nf,scope:sm}=J("indicator"),vl=Nf(Ef(xf));function Vf(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Bf={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function If(e,n){return{props:{...Bf},setup(a,o){const l=t.ref(!0),r=t.ref(null),s=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(g=>{u[g]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),i=u=>{if(u&&te(a.showOverflowTooltip)){const h=u.clientWidth;Vf(u,g=>{l.value=g<=h})}};let c=null;t.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const u=r.value;i(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{i(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const d=(u,h)=>{let g=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const C=a.highlightFilter;if(u.indexOf(C)!==-1){const p=u.replace(new RegExp(C,"g"),`<span>${C}</span>`);h.innerHTML=p,h.class["is-highlight"]=!0,g=t.h(a.tag,h)}}else if(typeof a.highlightFilter=="function"){const C=a.highlightFilter(u);C&&(h.innerHTML=C,h.class["is-highlight"]=!0,g=t.h(a.tag,h))}return g};return()=>{const u={},h={...o.attrs,class:{...s.value},ref:r};if(te(a.numberFormat)&&typeof o.slots.default=="function"){const p=o.slots.default();if(Array.isArray(p)&&p.length===1){const v=p[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const m=se(a.digits),y=se(a.decimalLength),f=te(a.autoPadding);let A=`${p[0].children}`,R=A.split("").reverse().join("");R=Et(R,y,f,m,a.separator),A=R.split("").reverse().join("");let L=null;a.highlightFilter!==void 0&&(L=d(A,h)),L||(h.innerHTML=A,L=t.h(a.tag,h)),u.default=()=>L}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const v=o.slots.default();if(Array.isArray(v)&&v.length===1){const m=v[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const y=`${v[0].children}`;p=d(y,h),p||(h.innerHTML=y,p=t.h(a.tag,h))}}}p||(p=t.h(a.tag,h,{default:o.slots.default})),u.default=()=>p}const C={disabled:l.value};return u.content=o.slots.default,t.h(k.ElTooltip,C,u)}}}}const{componentName:Af,create:Of,scope:cm}=J("text"),Tl=Of(If(Af)),{create:Rf}=J("toast"),Ff=Rf({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:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,C=>{C&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const C=ce(e.iconSize);return t.h(e.icon,{width:C,height:C,color:e.iconColor})},u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:h,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Lf={key:1,class:"fox-toast-title"},Mf=["innerHTML"];function Pf(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Lf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Mf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const $l=ue(Ff,[["render",Pf]]),qf={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:$e.ArrowUp}};function zf(e,n,a){return{props:{...qf},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const h={[`${e}`]:!0};return o.disabled?h[`${e}__disabled`]=!0:h[`${e}__${o.type}`]=!0,h}),s=ie(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),u=()=>{l("update:modelValue",!s.value)};return()=>{const h=[];if(i.value){const p={class:c.value},v=t.h("span",p,[i.value]);h.push(v)}const g={class:d.value},C=a(o.icon,g);return C&&h.push(C),t.h("div",{class:r.value,onClick:u},h)}}}}const{componentName:jf,create:_f,scope:Hf}=J("more-button"),Dl=_f(zf(jf,Hf,(e,n)=>(e=e??$e.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Kf,create:Yf,scope:dm}=J("tour"),Wf=Yf({components:{Close:$e.Close,ElPopover:k.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:n}){const a=Kf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:b,maskWidth:p,maskHeight:v}=e,{width:m,height:y,left:f,top:A}=l.value,R=e.steps[o.active].offset??b,L=[f+m/2,A+y/2],F=Number(p||m),I=Number(v||y);return{width:`${F+ +R.left+R.right}px`,height:`${I+R.top+R.bottom}px`,top:`${L[1]-I/2-+R.top}px`,left:`${L[0]-F/2-+R.left}px`}}),i=b=>{b=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,u()}),n("change",o.active)},c=b=>b.popoverWidth??e.width,d=b=>b.location??e.location,u=()=>{const b=document.querySelector(`${e.steps[o.active].target}`),p=He(b);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},h=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&h()},C=(b,p=0)=>{b&&u(),e.steps,o.active=p,o.showTour=b,o.showPopup=b};return t.onMounted(()=>{C(e.modelValue,e.current)}),t.watch(()=>e.modelValue,b=>{C(b)}),{...t.toRefs(o),classes:r,maskStyle:s,changeStep:i,popoverWidth:c,popoverLocation:d,close:h,handleClickMask:g}}}),Uf={key:0,class:"fox-tour__content"},Gf={key:0,class:"fox-tour__content-top"},Xf={class:"fox-tour__content-inner"},Zf={class:"fox-tour__content-bottom"},Jf={class:"fox-tour__content-bottom-init"},Qf={class:"fox-tour__content-bottom-operate"},eh={key:1,class:"fox-tour__content fox-tour__content-tile"},th={class:"fox-tour__content-inner"};function nh(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Uf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Gf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Xf,t.toDisplayString(d.content),1),t.createElementVNode("div",Zf,[t.createElementVNode("div",Jf,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Qf,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=h=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",eh,[t.createElementVNode("div",th,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const El=ue(Wf,[["render",nh]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Je=e=>e==null,xl=10;function oh(e,n){return e>n&&e>xl?"horizontal":n>e&&n>xl?"vertical":""}function ah(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=oh(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function lh(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function rh(e){e.stopPropagation()}function ih(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&rh(e)}class sh{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=lh()}open(n){this.el=n;const a=ah(),o=(l,r,s,i,c)=>{this.updateMove({x:r,y:s})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&ih(l,!0),o(n,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(n,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Nl(e,n){return new sh(e,n)}var Vl;const Gn=typeof window<"u";Gn&&((Vl=window?.navigator)!=null&&Vl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let dt=[];const Bl=e=>{const n=e;n.key==="Escape"&&dt.forEach(a=>a(n))},ch=e=>{t.onMounted(()=>{dt.length===0&&document.addEventListener("keydown",Bl),Gn&&dt.push(e)}),t.onBeforeUnmount(()=>{dt=dt.filter(n=>n!==e),dt.length===0&&Gn&&document.removeEventListener("keydown",Bl)})},Xn="fox-focus-trap.focus-after-trapped",Zn="fox-focus-trap.focus-after-released",uh="fox-focus-trap.focusout-prevented",Il={cancelable:!0,bubbles:!1},dh={cancelable:!0,bubbles:!1},Al="foxFocusAfterTrapped",Ol="foxFocusAfterReleased",fh=Symbol("foxFocusTrap"),Jn=t.ref(),en=t.ref(0),Qn=t.ref(0);let tn=0;const Rl=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},hh=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Fl=(e,n)=>{for(const a of e)if(!hh(a,n))return a},mh=e=>{const n=Rl(e),a=Fl(n,e),o=Fl(n.reverse(),e);return[a,o]},gh=e=>e instanceof HTMLInputElement&&"select"in e,Ye=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Qn.value=window.performance.now(),e!==a&&gh(e)&&n&&e.select()}};function Ll(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const ph=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Ll(e,o),e.unshift(o)},remove:o=>{e=Ll(e,o),e[0]?.resume?.()}}},yh=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(Ye(o,n),document.activeElement!==a)return},Ml=ph(),bh=()=>en.value>Qn.value,nn=()=>{Jn.value="pointer",en.value=window.performance.now()},Pl=()=>{Jn.value="keyboard",en.value=window.performance.now()},Sh=()=>(t.onMounted(()=>{tn===0&&(document.addEventListener("mousedown",nn),document.addEventListener("touchstart",nn),document.addEventListener("keydown",Pl)),tn++}),t.onBeforeUnmount(()=>{tn--,tn<=0&&(document.removeEventListener("mousedown",nn),document.removeEventListener("touchstart",nn),document.removeEventListener("keydown",Pl))}),{focusReason:Jn,lastUserFocusTimestamp:en,lastAutomatedFocusTimestamp:Qn}),on=e=>new CustomEvent(uh,{...dh,detail:e}),{componentName:fm,create:wh,scope:hm}=J("focus-trap"),Ch=wh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Al,Ol,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:s}=Sh();ch(p=>{te(e.trapped)&&!i.paused&&a("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=p=>{if(!e.loop&&!te(e.trapped)||i.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:f,currentTarget:A,shiftKey:R}=p,{loop:L}=e,F=v==="Tab"&&!m&&!y&&!f,I=document.activeElement;if(F&&I){const D=A,[E,j]=mh(D);if(E&&j){if(!R&&I===j){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||(p.preventDefault(),L&&Ye(E,!0))}else if(R&&[E,D].includes(I)){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||(p.preventDefault(),L&&Ye(j,!0))}}else if(I===D){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||p.preventDefault()}}};t.provide(fh,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,p=>{p&&(o.value=p)},{immediate:!0}),t.watch([o],([p],[v])=>{p&&(p.addEventListener("keydown",c),p.addEventListener("focusin",h),p.addEventListener("focusout",g)),v&&(v.removeEventListener("keydown",c),v.removeEventListener("focusin",h),v.removeEventListener("focusout",g))});const d=p=>{a(Al,p)},u=p=>a(Ol,p),h=p=>{const v=t.unref(o);if(!v)return;const m=p.target,y=p.relatedTarget,f=m&&v.contains(m);te(e.trapped)||y&&v.contains(y)||(l=y),f&&a("focusin",p),!i.paused&&te(e.trapped)&&(f?r=m:Ye(r,!0))},g=p=>{const v=t.unref(o);if(!(i.paused||!v))if(!e.escape&&te(e.trapped)){const m=p.relatedTarget;!bn(m)&&!v.contains(m)&&setTimeout(()=>{if(!i.paused&&te(e.trapped)){const y=on({focusReason:s.value});a("focusout-prevented",y),y.defaultPrevented||Ye(r,!0)}},0)}else{const m=p.target;m&&v.contains(m)||a("focusout",p)}};async function C(){await t.nextTick();const p=t.unref(o);if(p){Ml.push(i);const v=p.contains(document.activeElement)?l:document.activeElement;if(l=v,!p.contains(v)){const y=new Event(Xn,Il);p.addEventListener(Xn,d),p.dispatchEvent(y),y.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;uo(f)||(Ye(f),document.activeElement!==f&&(f="first")),f==="first"&&yh(Rl(p),!0),(document.activeElement===v||f==="container")&&Ye(p)})}}}function b(){const p=t.unref(o);if(p){p.removeEventListener(Xn,d);const v=new CustomEvent(Zn,{...Il,detail:{focusReason:s.value}});p.addEventListener(Zn,u),p.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!bh())&&Ye(l??document.body,!0),p.removeEventListener(Zn,d),Ml.remove(i)}}return t.onMounted(()=>{te(e.trapped)&&C(),t.watch(()=>e.trapped,p=>{te(p)?C():b()})}),t.onBeforeUnmount(()=>{te(e.trapped)&&b()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:kh,create:vh,scope:gm}=J("floating-window"),Th=Symbol.for("InnerPageScopeKey"),$h=Symbol.for("PageWrapperKey"),Dh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Eh=vh({inheritAttrs:!1,components:{FoxIcon:k.ElIcon,FocusTrap:Ch},props:{...Dh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=kh,o=t.ref(e.modelValue);t.watch(()=>e.modelValue,$=>{o.value=$});const l=t.computed(()=>o.value===!1?!1:!I.value),r=t.ref(e.left),s=t.ref(e.top),i=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),u=t.computed(()=>{const $={};return Je(r.value)?$.left="auto":$.left=Ee(r.value),Je(s.value)?$.top="auto":$.top=Ee(s.value),Je(i.value)?$.right="auto":$.right=Ee(i.value),Je(c.value)?$.bottom="auto":$.bottom=Ee(c.value),Je(e.zIndex)||($["z-index"]=Ee(e.zIndex)),Je(L.value)||($.height=L.value),Je(F.value)||($.width=F.value),$}),h=t.computed(()=>e.closeIcon??$e.Close);t.provide(Th,!0);const g={};t.provide($h,g);const C=()=>{typeof g.beforeClose=="function"?g.beforeClose(()=>{o.value=!1}):o.value=!1},b=t.computed(()=>e.collapseIcon??$e.ArrowUp),p=t.computed(()=>e.collapseText??""),v=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),m=t.computed(()=>e.expandText??e.title??"展开"),y=t.computed(()=>({[`${a}__collapse-text`]:!0})),f=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),A=t.ref(),R=t.ref(),L=t.computed(()=>Ee(e.height)||""),F=t.computed(()=>Ee(e.width)||""),I=t.ref(te(e.collapse)),D=($,V=!0)=>{I.value!==$&&(I.value=$,$?N():z(),n("update:collapse",$))};t.watch(()=>e.collapse,$=>{D($)});const E=()=>{j()},j=$=>{$=$??!I.value,D($)},P=t.ref(null),w=t.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),T=t.ref(""),x=t.computed(()=>{const $={};return T.value?$.top=T.value:e.collapseTop&&($.top=e.collapseTop),$}),q=t.ref(I.value);let B=null;const O=()=>{typeof B=="function"&&(B(),B=null)},N=()=>{P.value&&P.value.classList.add("slide-in"),q.value=!0,B=()=>{P.value&&P.value.classList.remove("slide-in")}},z=()=>{P.value&&P.value.classList.add("slide-out"),B=()=>{P.value&&P.value.classList.remove("slide-out"),q.value=!1}},H=()=>{r.value=null,s.value=null,i.value=null,c.value=null},K={x:0,y:0},oe=Nl($=>{if(!A.value)return;const V=A.value;if(H(),e.origin==="left-top")r.value=V.offsetLeft,s.value=V.offsetTop,K.x=r.value,K.y=s.value;else if(e.origin==="left-bottom"){const _=document.documentElement.clientHeight||document.body.clientHeight;r.value=V.offsetLeft,c.value=_-(V.offsetTop+V.offsetHeight),K.x=r.value,K.y=c.value}else if(e.origin==="right-bottom"){const _=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight;i.value=_-(V.offsetLeft+V.offsetWidth),c.value=Y-(V.offsetTop+V.offsetHeight),K.x=i.value,K.y=c.value}else{const _=document.documentElement.clientWidth||document.body.clientWidth;i.value=_-(V.offsetLeft+V.offsetWidth),s.value=V.offsetTop,K.x=i.value,K.y=s.value}},$=>{if(!A.value)return;const V=A.value;H(),e.origin==="left-top"?(r.value=K.x+$.x,s.value=K.y+$.y,V.style.left=Ee(r.value),V.style.top=Ee(s.value)):e.origin==="left-bottom"?(r.value=K.x+$.x,c.value=K.y-$.y,V.style.left=Ee(r.value),V.style.bottom=Ee(c.value)):e.origin==="right-bottom"?(i.value=K.x-$.x,c.value=K.y-$.y,V.style.right=Ee(i.value),V.style.bottom=Ee(c.value)):(i.value=K.x-$.x,s.value=K.y+$.y,V.style.right=Ee(i.value),V.style.top=Ee(s.value))}),re={x:0,y:0},M=Nl($=>{P.value&&(re.x=P.value.offsetLeft,re.y=P.value.offsetTop)},$=>{if(!P.value)return;const V=re.y+$.y;T.value=`${V}px`});return t.onMounted(()=>{e.draggable&&R.value&&A.value&&oe.open(R.value),e.collapse===!0&&D(e.collapse,!1),P.value&&M.open(P.value)}),t.onBeforeUnmount(()=>{e.draggable&&R.value&&oe.close(),P.value&&M.close()}),{classes:d,styles:u,isShow:l,closeIcon:h,onClose:C,dialogRef:A,headerRef:R,onClickToggle:E,collapseIcon:b,collapseText:p,collapseTextClasses:y,collapseIconClasses:f,expandIcon:v,expandText:m,isShowFixedNav:q,fixedNavRef:P,fixedNavClasses:w,fixedNavStyles:x,onAnimationEnd:O}}}),xh={ref:"headerRef",class:"fox-floating-window__header"},Nh={class:"fox-floating-window__title"},Vh={class:"fox-floating-window__tools"},Bh={class:"fox-floating-window__body"},Ih={class:"fox-floating-window__fixednav__text"};function Ah(e,n,a,o,l,r){const s=t.resolveComponent("FoxIcon"),i=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.appendToBody},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",xh,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Nh,t.toDisplayString(e.title),1),t.createElementVNode("div",Vh,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(s,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Bh,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["disabled"])),t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Ih,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],64)}const ql=ue(Eh,[["render",Ah]]);function Oh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Bo(a.name,a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:pm,create:Rh,scope:ym}=J("domain-provider"),zl=Rh(Oh()),Fh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Lh(e,n){return{inheritAttrs:!1,props:Fh,setup(a,{slots:o}){if(Ge&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,C)=>{if(u===null){r.set(g,{visible:null,callback:C});return}l.has(g)&&u.unobserve(g),l.set(g,{visible:null,callback:C}),u.observe(g)},i=g=>{if(u===null){r.delete(g);return}l.has(g)&&(l.delete(g),u.unobserve(g))};let c=a.initialVisibleObserverSize;ki({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let u=null;const h=(g,C,b)=>{u=new IntersectionObserver(p=>{for(let v of p){let m=!1;v.intersectionRatio>0&&(m=!0);const y=l.get(v.target);if(y)try{if(a.loadPolicy==="lazy"&&!m&&y.visible!==null)return;y.visible=m,y.callback(m)}catch(f){console.error(f)}}},{root:g,rootMargin:C,threshold:b}),r.forEach((p,v)=>{l.set(v,p),u?.observe(v)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,C])=>{if(C||!g||u)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&h(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:bm,create:Mh,scope:Sm}=J("rolling-provider"),jl=Mh(Lh()),Ph=[qo,zo,jo,_o,Wo,be,Qo,ea,Ht,na,pa,xa,Aa,Ra,La,_a,Ka,el,nl,al,rl,Yn,cl,fl,gl,yl,Sl,Cl,kl,Qt,Vn,vl,Tl,$l,Yt,Ke,Ct,qn,jn,Jt,Zt,Kn,Dl,El,Xt,ql,zl,jl],qh=new Dr(Ph,[Nr],"4.0.0");Object.defineProperty(S,"FoxAffix",{enumerable:!0,get:()=>k.ElAffix}),Object.defineProperty(S,"FoxAlert",{enumerable:!0,get:()=>k.ElAlert}),Object.defineProperty(S,"FoxAside",{enumerable:!0,get:()=>k.ElAside}),Object.defineProperty(S,"FoxAutoResizer",{enumerable:!0,get:()=>k.ElAutoResizer}),Object.defineProperty(S,"FoxAutocomplete",{enumerable:!0,get:()=>k.ElAutocomplete}),Object.defineProperty(S,"FoxAvatar",{enumerable:!0,get:()=>k.ElAvatar}),Object.defineProperty(S,"FoxBacktop",{enumerable:!0,get:()=>k.ElBacktop}),Object.defineProperty(S,"FoxBadge",{enumerable:!0,get:()=>k.ElBadge}),Object.defineProperty(S,"FoxBreadcrumb",{enumerable:!0,get:()=>k.ElBreadcrumb}),Object.defineProperty(S,"FoxBreadcrumbItem",{enumerable:!0,get:()=>k.ElBreadcrumbItem}),Object.defineProperty(S,"FoxButton",{enumerable:!0,get:()=>k.ElButton}),Object.defineProperty(S,"FoxButtonGroup",{enumerable:!0,get:()=>k.ElButtonGroup}),Object.defineProperty(S,"FoxCalendar",{enumerable:!0,get:()=>k.ElCalendar}),Object.defineProperty(S,"FoxCard",{enumerable:!0,get:()=>k.ElCard}),Object.defineProperty(S,"FoxCarousel",{enumerable:!0,get:()=>k.ElCarousel}),Object.defineProperty(S,"FoxCarouselItem",{enumerable:!0,get:()=>k.ElCarouselItem}),Object.defineProperty(S,"FoxCascader",{enumerable:!0,get:()=>k.ElCascader}),Object.defineProperty(S,"FoxCascaderPanel",{enumerable:!0,get:()=>k.ElCascaderPanel}),Object.defineProperty(S,"FoxCheckTag",{enumerable:!0,get:()=>k.ElCheckTag}),Object.defineProperty(S,"FoxCheckbox",{enumerable:!0,get:()=>k.ElCheckbox}),Object.defineProperty(S,"FoxCheckboxButton",{enumerable:!0,get:()=>k.ElCheckboxButton}),Object.defineProperty(S,"FoxCheckboxGroup",{enumerable:!0,get:()=>k.ElCheckboxGroup}),Object.defineProperty(S,"FoxCol",{enumerable:!0,get:()=>k.ElCol}),Object.defineProperty(S,"FoxCollapse",{enumerable:!0,get:()=>k.ElCollapse}),Object.defineProperty(S,"FoxCollapseItem",{enumerable:!0,get:()=>k.ElCollapseItem}),Object.defineProperty(S,"FoxCollapseTransition",{enumerable:!0,get:()=>k.ElCollapseTransition}),Object.defineProperty(S,"FoxColorPicker",{enumerable:!0,get:()=>k.ElColorPicker}),Object.defineProperty(S,"FoxConfigProvider",{enumerable:!0,get:()=>k.ElConfigProvider}),Object.defineProperty(S,"FoxContainer",{enumerable:!0,get:()=>k.ElContainer}),Object.defineProperty(S,"FoxDatePicker",{enumerable:!0,get:()=>k.ElDatePicker}),Object.defineProperty(S,"FoxDescriptions",{enumerable:!0,get:()=>k.ElDescriptions}),Object.defineProperty(S,"FoxDescriptionsItem",{enumerable:!0,get:()=>k.ElDescriptionsItem}),Object.defineProperty(S,"FoxDialog",{enumerable:!0,get:()=>k.ElDialog}),Object.defineProperty(S,"FoxDivider",{enumerable:!0,get:()=>k.ElDivider}),Object.defineProperty(S,"FoxDrawer",{enumerable:!0,get:()=>k.ElDrawer}),Object.defineProperty(S,"FoxDropdown",{enumerable:!0,get:()=>k.ElDropdown}),Object.defineProperty(S,"FoxDropdownItem",{enumerable:!0,get:()=>k.ElDropdownItem}),Object.defineProperty(S,"FoxDropdownMenu",{enumerable:!0,get:()=>k.ElDropdownMenu}),Object.defineProperty(S,"FoxEmpty",{enumerable:!0,get:()=>k.ElEmpty}),Object.defineProperty(S,"FoxFooter",{enumerable:!0,get:()=>k.ElFooter}),Object.defineProperty(S,"FoxForm",{enumerable:!0,get:()=>k.ElForm}),Object.defineProperty(S,"FoxFormItem",{enumerable:!0,get:()=>k.ElFormItem}),Object.defineProperty(S,"FoxHeader",{enumerable:!0,get:()=>k.ElHeader}),Object.defineProperty(S,"FoxIcon",{enumerable:!0,get:()=>k.ElIcon}),Object.defineProperty(S,"FoxImage",{enumerable:!0,get:()=>k.ElImage}),Object.defineProperty(S,"FoxImageViewer",{enumerable:!0,get:()=>k.ElImageViewer}),Object.defineProperty(S,"FoxInput",{enumerable:!0,get:()=>k.ElInput}),Object.defineProperty(S,"FoxInputNumber",{enumerable:!0,get:()=>k.ElInputNumber}),Object.defineProperty(S,"FoxLink",{enumerable:!0,get:()=>k.ElLink}),Object.defineProperty(S,"FoxMain",{enumerable:!0,get:()=>k.ElMain}),Object.defineProperty(S,"FoxMenu",{enumerable:!0,get:()=>k.ElMenu}),Object.defineProperty(S,"FoxMenuItem",{enumerable:!0,get:()=>k.ElMenuItem}),Object.defineProperty(S,"FoxMenuItemGroup",{enumerable:!0,get:()=>k.ElMenuItemGroup}),Object.defineProperty(S,"FoxOption",{enumerable:!0,get:()=>k.ElOption}),Object.defineProperty(S,"FoxOptionGroup",{enumerable:!0,get:()=>k.ElOptionGroup}),Object.defineProperty(S,"FoxPageHeader",{enumerable:!0,get:()=>k.ElPageHeader}),Object.defineProperty(S,"FoxPagination",{enumerable:!0,get:()=>k.ElPagination}),Object.defineProperty(S,"FoxPopconfirm",{enumerable:!0,get:()=>k.ElPopconfirm}),Object.defineProperty(S,"FoxPopover",{enumerable:!0,get:()=>k.ElPopover}),Object.defineProperty(S,"FoxPopper",{enumerable:!0,get:()=>k.ElPopper}),Object.defineProperty(S,"FoxProgress",{enumerable:!0,get:()=>k.ElProgress}),Object.defineProperty(S,"FoxRadio",{enumerable:!0,get:()=>k.ElRadio}),Object.defineProperty(S,"FoxRadioButton",{enumerable:!0,get:()=>k.ElRadioButton}),Object.defineProperty(S,"FoxRadioGroup",{enumerable:!0,get:()=>k.ElRadioGroup}),Object.defineProperty(S,"FoxRate",{enumerable:!0,get:()=>k.ElRate}),Object.defineProperty(S,"FoxResult",{enumerable:!0,get:()=>k.ElResult}),Object.defineProperty(S,"FoxRow",{enumerable:!0,get:()=>k.ElRow}),Object.defineProperty(S,"FoxScrollbar",{enumerable:!0,get:()=>k.ElScrollbar}),Object.defineProperty(S,"FoxSelect",{enumerable:!0,get:()=>k.ElSelect}),Object.defineProperty(S,"FoxSelectV2",{enumerable:!0,get:()=>k.ElSelectV2}),Object.defineProperty(S,"FoxSkeleton",{enumerable:!0,get:()=>k.ElSkeleton}),Object.defineProperty(S,"FoxSkeletonItem",{enumerable:!0,get:()=>k.ElSkeletonItem}),Object.defineProperty(S,"FoxSlider",{enumerable:!0,get:()=>k.ElSlider}),Object.defineProperty(S,"FoxSpace",{enumerable:!0,get:()=>k.ElSpace}),Object.defineProperty(S,"FoxStep",{enumerable:!0,get:()=>k.ElStep}),Object.defineProperty(S,"FoxSteps",{enumerable:!0,get:()=>k.ElSteps}),Object.defineProperty(S,"FoxSubMenu",{enumerable:!0,get:()=>k.ElSubMenu}),Object.defineProperty(S,"FoxSwitch",{enumerable:!0,get:()=>k.ElSwitch}),Object.defineProperty(S,"FoxTabPane",{enumerable:!0,get:()=>k.ElTabPane}),Object.defineProperty(S,"FoxTable",{enumerable:!0,get:()=>k.ElTable}),Object.defineProperty(S,"FoxTableColumn",{enumerable:!0,get:()=>k.ElTableColumn}),Object.defineProperty(S,"FoxTableV2",{enumerable:!0,get:()=>k.ElTableV2}),Object.defineProperty(S,"FoxTabs",{enumerable:!0,get:()=>k.ElTabs}),Object.defineProperty(S,"FoxTag",{enumerable:!0,get:()=>k.ElTag}),Object.defineProperty(S,"FoxTimePicker",{enumerable:!0,get:()=>k.ElTimePicker}),Object.defineProperty(S,"FoxTimeSelect",{enumerable:!0,get:()=>k.ElTimeSelect}),Object.defineProperty(S,"FoxTimeline",{enumerable:!0,get:()=>k.ElTimeline}),Object.defineProperty(S,"FoxTimelineItem",{enumerable:!0,get:()=>k.ElTimelineItem}),Object.defineProperty(S,"FoxTooltip",{enumerable:!0,get:()=>k.ElTooltip}),Object.defineProperty(S,"FoxTransfer",{enumerable:!0,get:()=>k.ElTransfer}),Object.defineProperty(S,"FoxTree",{enumerable:!0,get:()=>k.ElTree}),Object.defineProperty(S,"FoxTreeSelect",{enumerable:!0,get:()=>k.ElTreeSelect}),Object.defineProperty(S,"FoxTreeV2",{enumerable:!0,get:()=>k.ElTreeV2}),Object.defineProperty(S,"FoxUpload",{enumerable:!0,get:()=>k.ElUpload}),S.AutocompleteItem=nl,S.Broadcast=Sn,S.BroadcastKey=ge,S.CalendarItem=Aa,S.CalendarPicker=jn,S.CascaderItem=el,S.CascaderPicker=Kn,S.CheckboxItem=gl,S.Content=_o,S.DataItemsKey=nt,S.DateItem=xa,S.DatePicker=qn,S.DateUtils=X,S.DialogItem=kl,S.Domain=It,S.DomainKey=Ne,S.DomainProvider=zl,S.ExtTabPane=Jt,S.ExtTabs=Zt,S.FloatingWindow=ql,S.FooterBar=jo,S.Group=Wo,S.HeaderBar=zo,S.HintText=Ht,S.Indicator=vl,S.InputItem=na,S.InputNumberItem=Ka,S.Item=be,S.Mapping=Qt,S.MoneyItem=_a,S.MoreButton=Dl,S.Overlay=Yt,S.Page=qo,S.Picker=Ct,S.Popup=Ke,S.Price=Vn,S.PriorityPolicy=_e,S.RadioItem=fl,S.RateItem=yl,S.RollingProvider=jl,S.RowItem=ea,S.SelectItem=pa,S.SlotItem=Qo,S.SwitchItem=Sl,S.TableItem=cl,S.TableMappingColumn=al,S.TableRadioColumn=rl,S.TableSetting=Yn,S.Text=Tl,S.TimeItem=Ra,S.TimeSelectItem=La,S.Toast=$l,S.Tour=El,S.TreeSelectItem=Cl,S.UniqueID=Zo,S.ValidateSchema=xo,S.ValidateSchemaKey=Me,S.cancelRaf=Kl,S.clearNonNumber=or,S.clone=pn,S.compareTo=hn,S.createBroadcast=Nt,S.createValidateSchema=Bt,S.debounce=yt,S.debounceRef=pr,S.decimalLength=Co,S.default=qh,S.defineBroadcast=ir,S.defineConfigDomain=Bo,S.defineDataItem=Ao,S.defineDomain=kn,S.defineItem=pe,S.definePageState=Oo,S.deleteGlobalValidator=dr,S.disabledProperty=ve,S.divide=fn,S.excludeProps=Se,S.extend=Ue,S.floatData=rr,S.getGlobalValidateCheckEvents=$o,S.getGlobalValidateResetEvents=Eo,S.getPageContentAreaHeight=Ot,S.getPageContentAreaWidth=Rt,S.getPageFooterAreaHeight=St,S.getPageHeaderAreaHeight=bt,S.getRootDomain=ot,S.hasSymbol=ho,S.includeProps=mt,S.indexOf=ar,S.installRules=Io,S.integerLength=wo,S.isArray=Wl,S.isArrayLike=po,S.isBrowser=Ge,S.isDate=Fe,S.isESModule=Jl,S.isEmptyString=me,S.isEqual=Le,S.isFunction=mn,S.isHidden=go,S.isInnerPage=Sr,S.isMap=Ul,S.isNil=bn,S.isNumberString=So,S.isObject=Be,S.isPlainObject=gn,S.isPromise=Zl,S.isRegExp=bo,S.isSet=Gl,S.isString=uo,S.isSubPage=wr,S.isSymbol=Xl,S.isWindow=mo,S.lastIndexOf=lr,S.makeArray=nr,S.merge=yo,S.multiply=ro,S.negate=io,S.nextTick=er,S.numberFormat=Et,S.objectToString=fo,S.once=yr,S.property=xe,S.raf=co,S.readonlyProperty=ke,S.setGlobalValidateCheckEvents=fr,S.setGlobalValidateHandler=cr,S.setGlobalValidateMessages=mr,S.setGlobalValidateResetEvents=hr,S.setGlobalValidator=ur,S.sticky=Xt,S.throttle=Vo,S.toBoolean=te,S.toNumber=se,S.toPadding=Ie,S.toPx=ce,S.toPxDesc=ye,S.toTypeString=xt,S.toValue=ie,S.tryTimes=wn,S.typeOf=tt,S.unNumberFormat=so,S.updatePageState=vn,S.useBroadcast=gt,S.useDomain=Pe,S.useExpose=fe,S.useInnerSize=En,S.usePageState=At,S.usePosition=Uo,S.useRect=He,S.useSize=Dn,S.useTouch=Rn,S.valueLength=Ve,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function xt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=ke(e),n=ke(n),[e,n]=sn(ke(e),ke(n)),a==1&&(o==1?e=rn(e):n=rn(n));let l=oo(e,n);return a?a==2?"-"+ke(l):e.length<l.length?ke(l.substring(1)):"-"+ke(rn(l)):ke(l)}function rn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return oo(n,r)}function ke(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function sn(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function oo(e,n){[e,n]=sn(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var fe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(fe||{});function ft(e,n=0,a=fe.HALF_EVEN){if(a===fe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=ft(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,ao(l[1],r,o,a)?(o?"-":"")+cn(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&ao(i,s,o,a)&&(s=cn(s),s.length>n)?(o?"-":"")+cn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function ao(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===fe.DOWN||!a&&o===fe.FLOOR||a&&o===fe.CEILING)return!1;if(o===fe.UP||a&&o===fe.FLOOR||!a&&o===fe.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function cn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function un(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=mt(e),n=mt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=mt(e.replace(".","")),n=mt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,u="";for(let m=0;m<s;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let g=0;for(let T=n.length-1;T>=f&&T>=0;T--)c[T]>-1&&c[T]<e.length&&(g+=parseInt(e[c[T]--])*parseInt(n[T]));g+=i,i=Math.floor(g/10),u=g%10+u,f--}return u=mt(Ul(u,r)),a==1&&(u="-"+u),u}function Ul(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function mt(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 dn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=ke(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=ke(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=ke(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let u=e.length-f+l;e=ke(e.substring(0,u)+"."+e.substring(u))}else l==f&&(e=ke(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=xt(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+ke(ft(i,a-2))}function fn(e,n){return e=e.toString(),n=n.toString(),n=mn(n),xt(e,n)}function mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function lo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ro(e),ro(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=fn(e,un(n,ft(dn(e,n),0,fe.FLOOR)));return a+o}function ro(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function io(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=sn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ae{value;static RoundingModes=fe;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=ke(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+ke(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ae.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ae.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ae.getPrettyValue(this.value,n,a)}static round(n,a=0,o=fe.HALF_EVEN){if(n=ae.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ft(n,a,o)}round(n=0,a=fe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ae(ft(this.value,n,a))}static floor(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.FLOOR)}static ceil(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.CEILING)}static add(n,a){return n=ae.validate(n),a=ae.validate(a),xt(n,a)}add(n){return new ae(xt(this.value,n.getValue()))}static subtract(n,a){return n=ae.validate(n),a=ae.validate(a),fn(n,a)}subtract(n){return new ae(fn(this.value,n.getValue()))}static multiply(n,a){return n=ae.validate(n),a=ae.validate(a),un(n,a)}multiply(n){return new ae(un(this.value,n.getValue()))}static divide(n,a,o){return n=ae.validate(n),a=ae.validate(a),dn(n,a,o)}divide(n,a){return new ae(dn(this.value,n.getValue(),a))}static modulus(n,a){return n=ae.validate(n),a=ae.validate(a),lo(n,a)}modulus(n){return new ae(lo(this.value,n.getValue()))}static compareTo(n,a){return n=ae.validate(n),a=ae.validate(a),io(n,a)}compareTo(n){return io(this.value,n.getValue())}static negate(n){return n=ae.validate(n),mn(n)}negate(){return new ae(mn(this.value))}}function so(e,n){return ae.multiply(`${e}`,`${n}`)}function hn(e,n,a=8){return ae.divide(`${e}`,`${n}`,a)}function gn(e,n){return e=`${e}`,n=`${n}`,ae.compareTo(e,n)}function co(e){return ae.negate(e)}function Nt(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let u;if(o>0){let m="",g=i.split("").reverse();for(let T=0;T<g.length;T++)m+=g[T]+((T+1)%o==0&&T+1!=g.length?l:"");c.length==0?u=`${s}${m.split("").reverse().join("")}`:u=`${s}${m.split("").reverse().join("")}.${c}`}else c.length==0?u=`${s}${i}`:u=`${s}${i}.${c}`;return u}function uo(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const fo=no,Gl=Array.isArray,Xl=e=>Vt(e)==="[object Map]",Zl=e=>Vt(e)==="[object Set]",Le=e=>e instanceof Date,pn=e=>typeof e=="function",mo=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",Ql=e=>Ie(e)&&pn(e.then)&&pn(e.catch),ho=Object.prototype.toString,Vt=e=>ho.call(e),yn=e=>Vt(e)==="[object Object]",go=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function er(e){return e.__esModule||go&&e[Symbol.toStringTag]==="Module"}const tr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ge(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=Ge(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function bn(e,n,a=!1){if(!a)Ge(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yn(s))continue;r=bn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yn(s))continue;r=bn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Sn=tr?Promise.resolve():null;function nr(e,...n){Sn!==null?n&&n.length>0?Sn.then(()=>{e(n)}):Sn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ne(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function se(e){return typeof e=="number"?e:Number(e)}const or={"[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 et(e){let a=Object.prototype.toString.call(e);return e==null?String(e):or[a]||"object"}function po(e){return e&&typeof e=="object"&&"setInterval"in e}function yo(e){return!e||e.offsetParent===null}function bo(e){let n=!!e&&"length"in e&&e.length,a=et(e);return a==="function"||po(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function So(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function ar(e,n=[]){let a=n;return e!=null&&(bo(Object(e))?So(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=et(e),o=et(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!Me(c,f))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Me(r,s))return!1}return!0}return!1}const Xe=typeof window<"u";function wn(e){return e==null}function wo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Co(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 vo(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function ko(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function To(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function lr(e,n=!0,a=!0){n?e=To(e,".",/\./g):e=e.replace(/\./g,""),a?e=To(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function rr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function ir(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ht(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Ce(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const sr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e},ye=Symbol.for("BroadcastKey");class Cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):wo(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Bt(e,n,a,o){const l=new Cn(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function cr(e,n,a){const o=a;if(o[ye])return o[ye];const l=t.inject(ye,null),r=new Cn(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ye]=r,t.provide(ye,r),t.onUnmounted(()=>{r.destroy(),o[ye]=void 0}),r}function gt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Ze=e=>e.default??e;class ur{error(n,a){const o=a,l=gt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=gt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let $o=new ur;function dr(e){$o=e}function fr(e,n){Ze(Ue).setValidator(e,n)}function mr(e){Ze(Ue).deleteValidator(e)}let Do=["blur","clear"];function hr(e){Do=e}function Eo(){return Do}let xo=["focus","change"];function gr(e){xo=e}function No(){return xo}function pr(e){Ze(Ue).messages(e)}function pt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function It(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Pe=Symbol("ValidateSchemaKey");class Vo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=It(pt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=It(o);const l=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=$o;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?Ze(Ue).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?Ze(Ue).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Ze(Ue).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=It(n):this.rules=It([n]);const o=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=Ze(Ue),c=new i(l),f=this.proxy??s;return c.validate(s,{context:f}).then(m=>{if(m.pass)this.success();else{let g="error";Array.isArray(m.errors)&&m.errors.length>0&&(g=m.errors[0].message??g,m.errors=[m.errors[0]],m.errors[0].ref=f),this.error(g)}return m}).catch(m=>{const g=m.message??`${m}`;return this.error(g),m})}}return Promise.resolve({pass:!0})}}function At(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Vo(n,a,e)}const Bo=Symbol.for("EventEmitterKey");class yr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Io(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function br(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Sr(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function vn(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ve=Symbol("DomainKey"),tt=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const wr=new Ot;function nt(){return wr}function qe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const kn=Symbol("OriginalDateKey");function Tn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ve,null);s===null&&(s=nt());const i=e||n.prop||n.name,c=new Ot(i);c.parent=s;const f=y=>{r[kn]||g(y),c.set("modelValue",y)},u=()=>c.getForSelf("modelValue")??null,m=()=>r[kn]??null,g=y=>{const w={};Ge(!0,w,t.toRaw(y)),r[kn]=w};t.isReactive(n)?t.watchEffect(()=>{c.merge(n,a)}):c.merge(n,a),n.modelValue&&g(n.modelValue),r[Ve]=c,t.provide(Ve,c);let T=null,b=null;if(l!==null){const y=t.inject(ye,null);T=Bt(r,y,i,o),c.broadcast=T,r[ye]=T,t.provide(ye,T),r.broadcast=(h,p,...d)=>Reflect.apply(T.emit,T,[h,p,...d]);const w=t.inject(Pe,null);b=At(r,w,{componentName:""}),c.validateSchema=b,r[Pe]=b,t.provide(Pe,b),r[tt]=new Map,r.validate=(h=!0)=>{const p=[];let d=null;const B={deep:!1};if(h===!0)d={name:"*"};else if(Array.isArray(h)&&h.length>0){const I=h;d={name:A=>A?I.indexOf(A)!==-1:!1}}else if(h!=null&&typeof h=="object"){const I=h;if(B.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const A=I.include;d={name:O=>O?A.indexOf(O)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const A=I.exclude;d={name:O=>O?A.indexOf(O)===-1:!1}}else d={name:"*"}}if(d){const I=T?.emitToChildren(d,"validate",B);I&&Reflect.apply([].push,p,I)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(I=>{let A=[];return I.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(A=[...A,...O.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,p=!0)=>{if(p){const d=Reflect.ownKeys(h),B=[...d],I={name:A=>{const O=d.includes(A);if(O){const V=B.findIndex(E=>A===E);V!==-1&&B.splice(V,1)}return O}};T?.emitToChildren(I,"setNameValidateRules",h,!1),B.length>0&&B.forEach(A=>{let O=String(A);const E=Ro(c,O,{componentName:"",fieldName:O,pureDataValidate:!0},T,b);r[tt].set(O,E);const D=h[O];D&&E.validateSchema.setRule(D)})}},r.clearValidate=(h=!0)=>{let p=null;if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const d=h;p={name:B=>B?d.indexOf(B)!==-1:!1}}else if(h!=null&&typeof h=="object"){const d=h;if(Array.isArray(d.include)&&d.include.length>0){const B=d.include;p={name:I=>I?B.indexOf(I)!==-1:!1}}else if(Array.isArray(d.exclude)&&d.exclude.length>0){const B=d.exclude;p={name:I=>I?B.indexOf(I)===-1:!1}}else p={name:"*"}}p&&T?.emitToChildren(p,"clearValidate",!1)},r.resetFields=h=>{const p=u();if(!p)return;const d={};if(Ge(!0,d,m()??{}),Array.isArray(h))h.forEach(B=>{p[B]=d[B]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(I=>{p[I]=d[I]});else if(h&&Array.isArray(h.exclude)){let B=h.exclude??[];Reflect.ownKeys(d).forEach(I=>{B.includes(I)||(p[I]=d[I])})}else Object.assign(p,d);r.clearValidate(h)},r.setModelValue=(h,p)=>{!p||p===i?f(h):T?.emitToChildren({name:p},"setModelValue",h)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ve]=void 0,r[tt]&&(r[tt].clear(),r[tt]=void 0),T!==null&&(T.destroy(),r[ye]=void 0),b!==null&&(b.destroy(),r[Pe]=void 0)}),c}function Ao(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ve,null);r===null&&(r=nt());const s=e||n.prop||n.name,i=new Ot(s);return i.parent=r,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,a)}):i.merge(n,a),l[Ve]=i,t.provide(Ve,i),t.onUnmounted(()=>{i.destroy(),l[Ve]=void 0}),i}function Oo(e,n,a){const l=qe(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{n.setRule(s)}))}function be(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ye,null),i=Bt(l,s,r,a);l[ye]=i,t.provide(ye,i),l.broadcast=(b,y,...w)=>Reflect.apply(i.emit,i,[b,y,...w]);const c=t.inject(Pe,null);e.fieldName=e.fieldName??r;const f=At(l,c,e);l[Pe]=f,t.provide(Pe,f),Oo(l,f,r),l.validate=(b=null)=>{const y=[];let w=!1,h=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)h=!0,w=!0;else if(b&&typeof b=="object"){const p=b;p.ignoreHidden===!0&&yo(l.$el)?h=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),h=!0),w=p.deep??!1}else typeof b=="boolean"&&(w=b),h=!0;if(h){const p=f?.validate();y.push(p)}if(w){let p=null;const d={deep:!1};if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const B=b;p={name:I=>I?B.indexOf(I)!==-1:!1}}else if(b!=null&&typeof b=="object"){const B=b;if(d.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const I=B.include;p={name:A=>A?I.indexOf(A)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const I=B.exclude;p={name:A=>A?I.indexOf(A)===-1:!1}}else p={name:"*"}}if(p){const B=i.emitToChildren(p,"validate",d);Reflect.apply([].push,y,B)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(p=>{let d=[];return p.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(d=[...d,...B.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>f?.setRule(b),l.setNameValidateRules=(b,y=!1)=>{const w=b[r];if(w&&f?.setRule(w),y){const h={name:p=>Reflect.ownKeys(b).includes(p)};i.emitToChildren(h,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&f?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const w=b;y={name:h=>h?w.indexOf(h)!==-1:!1}}else if(b!=null&&typeof b=="object"){const w=b;if(Array.isArray(w.include)&&w.include.length>0){const h=w.include;y={name:p=>p?h.indexOf(p)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const h=w.exclude;y={name:p=>p?h.indexOf(p)===-1:!1}}else y={name:"*"}}y&&i.emitToChildren(y,"clearValidate",!1)};const u=new yr(l);l[Bo]=u;const m=yt((b="validate")=>{b==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Eo()).forEach(b=>{u.on(b,y=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:No()).forEach(b=>{u.on(b,y=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ye]=void 0,f.destroy(),l[Pe]=void 0,u.destroy(),l[Bo]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(b,...y)=>{Reflect.apply(u.emit,u,[b,...y])},onEvent:(b,y)=>{Reflect.apply(u.on,u,[y])},offEvent:(b,y)=>{Reflect.apply(u.off,u,[y])}}}function Ro(e,n,a,o,l){const r={},s=n??"",i={getValue(){const u=e.getForSelf("modelValue");return u?u[s]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,s):!1}};a.fieldName=s,a.validateHandler={getValue(u){return i.getValue()}};const c=At({},l,a);r.validate=(u=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let g=!1,T=!1;if(Array.isArray(u)&&u.indexOf(s)!==-1)T=!0,g=!0;else if(u&&typeof u=="object"){const b=u;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),T=!0,g=b.deep??!1}else typeof u=="boolean"&&(g=u),T=!0;if(T){const b=c?.validate();m.push(b)}if(g){let b=null;const y={deep:!1};if(u===!0)b={name:"*"};else if(Array.isArray(u)&&u.length>0){const w=u;b={name:h=>h?w.indexOf(h)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(Array.isArray(w.include)&&w.include.length>0){const h=w.include;b={name:p=>p?h.indexOf(p)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const h=w.exclude;b={name:p=>p?h.indexOf(p)===-1:!1}}else b={name:"*"}}if(b){const w=f.emitToChildren(b,"validate",y);Reflect.apply([].push,m,w)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(b=>{let y=[];return b.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(y=[...y,...w.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=u=>c?.setRule(u),r.setNameValidateRules=u=>{const m=u[s];m&&c?.setRule(m)};const f=Bt(null,o,s,r);return{broadcast:f,validateSchema:c}}const Se=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,n)}px`:"";function ce(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Xe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const o=Number(e);return isNaN(o)?0:o}const je="PageStateKey";function Ae(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function $n(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight),e.headerPadding=Ae(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight),e.footerPadding=Ae(a.footerPadding??n.footerPadding),e.contentPadding=Ae(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function Fo(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;$n(o,r,n,!0,s,i,c,f);const u=t.reactive(o),m=e.getForParent(je);m&&(o.height=Ft(e,m),o.width=Lt(e,m),t.watch([()=>m.height,()=>m.width,()=>m.contentPadding,()=>m.headerMounted,()=>m.footerMounted],()=>{u.height=Ft(e,m),u.width=Lt(e,m)}));const g=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,b,y=-1,w=-1,h=0,p=0])=>{$n(u,b,n,g,y,w,h,p)}),e.set(je,u),u}function Rt(e){return e.get(je)}function bt(e,n){if(n=n??e.get(je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function St(e,n){if(n=n??e.get(je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Ft(e,n){if(n=n??e.get(je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=bt(e,n),o=St(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Lt(e,n){return n=n??e.get(je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Cr(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function vr(e){return!!e.getForParent(je)}var He=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(He||{});function Dn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,a=1,o){const l=qe();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Dn(c,o))return c}const s=e.value;return Dn(s,o)?s:null}):t.computed(()=>{const r=e.value;return Dn(r,o)?r:l?.get(n)})}function Te(e){return Ne(e,"readonly",0,function(a){return ne(a)})}function $e(e){return Ne(e,"disabled",0,function(a){return ne(a)})}function ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Lo=new Map,Mt=new Map;let En=null;function kr(e){En=e}function Mo(e,n,a){if(a){let o=Mt.get(a);o||(o=new Map,Mt.set(a,o)),o.set(e,n)}else Lo.set(e,n)}function Oe(e,n,a){!a&&En&&(a=En(e)??void 0);let o=null;if(a){let l=Mt.get(a);l&&(o=l.get(n))}return o||(o=Lo.get(n)),o}function Tr(e,n){for(let a in e){const o=e[a];Mo(a,o,n)}}function $r(e){Mt.delete(e)}function Dr(){return{top:0,left:0,bottom:0,right:0}}function Er(e=0,n=0){if(Xe){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(n,o),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class xr{packages;installers;_version;get version(){return this._version}constructor(n,a,o){this.packages=n,this.installers=a,this._version=o}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=nt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Io(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=Ge({},Dr(),n.safeAreaInset),s=Er(o,l),i=Ge({},s.pageLayout,n.pageLayout);a=a??nt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){kr(n)}setAPI(n,a,o){Mo(n,a,o)}getAPI(n,a,o){return Oe(n,a,o)}batchSetAPI(n,a){Tr(n,a)}clearScopeAPI(n){$r(n)}getRootDomain(){return nt()}}const Nr=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],Vr=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Br=e=>{Nr.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),Vr.forEach(n=>{e.use(n)})};function ee(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Po={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}},qo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},zo=[];for(const e in qo)zo.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Ir=Symbol.for("InnerPageScopeKey"),Ar=(e,n)=>({inheritAttrs:!0,props:{...he,...Po,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(a,o){const l=Tn(a.name,a);if(l){const f=Fo(l,a);me({getPageContentHeight:()=>Ft(l,f),getPageContentWidth:()=>Lt(l,f),getPageHeaderHeight:()=>bt(l,f),getPageFooterHeight:()=>St(l,f)});const u=t.inject(Ir,!1);f&&u&&(f.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=f=>{const u=i?.proxy;u&&typeof u.setNameValidateRules=="function"&&u.setNameValidateRules(f,!0)};return t.watch(()=>a.rules,(f,u)=>{if(!f&&!u)return;const m=t.toRaw(u),g=t.toRaw(f),T=g?Reflect.ownKeys(g):[];(m?Reflect.ownKeys(m):[]).forEach(y=>{T.includes(y)||(g[y]=[])}),c(g)},{deep:!0}),t.onMounted(()=>{if(a.rules){const f=t.toRaw(a.rules);c(f)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:s}}}),{componentName:Or,create:Rr,scope:Wm}=ee("page"),Fr=Rr(Ar(Or));function Lr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const ue=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},_o=ue(Fr,[["render",Lr]]),Mr=["aria-labelledby"],Pr=t.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),qr=[Pr],zr=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},qr,14,Mr))}}),_r=["aria-labelledby"],jr=t.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Hr=[jr],Kr=t.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hr,14,_r))}}),Yr=["aria-labelledby"],Wr=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ur=[Wr],Gr=t.defineComponent({__name:"JoySmile",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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},Ur,14,Yr))}}),Xr=["aria-labelledby"],Zr=t.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),Jr=[Zr],Qr=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Jr,14,Xr))}}),ei=["aria-labelledby"],ti=t.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),ni=[ti],oi=t.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:n}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ni,14,ei))}});function xn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Nn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const ai=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=qe(),i=s?Rt(s):null;i&&(i.headerMounted=!0);const c=t.computed(()=>{const $=e;return{[$]:!0,[`${$}--border`]:l.border,[`${$}--fixed`]:l.fixed,[`${$}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?ce(l.height):null,u=t.computed(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const x=Ae(l.padding??i.headerPadding);return Object.assign($,x),f&&(i.headerHeight=f),$.height=i.headerHeight,$.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,$.safeAreaTop>0&&($.top=$.safeAreaTop+(x.top??0),$.height=$.height+$.safeAreaTop),$}if(f&&($.height=f),l.padding){const x=Ae(l.padding);Object.assign($,x)}return $}),m=t.ref(null),g=()=>{if(i&&m.value&&m.value.offsetParent!==null){if(!o){const $=xn(m.value);i.headerAllHeight=$.height}return i.headerMounted=!0,!0}return!1};t.onMounted(()=>{i&&vn(g,50,5,50,!0)}),t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const T=t.computed(()=>{const $={};return u.value.height!==null&&u.value.height!==void 0&&($.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&($.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&($.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&($.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&($.paddingBottom=`${u.value.bottom}px`),$}),b=t.computed(()=>{const $={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&($.top=`${u.value.safeAreaTop}px`),$}),y=t.computed(()=>{const $={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&($.top=`${u.value.safeAreaTop}px`),$}),w=t.computed(()=>!!l.leftShow),h=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),p=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),d=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),B=t.computed(()=>l.leftIcon),I=t.computed(()=>B.value||r.slots.leftIcon),A=t.computed(()=>l.titleIcon),O=t.computed(()=>l.titleIcon||r.slots.titleIcon),V=t.computed(()=>l.rightIcon),E=t.computed(()=>l.rightIcon||r.slots.rightIcon);function D(){r.emit("back")}function q(){r.emit("click-title")}function F(){r.emit("click-right")}function C(){r.emit("click-right-text")}return{headerBarRef:m,classes:c,styles:T,mHeaderShow:h,leftStyles:b,rightStyles:y,mLeftShow:w,mTitleShow:p,mRightShow:d,mLeftIcon:B,hasLeftIcon:I,mTitleIcon:A,hasTitleIcon:O,mRightIcon:V,hasRightIcon:E,handleLeft:D,handleCenter:q,handleRight:F,handleRightText:C}}}),{componentName:li,create:ri,scope:ii}=ee("header-bar"),si=ri(ai(li,ii,Kr)),ci={key:1,class:"fox-header-bar__title"},ui={key:0,class:"title-text"};function di(e,n,a,o,l,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[1]||(n[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",ci,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",ui,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[3]||(n[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const jo=ue(si,[["render",di]]);function fi(e,n,a=!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(o,l){const r=qe(),s=r?Rt(r):null,i=t.computed(()=>{const T=e;return{[T]:!0,[`${T}--${o.align}`]:!0,[`${T}--border`]:o.border,[`${T}--fixed`]:o.fixed,[`${T}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,f=t.computed(()=>{const T={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=Ae(o.padding??s.footerPadding);return Object.assign(T,b),c&&(s.footerHeight=c),T.height=s.footerHeight,T.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,T.safeAreaBottom>0&&(T.height=T.height+T.safeAreaBottom,T.bottom=T.safeAreaBottom+(b.bottom??0)),T}if(c&&(T.height=c),o.padding){const b=Ae(o.padding);Object.assign(T,b)}return T}),u=t.ref(null),m=()=>{if(s&&u.value&&u.value.offsetParent!==null){if(!a){const T=xn(u.value);s.footerAllHeight=T.height}return s.footerMounted=!0,!0}return!1};t.onMounted(()=>{s&&vn(m,50,5,50,!0)}),t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const g=t.computed(()=>{const T={};return f.value.height!==null&&f.value.height!==void 0&&(T.height=Se(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(T.paddingTop=Se(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(T.paddingLeft=Se(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(T.paddingRight=Se(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(T.paddingBottom=Se(f.value.bottom)),T});return{footerBarRef:u,classes:i,styles:g}}}}const{componentName:mi,create:hi,scope:Um}=ee("footer-bar"),gi=hi(fi(mi));function pi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Ho=ue(gi,[["render",pi]]);function yi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=qe(),l=t.computed(()=>({[e]:!0})),r=o?Rt(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const T=Ae(a.padding);Object.assign(r.contentPadding,T)}const u=bt(o,r),m=St(o,r);let g="";if(r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,r.contentPadding,f.height=g,r.contentPadding.top||u>0){const T=(r&&r.contentPadding&&r.contentPadding.top)??0;f.paddingTop=`${u+T}px`}if(r.contentPadding.bottom||m>0){const T=(r&&r.contentPadding&&r.contentPadding.bottom)??0;f.paddingBottom=`${m+T}px`}return r.contentPadding.left&&(f.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(f.paddingRight=`${r.contentPadding.right}px`),f}if(a.padding){const u=Ae(a.padding);u.left&&(f.paddingLeft=`${u.left}px`),u.top&&(f.paddingTop=`${u.top}px`),u.right&&(f.paddingRight=`${u.right}px`),u.bottom&&(f.paddingBottom=`${u.bottom}px`)}return f}),i=t.ref(null),c=()=>{if(r&&i.value){const f=Nn(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>bt(o),()=>St(o)],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:bi,create:Si,scope:Gm}=ee("content"),wi=Si(yi(bi));function Ci(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Ko=ue(wi,[["render",Ci]]),ot="GroupStateKey",Yo=Symbol.for("GroupScopeKey");function Pt(){return t.inject(Yo,!1)}function qt(e=!0){t.provide(Yo,e)}function vi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];wn(l)||(e[o]=l)})}function ki(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};vi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ot,r),r}function Vn(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(ot);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const u=ce(r),m=ce(s);i||(i=f.type??"grid");const g=()=>{const T=n===""||n===-1,b=ce(n);let y=se(a);const w=ce(o);if(!T){let d=(b-(y-1)*w)/y;for(;m!==-1&&d>m;)y++,d=(b-(y-1)*w)/y;for(;u!==-1&&y>1&&d<u;)y--,d=(b-(y-1)*w)/y}let h=!1;const p=c.layout;p.value.width=n,p.value.column!==y&&(p.value.column=y,h=!0),p.value.gutter!==w&&(p.value.gutter=w,h=!0),p.value.type!==i&&(p.value.type=i,h=!0),h&&t.triggerRef(p)};if(l)g();else{const T=++c.passport;setTimeout(()=>{T===c.passport&&g()},50)}}function zt(e,n=!1){let a;return n?a=e.getForParent(ot):a=e.get(ot),a.layout}function _t(e,n=!1){let a;return n?a=e.getForParent(ot):a=e.get(ot),a.order}function Wo(e,n=1){if(n==="stretch")return-1;const a=se(n);return a===-1?100:100*a/e}function jt(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=Wo(n.column,a),s>0&&(r.width=`${s}%`);const i=Wo(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Ht(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let l=se(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=se(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Uo=Symbol("RollingStateKey");function Ti(e){t.provide(Uo,e)}function $i(){return t.inject(Uo,null)}function Bn(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Di(e){let n=Bn(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Bn(a),document.body.removeChild(a)}return n}function Ei(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const xi={...he,...Po,...qo};function Ni(e,n,a){return{props:xi,emits:["update:collapse"],setup(o,l){const r=Tn(o.name,o,zo),s=ki(r,{type:o.type}),i=Pt();qt(!0);const c=o.rollingDisplay?$i():null,f=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>i&&r?zt(r,!0).value:null),g=t.getCurrentInstance(),T=L=>{const W=g?.proxy;W&&typeof W.setNameValidateRules=="function"&&W.setNameValidateRules(L,!0)};t.watch(()=>o.rules,(L,W)=>{if(!L&&!W)return;const G=t.toRaw(W),H=t.toRaw(L),K=H?Reflect.ownKeys(H):[];(G?Reflect.ownKeys(G):[]).forEach(J=>{K.includes(J)||(H[J]=[])}),T(H)},{deep:!0});const b=e,y=t.computed(()=>{const L={};L.height=P.value;const W=i?_t(r,!0):null;if(m.value&&W){if(m.value.type==="grid"){const G=Ht(W,m.value,o.span,o.offset);Object.assign(L,G)}else if(m.value.type==="flow"){const G=jt(W,m.value,o.span,o.offset,o.width);Object.assign(L,G)}}else if(o.width){const G=Se(o.width);L.width=G}return L}),w=t.computed(()=>{const L=s.layout.value.type;return L==="grid"||L==="flow"?{[`${b}--${L}`]:!0,[`${b}--${L}-justify-${o.justify}`]:!0,[`${b}--${L}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${L}`]:!0,[`${b}--gutter`]:!0}}),h=t.computed(()=>{if(s.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const G=Ei(E.value,s.layout.value.column,s.layout.value.gutter);W=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":W}}}),p=t.toRef(o,"title"),d=t.toRef(o,"gutter"),B=t.toRef(o,"column"),I=t.computed(()=>i||u.value?!0:ne(o.isWrap)),A=[],O=L=>{A.push(L)},V=()=>{let L=A.length;A.splice(0,L)},E=t.ref(-1),D=L=>{const W=Nn(L).width;W>0&&W!==E.value&&(E.value=W)};Vn(r,E.value,B.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([E,B,d],([L,W,G])=>{s.order.index=0,Vn(r,L,W,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const q=t.computed(()=>N.value?o.expandText??"":o.collapseText??""),F=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),C=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),$=t.ref(),x=t.ref(),P=t.computed(()=>z.value||Se(o.height)||""),N=t.ref(!1),z=t.ref(""),k=t.ref(!1);let R=-1;const j=(L,W=!0)=>{const G=$.value;if(G&&N.value!==L){if(R=R===-1?Di(G):R,k.value=!0,W)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",L||(z.value="",k.value=!1)},L){let H=0;o.collapseHeight?H=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),z.value=`${R}px`,t.nextTick(()=>{z.value=`${H}px`})}else z.value=`${R}px`;else if(L){let H=0;o.collapseHeight?H=o.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),z.value=`${H}px`}else k.value=!1,z.value=`${R}px`;N.value=L,l.emit("update:collapse",L)}};t.watch(()=>o.collapse,L=>{j(L)});const Y=()=>{Z()},Z=L=>{L=L??!N.value,j(L)};me({toggleCollapse:Z,doLayout:()=>{A[0]&&(D(A[0]),Vn(r,E.value,B.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let oe=null,re=!0;const X=L=>{if(o.rules){const W=t.toRaw(o.rules);T(W)}if(Xe&&(L&&j(ne(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const W=A[0];D(W),window.ResizeObserver&&(oe=new window.ResizeObserver(()=>{D(W)}),oe.observe(W))}},le=()=>{oe?.disconnect(),oe=null},_=!u.value||c?.acquire();_&&(f.value=u.value?!0:null),t.onMounted(()=>{if(_&&(X(re),re=!1),u.value&&c){let L=null,W=c.initialHeight;c.observe($.value,G=>{if(G!==f.value)if(G)f.value=!0,N.value||(z.value=""),L=setTimeout(()=>{L=null,f.value!==!1&&(X(re),re=!1)},100);else{if(L!==null&&clearTimeout(L),f.value=!1,!N.value)if(re)z.value=c.initialHeight;else{let H=Bn($.value);H<=0?z.value=W:(z.value=`${H}px`,W=z.value)}re||le()}})}}),t.onUnmounted(()=>{oe?.disconnect(),c&&c.unobserve($.value)});const M=(L,W,G,H)=>{const K={...w.value};return W===0&&(K[`${b}__first`]=!0),G>=H-1&&(K[`${b}__last`]=!0),t.h("div",{ref:O,key:`${W}`,class:K,style:h.value},L)};return()=>{if(u.value&&f.value!==!0){const K=o.tag||"div";return t.h(K,{ref:$,prop:o.name,class:{[`${b}`]:!0,"is-collapse":k.value},style:y.value},[])}s.order.index=0;const L=[];let W=0;if(l.slots.header){const K={key:`${W++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},U=t.h("div",K,[l.slots.header()]);L.push(U)}else{const K=[];if(p.value){if(o.showMark){const J={class:{[`${b}__header-mark`]:!0}};o.markColor&&(J.style={background:o.markColor});const de=t.h("div",J);K.push(de)}const U=t.h("div",{class:{[`${b}__header-title`]:!0}},[p.value]);K.push(U)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),o.showCollapse){const U=[];if(q.value){const ge={class:F.value},dt=t.h("span",ge,[q.value]);U.push(dt)}const J={class:C.value},de=a(o.collapseIcon,J);if(de&&U.push(de),U.length>0){const ge=t.h("div",{class:{[`${b}__header-collapse`]:!0},onClick:Y},U);K.push(ge)}}if(K.length>0){const U={key:`${W++}`,ref:x,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},J=t.h("div",U,K);L.push(J)}}V();const G=l.slots.default?l.slots.default():[],H=s.layout.value.type;if(H==="grid"){const K=M(G,W++,0,G.length);L.push(K)}else if(H==="flow"){const K=M(G,W++,0,G.length);L.push(K)}else for(let K=0;K<G.length;K++){const U=G[K],J=M([U],W++,K,G.length);L.push(J)}if(I.value){const K=o.tag||"div";return t.h(K,{ref:$,prop:o.name,class:{[`${b}`]:!0,"is-collapse":k.value},style:y.value},[L])}else return L}}}}const{componentName:Vi,create:Bi,scope:Ii}=ee("group"),Go=Bi(Ni(Vi,Ii,(e,n)=>(e=e??De.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function Ai(e){return e===window}const Oi=/matrix\((.+)\)/,Xo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Ai(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const u=Oi.exec(f);if(u){let g=u[1].split(/\s*,\s*/);g.length==6&&(i+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};function Ri(e){return e===window}const Ke=e=>{const n=t.unref(e);if(Ri(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Fi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Li{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new Fi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Zo=new Li,Jo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Mi,create:Pi}=ee("price"),qi=Pi({props:{...Jo},setup(e){const n=t.computed(()=>({[Mi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Be(e.price)==0?"":Nt(e.price,e.decimalLength,!0,se(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),zi=["innerHTML"],_i=["innerHTML"];function ji(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,zi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,_i)):t.createCommentVNode("",!0)],2)}const In=ue(qi,[["render",ji]]),{componentName:Kt,create:Hi}=ee("hint-text"),Ki=Hi({components:{Price:In},props:{...Jo,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.ref(!0),s=t.ref({x:0,y:0}),i=t.ref({x:0,y:0}),c=t.ref(0),f=t.ref(0),u=t.ref(e.placement),m=t.computed(()=>({[Kt]:!0})),g=t.ref(null),T=(V,E,D=10)=>{if(!Xe||E===!1||!V)return;r.value=!0;const q=Ke(e.reference);c.value=q.width,f.value=q.height,setTimeout(()=>{if(!g.value||!e.reference||e.reference.offsetParent===null)return;const F=Xo(e.reference),C=document.documentElement.clientWidth||document.body.clientWidth,$=g.value.offsetWidth,x=g.value.offsetHeight;F.y-x>=0?(u.value="top",s.value.y=F.y-x-10-4,i.value.y=x):(u.value="bottom",s.value.y=F.y+f.value+10,i.value.y=-10);const P=F.x+$-C;P<0?(s.value.x=F.x,i.value.x=20):(s.value.x=F.x-P,i.value.x=P+20),r.value=!1},D)},b=yt(()=>{T(e.message,e.visible)},10),y=t.computed(()=>e.visible&&w.value),w=t.ref(!0),h=yt(V=>{const E=V[0];E&&(w.value=E.isIntersecting)},10),p=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([V,E])=>{T(V,E)}),t.onMounted(()=>{T(e.message,e.visible),Zo.watch(e.reference,b),p.observe(e.reference)}),t.onBeforeMount(()=>{Zo.unwatch(e.reference,b),p.unobserve(e.reference),p.disconnect()});const d=t.computed(()=>{const V={"min-width":Se(c.value)};return r.value?V.visibility="hidden":V.transform=`translate(${s.value.x}px, ${s.value.y}px)`,V}),B=t.computed(()=>({[`${Kt}__content`]:!0})),I=t.computed(()=>({})),A=t.computed(()=>({[`${Kt}__arrow`]:!0,[`${Kt}__arrow-${e.placement}`]:!0})),O=t.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:y,tipRef:g,classes:m,styles:d,textClasses:B,textStyles:I,arrowClasses:A,arrowStyles:O}}}),Yi={key:1,class:"text"};function Wi(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Yi,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Yt=ue(Ki,[["render",Wi]]);class Qo{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const An={},Ui=new Qo,at=new Map,On=e=>{if(e){const n=document.getElementById(e);at.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of at.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}at.clear()}},Gi=e=>{const n=document.getElementById(e.id);if(n){const a=at.get(e.id);a?e={...An,...a,...e}:e={...An,...e};const o=t.createVNode(Yt,e);return t.render(o,n),e.id}},Xi=e=>{e.unmount=On;let n;if(e.id){if(n=e.id,at.has(n))return Gi(e)}else n=`hinttext_${Ui.get()}`;e={...An,...e},e.id=n,at.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Yt,e);return t.render(o,a),document.body.appendChild(a),n},Zi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Wt={show(e,n,a={},o=!0){return o&&On(),Zi(n),Xi({...a,message:n,reference:e})},hide(e){On(e)},install(e){e.config.globalProperties.$hintText=Wt}},{componentName:ea,create:Ji}=ee("item"),Qi=Ji({inheritAttrs:!0,props:{...he,...ve},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;be({componentName:ea,validate:!1},a);const o=qe(),l=Pt();qt(!1);const r=t.computed(()=>l&&o?zt(o,!1).value:null),s=ea,i=t.ref(null),c=t.computed(()=>{const X={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(X[e.errorMarkClass]=!!q.value,X[e.warnMarkClass]=!!E.value,X[e.infoMarkClass]=!!O.value,typeof i.value=="function"){const le=i.value(a);X[le]=!0}else if(typeof i.value=="string"){const le=i.value;X[le]=!0}return X}),f=t.computed(()=>{const X={},le=l&&o?_t(o,!1):null;if(r.value&&le)if(r.value.type==="grid"){const _=Ht(le,r.value,e.span,e.offset);Object.assign(X,_)}else if(r.value.type==="flow"){const _=jt(le,r.value,e.span,e.offset,e.width);Object.assign(X,_)}else return e.width&&(X.width=Se(e.width)),X;else e.width&&(X.width=Se(e.width));return X}),u=t.ref(null),m=t.computed({get:()=>u.value??ne(e.isRequired),set:X=>{u.value=X}}),g=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),T=Ne(t.toRef(e,"labelPosition"),"labelPosition",He.Near),b=t.computed(()=>T&&T.value==="top"?"top":T&&T.value==="right"?"right":"left"),y=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),h=Ne(t.toRef(e,"labelWidth"),"labelWidth",He.Near),p=t.computed(()=>h&&h.value?{width:Se(h.value)}:{}),d=t.computed(()=>({"label--string":!0,"label--required":m.value})),B=t.computed(()=>({content:!0,[e.contentClass]:!0})),I=t.computed(()=>({...e.contentStyle})),A=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired(X){m.value=X},setErrorTip(X){A.errorTip=X},setErrorIcon(X){A.errorIcon=X},setWarnTip(X){A.warnTip=X},setWarnIcon(X){A.warnIcon=X},setInfoTip(X){A.infoTip=X},setInfoIcon(X){A.infoIcon=X},setCustomClassName(X){i.value=X}});const O=t.computed(()=>e.infoTip||A.infoTip),V=t.computed(()=>e.infoIcon||A.infoIcon),E=t.computed(()=>e.warnTip||A.warnTip),D=t.computed(()=>e.warnIcon||A.warnIcon),q=t.computed(()=>e.errorTip||A.errorTip),F=t.computed(()=>e.errorIcon||A.errorIcon),C=t.computed(()=>q.value?"error":E.value?"warn":O.value?"info":""),$=t.computed(()=>C.value.length>0),x=t.computed(()=>C.value==="error"?q.value:C.value==="warn"?E.value:C.value==="info"?O.value:""),P=t.computed(()=>C.value==="error"?F.value:C.value==="warn"?D.value:C.value==="info"?V.value:null),N=t.computed(()=>{let X={[`${s}__tip`]:!0,[`${s}__tip--${C.value}`]:!0};return C.value==="error"&&e.errorClass?X[`${e.errorClass}`]=!0:C.value==="warn"&&e.warnClass?X[`${e.warnClass}`]=!0:C.value==="info"&&e.infoClass&&(X[`${e.infoClass}`]=!0),X}),z=t.computed(()=>{let X={};return T&&T.value==="top"||!g.value?X["padding-left"]="0px":h&&h.value&&(X["padding-left"]=Se(h.value)),X}),k=()=>t.h(P.value,{width:12,height:12}),R=t.computed(()=>n.slots.fixedTip),j=t.computed(()=>({[`${s}__fixed-tip`]:!0})),Y=t.ref();let Z="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([X,le,_,M])=>{Y.value&&(X&&!pe(le)?Z?Wt.show(Y.value,le,{...M,id:Z,type:_},!0):Z=Wt.show(Y.value,le,{...M,type:_},!0):Wt.hide(Z))});let te=null;const oe=()=>{te||!Y.value||(te=new IntersectionObserver(X=>{let le=!1;for(let _ of X)if(_.intersectionRatio>0){le=!0,le&&n.emit("appear",_);break}le||n.emit("disappear")}),te.observe(Y.value))},re=()=>{!te||!Y.value||(te.unobserve(Y.value),te=null)};return t.watch(()=>ne(e.appearListen),X=>{X?oe():re()}),t.onMounted(()=>{ne(e.appearListen)&&oe()}),t.onUnmounted(re),{classes:c,styles:f,mainClasses:y,hasLabel:g,labelClasses:w,labelStyles:p,labelStringClasses:d,contentClasses:B,contentStyles:I,contentRef:Y,hasTip:$,mTip:x,mIcon:P,renderIcon:k,tipClasses:N,tipStyles:z,hasFixedTip:R,fixedTipClasses:j}}}),es=["prop"],ts={key:0,class:"fox-item__tip--icon"},ns={class:"fox-item__tip--text"};function os(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",ts,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",ns,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,es)}const we=ue(Qi,[["render",os]]);function as(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=qe(),r=Pt();qt(!1);const s=t.computed(()=>r&&l?zt(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const u={},m=r&&l?_t(l,!1):null;if(s.value&&m)if(s.value.type==="grid"){const g=Ht(m,s.value,a.span,a.offset);Object.assign(u,g)}else if(s.value.type==="flow"){const g=jt(m,s.value,a.span,a.offset,a.width);Object.assign(u,g)}else return a.width&&(u.width=Se(a.width)),u;else a.width&&(u.width=Se(a.width));return u});return()=>{const u={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:ls,create:rs,scope:Zm}=ee("slot-item"),ta=rs(as(ls));function is(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=qe(),i=Pt();qt(!1);const c=t.computed(()=>{const f={};if(i&&s){const u=zt(s,!1),m=_t(s,!1);if(u.value&&m)if(u.value.type==="grid"){const g=Ht(m,u.value,a.span,a.offset);Object.assign(f,g)}else if(u.value.type==="flow"){const g=jt(m,u.value,a.span,a.offset,a.width);Object.assign(f,g)}else a.width&&(f.width=Se(a.width))}else a.width&&(f.width=Se(a.width));return f});return()=>{const f=[];if(o.slots.default){const m=o.slots.default();if(a.divide)for(let g=0;g<m.length;g++){if(g>0){const T=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(T)}f.push(m[g])}else Reflect.apply([].push,f,m)}const u={class:r.value,style:c.value};return t.h("div",u,f)}}}}const{componentName:ss,create:cs,scope:Jm}=ee("row-item"),na=cs(is(ss)),oa={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 us(e,n,a){return{props:{...he,...ve,...oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__readonly`]:s.value})),b=C=>{m.value=C,i("update:modelValue",C),i("input",C)},y=C=>{i("change",C)};let w=ie(o,"hintText"),h=t.ref(!1);const p=C=>{let x=C.target.value;u.value=!0,pe(w.value)||(h.value=!0),i("focus",x,C)},d=C=>{setTimeout(()=>{h.value&&(h.value=!1),u.value=!1},0);let x=C.target.value;o.maxLength&&x.length>Number(o.maxLength)&&(x=x.slice(0,Number(o.maxLength))),i("blur",x,C)},B=()=>{i("clear","")},I=t.ref(!1);let A=null;const O=()=>{o.showTooltip&&I.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{I.value=!0},150))},V=()=>{A&&(clearTimeout(A),I.value=!1,A=null)},E=t.computed(()=>I.value||h.value),D=t.computed(()=>I.value?m.value:w.value),q=t.computed(()=>Be(o.unit)>0),F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const $={...l.attrs,ref:F,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:y,onInput:b,onFocus:p,onBlur:d,onMouseover:O,onMouseleave:V},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:q.value&&(x.suffix=()=>[o.unit]);const P=[],N=t.h(v.ElInput,$,x);P.push(N);const z={default:()=>P};l.slots.default&&(z.label=l.slots.default),l.slots.default&&(z.fixedTip=l.slots.fixedTip);const R={...Ce(o,oa),hintText:D.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,R,z)}}}}const{componentName:ds,create:fs,scope:ms}=ee("input-item"),aa=fs(us(ds,ms,we)),Rn={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:{}}},la=2e3;let ra=la;const hs=(e,n)=>({components:n,props:{...Rn},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==la&&(ra=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++ra,a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=y=>{o("click-pop",y)},m=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},T=y=>{o("opend",y)},b=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():f()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:u,onClickCloseIcon:m,onClickOverlay:g,onOpened:T,onClosed:b}}}),ia={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Fn={...Rn,...ia,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let wt=0;const sa="fox-overflow-hidden",ca=()=>Xe?document.body:{classList:[]},gs=e=>[()=>{if(e())try{!wt&&ca().classList.add(sa),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&ca().classList.remove(sa)}catch{}}],ps={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:ys,create:bs}=ee("overlay"),Ss=bs({props:{...ps},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=gs(()=>e.lockScroll),l=t.computed(()=>({[ys]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ws(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Ut=ue(Ss,[["render",ws]]),{componentName:Cs,create:vs}=ee("popup"),ks=vs(hs(Cs,{[Ut.name]:Ut,Close:Qr}));function Ts(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Ye=ue(ks,[["render",Ts]]),ua=10;function $s(e,n){return e>n&&e>ua?"horizontal":n>e&&n>ua?"vertical":""}function Ln(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),u=t.ref(""),m=()=>u.value==="vertical",g=()=>u.value==="horizontal",T=()=>{s.value=0,i.value=0,c.value=0,f.value=0,u.value="",a.value=0};return{move:w=>{const h=w.touches[0];s.value=h.clientX-e.value,i.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY,c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,u.value||(u.value=$s(c.value,f.value))},start:w=>{T(),e.value=w.touches[0].clientX,n.value=w.touches[0].clientY,a.value=Date.now()},reset:T,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:u,isVertical:m,isHorizontal:g}}let da=36;function Ds(){return da}function Es(e){da=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function xs(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function Je(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fa(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ns=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Vs(){const e=t.getCurrentInstance();return new Ns(e.proxy)}function ma(e,n,a){const o=Re(e,n),l=Re(e,a);if(o!==l)return!1;const r=Je(e,n),s=Je(e,a);return r===s}function Bs(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(u=>{if(r==="text")return Re(e,u)===i;if(r==="value"){let m=Je(e,u);return m==null&&(m=Re(e,u)),m===i}else if(r==="item")return ma(e,u,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(m=>{if(r==="text")return Re(e,m)===c;if(r==="value"){let g=Je(e,m);return g==null&&(g=Re(e,m)),g===c}else if(r==="item")return ma(e,m,c)});if(f==-1)break;l.push(f);const u=Mn(e,s[f]);if(!Array.isArray(u))break;s=u}}return l}function ha(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],u=Re(e,f);if(l.texts.push(u),l.items.push(f),r==="text")l.values.push(u);else if(r==="value"){let m=Je(e,f);m==null&&(m=u),l.values.push(m)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],u=Re(e,f),m=Object.assign({},f);if(m.children=null,l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let g=Je(e,f);g==null&&(g=u),l.values.push(g)}else l.values.push(m);if(!Array.isArray(f.children))break;s=f.children}}return l}function ga(e){return{text:e,value:e}}const Is=15,As=300,Os=200,{create:Rs}=ee("picker-column");function Fs(e){e.stopPropagation()}function Ls(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Fs(e)}const Ms=Rs({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...ia},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=V=>V>=m.currIndex+8||V<=m.currIndex-8,i=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-m.rotation*V}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),u=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),T=V=>Re(e,V),b=V=>Je(e,V),y=Ln(),w=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},h=(V,E=!1,D=!1)=>{if(m.currIndex=V,E){const q=()=>{m.moving=!1,n("update:modelValue",V),n("change",V)};D?m.transitionEndTrigger=q:q()}},p=(V,E,D)=>{let q=V+m.startDistance;if(E==="end"){const F=-(g.value.length-1)*e.itemHeight;q<F&&(q=F,(!D||D<=0)&&(D=e.swipeDuration)),q>0&&(q=0,(!D||D<=0)&&(D=e.swipeDuration));let C=Math.abs(Math.round(-q/e.itemHeight));const $=-C*e.itemHeight,x=`${(C+1)*m.rotation}deg`,P=D?D>0:!1;h(C,!0,P),d($,E,D,x)}else{let F=(-q/e.itemHeight+1)*m.rotation;const C=(g.value.length+1)*m.rotation,$=0;if(F=Math.min(Math.max(F,$),C),e.threeDimensional&&(F<$||F>C))return;d(q,null,void 0,`${F}deg`)}},d=(V=0,E,D=Os,q)=>{E==="end"?m.scrollTime=D:m.scrollTime=0,m.deg=q,m.scrollDistance=V},B=(V,E)=>(V=Math.abs(V/E)/.003*(V<0?-1:1),V),I=V=>{if(!e.readonly){if(m.moving){const E=u.value,{transform:D}=window.getComputedStyle(E);m.scrollDistance=+D.slice(7,D.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,y.start(V),m.transitionEndTrigger=null}},A=V=>{e.readonly||(m.moving=!0,y.move(V),y.isVertical()&&(m.moving=!0,Ls(V,!0)),p(y.deltaY.value,"",0))},O=()=>{if(e.readonly)return;const V=y.deltaY.value,E=y.duration.value;if(E<As&&Math.abs(V)>Is){const q=B(V,E);p(q,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(m.currIndex!==V){m.currIndex=V;const E=-V*e.itemHeight;p(E)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:a,styles:o,contentClasses:l,source:g,itemText:T,itemValue:b,...t.toRefs(m),roller:u,getItemText:Re,onTouchStart:I,onTouchMove:A,onTouchEnd:O,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:w}}}),Ps={key:1,class:"fox-picker__item-tile"};function qs(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Ps,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const pa=ue(Ms,[["render",qs]]),{create:zs,componentName:_s,scope:js}=ee("picker"),Hs=zs({components:{[pa.name]:pa,[Ye.name]:Ye},props:{...Fn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=Ee.useFoxI18n(js),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Ds());t.watch(()=>e.visible,D=>{D&&s.value<=0&&setTimeout(()=>{if(r.value){const q=Ke(r.value);s.value=q.height,Es(s.value)}},50)});const i=t.computed(()=>({[_s]:!0})),c=Vs(),f=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([D,q])=>{if(D){let F=await c.load("select",D,q);if(F.length>0){let C=F[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let $=F,x=[];$.forEach(P=>{let N=P.map(z=>ga(z));x.push(N)}),u.value=x}else u.value=F;f.value="multipleColumn"}else if(typeof C=="string"){let $=F,x=[],P=$.map(N=>ga(N));x.push(P),u.value=x,f.value="singleColumn"}else{const $=Mn(e,C);Array.isArray($)?(f.value="cascade",u.value=[F]):(f.value="singleColumn",u.value=[F])}}else u.value=[]}},{immediate:!0});const m=t.ref([]),g=t.ref(e.modelValue),T=t.ref([]),b=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([D,q])=>{let F=Bs(e,D,q,f.value);if(!Me(F,b.value)){b.value=F;let C=ha(e,F,q,f.value);C&&(m.value=C.texts,n("update:text",m.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,D=>{y.value=D});const w=D=>{let q=fa(e,D);return Ie(q)?q.defaultIndex??0:0},h=D=>{if(e.readonly===!0)return!0;let q=fa(e,D);return Ie(q)?q.readonly??!1:!1},p=(D,q)=>{let F=b.value;F[D]=q;for(let $=0;$<D;$++)F[$]==null&&(F[$]=w($));if(f.value==="cascade")for(let $=D+1;$<B.value.length;$++){let x=w($);$<F.length?F[$]=x:F.push(x)}else for(let $=F.length;$<B.value.length;$++){let x=w($);F.push(x)}b.value=F;let C=ha(e,F,u.value,f.value);C&&(m.value=C.texts,g.value=C.values,T.value=C.items)},d=D=>D<b.value.length?b.value[D]:w(D),B=t.computed(()=>{if(u.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return u.value;let D=[],q=0,F=u.value[0],C=0;for(;;){let $=F.map(N=>{let z=Object.assign({},N);return xs(e,z,null),z});D.push($),q>=b.value.length?C=0:C=b.value[q],(C<0||C>=F.length)&&(C=0);let x=F[C];const P=Mn(e,x);if(!Array.isArray(P))break;F=P,q++}return D}),I=t.computed(()=>se(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:B,dataType:f,show:y,itemHeight:s,top:I,isReadonly:h,getIndex:d,change:(D,q)=>{p(D,q)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let D=u.value.length-1;for(;D>=0&&!(b.value[D]===null||b.value[D]===void 0);D--);if(D>=0&&p(D,0),f.value==="singleColumn"){let q=g.value.length>0?g.value[0]:"",F=T.value.length>0?T.value[0]:null;e.readonly||(n("update:modelValue",q),n("update:text",m.value),n("change",q,F)),n("confirm",q)}else e.readonly||(n("update:modelValue",g.value),n("update:text",m.value),n("change",g.value,T.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}f.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Ks={class:"fox-picker__bar"},Ys={class:"fox-picker__title"},Ws={class:"fox-picker__bar__action"},Us={class:"fox-picker__column"};function Gs(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Ks,[t.createElementVNode("view",Ys,t.toDisplayString(e.title),1),t.createElementVNode("view",Ws,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Us,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":u=>e.change(f,u),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Ct=ue(Hs,[["render",Gs]]),ya={...Fn,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Xs(e,n,a){return{props:{...he,...ve,...ya},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=e,g=t.computed(()=>({[m]:!0})),T=Ne(t.computed(()=>o.textAlign),"textAlign"),b=t.computed(()=>({textAlign:T.value??"right"})),y=ie(o,"modelValue"),w=t.ref([]),h=t.computed(()=>Array.isArray(w.value)?w.value.join(" "):w.value),p=t.ref(!1),d=()=>{p.value=!0},B=x=>{p.value=x},I=x=>{y.value=x,i("update:modelValue",x)},A=x=>{w.value=x,Array.isArray(x)&&x.length===0?i("update:text",x[0]):i("update:text",x)},O=(x,P)=>{Array.isArray(P)&&P.length==1?i("change",x,P[0]):i("change",x,P)};let V=ie(o,"hintText"),E=t.ref(!1);const D=x=>{let N=x.target.value;u.value=!0,pe(V.value)||(E.value=!0),i("focus",N,x)},q=x=>{setTimeout(()=>{E.value&&(E.value=!1),u.value=!1},0);let N=x.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),p.value?setTimeout(()=>{i("blur",N,x)},50):i("blur",N,x)},F=()=>{i("clear","")},C=t.computed(()=>Be(o.unit)>0),$=t.ref();return me({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const x={class:g.value,style:b.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,clearable:ne(o.clearable),readonly:!0,value:h.value,onClick:d,onFocus:D,onBlur:q},P={};l.slots.prepend&&(P.prepend=l.slots.prepend),l.slots.append&&(P.append=l.slots.append),l.slots.prefix&&(P.prefix=l.slots.prefix),l.slots.suffix?P.suffix=l.slots.suffix:C.value?P.suffix=()=>[o.unit]:P.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.ArrowDown)});const N=[],z=t.h(v.ElInput,x,P);N.push(z);const k={default:()=>N};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const R=ht(o,Fn);R.disabled=!1,R.readonly=r.value||s.value,R.visible=p.value,R["onUpdate:visible"]=B,R.modelValue=y.value,R.onUpdateModel=I,R.text=w.value,R["onUpdate:text"]=A,R.onClear=F,R.onChange=O;const j=t.h(Ct,R);k.hide=()=>[j];const Z={...Ce(o,ya),hintText:V.value,hintVisible:E.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,Z,k)}}}}const{componentName:Zs,create:Js,scope:Qs}=ee("select-item"),ba=Js(Xs(Zs,Qs,we));var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",u="week",m="month",g="quarter",T="year",b="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,p={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("_")},d=function(C,$,x){var P=String(C);return!P||P.length>=$?C:""+Array($+1-P.length).join(x)+C},B={s:d,z:function(C){var $=-C.utcOffset(),x=Math.abs($),P=Math.floor(x/60),N=x%60;return($<=0?"+":"-")+d(P,2,"0")+":"+d(N,2,"0")},m:function C($,x){if($.date()<x.date())return-C(x,$);var P=12*(x.year()-$.year())+(x.month()-$.month()),N=$.clone().add(P,m),z=x-N<0,k=$.clone().add(P+(z?-1:1),m);return+(-(P+(x-N)/(z?N-k:k-N))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:T,w:u,d:f,D:b,h:c,m:i,s,ms:r,Q:g}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},I="en",A={};A[I]=p;var O=function(C){return C instanceof q},V=function C($,x,P){var N;if(!$)return I;if(typeof $=="string"){var z=$.toLowerCase();A[z]&&(N=z),x&&(A[z]=x,N=z);var k=$.split("-");if(!N&&k.length>1)return C(k[0])}else{var R=$.name;A[R]=$,N=R}return!P&&N&&(I=N),N||!P&&I},E=function(C,$){if(O(C))return C.clone();var x=typeof $=="object"?$:{};return x.date=C,x.args=arguments,new q(x)},D=B;D.l=V,D.i=O,D.w=function(C,$){return E(C,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var q=function(){function C(x){this.$L=V(x.locale,null,!0),this.parse(x)}var $=C.prototype;return $.parse=function(x){this.$d=function(P){var N=P.date,z=P.utc;if(N===null)return new Date(NaN);if(D.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var k=N.match(w);if(k){var R=k[2]-1||0,j=(k[7]||"0").substring(0,3);return z?new Date(Date.UTC(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)):new Date(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,j)}}return new Date(N)}(x),this.$x=x.x||{},this.init()},$.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},$.$utils=function(){return D},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(x,P){var N=E(x);return this.startOf(P)<=N&&N<=this.endOf(P)},$.isAfter=function(x,P){return E(x)<this.startOf(P)},$.isBefore=function(x,P){return this.endOf(P)<E(x)},$.$g=function(x,P,N){return D.u(x)?this[P]:this.set(N,x)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(x,P){var N=this,z=!!D.u(P)||P,k=D.p(x),R=function(le,_){var M=D.w(N.$u?Date.UTC(N.$y,_,le):new Date(N.$y,_,le),N);return z?M:M.endOf(f)},j=function(le,_){return D.w(N.toDate()[le].apply(N.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(_)),N)},Y=this.$W,Z=this.$M,te=this.$D,oe="set"+(this.$u?"UTC":"");switch(k){case T:return z?R(1,0):R(31,11);case m:return z?R(1,Z):R(0,Z+1);case u:var re=this.$locale().weekStart||0,X=(Y<re?Y+7:Y)-re;return R(z?te-X:te+(6-X),Z);case f:case b:return j(oe+"Hours",0);case c:return j(oe+"Minutes",1);case i:return j(oe+"Seconds",2);case s:return j(oe+"Milliseconds",3);default:return this.clone()}},$.endOf=function(x){return this.startOf(x,!1)},$.$set=function(x,P){var N,z=D.p(x),k="set"+(this.$u?"UTC":""),R=(N={},N[f]=k+"Date",N[b]=k+"Date",N[m]=k+"Month",N[T]=k+"FullYear",N[c]=k+"Hours",N[i]=k+"Minutes",N[s]=k+"Seconds",N[r]=k+"Milliseconds",N)[z],j=z===f?this.$D+(P-this.$W):P;if(z===m||z===T){var Y=this.clone().set(b,1);Y.$d[R](j),Y.init(),this.$d=Y.set(b,Math.min(this.$D,Y.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},$.set=function(x,P){return this.clone().$set(x,P)},$.get=function(x){return this[D.p(x)]()},$.add=function(x,P){var N,z=this;x=Number(x);var k=D.p(P),R=function(Z){var te=E(z);return D.w(te.date(te.date()+Math.round(Z*x)),z)};if(k===m)return this.set(m,this.$M+x);if(k===T)return this.set(T,this.$y+x);if(k===f)return R(1);if(k===u)return R(7);var j=(N={},N[i]=o,N[c]=l,N[s]=a,N)[k]||1,Y=this.$d.getTime()+x*j;return D.w(Y,this)},$.subtract=function(x,P){return this.add(-1*x,P)},$.format=function(x){var P=this,N=this.$locale();if(!this.isValid())return N.invalidDate||y;var z=x||"YYYY-MM-DDTHH:mm:ssZ",k=D.z(this),R=this.$H,j=this.$m,Y=this.$M,Z=N.weekdays,te=N.months,oe=function(_,M,L,W){return _&&(_[M]||_(P,z))||L[M].slice(0,W)},re=function(_){return D.s(R%12||12,_,"0")},X=N.meridiem||function(_,M,L){var W=_<12?"AM":"PM";return L?W.toLowerCase():W},le={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Y+1,MM:D.s(Y+1,2,"0"),MMM:oe(N.monthsShort,Y,te,3),MMMM:oe(te,Y),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:oe(N.weekdaysMin,this.$W,Z,2),ddd:oe(N.weekdaysShort,this.$W,Z,3),dddd:Z[this.$W],H:String(R),HH:D.s(R,2,"0"),h:re(1),hh:re(2),a:X(R,j,!0),A:X(R,j,!1),m:String(j),mm:D.s(j,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:k};return z.replace(h,function(_,M){return M||le[_]||k.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(x,P,N){var z,k=D.p(P),R=E(x),j=(R.utcOffset()-this.utcOffset())*o,Y=this-R,Z=D.m(this,R);return Z=(z={},z[T]=Z/12,z[m]=Z,z[g]=Z/3,z[u]=(Y-j)/6048e5,z[f]=(Y-j)/864e5,z[c]=Y/l,z[i]=Y/o,z[s]=Y/a,z)[k]||Y,N?Z:D.a(Z)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return A[this.$L]},$.locale=function(x,P){if(!x)return this.$L;var N=this.clone(),z=V(x,P,!0);return z&&(N.$L=z),N},$.clone=function(){return D.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},C}(),F=q.prototype;return E.prototype=F,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",m],["$y",T],["$D",b]].forEach(function(C){F[C[1]]=function($){return this.$g($,C[0],C[1])}}),E.extend=function(C,$){return C.$i||(C($,q,E),C.$i=!0),E},E.locale=V,E.isDayjs=O,E.unix=function(C){return E(1e3*C)},E.en=A[I],E.Ls=A,E.p={},E})})(Sa);var ec=Sa.exports;const Fe=_e(ec);var wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(y){return(y=+y)+(y>68?1900:2e3)},f=function(y){return function(w){this[y]=+w}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var h=w.match(/([+-]|\d\d)/g),p=60*h[1]+(+h[2]||0);return p===0?0:h[0]==="+"?-p:p}(y)}],m=function(y){var w=i[y];return w&&(w.indexOf?w:w.s.concat(w.f))},g=function(y,w){var h,p=i.meridiem;if(p){for(var d=1;d<=24;d+=1)if(y.indexOf(p(d,0,w))>-1){h=d>12;break}}else h=y===(w?"pm":"PM");return h},T={A:[s,function(y){this.afternoon=g(y,!1)}],a:[s,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[l,f("day")],Do:[s,function(y){var w=i.ordinal,h=y.match(/\d+/);if(this.day=h[0],w)for(var p=1;p<=31;p+=1)w(p).replace(/\[|\]/g,"")===y&&(this.day=p)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(y){var w=m("months"),h=(m("monthsShort")||w.map(function(p){return p.slice(0,3)})).indexOf(y)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[s,function(y){var w=m("months").indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,f("year")],Z:u,ZZ:u};function b(y){var w,h;w=y,h=i&&i.formats;for(var p=(y=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,D,q){var F=q&&q.toUpperCase();return D||h[q]||a[q]||h[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,$,x){return $||x.slice(1)})})).match(o),d=p.length,B=0;B<d;B+=1){var I=p[B],A=T[I],O=A&&A[0],V=A&&A[1];p[B]=V?{regex:O,parser:V}:I.replace(/^\[|\]$/g,"")}return function(E){for(var D={},q=0,F=0;q<d;q+=1){var C=p[q];if(typeof C=="string")F+=C.length;else{var $=C.regex,x=C.parser,P=E.slice(F),N=$.exec(P)[0];x.call(D,N),E=E.replace(N,"")}}return function(z){var k=z.afternoon;if(k!==void 0){var R=z.hours;k?R<12&&(z.hours+=12):R===12&&(z.hours=0),delete z.afternoon}}(D),D}}return function(y,w,h){h.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var p=w.prototype,d=p.parse;p.parse=function(B){var I=B.date,A=B.utc,O=B.args;this.$u=A;var V=O[1];if(typeof V=="string"){var E=O[2]===!0,D=O[3]===!0,q=E||D,F=O[2];D&&(F=O[2]),i=this.$locale(),!E&&F&&(i=h.Ls[F]),this.$d=function(P,N,z){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*P);var k=b(N)(P),R=k.year,j=k.month,Y=k.day,Z=k.hours,te=k.minutes,oe=k.seconds,re=k.milliseconds,X=k.zone,le=new Date,_=Y||(R||j?1:le.getDate()),M=R||le.getFullYear(),L=0;R&&!j||(L=j>0?j-1:le.getMonth());var W=Z||0,G=te||0,H=oe||0,K=re||0;return X?new Date(Date.UTC(M,L,_,W,G,H,K+60*X.offset*1e3)):z?new Date(Date.UTC(M,L,_,W,G,H,K)):new Date(M,L,_,W,G,H,K)}catch{return new Date("")}}(I,V,A),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),q&&I!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var C=V.length,$=1;$<=C;$+=1){O[1]=V[$-1];var x=h.apply(this,O);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}$===C&&(this.$d=new Date(""))}else d.call(this,B)}}})})(wa);var tc=wa.exports;const nc=_e(tc);var Ca={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),m=(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(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}});return s.bind(this)(m)}}})})(Ca);var oc=Ca.exports;const ac=_e(oc);var va={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){var r=o.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,g,T,b,y){var w=m.name?m:m.$locale(),h=s(w[g]),p=s(w[T]),d=h||p.map(function(I){return I.slice(0,b)});if(!y)return d;var B=w.weekStart;return d.map(function(I,A){return d[(A+(B||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(m,g){return m.formats[g]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,w){return y||w.slice(1)})}(m.formats[g.toUpperCase()])},u=function(){var m=this;return{months:function(g){return g?g.format("MMMM"):i(m,"months")},monthsShort:function(g){return g?g.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(m,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return f(m.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},l.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(g){return f(m,g)},meridiem:m.meridiem,ordinal:m.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(m){return i(c(),"weekdays",null,null,m)},l.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},l.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(va);var lc=va.exports;const rc=_e(lc);var ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(o).add(1,o).date(f),m=s(this).endOf(a);if(u.isBefore(m))return 1}var g=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),T=this.diff(g,a,!0);return T<0?s(this).startOf("week").week():Math.ceil(T)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ka);var ic=ka.exports;const sc=_e(ic);var Ta={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Ta);var cc=Ta.exports;const uc=_e(cc);var $a={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})($a);var dc=$a.exports;const fc=_e(dc);var Da={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Da);var mc=Da.exports;const hc=_e(mc);var Ea={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(ze,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Ea);var gc=Ea.exports;const pc=_e(gc);Fe.extend(rc),Fe.extend(ac),Fe.extend(nc),Fe.extend(sc),Fe.extend(uc),Fe.extend(fc),Fe.extend(hc),Fe.extend(pc);const Q={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[u,m]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(f));return[u,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=Q.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Q.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},xa=new Date().getFullYear(),Pn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Gt=(e,n,a)=>{let o;if(Le(n)?o=n:typeof n=="string"&&Be(n)>0?o=Q.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},qn=(e,n,a)=>{Le(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),Q.format(new Date(o),a)};let zn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(xa-10,0,1),validator:Le},maxDate:{type:Date,default:()=>new Date(xa+10,11,31),validator:Le},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:yc,scope:bc}=ee("date-picker"),Sc=yc({components:{[Ct.name]:Ct},props:{...zn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=Ee.useFoxI18n(bc),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,h=>{l.value=h});function r(h,p){return new Date(h,p,0).getDate()}const s=(h,p)=>{const d=e[`${h}Date`],B=d.getFullYear();let I=1,A=1,O=0,V=0;h==="max"&&(I=12,A=r(p.getFullYear(),p.getMonth()+1),O=23,V=59);const E=V;return p.getFullYear()===B&&(I=d.getMonth()+1,p.getMonth()+1===I&&(A=d.getDate(),p.getDate()===A&&(O=d.getHours(),p.getHours()===O&&(V=d.getMinutes())))),{[`${h}Year`]:B,[`${h}Month`]:I,[`${h}Date`]:A,[`${h}Hour`]:O,[`${h}Minute`]:V,[`${h}Seconds`]:E}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:h,maxDate:p,maxMonth:d,maxHour:B,maxMinute:I,maxSeconds:A}=s("max",g.value),{minYear:O,minDate:V,minMonth:E,minHour:D,minMinute:q,minSeconds:F}=s("min",g.value);let C=[{type:"year",range:[O,h]},{type:"month",range:[E,d]},{type:"day",range:[V,p]},{type:"hour",range:[D,B]},{type:"minute",range:[q,I]},{type:"seconds",range:[F,A]}];switch(e.type){case"date":C=C.slice(0,3);break;case"datetime":C=C.slice(0,5);break;case"time":C=C.slice(3,6);break;case"year-month":C=C.slice(0,2);break;case"month-day":C=C.slice(1,3);break;case"datehour":C=C.slice(0,4);break;case"hour-minute":C=C.slice(3,5);break}return C}),c=(h,p,d)=>{if(!(p>h))return null;const B=[];for(;h<=p;)e.isShowChinese?B.push({text:h+o[d],value:h}):B.push({text:`${h}`,value:h}),d==="minute"?h+=e.minuteStep:h++;return B},f=t.computed(()=>{let h=[];return i.value.forEach(p=>{let d=c(p.range[0],p.range[1],p.type);d&&h.push(d)}),h}),u=(h,p)=>h==="year"?p.getFullYear():h==="month"?p.getMonth()+1:h==="day"?p.getDate():h==="hour"?p.getHours():h==="minute"?p.getMinutes():h==="seconds"?p.getSeconds():0,m=t.ref(),g=t.ref(null);t.watchEffect(()=>{let h,p=e.modelValue;if(typeof p=="string"?p.length==0?h=new Date:e.valueFormat?h=Gt(e,e.modelValue,e.valueFormat):h=Gt(e,p,Pn[e.type]):Le(p)?h=p:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let d=[];i.value.forEach(B=>{let I=u(B.type,h);d.push(I)}),m.value=d}});const T=h=>{if(e.type==="date"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),d.getMonth(),d.getDate(),p[0],p[1],p[2]);g.value=B}else if(e.type==="year-month"){let p=h,d=new Date(p[0],p[1]-1);g.value=d}else if(e.type==="month-day"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),p[0]-1,p[1]);g.value=B}else if(e.type==="datehour"){let p=h;g.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=h,d=g.value??new Date,B=new Date(d.getFullYear(),d.getMonth(),d.getDate(),p[0],p[1]);g.value=B}m.value=h};return{columns:f,dateIndexs:m,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:h=>{T(h),l.value=!1;let p=g.value??new Date;if(e.valueFormat){let d=qn(e,p,e.valueFormat);n("update:modelValue",d)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",h)},onClear:()=>{n("clear")}}}});function wc(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const _n=ue(Sc,[["render",wc]]);function Cc(e){let n=e.format;if(!n){let a=e.type??"date";n=Pn[a]}return n}const Na={...zn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function vc(e,n,a){return{props:{...he,...ve,...Na,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),g=ie(o,"modelValue",k=>k==null?null:typeof k=="string"?k.length==0?null:o.valueFormat?Gt(o,k,o.valueFormat)??k:Gt(o,k,Pn[o.type])??k:Le(k)?k:null),T=t.computed(()=>{if(!g.value)return"";const k=Cc(o);return qn(o,g.value,k)}),b=e,y=t.computed(()=>({[`${b}__input`]:!0})),w=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:w.value??"right"}));let p=ie(o,"hintText"),d=t.ref(!1);const B=t.ref(!1),I=()=>{B.value=!0},A=()=>{B.value=!1},O=k=>{B.value=k},V=k=>{if(g.value=k,o.valueFormat){let R=qn(o,k,o.valueFormat);i("update:modelValue",R,{}),i("change",R,{})}else i("update:modelValue",k,{}),i("change",k,{})},E=k=>{let j=k.target.value;u.value=!0,i("focus",j,k)},D=k=>{setTimeout(()=>{u.value=!1},0);let j=k.target.value;o.maxLength&&j.length>Number(o.maxLength)&&(j=j.slice(0,Number(o.maxLength))),i("blur",j,k)},q=k=>{g.value="",i("update:modelValue","",k),i("change","",k),i("clear",""),A()},F=t.computed(()=>Be(o.unit)>0),C=Ne(t.computed(()=>o.longTermValue),"longTermValue",He.Near);let $=null;const x=t.ref(ne(o.longTerm)),P=k=>{if(x.value=k,i("update:longTerm",k),k){let R="";Array.isArray(C.value)?R=C.value.map((j,Y)=>j||(Array.isArray(g.value)&&g.value[Y]?g.value[Y]:o.valueFormat?Q.format(new Date,o.valueFormat):new Date)):R=C.value,$=g.value,i("update:modelValue",R)}else i("update:modelValue",$)},N=ne(o.isLongTerm);if(N){const k=()=>{if(x.value===!0){let R="";Array.isArray(C.value)?R=C.value.map((j,Y)=>j||(Array.isArray(g.value)&&g.value[Y]?g.value[Y]:o.valueFormat?Q.format(new Date,o.valueFormat):new Date)):R=C.value,$=g.value,i("update:modelValue",R)}else Me(C.value,g.value)&&(x.value=!0)};k(),t.watch([()=>o.longTerm],([R])=>{x.value!==R&&k()})}const z=t.ref();return me({showPicker:I,hidePicker:A,focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const k={class:y.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:o.clearable,value:T.value,onClick:I,onFocus:E,onBlur:D},R={};l.slots.prepend&&(R.prepend=l.slots.prepend),l.slots.append&&(R.append=l.slots.append),l.slots.prefix?R.prefix=l.slots.prefix:R.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.Calendar)}),l.slots.suffix?R.suffix=l.slots.suffix:F.value&&(R.suffix=()=>[o.unit]);const j=[],Y=t.h(v.ElInput,k,R);j.push(Y);const Z={default:()=>j};l.slots.default&&(Z.label=l.slots.default),l.slots.fixedTip&&(Z.fixedTip=l.slots.fixedTip);const te=ht(o,zn);te.valueFormat=null,te.disabled=!1,te.readonly=r.value||s.value||x.value,te.visible=B.value,te["onUpdate:visible"]=O,te.modelValue=g.value,te["onUpdate:modelValue"]=V,te.onClear=q;const oe={};if(l.slots.top){const M=l.slots.top();oe.top=()=>M}if(l.slots.bottom){const M=l.slots.bottom();oe.default=()=>M}const re=t.h(_n,te,oe);if(Z.hide=()=>[re],N){const M={label:o.longTermText,modelValue:x.value,"onUpdate:modelValue":P},L=t.h(v.ElCheckbox,M),W=t.h("div",{class:{[`${b}__append`]:!0}},[L]);Z.append=()=>W}const le={...Ce(o,Na),class:{[`${b}__wrapper`]:!0,"has-append":N},hintText:p.value,hintVisible:d.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,le,Z)}}}}const{componentName:kc,create:Tc,scope:$c}=ee("date-item"),Va=Tc(vc(kc,$c,we)),Dc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),jn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},Ba=39,Ia=64,{create:Ec,scope:xc}=ee("calendar-pane"),Nc=Ec({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:Q.getDay(0)},endDate:{type:String,default:Q.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=Ee.useFoxI18n(xc),r=o(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${Ba}px`})),i=t.computed(()=>({height:`${Ia}px`})),c=JSON.parse(l("weekdays")),f=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),m=t.ref(null),g=t.ref(null),T=t.ref(null),b=t.ref(0),y=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),w=t.computed(()=>a.btn),h=t.computed(()=>a["top-info"]),p=t.computed(()=>a["bottom-info"]),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),B=_=>_.split("-"),I=_=>Q.isEqual(d.currDate[0],_),A=_=>Q.isEqual(d.currDate[1],_),O=_=>d.currDate?.length>0?d.currDate?.some(M=>Q.isEqual(M,_)):!1,V=(_,M)=>M.curData[0]+"-"+M.curData[1]+"-"+Q.getNumTwoBit(+_.day),E=(_,M)=>{const L=V(_,M),{type:W}=e;return _.type=="curr"?Q.isEqual(d.currDate,L)||(W=="range"||W=="week")&&(I(L)||A(L))||W=="multiple"&&O(L)?`${d.dayPrefix}--active`:d.propStartDate&&Q.compareDate(L,d.propStartDate)||d.propEndDate&&Q.compareDate(d.propEndDate,L)?`${d.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&Q.compareDate(d.currDate[0],L)&&Q.compareDate(L,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},D=()=>{const{type:_}=e;if(_=="range"&&d.chooseData.length==2||_!="range"){let M=d.chooseData.slice(0);_=="week"&&(M={weekDate:[F(d.chooseData[0]),F(d.chooseData[1])]}),n("choose",M),e.poppable&&n("update")}},q=(_,M,L=!1)=>{if(E(_,M)!=`${d.dayPrefix}--disabled`){const{type:W}=e;let[G,H]=M.curData,K=[...M.curData];if(K[2]=Q.getNumTwoBit(Number(_.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=Q.getWhatDay(+K[0],+K[1],+K[2]),W=="multiple")if(d.currDate?.length>0){let U;d.currDate?.forEach((J,de)=>{J==K[3]&&(U=de)}),L?d.chooseData.push([...K]):U!==void 0?(d.currDate.splice(U,1),d.chooseData.splice(U,1)):(d.currDate.push(K[3]),d.chooseData.push([...K]))}else d.currDate=[K[3]],d.chooseData=[[...K]];else if(W=="range"){let U=Object.values(d.currDate).length;U==2||U==0?d.currDate=[K[3]]:Q.compareDate(d.currDate[0],K[3])?Array.isArray(d.currDate)&&d.currDate.push(K[3]):Array.isArray(d.currDate)&&d.currDate.unshift(K[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...K]]:Q.compareDate(d.chooseData[0][3],K[3])?d.chooseData=[...d.chooseData,[...K]]:d.chooseData=[[...K],...d.chooseData]}else if(W=="week"){let U=Q.getWeekDate(G,H,_.day,e.firstDayOfWeek);d.propStartDate&&Q.compareDate(U[0],d.propStartDate)&&U.splice(0,1,d.propStartDate),d.propEndDate&&Q.compareDate(d.propEndDate,U[1])&&U.splice(1,1,d.propEndDate),d.currDate=U,d.chooseData=[Q.formatResultDate(U[0]),Q.formatResultDate(U[1])]}else d.currDate=K[3],d.chooseData=[...K];if(!L){let U=d.chooseData;W=="week"&&(U={weekDate:[F(d.chooseData[0]),F(d.chooseData[1])]}),n("select",U),(e.isAutoBackFill||!e.poppable)&&D()}}},F=_=>{let[M,L,W]=_;return{date:_,monthWeekNum:Q.getMonthWeek(M,L,W,e.firstDayOfWeek),yearWeekNum:Q.getYearWeek(M,L,W,e.firstDayOfWeek)}},C=_=>{const M=_=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let L=parseInt(M.curData[0]),W=parseInt(M.curData[1].toString().replace(/^0/,""));switch(_){case"prev":W==1&&(L-=1),W=W==1?12:--W;break;case"next":W==12&&(L+=1),W=W==12?1:++W;break}return[L+"",Q.getNumTwoBit(W),Q.getMonthDays(String(L),String(W))+""]},$=(_,M,L)=>{let{year:W,month:G}=L;return M=="prev"&&_>=7&&(_-=7),Array.from(Array(_),(H,K)=>({day:String(K+1),type:M,year:W,month:G}))},x=(_,M,L,W)=>{_=_-e.firstDayOfWeek;let{year:G,month:H}=L;return M=="prev"&&_>=7&&(_-=7),Array.from(Array(W),(U,J)=>({day:String(J+1),type:M,year:G,month:H})).slice(W-_)},P=(_,M)=>{const L=Q.getMonthPreDay(+_[0],+_[1]);let W=Number(_[1])-1,G=Number(_[0]);W<=0&&(W=12,G+=1);const H=Q.getMonthDays(String(_[0]),String(_[1])),K=Q.getMonthDays(G+"",W+""),U={year:_[0],month:_[1]},J={curData:_,title:l("monthTitle",{year:U.year,month:U.month}),monthData:[...x(L,"prev",{month:String(W),year:String(G)},K),...$(H,"curr",U)],cssHeight:0,cssScrollHeight:0},de=J.monthData.length>35?6:5;J.cssHeight=Ba+Ia*de;let ge=0;d.monthsData.length>0&&(ge=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),J.cssScrollHeight=ge,M=="next"?(!d.endData||!Q.compareDate(`${d.endData[0]}-${d.endData[1]}-${Q.getMonthDays(d.endData[0],d.endData[1])}`,`${_[0]}-${_[1]}-${_[2]}`))&&d.monthsData.push(J):!d.startData||!Q.compareDate(`${_[0]}-${_[1]}-${_[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(J):d.unLoadPrev=!0},N=()=>{let _=e.startDate?e.startDate:Q.getDay(0),M=e.endDate?e.endDate:Q.getDay(365);d.propStartDate=_,d.propEndDate=M,d.startData=B(_),d.endData=B(M),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(d.startData[0]),month:Number(d.startData[1])},W={year:Number(d.endData[0]),month:Number(d.endData[1])};let G=W.month-L.month;W.year-L.year>0&&(G=G+12*(W.year-L.year)),G<=0&&(G=1),P(d.startData,"next");let H=1;do P(C("next"),"next");while(H++<G);if(d.monthsNum=G,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(_&&Q.compareDate(d.currDate[0],_)&&d.currDate.splice(0,1,_),M&&Q.compareDate(M,d.currDate[1])&&d.currDate.splice(1,1,M),d.defaultData=[...B(d.currDate[0]),...B(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let K=[],U={};d.currDate.forEach(J=>{_&&!Q.compareDate(J,_)&&M&&!Q.compareDate(M,J)&&(Object.hasOwnProperty.call(U,J)||(K.push(J),U[J]=J))}),d.currDate=[...K],d.defaultData=[...B(K[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[K,U,J]=B(d.currDate[0]),de=Q.getWeekDate(K,U,J,e.firstDayOfWeek);d.currDate=de,_&&Q.compareDate(d.currDate[0],_)&&d.currDate.splice(0,1,_),M&&Q.compareDate(M,d.currDate[1])&&d.currDate.splice(1,1,M),d.defaultData=[...B(d.currDate[0]),...B(d.currDate[1])]}}else d.currDate&&(_&&Q.compareDate(d.currDate,_)?d.currDate=_:M&&!Q.compareDate(d.currDate,M)&&(d.currDate=M),d.defaultData=[...B(d.currDate)])};me({scrollToDate:_=>{Q.compareDate(_,d.propStartDate)?_=d.propStartDate:Q.compareDate(_,d.propEndDate)||(_=d.propEndDate);let M=B(_);d.monthsData.forEach((L,W)=>{if(L.title==l("monthTitle",{year:M[0],month:M[1]})&&u.value){let G=d.monthsData[W].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let H=0,K=setInterval(()=>{if(H++,u.value){let U=G/10;u.value.scrollTop=u.value.scrollTop+U}H>=10&&(clearInterval(K),u.value&&(u.value.scrollTop=d.monthsData[W].cssScrollHeight))},40)}else u.value.scrollTop=d.monthsData[W].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let _=0,M=0;d.defaultData.length>0&&d.monthsData.forEach((G,H)=>{G.title==l("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(_=H),(e.type=="range"||e.type=="week")&&G.title==l("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(M=H)}),j(d.monthsNum,_),d.currentIndex=_,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),q({day:d.defaultData[5],type:"curr"},d.monthsData[M],!0)):e.type=="week"?q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(G=>{let H=B(G),K=d.currentIndex;d.monthsData.forEach((U,J)=>{U.title==l("monthTitle",{year:H[0],month:H[1]})&&(K=J)}),q({day:H[2],type:"curr"},d.monthsData[K],!0)}):q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let L=d.monthsData[d.monthsData.length-1],W=L.cssHeight+L.cssScrollHeight;no(()=>{u?.value&&m?.value&&T?.value&&(b.value=u.value.clientHeight,m.value.style.height=`${W}px`,u.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(W/(d.monthsNum+1))}});const j=(_,M)=>{_>=3?M>0&&M<_?d.defaultRange=[M-1,M+3]:M==0?d.defaultRange=[M,M+4]:M==_&&(d.defaultRange=[M-2,M+2]):d.defaultRange=[0,_+2];let L=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=L},Y=(_,M)=>(e.type=="range"||e.type=="week")&&_.type=="curr"&&E(_,M)=="fox-calendar__day--active",Z=(_,M)=>Y(_,M)&&I(V(_,M)),te=(_,M)=>d.currDate.length>=2&&A(V(_,M))?Y(_,M):!1,oe=()=>{if(d.currDate.length>=2)return Q.isEqual(d.currDate[0],d.currDate[1])},re=_=>{const M=`${_.year}-${_.month}-${Number(_.day)<10?"0"+_.day:_.day}`;return Q.isEqual(M,Q.date2Str(new Date))},X=_=>{if(d.monthsData.length<=1)return;const M=_.target.scrollTop;let L=Math.floor(M/d.avgHeight);if(L==0)M>=d.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<d.monthsNum-1)M>=d.monthsData[L+1].cssScrollHeight&&(L+=1),M<d.monthsData[L].cssScrollHeight&&(L-=1);else{const W=Math.round(M+b.value);W<d.monthsData[L].cssScrollHeight+d.monthsData[L].cssHeight&&M>d.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=d.monthsNum&&W>=d.monthsData[L+1].cssScrollHeight+d.monthsData[L+1].cssHeight&&(L+=1),L>=1&&M<d.monthsData[L-1].cssScrollHeight&&(L-=1)}d.currentIndex!==L&&(d.currentIndex=L,j(d.monthsNum,L)),d.yearMonthTitle=d.monthsData[L].title},le=()=>{d.chooseData.splice(0),d.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,_=>{_&&e.poppable&&le()}),{dayTitleStyle:s,dayCellStyle:i,weeks:f,compConthsData:y,showTopBtn:w,topInfo:h,bottomInfo:p,rangeTip:oe,mothsViewScroll:X,getClass:E,isStartTip:Z,isEndTip:te,chooseDay:q,isCurrDay:re,confirm:D,months:u,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:g,viewArea:T}}}),Vc={class:"fox-calendar__header"},Bc={key:0,class:"fox-calendar__header-title"},Ic={key:1,class:"fox-calendar__header-slot"},Ac={key:2,class:"fox-calendar__header-subtitle"},Oc={class:"fox-calendar__weekdays",ref:"weeksPanel"},Rc={class:"fox-calendar__panel",ref:"monthsPanel"},Fc={class:"fox-calendar__days"},Lc=["onClick"],Mc={class:"fox-calendar__day-value"},Pc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},qc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},zc={key:2,class:"fox-calendar__day-tips--curr"},_c={key:4,class:"fox-calendar__day-tip"},jc={key:0,class:"fox-calendar__footer"};function Hc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Vc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ic,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ac,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Oc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Rc,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",Fc,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,s)},[t.createElementVNode("view",Mc,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Pc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",qc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",zc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",_c,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Lc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",jc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Aa=ue(Nc,[["render",Hc]]),{create:Kc}=ee("calendar-picker"),Yc=Kc({components:{[Aa.name]:Aa,[Ye.name]:Ye},props:{...jn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=y=>{i.value?.scrollToDate(y)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),me({scrollToDate:c,initPosition:f});const u=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:u,close:m,select:y=>{n("select",y)},choose:y=>{m(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Wc(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Hn=ue(Yc,[["render",Wc]]),Kn=(e,n)=>{let a;return Le(e)?a=e:typeof e=="string"&&Be(e)>0?a=Q.parser(e,n):a=new Date,a},lt=(e,n,a)=>(Le(n)||(n=new Date),Q.format(n,a)),rt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=Q.date2Str(e),r=Q.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},Oa={...jn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Uc(e,n,a){return{props:{...he,...ve,...Oa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=t.computed(()=>o.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),y=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},w=(N,z="one",k="YYYY-MM-DD")=>{if(Dc(N)){y();return}if(T.value&&Array.isArray(N)&&N.length==2){let R,j;typeof N[0]=="string"?(R=Kn(N[0],k),j=Kn(N[1],k)):(R=N[0],j=N[1]);let Y=rt(R),Z=rt(j);(b.startDate===null||b.startDate.getTime()!==R.getTime()||b.endDate?.getTime()!==j.getTime())&&(b.startDate=R,b.startArray=Y,b.endDate=j,b.endArray=Z)}else{let R;typeof N=="string"?R=Kn(N,k):R=N;let j=rt(R);(b.startDate===null||b.startDate.getTime()!==R.getTime())&&(b.startDate=R,b.startArray=j)}};w(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{w(N,o.type,o.valueFormat)});const h=t.computed(()=>{if(b.startDate===null)return"";if(T.value){let N=lt(o,b.startDate,o.format),z=lt(o,b.endDate,o.format);return`${N} ${o.rangeSeparator} ${z}`}else{let N=lt(o,b.startDate,o.format);return o.showWeek&&(N=`${N} ${b.startArray[4]}`),N}}),p=t.computed(()=>{if(b.startDate===null)return null;if(T.value){let N=Q.date2Str(b.startDate),z=Q.date2Str(b.endDate??new Date);return[N,z]}else return Q.date2Str(b.startDate)}),d="fox-input-item",B=t.computed(()=>({[d]:!0,[`${d}__disabled`]:r.value})),I=Ne(t.computed(()=>o.textAlign),"textAlign"),A=t.computed(()=>({textAlign:I.value??"right"})),O=t.ref(!1),V=()=>{s.value||r.value||(O.value=!0)},E=()=>{O.value=!1},D=N=>{O.value=N},q=N=>{if(N){if(T.value&&Array.isArray(N)){let z=N[0],k=se(z[0]),R=se(z[1]),j=se(z[2]),Y=new Date(k,R-1,j),Z=N[1];k=se(Z[0]),R=se(Z[1]),j=se(Z[2]);let te=new Date(k,R-1,j);if(b.startDate=Y,b.startArray=rt(Y),b.endDate=te,b.endArray=rt(te),o.valueFormat){let oe=lt(o,Y,o.valueFormat),re=lt(o,te,o.valueFormat);i("update:modelValue",[oe,re],{})}else i("update:modelValue",[Y,te],{})}else{let z=N,k=se(z[0]),R=se(z[1]),j=se(z[2]),Y=new Date(k,R-1,j);if(b.startDate=Y,b.startArray=rt(Y),o.valueFormat){let Z=lt(o,Y,o.valueFormat);i("update:modelValue",Z,{})}else i("update:modelValue",Y,{})}i("change",N,{})}},F=N=>{let k=N.target.value;g.value=!0,i("focus",k,N)},C=N=>{setTimeout(()=>{g.value=!1},0);let k=N.target.value;o.maxLength&&k.length>Number(o.maxLength)&&(k=k.slice(0,Number(o.maxLength))),i("blur",k,N)},$=t.computed(()=>Be(o.unit)>0),x=N=>{y(),i("update:modelValue",null,N),i("change","",N),i("clear","")},P=t.ref();return me({showPicker:V,hidePicker:E,focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const N={class:B.value,style:A.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,clearable:o.clearable,value:h.value,onClick:V,onFocus:F,onBlur:C,onClear:x},z={};l.slots.prepend&&(z.prepend=l.slots.prepend),l.slots.append&&(z.append=l.slots.append),l.slots.prefix?z.prefix=l.slots.prefix:z.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.Calendar)}),l.slots.suffix?z.suffix=l.slots.suffix:$.value&&(z.suffix=()=>[o.unit]);const k=[],R=t.h(v.ElInput,N,z);k.push(R);const j={default:()=>k};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const Y=ht(o,jn);Y.visible=O.value,Y["onUpdate:visible"]=D,Y["default-value"]=p.value,Y.onChoose=q;const Z={};if(l.slots.btn){const le=l.slots.btn();Z.btn=()=>le}l.slots.day&&(Z.day=l.slots.day),l.slots.topInfo&&(Z.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(Z.bottomInfo=l.slots.bottomInfo);const te=t.h(Hn,Y,Z);j.hide=()=>[te];const re={...Ce(o,Oa),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,re,j)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ee("calendar-item"),Ra=Xc(Uc(Gc,Zc,we)),Fa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Jc(e,n,a){return{props:{...he,...ve,...Fa},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=A=>{m.value=A,i("update:modelValue",A),i("change",A)};let y=ie(o,"hintText"),w=t.ref(!1);const h=A=>{let V=A.target.value;u.value=!0,pe(y.value)||(w.value=!0),i("focus",V,A)},p=A=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let V=A.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),i("blur",V,A)},d=()=>{i("clear","")},B=A=>{i("visible-change",A)},I=t.ref();return me({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const O={...l.attrs,ref:I,class:T.value,placeholder:f.placeholder.value,disabled:r.value,readonly:s.value,modelValue:m.value,"onUpdate:modelValue":b,onClear:d,onFocus:h,onBlur:p,onVisibleChange:B},V={},E=[],D=t.h(v.ElTimePicker,O,V);E.push(D);const q={default:()=>E};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const C={...Ce(o,Fa),hintText:y.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,C,q)}}}}const{componentName:Qc,create:eu,scope:tu}=ee("time-item"),La=eu(Jc(Qc,tu,we)),Ma={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nu(e,n,a){return{props:{...he,...ve,...Ma},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=I=>{m.value=I,i("update:modelValue",I),i("change",I)};let y=ie(o,"hintText"),w=t.ref(!1);const h=I=>{let O=I.target.value;u.value=!0,pe(y.value)||(w.value=!0),i("focus",O,I)},p=I=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let O=I.target.value;o.maxLength&&O.length>Number(o.maxLength)&&(O=O.slice(0,Number(o.maxLength))),i("blur",O,I)},d=()=>{i("clear","")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const A={...l.attrs,ref:B,class:T.value,placeholder:f.placeholder.value,disabled:r.value,readonly:s.value,modelValue:m.value,"onUpdate:modelValue":b,onClear:d,onFocus:h,onBlur:p},O={},V=[],E=t.h(v.ElTimeSelect,A,O);V.push(E);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const F={...Ce(o,Ma),hintText:y.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,F,D)}}}}const{componentName:ou,create:au,scope:lu}=ee("time-select-item"),Pa=au(nu(ou,lu,we));function qa(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function za(e,n,a=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=so(`${e}`,`${n}`);return qa(o)}else{let o=hn(`${e}`,co(`${n}`),20);return qa(o)}}function ru(e,n=-1,a=!1,o=3,l=","){return Nt(e,n,a,o,l)}function _a(e,n,a,o,l=!0){if(e=="")return"";if(e=uo(e),n=se(n),n==1)return e;if(o)e=za(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(se(a)+2,"0"):e=hn(e,1,se(a)));else{let r=-1*n;e=za(e,r)}return e}function ja(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ne(n.minInclude),l=gn(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=ne(n.maxInclude),l=gn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ha={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 iu(e,n,a){return{props:{...he,...ve,...Ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(!1),f=ie(o,"modelValue"),u=t.ref("");t.watch([()=>f.value,()=>o.rates,()=>o.precision],([C,$,x])=>{if(pe(C)){u.value="";return}const P=_a(C,$,x,!1);u.value!==P&&(u.value=P)},{immediate:!0});const m=t.computed(()=>{let C="";return c.value&&(C=u.value),C}),{t:g}=Ee.useFoxI18n(n),T=t.computed(()=>{let C=o.placeholder??"";return!c.value&&!pe(u.value)?C=ru(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):C=g(["placeholder",C]),C}),b=e,y=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__placeholder`]:u.value.length>0})),w=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:w.value??"right"});const h=t.ref(""),p=t.computed(()=>{let C=h.value;return pe(C)&&(C=o.errorTip??""),C}),d=t.ref(""),B=t.ref(!1),I=(C,$)=>{if(C=`${C}`,pe(C)){u.value="",f.value="",$.forEach(x=>{i(x,"")}),ne(o.showTip)&&B.value&&(B.value=!1);return}if(C.length>=2){let x=C;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){t.triggerRef(u);return}}if(C!="-"){if(!Co(C)){t.triggerRef(u);return}if(o.integerLength!=-1&&vo(C)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&ko(C)>Number(o.decimalLength)){t.triggerRef(u);return}let x=ja(C,o);if(x.maxValid===!1){h.value=x.message,t.triggerRef(u);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(u);return}d.value=C,ne(o.showTip)&&(B.value=C.length>0),u.value=C,f.value=_a(C,o.rates,o.precision,!0),$.forEach(x=>{i(x,f.value)})},A=C=>{I(C,["update:modelValue","input"])},O=C=>{I(C,["update:modelValue","change"])},V=C=>{if(c.value=!0,ne(o.showTip)){let $=u.value;pe($)&&($=o.hintText),pe($)||(d.value=$,B.value=!0)}h.value="",i("focus",f.value,C)},E=C=>{if(setTimeout(()=>{c.value=!1,ne(o.showTip)&&B.value===!0&&(B.value=!1)},0),!pe(u.value)){let $=ja(u.value,o);if($.minValid===!1||$.maxValid===!1){h.value=$.message;return}}i("update:modelValue",f.value,C),i("blur",f.value,C)},D=()=>{i("clear","")},q=t.computed(()=>Be(o.unit)>0),F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const $={...l.attrs,ref:F,class:y.value,type:"digit",maxlength:o.maxLength,placeholder:T.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:D,onInput:A,onChange:O,onFocus:V,onBlur:E},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:q.value&&(x.suffix=()=>[o.unit]);const P=[],N=t.h(v.ElInput,$,x);P.push(N);const z={default:()=>P};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const R={...Ce(o,Ha),errorTip:p.value,hintText:d.value,hintVisible:B.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,R,z)}}}}const{componentName:su,create:cu,scope:uu}=ee("money-item"),Ka=cu(iu(su,uu,we)),Ya={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 du(e,n,a){return{props:{...he,...ve,...Ya},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__append`]:A.value})),b=t.computed(()=>({[`${g}__unit`]:!0})),y=V=>{m.value=V,i("update:modelValue",V),i("input",V)},w=V=>{i("change",V)};let h=ie(o,"hintText"),p=t.ref(!1);const d=V=>{let D=V.target.value;u.value=!0,pe(h.value)||(p.value=!0),i("focus",D,V)},B=V=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let D=V.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),i("blur",D,V)},I=()=>{i("clear","")},A=t.computed(()=>Be(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const E={...l.attrs,ref:O,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:I,onChange:w,onInput:y,onFocus:d,onBlur:B},D={},q=[],F=t.h(v.ElInputNumber,E,D);q.push(F);const C={default:()=>q};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const x={...Ce(o,Ya),hintText:h.value,hintVisible:p.value,prop:`${o.prop}_item`};if(l.slots.append)C.append=l.slots.append;else if(A.value){const N={class:b.value},z=t.h("div",N,[o.unit]);C.append=()=>z}return t.h(a,x,C)}}}}const{componentName:fu,create:mu,scope:hu}=ee("input-number-item"),Wa=mu(du(fu,hu,we));function vt(e,n){const a=e.textKey??"text";return n[a]??""}function kt(e,n){const a=e.valueKey??"value";return n[a]}function Ua(e,n){const a=e.childrenKey??"children";return n[a]}function Xt(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=vt(e,l),s=kt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Ga(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(vt(e,n[s])===r){const c=kt(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const u=Ua(e,n[s]);Array.isArray(u)&&Ga(e,u,a,o+1,l);return}}function Xa(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(kt(e,n[s])===r){const c=vt(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const u=Ua(e,n[s]);Array.isArray(u)&&Xa(e,u,a,o+1,l);return}}function Yn(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=vt(e,n[o]),r=vt(e,a[o]);if(l!==r)return!1;const s=kt(e,n[o]),i=kt(e,a[o]);if(s!==i)return!1}return!0}let gu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Oe(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ie(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function pu(){const e=t.getCurrentInstance();return new gu(e.proxy)}const Zt=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...u}=o,m={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return m.children&&m.children.length&&(m.children=Zt(m.children,m,a)),m}),Za=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Za(o.children,n)},yu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},bu=(e,n)=>{const a={...yu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:u,[r]:m}=f,g=c[m]=c[m]||[];!i.length&&m===o&&(i=g),g.push(f),f.children=c[u]||(c[u]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((u,m)=>u[s]-m[s])}),c=null,i},Su=/scroll|auto|overlay/i,wu=window;function Cu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ja(e,n=wu){let a=e;for(;a&&a!==n&&Cu(a);){const{overflowY:o}=window.getComputedStyle(a);if(Su.test(o))return a;a=a.parentNode}return n}const{create:vu}=ee("sticky"),ku=vu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!a.value&&!f)return;const u=Ke(a),m=o.value,g=Ke(m),T=Ke(f);l.height=u.height;const b=()=>{let w=!1;if(e.position==="top")w=f?r.value>u.top&&T.bottom>0:r.value>u.top;else{const h=document.documentElement.clientHeight;w=f?T.bottom>0&&h-r.value-g.height>T.top:h-r.value<u.bottom}return w},y=()=>{if(f)if(e.position==="top"){const w=T.bottom-r.value-g.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,h=T.bottom-(w-r.value);return h<0?h:0}return 0};l.transform=y(),l.fixed=b()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),Ja(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Ja(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Tu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Jt=ue(ku,[["render",Tu]]),$u=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let g=await o(l,a);r.value.width=g.width||0,r.value.height=g.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ln();let f="";const u=(g,T)=>{let b=g;switch(e.direction=="horizontal"?(f=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(f=T>0?"bottom":"top",b=T,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),f){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),i.moving=!0,u(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Du{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Eu}=ee("ext-tabs"),xu=Eu({components:{[Jt.name]:Jt,JoySmile:Gr},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=E=>{E.forEach((D,q)=>{let F=D.type;if(F=F.name||F,F=="fox-ext-tab-pane"){let C=new Du;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let $=et(D.props?.["pane-key"]),x=$=="number"||$=="string"?String(D.props?.["pane-key"]):null,P=et(D.props?.paneKey),N=P=="number"||P=="string"?String(D.props?.paneKey):null;C.title=D.props?.title,C.paneKey=x||N||String(q),C.disabled=D.props?.disabled}r.value.push(C)}else{if(D.children==" ")return;Array.isArray(D.children)&&s(D.children)}})},i=t.ref(e.modelValue||0),c=E=>{let D=r.value.findIndex(q=>q.paneKey==E);r.value.length==0||D==-1||(i.value=D)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),m=t.ref([]),g=E=>{const D=u.value,q=m.value;if(!D||!q||!q[i.value])return;const F=q[i.value];let C=0;e.direction==="vertical"?C=F.offsetTop-D.offsetTop+10-(D.offsetHeight-F.offsetHeight)/2:C=F.offsetLeft-(D.offsetWidth-F.offsetWidth)/2,T(D,C,E?0:.3,e.direction)},T=(E,D,q,F)=>{let C=0;const $=F==="horizontal"?E.scrollLeft:E.scrollTop,x=q===0?1:Math.round(q*1e3/16);function P(){F==="horizontal"?E.scrollLeft+=(D-$)/x:E.scrollTop+=(D-$)/x,++C<x&&fo(P)}P()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(D=>typeof D.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{g()})},y=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const w=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let D=Ke(o.value).top+w(),q=Math.ceil(D-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const h={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,h.updateValue(r.value[i.value])},prev:()=>{i.value-=1,h.updateValue(r.value[i.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,D)=>{n("click",E),!(E.disabled||i.value==D)&&(i.value=D,h.updateValue(E))},setTabItemRef:(E,D)=>{m.value[D]=E}},{tabsContentRef:p,touchState:d,touchMethods:B}=$u(e,h),I=t.computed(()=>{let E=i.value*100;d.moving&&(E+=d.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:d.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),A=t.computed(()=>({background:e.background})),O=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const E=Se(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}});return{navRef:u,tabsContentRef:p,titles:r,contentStyle:I,tabsNavStyle:A,titleStyle:V,tabsActiveStyle:O,container:o,getScrollY:f,onStickyScroll:y,...h,...B}}}),Nu=["onClick"],Vu=["onClick"];function Bu(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,f),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Nu))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,f)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Vu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Qt=ue(xu,[["render",Bu]]),{create:Iu}=ee("ext-tab-pane"),Au=Iu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Ou(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const en=ue(Au,[["render",Ou]]);class Qa{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Zt(n,null,this.config)}updateChildren(n,a){a?a.children=Zt(n,a,this.config):this.nodes=Zt(n,null,this.config)}getNodeByValue(n){let a;return Za(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Ru,scope:Fu}=ee("cascader-pane"),Lu=Ru({components:{Loading:zr,Checklist:oi,[Qt.name]:Qt,[en.name]:en},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const a=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),l=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Qa([],{})),i=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),f=new Map;let u;const m=async()=>{f.clear(),i.value=[],o.value=0,l.value=!1,u=null;let{options:h}=e;a.value.convertConfig&&(h=bu(h,a.value.convertConfig)),s.value=new Qa(h,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!s.value.nodes.length&&await T({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],g()},g=async()=>{const h=r.value;if(h===void 0||!s.value.nodes.length)return;if(h.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=h;if(c.value&&Array.isArray(h)&&h.length){p=[];let d=s.value.nodes.find(B=>B.value===h[0]);if(d){p=[d.value],l.value=!0;const B=await h.slice(1).reduce(async(I,A)=>{const O=await I;await T(O);const V=O?.children?.find(E=>E.value===A);return V&&p.push(A),Promise.resolve(V)},Promise.resolve(d));await T(B),l.value=!1}}p.length&&h===e.modelValue&&s.value.getPathNodesByValue(p).map((B,I)=>{o.value=I,w.handleNode(B,!0)})},T=async h=>{if(!h)return;if(!a.value.lazyLoad){h.leaf=!0;return}if(s.value.isLeaf(h,c.value)||s.value.hasChildren(h,c.value))return;h.loading=!0;const p=h.root?null:h;let d=f.get(h);d||(d=new Promise(I=>{a.value.lazyLoad?.(h,I)}),f.set(h,d));const B=await d;Array.isArray(B)&&B.length>0?s.value.updateChildren(B,p):h.leaf=!0,h.loading=!1,f.delete(h)},b=h=>{const p=h.map(d=>d.value);r.value=p,n("change",p,h),n("update:modelValue",p,h)},{t:y}=Ee.useFoxI18n(Fu),w={async handleNode(h,p){const{disabled:d,loading:B}=h;if(!(!p&&d||!i.value[o.value])){if(s.value.isLeaf(h,c.value)){if(h.leaf=!0,i.value[o.value].selectedNode=h,i.value=i.value.slice(0,h.level+1),!p){const I=i.value.map(A=>A.selectedNode);b(I),n("pathChange",I)}return}if(s.value.hasChildren(h,c.value)){const I=h.level+1;if(i.value[o.value].selectedNode=h,i.value=i.value.slice(0,I),i.value.push({nodes:h.children||[],selectedNode:null}),o.value=I,!p){const A=i.value.map(O=>O.selectedNode);n("pathChange",A)}return}u=h,!B&&(await T(h),u===h&&(i.value[o.value].selectedNode=h,w.handleNode(h,p)))}},handleTabClick(h){u=null,o.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:y("select")},isSelected(h,p){return h.selectedNode&&h.selectedNode.value===p.value}};return t.watch([a,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,h=>{h!==r.value&&(r.value=h,g())}),t.watch(()=>e.visible,h=>{h&&Array.isArray(r.value)&&r.value.length>0&&g()}),{panes:i,initLoading:l,tabsCursor:o,...w}}}),Mu={role:"menu",class:"fox-cascader__pane"},Pu=["aria-checked","aria-disabled","onClick"],qu={class:"fox-cascader__item__title"},zu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function _u(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),f=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(f,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(u),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Mu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,g),disabled:g.disabled}]),"aria-checked":e.isSelected(u,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(g,!1)},[t.createElementVNode("view",qu,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Pu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[zu]),_:1}))]),_:1},8,["modelValue","onClick"])}const el=ue(Lu,[["render",_u]]),{create:ju}=ee("cascader-picker"),Hu=ju({components:{[el.name]:el,[Ye.name]:Ye},props:{...Rn,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),Ku=["innerHTML"];function Yu(e,n,a,o,l,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Ku)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Wn=ue(Hu,[["render",Yu]]),tl={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Wu(e,n,a){return{props:{...he,...ve,...tl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=pu(),b=t.ref([]);t.watch([()=>o.source,()=>o.params],async([P,N])=>{P&&(b.value=await T.load(P,N))},{immediate:!0});const y=t.ref([]),w=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),h=t.ref([]),p=t.ref([]);t.watch([()=>o.modelValue,b],async([P,N])=>{if(o.lazy===!0){p.value.length==0&&(y.value=Array.isArray(P)?P:[],h.value=Array.isArray(P)?P:[]);return}if(o.valueType==="item"){let z=P;if(!Yn(o,z,p.value)){p.value=z;let k=Xt(o,z);y.value=k.texts,h.value=k.values}}else if(o.valueType==="text"){let z=P,k=[];if(Ga(o,N,z,0,k),!Yn(o,k,p.value)){p.value=k;let R=Xt(o,k);z.value=R.texts,h.value=R.values}}else{let z=P,k=[];if(Xa(o,N,z,0,k),!Yn(o,k,p.value)){p.value=k;let R=Xt(o,k);y.value=R.texts,z.value=R.values}}});const d=e,B=t.computed(()=>({[d]:!0})),I=Ne(t.computed(()=>o.textAlign),"textAlign"),A=t.computed(()=>({textAlign:I.value??"right"})),O=t.ref(!1),V=()=>{r.value===!0||s.value===!0||(O.value=!0)},E=P=>{O.value=P},D=(P,N)=>{let z=N.map(R=>{if(R==null)return R;let j={...R};return Reflect.deleteProperty(j,"text"),j[o.textKey]=R.text??"",Reflect.deleteProperty(j,"value"),j[o.valueKey]=R.value??"",j});p.value=z;let k=Xt(o,z);y.value=k.texts,h.value=k.values,o.valueType==="text"?(i("change",y.value,z),i("update:modelValue",y.value)):o.valueType==="item"?(i("change",z,z),i("update:modelValue",z)):(i("change",h.value,z),i("update:modelValue",h.value)),i("update:pathNodes",z)},q=P=>{let N=P.map(z=>{if(z==null)return z;let k={...z};return Reflect.deleteProperty(k,"text"),k[o.textKey]=z.text??"",Reflect.deleteProperty(k,"value"),k[o.valueKey]=z.value??"",k});i("pathChange",N)},F=P=>{g.value=!0,i("focus",h.value,P)},C=P=>{setTimeout(()=>{g.value=!1},0),i("blur",h.value,P)},$=t.computed(()=>Be(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!s.value);const x=t.ref();return me({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const P={class:B.value,style:A.value,type:"text",maxlength:o.maxLength,placeholder:f.placeholder.value,readonly:!0,value:w.value,onClick:V,onFocus:F,onBlur:C},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:$.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h(De.ArrowDown)});const z=[],k=t.h(v.ElInput,P,N);z.push(k);const R={default:()=>z};l.slots.default&&(R.label=l.slots.default),l.slots.fixedTip&&(R.fixedTip=l.slots.fixedTip);let j={};j.visible=O.value,j["onUpdate:visible"]=E,j.modelValue=h.value,j.onChange=D,j.onPathChange=q,j.options=b.value,j.title=o.title,j.lazy=o.lazy,j.lazyLoad=o.lazyLoad,j.valueKey=o.valueKey,j.textKey=o.textKey,j.childrenKey=o.childrenKey,j.convertConfig=o.convertConfig;const Y=t.h(Wn,j);R.hide=()=>[Y];const te={...Ce(o,tl),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,te,R)}}}}const{componentName:Uu,create:Gu,scope:Xu}=ee("cascader-item"),nl=Gu(Wu(Uu,Xu,we)),ol={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zu(e,n,a){return{props:{...he,...ve,...ol},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),f=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),b=O=>{m.value=O,i("update:modelValue",O),i("input",O)},y=O=>{i("change",O)},w=O=>{i("select",O)};let h=ie(o,"hintText"),p=t.ref(!1);const d=O=>{let E=O.target.value;u.value=!0,pe(h.value)||(p.value=!0),i("focus",E,O)},B=O=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let E=O.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),i("blur",E,O)},I=()=>{i("clear","")},A=t.ref();return me({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const V={...l.attrs,ref:A,class:T.value,placeholder:f.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:m.value,onClear:I,onChange:y,onInput:b,onFocus:d,onBlur:B,onSelect:w},E={};l.slots.prepend&&(E.prepend=l.slots.prepend),l.slots.append&&(E.append=l.slots.append),l.slots.prefix&&(E.prefix=l.slots.prefix),l.slots.suffix&&(E.suffix=l.slots.suffix),l.slots.option&&(E.default=l.slots.option);const D=[],q=t.h(v.ElAutocomplete,V,E);D.push(q);const F={default:()=>D};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,ol),hintText:h.value,hintVisible:p.value,prop:`${o.prop}_item`};return t.h(a,$,F)}}}}const{componentName:Ju,create:Qu,scope:ed}=ee("autocomplete-item"),al=Qu(Zu(Ju,ed,we));function td(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let u=r[f],m=c.find(g=>g[o]===u);if(!m)break;s.push(m[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],u=r[c];const m=f.find(g=>g[o]===u);if(!m)break;s.push(m[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let u=r[f],m=c.find(g=>g[o]===u);if(!m)break;s.push(m[a]),c=m[l]}}return s}let nd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function od(){const e=t.getCurrentInstance();return new nd(e.proxy)}const ll={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 ad(e,n){return{props:{...ll},setup(a,{attrs:o,slots:l}){const r=od(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([f,u])=>{s.value=await r.load(a.sourceType,f,u)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=td(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const f={...o};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},i.value):t.h(c,f,{default:()=>i.value}):t.h(c,f,i.value)}}}}const{componentName:Qm,create:ld,scope:eh}=ee("mapping"),tn=ld(ad());function rd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function id(e,n){return{props:{...ll},setup(a,{attrs:o,slots:l}){return()=>{const r={default:s=>{const i=rd(s.row,s.column.property);return l.default?t.h(tn,{...a,modelValue:i},{default:l.default}):t.h(tn,{...a,modelValue:i})}};return t.h(v.ElTableColumn,{...o},r)}}}}const{componentName:th,create:sd,scope:nh}=ee("table-mapping-column"),rl=sd(id()),cd=Symbol.for("TableStateKey");function il(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function ud(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(cd,{});return()=>{const r=l.currentRow?l.currentRow.value:null,s={default:i=>{const c=il(i.row,i.column.property),f=r?il(r,i.column.property):null,u=c===f,m={class:{"el-radio__input":!0,"is-checked":u}},g=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":u}};return t.h("label",T,[g])}};return t.h(v.ElTableColumn,{...o},s)}}}}const{componentName:oh,create:dd,scope:ah}=ee("table-radio-column"),sl=dd(ud()),fd={},md={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"},hd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function gd(e,n){return t.openBlock(),t.createElementBlock("svg",md,hd)}const pd=ue(fd,[["render",gd]]),{componentName:rh,create:yd,scope:ih}=ee("table-setting"),bd={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:"不固定"}},Sd=yd({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:pd,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...bd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(k=>k.label===""||k.type?!1:k.fixed===""||k.fixed===!0||k.fixed==="left")),s=t.computed(()=>l.value.filter(k=>k.label===""||k.type?!1:k.fixed==="right")),i=t.computed(()=>l.value.filter(k=>!(k.label===""||k.type||k.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||s.value.length>0)&&i.value.length>0),f=t.computed(()=>r.value.length>0),u=t.computed(()=>s.value.length>0),m=k=>k.length>1,g=k=>{const R=[];l.value=k.map((Y,Z)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&R.push(Y.prop),{...Y,sortIndex:Z})),i.value.length+r.value.length+s.value.length===R.length?p.value=!0:R.length>0&&(d.value=!0),A.value=R},T=k=>k?k.type?k.type:k.label?k.prop:"":"",b=(k,R)=>{if(k.length!==R.length)return!1;const j=k.map(Y=>T(Y));for(let Y of R){const Z=T(Y);if(j.indexOf(Z)===-1)return!1}return!0},y=k=>{if(!k){const R=e.tableRef.getColumnSetting(),j=R.srcColumnPropertyList;o=j.map((Y,Z)=>({...Y,sortIndex:Z})),k=R.columnPropertyList,k&&k.length>0&&b(j,k)||(k=j)}g(k)},w=()=>{e.tableRef.setColumnSetting(l.value)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),d=t.ref(!1),B=k=>{const R=[];l.value.forEach(Y=>{k&&!(Y.label===""||Y.type)&&R.push(Y.prop),Y.visible=k}),p.value=!1,d.value=!1,i.value.length+r.value.length+s.value.length===R.length?p.value=!0:R.length>0&&(d.value=!0),A.value=R,w()},I=()=>{y(o),w()},A=t.ref([]),O=k=>{l.value.forEach(j=>{if(j.label===""||j.type)return;const Y=k.indexOf(j.prop)!==-1;j.visible=Y}),p.value=!1,d.value=!1;const R=i.value.length+r.value.length+s.value.length;k.length===R?p.value=!0:k.length>0&&(d.value=!0),w()},V=()=>{y()};t.onMounted(()=>{setTimeout(()=>{y()},50)});const E={currentRow:null,index:null,roleType:null},D=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,D(k)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:c,isShowLeftFixedTitle:f,isShowRightFixedTitle:u,isDraggble:m,isCheckAll:p,isIndeterminate:d,handleCheckAllChange:B,handleReset:I,checkedValue:A,handleCheckChange:O,onShow:V,onDragStart:k=>{const R=k.currentTarget;R&&R.dataset&&(E.roleType=R.dataset.roleType,E.index=R.dataset.index)},onDragEnd:k=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},onDragOver:k=>{const R=k.currentTarget;k.relatedTarget;const j=D(R);if(!j)return;const Y=j.dataset&&j.dataset.roleType;E.roleType===Y&&(k.preventDefault(),E.currentRow&&E.currentRow!==j&&E.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),E.currentRow=j)},onDragLeave:k=>{k.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},onDrop:k=>{const R=k.currentTarget,j=D(R);if(!j)return;const Y=j.dataset&&j.dataset.roleType;if(E.roleType!==Y)return;k.preventDefault();const Z=Number(E.index),te=Number(j.dataset.index);if(Z!==te){if(Z<te){const oe=l.value[Z];l.value.splice(Z,1),l.value.splice(te,0,oe)}else{const oe=l.value[Z];l.value.splice(Z,1),l.value.splice(te+1,0,oe)}g(l.value),w()}},toLeftFixed:k=>{const R=l.value[k];R.fixed="left",w()},toRightFixed:k=>{const R=l.value[k];R.fixed="right",w()},toUnFixed:k=>{const R=l.value[k];R.fixed=void 0,w()},checkboxLabelStyle:h}}}),wd={class:"fox-table-setting"},Cd={class:"fox-table-setting__header"},vd={class:"fox-table-setting__body"},kd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Td={key:0,class:"fox-table-setting__body-title"},$d=["data-index","draggable"],Dd={class:"tools-item"},Ed={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},xd={key:0,class:"fox-table-setting__body-title"},Nd=["data-index","draggable"],Vd={class:"tools-item"},Bd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Id={key:0,class:"fox-table-setting__body-title"},Ad=["data-index","draggable"],Od={class:"tools-item"};function Rd(e,n,a,o,l,r){const s=t.resolveComponent("FoxCheckbox"),i=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("Download"),T=t.resolveComponent("fox-checkbox"),b=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",wd,[t.createElementVNode("div",Cd,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",vd,[t.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",kd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Td,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[2]||(n[2]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[3]||(n[3]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[4]||(n[4]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[5]||(n[5]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Dd,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,$d))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Ed,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",xd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[7]||(n[7]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[8]||(n[8]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[9]||(n[9]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[10]||(n[10]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Vd,[t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Nd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Bd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Id,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[12]||(n[12]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[13]||(n[13]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[14]||(n[14]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[15]||(n[15]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(T,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Od,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(w.sortIndex)},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ad))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Un=ue(Sd,[["render",Rd]]);let Fd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=(o-1)*l,u=f+l;u>a.length&&(u=a.length);const m=a.slice(f,u);return{totalSize:a.length,page:m}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s,i]);const c=Oe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ie(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,s,i]))}};function Ld(){const e=t.getCurrentInstance();return new Fd(e.proxy)}class Md{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Oe(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Oe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Pd(){const e=t.getCurrentInstance();return new Md(e.proxy)}const qd=Symbol.for("TableStateKey");function zd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let f=r.substring(i+1,c);if(/^\d+$/.test(f)){let u=parseInt(f);if(s==0){let m=r.substring(0,i);o=o[m][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function Gn(e,n){return e.filter(o=>{for(let l in n){const r=n[l],s=zd(o,l);if(r!==s)return!1}return!0})}const cl={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},ul={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},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:"不固定"}};function _d(e,n,a){return{inheritAttrs:!1,props:{...he,...ve,...cl,...ul,...Xn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,l){const{locale:r}=Ee.useFoxI18n(n),{emitEvent:s}=be({componentName:e,validateHandler:{getValue(...H){return d.value}}},o.prop??l.attrs.name),i=e,c=t.computed(()=>({[i]:!0})),f=t.computed(()=>({[`${i}__setting`]:!0})),u=t.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,H=>{g.value=H});const T=H=>{g.value=H,s("page-index-change",H)},b=t.ref(o.pageSize);t.watch(()=>o.pageSize,H=>{b.value=H});const y=H=>{b.value=H,s("page-size-change",H)},w=t.shallowRef({}),h=t.computed(()=>({...w.value,...o.params??{},...o.baseParams??{}})),p=t.ref(0),d=t.ref(),B=Ld();let I=!0;const A=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:ne(o.autoLoad),O=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,H=>ne(H)),V=async(H,K,U,J)=>{try{const de=await B.load("table",H,K,U,J,I,r.value);p.value=de.totalSize,d.value=de.page}catch(de){console.error("[FoxUI] Load Table Data Fail",de),p.value=0,d.value=[]}I=!1,setTimeout(()=>{s("loaded-data")},250)};t.watch([g,b],([H,K],[U,J])=>{K!==J&&(g.value=1,H=1),V(o.data,H,K,h.value)}),t.watch([()=>o.data,h],([H,K],[U,J])=>{A()&&(H!==U&&(I=!0),!(!Array.isArray(H)&&Me(H,U)&&Me(K,J))&&V(H,g.value,b.value,K))},{deep:!0});const E=(H={},K=!1)=>new Promise(U=>{w.value=t.toRaw(H??{}),t.triggerRef(w),K||(g.value=o.pageIndex??1),t.nextTick(async()=>{await V(o.data,g.value,b.value,h.value),U()})}),D=()=>{p.value=0,d.value=[]};let q=!1;const F=()=>{q||(q=!0,E())};A()&&!O.value&&E();const C=t.ref(null);t.provide(qd,{currentRow:C});const $=(H,K)=>{C.value=H,s("current-change",H,K)},x=(H,K,U)=>{s("row-click",H,K,U),ne(o.rowClickSelectable)===!0&&G?.value.toggleRowSelection(H)},P=[],N=(H,K)=>{if(s("expand-change",H,K),ne(o.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const U=P.length;P.splice(0,U)}else{P.forEach(J=>{J!==H&&G?.value.toggleRowExpansion(J,!1)});const U=P.length;P.splice(0,U,H)}},z=l.attrs.id??o.prop??l.attrs.name,k=Pd(),R=t.ref([]);let j=[];const Y=()=>({srcColumnPropertyList:j.map(K=>({...K})),columnPropertyList:R.value}),Z=H=>{R.value=[...H],oe()},te=async()=>{const H=await k.load(z);H&&(R.value=H)},oe=()=>{k.save(z,R.value)},re=()=>{k.remove(z)};te();const X=H=>H?H.type?H.type:H.label?H.prop:"":"",le=t.computed(()=>{if(typeof l.slots.default=="function"){const H=l.slots.default(),K=new Map;if(j=[],H.forEach(U=>{const J=U;if(!J.props)return;const de=X(J.props);K.set(de,U);const ge={label:"",prop:""};Object.assign(ge,J.props),j.push(ge)}),R.value.length===j.length){const U=[];for(let J of R.value){const de=X(J),ge=K.get(de);if(!ge)return H;if(J.visible===!1)continue;const dt=ge;dt.props.fixed=J.fixed,U.push(dt)}return U}return H}return[]}),_=t.shallowRef(new Map),M=({column:H,rowIndex:K})=>{const U=`${K}_${H.property}`;return _.value.get(U)??""},L=H=>typeof H=="function"?K=>{const U=[];let J=M(K);return J&&U.push(J),J=H(K),J&&U.push(J),U.length===0?"":U.join(" ")}:M,W=(H,K,U)=>{const J=`${H}_${K}`;U?_.value.set(J,U):_.value.delete(J),t.triggerRef(_)},G=t.ref();return me({clearSelection:()=>G?.value.clearSelection(),getSelectionRows:()=>G?.value.getSelectionRows(),toggleRowSelection:(H,K)=>{G?.value.toggleRowSelection(H,K)},toggleRowSelectionByProp:(H,K)=>{if(!d.value)return;const U=Gn(d.value,H);U.length!==0&&U.forEach(J=>{G?.value.toggleRowSelection(J,K)})},toggleAllSelection:()=>{G?.value.toggleAllSelection()},toggleRowExpansion:(H,K)=>{G?.value.toggleRowExpansion(H,K)},toggleRowExpansionByProp:(H,K)=>{if(!d.value)return;const U=Gn(d.value,H);U.length!==0&&U.forEach(J=>{G?.value.toggleRowExpansion(J,K)})},setCurrentRow:H=>{G?.value.setCurrentRow(H)},setCurrentRowByProp:H=>{if(!d.value)return;const K=Gn(d.value,H);K.length!==0&&G?.value.setCurrentRow(K[0])},getCurrentRow:()=>C.value,clearSort:()=>{G?.value.clearSort()},clearFilter:H=>{G?.value.clearFilter(H)},doLayout:()=>{G?.value.doLayout()},sort:(H,K)=>{G?.value.sort(H,K)},scrollTo:(H,K)=>{G?.value.scrollTo(H,K)},setScrollTop:H=>{G?.value.setScrollTop(H)},setScrollLeft:H=>{G?.value.setScrollLeft(H)},loadData:E,clearData:D,getData(){return d.value},getTotalSize(){return p.value},getPageIndex(){return g.value},getPageSize(){return b.value},getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:re,setCellClassName:W}),()=>{const K={...l.attrs,onCurrentChange:$,onRowClick:x,onExpandChange:N,data:d.value,ref:G,class:c.value,"cell-class-name":L(o.cellClassName)},U={};l.slots.default&&(U.default=()=>le.value),l.slots.append&&(U.append=l.slots.append),l.slots.empty&&(U.empty=l.slots.empty);const J=[],de=t.h(v.ElTable,K,U);J.push(de);let ge=null;if(typeof l.slots.pagination=="function")ge=l.slots.pagination();else if(o.showPagination){const Dt={class:m.value,total:p.value,pageSize:b.value,"onUpdate:pageSize":y,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":T,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};ge=t.h(v.ElPagination,Dt)}if(o.showSetting){const Dt=[];ge&&Dt.push(ge);const jm=t.h(v.ElIcon,{class:f.value},{default:()=>t.h(De.Setting)}),Hm=ht(o,Xn),Km=t.h(Un,{...Hm,tableRef:{getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:re}},{default:()=>jm});Dt.push(Km);const Ym=t.h("div",{class:u.value},Dt);J.push(Ym)}else ge&&J.push(ge);const dt={default:()=>J},$t={...Ce(o,cl,ul,Xn),prop:`${o.prop}_item`};return $t.contentClass=`${i}__wrap`,$t.errorMarkClass="is-table-error",O.value&&A()&&($t["appear-listen"]=!0,$t.onAppear=F),t.h(a,$t,dt)}}}}const{componentName:jd,create:Hd,scope:Kd}=ee("table-item"),dl=Hd(_d(jd,Kd,we));function it(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Wd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Ud(){const e=t.getCurrentInstance();return new Wd(e.proxy)}function fl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=it(e,n),l=it(e,a);if(o!==l)return!1;const r=Tt(e,n),s=Tt(e,a);return r===s}function Gd(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;let l=null;for(let r of o){let s=!1;if(a==="text")s=it(e,r)===n;else if(a==="item")s=fl(e,r,n);else{let i=Tt(e,r);i==null&&(i=it(e,r)),s=i===n}if(s){l=r;break}}return l}function Xd(e){return{text:e,value:e}}function Zd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const ml={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Jd(e,n,a){return{inheritAttrs:!0,props:{...he,...ve,...ml},emits:["change","update:modelValue"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(null),f=t.ref(null),u=(O,V,E,D=!0)=>{const q=Gd(o,O,V,E);if(q===null){if(f.value===null)return;f.value=null,c.value=null,D&&(i("update:modelValue",null),i("change",null));return}if(!fl(o,q,f.value)){c.value=O;const C=t.toRaw(q);f.value=C;let $=null;o.valueType==="text"?$=it(o,C):o.valueType==="item"?$=C:$=Tt(o,C),D&&(i("update:modelValue",$),i("change",$))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,O=>ne(O)),T=Ud(),b=async(O,V)=>{if(O){const E=await T.load("radio",O,V);if(E.length>0)if(typeof E[0]=="string"){let F=E.map(C=>Xd(C));m.value=F}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([O,V])=>{b(O,V)},{immediate:!g.value});let y=!1;const w=()=>{y||(y=!0,b(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([O,V])=>{u(V,o.valueType,O,!1)});const h=e,p=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),d=O=>{u(O,"value",m.value,!0)};let B=ie(o,"hintText"),I=ie(o,"hintVisible");const A=(O,V)=>{const E=[];return O.forEach((D,q)=>{const F=Tt(o,D),C=it(o,D);let $=Yd(o,D);r.value===!0&&($=r.value),s.value===!0&&($=s.value);const x=Zd(o,D,q)??{},P=`${F}_${q}`,N={...x,key:P,label:F,disabled:$,size:o.size,border:ne(o.border)};o.itemType==="button"?E.push(t.h(v.ElRadioButton,N,{default:()=>[C]})):typeof V=="function"?E.push(t.h(v.ElRadio,N,{default:()=>V(D)})):E.push(t.h(v.ElRadio,N,{default:()=>[C]}))}),E};return()=>{const V={...l.attrs,class:p.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:d},E=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>A(m.value,l.slots.text);const q=t.h(v.ElRadioGroup,V,D);E.push(q);const F={default:()=>E};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,ml),hintText:B.value,hintVisible:I.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&($["appear-listen"]=!0,$.onAppear=w),t.h(a,$,F)}}}}const{componentName:Qd,create:ef,scope:tf}=ee("radio-item"),hl=ef(Jd(Qd,tf,we));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function nf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class of{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Oe(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function af(){const e=t.getCurrentInstance();return new of(e.proxy)}function gl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=st(e,n),l=st(e,a);if(o!==l)return!1;const r=ct(e,n),s=ct(e,a);return r===s}function lf(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const l=[];return n.forEach(r=>{for(let s of o){let i=!1;if(a==="text")i=st(e,s)===r;else if(a==="item")i=gl(e,s,r);else{let c=ct(e,s);c==null&&(c=st(e,s)),i=c===r}if(i){l.push(s);break}}}),l}function rf(e){return{text:e,value:e}}function sf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const pl={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function cf(e,n,a){return{inheritAttrs:!0,props:{...he,...ve,...pl},emits:["change","update:modelValue"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref([]),f=t.ref([]),u=(O,V,E,D=!0)=>{const q=lf(o,O,V,E);if(q===null){if(f.value===null||f.value.length===0)return;c.value=[],f.value=[],D&&(i("update:modelValue",[]),i("change",[]));return}let F=!0;if(q.length!==f.value.length)F=!1;else for(let C=0;C<q.length;C++){const $=q[C],x=f.value[C];if(!gl(o,$,x)){F=!1;break}}if(!F){f.value=q;let C=[],$=[];q.forEach(P=>{C.push(ct(o,P)),o.valueType==="text"?$.push(st(o,P)):o.valueType==="item"?$.push(P):$.push(ct(o,P))}),c.value=C;const x=t.toRaw($);D&&(i("update:modelValue",x),i("change",x))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",He.Near,O=>ne(O)),T=af(),b=async(O,V)=>{if(O){const E=await T.load("checkbox",O,V);if(E.length>0)if(typeof E[0]=="string"){let F=E.map(C=>rf(C));m.value=F}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([O,V])=>{b(O,V)},{immediate:!g.value});let y=!1;const w=()=>{y||(y=!0,b(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([O,V])=>{u(V,o.valueType,O,!1)});const h=e,p=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),d=O=>{u(O,"value",m.value,!0)};let B=ie(o,"hintText"),I=ie(o,"hintVisible");const A=(O,V)=>{const E=[];return O.forEach((D,q)=>{const F=ct(o,D),C=st(o,D);let $=nf(o,D);r.value===!0&&($=r.value),s.value===!0&&($=s.value);const x=sf(o,D,q)??{},P=`${F}_${q}`,N={...x,key:P,class:o.itemClass,label:F,disabled:$,size:o.size,border:ne(o.border)};o.itemType==="button"?E.push(t.h(v.ElCheckboxButton,N,{default:()=>[C]})):typeof V=="function"?E.push(t.h(v.ElCheckbox,N,{default:()=>V(D)})):E.push(t.h(v.ElCheckbox,N,{default:()=>[C]}))}),E};return()=>{const V={...l.attrs,class:p.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:d},E=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>A(m.value,l.slots.text);const q=t.h(v.ElCheckboxGroup,V,D);E.push(q);const F={default:()=>E};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const $={...Ce(o,pl),hintText:B.value,hintVisible:I.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&($["appear-listen"]=!0,$.onAppear=w),t.h(a,$,F)}}}}const{componentName:uf,create:df,scope:ff}=ee("checkbox-item"),yl=df(cf(uf,ff,we)),bl={modelValue:{type:[Number,String],required:!1}};function mf(e,n,a){return{props:{...he,...ve,...bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",y=>se(y)),f=e,u=t.computed(()=>({[f]:!0})),m=y=>{i("update:modelValue",y),i("change",y)};let g=ie(o,"hintText"),T=t.ref(!1);const b=t.ref();return me({}),()=>{const w={...l.attrs,ref:b,class:u.value,readonly:s.value||r.value,modelValue:c.value,onChange:m},h={},p=[],d=t.h(v.ElRate,w,h);p.push(d);const B={default:()=>p};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const A={...Ce(o,bl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(a,A,B)}}}}const{componentName:hf,create:gf,scope:pf}=ee("rate-item"),Sl=gf(mf(hf,pf,we)),wl={modelValue:{type:[Boolean,String,Number],required:!1}};function yf(e,n,a){return{props:{...he,...ve,...wl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),{emitEvent:i}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),f=e,u=t.computed(()=>({[f]:!0})),m=y=>{i("update:modelValue",y),i("change",y)};let g=ie(o,"hintText"),T=ie(o,"hintVisible");const b=t.ref();return me({}),()=>{const w={...l.attrs,ref:b,class:u.value,readonly:s.value,disabled:r.value,modelValue:c.value,onChange:m},h={},p=[],d=t.h(v.ElSwitch,w,h);p.push(d);const B={default:()=>p};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const A={...Ce(o,wl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(a,A,B)}}}}const{componentName:bf,create:Sf,scope:wf}=ee("switch-item"),Cl=Sf(yf(bf,wf,we)),vl={modelValue:{type:[String,Number,Boolean],required:!1}};function Cf(e,n,a){return{props:{...he,...ve,...vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=$e(t.computed(()=>o.disabled)),s=Te(t.computed(()=>o.readonly)),i=t.ref(!1),{emitEvent:c}=be({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),f=ie(o,"modelValue"),u=e,m=t.computed(()=>({[u]:!0})),g=I=>{c("update:modelValue",I),c("change",I)};let T=ie(o,"hintText"),b=t.ref(!1);const y=I=>{let O=I.target.value;i.value=!0,pe(T.value)||(b.value=!0),c("focus",O,I)},w=I=>{setTimeout(()=>{b.value&&(b.value=!1),i.value=!1},0);let O=I.target.value;o.maxLength&&O.length>Number(o.maxLength)&&(O=O.slice(0,Number(o.maxLength))),p.value||c("blur",O,I)},h=()=>{c("clear","")},p=t.ref(!1),d=I=>{p.value=I,c("visible-change",I),I||c("selected")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const A={...l.attrs,ref:B,class:m.value,disabled:r.value||s.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:h,onFocus:y,onBlur:w,onVisibleChange:d},O={};l.slots.option&&(O.default=l.slots.option);const V=[],E=t.h(v.ElTreeSelect,A,O);V.push(E);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const F={...Ce(o,vl),hintText:T.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(a,F,D)}}}}const{componentName:vf,create:kf,scope:Tf}=ee("tree-select-item"),kl=kf(Cf(vf,Tf,we)),$f=Symbol.for("InnerPageScopeKey"),Df=Symbol.for("PageWrapperKey");function Ef(e,n){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(a,o){t.provide($f,!0);const l={};t.provide(Df,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=t.ref(!0),i=c=>{s.value=c};return()=>{const f={...o.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},u={};if(typeof o.slots.default=="function"){const m=o.slots.default();u.default=()=>m}return t.h(v.ElDialog,f,u)}}}}const{componentName:sh,create:xf,scope:ch}=ee("dialog-item"),Tl=xf(Ef());function Nf(e,n){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(a,{slots:o}){const l=e,r=t.computed(()=>({[l]:!0})),s=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),c=t.computed(()=>{const u={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?u["is-left"]=!0:u["is-right"]=!0,u}),f=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const y={class:s.value,style:i.value};u=t.h(a.icon??"div",y)}const m={class:c.value,style:f.value},g=o.default?o.default():[],T=t.h("div",m,g),b={class:r.value};return a.textPosition==="right"?t.h("div",b,[u,T]):t.h("div",b,[T,u])}}}}const{componentName:Vf,create:Bf,scope:uh}=ee("indicator"),$l=Bf(Nf(Vf));function If(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Af={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function Of(e,n){return{props:{...Af},setup(a,o){const l=t.ref(!0),r=t.ref(null),s=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(g=>{u[g]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),i=u=>{if(u&&ne(a.showOverflowTooltip)){const m=u.clientWidth;If(u,g=>{l.value=g<=m})}};let c=null;t.onMounted(()=>{if(!ne(a.showOverflowTooltip))return;const u=r.value;i(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{i(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const f=(u,m)=>{let g=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const T=a.highlightFilter;if(u.indexOf(T)!==-1){const y=u.replace(new RegExp(T,"g"),`<span>${T}</span>`);m.innerHTML=y,m.class["is-highlight"]=!0,g=t.h(a.tag,m)}}else if(typeof a.highlightFilter=="function"){const T=a.highlightFilter(u);T&&(m.innerHTML=T,m.class["is-highlight"]=!0,g=t.h(a.tag,m))}return g};return()=>{const u={},m={...o.attrs,class:{...s.value},ref:r};if(ne(a.numberFormat)&&typeof o.slots.default=="function"){const y=o.slots.default();if(Array.isArray(y)&&y.length===1){const w=y[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const h=se(a.digits),p=se(a.decimalLength),d=ne(a.autoPadding);let B=`${y[0].children}`,I=B.split("").reverse().join("");I=Nt(I,p,d,h,a.separator),B=I.split("").reverse().join("");let A=null;a.highlightFilter!==void 0&&(A=f(B,m)),A||(m.innerHTML=B,A=t.h(a.tag,m)),u.default=()=>A}}}else{let y=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const w=o.slots.default();if(Array.isArray(w)&&w.length===1){const h=w[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const p=`${w[0].children}`;y=f(p,m),y||(m.innerHTML=p,y=t.h(a.tag,m))}}}y||(y=t.h(a.tag,m,{default:o.slots.default})),u.default=()=>y}const T={disabled:l.value};return u.content=o.slots.default,t.h(v.ElTooltip,T,u)}}}}const{componentName:Rf,create:Ff,scope:dh}=ee("text"),Dl=Ff(Of(Rf)),{create:Lf}=ee("toast"),Mf=Lf({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:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,T=>{T&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const T=ce(e.iconSize);return t.h(e.icon,{width:T,height:T,color:e.iconColor})},u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:m,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Pf={key:1,class:"fox-toast-title"},qf=["innerHTML"];function zf(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Pf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,qf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const El=ue(Mf,[["render",zf]]),_f={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:De.ArrowUp}};function jf(e,n,a){return{props:{..._f},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),s=ie(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),u=()=>{l("update:modelValue",!s.value)};return()=>{const m=[];if(i.value){const y={class:c.value},w=t.h("span",y,[i.value]);m.push(w)}const g={class:f.value},T=a(o.icon,g);return T&&m.push(T),t.h("div",{class:r.value,onClick:u},m)}}}}const{componentName:Hf,create:Kf,scope:Yf}=ee("more-button"),xl=Kf(jf(Hf,Yf,(e,n)=>(e=e??De.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Wf,create:Uf,scope:mh}=ee("tour"),Gf=Uf({components:{Close:De.Close,ElPopover:v.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:n}){const a=Wf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:b,maskWidth:y,maskHeight:w}=e,{width:h,height:p,left:d,top:B}=l.value,I=e.steps[o.active].offset??b,A=[d+h/2,B+p/2],O=Number(y||h),V=Number(w||p);return{width:`${O+ +I.left+I.right}px`,height:`${V+I.top+I.bottom}px`,top:`${A[1]-V/2-+I.top}px`,left:`${A[0]-O/2-+I.left}px`}}),i=b=>{b=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,u()}),n("change",o.active)},c=b=>b.popoverWidth??e.width,f=b=>b.location??e.location,u=()=>{const b=document.querySelector(`${e.steps[o.active].target}`),y=Ke(b);l.value={x:y.left,y:y.top,top:y.top,left:y.left,width:y.width,height:y.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&m()},T=(b,y=0)=>{b&&u(),e.steps,o.active=y,o.showTour=b,o.showPopup=b};return t.onMounted(()=>{T(e.modelValue,e.current)}),t.watch(()=>e.modelValue,b=>{T(b)}),{...t.toRefs(o),classes:r,maskStyle:s,changeStep:i,popoverWidth:c,popoverLocation:f,close:m,handleClickMask:g}}}),Xf={key:0,class:"fox-tour__content"},Zf={key:0,class:"fox-tour__content-top"},Jf={class:"fox-tour__content-inner"},Qf={class:"fox-tour__content-bottom"},em={class:"fox-tour__content-bottom-init"},tm={class:"fox-tour__content-bottom-operate"},nm={key:1,class:"fox-tour__content fox-tour__content-tile"},om={class:"fox-tour__content-inner"};function am(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(f,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Xf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Zf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Jf,t.toDisplayString(f.content),1),t.createElementVNode("div",Qf,[t.createElementVNode("div",em,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",tm,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",nm,[t.createElementVNode("div",om,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Nl=ue(Gf,[["render",am]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Qe=e=>e==null,Vl=10;function lm(e,n){return e>n&&e>Vl?"horizontal":n>e&&n>Vl?"vertical":""}function rm(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=lm(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function im(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function sm(e){e.stopPropagation()}function cm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&sm(e)}class um{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=im()}open(n){this.el=n;const a=rm(),o=(l,r,s,i,c)=>{this.updateMove({x:r,y:s})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&cm(l,!0),o(n,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(n,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Bl(e,n){return new um(e,n)}var Il;const Zn=typeof window<"u";Zn&&((Il=window?.navigator)!=null&&Il.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ut=[];const Al=e=>{const n=e;n.key==="Escape"&&ut.forEach(a=>a(n))},dm=e=>{t.onMounted(()=>{ut.length===0&&document.addEventListener("keydown",Al),Zn&&ut.push(e)}),t.onBeforeUnmount(()=>{ut=ut.filter(n=>n!==e),ut.length===0&&Zn&&document.removeEventListener("keydown",Al)})},Jn="fox-focus-trap.focus-after-trapped",Qn="fox-focus-trap.focus-after-released",fm="fox-focus-trap.focusout-prevented",Ol={cancelable:!0,bubbles:!1},mm={cancelable:!0,bubbles:!1},Rl="foxFocusAfterTrapped",Fl="foxFocusAfterReleased",hm=Symbol("foxFocusTrap"),eo=t.ref(),nn=t.ref(0),to=t.ref(0);let on=0;const Ll=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},gm=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ml=(e,n)=>{for(const a of e)if(!gm(a,n))return a},pm=e=>{const n=Ll(e),a=Ml(n,e),o=Ml(n.reverse(),e);return[a,o]},ym=e=>e instanceof HTMLInputElement&&"select"in e,We=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),to.value=window.performance.now(),e!==a&&ym(e)&&n&&e.select()}};function Pl(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const bm=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Pl(e,o),e.unshift(o)},remove:o=>{e=Pl(e,o),e[0]?.resume?.()}}},Sm=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(We(o,n),document.activeElement!==a)return},ql=bm(),wm=()=>nn.value>to.value,an=()=>{eo.value="pointer",nn.value=window.performance.now()},zl=()=>{eo.value="keyboard",nn.value=window.performance.now()},Cm=()=>(t.onMounted(()=>{on===0&&(document.addEventListener("mousedown",an),document.addEventListener("touchstart",an),document.addEventListener("keydown",zl)),on++}),t.onBeforeUnmount(()=>{on--,on<=0&&(document.removeEventListener("mousedown",an),document.removeEventListener("touchstart",an),document.removeEventListener("keydown",zl))}),{focusReason:eo,lastUserFocusTimestamp:nn,lastAutomatedFocusTimestamp:to}),ln=e=>new CustomEvent(fm,{...mm,detail:e}),{componentName:hh,create:vm,scope:gh}=ee("focus-trap"),km=vm({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Rl,Fl,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:s}=Cm();dm(y=>{ne(e.trapped)&&!i.paused&&a("release-requested",y)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=y=>{if(!e.loop&&!ne(e.trapped)||i.paused)return;const{key:w,altKey:h,ctrlKey:p,metaKey:d,currentTarget:B,shiftKey:I}=y,{loop:A}=e,O=w==="Tab"&&!h&&!p&&!d,V=document.activeElement;if(O&&V){const E=B,[D,q]=pm(E);if(D&&q){if(!I&&V===q){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||(y.preventDefault(),A&&We(D,!0))}else if(I&&[D,E].includes(V)){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||(y.preventDefault(),A&&We(q,!0))}}else if(V===E){const C=ln({focusReason:s.value});a("focusout-prevented",C),C.defaultPrevented||y.preventDefault()}}};t.provide(hm,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,y=>{y&&(o.value=y)},{immediate:!0}),t.watch([o],([y],[w])=>{y&&(y.addEventListener("keydown",c),y.addEventListener("focusin",m),y.addEventListener("focusout",g)),w&&(w.removeEventListener("keydown",c),w.removeEventListener("focusin",m),w.removeEventListener("focusout",g))});const f=y=>{a(Rl,y)},u=y=>a(Fl,y),m=y=>{const w=t.unref(o);if(!w)return;const h=y.target,p=y.relatedTarget,d=h&&w.contains(h);ne(e.trapped)||p&&w.contains(p)||(l=p),d&&a("focusin",y),!i.paused&&ne(e.trapped)&&(d?r=h:We(r,!0))},g=y=>{const w=t.unref(o);if(!(i.paused||!w))if(!e.escape&&ne(e.trapped)){const h=y.relatedTarget;!wn(h)&&!w.contains(h)&&setTimeout(()=>{if(!i.paused&&ne(e.trapped)){const p=ln({focusReason:s.value});a("focusout-prevented",p),p.defaultPrevented||We(r,!0)}},0)}else{const h=y.target;h&&w.contains(h)||a("focusout",y)}};async function T(){await t.nextTick();const y=t.unref(o);if(y){ql.push(i);const w=y.contains(document.activeElement)?l:document.activeElement;if(l=w,!y.contains(w)){const p=new Event(Jn,Ol);y.addEventListener(Jn,f),y.dispatchEvent(p),p.defaultPrevented||t.nextTick(()=>{let d=e.focusStartEl;mo(d)||(We(d),document.activeElement!==d&&(d="first")),d==="first"&&Sm(Ll(y),!0),(document.activeElement===w||d==="container")&&We(y)})}}}function b(){const y=t.unref(o);if(y){y.removeEventListener(Jn,f);const w=new CustomEvent(Qn,{...Ol,detail:{focusReason:s.value}});y.addEventListener(Qn,u),y.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!wm())&&We(l??document.body,!0),y.removeEventListener(Qn,f),ql.remove(i)}}return t.onMounted(()=>{ne(e.trapped)&&T(),t.watch(()=>e.trapped,y=>{ne(y)?T():b()})}),t.onBeforeUnmount(()=>{ne(e.trapped)&&b()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:Tm,create:$m,scope:yh}=ee("floating-window"),Dm=Symbol.for("InnerPageScopeKey"),Em=Symbol.for("PageWrapperKey"),xm={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Nm=$m({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:km},props:{...xm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Tm,o=t.ref(e.modelValue);t.watch(()=>e.modelValue,M=>{o.value=M});const l=t.computed(()=>o.value===!1?!1:!A.value),r=t.ref(e.left),s=t.ref(e.top),i=t.ref(e.right),c=t.ref(e.bottom),f=t.computed(()=>{const M=["fox-floating-window"];return e.customClass&&M.push(e.customClass),M}),u=t.computed(()=>{const M={};return Qe(r.value)?M.left="auto":M.left=xe(r.value),Qe(s.value)?M.top="auto":M.top=xe(s.value),Qe(i.value)?M.right="auto":M.right=xe(i.value),Qe(c.value)?M.bottom="auto":M.bottom=xe(c.value),Qe(e.zIndex)||(M["z-index"]=xe(e.zIndex)),Qe(B.value)||(M.height=B.value),Qe(I.value)||(M.width=I.value),M}),m=t.computed(()=>e.closeIcon??De.Close),g=t.computed(()=>e.collapseIcon??De.ArrowUp),T=t.computed(()=>e.collapseText??""),b=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??De.ArrowRight:e.expandIcon??De.ArrowLeft),y=t.computed(()=>e.expandText??e.title??"展开"),w=t.computed(()=>({[`${a}__collapse-text`]:!0})),h=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),p=t.ref(),d=t.ref(),B=t.computed(()=>xe(e.height)||""),I=t.computed(()=>xe(e.width)||""),A=t.ref(ne(e.collapse)),O=(M,L=!0)=>{A.value!==M&&(A.value=M,M?k():R(),n("update:collapse",M))};t.watch(()=>e.collapse,M=>{O(M)});const V=()=>{E()},E=M=>{M=M??!A.value,O(M)};t.provide(Dm,!0);const D={setCollapse:O};t.provide(Em,D);const q=()=>{typeof D.beforeClose=="function"?D.beforeClose(()=>{o.value=!1}):o.value=!1},F=t.ref(null),C=t.computed(()=>{const M=["fox-floating-window__fixednav"];return e.expandClass&&M.push(e.expandClass),e.collapsePosition==="left"?M.push("is-left"):e.collapsePosition==="right"&&M.push("is-right"),M}),$=t.ref(""),x=t.computed(()=>{const M={};return $.value?M.top=$.value:e.collapseTop&&(M.top=e.collapseTop),M}),P=t.ref(A.value);let N=null;const z=()=>{typeof N=="function"&&(N(),N=null)},k=()=>{F.value&&F.value.classList.add("slide-in"),P.value=!0,N=()=>{F.value&&F.value.classList.remove("slide-in")}},R=()=>{F.value&&F.value.classList.add("slide-out"),N=()=>{F.value&&F.value.classList.remove("slide-out"),P.value=!1}},j=()=>{r.value=null,s.value=null,i.value=null,c.value=null},Y={x:0,y:0},oe=Bl(M=>{if(!p.value)return;const L=p.value;if(j(),e.origin==="left-top")r.value=L.offsetLeft,s.value=L.offsetTop,Y.x=r.value,Y.y=s.value;else if(e.origin==="left-bottom"){const W=document.documentElement.clientHeight||document.body.clientHeight;r.value=L.offsetLeft,c.value=W-(L.offsetTop+L.offsetHeight),Y.x=r.value,Y.y=c.value}else if(e.origin==="right-bottom"){const W=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight;i.value=W-(L.offsetLeft+L.offsetWidth),c.value=G-(L.offsetTop+L.offsetHeight),Y.x=i.value,Y.y=c.value}else{const W=document.documentElement.clientWidth||document.body.clientWidth;i.value=W-(L.offsetLeft+L.offsetWidth),s.value=L.offsetTop,Y.x=i.value,Y.y=s.value}},M=>{if(!p.value)return;const L=p.value;j(),e.origin==="left-top"?(r.value=Y.x+M.x,s.value=Y.y+M.y,L.style.left=xe(r.value),L.style.top=xe(s.value)):e.origin==="left-bottom"?(r.value=Y.x+M.x,c.value=Y.y-M.y,L.style.left=xe(r.value),L.style.bottom=xe(c.value)):e.origin==="right-bottom"?(i.value=Y.x-M.x,c.value=Y.y-M.y,L.style.right=xe(i.value),L.style.bottom=xe(c.value)):(i.value=Y.x-M.x,s.value=Y.y+M.y,L.style.right=xe(i.value),L.style.top=xe(s.value))}),re={x:0,y:0},_=Bl(M=>{F.value&&(re.x=F.value.offsetLeft,re.y=F.value.offsetTop)},M=>{if(!F.value)return;const L=re.y+M.y;$.value=`${L}px`});return t.onMounted(()=>{e.draggable&&d.value&&p.value&&oe.open(d.value),e.collapse===!0&&O(e.collapse,!1),F.value&&_.open(F.value)}),t.onBeforeUnmount(()=>{e.draggable&&d.value&&oe.close(),F.value&&_.close()}),{classes:f,styles:u,isShow:l,closeIcon:m,onClose:q,dialogRef:p,headerRef:d,onClickToggle:V,collapseIcon:g,collapseText:T,collapseTextClasses:w,collapseIconClasses:h,expandIcon:b,expandText:y,isShowFixedNav:P,fixedNavRef:F,fixedNavClasses:C,fixedNavStyles:x,onAnimationEnd:z}}}),Vm={ref:"headerRef",class:"fox-floating-window__header"},Bm={class:"fox-floating-window__title"},Im={class:"fox-floating-window__tools"},Am={class:"fox-floating-window__body"},Om={class:"fox-floating-window__fixednav__text"};function Rm(e,n,a,o,l,r){const s=t.resolveComponent("FoxIcon"),i=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.appendToBody},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Bm,t.toDisplayString(e.title),1),t.createElementVNode("div",Im,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(s,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Am,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["disabled"])),t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Om,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],64)}const _l=ue(Nm,[["render",Rm]]);function Fm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Ao(a.name,a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:bh,create:Lm,scope:Sh}=ee("domain-provider"),jl=Lm(Fm()),Mm={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 Pm(e,n){return{inheritAttrs:!1,props:Mm,setup(a,{slots:o}){if(Xe&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,T)=>{if(u===null){r.set(g,{visible:null,callback:T});return}l.has(g)&&u.unobserve(g),l.set(g,{visible:null,callback:T}),u.observe(g)},i=g=>{if(u===null){r.delete(g);return}l.has(g)&&(l.delete(g),u.unobserve(g))};let c=a.initialVisibleObserverSize;Ti({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let u=null;const m=(g,T,b)=>{u=new IntersectionObserver(y=>{for(let w of y){let h=!1;w.intersectionRatio>0&&(h=!0);const p=l.get(w.target);if(p)try{if(a.loadPolicy==="lazy"&&!h&&p.visible!==null)return;p.visible=h,p.callback(h)}catch(d){console.error(d)}}},{root:g,rootMargin:T,threshold:b}),r.forEach((y,w)=>{l.set(w,y),u?.observe(w)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,T])=>{if(T||!g||u)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&m(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:wh,create:qm,scope:Ch}=ee("rolling-provider"),Hl=qm(Pm()),zm=[_o,jo,Ho,Ko,Go,we,ta,na,Yt,aa,ba,Va,Ra,La,Pa,Ka,Wa,nl,al,rl,sl,Un,dl,hl,yl,Sl,Cl,kl,Tl,tn,In,$l,Dl,El,Ut,Ye,Ct,_n,Hn,en,Qt,Wn,xl,Nl,Jt,_l,jl,Hl],_m=new xr(zm,[Br],"4.0.0");Object.defineProperty(S,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(S,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(S,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(S,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(S,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(S,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(S,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(S,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(S,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(S,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(S,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(S,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(S,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(S,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(S,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(S,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(S,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(S,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(S,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(S,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(S,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(S,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(S,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(S,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(S,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(S,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(S,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(S,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(S,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(S,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(S,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(S,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(S,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(S,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(S,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(S,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(S,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(S,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(S,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(S,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(S,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(S,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(S,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(S,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(S,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(S,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(S,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(S,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(S,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(S,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(S,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(S,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(S,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(S,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(S,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(S,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(S,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(S,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(S,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(S,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(S,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(S,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(S,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(S,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(S,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(S,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(S,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(S,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(S,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(S,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(S,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(S,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(S,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(S,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(S,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(S,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(S,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(S,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(S,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(S,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(S,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(S,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(S,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(S,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(S,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(S,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(S,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(S,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(S,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(S,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(S,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(S,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(S,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(S,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),S.AutocompleteItem=al,S.Broadcast=Cn,S.BroadcastKey=ye,S.CalendarItem=Ra,S.CalendarPicker=Hn,S.CascaderItem=nl,S.CascaderPicker=Wn,S.CheckboxItem=yl,S.Content=Ko,S.DataItemsKey=tt,S.DateItem=Va,S.DatePicker=_n,S.DateUtils=Q,S.DialogItem=Tl,S.Domain=Ot,S.DomainKey=Ve,S.DomainProvider=jl,S.ExtTabPane=en,S.ExtTabs=Qt,S.FloatingWindow=_l,S.FooterBar=Ho,S.Group=Go,S.HeaderBar=jo,S.HintText=Yt,S.Indicator=$l,S.InputItem=aa,S.InputNumberItem=Wa,S.Item=we,S.Mapping=tn,S.MoneyItem=Ka,S.MoreButton=xl,S.Overlay=Ut,S.Page=_o,S.Picker=Ct,S.Popup=Ye,S.Price=In,S.PriorityPolicy=He,S.RadioItem=hl,S.RateItem=Sl,S.RollingProvider=Hl,S.RowItem=na,S.SelectItem=ba,S.SlotItem=ta,S.SwitchItem=Cl,S.TableItem=dl,S.TableMappingColumn=rl,S.TableRadioColumn=sl,S.TableSetting=Un,S.Text=Dl,S.TimeItem=La,S.TimeSelectItem=Pa,S.Toast=El,S.Tour=Nl,S.TreeSelectItem=kl,S.UniqueID=Qo,S.ValidateSchema=Vo,S.ValidateSchemaKey=Pe,S.cancelRaf=Wl,S.clearNonNumber=lr,S.clone=bn,S.compareTo=gn,S.createBroadcast=Bt,S.createValidateSchema=At,S.debounce=yt,S.debounceRef=br,S.decimalLength=ko,S.default=_m,S.defineBroadcast=cr,S.defineConfigDomain=Ao,S.defineDataItem=Ro,S.defineDomain=Tn,S.defineItem=be,S.definePageState=Fo,S.deleteGlobalValidator=mr,S.disabledProperty=$e,S.divide=hn,S.excludeProps=Ce,S.extend=Ge,S.floatData=sr,S.getGlobalValidateCheckEvents=Eo,S.getGlobalValidateResetEvents=No,S.getPageContentAreaHeight=Ft,S.getPageContentAreaWidth=Lt,S.getPageFooterAreaHeight=St,S.getPageHeaderAreaHeight=bt,S.getRootDomain=nt,S.hasSymbol=go,S.includeProps=ht,S.indexOf=rr,S.installRules=Oo,S.integerLength=vo,S.isArray=Gl,S.isArrayLike=bo,S.isBrowser=Xe,S.isDate=Le,S.isESModule=er,S.isEmptyString=pe,S.isEqual=Me,S.isFunction=pn,S.isHidden=yo,S.isInnerPage=Cr,S.isMap=Xl,S.isNil=wn,S.isNumberString=Co,S.isObject=Ie,S.isPlainObject=yn,S.isPromise=Ql,S.isRegExp=wo,S.isSet=Zl,S.isString=mo,S.isSubPage=vr,S.isSymbol=Jl,S.isWindow=po,S.lastIndexOf=ir,S.makeArray=ar,S.merge=So,S.multiply=so,S.negate=co,S.nextTick=nr,S.numberFormat=Nt,S.objectToString=ho,S.once=Sr,S.property=Ne,S.raf=fo,S.readonlyProperty=Te,S.setGlobalValidateCheckEvents=hr,S.setGlobalValidateHandler=dr,S.setGlobalValidateMessages=pr,S.setGlobalValidateResetEvents=gr,S.setGlobalValidator=fr,S.sticky=Jt,S.throttle=Io,S.toBoolean=ne,S.toNumber=se,S.toPadding=Ae,S.toPx=ce,S.toPxDesc=Se,S.toTypeString=Vt,S.toValue=ie,S.tryTimes=vn,S.typeOf=et,S.unNumberFormat=uo,S.updatePageState=$n,S.useBroadcast=gt,S.useDomain=qe,S.useExpose=me,S.useInnerSize=Nn,S.usePageState=Rt,S.usePosition=Xo,S.useRect=Ke,S.useSize=xn,S.useTouch=Ln,S.valueLength=Be,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|