@fox-js/foxui-pad 4.1.1-8 → 4.1.1-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +5128 -4904
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +91 -22
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Sat Aug 30 2025 16:26:53 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),mt=require("@fox-js/validator"),O=require("element-plus"),Ee=require("@element-plus/icons-vue"),we=require("@fox-js/i18n"),Yt=window,Jr=typeof window<"u";function Qr(){return typeof Yt<"u"?Yt.requestAnimationFrame||Yt.webkitRequestAnimationFrame||function(e){Yt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ei(e){Jr?cancelAnimationFrame(e):clearTimeout(e)}const kl=Qr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function dn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Me(e),n=Me(n),[e,n]=Dl(Me(e),Me(n)),o==1&&(l==1?e=Jn(e):n=Jn(n));let a=Xa(e,n);return o?o==2?"-"+Me(a):e.length<a.length?Me(a.substring(1)):"-"+Me(Jn(a)):Me(a)}function Jn(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Xa(n,r)}function Me(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 Dl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Xa(e,n){[e,n]=Dl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var $e=(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))($e||{});function Bt(e,n=0,o=$e.HALF_EVEN){if(o===$e.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Bt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Po(a[1],r,l,o)?(l?"-":"")+Qn(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&Po(u,i,l,o)&&(i=Qn(i),i.length>n)?(l?"-":"")+Qn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Po(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===$e.DOWN||!o&&l===$e.FLOOR||o&&l===$e.CEILING)return!1;if(l===$e.UP||o&&l===$e.FLOOR||!o&&l===$e.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case $e.HALF_DOWN:return!1;case $e.HALF_UP:return!0;case $e.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Qn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function fl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=It(e),n=It(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=It(e.replace(".","")),n=It(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,u=0,s=[],f=i-1,h="";for(let d=0;d<i;d++)s[d]=e.length-1;for(let d=0;d<2*e.length;d++){let p=0;for(let x=n.length-1;x>=f&&x>=0;x--)s[x]>-1&&s[x]<e.length&&(p+=parseInt(e[s[x]--])*parseInt(n[x]));p+=u,u=Math.floor(p/10),h=p%10+h,f--}return h=It(Jr(h,r)),o==1&&(h="-"+h),h}function Jr(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 It(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 dl(e,n,o=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 l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Me(n.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Me(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=Me(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let h=e.length-f+a;e=Me(e.substring(0,h)+"."+e.substring(h))}else a==f&&(e=Me(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let f=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(f+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=f,u="0."+new Array(f).join("0")}for(o=o+2;r<=o;){let f=0;for(;parseInt(s)>=parseInt(n);)s=dn(s,"-"+n),f++;u+=f,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Me(Bt(u,o-2))}function hl(e,n){return e=e.toString(),n=n.toString(),n=ml(n),dn(e,n)}function ml(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 o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=hl(e,fl(n,Bt(dl(e,n),0,$e.FLOOR)));return o+l}function Ao(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Fo(e,n){let o=!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),o=!0),[e,n]=Dl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=$e;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[o,l]=n.split(/[eE]/);o=Me(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Me(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,l=$e.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Bt(n,o,l)}round(n=0,o=$e.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(Bt(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,$e.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,$e.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,$e.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,$e.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),dn(n,o)}add(n){return new de(dn(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),hl(n,o)}subtract(n){return new de(hl(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),fl(n,o)}multiply(n){return new de(fl(this.value,n.getValue()))}static divide(n,o,l){return n=de.validate(n),o=de.validate(o),dl(n,o,l)}divide(n,o){return new de(dl(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),Oo(n,o)}modulus(n){return new de(Oo(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),Fo(n,o)}compareTo(n){return Fo(this.value,n.getValue())}static negate(n){return n=de.validate(n),ml(n)}negate(){return new de(ml(this.value))}}function Za(e,n){return de.multiply(`${e}`,`${n}`)}function Nl(e,n,o=8){return de.divide(`${e}`,`${n}`,o)}function gl(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Ja(e){return de.negate(e)}function wn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",f=r.indexOf(".");f!=-1&&(u=r.substring(0,f),s=r.substring(f+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let d="",p=u.split("").reverse();for(let x=0;x<p.length;x++)d+=p[x]+((x+1)%l==0&&x+1!=p.length?a:"");s.length==0?h=`${i}${d.split("").reverse().join("")}`:h=`${i}${d.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function Qa(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const El=kl,Qr=Array.isArray,ei=e=>xn(e)==="[object Map]",ti=e=>xn(e)==="[object Set]",it=e=>e instanceof Date,pl=e=>typeof e=="function",er=e=>typeof e=="string",ni=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",hn=e=>He(e)&&pl(e.then)&&pl(e.catch),tr=Object.prototype.toString,xn=e=>tr.call(e),vl=e=>xn(e)==="[object Object]",nr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function li(e){return e.__esModule||nr&&e[Symbol.toStringTag]==="Module"}const oi=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function gt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let f;Array.isArray(s)?f=u&&Array.isArray(u)?u:[]:f=u&&typeof u=="object"?u:{},n[i]=gt(a,f,s)}else s!==void 0&&(n[i]=s)}}return n}function yl(e,n,o=!1){if(!o)gt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vl(i))continue;r=yl(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const l=Object.getOwnPropertySymbols(n);for(let a of l){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vl(i))continue;r=yl(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const el=oi?Promise.resolve():null;function ai(e,...n){el!==null?n&&n.length>0?el.then(()=>{e(n)}):el.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const ri={"[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 mn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ri[o]||"object"}function lr(e){return e&&typeof e=="object"&&"setInterval"in e}function Sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function or(e){let n=!!e&&"length"in e&&e.length,o=mn(e);return o==="function"||lr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ar(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ii(e,n=[]){let o=n;return e!=null&&(or(Object(e))?ar(o,typeof e=="string"?[e]:e):o.push(e)),o}function We(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=mn(e),l=mn(n);if(o!==l)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],f=n[u];if(!We(s,f))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!We(r,i))return!1}return!0}return!1}const ut=typeof window<"u";function Vl(e){return e==null}function bl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function rr(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ir(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 o=n.indexOf(".");return o==-1?n.length:o}function sr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Mo(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function si(e,n=!0,o=!0){n?e=Mo(e,".",/\./g):e=e.replace(/\./g,""),o?e=Mo(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ui(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(We(e,o))return!0}):n.indexOf(e)}function ci(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(We(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function Qe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function zt(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ve(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}const fi=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e},ke=Symbol.for("BroadcastKey");class Il{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,o,l){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=n.uniqueId,r={matched:n,action:o,args:l};return this.persistantMessages.set(a,r),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let l=!1;return!o.name||o.name==="*"||o.name==="+"||bl(o.name)&&n&&o.name.test(n)?l=!0:typeof o.name=="function"?l=Reflect.apply(o.name,null,[n]):o.name===n&&(l=!0),l}trigger(n,o,l){let a=null;const r=this.callbacks.get(o);typeof r=="function"&&(a=Reflect.apply(r,this.proxy,[...l]));const i=this.proxy??{};typeof i[o]=="function"&&(a=Reflect.apply(i[o],i,[...l])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(a)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(l=>{if(this.isMatched(this.name,l.matched))try{this.trigger(l.matched,l.action,l.args)}catch(a){console.error(a)}}),n=n.parent}}emit(n,o,...l){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,l),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,l)){const i=n.resolve,u=n.uniqueId??"",s=(...f)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...f)};n.resolve=s}n.cachePolicy="None"}let a=!1;!n.name||n.name==="*"?a=!0:n.name==="+"?(a=!1,n.name="*"):bl(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&r.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...r),n.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,o,...l){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,l),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,l)){const r=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};n.resolve=u}n.cachePolicy="None"}const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,o){this.callbacks.set(n,o)}}function Cn(e,n,o,l){const a=new Il(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function di(e,n,o){const l=o;if(l[ke])return l[ke];const a=t.inject(ke,null),r=new Il(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),l[ke]=void 0}),r}function Ft(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}class hi{error(n,o){const l=o,a=o||t.hasInjectionContext()?Ft(o):null;a?a.emit({name:"*"},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?Ft(n):null;l?l.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?Ft(n):null;l?l.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=l||t.hasInjectionContext()?Ft(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Mt=new hi;function mi(e){Mt=e}function gi(e){Mt?Object.assign(Mt,e):Mt=e}function pi(e,n){ht.Schema.setValidator(e,n)}function vi(e){ht.Schema.deleteValidator(e)}let ur=["blur","clear"];function yi(e){ur=e}function cr(){return ur}let fr=["focus","change","setValue"];function bi(e){fr=e}function dr(){return fr}function wi(e){ht.Schema.messages(e)}function Pt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Ut(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 Ue=Symbol("ValidateSchemaKey");class hr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Ut(Pt(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let s={type:r};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(r);if(u!==null){let s={type:r,validator:u};l.push(s)}}this.attrRules=Ut(l);const a=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Mt;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,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,o,l=!1){l?ht.Schema.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?ht.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return ht.Schema.hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const l=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Pt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${l}`]:o},r=this.getValue(),i={[`${l}`]:r},u=new ht.Schema(a),s=this.proxy??i;return u.validate(i,{context:s}).then(h=>{if(h.pass)this.success();else{let d="error";Array.isArray(h.errors)&&h.errors.length>0&&(d=h.errors[0].message??d,h.errors=[h.errors[0]],h.errors[0].ref=s),this.error(d)}return h}).catch(h=>{const d=h.message??`${h}`;return this.error(d),h})}}return Promise.resolve({pass:!0})}}function Tn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new hr(n,o,e)}const gn=Symbol.for("EventEmitterKey");class mr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let a=l.findIndex(r=>r===o);a!==-1&&l.splice(a,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(a=>{try{Reflect.apply(a,null,[n,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ke(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function xi(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function Si(e,n){const o=Ke((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function Ci(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function $n(e,n,o,l=0,a=!0,r){let i=n,u=0;if(a){const f=e();if(u++,f){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}}const s=()=>{const f=e();if(u++,f){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const ze=Symbol("DomainKey"),St=Symbol("DataItemsKey");class kn{_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,o=[]){for(const l in n){const a=n[l];o.length>0&&o.indexOf(a)!==-1||(this._props[l]=a)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const a=l._props[n];o.push(a)}l=l._parent}return o}}const Ti=new kn;function Tt(){return Ti}function ct(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ze]??t.inject(ze,null):t.inject(ze,null)}const tl=Symbol("OriginalDateKey");function Pl(e,n,o=[],l){const a=t.getCurrentInstance();let r=a?.proxy,i=t.inject(ze,null);i===null&&(i=Tt());const u=e||n.prop||n.name;let s=new kn(u);s.parent=i;const f=m=>{r[tl]||p(m),s?.set("modelValue",m)},h=()=>s?.getForSelf("modelValue")??null,d=()=>r[tl]??null,p=m=>{const g={};gt(!0,g,t.toRaw(m)),r[tl]=g};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{s?.merge(m,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&p(n.modelValue);const x=(m,g)=>{s?.set(m,g)},b=m=>s?.getForSelf(m)??null;if(r[ze]=s,t.provide(ze,s),a!==null){const m=t.inject(ke,null),g=Cn(r,m,u,l);s.broadcast=g,r[ke]=g,t.provide(ke,g),r.broadcast=(c,N,...M)=>Reflect.apply(g.emit,g,[c,N,...M]);const B=t.inject(Ue,null),y=Tn(r,B,{componentName:""});s.validateSchema=y,r[Ue]=y,t.provide(Ue,y),r[St]=new Map,r.validate=(c=!0)=>{const N=[];let M=null;const E={deep:!1};if(c===!0)M={name:"*"};else if(Array.isArray(c)&&c.length>0){const S=c;M={name:P=>P?S.indexOf(P)!==-1:!1}}else if(c!=null&&typeof c=="object"){const S=c;if(Object.assign(E,S),Array.isArray(S.include)&&S.include.length>0){const P=S.include;M={name:C=>C?P.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const P=S.exclude;M={name:C=>C?P.indexOf(C)===-1:!1}}else M={name:"*"}}if(M){const S=g?.emitToChildren(M,"validate",E);S&&Reflect.apply([].push,N,S)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(S=>{let P=[];return S.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(P=[...P,...C.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(c,N=!0,M=!1)=>{if(M===!0){Reflect.ownKeys(c).forEach(S=>{let P=String(S);const C={componentName:"",fieldName:P,pureDataValidate:!0};if(s){const H=pr(s,P,C,g,y);r[St].set(P,H);const v=c[P];v&&H.validateSchema.setRule(v)}});return}if(N){const E=Reflect.ownKeys(c),S={name:P=>E.includes(P),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(S,"setNameValidateRules",c,!1)}},r.clearValidate=(c=!0)=>{let N=null;if(c===!0)N={name:"*"};else if(Array.isArray(c)&&c.length>0){const M=c;N={name:E=>E?M.indexOf(E)!==-1:!1}}else if(c!=null&&typeof c=="object"){const M=c;if(Array.isArray(M.include)&&M.include.length>0){const E=M.include;N={name:S=>S?E.indexOf(S)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const E=M.exclude;N={name:S=>S?E.indexOf(S)===-1:!1}}else N={name:"*"}}N&&g?.emitToChildren(N,"clearValidate",!1)},r.resetFields=c=>{const N=h();if(!N)return;const M={};if(gt(!0,M,d()??{}),Array.isArray(c))c.forEach(E=>{N[E]=M[E]});else if(c&&Array.isArray(c.include))(c.include??[]).forEach(S=>{N[S]=M[S]});else if(c&&Array.isArray(c.exclude)){let E=c.exclude??[];Reflect.ownKeys(M).forEach(S=>{E.includes(S)||(N[S]=M[S])})}else Object.assign(N,M);r.clearValidate(c)},r.setModelValue=(c,N)=>{if(!N||N===u)f(c);else{const M={name:N,messagingPolicy:"Once"};g?.emitToChildren(M,"setModelValue",c)}},r.getModelValue=()=>h(),r.setDomainProperty=(c,N)=>{x(c,N)},r.getDomainProperty=c=>b(c),setTimeout(function(){g?.pull()},0)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Ue]=void 0,t.provide(Ue,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[ke]=void 0,t.provide(ke,null)),s?.destroy(),r[ze]=void 0,t.provide(ze,null),r[St]&&(r[St].clear(),r[St]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function gr(e,n,o=[]){let a=t.getCurrentInstance()?.proxy,r=t.inject(ze,null);r===null&&(r=Tt());const i=e||n.prop||n.name;let u=new kn(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,o),a[ze]=u,t.provide(ze,u),t.onUnmounted(()=>{u?.destroy(),a[ze]=void 0,t.provide(ze,null),u=null,a=null}),u}function De(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(ke,null);let u=Cn(a,i,r,o);a[ke]=u,t.provide(ke,u),a.broadcast=(b,m,...g)=>u?Reflect.apply(u.emit,u,[b,m,...g]):null;const s=t.inject(Ue,null);e.fieldName=e.fieldName??r;let f=Tn(a,s,e);a[Ue]=f,t.provide(Ue,f),a.validate=(b=null)=>{if(!f)return Promise.resolve({pass:!0});const m=[];let g=!1,B=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)B=!0,g=!0;else if(b&&typeof b=="object"){const y=b,c=y.ignoreDisabled??!0,N=y.ignoreReadonly??!0,M=y.ignoreHidden??!0;c===!0&&e.disabled===!0||N===!0&&e.readonly===!0||M===!0&&Sn(a.$el)?B=!1:(Array.isArray(y.include)&&y.include.indexOf(r)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(r),B=!0),g=y.deep??!1}else typeof b=="boolean"&&(g=b),B=!0;if(B){const y=f?.validate();m.push(y)}if(g){let y=null;const c={deep:!1};if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const N=b;y={name:M=>M?N.indexOf(M)!==-1:!1}}else if(b!=null&&typeof b=="object"){const N=b;if(Object.assign(c,N),Array.isArray(N.include)&&N.include.length>0){const M=N.include;y={name:E=>E?M.indexOf(E)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const M=N.exclude;y={name:E=>E?M.indexOf(E)===-1:!1}}else y={name:"*"}}if(y&&u){const N=u.emitToChildren(y,"validate",c);Reflect.apply([].push,m,N)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let c=[];return y.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(c=[...c,...N.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=b=>f?.setRule(b),a.setNameValidateRules=(b,m=!1)=>{const g=b[r];if(g&&f?.setRule(g),m&&u){const B={name:y=>Reflect.ownKeys(b).includes(y)};u.emitToChildren(B,"setNameValidateRules",b,!1)}},a.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&f?.clear();let m=null;if(b===!0)m={name:"*"};else if(Array.isArray(b)&&b.length>0){const g=b;m={name:B=>B?g.indexOf(B)!==-1:!1}}else if(b!=null&&typeof b=="object"){const g=b;if(Array.isArray(g.include)&&g.include.length>0){const B=g.include;m={name:y=>y?B.indexOf(y)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const B=g.exclude;m={name:y=>y?B.indexOf(y)===-1:!1}}else m={name:"*"}}m&&u&&u.emitToChildren(m,"clearValidate",!1)};let h=new mr(a);a[gn]=h;const d=Ke((b="validate")=>{f&&(b==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:cr()).forEach(b=>{h&&h.on(b,m=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:dr()).forEach(b=>{h&&h.on(b,m=>{d("reset")})}),setTimeout(function(){u?.pull()},0),t.onUnmounted(()=>{u?.destroy(),a[ke]=void 0,t.provide(ke,null),u=null,f?.destroy(),a[Ue]=void 0,t.provide(Ue,null),f=null,h?.destroy(),a[gn]=void 0,h=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null}),{broadcast:u,validateSchema:f,emitEvent:(b,...m)=>{h&&Reflect.apply(h.emit,h,[b,...m])},onEvent:(b,m)=>{h&&Reflect.apply(h.on,h,[m])},offEvent:(b,m)=>{h&&Reflect.apply(h.off,h,[m])}}}function pr(e,n,o,l,a){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};o.fieldName=i,o.validateHandler={getValue(h){return u.getValue()}};let s=Tn({},a,o);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let p=!1,x=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)x=!0,p=!0;else if(h&&typeof h=="object"){const b=h;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),x=!0,p=b.deep??!1}else typeof h=="boolean"&&(p=h),x=!0;if(x&&s){const b=s.validate();d.push(b)}if(p){let b=null;const m={deep:!1};if(h===!0)b={name:"*"};else if(Array.isArray(h)&&h.length>0){const g=h;b={name:B=>B?g.indexOf(B)!==-1:!1}}else if(h!=null&&typeof h=="object"){const g=h;if(Object.assign(m,g),Array.isArray(g.include)&&g.include.length>0){const B=g.include;b={name:y=>y?B.indexOf(y)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const B=g.exclude;b={name:y=>y?B.indexOf(y)===-1:!1}}else b={name:"*"}}if(b&&f){const g=f.emitToChildren(b,"validate",m);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(b=>{let m=[];return b.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(m=[...m,...g.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const d=h[i];d&&s?.setRule(d)};let f=Cn(null,l,i,r);return t.onUnmounted(()=>{s=null,f=null}),{broadcast:f,validateSchema:s}}function Ol(){let n=t.getCurrentInstance()?.proxy,o=new mr(n);return n[gn]=o,t.onUnmounted(()=>{o?.destroy(),n[gn]=void 0,o=null,n=null}),{emitEvent:(l,...a)=>{o&&Reflect.apply(o.emit,o,[l,...a])},onEvent:(l,a)=>{o&&Reflect.apply(o.on,o,[a])},offEvent:(l,a)=>{o&&Reflect.apply(o.off,o,[a])}}}const Re=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ve(e,n)}px`:"";function ve(e,n=-1){if(e==null)return 0;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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(ut){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const st="PageStateKey";function Ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ve(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ve(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ve(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ve(e.right))),n}function wl(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=ve(o.headerHeight??n.headerHeight??-1),e.headerPadding=Ze(o.headerPadding??n.headerPadding),e.footerHeight=ve(o.footerHeight??n.footerHeight??-1),e.footerPadding=Ze(o.footerPadding??n.footerPadding),e.contentPadding=Ze(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ve(s,r):e.height=ve(r)-ve(i,r)-ve(u,r),e.width=ve(o.width??n.width??0,a)}}function vr(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=ve(a.top),l.safeAreaBottom=ve(a.bottom),l.safeAreaLeft=ve(a.left),l.safeAreaRight=ve(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;wl(l,r,n,!0,i,u,s,f);const h=t.reactive(l),d=e.getForParent(st);d&&(l.height=pn(e,d),l.width=vn(e,d),t.watch([()=>pn(e,d),()=>vn(e,d)],([x,b])=>{h.height=x,h.width=b}));const p=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,b,m=-1,g=-1,B=0,y=0])=>{wl(h,b,n,p,m,g,B,y)}),e.set(st,h),h}function Dn(e){return e.get(st)}function Nn(e,n){if(n=n??e.get(st),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function En(e,n){if(n=n??e.get(st),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function pn(e,n){if(n=n??e.get(st),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Nn(e,n),l=En(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function vn(e,n){return n=n??e.get(st),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function $i(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function ki(e){return!!e.getForParent(st)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function Gt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Pe(e,n,o=1,l){const a=ct();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(Gt(s,l))return s}const i=e.value;return Gt(i,l)?i:null}):t.computed(()=>{const r=e.value;if(Gt(r,l))return r;const i=a.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(Gt(s,l))return s}return null})}function Oe(e){return Pe(e,"readonly",1)}function Ae(e){return Pe(e,"disabled",1)}function me(e,n="modelValue",o=null,l){const a=t.toRef(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const i=t.ref(r);return t.watch(a,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const yr=new Map,yn=new Map;let xl=null;function Di(e){xl=e}function br(e,n,o){if(o){let l=yn.get(o);l||(l=new Map,yn.set(o,l)),l.set(e,n)}else yr.set(e,n)}function Be(e,n,o){!o&&xl&&(o=xl(e)??void 0);let l=null;if(o){let a=yn.get(o);a&&(l=a.get(n))}return l||(l=yr.get(n)),l}function Ni(e,n){for(let o in e){const l=e[o];br(o,l,n)}}function Ei(e){yn.delete(e)}function Vi(){return{top:0,left:0,bottom:0,right:0}}function Ii(){if(ut){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Pi(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Oi{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const i=Pi(r.name,o);n.component(i,r)}}),this.installers.forEach(r=>{r(n,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Tt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ke(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=f,this.initPageLayout(u,a)},120);new window.ResizeObserver(r).observe(window.document.body)}for(const r in o)l.indexOf(r)===-1&&a.set(r,o[r])}initPageLayout(n,o){const l=n.headerBarHeight??0,a=n.footerBarHeight??0,r=gt({},Vi(),n.safeAreaInset),i=Ii(),u=gt({},i.pageLayout,n.pageLayout);o=o??Tt(),o.set("safeAreaInset",r),o.set("headerBarHeight",l),o.set("footerBarHeight",a),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Di(n)}setAPI(n,o,l){br(n,o,l)}getAPI(n,o,l){return Be(n,o,l)}batchSetAPI(n,o){Ni(n,o)}clearScopeAPI(n){Ei(n)}getRootDomain(){return Tt()}}const Ai=[O.ElAffix,O.ElAlert,O.ElAutocomplete,O.ElAutoResizer,O.ElAvatar,O.ElBacktop,O.ElBadge,O.ElBreadcrumb,O.ElBreadcrumbItem,O.ElButton,O.ElButtonGroup,O.ElCalendar,O.ElCard,O.ElCarousel,O.ElCarouselItem,O.ElCascader,O.ElCascaderPanel,O.ElCheckTag,O.ElCheckbox,O.ElCheckboxButton,O.ElCheckboxGroup,O.ElCol,O.ElCollapse,O.ElCollapseItem,O.ElCollapseTransition,O.ElColorPicker,O.ElConfigProvider,O.ElContainer,O.ElAside,O.ElFooter,O.ElHeader,O.ElMain,O.ElDatePicker,O.ElDescriptions,O.ElDescriptionsItem,O.ElDialog,O.ElDivider,O.ElDrawer,O.ElDropdown,O.ElDropdownItem,O.ElDropdownMenu,O.ElEmpty,O.ElForm,O.ElFormItem,O.ElIcon,O.ElImage,O.ElImageViewer,O.ElInput,O.ElInputNumber,O.ElLink,O.ElMenu,O.ElSubMenu,O.ElMenuItem,O.ElMenuItemGroup,O.ElPageHeader,O.ElPagination,O.ElPopconfirm,O.ElPopover,O.ElPopper,O.ElProgress,O.ElRadio,O.ElRadioButton,O.ElRadioGroup,O.ElRate,O.ElResult,O.ElRow,O.ElScrollbar,O.ElSelect,O.ElOption,O.ElOptionGroup,O.ElSelectV2,O.ElSkeleton,O.ElSkeletonItem,O.ElSlider,O.ElSpace,O.ElSteps,O.ElStep,O.ElSwitch,O.ElTable,O.ElTableColumn,O.ElTableV2,O.ElTabs,O.ElTabPane,O.ElTag,O.ElTimePicker,O.ElTimeSelect,O.ElTimeline,O.ElTimelineItem,O.ElTooltip,O.ElTransfer,O.ElTree,O.ElTreeSelect,O.ElTreeV2,O.ElUpload,O.ElStatistic,O.ElCountdown,O.ElSegmented,O.ElAnchor,O.ElAnchorLink,O.ElWatermark,O.ElMessageBox,O.ElMessage,O.ElNotification],Fi=[O.ElInfiniteScroll,O.ElLoading,O.ElMessage,O.ElMessageBox,O.ElNotification,O.ElPopoverDirective],Mi=(e,n={})=>{const o=n.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Ai.forEach(a=>{let r=a.name;typeof r=="string"?(r=`${l}${r.slice(2)}`,e.component(r,a)):e.use(a)}),Fi.forEach(a=>{e.use(a)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function be(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Ce={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ie={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},wr={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}},xr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Sr=[];for(const e in xr)Sr.push(e);const Ri=Symbol.for("InnerPageScopeKey"),Bi={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Li=(e,n)=>({inheritAttrs:!0,props:{...Ce,...wr,...Bi},setup(o,{slots:l}){const a=Pl(o.name,o),r=t.inject(Ri,!1);if(a){const h=vr(a,o);be({getPageContentHeight:()=>pn(a,h),getPageContentWidth:()=>vn(a,h),getPageHeaderHeight:()=>Nn(a,h),getPageFooterHeight:()=>En(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),f=(h,d=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(h,!0,d)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,d],[p,x])=>{if(h&&p){const b=t.toRaw(p),m=t.toRaw(h),g=m?Reflect.ownKeys(m):[];(b?Reflect.ownKeys(b):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),f(m)}if(d&&x){const b=t.toRaw(x),m=t.toRaw(d),g=m?Reflect.ownKeys(m):[];(b?Reflect.ownKeys(b):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),f(m,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);f(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);f(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:_i,create:qi}=ie("page"),Al=qi(Li(_i));function Fl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Vn(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}const zi=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=ct(),u=i?Dn(i):null;u&&(u.headerMounted=!0);const s=e,f=t.computed(()=>({[s]:!0,[`${s}--border`]:a.border,[`${s}--fixed`]:a.fixed,[`${s}--safe-area-inset-top`]:a.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${a.align}`]:!0})),d=a.height!==null&&a.height!==void 0?ve(a.height):null,p=t.computed(()=>{const v={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const R=Ze(a.padding??u.headerPadding);return Object.assign(v,R),d&&(u.headerHeight=d),u.headerHeight>0&&(v.height=u.headerHeight),v.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,v.safeAreaTop>0&&(v.top=v.safeAreaTop+(R.top??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaTop)),v}if(d&&(v.height=d),a.padding){const R=Ze(a.padding);Object.assign(v,R)}return v}),x=t.ref(null),b=()=>{if(u&&x.value&&!Sn(x.value)){if(!l){const v=Fl(x.value);u.headerAllHeight=v.height}return u.headerMounted=!0,!0}return!1},m=Ke(b,120);let g=null;t.onMounted(()=>{u&&($n(b,50,5,50,!0),window.ResizeObserver&&x.value&&(g=new window.ResizeObserver(m),g.observe(x.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,g&&(g.disconnect(),g=null))});const B=t.computed(()=>{const v={};return p.value.height!==null&&p.value.height!==void 0&&(v.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(v.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(v.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(v.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(v.paddingBottom=`${p.value.bottom}px`),v}),y=t.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function c(){r.emit("back")}function N(){r.emit("click-title")}function M(){r.emit("click-right")}function E(){r.emit("click-right-text")}const S=()=>{if(!a.leftShow)return null;const v=[];if(r.slots.left)v.push(r.slots.left());else{if(r.slots.leftIcon){const R=t.h("view",{class:"left-icon",onClick:c},[r.slots.leftIcon()]);v.push(R)}else if(a.leftIcon){const R=t.h("view",{class:"left-icon",onClick:c},[t.h(a.leftIcon)]);v.push(R)}if(a.leftText){const R=t.h("view",{class:"left-text",onClick:c},[a.leftText]);v.push(R)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__left"},v)},P=()=>{if(!a.rightShow)return null;const v=[];if(r.slots.right)v.push(r.slots.right());else{if(a.rightText){const R=t.h("view",{class:"right-text",onClick:E},[a.rightText]);v.push(R)}if(r.slots.rightIcon){const R=t.h("view",{class:"right-icon",onClick:M},[r.slots.rightIcon()]);v.push(R)}else if(a.rightIcon){const R=t.h("view",{class:"right-icon",onClick:M},[t.h(a.rightIcon)]);v.push(R)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__right"},v)},C=()=>{if(!a.titleShow)return null;const v=[],R=r.slots.default?r.slots.default():null;if(R)v.push(R);else{if(a.title){const G=t.h("view",{class:"title-text"},[a.title]);v.push(G)}if(r.slots.titleIcon){const G=t.h("view",{class:"title-icon",onClick:N},[r.slots.titleIcon()]);v.push(G)}else if(a.titleIcon){const G=t.h("view",{class:"title-icon",onClick:N},[t.h(a.titleIcon)]);v.push(G)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__title"},v)},H=()=>{const v=[],R=r.slots.bottom?r.slots.bottom():null;return R&&v.push(R),v.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},v)};return()=>{if(!y.value)return null;const v=[];if(r.slots.all)v.push(r.slots.all());else{const G=[],L=S();L&&G.push(L);const D=C();D&&G.push(D);const q=P();if(q&&G.push(q),G.length>0){const X=t.h("view",{class:h.value},G);v.push(X)}const F=H();F&&v.push(F)}if(v.length===0)return null;const R={class:f.value,style:B.value,ref:x};return t.h("view",R,v)}}}),{componentName:ji,create:Hi,scope:Ki}=ie("header-bar"),Ml=Hi(zi(ji,Ki,Ee.ArrowLeft));function Wi(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=ct(),i=r?Dn(r):null,u=t.computed(()=>{const m=e;return{[m]:!0,[`${m}--${l.align}`]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed,[`${m}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?ve(l.height):null,f=t.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const g=Ze(l.padding??i.footerPadding);return Object.assign(m,g),s&&(i.footerHeight=s),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(g.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(s&&(m.height=s),l.padding){const g=Ze(l.padding);Object.assign(m,g)}return m}),h=t.ref(null),d=()=>{if(i&&h.value&&!Sn(h.value)){if(!o){const m=Fl(h.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1},p=Ke(d,120);let x=null;t.onMounted(()=>{i&&($n(d,50,5,50,!0),window.ResizeObserver&&(x=new window.ResizeObserver(p),x.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,x&&(x.disconnect(),x=null))});const b=t.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=Re(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=Re(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=Re(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=Re(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=Re(f.value.bottom)),m});return()=>{const m=a.slots.default?a.slots.default():[],g={ref:h,class:u.value,style:b.value};return t.h("view",g,m)}}}}const{componentName:Yi,create:Ui}=ie("footer-bar"),Rl=Ui(Wi(Yi));function Gi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=ct(),i=t.computed(()=>({[e]:!0})),u=r?Dn(r):null,s=t.computed(()=>{const x={};if(r&&u){if(o.padding){const M=Ze(o.padding);Object.assign(u.contentPadding,M)}const b=Nn(r,u),m=En(r,u);let g="";u.contentHeight?g=`${u.contentHeight}`:g=`${u.height}px`,x.height=g;let B=(u&&u.contentPadding&&u.contentPadding.top)??-1;(B>=0||b>0)&&(B=B<0?0:B,x.paddingTop=`${b+B}px`);let y=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(y>=0||m>0)&&(y=y<0?0:y,x.paddingBottom=`${m+y}px`);const c=(u&&u.contentPadding&&u.contentPadding.left)??-1;c>=0&&(x.paddingLeft=`${c}px`);const N=(u&&u.contentPadding&&u.contentPadding.right)??-1;return N>=0&&(x.paddingRight=`${N}px`),x}if(o.padding){const b=Ze(o.padding);b.left&&(x.paddingLeft=`${b.left}px`),b.top&&(x.paddingTop=`${b.top}px`),b.right&&(x.paddingRight=`${b.right}px`),b.bottom&&(x.paddingBottom=`${b.bottom}px`)}return x}),f=t.ref(null),h=()=>{if(u&&f.value){const x=Vn(f.value);u.contentInnerHeight=x.height,u.contentInnerWidth=x.width}},d=Ke(h,120);let p=null;return t.onMounted(()=>{requestAnimationFrame(h),window.ResizeObserver&&f.value&&(p=new window.ResizeObserver(d),p.observe(f.value))}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const x=o.tag??"view",b={...a,ref:f,class:i.value,style:s.value};return t.h(x,b,l)}}}}const{componentName:Xi,create:Zi}=ie("content"),Bl=Zi(Gi(Xi)),Dt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function In(){return t.inject(Cr,!1)}function Pn(e=!0){t.provide(Cr,e)}function Ji(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];Vl(a)||(e[l]=a)})}function Qi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ji(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Dt,r),r}function nl(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(Dt);if(!s)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),l===-1&&(l=f.gutter??0),r||(r=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const h=ve(r),d=ve(i);u||(u=f.type??"grid");const p=()=>{const x=n===""||n===-1,b=ve(n);let m=pe(o);const g=ve(l);if(!x){let c=(b-(m-1)*g)/m;for(;d!==-1&&c>d;)m++,c=(b-(m-1)*g)/m;for(;h!==-1&&m>1&&c<h;)m--,c=(b-(m-1)*g)/m}let B=!1;const y=s.layout;y.value.width=n,y.value.column!==m&&(y.value.column=m,B=!0),y.value.gutter!==g&&(y.value.gutter=g,B=!0),y.value.type!==u&&(y.value.type=u,B=!0),B&&t.triggerRef(y)};if(a)p();else{const x=++s.passport;setTimeout(()=>{x===s.passport&&p()},50)}}function On(e,n=!1){let o;return n?o=e.getForParent(Dt):o=e.get(Dt),o.layout}function An(e,n=!1){let o;return n?o=e.getForParent(Dt):o=e.get(Dt),o.order}function Ro(e,n=1){if(n==="stretch")return-1;const o=pe(n);return o===-1?100:100*o/e}function Fn(e,n,o=1,l=0,a){const r={};let i=0;a?i=ve(a):i=Ro(n.column,o),i>0&&(r.width=`${i}%`);const u=Ro(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Mn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,f=s+(n.column-s);return e.index=e.index+(f-s),{"grid-column":`${s+1} / -1`}}let a=pe(o);if(a===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=pe(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function es(e){t.provide(Tr,e)}function ts(){return t.inject(Tr,null)}function Sl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function ns(e){let n=Sl(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Sl(o),document.body.removeChild(o)}return n}function ls(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const os={...Ce,...wr,...xr};function as(e,n,o){return{props:os,emits:["update:collapse","header-click"],setup(l,a){const r=Pl(l.prop??l.name,l,Sr),i=Qi(r,{type:l.type}),u=In();Pn(!0);const s=l.rollingDisplay?ts():null,f=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),d=t.computed(()=>u&&r?On(r,!0).value:null),p=t.getCurrentInstance(),x=(w,K=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(w,!0,K)};t.watch([()=>l.rules,()=>l.pureDataRules],([w,K],[Z,$])=>{if(w&&Z){const W=t.toRaw(Z),Q=t.toRaw(w),ne=Q?Reflect.ownKeys(Q):[];(W?Reflect.ownKeys(W):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),x(Q)}if(K&&$){const W=t.toRaw($),Q=t.toRaw(K),ne=Q?Reflect.ownKeys(Q):[];(W?Reflect.ownKeys(W):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),x(Q,!0)}},{deep:!0});const b=e,m=t.computed(()=>{const w={};w.height=D.value;const K=u?An(r,!0):null;if(d.value&&K){if(d.value.type==="grid"){const Z=Mn(K,d.value,l.span,l.offset);Object.assign(w,Z)}else if(d.value.type==="flow"){const Z=Fn(K,d.value,l.span,l.offset,l.width);Object.assign(w,Z)}}else if(l.width){const Z=Re(l.width);w.width=Z}return w}),g=t.computed(()=>{const w=i.layout.value.type;return w==="grid"||w==="flow"?{[`${b}--${w}`]:!0,[`${b}--${w}-justify-${l.justify}`]:!0,[`${b}--${w}-align-${l.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${w}`]:!0,[`${b}--gutter`]:!0}}),B=t.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(l.columnWidth)K=`repeat(auto-fill, ${l.columnWidth})`;else{const Z=ls(P.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),y=t.toRef(l,"gutter"),c=t.toRef(l,"column"),N=t.computed(()=>u||h.value?!0:fe(l.isWrap)),M=[],E=w=>{M.push(w)},S=()=>{let w=M.length;M.splice(0,w)},P=t.ref(-1),C=w=>{const K=Vn(w).width;K>0&&K!==P.value&&(P.value=K)};nl(r,P.value,c.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([P,c,y],([w,K,Z])=>{i.order.index=0,nl(r,w,K,Z,!1,l.minItemWidth,l.maxItemWidth,l.type)});const H=t.computed(()=>q.value?l.expandText??"":l.collapseText??""),v=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),R=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),G=t.ref(),L=t.ref(),D=t.computed(()=>F.value||Re(l.height)||""),q=t.ref(!1),F=t.ref(""),X=t.ref(!1);let Y=-1;const j=(w,K=!0)=>{const Z=G.value;if(Z&&q.value!==w){if(Y=Y===-1?ns(Z):Y,X.value=!0,K)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",w||(F.value="",X.value=!1)},w){let $=0;l.collapseHeight?$=l.collapseHeight:L.value&&L.value.classList.contains(`${e}__header`)&&($=L.value.offsetHeight),F.value=`${Y}px`,t.nextTick(()=>{F.value=`${$}px`})}else F.value=`${Y}px`;else if(w){let $=0;l.collapseHeight?$=l.collapseHeight:L.value&&L.value.classList.contains(`${e}__header`)&&($=L.value.offsetHeight),F.value=`${$}px`}else X.value=!1,F.value=`${Y}px`;q.value=w,a.emit("update:collapse",w)}};t.watch(()=>l.collapse,w=>{j(w)});const ee=w=>{a.emit("header-click",w)},k=()=>{I()},I=w=>{w=w??!q.value,j(w)};be({toggleCollapse:I,doLayout:()=>{M[0]&&(C(M[0]),nl(r,P.value,c.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let _=null,V=!0;const J=w=>{if(l.rules){const K=t.toRaw(l.rules);x(K)}if(l.pureDataRules){const K=t.toRaw(l.pureDataRules);x(K,!0)}if(ut&&(w&&j(fe(l.collapse),!1),l.autoLayout&&Array.isArray(M)&&M.length>0)){const K=M[0];if(C(K),window.ResizeObserver){const Z=Ke(()=>C(K),120);_=new window.ResizeObserver(Z),_.observe(K)}}},te=()=>{_?.disconnect(),_=null},U=!h.value||s?.acquire();U&&(f.value=h.value?!0:null),t.onMounted(()=>{if(U&&(J(V),V=!1),h.value&&s){let w=null,K=s.initialHeight;s.observe(G.value,Z=>{if(Z!==f.value)if(Z)f.value=!0,q.value||(F.value=""),w=setTimeout(()=>{w=null,f.value!==!1&&(J(V),V=!1)},100);else{if(w!==null&&clearTimeout(w),f.value=!1,!q.value)if(V)F.value=s.initialHeight;else{let $=Sl(G.value);$<=0?F.value=K:(F.value=`${$}px`,K=F.value)}V||te()}})}}),t.onUnmounted(()=>{_?.disconnect(),s&&s.unobserve(G.value)});const T=(w="right")=>{const K=[];if(H.value){const W={class:v.value},Q=t.h("span",W,[H.value]);K.push(Q)}const Z={class:R.value},$=o(l.collapseIcon,Z);return $&&K.push($),K.length>0?t.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${w}`]:!0},onClick:k},K):null},A=(w,K,Z,$)=>{const W={...g.value};return K===0&&(W[`${b}__first`]=!0),Z>=$-1&&(W[`${b}__last`]=!0),t.h("div",{ref:E,key:`${K}`,class:W,style:B.value},w)};return()=>{if(h.value&&f.value!==!0){const W=l.tag||"div";return t.h(W,{ref:G,prop:l.name,class:{[`${b}`]:!0,"is-collapse":X.value},style:m.value},[])}i.order.index=0;const w=[];let K=0;if(a.slots.header){const W={key:`${K++}`,ref:L,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},Q=t.h("div",W,[a.slots.header()]);w.push(Q)}else{const W=[],Q=l.collapsePosition==="left";if(Q&&l.showCollapse){const ne=T("left");ne&&W.push(ne)}if(l.title||a.slots.title){if(l.showMark){const ne={class:{[`${b}__header-mark`]:!0}};l.markColor&&(ne.style={background:l.markColor});const se=t.h("div",ne);W.push(se)}if(a.slots.title){const ne=t.h("div",{class:{[`${b}__header-title`]:!0}},[a.slots.title()]);W.push(ne)}else if(l.title){const ne=t.h("div",{class:{[`${b}__header-title`]:!0}},[l.title]);W.push(ne)}}if(a.slots.toolbar&&W.push(a.slots.toolbar()),!Q&&l.showCollapse){const ne=T("right");ne&&W.push(ne)}if(W.length>0){const ne={key:`${K++}`,ref:L,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},se=t.h("div",ne,W);w.push(se)}}S();const Z=a.slots.default?a.slots.default():[],$=i.layout.value.type;if($==="grid"){const W=A(Z,K++,0,Z.length);w.push(W)}else if($==="flow"){const W=A(Z,K++,0,Z.length);w.push(W)}else for(let W=0;W<Z.length;W++){const Q=Z[W],ne=A([Q],K++,W,Z.length);w.push(ne)}if(N.value){const W=l.tag||"div";return t.h(W,{ref:G,prop:l.name,class:{[`${b}`]:!0,"is-collapse":X.value},style:m.value},[w])}else return w}}}}const{componentName:rs,create:is,scope:ss}=ie("group"),us=(e,n)=>(e=e??Ee.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),Ll=is(as(rs,ss,us));function cs(e){return e===window}const fs=/matrix\((.+)\)/,_l=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(cs(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const h=fs.exec(f);if(h){let p=h[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}};class ds{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class hs{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r||(r=new ds,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Rt=new hs,$r={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:ms,create:gs}=ie("price"),ps=gs({props:{...$r},setup(e){const n=t.computed(()=>({[ms]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>Qe(e.price)==0?"":wn(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:a,decimalText:r}}}),Fe=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},vs=["innerHTML"],ys=["innerHTML"];function bs(e,n,o,l,a,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,vs)):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,ys)):t.createCommentVNode("",!0)],2)}const Rn=Fe(ps,[["render",bs]]),{componentName:ll,create:ws}=ie("hint-text"),xs=ws({components:{Price:Rn},props:{...$r,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),f=(v,R,G,L,D,q)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,Y=v.split("-");let j=[];Y[0]==="top"?j=["top","bottom","right","left"]:Y[0]==="bottom"?j=["bottom","top","right","left"]:Y[0]==="left"?j=["left","top","bottom","right"]:Y[0]==="right"&&(j=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},k=[];for(let I=0;I<j.length;I++){const z=j[I];if(k[0]=z,Y[1]&&(k[1]=Y[1]),z==="top"){const _=R.y-q-e.arrowSize-e.offset;if(_>=0){ee.top=_;let V=0;Y[1]==="start"?V=R.x:Y[1]==="end"?V=R.x+G-D:V=R.x+G/2-D/2;const J=F-V-D;J<0?(V+=J,d.value=-J):d.value=0,ee.left=V<0?0:V;break}}else if(z==="bottom"){const _=R.y+L+e.arrowSize+e.offset;if(_+q<=X){ee.top=_;let V=0;Y[1]==="start"?V=R.x:Y[1]==="end"?V=R.x+G-D:V=R.x+G/2-D/2;const J=F-V-D;J<0?(V+=J,d.value=-J):d.value=0,ee.left=V<0?0:V;break}}else if(z==="left"){const _=R.x-D-e.arrowSize-e.offset;if(_>=0){ee.left=_;let V=0;Y[1]==="start"?V=R.y:Y[1]==="end"?V=R.y+L-q:V=R.y+L/2-q/2,ee.top=V<0?0:V;break}}else if(z==="right"){const _=R.x+G+e.arrowSize+e.offset;if(_+D<=F){ee.left=_;let V=0;Y[1]==="start"?V=R.y:Y[1]==="end"?V=R.y+L-q:V=R.y+L/2-q/2,ee.top=V<0?0:V;break}}}return{bestPlacement:k.join("-"),bestInsetRect:ee}},h=(v,R,G=10)=>{if(!ut||R===!1||!v)return;l.value=_l(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const L=s.value.offsetHeight,D=s.value.offsetWidth,{bestPlacement:q,bestInsetRect:F}=f(e.placement,l.value,a.value,r.value,D,L);i.value=q,o.value=F,u.value=!0},d=t.ref(0),p=Ke(()=>{h(e.message,e.visible)},10),x=t.ref(e.visible);t.watch(()=>e.visible,v=>{x.value=v});const b=t.computed(()=>x.value&&m.value),m=t.ref(!0),g=Ke(v=>{const R=v[0];R&&(m.value=R.isIntersecting)},10),B=new IntersectionObserver(g);t.watch([()=>e.message,()=>e.visible],([v,R])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Rt.watch(e.reference,p),B.observe(e.reference)}),t.onBeforeUnmount(()=>{Rt.unwatch(e.reference,p),B.unobserve(e.reference),B.disconnect()});const y=t.computed(()=>{const v={[ll]:!0};return i.value.startsWith("top")?v["is-top"]=!0:i.value.startsWith("right")?v["is-right"]=!0:i.value.startsWith("bottom")?v["is-bottom"]=!0:i.value.startsWith("right")&&(v["is-right"]=!0),e.size==="small"?v["is-small"]=!0:e.size==="large"&&(v["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(v[`${e.customClass}`]=!0),v}),c=t.computed(()=>{const v={};o.value.top!==null&&(v.top=`${o.value.top}px`),o.value.right!==null&&(v.right=`${o.value.right}px`),o.value.bottom!==null&&(v.bottom=`${o.value.bottom}px`),o.value.left!==null&&(v.left=`${o.value.left}px`),e.autoFit&&(v["min-width"]=`${a.value}px`);const R=document.documentElement.clientWidth||document.body.clientWidth;return v["max-width"]=`${R}px`,u.value&&(v.opacity="1"),e.transition||(v.transition="none"),e.zIndex&&(v["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(v,e.customStyle),v}),N=t.computed(()=>{const v=[`${ll}__content`];return e.customTextClass&&v.push(e.customTextClass),v}),M=t.computed(()=>{const v={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(v,e.customTextStyle),v}),E=t.computed(()=>({[`${ll}__arrow`]:!0})),S=t.computed(()=>{const v={};return e.showArrow?(v.width=`${e.arrowSize}px`,v.height=`${e.arrowSize}px`,i.value==="top"?(v.left="50%",v.bottom=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="top-start"?(v.left=`${e.arrowOffset+d.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(v.right=`${e.arrowOffset-d.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="right"?(v.left=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="right-start"?(v.left=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="right-end"?(v.left=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(v.left="50%",v.top=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(v.left=`${e.arrowOffset+d.value}px`,v.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(v.right=`${e.arrowOffset-d.value}px`,v.top=`-${e.arrowSize}px`):i.value==="left"?(v.right=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="left-start"?(v.right=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="left-end"&&(v.right=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`),v):{display:"none"}}),P=t.computed(()=>b.value&&e.closeOnClick),C=t.computed(()=>{const v={};return e.zIndex&&(v["z-index"]=`${e.zIndex}`),v});return{show:b,tipRef:s,classes:y,styles:c,textClasses:N,textStyles:M,arrowClasses:E,arrowStyles:S,overlayShow:P,overlayStyle:C,onClickOverlay:()=>{x.value=!1,n.emit("update:visible",!1)}}}}),Ss=["innerHTML"];function Cs(e,n,o,l,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),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(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ss))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const jt=Fe(xs,[["render",Cs]]);class kr{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 Cl={},Ts=new kr,$t=new Map,bn=e=>{if(e){const n=document.getElementById(e);$t.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of $t.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}$t.clear()}},$s=e=>{e.unmount=bn;const n=document.getElementById(e.id);if(n){const o=$t.get(e.id);o?e={...Cl,...o,...e}:e={...Cl,...e},e.transition=!1;const l=t.createVNode(jt,e);t.render(l,n)}return e.id},ks=e=>{e.unmount=bn;let n=e.id??`hinttext_${Ts.get()}`;e={...Cl,...e},e.id=n,$t.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(jt,e);return t.render(l,o),document.body.appendChild(o),n},Ds=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},qe={show(e,n,o={},l=!0){Ds(n);const a=o.id;return a&&$t.has(a)?$s({...o,message:n,reference:e}):(l&&bn(),ks({...o,message:n,reference:e}))},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=qe}};function Ns(e,n,o,l=!1){return{inheritAttrs:!0,props:{...Ce,...Ie},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;De({componentName:e,validate:!1},i);const u=ct(),s=In();Pn(!1);const f=t.computed(()=>s&&u?On(u,!1).value:null),h=e,d=t.ref(null),p=t.computed(()=>{const $={[h]:!0,[`${h}__gutter`]:f.value&&f.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:fe(a.hasBorder)};if($[a.errorMarkClass]=!!q.value,$[a.warnMarkClass]=!!L.value,$[a.infoMarkClass]=!!R.value,typeof d.value=="function"){const W=d.value(i);$[W]=!0}else if(typeof d.value=="string"){const W=d.value;$[W]=!0}return $}),x=t.ref(null),b=t.computed(()=>{const $={};if(a.width)a.width!=="auto"&&($.width=Re(a.width));else{const W=s&&u?An(u,!1):null;if(f.value&&W){if(f.value.type==="grid"){const Q=Mn(W,f.value,a.span,a.offset);Object.assign($,Q)}else if(f.value.type==="flow"){const Q=Fn(W,f.value,a.span,a.offset,a.width);Object.assign($,Q)}}}if(typeof x.value=="function"){const W=x.value(i);W&&Object.assign($,W)}else if(x.value&&typeof x.value=="object"){const W=x.value;Object.assign($,W)}return $}),m=t.ref(null),g=t.computed({get:()=>m.value??fe(a.isRequired),set:$=>{m.value=$}}),B=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",y=Pe(t.toRef(a,"labelPosition"),"labelPosition",je.Near),c=t.computed(()=>y&&y.value==="top"?"top":y&&y.value==="right"?"right":"left"),N=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${c.value}`]:!0})),M=t.computed(()=>({label:!0,[`label--${c.value}`]:!0})),E=Pe(t.toRef(a,"labelWidth"),"labelWidth",je.Near),S=t.computed(()=>E&&E.value?{width:Re(E.value)}:{}),P=t.computed(()=>({"label--string":!0,"label--required":g.value})),C=t.computed(()=>({content:!0,[a.contentClass]:!0})),H=t.computed(()=>({...a.contentStyle})),v=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired($){g.value=$},setErrorTip($){v.errorTip=$},setErrorIcon($){v.errorIcon=$},setWarnTip($){v.warnTip=$},setWarnIcon($){v.warnIcon=$},setInfoTip($){v.infoTip=$},setInfoIcon($){v.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){x.value=$}});const R=t.computed(()=>a.infoTip||v.infoTip),G=t.computed(()=>a.infoIcon||v.infoIcon),L=t.computed(()=>a.warnTip||v.warnTip),D=t.computed(()=>a.warnIcon||v.warnIcon),q=t.computed(()=>a.errorTip||v.errorTip),F=t.computed(()=>a.errorIcon||v.errorIcon),X=t.computed(()=>q.value?"error":L.value?"warn":R.value?"info":""),Y=()=>X.value.length>0,j=t.computed(()=>X.value==="error"?q.value:X.value==="warn"?L.value:X.value==="info"?R.value:""),ee=t.computed(()=>X.value==="error"?F.value:X.value==="warn"?D.value:X.value==="info"?G.value:null),k=t.computed(()=>{const $={[`${h}__tip`]:!0,[`${h}__tip--${X.value}`]:!0,[`${h}--animate`]:!0};return X.value==="error"&&a.errorClass?$[`${a.errorClass}`]=!0:X.value==="warn"&&a.warnClass?$[`${a.warnClass}`]=!0:X.value==="info"&&a.infoClass&&($[`${a.infoClass}`]=!0),$}),I=t.computed(()=>{const $={};return y&&y.value==="top"||!B()?$["padding-left"]="0px":E&&E.value&&($["padding-left"]=Re(E.value)),$}),z=t.ref();let _="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([$,W,Q,ne])=>{z.value&&($&&!he(W)?_?o.show(z.value,W,{...ne,id:_,type:Q},!0):_=o.show(z.value,W,{...ne,type:Q},!0):o.hide(_))});let V=null;const J=()=>{V||!z.value||(V=new IntersectionObserver($=>{let W=!1;for(let Q of $)if(Q.intersectionRatio>0){W=!0,W&&r.emit("appear",Q);break}W||r.emit("disappear")}),V.observe(z.value))},te=()=>{!V||!z.value||(V.unobserve(z.value),V=null)};t.watch(()=>fe(a.appearListen),$=>{$?J():te()}),t.onMounted(()=>{fe(a.appearListen)&&J()}),t.onUnmounted(te);const U=()=>{if(!B())return null;const $=[],W=r.slots?.label?.()??a.label,Q={class:P.value},ne=t.h("div",Q,[W]);if($.push(ne),r.slots.fixedPreTip){const ce=r.slots.fixedPreTip();$.push(ce)}const se={class:M.value,style:S.value};return t.h("div",se,$)},T=()=>{const $=[];if(r.slots.prepend){const Q=r.slots.prepend();$.push(Q)}if(r.slots.default){const Q=r.slots.default();$.push(Q)}if(r.slots.append){const Q=r.slots.append();$.push(Q)}if(r.slots.fixedTip){const Q={class:[`${h}__fixed-tip`]},ne=t.h("div",Q,[r.slots.fixedTip()]);$.push(ne)}const W={ref:z,class:C.value,style:H.value};return t.h("div",W,$)},A=()=>{const $=ee.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--icon"},[$()]):t.h("div",{class:"fox-item__tip--icon"},[t.h($)]):null},w=()=>{const $=j.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--text"},[$()]):t.h("div",{class:"fox-item__tip--text"},[$]):null},K=()=>{if(!Y())return null;const $=[],W=A();W&&$.push(W);const Q=w();Q&&$.push(Q);const ne={class:k.value,style:I.value};return t.h("div",ne,$)},Z=()=>r.slots?.hide?.()??null;return()=>{const $=[],W=[],Q=U();Q&&W.push(Q);const ne=T();ne&&W.push(ne);const se={class:N.value},ce=t.h("div",se,W);$.push(ce);const we=K();we&&$.push(we);const ge=Z();ge&&$.push(ge);const ye={class:p.value,style:b.value,prop:a.prop};return t.h("div",ye,$)}}}}const{componentName:Es,create:Vs,scope:Is}=ie("item"),Te=Vs(Ns(Es,Is,qe,!1));function Ps(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const a=ct(),r=In();Pn(!1);const i=t.computed(()=>r&&a?On(a,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),f=t.computed(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=Re(o.width));else{const d=r&&a?An(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const p=Mn(d,i.value,o.span,o.offset);Object.assign(h,p)}else if(i.value.type==="flow"){const p=Fn(d,i.value,o.span,o.offset,o.width);Object.assign(h,p)}else return o.width&&(h.width=Re(o.width)),h}return h});return()=>{const h={class:s.value,style:f.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:Os,create:As}=ie("slot-item"),ql=As(Ps(Os));function Fs(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,String],required:!1,default:!1}},setup(o,l){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=ct(),u=In();Pn(!1);const s=t.computed(()=>{const f={};if(u&&i){const h=On(i,!1),d=An(i,!1);if(h.value&&d)if(h.value.type==="grid"){const p=Mn(d,h.value,o.span,o.offset);Object.assign(f,p)}else if(h.value.type==="flow"){const p=Fn(d,h.value,o.span,o.offset,o.width);Object.assign(f,p)}else o.width&&(f.width=Re(o.width))}else o.width&&(f.width=Re(o.width));return f});return()=>{const f=[];if(l.slots.default){const d=l.slots.default();if(o.divide)for(let p=0;p<d.length;p++){if(p>0){const x=t.h("div",{class:{[`${a}__divide`]:!0}});f.push(x)}f.push(d[p])}else Reflect.apply([].push,f,d)}const h={class:r.value,style:s.value};return t.h("div",h,f)}}}}const{componentName:Ms,create:Rs}=ie("row-item"),zl=Rs(Fs(Ms)),et=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Bo={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 Bs(e,n,o){return{props:{...Ce,...Ie,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=e,m=t.computed(()=>({[b]:!0,[`${b}__disabled`]:i.value,[`${b}__readonly`]:s.value})),g=D=>{x.value=D,f("update:modelValue",D),f("input",D)},B=D=>{f("change",D)};let y=me(l,"hintText"),c=t.ref(!1);const N=D=>{let F=D.target.value;p.value=!0,he(y.value)||(c.value=!0),f("focus",F,D)},M=D=>{setTimeout(()=>{c.value&&(c.value=!1),p.value=!1},0);let F=D.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),f("blur",F,D)},E=()=>{f("clear","")},S=t.ref(!1);let P=null;const C=()=>{l.showTooltip&&S.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{S.value=!0},150))},H=()=>{P&&(clearTimeout(P),S.value=!1,P=null)},v=t.computed(()=>S.value||c.value),R=t.computed(()=>S.value?x.value:y.value),G=t.computed(()=>Qe(l.unit)>0),L=t.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{u.value=D}}),()=>{const q={...et(a.attrs),ref:L,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:x.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:E,onChange:B,onInput:g,onFocus:N,onBlur:M,onMouseover:C,onMouseleave:H},F={};a.slots.prepend&&(F.prepend=a.slots.prepend),a.slots.append&&(F.append=a.slots.append),a.slots.prefix&&(F.prefix=a.slots.prefix),a.slots.suffix?F.suffix=a.slots.suffix:G.value&&(F.suffix=()=>[l.unit]);const X=[],Y=t.h(O.ElInput,q,F);X.push(Y);const j={default:()=>X};j.label=a.slots.default,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const k={...Ve(l,Bo),hintText:R.value,hintVisible:v.value};return l.prop&&(k.prop=`${l.prop}_item`),t.h(o,k,j)}}}}const{componentName:Ls,create:_s,scope:qs}=ie("input-item"),jl=_s(Bs(Ls,qs,Te));function rt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function zs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let js=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Hs(){const e=t.getCurrentInstance();return new js(e.proxy)}function Nr(e,n,o){const l=rt(e,n),a=rt(e,o);if(l!==a)return!1;const r=Lt(e,n),i=Lt(e,o);return r===i}function Er(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){const u=Dr(e,i);if(Array.isArray(u)&&u.length>0){const s=Er(e,r,o,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(o==="text")s=rt(e,i)===r;else if(o==="item")s=Nr(e,i,r);else{let f=Lt(e,i);f==null&&(f=rt(e,i)),s=f===r}if(s){a.push(i);break}}}}),a}function Ks(e){return{text:e,value:e}}const Lo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ws(e,n,o){return{props:{...Ce,...Ie,...Lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),x=t.ref([]),b=t.computed(()=>x.value?x.value.map(K=>rt(l,K)).join(" "):""),m=(w,K,Z,$=!0)=>{if(!Z||Z.length==0){p.value=w,$&&(f("update:modelValue",w),f("change",w));return}const W=Er(l,w,K,Z);if(W===null){if(x.value===null||x.value.length===0)return;p.value=null,x.value=[],$&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let Q=!0;if(W.length!==x.value.length)Q=!1;else for(let ne=0;ne<W.length;ne++){const se=W[ne],ce=x.value[ne];if(!Nr(l,se,ce)){Q=!1;break}}if(!Q){x.value=W;let ne=[],se=[],ce=[];W.forEach(Ge=>{const ot=Lt(l,Ge),yt=rt(l,Ge);ne.push(ot),ce.push(yt),l.valueType==="text"?se.push(yt):l.valueType==="item"?se.push(Ge):se.push(ot)});let we,ge,ye;fe(l.multiple)?(p.value=ne,we=t.toRaw(se),ge=ce,ye=t.toRaw(W)):(p.value=ne[0]??"",we=t.toRaw(se[0]??""),ge=ce[0]??"",ye=t.toRaw(W[0])),$&&(f("update:modelValue",we),f("change",we,ye)),f("update:text",ge)}},g=t.ref(null),B=t.ref(null),y=t.computed(()=>B.value??g.value??[]),c=Pe(t.computed(()=>l.appearLoad),"appearLoad",je.Near,w=>fe(w)),N=Hs(),M=async(w,K)=>{if(w){const Z=await N.load("select",w,K);if(Z.length>0)if(typeof Z[0]=="string"){let Q=Z.map(ne=>Ks(ne));g.value=Q}else g.value=Z;else g.value=null}};t.watch([()=>l.source,()=>l.params],([w,K])=>{B.value=null,M(w,K)},{immediate:!c.value});let E=!1;const S=()=>{E||(E=!0,M(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([w,K])=>{if(v()&&fe(l.multiple)){We(K,p.value)||(p.value=K);return}m(K,l.valueType,y.value,!1),f("setValue",K)}),l.source||(p.value=l.modelValue);let P=null,C=t.ref(!1);typeof l.remoteMethod=="function"&&(P=async w=>{if(w==null){B.value=null;return}C.value=!0;try{const K=await l.remoteMethod(w);K&&(B.value=K)}catch(K){B.value=null,console.error(K)}C.value=!1});let H=null;typeof l.filterMethod=="function"&&(H=async w=>{if(w==null){B.value=null;return}C.value=!0;try{const K=await l.filterMethod(w,g.value);K&&(B.value=K)}catch(K){B.value=null,console.error(K)}C.value=!1});const v=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",R=t.ref(!1),G=e,L=t.computed(()=>({[G]:!0})),D=w=>{l.allowCreate||v()&&fe(l.multiple)?(f("update:modelValue",w),f("change",w),f("update:text",w),p.value=w):m(w,"value",y.value,!0)};let q=me(l,"hintText"),F=t.ref(!1);const X=w=>{let Z=w.target.value;R.value=!0,he(q.value)||(F.value=!0),f("focus",Z,w)},Y=w=>{setTimeout(()=>{F.value&&(F.value=!1),R.value=!1},0);let Z=w.target.value;l.maxLength&&Z.length>Number(l.maxLength)&&(Z=Z.slice(0,Number(l.maxLength))),J.value||f("blur",Z,w)},j=()=>{f("clear","")},ee=t.ref(!1);let k=null;const I=()=>{l.showTooltip&&ee.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{ee.value=!0},150))},z=()=>{k&&(clearTimeout(k),ee.value=!1,k=null)},_=t.computed(()=>ee.value||F.value),V=t.computed(()=>ee.value?b.value:q.value),J=t.ref(!1),te=w=>{J.value=w,f("visible-change",w),w||f("selected")},U=w=>{f("remove-tag",w)},T=(w,K)=>{const Z=[];return w.forEach(($,W)=>{const Q=Dr(l,$);if(Array.isArray(Q)&&Q.length>0){const ne=T(Q,K),se=rt(l,$),we={key:`${se}_${W}`,label:se};Z.push(t.h(O.ElOptionGroup,we,{default:()=>ne}))}else{const ne=Lt(l,$),se=rt(l,$),ce=zs(l,$),ge={key:`${ne}_${W}`,label:se,disabled:ce,value:ne};if(typeof K=="function")Z.push(t.h(O.ElOption,ge,{default:()=>K($)}));else if(l.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ge=t.h("span",ye,[ne]),ot={class:{"fox-select-item__option-right":!0}},yt=t.h("span",ot,[se]),Gn=t.h("div",{class:{"fox-select-item__option":!0}},[Ge,yt]);Z.push(t.h(O.ElOption,ge,{default:()=>Gn}))}else l.optionType==="value"?Z.push(t.h(O.ElOption,ge,{default:()=>[ne]})):Z.push(t.h(O.ElOption,ge))}}),Z},A=t.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},setDisabled:w=>{r.value=w},setReadonly:w=>{u.value=w}}),()=>{const K={...et(a.attrs),ref:A,class:L.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:j,onChange:D,onFocus:X,onBlur:Y,onVisibleChange:te,onRemoveTag:U};typeof P=="function"&&(K["remote-method"]=P,K.loading=C.value),typeof H=="function"&&(K["filter-method"]=H,K.loading=C.value);const Z={};a.slots.prefix&&(Z.prefix=a.slots.prefix),a.slots.empty&&(Z.empty=a.slots.empty),a.slots.options?Z.default=a.slots.options:Z.default=()=>T(y.value,a.slots.option);const $=[],W=t.h(O.ElSelect,K,Z);$.push(W);const Q={default:()=>$};Q.label=a.slots.default,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const se={...Ve(l,Lo),hintText:V.value,hintVisible:_.value,onMouseover:I,onMouseleave:z};return l.prop&&(se.prop=`${l.prop}_item`),c.value&&(se["appear-listen"]=!0,se.onAppear=S),t.h(o,se,Q)}}}}const{componentName:Ys,create:Us,scope:Gs}=ie("select-item"),Hl=Us(Ws(Ys,Gs,Te));function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt={exports:{}},Xs=Qt.exports,_o;function Zs(){return _o||(_o=1,function(e,n){(function(o,l){e.exports=l()})(Xs,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",f="day",h="week",d="month",p="quarter",x="year",b="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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("_"),ordinal:function(L){var D=["th","st","nd","rd"],q=L%100;return"["+L+(D[(q-20)%10]||D[q]||D[0])+"]"}},c=function(L,D,q){var F=String(L);return!F||F.length>=D?L:""+Array(D+1-F.length).join(q)+L},N={s:c,z:function(L){var D=-L.utcOffset(),q=Math.abs(D),F=Math.floor(q/60),X=q%60;return(D<=0?"+":"-")+c(F,2,"0")+":"+c(X,2,"0")},m:function L(D,q){if(D.date()<q.date())return-L(q,D);var F=12*(q.year()-D.year())+(q.month()-D.month()),X=D.clone().add(F,d),Y=q-X<0,j=D.clone().add(F+(Y?-1:1),d);return+(-(F+(q-X)/(Y?X-j:j-X))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:x,w:h,d:f,D:b,h:s,m:u,s:i,ms:r,Q:p}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},M="en",E={};E[M]=y;var S="$isDayjsObject",P=function(L){return L instanceof R||!(!L||!L[S])},C=function L(D,q,F){var X;if(!D)return M;if(typeof D=="string"){var Y=D.toLowerCase();E[Y]&&(X=Y),q&&(E[Y]=q,X=Y);var j=D.split("-");if(!X&&j.length>1)return L(j[0])}else{var ee=D.name;E[ee]=D,X=ee}return!F&&X&&(M=X),X||!F&&M},H=function(L,D){if(P(L))return L.clone();var q=typeof D=="object"?D:{};return q.date=L,q.args=arguments,new R(q)},v=N;v.l=C,v.i=P,v.w=function(L,D){return H(L,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var R=function(){function L(q){this.$L=C(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[S]=!0}var D=L.prototype;return D.parse=function(q){this.$d=function(F){var X=F.date,Y=F.utc;if(X===null)return new Date(NaN);if(v.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var j=X.match(g);if(j){var ee=j[2]-1||0,k=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],ee,j[3]||1,j[4]||0,j[5]||0,j[6]||0,k)):new Date(j[1],ee,j[3]||1,j[4]||0,j[5]||0,j[6]||0,k)}}return new Date(X)}(q),this.init()},D.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},D.$utils=function(){return v},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(q,F){var X=H(q);return this.startOf(F)<=X&&X<=this.endOf(F)},D.isAfter=function(q,F){return H(q)<this.startOf(F)},D.isBefore=function(q,F){return this.endOf(F)<H(q)},D.$g=function(q,F,X){return v.u(q)?this[F]:this.set(X,q)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(q,F){var X=this,Y=!!v.u(F)||F,j=v.p(q),ee=function(U,T){var A=v.w(X.$u?Date.UTC(X.$y,T,U):new Date(X.$y,T,U),X);return Y?A:A.endOf(f)},k=function(U,T){return v.w(X.toDate()[U].apply(X.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(T)),X)},I=this.$W,z=this.$M,_=this.$D,V="set"+(this.$u?"UTC":"");switch(j){case x:return Y?ee(1,0):ee(31,11);case d:return Y?ee(1,z):ee(0,z+1);case h:var J=this.$locale().weekStart||0,te=(I<J?I+7:I)-J;return ee(Y?_-te:_+(6-te),z);case f:case b:return k(V+"Hours",0);case s:return k(V+"Minutes",1);case u:return k(V+"Seconds",2);case i:return k(V+"Milliseconds",3);default:return this.clone()}},D.endOf=function(q){return this.startOf(q,!1)},D.$set=function(q,F){var X,Y=v.p(q),j="set"+(this.$u?"UTC":""),ee=(X={},X[f]=j+"Date",X[b]=j+"Date",X[d]=j+"Month",X[x]=j+"FullYear",X[s]=j+"Hours",X[u]=j+"Minutes",X[i]=j+"Seconds",X[r]=j+"Milliseconds",X)[Y],k=Y===f?this.$D+(F-this.$W):F;if(Y===d||Y===x){var I=this.clone().set(b,1);I.$d[ee](k),I.init(),this.$d=I.set(b,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](k);return this.init(),this},D.set=function(q,F){return this.clone().$set(q,F)},D.get=function(q){return this[v.p(q)]()},D.add=function(q,F){var X,Y=this;q=Number(q);var j=v.p(F),ee=function(z){var _=H(Y);return v.w(_.date(_.date()+Math.round(z*q)),Y)};if(j===d)return this.set(d,this.$M+q);if(j===x)return this.set(x,this.$y+q);if(j===f)return ee(1);if(j===h)return ee(7);var k=(X={},X[u]=l,X[s]=a,X[i]=o,X)[j]||1,I=this.$d.getTime()+q*k;return v.w(I,this)},D.subtract=function(q,F){return this.add(-1*q,F)},D.format=function(q){var F=this,X=this.$locale();if(!this.isValid())return X.invalidDate||m;var Y=q||"YYYY-MM-DDTHH:mm:ssZ",j=v.z(this),ee=this.$H,k=this.$m,I=this.$M,z=X.weekdays,_=X.months,V=X.meridiem,J=function(T,A,w,K){return T&&(T[A]||T(F,Y))||w[A].slice(0,K)},te=function(T){return v.s(ee%12||12,T,"0")},U=V||function(T,A,w){var K=T<12?"AM":"PM";return w?K.toLowerCase():K};return Y.replace(B,function(T,A){return A||function(w){switch(w){case"YY":return String(F.$y).slice(-2);case"YYYY":return v.s(F.$y,4,"0");case"M":return I+1;case"MM":return v.s(I+1,2,"0");case"MMM":return J(X.monthsShort,I,_,3);case"MMMM":return J(_,I);case"D":return F.$D;case"DD":return v.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return J(X.weekdaysMin,F.$W,z,2);case"ddd":return J(X.weekdaysShort,F.$W,z,3);case"dddd":return z[F.$W];case"H":return String(ee);case"HH":return v.s(ee,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return U(ee,k,!0);case"A":return U(ee,k,!1);case"m":return String(k);case"mm":return v.s(k,2,"0");case"s":return String(F.$s);case"ss":return v.s(F.$s,2,"0");case"SSS":return v.s(F.$ms,3,"0");case"Z":return j}return null}(T)||j.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(q,F,X){var Y,j=this,ee=v.p(F),k=H(q),I=(k.utcOffset()-this.utcOffset())*l,z=this-k,_=function(){return v.m(j,k)};switch(ee){case x:Y=_()/12;break;case d:Y=_();break;case p:Y=_()/3;break;case h:Y=(z-I)/6048e5;break;case f:Y=(z-I)/864e5;break;case s:Y=z/a;break;case u:Y=z/l;break;case i:Y=z/o;break;default:Y=z}return X?Y:v.a(Y)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return E[this.$L]},D.locale=function(q,F){if(!q)return this.$L;var X=this.clone(),Y=C(q,F,!0);return Y&&(X.$L=Y),X},D.clone=function(){return v.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},L}(),G=R.prototype;return H.prototype=G,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",f],["$M",d],["$y",x],["$D",b]].forEach(function(L){G[L[1]]=function(D){return this.$g(D,L[0],L[1])}}),H.extend=function(L,D){return L.$i||(L(D,R,H),L.$i=!0),H},H.locale=C,H.isDayjs=P,H.unix=function(L){return H(1e3*L)},H.en=E[M],H.Ls=E,H.p={},H})}(Qt)),Qt.exports}var Js=Zs();const Je=lt(Js);var en={exports:{}},Qs=en.exports,qo;function eu(){return qo||(qo=1,function(e,n){(function(o,l){e.exports=l()})(Qs,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(m){return(m=+m)+(m>68?1900:2e3)},f=function(m){return function(g){this[m]=+g}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var B=g.match(/([+-]|\d\d)/g),y=60*B[1]+(+B[2]||0);return y===0?0:B[0]==="+"?-y:y}(m)}],d=function(m){var g=u[m];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(m,g){var B,y=u.meridiem;if(y){for(var c=1;c<=24;c+=1)if(m.indexOf(y(c,0,g))>-1){B=c>12;break}}else B=m===(g?"pm":"PM");return B},x={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],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:[a,f("day")],Do:[i,function(m){var g=u.ordinal,B=m.match(/\d+/);if(this.day=B[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],M:[r,f("month")],MM:[a,f("month")],MMM:[i,function(m){var g=d("months"),B=(d("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(B<1)throw new Error;this.month=B%12||B}],MMMM:[i,function(m){var g=d("months").indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(m){this.year=s(m)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function b(m){var g,B;g=m,B=u&&u.formats;for(var y=(m=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,H,v){var R=v&&v.toUpperCase();return H||B[v]||o[v]||B[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,L,D){return L||D.slice(1)})})).match(l),c=y.length,N=0;N<c;N+=1){var M=y[N],E=x[M],S=E&&E[0],P=E&&E[1];y[N]=P?{regex:S,parser:P}:M.replace(/^\[|\]$/g,"")}return function(C){for(var H={},v=0,R=0;v<c;v+=1){var G=y[v];if(typeof G=="string")R+=G.length;else{var L=G.regex,D=G.parser,q=C.slice(R),F=L.exec(q)[0];D.call(H,F),C=C.replace(F,"")}}return function(X){var Y=X.afternoon;if(Y!==void 0){var j=X.hours;Y?j<12&&(X.hours+=12):j===12&&(X.hours=0),delete X.afternoon}}(H),H}}return function(m,g,B){B.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(s=m.parseTwoDigitYear);var y=g.prototype,c=y.parse;y.parse=function(N){var M=N.date,E=N.utc,S=N.args;this.$u=E;var P=S[1];if(typeof P=="string"){var C=S[2]===!0,H=S[3]===!0,v=C||H,R=S[2];H&&(R=S[2]),u=this.$locale(),!C&&R&&(u=B.Ls[R]),this.$d=function(q,F,X){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*q);var Y=b(F)(q),j=Y.year,ee=Y.month,k=Y.day,I=Y.hours,z=Y.minutes,_=Y.seconds,V=Y.milliseconds,J=Y.zone,te=new Date,U=k||(j||ee?1:te.getDate()),T=j||te.getFullYear(),A=0;j&&!ee||(A=ee>0?ee-1:te.getMonth());var w=I||0,K=z||0,Z=_||0,$=V||0;return J?new Date(Date.UTC(T,A,U,w,K,Z,$+60*J.offset*1e3)):X?new Date(Date.UTC(T,A,U,w,K,Z,$)):new Date(T,A,U,w,K,Z,$)}catch{return new Date("")}}(M,P,E),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),v&&M!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var G=P.length,L=1;L<=G;L+=1){S[1]=P[L-1];var D=B.apply(this,S);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}L===G&&(this.$d=new Date(""))}else c.call(this,N)}}})}(en)),en.exports}var tu=eu();const nu=lt(tu);var tn={exports:{}},lu=tn.exports,zo;function ou(){return zo||(zo=1,function(e,n){(function(o,l){e.exports=l()})(lu,function(){return function(o,l){var a=l.prototype,r=a.format;a.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var f=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(d){switch(d){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),d==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return d}});return r.bind(this)(h)}}})}(tn)),tn.exports}var au=ou();const ru=lt(au);var nn={exports:{}},iu=nn.exports,jo;function su(){return jo||(jo=1,function(e,n){(function(o,l){e.exports=l()})(iu,function(){return function(o,l,a){var r=l.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,p,x,b,m){var g=d.name?d:d.$locale(),B=i(g[p]),y=i(g[x]),c=B||y.map(function(M){return M.slice(0,b)});if(!m)return c;var N=g.weekStart;return c.map(function(M,E){return c[(E+(N||0))%7]})},s=function(){return a.Ls[a.locale()]},f=function(d,p){return d.formats[p]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,m,g){return m||g.slice(1)})}(d.formats[p.toUpperCase()])},h=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):u(d,"months")},monthsShort:function(p){return p?p.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var d=s();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return f(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(d){return u(s(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return u(s(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return u(s(),"weekdaysMin","weekdays",2,d)}}})}(nn)),nn.exports}var uu=su();const cu=lt(uu);var ln={exports:{}},fu=ln.exports,Ho;function du(){return Ho||(Ho=1,function(e,n){(function(o,l){e.exports=l()})(fu,function(){var o="week",l="year";return function(a,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(f),d=i(this).endOf(o);if(h.isBefore(d))return 1}var p=i(this).startOf(l).date(f).startOf(o).subtract(1,"millisecond"),x=this.diff(p,o,!0);return x<0?i(this).startOf("week").week():Math.ceil(x)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(ln)),ln.exports}var hu=du();const mu=lt(hu);var on={exports:{}},gu=on.exports,Ko;function pu(){return Ko||(Ko=1,function(e,n){(function(o,l){e.exports=l()})(gu,function(){return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})}(on)),on.exports}var vu=pu();const yu=lt(vu);var an={exports:{}},bu=an.exports,Wo;function wu(){return Wo||(Wo=1,function(e,n){(function(o,l){e.exports=l()})(bu,function(){return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})}(an)),an.exports}var xu=wu();const Su=lt(xu);var rn={exports:{}},Cu=rn.exports,Yo;function Tu(){return Yo||(Yo=1,function(e,n){(function(o,l){e.exports=l()})(Cu,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})}(rn)),rn.exports}var $u=Tu();const ku=lt($u);var sn={exports:{}},Du=sn.exports,Uo;function Nu(){return Uo||(Uo=1,function(e,n){(function(o,l){e.exports=l()})(Du,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})}(sn)),sn.exports}var Eu=Nu();const Vu=lt(Eu);Je.extend(cu);Je.extend(ru);Je.extend(nu);Je.extend(mu);Je.extend(yu);Je.extend(Su);Je.extend(ku);Je.extend(Vu);const ae={format(e,n){return Je(e).format(n)},parser(e,n){return Je(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const a=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},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 o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,l,a].join(n)},getDay(e,n,o){e=e||0;let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),i=a.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let u=a.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,f=r+(6-i)*864e5,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(f));return[h,d]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,f=r+(7-i)*u,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(f));return[h,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},Go={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Xo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Iu(e,n,o){return{props:{...Ce,...Ie,...Go,...Xo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=t.computed(()=>F.value&&Array.isArray(x.value)&&x.value.length==2?x.value[0]:x.value),m=t.computed(()=>F.value?"longTermKey":"normalKey"),g=A=>{if(F.value&&l.type==="daterange"){const w=[...x.value];w[0]=A,x.value=w}else x.value=A;f("update:modelValue",x.value),f("change",x.value)},B=t.computed(()=>F.value&&l.type==="daterange"?"date":l.type),y=e,c=t.computed(()=>({[`${y}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":i.value}));let N=me(l,"hintText"),M=t.ref(!1);const E=A=>{let K=A.target.value;p.value=!0,he(N.value)||(M.value=!0),f("focus",K,A)},S=A=>{setTimeout(()=>{M.value&&(M.value=!1),p.value=!1},0);let K=A.target.value;l.maxLength&&K.length>Number(l.maxLength)&&(K=K.slice(0,Number(l.maxLength))),f("blur",K,A)},P=()=>{f("clear","")},C=A=>{f("calendar-change",A)},H=(A,w,K)=>{f("panel-change",A,w,K)},v=A=>{f("visible-change",A)},R=Pe(t.computed(()=>l.longTermText),"longTermText",je.Near),G=Pe(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",je.Near),L=Pe(t.computed(()=>l.longTermValue),"longTermValue",je.Near),D=Pe(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",je.Near);let q=null;const F=t.ref(fe(l.longTerm)),X=A=>{if(F.value=A,f("update:longTerm",A),A){if(q=x.value,l.type==="daterange"){const w=[];Array.isArray(L.value)?(w[0]=x.value?x.value[0]??L.value[0]:null,w[1]=L.value[1]??L.value[0]):(w[0]=x.value?x.value[0]??L.value:null,w[1]=F.value),w[0]||(w[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w[1]||(w[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),x.value=w}else Array.isArray(L.value)?x.value=L.value[1]??L.value[0]:x.value=L.value,x.value||(x.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);f("update:modelValue",x.value)}else{if(l.type==="daterange"){const w=[];w[0]=Array.isArray(x.value)?x.value[0]:x.value,Array.isArray(q)?w[1]=q[1]:w[1]=q,w[0]||(w[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w[1]||(w[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),x.value=w}else x.value=q;f("update:modelValue",x.value),setTimeout(()=>{U()},100)}},Y=fe(l.isLongTerm);if(Y){const A=()=>{if(F.value===!0){if(q=x.value,l.type==="daterange"){const w=[x.value[0]];Array.isArray(L.value)?w[1]=L.value[1]??L.value[0]:w[1]=F.value,w[0]||(w[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w[1]||(w[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),x.value=w}else x.value=L.value;f("update:modelValue",x.value)}else We(L.value,x.value)&&(F.value=!0)};A(),t.watch([()=>l.longTerm],([w])=>{F.value!==w&&A()}),t.watch([()=>x.value],([w])=>{let K=!1;if(l.type==="daterange"&&Array.isArray(w))try{let Z=w[1];if(!Z)return;if(w[0]==null){f("update:modelValue",[]);return}typeof Z!="string"&&l.valueFormat&&(Z=ae.format(Z,l.valueFormat));let $=Array.isArray(L.value)?L.value[1]:L.value;(Z===$||Array.isArray(D.value)&&D.value.findIndex(Q=>Z==Q)!==-1)&&(K=!0)}catch(Z){console.error(Z)}F.value!==K&&(F.value=K)},{immediate:!0})}const j=t.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),ee=t.ref(),k=t.ref(),I=/^\d+$/,z=(A,w)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(A,w):I.test(A)&&A.length===l.flashFillThreshold,_=(A,w)=>{let K;if(typeof l.flashFillFormat=="function")K=l.flashFillFormat(A,w);else{const $=l.flashFillFormat??"YYYYMMDD";K=ae.parser(A,$)}const Z=l.valueFormat??"YYYY-MM-DD";return ae.format(K,Z)},V=A=>A?A.endsWith("range"):!1,J=A=>{if(!A.target)return;const w=A.target.value??"";if(z(w,l.type)){const K=_(w,l.type);if(V(l.type)){const Z=Array.isArray(x.value)?[...x.value]:[];Z[0]=K,g(Z)}else g(K)}},te=A=>{if(!A.target)return;const w=A.target.value??"";if(z(w,l.type)){const K=_(w,l.type);if(V(l.type)){const Z=Array.isArray(x.value)?[...x.value]:[];Z[1]=K,g(Z)}else g(K)}},U=()=>{if(l.flashFill&&ee.value&&ee.value.$el)if(V(l.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].addEventListener("input",J),A[1]&&A[1].addEventListener("input",te)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.addEventListener("input",J)}},T=()=>{if(l.flashFill&&ee.value&&ee.value.$el)if(V(l.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].removeEventListener("input",J),A[1]&&A[1].removeEventListener("input",te)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.removeEventListener("input",J)}};return t.onMounted(U),t.onBeforeUnmount(T),be({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:A=>{r.value=A},setReadonly:A=>{u.value=A}}),()=>{const w={...a.attrs,key:m.value,type:B.value,ref:k,class:c.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":g,onClear:P,onFocus:E,onBlur:S,onCalendarChange:C,onPanelChange:H,onVisibleChange:v},K={};a.slots["range-separator"]&&(K["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(K.default=a.slots.cell);const Z=[],$=t.h(O.ElDatePicker,w,K);Z.push($);const W={default:()=>Z};if(W.label=a.slots.default,W.fixedPreTip=a.slots.fixedPreTip,W.fixedTip=a.slots.fixedTip,Y){if(F.value){const ce=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),we=t.h("input",{class:["fox-date-item__long-text"],value:R.value,readonly:!0}),ge={class:j.value},ye=t.h("div",ge,{default:()=>[ce,we]});Z.push(ye)}if(!s.value&&!i.value){const ce={label:G.value||R.value,disabled:s.value||i.value,modelValue:F.value,"onUpdate:modelValue":X},we=t.h(O.ElCheckbox,ce),ge=t.h("div",{class:{[`${y}__append`]:!0}},[we]);W.append=()=>ge}}const ne={...Ve(l,Go,Xo),ref:ee,class:{[`${y}__wrapper`]:!0,"has-append":Y},hintText:N.value,hintVisible:M.value};return l.prop&&(ne.prop=`${l.prop}_item`),t.h(o,ne,W)}}}}const{componentName:Pu,create:Ou,scope:Au}=ie("date-item"),Kl=Ou(Iu(Pu,Au,Te)),Fu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Wl={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},popClass:{type:String},popStyle:{type:Object}},Yl={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:{}}},Vr=2e3;let Zo=Vr;const Mu=(e,n)=>({components:n,props:{...Yl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==Vr&&(Zo=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++Zo,o.destroyOnClose&&(a.showSlot=!0),l("open")},f=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=m=>{l("click-pop",m)},d=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},p=m=>{l("click-overlay",m),o.closeOnClickOverlay&&l("update:visible",!1)},x=m=>{l("opend",m)},b=m=>{l("closed",m)};return t.watch(()=>o.visible,m=>{o.visible?s():f()}),t.watch(()=>o.closeable,m=>{a.closed=m}),{...t.toRefs(a),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:d,onClickOverlay:p,onOpened:x,onClosed:b}}});let Ot=0;const Jo="fox-overflow-hidden",Qo=()=>ut?document.body:{classList:[]},Ru=e=>[()=>{if(e())try{!Ot&&Qo().classList.add(Jo),Ot++}catch{}},()=>{if(e()&&Ot)try{Ot--,!Ot&&Qo().classList.remove(Jo)}catch{}}],Bu={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:Lu,create:_u}=ie("overlay"),qu=_u({props:{...Bu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Ru(()=>e.lockScroll),a=t.computed(()=>({[Lu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function zu(e,n,o,l,a,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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Bn=Fe(qu,[["render",zu]]),ju=["aria-labelledby"],Hu=t.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ku=[Hu],Wu=t.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ku,14,ju))}}),Yu=["aria-labelledby"],Uu=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Gu=[Uu],Xu=t.defineComponent({__name:"Search2",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gu,14,Yu))}}),Zu=["aria-labelledby"],Ju=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qu=[Ju],ec=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qu,14,Zu))}}),tc=["aria-labelledby"],nc=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),lc=[nc],Ln=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},lc,14,tc))}}),oc=["aria-labelledby"],ac=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),rc=[ac],Ir=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},rc,14,oc))}}),ic=["aria-labelledby"],sc=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),uc=[sc],Pr=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uc,14,ic))}}),cc=["aria-labelledby"],fc=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),dc=[fc],hc=t.defineComponent({__name:"Checked",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},dc,14,cc))}}),mc=["aria-labelledby"],gc=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),pc=[gc],vc=t.defineComponent({__name:"CheckNormal",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},pc,14,mc))}}),yc=["aria-labelledby"],bc=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),wc=[bc],xc=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},wc,14,yc))}}),{componentName:Sc,create:Cc}=ie("popup"),Tc=Cc(Mu(Sc,{FoxOverLay:Bn,Close:Ir}));function $c(e,n,o,l,a,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const vt=Fe(Tc,[["render",$c]]),ea=39,ta=64,{create:kc,scope:Dc}=ie("calendar-pane"),Nc=kc({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:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=Se.useFoxI18n(Dc),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${ea}px`})),u=t.computed(()=>({height:`${ta}px`})),s=JSON.parse(a("weekdays")),f=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),d=t.ref(null),p=t.ref(null),x=t.ref(null),b=t.ref(0),m=t.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),g=t.computed(()=>o.btn),B=t.computed(()=>o["top-info"]),y=t.computed(()=>o["bottom-info"]),c=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}),N=U=>U.split("-"),M=U=>ae.isEqual(c.currDate[0],U),E=U=>ae.isEqual(c.currDate[1],U),S=U=>c.currDate?.length>0?c.currDate?.some(T=>ae.isEqual(T,U)):!1,P=(U,T)=>T.curData[0]+"-"+T.curData[1]+"-"+ae.getNumTwoBit(+U.day),C=(U,T)=>{const A=P(U,T),{type:w}=e;return U.type=="curr"?ae.isEqual(c.currDate,A)||(w=="range"||w=="week")&&(M(A)||E(A))||w=="multiple"&&S(A)?`${c.dayPrefix}--active`:c.propStartDate&&ae.compareDate(A,c.propStartDate)||c.propEndDate&&ae.compareDate(c.propEndDate,A)?`${c.dayPrefix}--disabled`:(w=="range"||w=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ae.compareDate(c.currDate[0],A)&&ae.compareDate(A,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},H=()=>{const{type:U}=e;if(U=="range"&&c.chooseData.length==2||U!="range"){let T=c.chooseData.slice(0);U=="week"&&(T={weekDate:[R(c.chooseData[0]),R(c.chooseData[1])]}),n("choose",T),e.poppable&&n("update")}},v=(U,T,A=!1)=>{if(C(U,T)!=`${c.dayPrefix}--disabled`){const{type:w}=e;let[K,Z]=T.curData,$=[...T.curData];if($[2]=ae.getNumTwoBit(Number(U.day)),$[3]=`${$[0]}-${$[1]}-${$[2]}`,$[4]=ae.getWhatDay(+$[0],+$[1],+$[2]),w=="multiple")if(c.currDate?.length>0){let W;c.currDate?.forEach((Q,ne)=>{Q==$[3]&&(W=ne)}),A?c.chooseData.push([...$]):W!==void 0?(c.currDate.splice(W,1),c.chooseData.splice(W,1)):(c.currDate.push($[3]),c.chooseData.push([...$]))}else c.currDate=[$[3]],c.chooseData=[[...$]];else if(w=="range"){let W=Object.values(c.currDate).length;W==2||W==0?c.currDate=[$[3]]:ae.compareDate(c.currDate[0],$[3])?Array.isArray(c.currDate)&&c.currDate.push($[3]):Array.isArray(c.currDate)&&c.currDate.unshift($[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...$]]:ae.compareDate(c.chooseData[0][3],$[3])?c.chooseData=[...c.chooseData,[...$]]:c.chooseData=[[...$],...c.chooseData]}else if(w=="week"){let W=ae.getWeekDate(K,Z,U.day,e.firstDayOfWeek);c.propStartDate&&ae.compareDate(W[0],c.propStartDate)&&W.splice(0,1,c.propStartDate),c.propEndDate&&ae.compareDate(c.propEndDate,W[1])&&W.splice(1,1,c.propEndDate),c.currDate=W,c.chooseData=[ae.formatResultDate(W[0]),ae.formatResultDate(W[1])]}else c.currDate=$[3],c.chooseData=[...$];if(!A){let W=c.chooseData;w=="week"&&(W={weekDate:[R(c.chooseData[0]),R(c.chooseData[1])]}),n("select",W),(e.isAutoBackFill||!e.poppable)&&H()}}},R=U=>{let[T,A,w]=U;return{date:U,monthWeekNum:ae.getMonthWeek(T,A,w,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(T,A,w,e.firstDayOfWeek)}},G=U=>{const T=c.monthsData[c.monthsData.length-1];let A=parseInt(T.curData[0]),w=parseInt(T.curData[1].toString().replace(/^0/,""));switch(U){case"prev":w==1&&(A-=1),w=w==1?12:--w;break;case"next":w==12&&(A+=1),w=w==12?1:++w;break}return[A+"",ae.getNumTwoBit(w),ae.getMonthDays(String(A),String(w))+""]},L=(U,T,A)=>{let{year:w,month:K}=A;return Array.from(Array(U),(Z,$)=>({day:String($+1),type:T,year:w,month:K}))},D=(U,T,A,w)=>{U=U-e.firstDayOfWeek;let{year:K,month:Z}=A;return U>=7&&(U-=7),Array.from(Array(w),(W,Q)=>({day:String(Q+1),type:T,year:K,month:Z})).slice(w-U)},q=(U,T)=>{const A=ae.getMonthPreDay(+U[0],+U[1]);let w=Number(U[1])-1,K=Number(U[0]);w<=0&&(w=12,K+=1);const Z=ae.getMonthDays(String(U[0]),String(U[1])),$=ae.getMonthDays(K+"",w+""),W={year:U[0],month:U[1]},Q={curData:U,title:a("monthTitle",{year:W.year,month:W.month}),monthData:[...D(A,"prev",{month:String(w),year:String(K)},$),...L(Z,"curr",W)],cssHeight:0,cssScrollHeight:0},ne=Q.monthData.length>35?6:5;Q.cssHeight=ea+ta*ne;let se=0;c.monthsData.length>0&&(se=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),Q.cssScrollHeight=se,(!c.endData||!ae.compareDate(`${c.endData[0]}-${c.endData[1]}-${ae.getMonthDays(c.endData[0],c.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&c.monthsData.push(Q)},F=()=>{let U=e.startDate?e.startDate:ae.getDay(0),T=e.endDate?e.endDate:ae.getDay(365);c.propStartDate=U,c.propEndDate=T,c.startData=N(U),c.endData=N(T),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const A={year:Number(c.startData[0]),month:Number(c.startData[1])},w={year:Number(c.endData[0]),month:Number(c.endData[1])};let K=w.month-A.month;w.year-A.year>0&&(K=K+12*(w.year-A.year)),K<=0&&(K=1),q(c.startData);let Z=1;do q(G("next"));while(Z++<K);if(c.monthsNum=K,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(U&&ae.compareDate(c.currDate[0],U)&&c.currDate.splice(0,1,U),T&&ae.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...N(c.currDate[0]),...N(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let $=[],W={};c.currDate.forEach(Q=>{U&&!ae.compareDate(Q,U)&&T&&!ae.compareDate(T,Q)&&(Object.hasOwnProperty.call(W,Q)||($.push(Q),W[Q]=Q))}),c.currDate=[...$],c.defaultData=[...N($[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[$,W,Q]=N(c.currDate[0]),ne=ae.getWeekDate($,W,Q,e.firstDayOfWeek);c.currDate=ne,U&&ae.compareDate(c.currDate[0],U)&&c.currDate.splice(0,1,U),T&&ae.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...N(c.currDate[0]),...N(c.currDate[1])]}}else c.currDate&&(U&&ae.compareDate(c.currDate,U)?c.currDate=U:T&&!ae.compareDate(c.currDate,T)&&(c.currDate=T),c.defaultData=[...N(c.currDate)])};be({scrollToDate:U=>{ae.compareDate(U,c.propStartDate)?U=c.propStartDate:ae.compareDate(U,c.propEndDate)||(U=c.propEndDate);let T=N(U);c.monthsData.forEach((A,w)=>{if(A.title==a("monthTitle",{year:T[0],month:T[1]})&&h.value){let K=c.monthsData[w].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let Z=0,$=setInterval(()=>{if(Z++,h.value){let W=K/10;h.value.scrollTop=h.value.scrollTop+W}Z>=10&&(clearInterval($),h.value&&(h.value.scrollTop=c.monthsData[w].cssScrollHeight))},40)}else h.value.scrollTop=c.monthsData[w].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,T=0;c.defaultData.length>0&&c.monthsData.forEach((K,Z)=>{K.title==a("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(U=Z),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(T=Z)}),ee(c.monthsNum,U),c.currentIndex=U,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),v({day:c.defaultData[5],type:"curr"},c.monthsData[T],!0)):e.type=="week"?v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(K=>{let Z=N(K),$=c.currentIndex;c.monthsData.forEach((W,Q)=>{W.title==a("monthTitle",{year:Z[0],month:Z[1]})&&($=Q)}),v({day:Z[2],type:"curr"},c.monthsData[$],!0)}):v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let A=c.monthsData[c.monthsData.length-1],w=A.cssHeight+A.cssScrollHeight;kl(()=>{h?.value&&d?.value&&x?.value&&(b.value=h.value.clientHeight,d.value.style.height=`${w}px`,h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(w/(c.monthsNum+1))}});const ee=(U,T)=>{U>=3?T>0&&T<U?c.defaultRange=[T-1,T+3]:T==0?c.defaultRange=[T,T+4]:T==U&&(c.defaultRange=[T-2,T+2]):c.defaultRange=[0,U+2];let A=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=A},k=(U,T)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&C(U,T)=="fox-calendar__day--active",I=(U,T)=>k(U,T)&&M(P(U,T)),z=(U,T)=>c.currDate.length>=2&&E(P(U,T))?k(U,T):!1,_=()=>{if(c.currDate.length>=2)return ae.isEqual(c.currDate[0],c.currDate[1])},V=U=>{const T=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return ae.isEqual(T,ae.date2Str(new Date))},J=U=>{if(c.monthsData.length<=1)return;const T=U.target.scrollTop;let A=Math.floor(T/c.avgHeight);if(A==0)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1);else if(A>0&&A<c.monthsNum-1)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1),T<c.monthsData[A].cssScrollHeight&&(A-=1);else{const w=Math.round(T+b.value);w<c.monthsData[A].cssScrollHeight+c.monthsData[A].cssHeight&&T>c.monthsData[A-1].cssScrollHeight&&(A-=1),A+1<=c.monthsNum&&w>=c.monthsData[A+1].cssScrollHeight+c.monthsData[A+1].cssHeight&&(A+=1),A>=1&&T<c.monthsData[A-1].cssScrollHeight&&(A-=1)}c.currentIndex!==A&&(c.currentIndex=A,ee(c.monthsNum,A)),c.yearMonthTitle=c.monthsData[A].title},te=()=>{c.chooseData.splice(0),c.monthsData.splice(0),F()};return F(),t.watch(()=>e.defaultValue,U=>{U&&e.poppable&&te()}),{dayTitleStyle:i,dayCellStyle:u,weeks:f,compConthsData:m,showTopBtn:g,topInfo:B,bottomInfo:y,rangeTip:_,mothsViewScroll:J,getClass:C,isStartTip:I,isEndTip:z,chooseDay:v,isCurrDay:V,confirm:H,months:h,...t.toRefs(c),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:p,viewArea:x}}}),Ec={class:"fox-calendar__header"},Vc={key:0,class:"fox-calendar__header-title"},Ic={key:1,class:"fox-calendar__header-slot"},Pc={key:2,class:"fox-calendar__header-subtitle"},Oc={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ac={class:"fox-calendar__panel",ref:"monthsPanel"},Fc={class:"fox-calendar__days"},Mc=["onClick"],Rc={class:"fox-calendar__day-value"},Bc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},_c={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,o,l,a,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",Ec,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Vc,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",Pc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Oc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[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,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.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(i.monthData,(s,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Rc,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Bc,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Lc,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",_c,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(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(s,i)?(t.openBlock(),t.createElementBlock("view",qc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Mc))),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]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Hc=Fe(Nc,[["render",jc]]),{create:Kc}=ie("calendar-picker"),Wc=Kc({components:{CalendarPane:Hc,Popup:vt},props:{...Wl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),i=t.computed(()=>o["bottom-info"]),u=t.ref(null),s=g=>{u.value?.scrollToDate(g)},f=()=>{u.value?.initPosition()},h=t.computed(()=>{const g=["fox-calendar__popup"];return e.popClass&&g.push(e.popClass),g});t.watch(()=>e.visible,g=>{g&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:f});const d=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{p()},update:d,close:p,select:g=>{n("select",g)},choose:g=>{p(),n("choose",g)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Yc(e,n,o,l,a,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{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(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.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","pop-class","style"])):(t.openBlock(),t.createBlock(i,{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(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.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 _n=Fe(Wc,[["render",Yc]]),ol=(e,n)=>{let o;return it(e)?o=e:typeof e=="string"&&Qe(e)>0?o=ae.parser(e,n):o=new Date,o},wt=(e,n,o)=>(it(n)||(n=new Date),ae.format(n,o)),xt=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,a=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,a,r]},na={...Wl,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,o){return{props:{...Ce,...Ie,...na},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]);let p=me(l,"hintText"),x=t.ref(!1);const b=t.ref(!1),m=t.computed(()=>l.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},y=(Y,j="one",ee="YYYY-MM-DD")=>{if(Fu(Y)){B();return}if(m.value&&Array.isArray(Y)&&Y.length==2){let k,I;typeof Y[0]=="string"?(k=ol(Y[0],ee),I=ol(Y[1],ee)):(k=Y[0],I=Y[1]);let z=xt(k),_=xt(I);(g.startDate===null||g.startDate.getTime()!==k.getTime()||g.endDate?.getTime()!==I.getTime())&&(g.startDate=k,g.startArray=z,g.endDate=I,g.endArray=_)}else{let k;typeof Y=="string"?k=ol(Y,ee):k=Y;let I=xt(k);(g.startDate===null||g.startDate.getTime()!==k.getTime())&&(g.startDate=k,g.startArray=I)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,Y=>{y(Y,l.type,l.valueFormat),f("setValue",Y)});const c=t.computed(()=>{if(g.startDate===null)return"";if(m.value){let Y=wt(l,g.startDate,l.format),j=wt(l,g.endDate,l.format);return`${Y} ${l.rangeSeparator} ${j}`}else{let Y=wt(l,g.startDate,l.format);return l.showWeek&&(Y=`${Y} ${g.startArray[4]}`),Y}}),N=t.computed(()=>{if(g.startDate===null)return null;if(m.value){let Y=ae.date2Str(g.startDate),j=ae.date2Str(g.endDate??new Date);return[Y,j]}else return ae.date2Str(g.startDate)}),M="fox-input-item",E=t.computed(()=>({[M]:!0,[`${M}__disabled`]:i.value})),S=Pe(t.computed(()=>l.textAlign),"textAlign"),P=t.computed(()=>({textAlign:S.value??"right"})),C=t.ref(!1),H=()=>{s.value||i.value||(C.value=!0)},v=()=>{C.value=!1},R=Y=>{C.value=Y},G=Y=>{if(Y){if(m.value&&Array.isArray(Y)){let j=Y[0],ee=pe(j[0]),k=pe(j[1]),I=pe(j[2]),z=new Date(ee,k-1,I),_=Y[1];ee=pe(_[0]),k=pe(_[1]),I=pe(_[2]);let V=new Date(ee,k-1,I);if(g.startDate=z,g.startArray=xt(z),g.endDate=V,g.endArray=xt(V),l.valueFormat){let J=wt(l,z,l.valueFormat),te=wt(l,V,l.valueFormat);f("update:modelValue",[J,te],{})}else f("update:modelValue",[z,V],{})}else{let j=Y,ee=pe(j[0]),k=pe(j[1]),I=pe(j[2]),z=new Date(ee,k-1,I);if(g.startDate=z,g.startArray=xt(z),l.valueFormat){let _=wt(l,z,l.valueFormat);f("update:modelValue",_,{})}else f("update:modelValue",z,{})}f("change",Y,{})}},L=Y=>{let ee=Y.target.value;b.value=!0,f("focus",ee,Y)},D=Y=>{setTimeout(()=>{b.value=!1},0);let ee=Y.target.value;l.maxLength&&ee.length>Number(l.maxLength)&&(ee=ee.slice(0,Number(l.maxLength))),f("blur",ee,Y)},q=t.computed(()=>Qe(l.unit)>0),F=Y=>{B(),f("update:modelValue",null,Y),f("change","",Y),f("clear","")},X=t.ref();return be({showPicker:H,hidePicker:v,focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},select:()=>{X?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const Y={class:E.value,style:P.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:c.value,onClick:H,onFocus:L,onBlur:D,onClear:F},j={};a.slots.prepend&&(j.prepend=a.slots.prepend),a.slots.append&&(j.append=a.slots.append),a.slots.prefix?j.prefix=a.slots.prefix:j.prefix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.Calendar)}),a.slots.suffix?j.suffix=a.slots.suffix:q.value&&(j.suffix=()=>[l.unit]);const ee=[],k=t.h(O.ElInput,Y,j);ee.push(k);const I={default:()=>ee};I.label=a.slots.default,I.fixedPreTip=a.slots.fixedPreTip,I.fixedTip=a.slots.fixedTip;const z=zt(l,Wl);z.visible=C.value,z["onUpdate:visible"]=R,z["default-value"]=N.value,z.onChoose=G;const _={};if(a.slots.btn){const T=a.slots.btn();_.btn=()=>T}a.slots.day&&(_.day=a.slots.day),a.slots.topInfo&&(_.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(_.bottomInfo=a.slots.bottomInfo);const V=t.h(_n,z,_);I.hide=()=>[V];const te={...Ve(l,na),hintText:p.value,hintVisible:x.value};return l.prop&&(te.prop=`${l.prop}_item`),t.h(o,te,I)}}}}const{componentName:Gc,create:Xc,scope:Zc}=ie("calendar-item"),Ul=Xc(Uc(Gc,Zc,Te)),la={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Jc(e,n,o){return{props:{...Ce,...Ie,...la},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=e,m=t.computed(()=>({[b]:!0})),g=P=>{x.value=P,f("update:modelValue",P),f("change",P)};let B=me(l,"hintText"),y=t.ref(!1);const c=P=>{let H=P.target.value;p.value=!0,he(B.value)||(y.value=!0),f("focus",H,P)},N=P=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let H=P.target.value;l.maxLength&&H.length>Number(l.maxLength)&&(H=H.slice(0,Number(l.maxLength))),f("blur",H,P)},M=()=>{f("clear","")},E=P=>{f("visible-change",P)},S=t.ref();return be({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},handleOpen:()=>{S?.value.handleOpen()},handleClose:()=>{S?.value.handleClose()},setDisabled:P=>{r.value=P},setReadonly:P=>{u.value=P}}),()=>{const C={...a.attrs,ref:S,class:m.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:x.value,"onUpdate:modelValue":g,onClear:M,onFocus:c,onBlur:N,onVisibleChange:E},H={},v=[],R=t.h(O.ElTimePicker,C,H);v.push(R);const G={default:()=>v};G.label=a.slots.default,G.fixedPreTip=a.slots.fixedPreTip,G.fixedTip=a.slots.fixedTip;const D={...Ve(l,la),hintText:B.value,hintVisible:y.value};return l.prop&&(D.prop=`${l.prop}_item`),t.h(o,D,G)}}}}const{componentName:Qc,create:ef,scope:tf}=ie("time-item"),Gl=ef(Jc(Qc,tf,Te)),oa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nf(e,n,o){return{props:{...Ce,...Ie,...oa},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=e,m=t.computed(()=>({[b]:!0})),g=S=>{x.value=S,f("update:modelValue",S),f("change",S)};let B=me(l,"hintText"),y=t.ref(!1);const c=S=>{let C=S.target.value;p.value=!0,he(B.value)||(y.value=!0),f("focus",C,S)},N=S=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let C=S.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),f("blur",C,S)},M=()=>{f("clear","")},E=t.ref();return be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:S=>{r.value=S},setReadonly:S=>{u.value=S}}),()=>{const P={...a.attrs,ref:E,class:m.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:x.value,"onUpdate:modelValue":g,onClear:M,onFocus:c,onBlur:N},C={},H=[],v=t.h(O.ElTimeSelect,P,C);H.push(v);const R={default:()=>H};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const L={...Ve(l,oa),hintText:B.value,hintVisible:y.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,R)}}}}const{componentName:lf,create:of,scope:af}=ie("time-select-item"),Xl=of(nf(lf,af,Te));function aa(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function ra(e,n,o=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Za(`${e}`,`${n}`);return aa(l)}else{let l=Nl(`${e}`,Ja(`${n}`),20);return aa(l)}}function rf(e,n=-1,o=!1,l=3,a=","){return wn(e,n,o,l,a)}function ia(e,n,o,l,a=!0){if(e==="")return"";if(e=Qa(e),n=pe(n),n==1)return e;if(l)e=ra(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(pe(o)+2,"0"):e=Nl(e,1,pe(o)));else{let r=-1*n;e=ra(e,r)}return e}function sa(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=fe(n.minInclude),a=gl(e,n.min);if(l&&a==-1||!l&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=fe(n.maxInclude),a=gl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ua={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 sf(e,n,o){return{props:{...Ce,...Ie,...ua},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref(!1),d=me(l,"modelValue",null,f),p=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([D,q,F])=>{if(he(D)){p.value="";return}const X=ia(D,q,F,!1);p.value!==X&&(p.value=X)},{immediate:!0});const x=t.computed(()=>{let D="";return h.value&&(D=p.value),D}),{t:b}=Se.useFoxI18n(n),m=t.computed(()=>{let D=l.placeholder??"";return!h.value&&!he(p.value)?D=rf(p.value,l.decimalLength,l.autoPadding,l.digits,l.separator):D=b(["placeholder",D]),D}),g=e,B=t.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__placeholder`]:p.value.length>0})),y=Pe(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>h.value?{textAlign:"left"}:{textAlign:y.value??"right"});const c=t.ref(""),N=t.computed(()=>{let D=c.value;return he(D)&&(D=l.errorTip??""),D}),M=t.ref(""),E=t.ref(!1),S=(D,q)=>{if(D=`${D}`,he(D)){p.value="",d.value="",q.forEach(F=>{f(F,"")}),fe(l.showTip)&&E.value&&(E.value=!1);return}if(D.length>=2){let F=D;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){t.triggerRef(p);return}}if(D!="-"){if(!rr(D)){t.triggerRef(p);return}if(l.integerLength!=-1&&ir(D)>Number(l.integerLength)){t.triggerRef(p);return}if(l.decimalLength&&l.decimalLength!=-1&&sr(D)>Number(l.decimalLength)){t.triggerRef(p);return}let F=sa(D,l);if(F.maxValid===!1){c.value=F.message,t.triggerRef(p);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(p);return}M.value=D,fe(l.showTip)&&(E.value=D.length>0),p.value=D,d.value=ia(D,l.rates,l.precision,!0),q.forEach(F=>{f(F,d.value)})},P=D=>{S(D,["update:modelValue","input"])},C=D=>{S(D,["update:modelValue","change"])},H=D=>{if(h.value=!0,fe(l.showTip)){let q=p.value;he(q)&&(q=l.hintText),he(q)||(M.value=q,E.value=!0)}c.value="",f("focus",d.value,D)},v=D=>{if(setTimeout(()=>{h.value=!1,fe(l.showTip)&&E.value===!0&&(E.value=!1)},0),!he(p.value)){let q=sa(p.value,l);if(q.minValid===!1||q.maxValid===!1){c.value=q.message;return}}f("update:modelValue",d.value,D),f("blur",d.value,D)},R=()=>{f("clear","")},G=t.computed(()=>Qe(l.unit)>0),L=t.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:D=>{r.value=D},setReadonly:D=>{u.value=D}}),()=>{const q={...et(a.attrs),ref:L,class:B.value,type:"digit",maxlength:l.maxLength,placeholder:m.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:x.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onInput:P,onChange:C,onFocus:H,onBlur:v},F={};a.slots.prepend&&(F.prepend=a.slots.prepend),a.slots.append&&(F.append=a.slots.append),a.slots.prefix&&(F.prefix=a.slots.prefix),a.slots.suffix?F.suffix=a.slots.suffix:G.value&&(F.suffix=()=>[l.unit]);const X=[],Y=t.h(O.ElInput,q,F);X.push(Y);const j={default:()=>X};j.label=a.slots.default,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const k={...Ve(l,ua),errorTip:N.value,hintText:M.value,hintVisible:E.value,hintType:"number"};return l.prop&&(k.prop=`${l.prop}_item`),t.h(o,k,j)}}}}const{componentName:uf,create:cf,scope:ff}=ie("money-item"),Zl=cf(sf(uf,ff,Te)),ca={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 df(e,n,o){return{props:{...Ce,...Ie,...ca},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=e,m=t.computed(()=>({[b]:!0,[`${b}__append`]:P.value})),g=t.computed(()=>({[`${b}__unit`]:!0})),B=H=>{x.value=H,f("update:modelValue",H),f("input",H)},y=H=>{f("change",H)};let c=me(l,"hintText"),N=t.ref(!1);const M=H=>{let R=H.target.value;p.value=!0,he(c.value)||(N.value=!0),f("focus",R,H)},E=H=>{setTimeout(()=>{N.value&&(N.value=!1),p.value=!1},0);let R=H.target.value;l.maxLength&&R.length>Number(l.maxLength)&&(R=R.slice(0,Number(l.maxLength))),f("blur",R,H)},S=()=>{f("clear","")},P=t.computed(()=>Qe(l.unit)>0),C=t.ref();return be({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},setDisabled:H=>{r.value=H},setReadonly:H=>{u.value=H}}),()=>{const v={...et(a.attrs),ref:C,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:x.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:S,onChange:y,onInput:B,onFocus:M,onBlur:E},R={},G=[],L=t.h(O.ElInputNumber,v,R);G.push(L);const D={default:()=>G};D.label=a.slots.default,D.fixedPreTip=a.slots.fixedPreTip,D.fixedTip=a.slots.fixedTip;const F={...Ve(l,ca),hintText:c.value,hintVisible:N.value};if(l.prop&&(F.prop=`${l.prop}_item`),a.slots.append)D.append=a.slots.append;else if(P.value){const Y={class:g.value},j=t.h("div",Y,[l.unit]);D.append=()=>j}return t.h(o,F,D)}}}}const{componentName:hf,create:mf,scope:gf}=ie("input-number-item"),Jl=mf(df(hf,gf,Te));function nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function pf(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let vf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,a);const r=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l,a))}};function yf(){const e=t.getCurrentInstance();return new vf(e.proxy)}function Tl(e,n,o){const l=nt(e,n),a=nt(e,o);if(l!==a)return!1;const r=mt(e,n),i=mt(e,o);return r===i}function Or(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Or(e,u,o,l);a.push(s)}else{let s=!1;for(let f of r){if(o==="text")s=nt(e,f)===u;else if(o==="item")s=Tl(e,f,u);else{let h=mt(e,f);h==null&&(h=nt(e,f)),s=h===u}if(s){a.push(f),r=pf(e,f);break}}if(!s)break}}return a}function bf(e){return{text:e,value:e}}const fa={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function wf(e,n,o){return{props:{...Ce,...Ie,...fa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),x=t.ref([]),b=t.computed(()=>x.value?x.value.map(A=>Array.isArray(A)?A.map(K=>nt(l,K)).join(" "):nt(l,A)).join(" "):""),m=(T,A,w,K=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(p.value===T)return;p.value=T;const Q=t.toRaw(T);if(K){const ne=U?.value.getCheckedNodes();if(ne)if(l.multiple){const se=[];ne.forEach(ce=>{const ge=(ce.pathNodes??[]).map(ye=>ye.data);se.push(ge)}),f("update:pathNodes",se)}else{const ce=(ne[0]?.pathNodes??[]).map(we=>we.data);f("update:pathNodes",ce)}f("update:modelValue",Q),f("change",Q)}return}const Z=Or(l,T,A,w);if(Z===null){if(x.value.length===0||x.value===null)return;x.value=[],p.value=null,K&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const $=Z[Z.length-1];if(R.value.checkStrictly!==!0&&$&&!Array.isArray($)&&Array.isArray($.children)&&$.children.length>0){const Q=[];Z.forEach(ne=>{const se=`${nt(l,ne)}`;Q.push(se)}),Q.length>0&&(H.value=Q.join(l.separator))}else H.value=null;let W=!0;if(Z.length!==x.value.length)W=!1;else for(let Q=0;Q<Z.length;Q++){const ne=Z[Q],se=x.value[Q];if(Array.isArray(ne)){if(!Array.isArray(se)||ne.length!==se.length)W=!1;else for(let ce=0;ce<ne.length;ce++)if(!Tl(l,ne[ce],se[ce])){W=!1;break}}else Tl(l,ne,se)||(W=!1);if(!W)break}if(!W){x.value=Z;let Q=[],ne=[];Z.forEach(ce=>{if(Array.isArray(ce)){let we=[],ge=[];for(let ye of ce)we.push(mt(l,ye)),l.valueType==="text"?ge.push(nt(l,ye)):l.valueType==="item"?ge.push(ye):ge.push(mt(l,ye));Q.push(we),ne.push(ge)}else Q.push(mt(l,ce)),l.valueType==="text"?ne.push(nt(l,ce)):l.valueType==="item"?ne.push(ce):ne.push(mt(l,ce))}),p.value=Q;const se=t.toRaw(ne);K&&(f("update:pathNodes",Z),f("update:modelValue",se),f("change",se))}},g=t.ref([]),B=Pe(t.computed(()=>l.appearLoad),"appearLoad",je.Near,T=>fe(T)),y=yf(),c=async(T,A)=>{if(T){const w=await y.load("cascader",T,A);if(w.length>0)if(typeof w[0]=="string"){let $=w.map(W=>bf(W));g.value=$}else g.value=w}};t.watch([()=>l.source,()=>l.params],async([T,A])=>{c(T,A)},{immediate:!(B.value||l.lazy)});let N=!1;const M=()=>{N||(N=!0,c(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([T,A])=>{m(A,l.valueType,T,!1),f("setValue",A)}),l.lazy&&m(l.modelValue,"value",[],!1);let E=null,S=t.ref(!1);typeof l.remoteMethod=="function"&&(E=async T=>{if(T!=null){S.value=!0;try{const A=await l.remoteMethod(T);g.value=A}catch(A){console.error(A)}S.value=!1}});const P=t.ref(!1),C=e,H=t.ref(null),v=t.computed(()=>({[C]:!0,"is-incomplete":H.value&&H.value.length>0})),R=t.computed(()=>{let T={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(T.multiple=!0),l.props&&Object.assign(T,l.props),l.lazy&&(T.lazy=!0,typeof l.lazyLoad=="function"?T.lazyLoad=l.lazyLoad:T.lazyLoad=async(A,w)=>{const K=await y.load("cascader",l.source,A,!0);if(A?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===A.level){const Z=A.pathLabels??[];let $=[];Z.forEach(W=>{W&&$.push(W)}),$.length>0&&(H.value=$.join(l.separator))}else H.value=null;w(K)}),T}),G=T=>{l.allowCreate?(f("update:modelValue",T),f("change",T),p.value=T):m(T,"value",g.value,!0)};let L=me(l,"hintText"),D=t.ref(!1);const q=T=>{let w=T.target.value;P.value=!0,he(L.value)||(D.value=!0),f("focus",w,T)},F=T=>{setTimeout(()=>{D.value&&(D.value=!1),P.value=!1},0);let w=T.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),_.value||f("blur",w,T)},X=()=>{f("clear","")},Y=t.ref(!1);let j=null;const ee=()=>{l.showTooltip&&Y.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{Y.value=!0},150))},k=()=>{j&&(clearTimeout(j),Y.value=!1,j=null)},I=t.computed(()=>Y.value||D.value),z=t.computed(()=>Y.value?b.value:L.value),_=t.ref(!1),V=T=>{_.value=T,f("visible-change",T),T||f("selected")},J=T=>{f("remove-tag",T)},te=T=>{f("expand-change",T)},U=t.ref();return be({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},getCheckedNodes:()=>U?.value.getCheckedNodes(),setDisabled:T=>{r.value=T},setReadonly:T=>{u.value=T}}),()=>{const A={...a.attrs,ref:U,class:v.value,props:R.value,clearable:l.clearable,placeholder:H.value||d.placeholder.value,disabled:i.value||s.value,options:g.value,modelValue:p.value,separator:l.separator,onClear:X,onChange:G,onFocus:q,onBlur:F,onVisibleChange:V,onRemoveTag:J,expandChange:te};typeof E=="function"&&(A["remote-method"]=E,A.loading=S.value);const w={};a.slots.option&&(w.default=a.slots.option),a.slots.empty&&(w.empty=a.slots.empty);const K=[],Z=t.h(O.ElCascader,A,w);K.push(Z);const $={default:()=>K};$.label=a.slots.default,$.fixedPreTip=a.slots.fixedPreTip,$.fixedTip=a.slots.fixedTip;const Q={...Ve(l,fa),hintText:z.value,hintVisible:I.value,onMouseover:ee,onMouseleave:k};return l.prop&&(Q.prop=`${l.prop}_item`),B.value&&!l.lazy&&(Q["appear-listen"]=!0,Q.onAppear=M),t.h(o,Q,$)}}}}const{componentName:xf,create:Sf,scope:Cf}=ie("cascader-item"),Ql=Sf(wf(xf,Cf,Te)),da={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Tf(e,n,o){return{props:{...Ce,...Ie,...da},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=me(l,"modelValue",null,f),b=e,m=t.computed(()=>({[b]:!0})),g=C=>{x.value=C,f("update:modelValue",C),f("input",C)},B=C=>{f("change",C)},y=C=>{f("select",C)};let c=me(l,"hintText"),N=t.ref(!1);const M=C=>{let v=C.target.value;p.value=!0,he(c.value)||(N.value=!0),f("focus",v,C)},E=C=>{setTimeout(()=>{N.value&&(N.value=!1),p.value=!1},0);let v=C.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),f("blur",v,C)},S=()=>{f("clear","")},P=t.ref();return be({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()},setDisabled:C=>{r.value=C},setReadonly:C=>{u.value=C}}),()=>{const H={...a.attrs,ref:P,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:x.value,onClear:S,onChange:B,onInput:g,onFocus:M,onBlur:E,onSelect:y},v={};a.slots.prepend&&(v.prepend=a.slots.prepend),a.slots.append&&(v.append=a.slots.append),a.slots.prefix&&(v.prefix=a.slots.prefix),a.slots.suffix&&(v.suffix=a.slots.suffix),a.slots.option&&(v.default=a.slots.option);const R=[],G=t.h(O.ElAutocomplete,H,v);R.push(G);const L={default:()=>R};L.label=a.slots.default,L.fixedPreTip=a.slots.fixedPreTip,L.fixedTip=a.slots.fixedTip;const q={...Ve(l,da),hintText:c.value,hintVisible:N.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(o,q,L)}}}}const{componentName:$f,create:kf,scope:Df}=ie("autocomplete-item"),eo=kf(Tf($f,Df,Te));function Nf(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let f=0;s&&f<r.length;f++){let h=r[f],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let f=n[s],h=r[s];const d=f.find(p=>p[l]===h);if(!d)break;i.push(d[o])}else{let s=n;for(let f=0;s&&f<r.length;f++){let h=r[f],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[o]),s=d[a]}}return i}let Ef=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Vf(){const e=t.getCurrentInstance();return new Ef(e.proxy)}const Ar={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 If(e,n){return{props:{...Ar},setup(o,{attrs:l,slots:a}){const r=Vf(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([f,h])=>{i.value=await r.load(o.sourceType,f,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Nf(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const f={...l};return a.default?a.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,f,{default:()=>u.value}):t.h(s,f,u.value)}}}}const{create:Pf}=ie("mapping"),_t=Pf(If());function Of(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Af(e,n){return{props:{...Ar},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const u=Of(i.row,i.column.property);return a.default?t.h(_t,{...o,modelValue:u},{default:a.default}):t.h(_t,{...o,modelValue:u})}};for(let i in a)i!=="default"&&(r[i]=a[i]);return t.h(O.ElTableColumn,{...l},r)}}}}const{create:Ff}=ie("table-mapping-column"),to=Ff(Af()),Mf=Symbol.for("TableStateKey");function ha(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Rf(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Mf,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:u=>{const s=ha(u.row,u.column.property),f=r?ha(r,u.column.property):null,h=s===f,d={class:{"el-radio__input":!0,"is-checked":h}},p=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":h}};return t.h("label",x,[p])}};return t.h(O.ElTableColumn,{...l},i)}}}}const{create:Bf}=ie("table-radio-column"),no=Bf(Rf()),Lf={},_f={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function qf(e,n){return t.openBlock(),t.createElementBlock("svg",_f,n[0]||(n[0]=[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)]))}const zf=Fe(Lf,[["render",qf]]),{create:jf}=ie("table-setting"),Hf={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:"不固定"}},Kf=jf({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:zf,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Hf},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(V=>V.label===""||V.type?!1:V.fixed===""||V.fixed===!0||V.fixed==="left")),i=t.computed(()=>a.value.filter(V=>V.label===""||V.type?!1:V.fixed==="right")),u=t.computed(()=>a.value.filter(V=>!(V.label===""||V.type||V.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),f=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),d=V=>V.length>1,p=(V,J)=>{Array.isArray(V)&&Array.isArray(J)&&V.forEach(T=>{J.some(A=>A.prop===T.prop?(T.label=A.label,!0):!1)});const te=[];a.value=V.map((T,A)=>(!(T.label===""||T.type)&&T.visible!==!1&&te.push(T.prop),{...T,sortIndex:A})),u.value.length+r.value.length+i.value.length===te.length?y.value=!0:te.length>0&&(c.value=!0),E.value=te},x=V=>V?V.type?V.type:V.label?V.prop:"":"",b=(V,J)=>{if(V.length!==J.length)return!1;const te=V.map(U=>x(U));for(let U of J){const T=x(U);if(te.indexOf(T)===-1)return!1}return!0},m=V=>{if(!V){const J=e.tableRef.getColumnSetting(),te=J.srcColumnPropertyList;l=te.map((U,T)=>({...U,sortIndex:T})),V=J.columnPropertyList,V&&V.length>0&&b(te,V)||(V=te)}p(V,l)},g=()=>{e.tableRef.setColumnSetting(a.value)},B=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),c=t.ref(!1),N=V=>{const J=[];a.value.forEach(U=>{V&&!(U.label===""||U.type)&&J.push(U.prop),U.visible=V}),y.value=!1,c.value=!1,u.value.length+r.value.length+i.value.length===J.length?y.value=!0:J.length>0&&(c.value=!0),E.value=J,g()},M=()=>{m(l),g()},E=t.ref([]),S=V=>{a.value.forEach(te=>{if(te.label===""||te.type)return;const U=V.indexOf(te.prop)!==-1;te.visible=U}),y.value=!1,c.value=!1;const J=u.value.length+r.value.length+i.value.length;V.length===J?y.value=!0:V.length>0&&(c.value=!0),g()},P=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const C={currentRow:null,index:null,roleType:null},H=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,H(V)):null:null,v=V=>{const J=V.currentTarget;J&&J.dataset&&(C.roleType=J.dataset.roleType,C.index=J.dataset.index)},R=V=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},G=V=>{const J=V.currentTarget;V.relatedTarget;const te=H(J);if(!te)return;const U=te.dataset&&te.dataset.roleType;C.roleType===U&&(V.preventDefault(),C.currentRow&&C.currentRow!==te&&C.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),C.currentRow=te)},L=V=>{V.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},D=V=>{const J=V.currentTarget,te=H(J);if(!te)return;const U=te.dataset&&te.dataset.roleType;if(C.roleType!==U)return;V.preventDefault();const T=Number(C.index),A=Number(te.dataset.index);if(T!==A){if(T<A){const w=a.value[T];a.value.splice(T,1),a.value.splice(A,0,w)}else{const w=a.value[T];a.value.splice(T,1),a.value.splice(A+1,0,w)}p(a.value,l),g()}},q=V=>{const J=a.value[V];J.fixed="left",g()},F=V=>{const J=a.value[V];J.fixed="right",g()},X=V=>{const J=a.value[V];J.fixed=void 0,g()},Y=new Map;let j=null;function ee(V){const J=document.createRange();return J.setStart(V,0),J.setEnd(V,V.childNodes.length),J.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:f,isShowRightFixedTitle:h,isDraggble:d,isCheckAll:y,isIndeterminate:c,handleCheckAllChange:N,handleReset:M,checkedValue:E,handleCheckChange:S,onShow:P,onDragStart:v,onDragEnd:R,onDragOver:G,onDragLeave:L,onDrop:D,toLeftFixed:q,toRightFixed:F,toUnFixed:X,checkboxLabelStyle:B,onMouseOverForOverflowText:(V,J,te)=>{const U=V.currentTarget;if(U){const T=Math.floor(U.offsetWidth);if(Math.floor(ee(U))>T){let w=Y.get(J);if(w){if(w===j)return;qe.hide(w)}w=qe.show(U,te,{type:"text",placement:"top",closeOnClick:!1}),w&&(Y.set(J,w),j=w)}}},onMouseLeaveForOverflowText:(V,J)=>{const te=Y.get(J);te&&(qe.hide(te),te===j&&(j=null))},onMouseOverForTip:(V,J)=>{const te=V.currentTarget;te&&(j&&qe.hide(j),j=qe.show(te,J,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:V=>{j&&(qe.hide(j),j=null)}}}}),Wf={class:"fox-table-setting"},Yf={class:"fox-table-setting__header"},Uf={class:"fox-table-setting__body"},Gf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Xf={key:0,class:"fox-table-setting__body-title"},Zf=["data-index","draggable"],Jf=["onMouseover","onMouseleave"],Qf={class:"tools-item"},ed={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},td={key:0,class:"fox-table-setting__body-title"},nd=["data-index","draggable"],ld=["onMouseover","onMouseleave"],od={class:"tools-item"},ad={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},rd={key:0,class:"fox-table-setting__body-title"},id=["data-index","draggable"],sd=["onMouseover","onMouseleave"],ud={class:"tools-item"};function cd(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),p=t.resolveComponent("fox-checkbox"),x=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,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",Wf,[t.createElementVNode("div",Yf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Uf,[t.createVNode(x,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Gf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Xf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,Jf)]),_:2},1032,["value"]),t.createElementVNode("div",Qf,[t.createVNode(h,{onClick:g=>e.toUnFixed(m.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toRightFixed(m.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,Zf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ed,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",td,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[15]||(n[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[16]||(n[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[17]||(n[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[18]||(n[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,ld)]),_:2},1032,["value"]),t.createElementVNode("div",od,[t.createVNode(h,{onClick:g=>e.toLeftFixed(m.sortIndex),onMouseover:n[10]||(n[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toRightFixed(m.sortIndex),onMouseover:n[12]||(n[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[13]||(n[13]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,nd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ad,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",rd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[24]||(n[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[25]||(n[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[26]||(n[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[27]||(n[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(p,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,sd)]),_:2},1032,["label"]),t.createElementVNode("div",ud,[t.createVNode(h,{onClick:g=>e.toUnFixed(m.sortIndex),onMouseover:n[19]||(n[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[20]||(n[20]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toLeftFixed(m.sortIndex),onMouseover:n[21]||(n[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,id))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const qn=Fe(Kf,[["render",cd]]);let fd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let f=(l-1)*a,h=f+a;h>o.length&&(h=o.length);const d=o.slice(f,h);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,u]);const s=Be(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(He(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r,i,u]))}};function dd(){const e=t.getCurrentInstance();return new fd(e.proxy)}let hd=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Be(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function md(){const e=t.getCurrentInstance();return new hd(e.proxy)}const gd=Symbol.for("TableStateKey"),ma={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},ga={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},al={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:"不固定"}},pd={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function vd(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function rl(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=vd(l,a);if(r!==i)return!1}return!0})}function yd(e,n,o){return{inheritAttrs:!1,props:{...Ce,...Ie,...ma,...ga,...al,...pd},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=Se.useFoxI18n(n),{emitEvent:i,broadcast:u}=De({componentName:e,validateHandler:{getValue(...le){return S.value}}},l.prop??a.attrs.name),s=e,f=t.computed(()=>({[s]:!0})),h=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${l.footerAlign}`]:!0})),p=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${l.paginationAlign}`]:!0})),x=t.shallowRef({}),b=t.computed(()=>({...x.value,...l.params??{},...l.baseParams??{}})),m=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),B=fe(l.infiniteLoad);B||(t.watch(()=>l.pageIndex,le=>{m.value=le}),t.watch(()=>l.pageSize,le=>{g.value=le}),t.watch([m,g],([le,oe],[re,ue])=>{oe!==ue&&(m.value=1,le=1),v(l.data,le,oe,b.value)}));const y=()=>Array.isArray(l.data)?!0:fe(l.autoLoad);y()&&t.watch([()=>l.data,b],async([le,oe],[re,ue])=>{y()&&(le!==re&&(C=!0),!(!Array.isArray(le)&&We(le,re)&&We(oe,ue))&&(B?(m.value=0,M.value=!0,S.value=[],G()):m.value===1?v(le,m.value,g.value,oe):m.value=1))},{deep:!0});const c=le=>{m.value=le,i("page-index-change",le)},N=le=>{g.value=le,i("page-size-change",le)},M=t.ref(!0),E=t.ref(0),S=t.ref(),P=dd();let C=!0;const H=Pe(t.computed(()=>l.lazyLoad),"lazyLoad",je.Near,le=>fe(le)),v=async(le,oe,re,ue,Le)=>{C=!1;try{if(Le===!0){if(!M.value)return!1;const xe=await P.load("table",le,oe,re,ue,C,r.value);return E.value=xe.totalSize,!xe.page||!Array.isArray(xe.page)||(Reflect.apply([].push,S.value,xe.page),setTimeout(()=>{i("loaded-data")},250),(S.value?.length??0)>=E.value)||xe.page.length<re?(M.value=!1,!1):!0}else{const xe=await P.load("table",le,oe,re,ue,C,r.value);return E.value=xe.totalSize,S.value=xe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(xe){console.error("[FoxUI] Load Table Data Fail",xe),E.value=0,S.value=[]}return!1};let R=!1;const G=async()=>{if(!R){if(R=!0,!M.value){R=!1;return}m.value+=1,await v(l.data,m.value,g.value,b.value,!0),R=!1}},L=(le={},oe=!1)=>new Promise(async re=>{x.value=t.toRaw(le??{}),oe||(m.value=l.pageIndex??1),B===!0?(m.value=0,S.value=[],M.value=!0,await G()):await v(l.data,m.value,g.value,b.value),re()}),D=()=>{E.value=0,S.value=[],B===!0&&(m.value=0,M.value=!0)};let q=!1;const F=()=>{q||(q=!0,L())},X=t.ref(null);if(B===!0){let le=null;const oe=()=>{X.value&&(le=new IntersectionObserver(ue=>{let Le=!1;for(let xe of ue)if(xe.intersectionRatio>0){Le=!0;break}Le&&G()}),le.observe(X.value))},re=()=>{!le||!X.value||(le.unobserve(X.value),le=null)};t.onMounted(oe),t.onBeforeUnmount(re)}y()&&!H.value&&L();const Y=t.ref(null);t.provide(gd,{currentRow:Y});const j=(le,oe)=>{Y.value=le,i("current-change",le,oe)},ee=(le,oe,re)=>{i("row-click",le,oe,re),fe(l.rowClickSelectable)===!0&&Ne?.value.toggleRowSelection(le)},k=[],I=(le,oe)=>{if(i("expand-change",le,oe),fe(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=k.length;k.splice(0,re)}else{k.forEach(ue=>{ue!==le&&Ne?.value.toggleRowExpansion(ue,!1)});const re=k.length;k.splice(0,re,le)}},z=a.attrs.id??l.prop??a.attrs.name,_=md(),V=t.ref([]);let J=[];const te=()=>({srcColumnPropertyList:J.map(oe=>({...oe})),columnPropertyList:V.value}),U=le=>{V.value=[...le],A()},T=async()=>{const le=await _.load(z);le&&(V.value=le)},A=()=>{_.save(z,V.value)},w=()=>{_.remove(z)};T();const K=le=>le?le.type?le.type:le.label?le.prop:"":"",Z=t.computed(()=>{if(typeof a.slots.default=="function"){const le=a.slots.default(),oe=new Map;if(J=[],le.forEach(re=>{const ue=re;if(!ue.props)return;const Le=K(ue.props);oe.set(Le,re);const xe={label:"",prop:""};Object.assign(xe,ue.props),J.push(xe)}),V.value.length===J.length){const re=[];for(let ue of V.value){const Le=K(ue),xe=oe.get(Le);if(!xe)return le;if(ue.visible===!1)continue;const tt=xe;tt.props.fixed=ue.fixed,re.push(tt)}return re}return le}return[]}),$=t.shallowRef(new Map),W=({row:le,column:oe,rowIndex:re,columnIndex:ue})=>{const Le=`${re}_${oe.property}`,xe=`${re}_${ue}`;let tt=$.value.get(Le);return tt||(tt=$.value.get(xe)),typeof tt=="string"?tt:""},Q=le=>le?oe=>{const re=[];let ue=W(oe);return ue&&re.push(ue),ue=typeof le=="function"?le(oe):le,ue&&re.push(ue),re.length===0?"":re.join(" ")}:W,ne=(le=!1)=>{$.value.forEach((oe,re)=>{se(re,oe,le)})},se=(le,oe,re=!1)=>{const ue=`${le}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:le},"setCellClassNames",[]):u.emitToChildren({name:ue},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:le,cachePolicy:"Persistant",uniqueId:ue},"setCellClassNames",oe):u.emitToChildren({name:ue,cachePolicy:"Persistant",uniqueId:ue},"setCustomClassName",oe)},ce=(le,oe,re)=>{const ue=`${le}_${oe}`;re?($.value.set(ue,re),se(ue,re)):($.value.delete(ue),se(ue,"",!0)),t.triggerRef($)},we=le=>{ne(!0),$.value.clear(),le.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?$.value.set(re,oe.children):typeof oe.cellClassName=="string"&&$.value.set(re,oe.cellClassName)}),ne(),t.triggerRef($)},ge=()=>{ne(),$.value.clear(),t.triggerRef($)},ye=t.shallowRef(new Map),Ge=({rowIndex:le})=>{const oe=`${le}`;return ye.value.get(oe)??""},ot=le=>le?oe=>{const re=[];let ue=Ge(oe);return ue&&re.push(ue),ue=typeof le=="function"?le(oe):le,ue&&re.push(ue),re.length===0?"":re.join(" ")}:Ge,yt=(le,oe)=>{const re=`${le}`;oe?ye.value.set(re,oe):ye.value.delete(re),t.triggerRef(ye)},Gn=()=>{ye.value.clear(),t.triggerRef(ye)},Ne=t.ref();return be({clearSelection:()=>Ne?.value.clearSelection(),getSelectionRows:()=>Ne?.value.getSelectionRows(),toggleRowSelection:(le,oe)=>{Ne?.value.toggleRowSelection(le,oe)},toggleRowSelectionByProp:(le,oe)=>{if(!S.value)return;const re=rl(S.value,le);re.length!==0&&re.forEach(ue=>{Ne?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{Ne?.value.toggleAllSelection()},toggleRowExpansion:(le,oe)=>{Ne?.value.toggleRowExpansion(le,oe)},toggleRowExpansionByProp:(le,oe)=>{if(!S.value)return;const re=rl(S.value,le);re.length!==0&&re.forEach(ue=>{Ne?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:le=>{Ne?.value.setCurrentRow(le)},setCurrentRowByProp:le=>{if(!S.value)return;const oe=rl(S.value,le);oe.length!==0&&Ne?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Y.value,clearSort:()=>{Ne?.value.clearSort()},clearFilter:le=>{Ne?.value.clearFilter(le)},doLayout:()=>{Ne?.value.doLayout()},sort:(le,oe)=>{Ne?.value.sort(le,oe)},scrollTo:(le,oe)=>{Ne?.value.scrollTo(le,oe)},setScrollTop:le=>{Ne?.value.setScrollTop(le)},setScrollLeft:le=>{Ne?.value.setScrollLeft(le)},loadData:L,clearData:D,getData(){return S.value},getTotalSize(){return E.value},getPageIndex(){return m.value},getPageSize(){return g.value},getColumnSetting:te,setColumnSetting:U,removeColumnSetting:w,setCellClassName:ce,setCellClassNames:we,clearCellClassName:ge,setRowClassName:yt,clearRowClassName:Gn}),()=>{const oe={...et(a.attrs),onCurrentChange:j,onRowClick:ee,onExpandChange:I,data:S.value,ref:Ne,class:f.value,"cell-class-name":Q(l.cellClassName),"row-class-name":ot(l.rowClassName)},re={};if(a.slots.default&&(re.default=()=>Z.value),a.slots.append&&(re.append=()=>a.slots.append),a.slots.empty&&(re.empty=()=>a.slots.empty),B===!0){const Ye=[];if(M.value){const Vt=t.h(Ee.Loading,{class:`${s}__infinite-icon`});Ye.push(Vt);const Zn=t.h("span",{class:`${s}__infinite-text`},[l.loadText]);Ye.push(Zn)}else{const Vt=t.h("span",{class:`${s}__infinite-text`},[l.loadMoreText]);Ye.push(Vt)}const ft={ref:X,class:`${s}__infinite`},Xn=t.h("div",ft,Ye);re.append=()=>Xn}const ue=t.h(O.ElTable,oe,re),Le=[];if(Le.push(ue),!B){let Ye=null;if(typeof a.slots.pagination=="function")Ye=a.slots.pagination();else if(l.showPagination){const ft={class:p.value,total:E.value,pageSize:g.value,"onUpdate:pageSize":N,pageSizes:l.pageSizes,currentPage:m.value,"onUpdate:currentPage":c,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};Ye=t.h(O.ElPagination,ft)}if(l.showSetting){const ft=[];Ye&&ft.push(Ye);const Xn=t.h(O.ElIcon,{class:h.value},{default:()=>t.h(Ee.Setting)}),Vt=zt(l,al),Zn=t.h(qn,{...Vt,tableRef:{getColumnSetting:te,setColumnSetting:U,removeColumnSetting:w}},{default:()=>Xn});ft.push(Zn);const Ur=t.h("div",{class:d.value},ft);Le.push(Ur)}else Ye&&Le.push(Ye)}const xe={default:()=>Le},bt={...Ve(l,ma,ga,al)};return l.prop&&(bt.prop=`${l.prop}_item`),bt.contentClass=`${s}__wrap`,bt.errorMarkClass="is-table-error",H.value&&y()&&(bt["appear-listen"]=!0,bt.onAppear=F),t.h(o,bt,xe)}}}}const{componentName:bd,create:wd,scope:xd}=ie("table-item"),lo=wd(yd(bd,xd,Te));function Nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Sd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Cd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Td(){const e=t.getCurrentInstance();return new Cd(e.proxy)}function Fr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=Nt(e,n),a=Nt(e,o);if(l!==a)return!1;const r=qt(e,n),i=qt(e,o);return r===i}function $d(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of l){let i=!1;if(o==="text")i=Nt(e,r)===n;else if(o==="item")i=Fr(e,r,n);else{let u=qt(e,r);u==null&&(u=Nt(e,r)),i=u===n}if(i){a=r;break}}return a}function kd(e){return{text:e,value:e}}function Dd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const pa={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Nd(e,n,o){return{inheritAttrs:!0,props:{...Ce,...Ie,...pa},emits:["change","update:modelValue","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref(null),d=t.ref(null),p=(C,H,v,R=!0)=>{const G=$d(l,C,H,v);if(G===null){if(d.value===null)return;d.value=null,h.value=null,R&&(f("update:modelValue",null),f("change",null));return}if(!Fr(l,G,d.value)){h.value=C;const D=t.toRaw(G);d.value=D;let q=null;l.valueType==="text"?q=Nt(l,D):l.valueType==="item"?q=D:q=qt(l,D),R&&(f("update:modelValue",q),f("change",q))}},x=t.ref([]),b=Pe(t.computed(()=>l.appearLoad),"appearLoad",je.Near,C=>fe(C)),m=Td(),g=async(C,H)=>{if(C){const v=await m.load("radio",C,H);if(v.length>0)if(typeof v[0]=="string"){let L=v.map(D=>kd(D));x.value=L}else x.value=v}};t.watch([()=>l.source,()=>l.params],async([C,H])=>{g(C,H)},{immediate:!b.value});let B=!1;const y=()=>{B||(B=!0,g(l.source,l.params))};t.watch([()=>x.value,()=>l.modelValue],([C,H])=>{p(H,l.valueType,C,!1),f("setValue",H)});const c=e,N=t.computed(()=>({[c]:!0,[`is-${l.direction}`]:!0})),M=C=>{p(C,"value",x.value,!0)};let E=me(l,"hintText"),S=me(l,"hintVisible");const P=(C,H)=>{const v=[];return C.forEach((R,G)=>{const L=qt(l,R),D=Nt(l,R);let q=Sd(l,R);i.value===!0&&(q=i.value),s.value===!0&&(q=s.value);const F=Dd(l,R,G)??{},X=`${L}_${G}`,Y={...F,key:X,value:L,size:l.size,border:fe(l.border)};q&&(Y.disabled=q),l.itemType==="button"?v.push(t.h(O.ElRadioButton,Y,{default:()=>[D]})):typeof H=="function"?v.push(t.h(O.ElRadio,Y,{default:()=>H(R)})):v.push(t.h(O.ElRadio,Y,{default:()=>[D]}))}),v};return be({setDisabled:C=>{r.value=C},setReadonly:C=>{u.value=C}}),()=>{const H={...et(a.attrs),class:N.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,onChange:M},v=[],R={};a.slots.options?R.default=a.slots.options:R.default=()=>P(x.value,a.slots.text);const G=t.h(O.ElRadioGroup,H,R);v.push(G);const L={default:()=>v};L.label=a.slots.default,L.fixedPreTip=a.slots.fixedPreTip,L.fixedTip=a.slots.fixedTip;const q={...Ve(l,pa),hintText:E.value,hintVisible:S.value};return l.prop&&(q.prop=`${l.prop}_item`),b.value&&(q["appear-listen"]=!0,q.onAppear=y),t.h(o,q,L)}}}}const{componentName:Ed,create:Vd,scope:Id}=ie("radio-item"),oo=Vd(Nd(Ed,Id,Te));function Et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Od=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ad(){const e=t.getCurrentInstance();return new Od(e.proxy)}function Mr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=Et(e,n),a=Et(e,o);if(l!==a)return!1;const r=kt(e,n),i=kt(e,o);return r===i}function Fd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){let u=!1;if(o==="text")u=Et(e,i)===r;else if(o==="item")u=Mr(e,i,r);else{let s=kt(e,i);s==null&&(s=Et(e,i)),u=s===r}if(u){a.push(i);break}}}),a}function Md(e){return{text:e,value:e}}function Rd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const va={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Bd(e,n,o){return{inheritAttrs:!0,props:{...Ce,...Ie,...va},emits:["change","update:modelValue","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref([]),d=t.ref([]),p=(C,H,v,R=!0)=>{const G=Fd(l,C,H,v);if(G===null){if(d.value===null||d.value.length===0)return;h.value=[],d.value=[],R&&(f("update:modelValue",[]),f("change",[]));return}let L=!0;if(G.length!==d.value.length)L=!1;else for(let D=0;D<G.length;D++){const q=G[D],F=d.value[D];if(!Mr(l,q,F)){L=!1;break}}if(!L){d.value=G;let D=[],q=[];G.forEach(X=>{D.push(kt(l,X)),l.valueType==="text"?q.push(Et(l,X)):l.valueType==="item"?q.push(X):q.push(kt(l,X))}),h.value=D;const F=t.toRaw(q);R&&(f("update:modelValue",F),f("change",F))}},x=t.ref([]),b=Pe(t.computed(()=>l.appearLoad),"appearLoad",je.Near,C=>fe(C)),m=Ad(),g=async(C,H)=>{if(C){const v=await m.load("checkbox",C,H);if(v.length>0)if(typeof v[0]=="string"){let L=v.map(D=>Md(D));x.value=L}else x.value=v}};t.watch([()=>l.source,()=>l.params],async([C,H])=>{g(C,H)},{immediate:!b.value});let B=!1;const y=()=>{B||(B=!0,g(l.source,l.params))};t.watch([()=>x.value,()=>l.modelValue],([C,H])=>{p(H,l.valueType,C,!1),f("setValue",H)});const c=e,N=t.computed(()=>({[c]:!0,[`is-${l.direction}`]:!0})),M=C=>{p(C,"value",x.value,!0)};let E=me(l,"hintText"),S=me(l,"hintVisible");const P=(C,H)=>{const v=[];return C.forEach((R,G)=>{const L=kt(l,R),D=Et(l,R);let q=Pd(l,R);i.value===!0&&(q=i.value),s.value===!0&&(q=s.value);const F=Rd(l,R,G)??{},X=`${L}_${G}`,Y={...F,key:X,class:l.itemClass,value:L,size:l.size,border:fe(l.border)};q&&(Y.disabled=q),l.itemType==="button"?v.push(t.h(O.ElCheckboxButton,Y,{default:()=>[D]})):typeof H=="function"?v.push(t.h(O.ElCheckbox,Y,{default:()=>H(R)})):v.push(t.h(O.ElCheckbox,Y,{default:()=>[D]}))}),v};return be({setDisabled:C=>{r.value=C},setReadonly:C=>{u.value=C}}),()=>{const H={...et(a.attrs),class:N.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,max:pe(l.max),min:pe(l.min),onChange:M},v=[],R={};a.slots.options?R.default=a.slots.options:R.default=()=>P(x.value,a.slots.text);const G=t.h(O.ElCheckboxGroup,H,R);v.push(G);const L={default:()=>v};L.label=a.slots.default,L.fixedPreTip=a.slots.fixedPreTip,L.fixedTip=a.slots.fixedTip;const q={...Ve(l,va),hintText:E.value,hintVisible:S.value};return l.prop&&(q.prop=`${l.prop}_item`),b.value&&(q["appear-listen"]=!0,q.onAppear=y),t.h(o,q,L)}}}}const{componentName:Ld,create:_d,scope:qd}=ie("checkbox-item"),ao=_d(Bd(Ld,qd,Te)),ya={modelValue:{type:[Number,String],required:!1}};function zd(e,n,o){return{props:{...Ce,...Ie,...ya},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=me(l,"modelValue",B=>pe(B),f),d=e,p=t.computed(()=>({[d]:!0})),x=B=>{f("update:modelValue",B),f("change",B)};let b=me(l,"hintText"),m=t.ref(!1);const g=t.ref();return be({setDisabled:B=>{r.value=B},setReadonly:B=>{u.value=B}}),()=>{const y={...et(a.attrs),ref:g,class:p.value,readonly:s.value||i.value,modelValue:h.value,onChange:x},c={},N=[],M=t.h(O.ElRate,y,c);N.push(M);const E={default:()=>N};E.label=a.slots.default,E.fixedPreTip=a.slots.fixedPreTip,E.fixedTip=a.slots.fixedTip;const P={...Ve(l,ya),hintText:b.value,hintVisible:m.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(o,P,E)}}}}const{componentName:jd,create:Hd,scope:Kd}=ie("rate-item"),ro=Hd(zd(jd,Kd,Te)),ba={modelValue:{type:[Boolean,String,Number],required:!1}};function Wd(e,n,o){return{props:{...Ce,...Ie,...ba},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=me(l,"modelValue",null,f),d=e,p=t.computed(()=>({[d]:!0})),x=B=>{f("update:modelValue",B),f("change",B)};let b=me(l,"hintText"),m=me(l,"hintVisible");const g=t.ref();return be({setDisabled:B=>{r.value=B},setReadonly:B=>{u.value=B}}),()=>{const y={...et(a.attrs),ref:g,class:p.value,readonly:s.value,disabled:i.value,modelValue:h.value,onChange:x},c={},N=[],M=t.h(O.ElSwitch,y,c);N.push(M);const E={default:()=>N};E.label=a.slots.default,E.fixedPreTip=a.slots.fixedPreTip,E.fixedTip=a.slots.fixedTip;const P={...Ve(l,ba),hintText:b.value,hintVisible:m.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(o,P,E)}}}}const{componentName:Yd,create:Ud,scope:Gd}=ie("switch-item"),io=Ud(Wd(Yd,Gd,Te)),wa={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Xd(e,n,o){return{props:{...Ce,...Ie,...wa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),f=t.ref(!1),{emitEvent:h}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),d=me(l,"modelValue",null,h),p=e,x=t.computed(()=>({[p]:!0})),b=S=>{h("update:modelValue",S),h("change",S)};let m=me(l,"hintText"),g=t.ref(!1);const B=S=>{let C=S.target.value;f.value=!0,he(m.value)||(g.value=!0),h("focus",C,S)},y=S=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let C=S.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),N.value||h("blur",C,S)},c=()=>{h("clear","")},N=t.ref(!1),M=S=>{N.value=S,h("visible-change",S),S||h("selected")},E=t.ref();return be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},setDisabled:S=>{r.value=S},setReadonly:S=>{u.value=S}}),()=>{const P={...et(a.attrs),ref:E,class:x.value,disabled:i.value||s.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:c,onFocus:B,onBlur:y,onVisibleChange:M},C={};a.slots.option&&(C.default=a.slots.option);const H=[],v=t.h(O.ElTreeSelect,P,C);H.push(v);const R={default:()=>H};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const L={...Ve(l,wa),hintText:m.value,hintVisible:g.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,R)}}}}const{componentName:Zd,create:Jd,scope:Qd}=ie("tree-select-item"),so=Jd(Xd(Zd,Qd,Te));class eh{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Be(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function th(){const e=t.getCurrentInstance();return new eh(e.proxy)}const nh={},lh={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function oh(e,n){return t.openBlock(),t.createElementBlock("svg",lh,n[0]||(n[0]=[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)]))}const ah=Fe(nh,[["render",oh]]),{create:rh}=ie("group-setting"),ih={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},sh=rh({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:ah,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...ih},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=th(),u=k=>k.length>1,s=()=>{const k=[],I=[...r.value];r.value=I.map((_,V)=>(_.visible!==!1&&k.push(_.prop),{..._,sortIndex:V})),r.value.length===k.length?m.value=!0:k.length>0&&(g.value=!0),c.value=k},f=k=>{let I=null;if(typeof k=="string")I=document.querySelectorAll(`.fox-group[prop="${k}"] > div > .fox-item[prop]`);else if(k&&typeof k=="object"){const _=k.$el??k;typeof _.querySelectorAll=="function"&&(I=_.querySelectorAll(".fox-item[prop]"))}if(!I)return[];const z=[];return I.forEach(_=>{const V=_.querySelector(".label--string");let J="";V&&(J=V.textContent??"");const te=_.getAttribute("prop")??"",T=window.getComputedStyle(_,null).getPropertyValue("display");z.push({label:J,prop:te,sortIndex:0,visible:T!=="none"})}),z},h=()=>{if(!a){const k=f(e.groupRef??e.groupProp);if(k.length===0)return!1;a=k}return!0},d=async(k=!1)=>{const I=await i.load(e.groupProp),z=_=>{if(!_||!a)return;const V=a.map(J=>({...J}));Array.isArray(I)&&I.forEach(J=>{V.some(te=>{if(te.prop===J.prop){const U=te.label;return Object.assign(te,J),te.label=U,!0}return!1})}),r.value=V.sort((J,te)=>J.sortIndex-te.sortIndex),s(),k&&x(!1)};a?z(!0):$n(h,e.initDelay,5,50,!1,z)},p=()=>{const k=a??[];r.value=k.map(I=>({...I})),s(),x()},x=(k=!0)=>{k&&i.save(e.groupProp,r.value);const I=r.value.map(z=>({...z}));n("change",I)},b=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),g=t.ref(!1),B=k=>{const I=[];r.value.forEach(_=>{k&&I.push(_.prop),_.visible=k}),m.value=!1,g.value=!1,r.value.length===I.length?m.value=!0:I.length>0&&(g.value=!0),c.value=I,x()},y=()=>{p()},c=t.ref([]),N=k=>{r.value.forEach(z=>{const _=k.indexOf(z.prop)!==-1;z.visible=_}),m.value=!1,g.value=!1;const I=r.value.length;k.length===I?m.value=!0:k.length>0&&(g.value=!0),x()},M=()=>{d()};t.onMounted(()=>{d(!0)});const E={currentRow:null,index:null},S=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,S(k)):null:null,P=k=>{const I=k.currentTarget;I&&I.dataset&&(E.index=I.dataset.index)},C=k=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null},H=k=>{const I=k.currentTarget;k.relatedTarget;const z=S(I);z&&(k.preventDefault(),E.currentRow&&E.currentRow!==z&&E.currentRow.classList.remove("is-dragover"),z.classList.add("is-dragover"),E.currentRow=z)},v=k=>{k.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=k=>{const I=k.currentTarget,z=S(I);if(!z)return;k.preventDefault();const _=Number(E.index),V=Number(z.dataset.index);if(_!==V){if(_<V){const J=r.value[_];r.value.splice(_,1),r.value.splice(V,0,J)}else{const J=r.value[_];r.value.splice(_,1),r.value.splice(V+1,0,J)}s(),x()}},G=k=>{const I=r.value[k];r.value.splice(k,1),r.value.splice(0,0,I),s(),x()},L=k=>{const I=r.value[k];r.value.splice(k,1),r.value.push(I),s(),x()};l({refresh:()=>{a=null,d(!1)}});const D=new Map;let q=null;function F(k){const I=document.createRange();return I.setStart(k,0),I.setEnd(k,k.childNodes.length),I.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:u,isCheckAll:m,isIndeterminate:g,handleCheckAllChange:B,handleReset:y,checkedValue:c,handleCheckChange:N,onShow:M,onDragStart:P,onDragEnd:C,onDragOver:H,onDragLeave:v,onDrop:R,checkboxLabelStyle:b,toTop:G,toBottom:L,onMouseOverForOverflowText:(k,I,z)=>{const _=k.currentTarget;if(_){const V=Math.floor(_.offsetWidth);if(Math.floor(F(_))>V){let te=D.get(I);if(te){if(te===q)return;qe.hide(te)}te=qe.show(_,z,{type:"text",placement:"top",closeOnClick:!1}),D.set(I,te),q=te}}},onMouseLeaveForOverflowText:(k,I)=>{const z=D.get(I);z&&(qe.hide(z),z===q&&(q=null))},onMouseOverForTip:(k,I)=>{const z=k.currentTarget;z&&(q&&qe.hide(q),q=qe.show(z,I,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:k=>{q&&(qe.hide(q),q=null)}}}}),uh={class:"fox-group-setting"},ch={class:"fox-group-setting__header"},fh={class:"fox-group-setting__body"},dh={class:"fox-group-setting__body-list","data-role":"container"},hh=["data-index","draggable"],mh=["onMouseover","onMouseleave"],gh={class:"tools-item"};function ph(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),d=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-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",uh,[t.createElementVNode("div",ch,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=x=>e.isCheckAll=x),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",fh,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=x=>e.checkedValue=x),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",dh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,x=>(t.openBlock(),t.createElementBlock("div",{key:x.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":x.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[6]||(n[6]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[7]||(n[7]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[8]||(n[8]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[9]||(n[9]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:x.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,x.prop,x.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,x.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(x.label),45,mh)]),_:2},1032,["label"]),t.createElementVNode("div",gh,[t.createVNode(h,{onClick:b=>e.toTop(x.sortIndex),onMouseover:n[1]||(n[1]=b=>e.onMouseOverForTip(b,e.toTopText)),onMouseleave:n[2]||(n[2]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:b=>e.toBottom(x.sortIndex),onMouseover:n[3]||(n[3]=b=>e.onMouseOverForTip(b,e.toBottomText)),onMouseleave:n[4]||(n[4]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,hh))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const uo=Fe(sh,[["render",ph]]),un={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function vh(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(cn(e,r)===o)return a}else if(l==="item"){if(We(o,r))return a}else if(Rr(e,r)===o)return a}return-1}function cn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xa(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Rr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function yh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bh(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let wh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let f=o;typeof u=="function"&&(f=f.filter(u));let h=(l-1)*a,d=h+a;d>f.length&&(d=f.length);const p=f.slice(h,d);return{totalSize:f.length,page:p}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const s=Be(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(He(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r]))}};function xh(){const e=t.getCurrentInstance();return new wh(e.proxy)}function Sh(e,n,o,l,a,r,i,u,s,f,h){return{props:{...un},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:p}){const{emitEvent:x}=Ol(),{toLocaleRefs:b}=Se.useFoxI18n(n),m=b(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),g=xh(),B=t.ref([]),y=t.ref(0),c=t.ref(""),N=t.shallowRef(null),M=t.computed(()=>{const T={};return d.params&&Object.assign(T,d.params),he(c.value)||(T[`${d.searchKey}`]=c.value),N.value&&Object.assign(T,N.value),T});let E=!0;const S=async(T,A,w)=>{try{if(C.value===!1)return;let K=null;he(c.value)||(K=$=>{const W=cn(d,$);if(typeof W=="string"&&W.includes(c.value))return!0;const Q=xa(d,$);return!!(typeof Q=="string"&&Q.includes(c.value))});const Z=await g.load("actionsheet",T,A,w,M.value,E,K??void 0);E=!1,Array.isArray(Z)?(B.value=Z,y.value=1,C.value=!1):!Array.isArray(Z.page)||Z.page.length===0?(console.warn("[FoxUI] can not load more data"),C.value=!1):(Reflect.apply([].push,B.value,Z.page),y.value=Math.ceil(B.value.length/d.pageSize),(Z.totalSize&&B.value.length>=Z.totalSize||w<Z.page.length)&&(C.value=!1)),P.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),C.value=!0,y.value=0,B.value=[]}setTimeout(()=>{x("loaded-data")},250)},P=t.ref(!1),C=t.ref(!0),H=async()=>{if(!d.source){P.value=!1;return}await S(d.source,y.value+1,d.pageSize)};t.watch(()=>c.value,(T,A)=>{he(T)&&!he(A)&&H()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([T,A,w])=>{d.source&&H()},{immediate:!0});const v=t.computed(()=>!d.multiple&&d.isAutoBackFill),R=t.ref([]);let G=null;const L=t.ref(d.visible);t.watch(()=>d.visible,T=>{L.value!==T&&(L.value=T),T?G=[...R.value]:G=null});const D=(T,A)=>{const w=[];return Array.isArray(T)||(T=[T]),T.forEach(K=>{let Z=vh(d,A,K,d.valueType);Z!==-1&&w.push(Z)}),We(w,R.value)?!1:(R.value=w,!0)};t.watch([()=>d.modelValue,()=>B.value],([T,A],[w,K])=>{if(D(T,A)){const $=q();F($)}},{deep:!0});const q=()=>{const T=[],A=[],w=[];for(let W of R.value){const Q=B.value[W];A.push(Q);const ne=cn(d,Q);if(w.push(ne),d.valueType==="item")T.push(Q);else if(d.valueType==="text")T.push(ne);else{const se=Rr(d,Q);T.push(se)}}let K=null,Z=null,$=null;return d.multiple?(K=T,Z=w,$=A):(K=T[0]??null,Z=w[0]??null,$=A[0]??null),{value:K,text:Z,item:$}},F=T=>{x("update:modelValue",T.value),x("update:text",T.text),x("change",T.value,T.item,T.text)},X=()=>{G&&(R.value=G)},Y=T=>{const A=R.value.indexOf(T);d.multiple?A===-1?R.value.push(T):R.value.splice(A,1):A===-1?R.value=[T]:R.value=[],(v.value||!d.poppable&&!d.showFooter)&&k()},j=T=>{L.value=T,x("update:visible",T)},ee=()=>{const T=()=>{X(),j(!1)},A=d.beforeMethod??d.beforeClose;if(typeof A=="function"){const w=A("close");hn(w)?w.then(K=>{K!==!1&&T()}).catch(()=>{T()}):w!==!1&&T()}else T()},k=()=>{const T=q(),A=()=>{F(T),j(!1)},w=d.beforeMethod??d.beforeClose;if(typeof w=="function"){const K=w("confirm",T.value,T.item,T.text);hn(K)?K.then(Z=>{Z!==!1&&A()}).catch(()=>{A()}):K!==!1&&A()}else A()},I=()=>{C.value=!0,y.value=0,B.value=[],d.source&&H()},z=()=>{let T=m.title.value??"";p.title&&(T=p.title());const A=t.h("view",{class:["fox-actionsheet__header-title"]},[T]),w=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:ee});return t.h("view",{class:["fox-actionsheet__header"]},[A,w])},_=()=>{let T=null;if(p.search)T=p.search();else{const A={onSearch:I,placeholder:m.seachPlaceholder.value,disabled:d.disabled,modelValue:c.value,"onUpdate:modelValue":w=>{c.value=w}};T=t.h(r,A,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[T])},V=(T,A,w,K,Z)=>{if(p.optionLabel)return p.optionLabel({text:T,checked:A,disabled:w,subText:K,item:Z});const $=[],W=t.h("view",{class:"fox-actionsheet__list-item-text"},[T]);if($.push(W),K){const Q=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);$.push(Q)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},$)},J=(T,A,w,K)=>{if(p.optionIcon)return p.optionIcon({checked:T,disabled:A,iconSize:w,item:K});if(T){if(p.checkedIcon)return p.checkedIcon({disabled:A,item:K});{const Z=d.checkedIcon??u;return t.h(Z,{width:w,height:w,class:["fox-actionsheet__list-item-icon"]})}}else{if(p.icon)return p.icon({disabled:A,item:K});{const Z=d.icon??i;return t.h(Z,{width:w,height:w,class:["fox-actionsheet__list-item-icon"]})}}},te=()=>{const T=[];for(let A=0;A<B.value.length;A++){const w=B.value[A],K=cn(d,w),Z=xa(d,w),$=["fox-actionsheet__list-item"],W={};let Q=yh(d,w),ne=d.iconSize?ve(d.iconSize):null;const se=bh(d,w,A);se&&(Q=Q||se.disabled,se.class&&$.push(se.class),se.style&&Object.assign(W,se.style)),Q=!!(d.disabled||Q);const ce=R.value.includes(A);Q&&$.push("is-disabled"),ce&&$.push("is-checked");const we={class:$,style:W,key:`${A}`,onClick:()=>{Q||Y(A)}};let ge=[];if(p.option)ge.push(p.option({item:w,checked:ce,disabled:Q}));else{const Ge=V(K,ce,Q,Z,w);ge.push(Ge);const ot=J(ce,Q,ne,w);ge.push(ot)}const ye=t.h("view",we,ge);T.push(ye)}return T},U=()=>{let T=[];if(p.buttons)T=p.buttons();else{const w=t.h(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:k,disabled:d.disabled},{default:()=>m.confirmText.value});T.push(w)}return t.h("view",{class:"fox-actionsheet__footer"},[T])};return be({search:async(T=null,A=!0)=>{N.value=T&&t.toRaw(T),t.triggerRef(N),A&&(C.value=!0,y.value=0,B.value=[]),t.nextTick(()=>{H()})},clear:()=>{C.value=!0,y.value=0,B.value=[]},confirm:()=>{k()},cancel:()=>{ee()}}),()=>{const T=[];if(d.showHeader){const ne=z();T.push(ne)}if(d.showSearchbar){const ne=_();T.push(ne)}let A=null;if(p.content)A=p.content();else{const ne=te(),se={hasMore:C.value,loadText:m.loadText.value,loadMoreText:m.loadMoreText.value,modelValue:P.value,"onUpdate:modelValue":ce=>{P.value=ce},onLoadMore:H};A=t.h(l,se,{default:()=>ne})}const w={};d.optionsHeight&&(w.height=d.optionsHeight);const K={"fox-actionsheet__list":!0};d.poppable||(K["fox-actionsheet__list--inner"]=!0);const Z=t.h("view",{class:K,style:w},[A]);if(T.push(Z),d.showFooter&&!v.value){const ne=U();T.push(ne)}const $=t.h("view",{class:"fox-actionsheet"},T);if(!d.poppable)return $;const W=["fox-actionsheet__popup"];d.popClass&&W.push(d.popClass);const Q={popClass:W.join(" "),visible:L.value,closeable:!1,"onUpdate:visible":j,position:d.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(o,Q,{default:()=>$})}}}}const Ch=/scroll|auto|overlay/i,Br=window;function Th(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function $h(e,n=Br){let o=e;for(;o&&o!==n&&Th(o);){const{overflowY:l}=window.getComputedStyle(o);if(Ch.test(l))return o;o=o.parentNode}return n}function Lr(e,n=Br){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=$h(e.value,n))}),o}const _r=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,kh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Dh(e,n,o){return{props:{...kh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=Se.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),f=Lr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),p=y=>y?y.offsetTop+p(y.offsetParent):0,x=()=>{let y=0,c=0,N="down";if(f.value==window){const M=_r();s.value&&(y=p(s.value)+s.value.offsetHeight-M-window.innerHeight),c=M}else{const{scrollHeight:M,clientHeight:E,scrollTop:S}=f.value;y=M-E-S,c=S}return h.beforeScrollTop>c?N="up":N="down",h.beforeScrollTop=c,a("scroll-change",c),y<=l.threshold&&N=="down"},b=()=>{kl(()=>{if(!x()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},m=()=>{f.value&&f.value.addEventListener("scroll",b,l.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",b,l.useCapture)};t.onMounted(()=>{m(),l.immediate&&b()}),t.onUnmounted(()=>{g()});const B=t.ref(!1);return t.onActivated(()=>{B.value&&(B.value=!1,m())}),t.onDeactivated(()=>{B.value=!0,g()}),t.watch(()=>l.modelValue,y=>{y||(h.isInfiniting=!1)}),()=>{const y={class:"fox-infinite__container"},c=t.h("view",y,[r?.default?.()]),N=[];if(h.isInfiniting){let P=r?.loading?.()??null;if(!P){let v=r?.loadingIcon?.()??null;if(!v){const L={class:["fox-infinite__bottom-box__img"]};v=t.h(o,L)}const R={class:"fox-infinite__bottom-box__text"},G=t.h("view",R,[u.loadText.value]);P=[v,G]}const C={class:"fox-infinite__bottom-box"},H=t.h("view",C,P);N.push(H)}else if(!l.hasMore){let P=r?.finished?.()??null;if(!P){const C={class:"fox-infinite__bottom-tips"};P=t.h("view",C,[u.loadMoreText.value]),N.push(P)}}const M={class:"fox-infinite__bottom"},E=t.h("view",M,N),S={class:d.value,ref:s};return t.h("view",S,[c,E])}}}}const{componentName:Nh,create:Eh,scope:Vh}=ie("infinite-loading"),zn=Eh(Dh(Nh,Vh,Ln)),Ih={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Ph=(e,n,o)=>({props:{...Ih},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=Ol(),{toLocaleRefs:i}=Se.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),f=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),d=C=>{let v=C.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),r("update:modelValue",v,C),r("change",v,C)},p=t.ref({}),x=C=>{let v=C.target.value;s.active=!0,p.value=l.focusStyle,r("focus",v,C)},b=C=>{setTimeout(()=>{s.active=!1},0);let v=C.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),p.value={},r("blur",v,C)},m=C=>{r("update:modelValue","",C),r("change","",C),r("clear","")},g=t.computed(()=>String(l.modelValue).length>0),B=t.computed(()=>{const C={};return g.value||(C.display="none"),C}),y=()=>{r("search",l.modelValue)},c=C=>{r("keyup-input",C),C.key.toLocaleUpperCase()==="ENTER"&&y()},N=C=>{r("click-input",C)},M=C=>{r("click-left-icon",l.modelValue,C)},E=t.computed(()=>({textAlign:l.inputAlign})),S=t.ref(null);t.onMounted(()=>{l.autofocus&&S.value.focus()});const P=()=>{const C=[];if(a.leftin){const L={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=t.h("view",L,[a.leftin()]);C.push(D)}const H={ref:S,class:[`${e}__input-inner`],style:E.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:N,onInput:d,onFocus:x,onBlur:b,onkeyup:c},v=t.h("input",H);C.push(v);const R=[];if(l.clearable){const L={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:B.value,onClick:m},D=a?.clear?.()??l.clearIcon??o,q=t.h("view",L,[t.h(D)]);R.push(q)}if(a.rightin){const L={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=t.h("view",L,[a.rightin()]);R.push(D)}if(R.length>0){const L={class:`${e}__input-inner-right`},D=t.h("view",L,R);C.push(D)}const G={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...p.value}};return t.h("view",G,C)};return()=>{const C=[];if(l.label){const R={class:`${e}__search-label`},G=t.h("span",R,[l.label]);C.push(G)}if(a.leftout){const R={class:[`${e}__search-icon`,`${e}__left-search-icon`]},G=t.h("view",R,[a.leftout()]);C.push(G)}const H=P();if(C.push(H),a.rightout){const R={class:[`${e}__search-icon`,`${e}__right-search-icon`]},G=t.h("view",R,[a.rightout()]);C.push(G)}const v={class:`${e}`,style:f.value};return t.h("view",v,C)}}}),{componentName:Oh,create:Ah,scope:Fh}=ie("searchbar"),jn=Ah(Ph(Oh,Fh,Ee.CircleClose)),{componentName:Mh,create:Rh,scope:Bh}=ie("actionsheet-pane"),Hn=Rh(Sh(Mh,Bh,vt,zn,O.ElButton,jn,vc,hc,Ir,Xu)),Sa={type:{type:String,default:"text"},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},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Lh(e,n,o,l,a){return{props:{...Ce,...Ie,...Sa,...un},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=t.ref(null),s=Ae(t.computed(()=>u.value??r.disabled)),f=t.ref(null),h=Oe(t.computed(()=>f.value??r.readonly)),{emitEvent:d}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:p}=Se.useFoxI18n(n),x=p(r,["placeholder"]),b=t.ref(!1),m=me(r,"modelValue",null,d),g=t.ref(""),B=t.computed(()=>Array.isArray(g.value)?g.value.join(r.separator):g.value),y="fox-input-item",c=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value})),N=Pe(t.computed(()=>r.textAlign),"textAlign"),M=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),E=t.ref(!1),S=()=>{E.value=!0},P=F=>{E.value=F},C=F=>{m.value=F,d("update:modelValue",F)},H=(F,X)=>{d("change",F,X)},v=F=>{let Y=F.target.value;b.value=!0,d("focus",Y,F)},R=F=>{setTimeout(()=>{b.value=!1},0);let Y=F.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,F)},G=F=>{g.value=F,d("update:text",F)},L=t.computed(()=>Qe(r.unit)>0),D=t.ref(),q=t.ref(null);return be({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},search:F=>{q.value&&q.value.search(F)},clear:()=>{q.value&&q.value.clear},confirm:F=>{q.value&&q.value.confirm()},cancel:()=>{q.value&&q.value.cancel()},setDisabled:F=>{u.value=F},setReadonly:F=>{f.value=F}}),()=>{const F={ref:D,class:c.value,style:M.value,type:"text",maxlength:r.maxLength,placeholder:x.placeholder.value,readonly:!0,value:B.value,onClick:S,onFocus:v,onBlur:R},X={};i.slots.prepend&&(X.prepend=i.slots.prepend),i.slots.append&&(X.append=i.slots.append),i.slots.prefix&&(X.prefix=i.slots.prefix),i.slots.suffix?X.suffix=i.slots.suffix:L.value?X.suffix=()=>[r.unit]:X.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.ArrowDown)});const Y=[],j=t.h(O.ElInput,F,X);Y.push(j);const ee={default:()=>Y};ee.label=i.slots.default,ee.prepend=i.slots.prepend,ee.append=i.slots.append,ee.fixedPreTip=i.slots.fixedPreTip,ee.fixedTip=i.slots.fixedTip;const k=zt(r,un);k.ref=q,k.class=r.actionsheetProps,k.disabled=s.value||h.value,k.visible=E.value,k["onUpdate:visible"]=P,k.modelValue=m.value,k["onUpdate:modelValue"]=C,k.text=g.value,k["onUpdate:text"]=G,k.onChange=H,k.poppable=!0;const I={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},z=t.h(l,k,I);ee.hide=()=>[z];const V={...Ve(r,Sa,un)};return r.prop&&(V.prop=`${r.prop}_item`),t.h(o,V,ee)}}}}const{componentName:_h,create:qh,scope:zh}=ie("actionsheet-item"),co=qh(Lh(_h,zh,Te,Hn)),qr={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:360}},fo={...Yl,...qr,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function jh(e){return e===window}const ho=e=>{const n=t.unref(e);if(jh(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ca=10;function zr(e,n){return e>n&&e>Ca?"horizontal":n>e&&n>Ca?"vertical":""}function Ht(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Kt(){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",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=zr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function jr(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),f=t.ref(0),h=t.ref(""),d=()=>h.value==="vertical",p=()=>h.value==="horizontal",x=()=>{i.value=0,u.value=0,s.value=0,f.value=0,h.value="",o.value=0};return{move:g=>{if(g.touches){const c=g.touches[0];i.value=c.clientX-e.value,u.value=c.clientY-n.value,a.value=c.clientX,r.value=c.clientY}else{const y=g;i.value=y.clientX-e.value,u.value=y.clientY-n.value,a.value=y.clientX,r.value=y.clientY}s.value=Math.abs(i.value),f.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=zr(s.value,f.value))},start:g=>{if(x(),g.touches){const c=g.touches[0];e.value=c.clientX,n.value=c.clientY}else{const y=g;e.value=y.clientX,n.value=y.clientY}o.value=Date.now()},reset:x,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:f,direction:h,isVertical:d,isHorizontal:p}}let Hr=36;function Hh(){return Hr}function Kh(e){Hr=e}function Xe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $l(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Wh(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ta(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Yh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Uh(){const e=t.getCurrentInstance();return new Yh(e.proxy)}function $a(e,n,o){const l=Xe(e,n),a=Xe(e,o);if(l!==a)return!1;const r=pt(e,n),i=pt(e,o);return r===i}function Gh(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let f=o[i].findIndex(h=>{if(r==="text")return Xe(e,h)===u;if(r==="value"){let d=pt(e,h);return d==null&&(d=Xe(e,h)),d===u}else if(r==="item")return $a(e,h,u)});if(f==-1)break;a.push(f)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let f=i.findIndex(d=>{if(r==="text")return Xe(e,d)===s;if(r==="value"){let p=pt(e,d);return p==null&&(p=Xe(e,d)),p===s}else if(r==="item")return $a(e,d,s)});if(f==-1)break;a.push(f);const h=$l(e,i[f]);if(!Array.isArray(h))break;i=h}}return a}function ka(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const f=u[s],h=Xe(e,f);if(a.texts.push(h),a.items.push(f),r==="text")a.values.push(h);else if(r==="value"){let d=pt(e,f);d==null&&(d=h),a.values.push(d)}else a.values.push(f)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const f=i[s],h=Xe(e,f),d=Object.assign({},f);if(d.children=null,a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let p=pt(e,f);p==null&&(p=h),a.values.push(p)}else a.values.push(d);if(!Array.isArray(f.children))break;i=f.children}}return a}function Da(e){return{text:e,value:e}}const Xh=15,Zh=300,Jh=200,{create:Qh}=ie("picker-column");function em(e){e.stopPropagation()}function tm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),em(e)}const nm=Qh({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},visible:{type:Boolean,default:!1},...qr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=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)),i=S=>S>=d.currIndex+8||S<=d.currIndex-8,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),s=S=>`transform: rotate3d(1, 0, 0, ${-d.rotation*S}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),h=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=S=>Xe(e,S),x=S=>pt(e,S),b=jr(),m=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},g=(S,P=!1,C=!1)=>{if(d.currIndex=S,P){const H=()=>{d.moving=!1,n("update:modelValue",S),n("change",S)};C?d.transitionEndTrigger=H:H()}},B=(S,P,C)=>{let H=S+d.startDistance;if(P==="end"){const v=-(e.source.length-1)*e.itemHeight;H<v&&(H=v),H>0&&(H=0);let R=Math.abs(Math.round(-H/e.itemHeight));const G=-R*e.itemHeight,L=`${(R+1)*d.rotation}deg`,D=C?C>0:!1;g(R,!0,D),y(G,P,C,L)}else{let v=(-H/e.itemHeight+1)*d.rotation;const R=(e.source.length+1)*d.rotation,G=0;if(v=Math.min(Math.max(v,G),R),e.threeDimensional&&(v<G||v>R))return;y(H,null,void 0,`${v}deg`)}},y=(S=0,P,C=Jh,H)=>{P==="end"?d.scrollTime=C:d.scrollTime=0,d.deg=H,d.scrollDistance=S},c=(S,P)=>(S=Math.abs(S/P)/.003*(S<0?-1:1),S),N=S=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(S),d.transitionEndTrigger=null)},M=S=>{e.readonly||(d.moving=!0,b.move(S),b.isVertical()&&(d.moving=!0,tm(S)),B(b.deltaY.value,"",0))},E=()=>{if(e.readonly)return;const S=b.deltaY.value,P=b.duration.value;if(P<Zh&&Math.abs(S)>Xh){const H=c(S,P);B(H,"end",e.swipeDuration)}else B(S,"end",0)};return t.watch(()=>e.modelValue,S=>{const P=d.currIndex-S;if(P!==0){d.currIndex=S,d.startDistance=d.scrollDistance;const C=P*e.itemHeight;B(C,"",0)}}),t.watch(()=>e.source,S=>{if(d.currIndex>=S.length){const H=(S.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,B(H,"end",0)}}),t.watch(()=>e.visible,S=>{S===!1&&m()}),t.onMounted(()=>{const S=-e.modelValue*e.itemHeight;B(S)}),{classes:o,styles:l,contentClasses:a,itemText:p,itemValue:x,...t.toRefs(d),roller:h,getItemText:Xe,onTouchStart:N,onTouchMove:M,onTouchEnd:E,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:f,stopMomentum:m}}}),lm={key:1,class:"fox-picker__item-tile"};function om(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[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,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",lm,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const am=Fe(nm,[["render",om]]),{create:rm,componentName:im,scope:sm}=ie("picker"),um=rm({components:{PickerColumn:am,Popup:vt},props:{...fo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=Se.useFoxI18n(sm),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(Hh());t.watch(()=>e.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(r.value){const R=ho(r.value);i.value=R.height,Kh(i.value)}},50)});const u=t.computed(()=>({[im]:!0})),s=Uh(),f=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([v,R])=>{if(v){let G=await s.load("select",v,R);if(G.length>0){let L=G[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let D=G,q=[];D.forEach(F=>{let X=F.map(Y=>Da(Y));q.push(X)}),h.value=q}else h.value=G;f.value="multipleColumn"}else if(typeof L=="string"){let D=G,q=[],F=D.map(X=>Da(X));q.push(F),h.value=q,f.value="singleColumn"}else{const D=$l(e,L);Array.isArray(D)?(f.value="cascade",h.value=[G]):(f.value="singleColumn",h.value=[G])}}else h.value=[]}},{immediate:!0});const d=t.ref([]),p=t.ref(e.modelValue),x=t.ref([]),b=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([v,R])=>{let G=Gh(e,v,R,f.value);if(!We(G,b.value)){b.value=G;let L=ka(e,G,R,f.value);L&&(d.value=L.texts,n("update:text",d.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,v=>{m.value=v});const g=v=>{let R=Ta(e,v);return He(R)?R.defaultIndex??0:0},B=v=>{if(e.readonly===!0)return!0;let R=Ta(e,v);return He(R)?R.readonly??!1:!1},y=(v,R)=>{let G=b.value;G[v]=R;for(let D=0;D<v;D++)G[D]==null&&(G[D]=g(D));if(f.value==="cascade")for(let D=v+1;D<N.value.length;D++){let q=g(D);D<G.length?G[D]=q:G.push(q)}else for(let D=G.length;D<N.value.length;D++){let q=g(D);G.push(q)}b.value=G;let L=ka(e,G,h.value,f.value);L&&(d.value=L.texts,p.value=L.values,x.value=L.items)},c=v=>v<b.value.length?b.value[v]:g(v),N=t.computed(()=>{if(h.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return h.value;let v=[],R=0,G=h.value[0],L=0;for(;;){let D=G.map(X=>{let Y=Object.assign({},X);return Wh(e,Y,null),Y});v.push(D),R>=b.value.length?L=0:L=b.value[R],(L<0||L>=G.length)&&(L=0);let q=G[L];const F=$l(e,q);if(!Array.isArray(F))break;G=F,R++}return v}),M=t.computed(()=>pe(+e.visibleItemCount-1)/2*i.value),E=(v=!1)=>{if(e.readonly===!0){v&&n("update:visible",!1);return}let R=h.value.length-1;for(;R>=0&&!(b.value[R]===null||b.value[R]===void 0);R--);if(R>=0&&y(R,0),f.value==="singleColumn"){let G=p.value.length>0?p.value[0]:"",L=x.value.length>0?x.value[0]:null;n("update:modelValue",G),n("update:text",d.value),n("change",G,L),v&&(n("confirm",G),n("update:visible",!1))}else n("update:modelValue",p.value),n("update:text",d.value),n("change",p.value,x.value),v&&(n("confirm",p.value),n("update:visible",!1))};return{...a,pickerLineRef:r,classes:u,columns:N,dataType:f,show:m,itemHeight:i,top:M,isReadonly:B,getIndex:c,change:(v,R)=>{if(y(v,R),e.isAutoBackFill){const G=!m.value;E(G)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{E(!0)},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)}}}}),cm={class:"fox-picker__bar"},fm={class:"fox-picker__title"},dm={class:"fox-picker__bar__action"},hm={class:"fox-picker__column"};function mm(e,n,o,l,a,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),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",cm,[t.createElementVNode("view",fm,t.toDisplayString(e.title),1),t.createElementVNode("view",dm,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},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]=(...s)=>e.clear&&e.clear(...s))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",hm,[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,(s,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:s,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":h=>e.change(f,h),"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,["visible","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 Wt=Fe(um,[["render",mm]]),Na={...fo,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function gm(e,n,o){return{props:{...Ce,...Ie,...Na},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,a){const r=t.ref(null),i=Ae(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Oe(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=Se.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),x=e,b=t.computed(()=>({[x]:!0})),m=Pe(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>({textAlign:m.value??"right"})),B=me(l,"modelValue",null,f),y=t.ref([]),c=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),N=t.ref(!1),M=()=>{N.value=!0},E=F=>{N.value=F},S=F=>{B.value=F,f("update:modelValue",F)},P=F=>{y.value=F,Array.isArray(F)&&F.length===0?f("update:text",F[0]):f("update:text",F)},C=(F,X)=>{f("change",F,X)};let H=me(l,"hintText"),v=t.ref(!1);const R=F=>{let Y=F.target.value;p.value=!0,he(H.value)||(v.value=!0),f("focus",Y,F)},G=F=>{setTimeout(()=>{v.value&&(v.value=!1),p.value=!1},0);let Y=F.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),N.value?setTimeout(()=>{f("blur",Y,F)},50):f("blur",Y,F)},L=()=>{f("clear","")},D=t.computed(()=>Qe(l.unit)>0),q=t.ref();return be({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:F=>{r.value=F},setReadonly:F=>{u.value=F}}),()=>{const F={class:b.value,style:g.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:fe(l.clearable),readonly:!0,value:c.value,onClick:M,onFocus:R,onBlur:G},X={};a.slots.prepend&&(X.prepend=a.slots.prepend),a.slots.append&&(X.append=a.slots.append),a.slots.prefix&&(X.prefix=a.slots.prefix),a.slots.suffix?X.suffix=a.slots.suffix:D.value?X.suffix=()=>[l.unit]:X.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.ArrowDown)});const Y=[],j=t.h(O.ElInput,F,X);Y.push(j);const ee={default:()=>Y};ee.label=a.slots.default,ee.fixedPreTip=a.slots.fixedPreTip,ee.fixedTip=a.slots.fixedTip;const k=zt(l,fo);k.disabled=!1,k.readonly=i.value||s.value,k.visible=N.value,k["onUpdate:visible"]=E,k.modelValue=B.value,k["onUpdate:modelValue"]=S,k.text=y.value,k["onUpdate:text"]=P,k.onClear=L,k.onChange=C;const I=t.h(Wt,k);ee.hide=()=>[I];const _={...Ve(l,Na),hintText:H.value,hintVisible:v.value};return l.prop&&(_.prop=`${l.prop}_item`),t.h(o,_,ee)}}}}const{componentName:pm,create:vm,scope:ym}=ie("picker-item"),mo=vm(gm(pm,ym,Te)),bm={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Ea=(e,n)=>n[e.textKey],At=(e,n)=>n[e.valueKey],wm=(e,n)=>n[e.visibleKey],Va=(e,n)=>n[e.disabledKey],xm=(e,n)=>{const o=n[e.doitKey];return fe(o)},Sm=(e,n)=>{const o=n[e.numKey];return o==null?null:pe(n[o])},Ia=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Cm(e,n,o,l=!1){return{props:{...bm},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const u=t.computed(()=>{const k={};return k[`${e}`]=!0,k}),s=t.computed(()=>{const k={};return k[`${e}__titles`]=!0,k[`${a.direction}`]=!0,a.align==="left"&&(k.left=!0),a.scroll===!0&&(k.scrollable=!0),a.shape&&(k[`${a.shape}`]=!0),k}),f=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const k=ve(a.gutter);return k<=0?0:k}),d=t.ref(a.modelValue);t.watch(()=>a.modelValue,k=>{d.value!==k&&(d.value=k,F(!1))});const p=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),x=t.computed(()=>{const k={};return m.value||(k.display="none"),k}),b=t.ref(),m=t.ref(!1),g=()=>{const k=!m.value;B(k)},B=k=>{const I=k;I?(m.value=I,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},y=t.ref(),c=t.ref([]),N=(k,I)=>{c.value[I]=k},M=k=>I=>{N(I,k)},E=(k,I)=>{const z=y.value,_=c.value;if(!z||!_||!_[k])return;const V=_[k];let J=0;a.direction==="vertical"?J=V.offsetTop-(z.offsetHeight-V.offsetHeight)/2:J=V.offsetLeft-(z.offsetWidth-V.offsetWidth)/2,S(z,J,I?0:.3,a.direction)},S=(k,I,z,_)=>{let V=0;const J=_==="horizontal"?k.scrollLeft:k.scrollTop,te=z===0?1:Math.round(z*1e3/16);function U(){_==="horizontal"?k.scrollLeft+=(I-J)/te:k.scrollTop+=(I-J)/te,++V<te&&El(U)}U()},P=(k,I)=>{const z=At(a,k),_={};return _[`${e}__titles-item`]=!0,_.disabled=Va(a,k),_.active=z===d.value,a.shape&&(_[`${a.shape}`]=!0),a.ellipsis&&(_.ellipsis=!0),I&&(I.class&&(_[`${I.class}`]=!0),I.disabled===!0&&(_.disabled=I.disabled)),_},C=(k,I)=>{const z={};if(h.value>0){const _=Math.abs(h.value/2);a.direction==="vertical"?(z["margin-top"]=`${_}px`,z["margin-bottom"]=`${_}px`):(z["margin-left"]=`${_}px`,z["margin-right"]=`${_}px`)}return I&&I.style&&Object.assign(z,I.style),z},H=(k,I)=>`${At(a,k)??I}`,v=(k,I)=>{const z=At(a,k),_={};_[`${e}__popup-item`]=!0,_.disabled=Va(a,k),_.active=z===d.value,a.shape&&(_[`${a.shape}`]=!0);const V=Ia(a,k,I);return V&&V.disabled===!0&&(_.disabled=V.disabled),_},R=t.computed(()=>(a.data??[]).filter(I=>wm(a,I)!==!1)),G=(k,I)=>{const z=At(a,k);if(d.value==z)return;const _=()=>{d.value=z,a.scroll&&E(I,!1),i("update:modelValue",z),i("change",k,I)};if(typeof a.beforeChange=="function"){const V=a.beforeChange(k,I);hn(V)?V.then(J=>{J!==!1&&_()}).catch(()=>{_()}):V!==!1&&_()}else _()},L=(k,I)=>function(){G(k,I)},D=(k,I)=>{G(k,I),B(!1)},q=(k,I)=>function(){D(k,I)},F=k=>{if(!Array.isArray(a.data)||!a.scroll)return;const I=a.data.findIndex(z=>At(a,z)===d.value);I!==-1&&E(I,k)};t.watch(()=>a.data,()=>{setTimeout(F,0)}),t.onMounted(()=>{F(!0)});const X=(k,I)=>{if(r.item)return r.item({item:k,index:I});const z=Ia(a,k,I),_=[];if(r.text){const U=r.text({item:k,index:I});_.push(U)}else{const U=[];if(z?.doit===!0||xm(a,k)){const K={class:[`${e}__titles-item-tip`,"doit"]},Z=t.h("view",K);U.push(Z)}const T=z?.num??Sm(a,k);if(T){let K="";const Z=pe(T);Z>=100?K="99+":K=`${Z}`;const $={class:[`${e}__titles-item-tip`,"num"]},W=t.h("view",$,[K]);U.push(W)}const A={class:`${e}__titles-item-text`};U.push(Ea(a,k));const w=t.h("view",A,U);_.push(w)}const V={class:`${e}__titles-item-line`},J=t.h("view",V);_.push(J);const te={ref:M(I),class:P(k,z),style:C(k,z),key:H(k,I),onClick:L(k,I)};return t.h("view",te,_)},Y=()=>{const k=r.default?r.default():[];if(k.length===0)for(let z=0;z<R.value.length;z++){const _=R.value[z],V=X(_,z);k.push(V)}const I={ref:y,class:s.value,style:f.value};return t.h("view",I,k)},j=()=>{let k=null;r.navigation?k=r.navigation():k=t.h(o);const I={class:`${e}__navigation`,onClick:g};return t.h("view",I,[k])},ee=()=>{const k=[];for(let z=0;z<R.value.length;z++){const _=R.value[z];let V=null;r.popupItem?V=r.popupItem({item:_,index:z}):V=Ea(a,_);const J={class:v(_,z),key:H(_,z),onClick:q(_,z)},te=t.h("view",J,[V]);k.push(te)}const I={class:p.value,style:x.value};return t.h("view",I,k)};return()=>{const k=[],I=Y();if(k.push(I),a.showQuickNavigation){const _=j();k.push(_);const V=ee();k.push(V)}const z={class:u.value};return t.h("view",z,k)}}}}const{create:Tm,componentName:$m,scope:km}=ie("tabs-bar"),Kn=Tm(Cm($m,km,ec,!1)),Kr=Symbol("TabsStatesKey"),Dm={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Nm=15,Em=300,Vm=200;function Im(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function Pa(e,n=0,o,l,a=Vm){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let Pm=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,o,l,a=1){this.onStart=n,this.onMove=o,this.onEnd=l,this.momentumReduceRatio=a,this.isTouch=Ht()}open(n){this.el=n;const o=Kt(),l=(a,r,i)=>{const u={delta:a,direction:r,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;o.start(a),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=a=>{if(!this.moving)return;o.move(a);let r=0;if(this.direction==="horizontal"){if(o.isVertical())return;r=o.state.deltaX}else{if(o.isHorizontal())return;r=o.state.deltaY}l(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let a=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}a=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}a=o.state.deltaY}const r=o.state.duration;r<Em&&Math.abs(a)>Nm?(a=Im(a,r,this.momentumReduceRatio),l(a,this.direction,"end")):l(a,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Om(e,n,o,l=1){return new Pm(e,n,o,l)}function Am(e,n,o=!1){return{props:{...Dm},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:E=>{const S={name:E};u.current.value===E&&(S.loaded=!0),i.value.push(S),t.triggerRef(i)},remove:E=>{const S=i.value.findIndex(P=>P.name===E);S!==-1&&i.value.splice(S,1)},isLoaded:E=>{if(!l.lazy)return!0;const S=i.value.findIndex(P=>P.name===E);return S!==-1?u.current.value?i.value[S].loaded??!1:S===0:!1}};t.provide(Kr,u);const s=E=>{const S=i.value.findIndex(P=>P.name===E);S!==-1&&(i.value[S].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([E,S])=>{u.current.value!==E&&(u.current.value=E??"",s(E??"")),u.direction.value!==S&&(u.direction.value=S)});const f=t.ref(null),h=t.ref(null),d=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let p=!0;const x=t.computed(()=>{const E={},S=i.value.length;if(S<=0)return E;const P=i.value.findIndex(C=>C.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(E.height=`${S*u.tabHeight.value}px`,P!==-1&&(E.transform=`translate(0, -${P*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(E.width=`${S*u.tabWidth.value}px`,P!==-1&&(E.transform=`translate(-${P*u.tabWidth.value}px, 0)`)),p&&(p=!1,E.transition="transform 0s ease"),E}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=E=>{const S=i.value.length,P=i.value.findIndex(C=>C.name===u.current.value);b.moved=0,E.direction==="vertical"?(b.min=-1*(u.tabHeight.value*(S-1)+u.tabHeight.value/4),b.max=u.tabHeight.value/4,b.start=-P*u.tabHeight.value,b.itemDistance=u.tabHeight.value):(b.min=-1*(u.tabWidth.value*(S-1)+u.tabWidth.value/4),b.max=u.tabWidth.value/4,b.start=-P*u.tabWidth.value,b.itemDistance=u.tabWidth.value)},g=E=>{const S=h.value;if(!S)return;let P=b.start+E.delta;if(P>b.max?P=b.max:P<b.min&&(P=b.min),E.type==="move")Pa(S,P,"move",E.direction,300);else if(E.type==="end"){let C=Math.floor(Math.abs(P)*1/b.itemDistance);const H=Math.abs(P)%b.itemDistance;b.start>P?H>=b.itemDistance*b.triggerAutoMoveRatio&&(C+=1):H>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(C+=1),P=-1*C*b.itemDistance,Pa(S,P,"end",E.direction,300),b.moved=P;const v=i.value[C].name;u.current.value=v??"",s(v??""),a("update:modelValue",v)}},B=()=>{},y=()=>{if(!f.value)return;const E=Vn(f.value);u.tabWidth.value=E.width,u.tabHeight.value=E.height},c=Ke(y,120);let N=null,M=null;return t.onMounted(()=>{f.value&&(window.ResizeObserver&&(M=new window.ResizeObserver(c),M.observe(f.value)),y(),l.draggle&&(N=Om(m,g,B),N.open(h.value)))}),t.onBeforeUnmount(()=>{M&&(M.disconnect(),M=null),N&&N.close()}),()=>{const E={class:`${e}__panes`,style:x.value,ref:h},S=t.h("view",E,[r?.default?.()]),P={class:d.value,ref:f};return t.h("view",P,[S])}}}}const{create:Fm,componentName:Mm,scope:Rm}=ie("tabs-container"),Wn=Fm(Am(Mm,Rm,!1)),Bm={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Lm(e,n,o){return{props:{...Bm},setup(l,{emit:a,slots:r}){const i=t.inject(Kr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),s=t.computed(()=>l.loaded!=null?fe(l.loaded):i.isLoaded(l.paneKey));return()=>{let f=[];if(s.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},p=l.emptyIcon??o,x=t.h(p,d),b={class:`${e}__empty-text`},m=l.emptyText??"Loading",g=t.h("view",b,[m]),B={class:`${e}__empty`},y=t.h("view",B,[x,g]);f.push(y)}const h={class:`${e}`,style:u.value};return t.h("view",h,f)}}}}const{create:_m,componentName:qm,scope:zm}=ie("tabs-pane"),Yn=_m(Lm(qm,zm,Ln)),jm={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Hm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Oa(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Aa(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Km(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function il(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Fa(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ma(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function sl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Wm{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function Ym(){const e=t.getCurrentInstance();return new Wm(e.proxy)}function Um(e,n,o,l){return{props:{...jm},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const u=e,s=Ym(),f=t.ref([]),h=t.computed(()=>f.value.filter(I=>Km(a,I)!==!1)),d=t.ref(-1),p=()=>{const I=a.modelValue,z=h.value.findIndex(_=>Oa(a,_)===I);d.value!==z&&(d.value=z,a.scroll&&ee(z))};t.watch([()=>a.modelValue,h],()=>{p()});const x=I=>d.value===I,b=I=>{if(I<0&&I>=h.value.length)return!1;const z=h.value[I],V=(sl(a,z,I)??{}).status??il(a,z);return x(I)||V},m=t.computed(()=>{const I={[u]:!0};return a.mode?I[`is-${a.mode}`]=!0:a.direction&&(I[`is-${a.direction}`]=!0),a.scroll&&(I["is-scroll"]=!0),I}),g=t.computed(()=>({})),B=(I,z,_,V,J)=>{const te={[`${u}__step`]:!0};return J&&(te[`${J}`]=!0),te[`${y.value}`]=!0,V&&(te["is-doit"]=!0),I===d.value?te["is-active"]=!0:z==="done"?te["is-done"]=!0:z==="error"?te["is-error"]=!0:z==="half"?te["is-half"]=!0:_?te["is-disabled"]=!0:te["is-normal"]=!0,te},y=t.computed(()=>{if(a.mode==="simple")return"start";let I=a.align;return I||(a.direction==="vertical"?I="start":I="center"),I}),c=(I,z={})=>{const _={...z};return y.value==="start"&&I===h.value.length-1?_.flex="0 0 auto":a.step?a.direction==="vertical"?_.height=a.step:_.width=a.step:_.flex="1 1 100%",_},N=(I,z)=>{let _={};if(z<h.value.length-1){const V=z+1;b(z)&&b(V)?a.direction==="vertical"?_.height="100%":_.width="100%":_.opacity="0"}return _},M=I=>h.value.length-1===I,E=(I,z)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&z>d.value||d.value===z)return;const _=d.value,V=z;d.value=z,a.scroll&&ee(z);const J=Oa(a,I);i("update:modelValue",J);const te={fromIndex:_,currentIndex:V,item:I,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",J,te)},S=t.ref(!0),P=async(I,z)=>{try{const _=await s.load("stesbar",I,z);Array.isArray(_)&&(f.value=_),S.value=!1}catch(_){console.error("[FoxUI] Load StepsBar Data Fail",_),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([I,z])=>{I&&P(I,z)},{immediate:!0});const C=(I,z,_,V,J)=>{let te=null;if(r.icon)te=r.icon({item:I,index:z,status:V});else if(V==="done"){const T={};a.iconSize&&(T.width=a.iconSize,T.height=a.iconSize);const A=a.icon??o;te=t.h(A,T)}else{const T=_??`${z+1}`;te=t.h("span",{},[T])}const U={class:"fox-steps-bar__icon",onClick:()=>{J||E(I,z)}};return t.h("view",U,[te])},H=(I,z,_)=>{const V=t.h("i",{class:"fox-steps-bar__line-inner",style:N(I,z)});return t.h("view",{class:"fox-steps-bar__line"},[V])},v=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const _={};a.iconSize&&(_.width=a.markIconSize,_.height=a.markIconSize);const V=a.markIcon??l;I=t.h(V,_)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},R=(I,z,_,V,J)=>{const te=[];if(!M(z)){const A=H(I,z);te.push(A)}const U=C(I,z,_,V,J);te.push(U);const T={class:"fox-steps-bar__head"};return t.h("view",T,te)},G=(I,z,_,V)=>{let J=null;r.main?J=r.main({item:I,index:z,status:_}):J=Hm(a,I);const te={class:"fox-steps-bar__main",onClick:()=>{V||E(I,z)}};return t.h("view",te,[J])},L=(I,z,_)=>{let V=null;if(r.sub){V=r.sub({item:I,index:z,status:_});const J={class:"fox-steps-bar__sub"};return t.h("view",J,[V])}return null},D=(I,z)=>{const _=sl(a,I,z)??{},V=_.status??il(a,I);let J=Aa(a,I);_.disabled===!0&&(J=!0),a.disabled===!0&&(J=!0);const te=_.label??Ma(a,I),U=[],T=C(I,z,te,V,J);T&&U.push(T);const A=G(I,z,V,J);if(A&&U.push(A),!M(z)){const Q=H(I,z);Q&&U.push(Q)}const w=t.h("view",{class:"fox-steps-bar__head"},U),K=_.class,Z=_.style??{};let $=Fa(a,I);_.doit===!0&&($=!0);const W={ref:j(z),class:B(z,V,J,$,K),style:c(z,Z)};return t.h("view",W,[w])},q=(I,z)=>{const _=sl(a,I,z)??{},V=_.status??il(a,I);let J=Aa(a,I);_.disabled===!0&&(J=!0),a.disabled===!0&&(J=!0);const te=_.label??Ma(a,I),U=[],T=a.layout;for(let $ of T)if($==="head"){const W=R(I,z,te,V,J);U.push(W)}else if($==="main"){const W=G(I,z,V,J);U.push(W)}else if($==="sub"){const W=L(I,z,V);U.push(W)}else if($==="mark"){const W=v();U.push(W)}const A=_.class,w=_.style??{};let K=Fa(a,I);_.doit===!0&&(K=!0);const Z={ref:j(z),class:B(z,V,J,K,A),style:c(z,w)};return t.h("view",Z,U)},F=t.ref(),X=t.ref([]),Y=(I,z)=>{X.value[z]=I},j=I=>z=>{Y(z,I)},ee=(I,z)=>{const _=F.value,V=X.value;if(!_||!V||!V[I])return;const J=V[I];let te=0;a.direction==="vertical"?te=J.offsetTop-(_.offsetHeight-J.offsetHeight)/2:te=J.offsetLeft-(_.offsetWidth-J.offsetWidth)/2,k(_,te,.3,a.direction)},k=(I,z,_,V)=>{let J=0;const te=V==="horizontal"?I.scrollLeft:I.scrollTop,U=Math.round(_*1e3/16);function T(){V==="horizontal"?I.scrollLeft+=(z-te)/U:I.scrollTop+=(z-te)/U,++J<U&&El(T)}T()};return()=>{const I=[];if(a.mode==="simple")for(let _=0;_<h.value.length;_++){const V=h.value[_],J=D(V,_);I.push(J)}else for(let _=0;_<h.value.length;_++){const V=h.value[_],J=q(V,_);I.push(J)}const z={ref:F,class:m.value,style:g.value};return t.h("view",z,I)}}}}const{componentName:Gm,create:Xm,scope:Zm}=ie("steps-bar"),go=Xm(Um(Gm,Zm,Pr,xc)),Ra=new Date().getFullYear(),Jm={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"},Ba=(e,n,o)=>{let l;if(it(n)?l=n:typeof n=="string"&&Qe(n)>0?l=ae.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Qm=(e,n,o)=>{it(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ae.format(new Date(l),o)},eg={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(Ra-10,0,1),validator:it},maxDate:{type:Date,default:()=>new Date(Ra+10,11,31),validator:it},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:tg,scope:ng}=ie("date-picker"),lg=tg({components:{Picker:Wt},props:{...eg},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=Se.useFoxI18n(ng),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=t.ref(!1);t.watch(()=>e.visible,c=>{a.value=c});function r(c,N){return new Date(c,N,0).getDate()}const i=(c,N)=>{const M=e[`${c}Date`],E=M.getFullYear();let S=1,P=1,C=0,H=0;c==="max"&&(S=12,P=r(N.getFullYear(),N.getMonth()+1),C=23,H=59);const v=H;return N.getFullYear()===E&&(S=M.getMonth()+1,N.getMonth()+1===S&&(P=M.getDate(),N.getDate()===P&&(C=M.getHours(),N.getHours()===C&&(H=M.getMinutes())))),{[`${c}Year`]:E,[`${c}Month`]:S,[`${c}Date`]:P,[`${c}Hour`]:C,[`${c}Minute`]:H,[`${c}Seconds`]:v}},u=t.computed(()=>{if(!p.value)return[];const{maxYear:c,maxDate:N,maxMonth:M,maxHour:E,maxMinute:S,maxSeconds:P}=i("max",p.value),{minYear:C,minDate:H,minMonth:v,minHour:R,minMinute:G,minSeconds:L}=i("min",p.value);let D=[{type:"year",range:[C,c]},{type:"month",range:[v,M]},{type:"day",range:[H,N]},{type:"hour",range:[R,E]},{type:"minute",range:[G,S]},{type:"seconds",range:[L,P]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),s=(c,N,M,E,S)=>{const P=[];for(;c<=N;){let C=!0;if(typeof e.itemFilter=="function"){const H={text:`${c}`,value:c,type:M,currentYearMonth:E};C=e.itemFilter(H)}if(C)if(typeof e.itemFormatter=="function"){const H={text:`${c}`,value:c,type:M,currentYearMonth:E};e.itemFormatter(H),P.push({text:H.text,value:H.value})}else if(e.isShowChinese){let H=`${c}${l[M]}`;if(M==="day"){if(E[0]===S[0]&&E[1]===S[1]&&c===S[2])H=l.today;else{const R=new Date(E[0],E[1],c).getDay();H=`${H} ${l.fullWeekdays[R]}`}P.push({text:H,value:c})}else P.push({text:c+l[M],value:c})}else P.push({text:`${c}`,value:c});M==="minute"?c+=e.minuteStep:c++}return P},f=t.computed(()=>{const c=new Date,N=[c.getFullYear(),c.getMonth(),c.getDate()],M=[];p.value&&(M[0]=p.value.getFullYear(),M[1]=p.value.getMonth());let E=[];return u.value.forEach(S=>{let P=s(S.range[0],S.range[1],S.type,M,N);P&&E.push(P)}),E}),h=(c,N)=>c==="year"?N.getFullYear():c==="month"?N.getMonth()+1:c==="day"?N.getDate():c==="hour"?N.getHours():c==="minute"?N.getMinutes():c==="seconds"?N.getSeconds():0,d=t.ref(),p=t.ref(null);t.watch(()=>e.modelValue,c=>{let N;if(typeof c=="string"?c.length==0||c==="Invalid Date"?N=new Date:e.valueFormat?N=Ba(e,e.modelValue,e.valueFormat):N=Ba(e,c,Jm[e.type]):it(c)?N=c:N=new Date,!!N&&(!p.value||N.getTime()!==p.value.getTime())){p.value=N;let M=[];u.value.forEach(E=>{let S=h(E.type,N);M.push(S)}),d.value=M}},{immediate:!0});const x=c=>{if(!c||c.length===0){p.value=new Date;let N=[];u.value.forEach(M=>{let E=h(M.type,p.value);N.push(E)}),d.value=N;return}if(e.type==="date"){const N=c[0],M=c[1]-1,E=Math.min(c[2],r(N,M+1));E!==c[2]&&(c[2]=E),p.value=new Date(N,M,E)}else if(e.type==="datetime"){const N=c[0],M=c[1]-1,E=Math.min(c[2],r(N,M+1)),S=c[3],P=c[4];E!==c[2]&&(c[2]=E),p.value=new Date(N,M,E,S,P)}else if(e.type==="time"){const N=c[0],M=c[1],E=c[2],S=p.value??new Date,P=new Date(S.getFullYear(),S.getMonth(),S.getDate(),N,M,E);p.value=P}else if(e.type==="year-month"){const N=c[0],M=c[1]-1;p.value=new Date(N,M)}else if(e.type==="month-day"){const M=(p.value??new Date).getFullYear(),E=c[0]-1,S=Math.min(c[1],r(M,E+1));S!==c[1]&&(c[1]=S);const P=new Date(M,E,S);p.value=P}else if(e.type==="datehour"){const N=c[0],M=c[1]-1,E=Math.min(c[2],r(N,M+1)),S=c[3];E!==c[2]&&(c[2]=E),p.value=new Date(N,M,E,S)}else if(e.type==="hour-minute"){const N=c[0],M=c[1],E=p.value??new Date,S=new Date(E.getFullYear(),E.getMonth(),E.getDate(),N,M);p.value=S}d.value=c};return{columns:f,dateIndexs:d,show:a,onChange:c=>{x(c)},onClose:()=>{n("update:close",!1)},onConfirm:c=>{x(c);const N=p.value??new Date;if(e.valueFormat){let M=Qm(e,N,e.valueFormat);n("update:modelValue",M)}else n("update:modelValue",N);n("confirm",c)},onClear:()=>{n("clear")},onUpdateVisible:c=>{a.value=c,n("update:visible",c)}}}});function og(e,n,o,l,a,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"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","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const po=Fe(lg,[["render",og]]),fn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:f,...h}=l,d={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:f,_parent:n};return d.children&&d.children.length&&(d.children=fn(d.children,d,o)),d}),Wr=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Wr(l.children,n)},ag={topId:null,idKey:"id",pidKey:"pid",sortKey:""},rg=(e,n)=>{const o={...ag,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let u=[],s={};return e.forEach(f=>{f={...f};const{[a]:h,[r]:d}=f,p=s[d]=s[d]||[];!u.length&&d===l&&(u=p),p.push(f),f.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(f=>{s[f].length>1&&s[f].sort((h,d)=>h[i]-d[i])}),s=null,u};class La{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=fn(n,null,this.config)}updateChildren(n,o){o?o.children=fn(n,o,this.config):this.nodes=fn(n,null,this.config)}getNodeByValue(n){let o;return Wr(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const a=l.find(r=>r.value===n[r.level]);if(!a)break;o.push(a),l=a.children}return o}isLeaf(n,o){const{leaf:l,children:a}=n,r=Array.isArray(a)&&!!a.length;return l||!r&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:ig,scope:sg}=ie("cascader-pane"),ug=ig({components:{Loading:Ln,Checklist:Pr,TabsBar:Kn,TabsContainer:Wn,TabsPane:Yn},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{t:o}=Se.useFoxI18n(sg),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new La([],{})),s=t.ref([]),f=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||s.value.length==0?[{text:"Loading",value:0}]:s.value.map((y,c)=>({text:y.selectedNode?y.selectedNode.text:o("select"),value:c}))),d=new Map;let p;const x=async()=>{d.clear(),s.value=[],a.value=0,r.value=!1,p=null;let{options:y}=e;l.value.convertConfig&&(y=rg(y,l.value.convertConfig)),u.value=new La(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),f.value&&!u.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],b()},b=async()=>{const y=i.value;if(y===void 0||!u.value.nodes.length)return;if(y.length===0){a.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=y;if(f.value&&Array.isArray(y)&&y.length){c=[];let N=u.value.nodes.find(M=>M.value===y[0]);if(N){c=[N.value],r.value=!0;const M=await y.slice(1).reduce(async(E,S)=>{const P=await E;await m(P);const C=P?.children?.find(H=>H.value===S);return C&&c.push(S),Promise.resolve(C)},Promise.resolve(N));await m(M),r.value=!1}}c.length&&y===e.modelValue&&u.value.getPathNodesByValue(c).map((M,E)=>{a.value=E,B.handleNode(M,!0)})},m=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(u.value.isLeaf(y,f.value)||u.value.hasChildren(y,f.value))return;y.loading=!0;const c=y.root?null:y;let N=d.get(y);N||(N=new Promise(E=>{l.value.lazyLoad?.(y,E)}),d.set(y,N));const M=await N;Array.isArray(M)&&M.length>0?u.value.updateChildren(M,c):y.leaf=!0,y.loading=!1,d.delete(y)},g=y=>{const c=y.map(N=>N.value);i.value=c,n("change",c,y),n("update:modelValue",c,y)},B={async handleNode(y,c){const{disabled:N,loading:M}=y;if(!(!c&&N||!s.value[a.value])){if(u.value.isLeaf(y,f.value)){if(y.leaf=!0,s.value[a.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!c){const E=s.value.map(S=>S.selectedNode);g(E),n("pathChange",E)}return}if(u.value.hasChildren(y,f.value)){const E=y.level+1;if(s.value[a.value].selectedNode=y,s.value=s.value.slice(0,E),s.value.push({nodes:y.children||[],selectedNode:null}),a.value=E,!c){const S=s.value.map(P=>P.selectedNode);n("pathChange",S)}return}p=y,!M&&(await m(y),p===y&&(s.value[a.value].selectedNode=y,B.handleNode(y,c)))}},handleTabChange(y,c){p=null},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:o("select")},isSelected(y,c){return y.selectedNode&&y.selectedNode.value===c.value}};return t.watch([l,()=>e.options],()=>{x()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==i.value&&(i.value=y,b())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(i.value)&&i.value.length>0&&b()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:a,...B}}}),cg={class:"fox-cascader"},fg={role:"menu",class:"fox-cascader__pane"},dg=["aria-checked","aria-disabled","onClick"],hg={class:"fox-cascader__item__title"};function mg(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",cg,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,p)=>(t.openBlock(),t.createBlock(f,{"pane-key":p,key:p},{default:t.withCtx(()=>[t.createElementVNode("view",fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,x=>(t.openBlock(),t.createElementBlock("view",{key:x.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,x),disabled:x.disabled}]),"aria-checked":e.isSelected(d,x),"aria-disabled":x.disabled||void 0,role:"menuitemradio",onClick:b=>e.handleNode(x,!1)},[t.createElementVNode("view",hg,t.toDisplayString(x.text),1),x.loading?(t.openBlock(),t.createBlock(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,dg))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const gg=Fe(ug,[["render",mg]]),{create:pg}=ie("cascader-picker"),vg=pg({components:{FoxCascaderPane:gg,FoxPopup:vt},props:{...Yl,modelValue:Array,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 o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),yg=["innerHTML"];function bg(e,n,o,l,a,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,yg)):t.createCommentVNode("",!0)]),t.createVNode(i,{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"])]),_:3},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{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 vo=Fe(vg,[["render",bg]]),wg=Symbol.for("InnerPageScopeKey"),xg=Symbol.for("PageWrapperKey");function Sg(e,n){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,l){t.provide(wg,!0);const a={};t.provide(xg,a);const r=s=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const f={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":r},h=["fox-dialog-item "];o.hideHeader&&h.push("hide-header"),o.class&&h.push(o.class),f.class=h.join(" ");const d={};return typeof l.slots.default=="function"&&(d.default=l.slots.default),t.h(O.ElDialog,f,d)}}}}const{create:Cg}=ie("dialog-item"),yo=Cg(Sg()),{create:Tg}=ie("toast"),$g=Tg({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 o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,x=>{x&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const x=ve(e.iconSize);return t.h(e.icon,{width:x,height:x,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:f,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:d,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),kg={key:1,class:"fox-toast-title"},Dg=["innerHTML"];function Ng(e,n,o,l,a,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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",kg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Dg)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const bo=Fe($g,[["render",Ng]]),Eg={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Vg=(e,n,o)=>({props:{...Eg},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=Se.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Kt(),f=t.ref(),h=Lr(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=t.computed(()=>({[e]:!0})),x=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),b=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),m=t.computed(()=>{const S={};return l.headHeight!=50&&(S.height=Re(l.headHeight)),S}),g=S=>{const P=+(l.pullDistance||l.headHeight);let C=S;return S>P&&(S<P*2?C=(S+P)/2:C=P+S/4),Math.round(C)},B=(S,P)=>{const C=+(l.pullDistance||l.headHeight);d.distance=S,P?d.status="loading":S===0?d.status="normal":S<C?d.status="pulling":d.status="loosing",a("change",{status:d.status,distance:S})},y=()=>d.status!=="loading"&&d.status!=="complete",c=()=>h.value==window?_r()==0:h.value&&h.value.scrollTop==0,N=S=>{y()&&(c()?(s.start(S),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=S=>{y()&&d.moving&&(s.move(S),s.isVertical()&&s.state.deltaY>0&&d.isPullRefresh&&(S.cancelable&&S.preventDefault(),B(g(s.state.deltaY))))},E=()=>{d.moving=!1,d.isPullRefresh&&y()&&s.state.deltaY&&(d.status==="loosing"?(B(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):B(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,S=>{S?B(+l.headHeight,!0):B(0)}),()=>{const S=[];let P=null;if(d.status==="loading"){if(P=r?.loading?.()??null,!P){const q={class:["fox-pull-refresh-container-topbox-icon"]};P=t.h(o,q)}}else d.status==="pulling"?P=r?.pulling?.()??null:d.status==="loosing"&&(P=r?.loosing?.()??null);P&&S.push(P);const C={class:["fox-pull-refresh-container-topbox-text"]},H=t.h("dive",C,[x.value]);S.push(H);const v={class:["fox-pull-refresh-container-topbox"],style:m.value},R=t.h("div",v,S),G={class:"fox-pull-refresh-container",style:b.value},L=t.h("div",G,[R,r?.default?.()]),D={ref:f,class:p.value};return Ht()?Object.assign(D,{onTouchstart:N,onTouchmove:M,onTouchend:E}):Object.assign(D,{onMousedown:N,onMousemove:M,onMouseup:E}),t.h("div",D,[L])}}}),{componentName:Ig,create:Pg,scope:Og}=ie("pull-refresh"),wo=Pg(Vg(Ig,Og,Ln));function Ag(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(o,{slots:l}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const h={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),f=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const m={class:i.value,style:u.value};h=t.h(o.icon??"div",m)}const d={class:s.value,style:f.value},p=l.default?l.default():[],x=t.h("div",d,p),b={class:r.value};return o.textPosition==="right"?t.h("div",b,[h,x]):t.h("div",b,[x,h])}}}}const{componentName:Fg,create:Mg}=ie("indicator"),xo=Mg(Ag(Fg));function Rg(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const Bg={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Lg(e,n,o,l=!1){return{props:{...Bg},emits:["click"],setup(a,r){const i=t.ref(null),u=t.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(c[`${e}--${a.type??"default"}`]=!0),a.size&&(c[`${e}--${a.size}`]=!0),c}),s=t.computed(()=>{const c={},N=a.textColor??a.color;return N&&(c.color=N),c}),f=(c,N)=>{let M=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const E=a.highlightFilter;if(c.indexOf(E)!==-1){const P=c.replace(new RegExp(E,"g"),`<span>${E}</span>`);N.innerHTML=P,N.class["is-highlight"]=!0,M=t.h(a.tag,N)}}else if(typeof a.highlightFilter=="function"){const E=a.highlightFilter(c);E&&(N.innerHTML=E,N.class["is-highlight"]=!0,M=t.h(a.tag,N))}return M},h=c=>{r.emit("click",c)};let d="";const p=()=>{const c=i.value;if(!c)return;const N=c.clientWidth;Rg(c,M=>{const E=c.innerHTML??"";he(E)||M<N||(d?o?.show(c,E,{type:"text",id:d,showArrow:a.showArrow},!0):d=o?.show(c,E,{type:"text",showArrow:a.showArrow},!0)??"")})},x=()=>{d&&o?.hide(d)};let b=null;const m=c=>{b||(b=setTimeout(()=>{p(),b=null},a.showAfter??0))},g=c=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{x()},a.hideAfter??0)},B=()=>{const c=i.value;c&&(c.addEventListener("mouseover",m),c.addEventListener("mouseleave",g))},y=()=>{const c=i.value;c&&(c.removeEventListener("mouseover",m),c.removeEventListener("mouseleave",g))};return t.onMounted(()=>{!fe(a.showOverflowTooltip)||!o||B()}),t.onBeforeUnmount(()=>{!fe(a.showOverflowTooltip)||!o||y()}),()=>{const c={onClick:h,class:u.value,style:s.value,ref:i};let N=null;if(fe(a.numberFormat)&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const C=P[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const H=pe(a.digits),v=pe(a.decimalLength),R=fe(a.autoPadding);let G=`${P[0].children}`,L=G.split("").reverse().join("");L=wn(L,v,R,H,a.separator),G=L.split("").reverse().join(""),a.highlightFilter!==void 0&&(N=f(G,c)),N||(c.innerHTML=G,N=t.h(a.tag,c))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const C=P[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const H=`${P[0].children}`;N=f(H,c),N||(c.innerHTML=H,N=t.h(a.tag,c))}}}N||(N=t.h(a.tag,c,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return N;let E=null;if(a.icon){const P={[`${e}__mark-wrap`]:!0};a.type&&(P[`${e}__mark-wrap--${a.type}`]=!0);const C={},H=a.color;H&&(C.color=H);const v={class:P,style:C};E=t.h("view",v,t.h(a.icon))}else if(r.slots.mark){const P={[`${e}__mark-wrap`]:!0};a.type&&(P[`${e}__mark-wrap--${a.type}`]=!0);const C={},H=a.color;H&&(C.color=H);const v={class:P,style:C};E=t.h("view",v,{default:r.slots.mark})}else{const P={[`${e}__mark`]:!0};a.type&&(P[`${e}__mark--${a.type??"default"}`]=!0);const C={},H=a.color;H&&(C["background-color"]=H);const v={class:P,style:C};E=t.h("view",v)}const S={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",S,[E,N])}}}}const{componentName:_g,create:qg,scope:zg}=ie("text"),So=qg(Lg(_g,zg,qe,!1)),jg={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ee.ArrowUp}};function Hg(e,n,o){return{props:{...jg},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const d={[`${e}`]:!0};return l.disabled?d[`${e}__disabled`]=!0:d[`${e}__${l.type}`]=!0,d}),i=me(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(u.value){const m={class:s.value},g=t.h("span",m,[u.value]);d.push(g)}const p={class:f.value},x=o(l.icon,p);return x&&d.push(x),t.h("div",{class:r.value,onClick:h},d)}}}}const{componentName:Kg,create:Wg,scope:Yg}=ie("more-button"),Ug=(e,n)=>(e=e??Ee.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),Co=Wg(Hg(Kg,Yg,Ug));function Gg(e){e.stopPropagation()}let Xg=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Ht()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Kt(),l=(a,r,i,u)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),Gg(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Zg(e,n){return new Xg(e,n)}const Jg={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Qg=(e,n,o,l=!1)=>({props:{...Jg},emits:["click"],setup(a,{slots:r,emit:i}){const u=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),s=t.computed(()=>{const y=[`${e}`];return a.customClass&&y.push(a.customClass),y}),f=t.computed(()=>{const y={};return he(u.top)||(y.top=u.top),he(u.right)||(y.right=u.right),he(u.bottom)||(y.bottom=u.bottom),he(u.left)||(y.left=u.left),he(a.width)||(y.width=a.width),he(a.height)||(y.height=a.height),he(a.color)||(y.color=a.color),he(a.background)||(y.background=a.background),he(a.borderRadius)||(y["border-radius"]=a.borderRadius),he(a.zIndex)||(y["z-index"]=a.zIndex),y}),h=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{i("click")},p=t.ref(null),x=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},b={x:0,y:0},B=Zg(y=>{if(!p.value)return;const c=p.value;x(),u.left=c.offsetLeft,u.top=c.offsetTop,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`,c.style.right=null,c.style.bottom=null,b.x=u.left,b.y=u.top},y=>{if(!p.value)return;const c=p.value;x(),u.left=b.x+y.x,u.top=b.y+y.y,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`});return t.onMounted(()=>{if(a.draggable&&p.value){const y=[p.value];B.open(y)}}),t.onBeforeUnmount(()=>{a.draggable&&p.value&&B.close()}),()=>{let y=[];const c=typeof r.default=="function"?r.default():[];if(c&&c.length>0)y=c;else{const M=t.h(o,{class:h.value});y.push(M)}const N={ref:M=>{p.value=M},class:s.value,style:f.value,onClick:d};return t.h("view",N,y)}}}),{componentName:ep,create:tp,scope:np}=ie("floating-button"),To=tp(Qg(ep,np,Wu,!1)),{componentName:lp,create:op}=ie("tour"),ap=op({components:{Close:Ee.Close,ElPopover:O.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 o=lp,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:b,maskWidth:m,maskHeight:g}=e,{width:B,height:y,left:c,top:N}=a.value,M=e.steps[l.active].offset??b,E=[c+B/2,N+y/2],S=Number(m||B),P=Number(g||y);return{width:`${S+ +M.left+M.right}px`,height:`${P+M.top+M.bottom}px`,top:`${E[1]-P/2-+M.top}px`,left:`${E[0]-S/2-+M.left}px`}}),u=b=>{b=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},s=b=>b.popoverWidth??e.width,f=b=>b.location??e.location,h=()=>{const b=document.querySelector(`${e.steps[l.active].target}`),m=ho(b);a.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},d=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&d()},x=(b,m=0)=>{b&&h(),e.steps,l.active=m,l.showTour=b,l.showPopup=b};return t.onMounted(()=>{x(e.modelValue,e.current)}),t.watch(()=>e.modelValue,b=>{x(b)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:f,close:d,handleClickMask:p}}}),rp={key:0,class:"fox-tour__content"},ip={key:0,class:"fox-tour__content-top"},sp={class:"fox-tour__content-inner"},up={class:"fox-tour__content-bottom"},cp={class:"fox-tour__content-bottom-init"},fp={class:"fox-tour__content-bottom-operate"},dp={key:1,class:"fox-tour__content fox-tour__content-tile"},hp={class:"fox-tour__content-inner"};function mp(e,n,o,l,a,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=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,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{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",rp,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",ip,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",sp,t.toDisplayString(f.content),1),t.createElementVNode("div",up,[t.createElementVNode("div",cp,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",fp,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=d=>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(u,{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(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=d=>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",dp,[t.createElementVNode("div",hp,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const $o=Fe(ap,[["render",mp]]),_e=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class gp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Ht()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Kt(),l=(a,r,i,u)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function _a(e,n){return new gp(e,n)}const qa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Ct=[];const za=e=>{const n=e;n.key==="Escape"&&Ct.forEach(o=>o(n))},pp=e=>{t.onMounted(()=>{Ct.length===0&&document.addEventListener("keydown",za),qa&&Ct.push(e)}),t.onBeforeUnmount(()=>{Ct=Ct.filter(n=>n!==e),Ct.length===0&&qa&&document.removeEventListener("keydown",za)})},ul="fox-focus-trap.focus-after-trapped",cl="fox-focus-trap.focus-after-released",vp="fox-focus-trap.focusout-prevented",ja={cancelable:!0,bubbles:!1},yp={cancelable:!0,bubbles:!1},Ha="foxFocusAfterTrapped",Ka="foxFocusAfterReleased",bp=Symbol("foxFocusTrap"),ko=t.ref(),Un=t.ref(0),Do=t.ref(0);let Xt=0;const Yr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},wp=(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},Wa=(e,n)=>{for(const o of e)if(!wp(o,n))return o},xp=e=>{const n=Yr(e),o=Wa(n,e),l=Wa(n.reverse(),e);return[o,l]},Sp=e=>e instanceof HTMLInputElement&&"select"in e,at=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Do.value=window.performance.now(),e!==o&&Sp(e)&&n&&e.select()}};function Ya(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Cp=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=Ya(e,l),e.unshift(l)},remove:l=>{e=Ya(e,l),e[0]?.resume?.()}}},Tp=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(at(l,n),document.activeElement!==o)return},Ua=Cp(),$p=()=>Un.value>Do.value,Zt=()=>{ko.value="pointer",Un.value=window.performance.now()},Ga=()=>{ko.value="keyboard",Un.value=window.performance.now()},kp=()=>(t.onMounted(()=>{Xt===0&&(document.addEventListener("mousedown",Zt),document.addEventListener("touchstart",Zt),document.addEventListener("keydown",Ga)),Xt++}),t.onBeforeUnmount(()=>{Xt--,Xt<=0&&(document.removeEventListener("mousedown",Zt),document.removeEventListener("touchstart",Zt),document.removeEventListener("keydown",Ga))}),{focusReason:ko,lastUserFocusTimestamp:Un,lastAutomatedFocusTimestamp:Do}),Jt=e=>new CustomEvent(vp,{...yp,detail:e}),{create:Dp}=ie("focus-trap"),Np={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"}},Ep=Dp({props:Np,emits:[Ha,Ka,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=kp();pp(m=>{fe(e.trapped)&&!u.paused&&o("release-requested",m)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=m=>{if(!e.loop&&!fe(e.trapped)||u.paused)return;const{key:g,altKey:B,ctrlKey:y,metaKey:c,currentTarget:N,shiftKey:M}=m,{loop:E}=e,S=g==="Tab"&&!B&&!y&&!c,P=document.activeElement;if(S&&P){const C=N,[H,v]=xp(C);if(H&&v){if(!M&&P===v){const G=Jt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(m.preventDefault(),E&&at(H,!0))}else if(M&&[H,C].includes(P)){const G=Jt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||(m.preventDefault(),E&&at(v,!0))}}else if(P===C){const G=Jt({focusReason:i.value});o("focusout-prevented",G),G.defaultPrevented||m.preventDefault()}}};t.provide(bp,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[g])=>{m&&(m.addEventListener("keydown",s),m.addEventListener("focusin",d),m.addEventListener("focusout",p)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",d),g.removeEventListener("focusout",p))});const f=m=>{o(Ha,m)},h=m=>o(Ka,m),d=m=>{const g=t.unref(l);if(!g)return;const B=m.target,y=m.relatedTarget,c=B&&g.contains(B);fe(e.trapped)||y&&g.contains(y)||(a=y),c&&o("focusin",m),!u.paused&&fe(e.trapped)&&(c?r=B:at(r,!0))},p=m=>{const g=t.unref(l);if(!(u.paused||!g))if(!e.escape&&fe(e.trapped)){const B=m.relatedTarget;!Vl(B)&&!g.contains(B)&&setTimeout(()=>{if(!u.paused&&fe(e.trapped)){const y=Jt({focusReason:i.value});o("focusout-prevented",y),y.defaultPrevented||at(r,!0)}},0)}else{const B=m.target;B&&g.contains(B)||o("focusout",m)}};async function x(){await t.nextTick();const m=t.unref(l);if(m){Ua.push(u);const g=m.contains(document.activeElement)?a:document.activeElement;if(a=g,!m.contains(g)){const y=new Event(ul,ja);m.addEventListener(ul,f),m.dispatchEvent(y),y.defaultPrevented||t.nextTick(()=>{let c=e.focusStartEl;er(c)||(at(c),document.activeElement!==c&&(c="first")),c==="first"&&Tp(Yr(m),!0),(document.activeElement===g||c==="container")&&at(m)})}}}function b(){const m=t.unref(l);if(m){m.removeEventListener(ul,f);const g=new CustomEvent(cl,{...ja,detail:{focusReason:i.value}});m.addEventListener(cl,h),m.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!$p())&&at(a??document.body,!0),m.removeEventListener(cl,f),Ua.remove(u)}}return t.onMounted(()=>{fe(e.trapped)&&x(),t.watch(()=>e.trapped,m=>{fe(m)?x():b()})}),t.onBeforeUnmount(()=>{fe(e.trapped)&&b()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Vp,create:Ip}=ie("floating-window"),Pp=Symbol.for("InnerPageScopeKey"),Op=Symbol.for("PageWrapperKey"),Ap={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Fp=Ip({inheritAttrs:!1,components:{FoxIcon:O.ElIcon,FocusTrap:Ep},props:{...Ap},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Vp,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,$=>{l.value=$});const r=t.computed(()=>l.value===!1?!1:!P.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),f=t.ref(e.bottom),h=t.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=t.computed(()=>{const $={};return dt(i.value)?$.left="auto":$.left=_e(i.value),dt(u.value)?$.top="auto":$.top=_e(u.value),dt(s.value)?$.right="auto":$.right=_e(s.value),dt(f.value)?$.bottom="auto":$.bottom=_e(f.value),dt(e.zIndex)||($["z-index"]=_e(e.zIndex)),dt(E.value)||($.height=E.value),dt(S.value)||($.width=S.value),$}),p=t.computed(()=>e.closeIcon??Ee.Close),x=t.computed(()=>e.collapseIcon??Ee.ArrowUp),b=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),g=t.computed(()=>e.expandText??e.title??"展开"),B=t.computed(()=>({[`${o}__collapse-text`]:!0})),y=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),c=t.ref(),N=t.ref(null),M=t.ref(null),E=t.computed(()=>_e(e.height)||""),S=t.computed(()=>_e(e.width)||""),P=t.ref(fe(e.collapse)),C=($,W=!0)=>{P.value!==$&&(P.value=$,$?I():z(),n("update:collapse",$),$&&typeof R.onHide=="function"?R.onHide():!$&&typeof R.onShow=="function"&&R.onShow())};t.watch(()=>e.collapse,$=>{C($)});const H=()=>{v()},v=$=>{$=$??!P.value,C($)};t.provide(Pp,!0);const R={setCollapse:C,setFixedNavVisible:$=>{j.value=$}};t.provide(Op,R);const G=()=>{typeof R.beforeClose=="function"?R.beforeClose(()=>{l.value=!1}):l.value=!1},L=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),q=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"),$}),F=t.ref(""),X=t.computed(()=>{const $={};return F.value?$.top=F.value:e.collapseTop&&($.top=e.collapseTop),$}),Y=t.ref(P.value),j=t.computed({set:$=>{Y.value=$},get:()=>l.value===!1?!1:Y.value});let ee=null;const k=()=>{typeof ee=="function"&&(ee(),ee=null)},I=()=>{L.value&&L.value.classList.add("slide-in"),j.value=!0,ee=()=>{L.value&&L.value.classList.remove("slide-in")}},z=()=>{L.value&&L.value.classList.add("slide-out"),ee=()=>{L.value&&L.value.classList.remove("slide-out"),j.value=!1}},_=()=>{i.value=null,u.value=null,s.value=null,f.value=null},V={x:0,y:0},U=_a($=>{if(!c.value)return;const W=c.value;if(_(),e.origin==="left-top")i.value=W.offsetLeft,u.value=W.offsetTop,V.x=i.value,V.y=u.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,f.value=Q-(W.offsetTop+W.offsetHeight),V.x=i.value,V.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=Q-(W.offsetLeft+W.offsetWidth),f.value=ne-(W.offsetTop+W.offsetHeight),V.x=s.value,V.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;s.value=Q-(W.offsetLeft+W.offsetWidth),u.value=W.offsetTop,V.x=s.value,V.y=u.value}},$=>{if(!c.value)return;const W=c.value;_(),e.origin==="left-top"?(i.value=V.x+$.x,u.value=V.y+$.y,W.style.left=_e(i.value),W.style.top=_e(u.value)):e.origin==="left-bottom"?(i.value=V.x+$.x,f.value=V.y-$.y,W.style.left=_e(i.value),W.style.bottom=_e(f.value)):e.origin==="right-bottom"?(s.value=V.x-$.x,f.value=V.y-$.y,W.style.right=_e(s.value),W.style.bottom=_e(f.value)):(s.value=V.x-$.x,u.value=V.y+$.y,W.style.right=_e(s.value),W.style.top=_e(u.value))}),T={x:0,y:0},K=_a($=>{L.value&&(T.x=L.value.offsetLeft,T.y=L.value.offsetTop)},$=>{if(!L.value)return;const W=T.y+$.y;F.value=`${W}px`}),Z=()=>{if(c.value){const $=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=$}};return t.onMounted(()=>{if(e.draggable&&c.value){const $=[];N.value&&$.push(N.value),e.footerDraggable&&(Z(),M.value&&$.push(M.value)),U.open($)}e.collapse===!0&&C(e.collapse,!1),L.value&&K.open(L.value)}),t.onBeforeUnmount(()=>{e.draggable&&N.value&&U.close(),L.value&&K.close()}),{classes:h,styles:d,isShow:r,closeIcon:p,onClose:G,dialogRef:c,headerRef:N,onClickToggle:H,collapseIcon:x,collapseText:b,collapseTextClasses:B,collapseIconClasses:y,expandIcon:m,expandText:g,isShowFixedNav:j,fixedNavRef:L,fixedNavClasses:q,fixedNavStyles:X,onAnimationEnd:k,teleportDisabled:a,fixedNavTeleportDisabled:D}}}),Mp={ref:"headerRef",class:"fox-floating-window__header"},Rp={class:"fox-floating-window__title"},Bp={class:"fox-floating-window__tools"},Lp={class:"fox-floating-window__body"},_p={class:"fox-floating-window__fixednav__text"};function qp(e,n,o,l,a,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[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(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Mp,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Rp,t.toDisplayString(e.title),1),t.createElementVNode("div",Bp,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{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(i,{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",Lp,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",_p,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const No=Fe(Fp,[["render",qp]]),zp={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function jp(e,n,o=!1){return{props:{...zp},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:i}){const u=t.ref({top:null,right:null,bottom:null,left:null}),s=t.ref(0),f=t.ref(0),h=t.ref(0),d=t.ref(0),p=t.ref(l.placement),x=t.ref(!1),b=t.ref(!1),m=t.ref(null),g=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,B=(j,ee,k,I,z,_,V,J=!0)=>{const te=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,T=j.split("-");let A=[];J?T[0]==="top"?A=["top","bottom","right","left"]:T[0]==="bottom"?A=["bottom","top","right","left"]:T[0]==="left"?A=["left","top","bottom","right"]:T[0]==="right"&&(A=["right","top","bottom","left"]):A=[j[0]];const w={top:null,right:null,bottom:null,left:null},K=[];for(let Z=0;Z<A.length;Z++){const $=A[Z];if(K[0]=$,T[1]&&(K[1]=T[1]),$==="top"){const W=k-V-l.arrowSize/2-l.offset;if(W>=0){w.top=W;let Q=0;T[1]==="start"?Q=ee:T[1]==="end"?Q=ee+I-_:Q=ee+I/2-_/2;const ne=te-Q-_;ne<0?(Q+=ne,c.value=-ne):c.value=0,w.left=Q<0?0:Q;break}}else if($==="bottom"){const W=k+z+l.arrowSize/2+l.offset;if(W+V<=U){w.top=W;let Q=0;T[1]==="start"?Q=ee:T[1]==="end"?Q=ee+I-_:Q=ee+I/2-_/2;const ne=te-Q-_;ne<0?(Q+=ne,c.value=-ne):c.value=0,w.left=Q<0?0:Q;break}}else if($==="left"){const W=ee-_-l.arrowSize/2-l.offset;if(W>=0){w.left=W;let Q=0;T[1]==="start"?Q=k:T[1]==="end"?Q=k+z-V:Q=k+z/2-V/2,w.top=Q<0?0:Q;break}}else if($==="right"){const W=ee+I+l.arrowSize/2+l.offset;if(W+_<=te){w.left=W;let Q=0;T[1]==="start"?Q=k:T[1]==="end"?Q=k+z-V:Q=k+z/2-V/2,w.top=Q<0?0:Q;break}}}return{bestPlacement:K.join("-"),bestInsetRect:w}},y=()=>{const j=l.visible,ee=l.autoFit;if(!ut||j===!1)return;if(l.reference){const V=g(),J=_l(V);s.value=J.x,f.value=J.y,h.value=V.offsetWidth,d.value=V.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,f.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,d.value=l.referenceInset.bottom-l.referenceInset.top);const k=m.value.offsetWidth,I=m.value.offsetHeight,{bestPlacement:z,bestInsetRect:_}=B(l.placement,s.value,f.value,h.value,d.value,k,I,ee);p.value=z,u.value=_},c=t.ref(0),N=Ke(()=>{y()},10),M=t.ref(l.visible);t.watch([()=>l.visible],([j])=>{M.value=j,j?(x.value=j,setTimeout(()=>{y(),b.value=!0},0)):b.value=!1});const E=t.computed(()=>M.value&&S.value),S=t.ref(!0),P=Ke(j=>{const ee=j[0];ee&&(S.value=ee.isIntersecting)},10),C=new IntersectionObserver(P);t.watch([()=>l.reference,()=>l.referenceInset],([j,ee],[k,I])=>{!j&&!ee||(setTimeout(()=>{y()},0),l.autoFit&&(k&&(Rt.unwatch(k,N),C.unobserve(k)),j&&(Rt.watch(j,N),C.observe(j))))},{immediate:!0}),t.onBeforeUnmount(()=>{l.reference&&(Rt.unwatch(l.reference,N),C.unobserve(l.reference),C.disconnect())});const H=t.computed(()=>{const j={[e]:!0};return p.value.startsWith("top")?j["is-top"]=!0:p.value.startsWith("right")?j["is-right"]=!0:p.value.startsWith("bottom")?j["is-bottom"]=!0:p.value.startsWith("left")&&(j["is-left"]=!0),j[`is-${l.effect}`]=!0,!b.value&&E.value&&(j["is-opacity"]=!0),b.value&&E.value&&(j["is-show"]=!0),E.value||(j["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(j[`${l.customClass}`]=!0),j}),v=t.computed(()=>{const j={};return u.value.top!==null&&(j.top=`${u.value.top}px`),u.value.right!==null&&(j.right=`${u.value.right}px`),u.value.bottom!==null&&(j.bottom=`${u.value.bottom}px`),u.value.left!==null&&(j.left=`${u.value.left}px`),l.width&&(j.width=l.width),l.zIndex&&(j["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(j,l.customStyle),j}),R=()=>{M.value=!1,a("update:visible",!1)},G=()=>{if(!l.showOverlay)return null;const j={class:`${e}__overlay`,onClick:R};return t.h("div",j)},L=()=>{let j=null;return r.title?j=t.h("div",{class:`${e}__title`},{default:r.title}):l.title&&(j=t.h("div",{class:`${e}__title`},[l.title])),j},D=t.computed(()=>({[`${e}__arrow`]:!0})),q=t.computed(()=>{const j={};return l.showArrow?(j.width=`${l.arrowSize}px`,j.height=`${l.arrowSize}px`,p.value==="top"?(j.left="50%",j.bottom="0",j.transform="translate(-50%, 50%)"):p.value==="top-start"?(j.left=`${l.arrowOffset+c.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):p.value==="top-end"?(j.right=`${l.arrowOffset-c.value}px`,j.bottom="0",j.transform="translate(-50%, 50%)"):p.value==="right"?(j.left="0",j.top="50%",j.transform="translate(-50%, -50%)"):p.value==="right-start"?(j.left="0",j.top=`${l.arrowOffset}px`,j.transform="translate(-50%, 50%)"):p.value==="right-end"?(j.left="0",j.bottom=`-${l.arrowOffset}px`,j.transform="translate(-50%, 50%)"):p.value==="bottom"?(j.left="50%",j.top="0",j.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(j.left=`${l.arrowOffset+c.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(j.right=`${l.arrowOffset-c.value}px`,j.top="0",j.transform="translate(-50%, -50%)"):p.value==="left"?(j.right="0",j.top="50%",j.transform="translate(50%, -50%)"):p.value==="left-start"?(j.right="0",j.top=`${l.arrowOffset}px`,j.transform="translate(50%, -50%)"):p.value==="left-end"&&(j.right="0",j.bottom=`-${l.arrowOffset}px`,j.transform="translate(50%, -50%)"),j):{display:"none"}}),F=()=>{const j={class:D.value,style:q.value};return t.h("div",j)},X=()=>{M.value===!1&&(x.value=!1)},Y=j=>{if(!m.value||M.value===!1)return;const{relatedTarget:ee}=j;m.value.contains(ee)||(M.value=!1,a("update:visible",!1))};return i({doLayout:y}),()=>{if(!x.value)return null;const j=[],ee=G();ee&&j.push(ee);const k=[],I=L();if(I&&k.push(I),r.default){const J=r.default();k.push(J)}const z=F();z&&k.push(z);const _={ref:m,class:H.value,style:v.value,onAnimationend:X};l.leaveHide&&(_.onMouseleave=Y);const V=t.h("div",_,{default:()=>k});return j.push(V),j}}}}const{componentName:Hp,create:Kp,scope:Wp}=ie("popover-dialog"),Eo=Kp(jp(Hp,Wp,!1));function Yp(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return gr(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{create:Up}=ie("domain-provider"),Vo=Up(Yp()),Gp={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 Xp(e,n){return{inheritAttrs:!1,props:Gp,setup(o,{slots:l}){if(ut&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(p,x)=>{if(h===null){r.set(p,{visible:null,callback:x});return}a.has(p)&&h.unobserve(p),a.set(p,{visible:null,callback:x}),h.observe(p)},u=p=>{if(h===null){r.delete(p);return}a.has(p)&&(a.delete(p),h.unobserve(p))};let s=o.initialVisibleObserverSize;es({acquire:()=>{const p=s>0;return s--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const d=(p,x,b)=>{h=new IntersectionObserver(m=>{for(let g of m){let B=!1;g.intersectionRatio>0&&(B=!0);const y=a.get(g.target);if(y)try{if(o.loadPolicy==="lazy"&&!B&&y.visible!==null)return;y.visible=B,y.callback(B)}catch(c){console.error(c)}}},{root:p,rootMargin:x,threshold:b}),r.forEach((m,g)=>{a.set(g,m),h?.observe(g)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([p,x])=>{if(x||!p||h)return;let b=null;typeof p=="string"?b=document.querySelector(p):b=p,b&&d(b,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{create:Zp}=ie("rolling-provider"),Io=Zp(Xp()),Jp=[Al,Ml,Rl,Bl,Ll,Te,ql,zl,jt,jl,Hl,Kl,Ul,Gl,Xl,Zl,Jl,Ql,eo,to,no,qn,lo,oo,ao,ro,io,so,uo,Hn,co,mo,Kn,Wn,Yn,go,Wt,po,_n,vo,yo,Bn,vt,bo,jn,zn,wo,_t,Rn,xo,So,Co,To,$o,No,Eo,Vo,Io],Qp=new Oi(Jp,[Mi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>O.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>O.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>O.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>O.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>O.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>O.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>O.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>O.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>O.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>O.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>O.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>O.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>O.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>O.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>O.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>O.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>O.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>O.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>O.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>O.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>O.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>O.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>O.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>O.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>O.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>O.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>O.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>O.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>O.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>O.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>O.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>O.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>O.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>O.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>O.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>O.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>O.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>O.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>O.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>O.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>O.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>O.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>O.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>O.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>O.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>O.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>O.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>O.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>O.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>O.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>O.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>O.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>O.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>O.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>O.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>O.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>O.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>O.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>O.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>O.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>O.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>O.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>O.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>O.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>O.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>O.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>O.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>O.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>O.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>O.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>O.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>O.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>O.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>O.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>O.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>O.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>O.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>O.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>O.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>O.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>O.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>O.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>O.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>O.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>O.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>O.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>O.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>O.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>O.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>O.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>O.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>O.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>O.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>O.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>O.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>O.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>O.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>O.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>O.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>O.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>O.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>O.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>O.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>O.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>O.ElWatermark});exports.ActionsheetItem=co;exports.ActionsheetPane=Hn;exports.AutocompleteItem=eo;exports.Broadcast=Il;exports.BroadcastKey=ke;exports.CalendarItem=Ul;exports.CascaderItem=Ql;exports.CheckboxItem=ao;exports.Content=Bl;exports.DataItemsKey=St;exports.DateItem=Kl;exports.DateUtils=ae;exports.DialogItem=yo;exports.Domain=kn;exports.DomainKey=ze;exports.DomainProvider=Vo;exports.FloatingButton=To;exports.FloatingWindow=No;exports.FooterBar=Rl;exports.FoxActionsheetItem=co;exports.FoxActionsheetPane=Hn;exports.FoxAutocompleteItem=eo;exports.FoxCalendarItem=Ul;exports.FoxCascaderItem=Ql;exports.FoxCheckboxItem=ao;exports.FoxContent=Bl;exports.FoxDateItem=Kl;exports.FoxDialogItem=yo;exports.FoxDomainProvider=Vo;exports.FoxFloatingButton=To;exports.FoxFloatingWindow=No;exports.FoxFooterBar=Rl;exports.FoxGroup=Ll;exports.FoxGroupSetting=uo;exports.FoxHeaderBar=Ml;exports.FoxHintText=jt;exports.FoxIndicator=xo;exports.FoxInfiniteLoading=zn;exports.FoxInputItem=jl;exports.FoxInputNumberItem=Jl;exports.FoxItem=Te;exports.FoxMapping=_t;exports.FoxMoneyItem=Zl;exports.FoxMoreButton=Co;exports.FoxOverLay=Bn;exports.FoxPage=Al;exports.FoxPickerItem=mo;exports.FoxPopoverDialog=Eo;exports.FoxPopup=vt;exports.FoxPrice=Rn;exports.FoxPullRefresh=wo;exports.FoxRadioItem=oo;exports.FoxRateItem=ro;exports.FoxRollingProvider=Io;exports.FoxRowItem=zl;exports.FoxSearchBar=jn;exports.FoxSelectItem=Hl;exports.FoxSlotItem=ql;exports.FoxStepsBar=go;exports.FoxSwitchItem=io;exports.FoxTableItem=lo;exports.FoxTableMappingColumn=to;exports.FoxTableRadioColumn=no;exports.FoxTableSetting=qn;exports.FoxTabsBar=Kn;exports.FoxTabsContainer=Wn;exports.FoxTabsPane=Yn;exports.FoxText=So;exports.FoxTimeItem=Gl;exports.FoxTimeSelectItem=Xl;exports.FoxToast=bo;exports.FoxTour=$o;exports.FoxTreeSelectItem=so;exports.Foxcalendarpicker=_n;exports.Foxcascaderpicker=vo;exports.Foxdatepicker=po;exports.Foxpicker=Wt;exports.Group=Ll;exports.GroupSetting=uo;exports.HeaderBar=Ml;exports.HintText=jt;exports.Indicator=xo;exports.InfiniteLoading=zn;exports.InputItem=jl;exports.InputNumberItem=Jl;exports.Item=Te;exports.Mapping=_t;exports.MoneyItem=Zl;exports.MoreButton=Co;exports.OverLay=Bn;exports.Page=Al;exports.PickerItem=mo;exports.PopoverDialog=Eo;exports.Popup=vt;exports.Price=Rn;exports.PriorityPolicy=je;exports.PullRefresh=wo;exports.RadioItem=oo;exports.RateItem=ro;exports.RollingProvider=Io;exports.RowItem=zl;exports.SearchBar=jn;exports.SelectItem=Hl;exports.SlotItem=ql;exports.StepsBar=go;exports.SwitchItem=io;exports.TableItem=lo;exports.TableMappingColumn=to;exports.TableRadioColumn=no;exports.TableSetting=qn;exports.TabsBar=Kn;exports.TabsContainer=Wn;exports.TabsPane=Yn;exports.Text=So;exports.TimeItem=Gl;exports.TimeSelectItem=Xl;exports.Toast=bo;exports.Tour=$o;exports.TreeSelectItem=so;exports.UniqueID=kr;exports.ValidateSchema=hr;exports.ValidateSchemaKey=Ue;exports.calendarpicker=_n;exports.cancelRaf=Zr;exports.cascaderpicker=vo;exports.clearNonNumber=si;exports.clone=yl;exports.compareTo=gl;exports.createBroadcast=Cn;exports.createValidateSchema=Tn;exports.datepicker=po;exports.debounce=Ke;exports.debounceRef=Si;exports.decimalLength=sr;exports.default=Qp;exports.defineBroadcast=di;exports.defineConfigDomain=gr;exports.defineDataItem=pr;exports.defineDomain=Pl;exports.defineItem=De;exports.definePageState=vr;exports.defineSimpleItem=Ol;exports.deleteGlobalValidator=vi;exports.disabledProperty=Ae;exports.divide=Nl;exports.excludeProps=Ve;exports.extend=gt;exports.floatData=fi;exports.getGlobalValidateCheckEvents=cr;exports.getGlobalValidateResetEvents=dr;exports.getPageContentAreaHeight=pn;exports.getPageContentAreaWidth=vn;exports.getPageFooterAreaHeight=En;exports.getPageHeaderAreaHeight=Nn;exports.getRootDomain=Tt;exports.hasSymbol=nr;exports.includeProps=zt;exports.indexOf=ui;exports.integerLength=ir;exports.isArray=Qr;exports.isArrayLike=or;exports.isBrowser=ut;exports.isDate=it;exports.isESModule=li;exports.isEmptyString=he;exports.isEqual=We;exports.isFunction=pl;exports.isHidden=Sn;exports.isInnerPage=$i;exports.isMap=ei;exports.isNil=Vl;exports.isNumberString=rr;exports.isObject=He;exports.isPlainObject=vl;exports.isPromise=hn;exports.isRegExp=bl;exports.isSet=ti;exports.isString=er;exports.isSubPage=ki;exports.isSymbol=ni;exports.isTouch=Ht;exports.isWindow=lr;exports.lastIndexOf=ci;exports.makeArray=ii;exports.merge=ar;exports.multiply=Za;exports.negate=Ja;exports.nextTick=ai;exports.numberFormat=wn;exports.objectToString=tr;exports.once=Ci;exports.overrideGlobalValidateHandler=gi;exports.picker=Wt;exports.property=Pe;exports.raf=El;exports.readonlyProperty=Oe;exports.setGlobalValidateCheckEvents=yi;exports.setGlobalValidateHandler=mi;exports.setGlobalValidateMessages=wi;exports.setGlobalValidateResetEvents=bi;exports.setGlobalValidator=pi;exports.throttle=xi;exports.toBoolean=fe;exports.toNumber=pe;exports.toPadding=Ze;exports.toPx=ve;exports.toPxDesc=Re;exports.toTypeString=xn;exports.toValue=me;exports.tryTimes=$n;exports.typeOf=mn;exports.unNumberFormat=Qa;exports.updatePageState=wl;exports.useBroadcast=Ft;exports.useDomain=ct;exports.useExpose=be;exports.useInnerSize=Vn;exports.usePageState=Dn;exports.usePosition=_l;exports.useRawTouch=Kt;exports.useRect=ho;exports.useSize=Fl;exports.useTouch=jr;exports.valueLength=Qe;
|
|
5
|
+
*/function dn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Le(e),n=Le(n),[e,n]=Dl(Le(e),Le(n)),o==1&&(l==1?e=Jn(e):n=Jn(n));let a=Za(e,n);return o?o==2?"-"+Le(a):e.length<a.length?Le(a.substring(1)):"-"+Le(Jn(a)):Le(a)}function Jn(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Za(n,r)}function Le(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 Dl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Za(e,n){[e,n]=Dl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var $e=(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))($e||{});function Bt(e,n=0,o=$e.HALF_EVEN){if(o===$e.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Bt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Po(a[1],r,l,o)?(l?"-":"")+Qn(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&Po(u,i,l,o)&&(i=Qn(i),i.length>n)?(l?"-":"")+Qn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Po(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===$e.DOWN||!o&&l===$e.FLOOR||o&&l===$e.CEILING)return!1;if(l===$e.UP||o&&l===$e.FLOOR||!o&&l===$e.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case $e.HALF_DOWN:return!1;case $e.HALF_UP:return!0;case $e.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Qn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function fl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Vt(e),n=Vt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=Vt(e.replace(".","")),n=Vt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,u=0,s=[],f=i-1,h="";for(let d=0;d<i;d++)s[d]=e.length-1;for(let d=0;d<2*e.length;d++){let p=0;for(let w=n.length-1;w>=f&&w>=0;w--)s[w]>-1&&s[w]<e.length&&(p+=parseInt(e[s[w]--])*parseInt(n[w]));p+=u,u=Math.floor(p/10),h=p%10+h,f--}return h=Vt(ti(h,r)),o==1&&(h="-"+h),h}function ti(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 Vt(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 dl(e,n,o=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 l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Le(n.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Le(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=Le(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let h=e.length-f+a;e=Le(e.substring(0,h)+"."+e.substring(h))}else a==f&&(e=Le(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let f=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(f+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=f,u="0."+new Array(f).join("0")}for(o=o+2;r<=o;){let f=0;for(;parseInt(s)>=parseInt(n);)s=dn(s,"-"+n),f++;u+=f,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Le(Bt(u,o-2))}function hl(e,n){return e=e.toString(),n=n.toString(),n=ml(n),dn(e,n)}function ml(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 o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=hl(e,fl(n,Bt(dl(e,n),0,$e.FLOOR)));return o+l}function Ao(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Fo(e,n){let o=!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),o=!0),[e,n]=Dl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=$e;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[o,l]=n.split(/[eE]/);o=Le(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Le(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,l=$e.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Bt(n,o,l)}round(n=0,o=$e.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(Bt(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,$e.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,$e.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,$e.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,$e.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),dn(n,o)}add(n){return new de(dn(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),hl(n,o)}subtract(n){return new de(hl(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),fl(n,o)}multiply(n){return new de(fl(this.value,n.getValue()))}static divide(n,o,l){return n=de.validate(n),o=de.validate(o),dl(n,o,l)}divide(n,o){return new de(dl(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),Oo(n,o)}modulus(n){return new de(Oo(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),Fo(n,o)}compareTo(n){return Fo(this.value,n.getValue())}static negate(n){return n=de.validate(n),ml(n)}negate(){return new de(ml(this.value))}}function Ja(e,n){return de.multiply(`${e}`,`${n}`)}function Nl(e,n,o=8){return de.divide(`${e}`,`${n}`,o)}function gl(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Qa(e){return de.negate(e)}function xn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",f=r.indexOf(".");f!=-1&&(u=r.substring(0,f),s=r.substring(f+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let d="",p=u.split("").reverse();for(let w=0;w<p.length;w++)d+=p[w]+((w+1)%l==0&&w+1!=p.length?a:"");s.length==0?h=`${i}${d.split("").reverse().join("")}`:h=`${i}${d.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function er(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const El=kl,ni=Array.isArray,li=e=>wn(e)==="[object Map]",oi=e=>wn(e)==="[object Set]",st=e=>e instanceof Date,pl=e=>typeof e=="function",tr=e=>typeof e=="string",ai=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",hn=e=>He(e)&&pl(e.then)&&pl(e.catch),nr=Object.prototype.toString,wn=e=>nr.call(e),vl=e=>wn(e)==="[object Object]",lr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ri(e){return e.__esModule||lr&&e[Symbol.toStringTag]==="Module"}const ii=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function pt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let f;Array.isArray(s)?f=u&&Array.isArray(u)?u:[]:f=u&&typeof u=="object"?u:{},n[i]=pt(a,f,s)}else s!==void 0&&(n[i]=s)}}return n}function yl(e,n,o=!1){if(!o)pt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vl(i))continue;r=yl(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const l=Object.getOwnPropertySymbols(n);for(let a of l){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vl(i))continue;r=yl(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const el=ii?Promise.resolve():null;function si(e,...n){el!==null?n&&n.length>0?el.then(()=>{e(n)}):el.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const ui={"[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 mn(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ui[o]||"object"}function or(e){return e&&typeof e=="object"&&"setInterval"in e}function Sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ar(e){let n=!!e&&"length"in e&&e.length,o=mn(e);return o==="function"||or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function rr(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ci(e,n=[]){let o=n;return e!=null&&(ar(Object(e))?rr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=mn(e),l=mn(n);if(o!==l)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],f=n[u];if(!Ye(s,f))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Ye(r,i))return!1}return!0}return!1}const ct=typeof window<"u";function Il(e){return e==null}function bl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null||typeof e!="string"?!1:e.length===0;function ir(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function sr(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 o=n.indexOf(".");return o==-1?n.length:o}function ur(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Mo(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function fi(e,n=!0,o=!0){n?e=Mo(e,".",/\./g):e=e.replace(/\./g,""),o?e=Mo(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function di(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ye(e,o))return!0}):n.indexOf(e)}function hi(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function tt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function zt(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ie(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}const mi=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e},ke=Symbol.for("BroadcastKey");class Vl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,o,l){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=n.uniqueId,r={matched:n,action:o,args:l};return this.persistantMessages.set(a,r),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let l=!1;return!o.name||o.name==="*"||o.name==="+"||bl(o.name)&&n&&o.name.test(n)?l=!0:typeof o.name=="function"?l=Reflect.apply(o.name,null,[n]):o.name===n&&(l=!0),l}trigger(n,o,l){let a=null;const r=this.callbacks.get(o);typeof r=="function"&&(a=Reflect.apply(r,this.proxy,[...l]));const i=this.proxy??{};typeof i[o]=="function"&&(a=Reflect.apply(i[o],i,[...l])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(a)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(l=>{if(this.isMatched(this.name,l.matched))try{this.trigger(l.matched,l.action,l.args)}catch(a){console.error(a)}}),n=n.parent}}emit(n,o,...l){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,l),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,l)){const i=n.resolve,u=n.uniqueId??"",s=(...f)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...f)};n.resolve=s}n.cachePolicy="None"}let a=!1;!n.name||n.name==="*"?a=!0:n.name==="+"?(a=!1,n.name="*"):bl(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&r.push(s)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...r),n.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,o,...l){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,l),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,l)){const r=n.resolve,i=n.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};n.resolve=u}n.cachePolicy="None"}const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,o){this.callbacks.set(n,o)}}function Cn(e,n,o,l){const a=new Vl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function gi(e,n,o){const l=o;if(l[ke])return l[ke];const a=t.inject(ke,null),r=new Vl(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),l[ke]=void 0}),r}function Ft(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}class pi{error(n,o){const l=o,a=o||t.hasInjectionContext()?Ft(o):null;a?a.emit({name:"*"},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?Ft(n):null;l?l.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?Ft(n):null;l?l.emit({name:"*"},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=l||t.hasInjectionContext()?Ft(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Mt=new pi;function vi(e){Mt=e}function yi(e){Mt?Object.assign(Mt,e):Mt=e}function bi(e,n){mt.Schema.setValidator(e,n)}function xi(e){mt.Schema.deleteValidator(e)}let cr=["blur","clear"];function wi(e){cr=e}function fr(){return cr}let dr=["focus","change","setValue"];function Si(e){dr=e}function hr(){return dr}function Ci(e){mt.Schema.messages(e)}function Pt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Ut(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 Ze=Symbol("ValidateSchemaKey");class mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Ut(Pt(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let s={type:r};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(r);if(u!==null){let s={type:r,validator:u};l.push(s)}}this.attrRules=Ut(l);const a=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Mt;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,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,o,l=!1){l?mt.Schema.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?mt.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return mt.Schema.hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const l=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Pt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${l}`]:o},r=this.getValue(),i={[`${l}`]:r},u=new mt.Schema(a),s=this.proxy??i;return u.validate(i,{context:s}).then(h=>{if(h.pass)this.success();else{let d="error";Array.isArray(h.errors)&&h.errors.length>0&&(d=h.errors[0].message??d,h.errors=[h.errors[0]],h.errors[0].ref=s),this.error(d)}return h}).catch(h=>{const d=h.message??`${h}`;return this.error(d),h})}}return Promise.resolve({pass:!0})}}function Tn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new mr(n,o,e)}const gn=Symbol.for("EventEmitterKey");class gr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let a=l.findIndex(r=>r===o);a!==-1&&l.splice(a,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(a=>{try{Reflect.apply(a,null,[n,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ue(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function pr(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function Ti(e,n){const o=Ue((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function $i(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function $n(e,n,o,l=0,a=!0,r){let i=n,u=0;if(a){const f=e();if(u++,f){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}}const s=()=>{const f=e();if(u++,f){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const je=Symbol("DomainKey"),St=Symbol("DataItemsKey");class kn{_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,o=[]){for(const l in n){const a=n[l];o.length>0&&o.indexOf(a)!==-1||(this._props[l]=a)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const a=l._props[n];o.push(a)}l=l._parent}return o}}const ki=new kn;function Tt(){return ki}function ft(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[je]??t.inject(je,null):t.inject(je,null)}const tl=Symbol("OriginalDateKey");function Pl(e,n,o=[],l){const a=t.getCurrentInstance();let r=a?.proxy,i=t.inject(je,null);i===null&&(i=Tt());const u=e||n.prop||n.name;let s=new kn(u);s.parent=i;const f=m=>{r[tl]||p(m),s?.set("modelValue",m)},h=()=>s?.getForSelf("modelValue")??null,d=()=>r[tl]??null,p=m=>{const g={};pt(!0,g,t.toRaw(m)),r[tl]=g};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{s?.merge(m,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&p(n.modelValue);const w=(m,g)=>{s?.set(m,g)},S=m=>s?.getForSelf(m)??null;if(r[je]=s,t.provide(je,s),a!==null){const m=t.inject(ke,null),g=Cn(r,m,u,l);s.broadcast=g,r[ke]=g,t.provide(ke,g),r.broadcast=(c,N,...B)=>Reflect.apply(g.emit,g,[c,N,...B]);const L=t.inject(Ze,null),y=Tn(r,L,{componentName:""});s.validateSchema=y,r[Ze]=y,t.provide(Ze,y),r[St]=new Map,r.validate=(c=!0)=>{const N=[];let B=null;const R={deep:!1};if(c===!0)B={name:"*"};else if(Array.isArray(c)&&c.length>0){const C=c;B={name:I=>I?C.indexOf(I)!==-1:!1}}else if(c!=null&&typeof c=="object"){const C=c;if(Object.assign(R,C),Array.isArray(C.include)&&C.include.length>0){const I=C.include;B={name:x=>x?I.indexOf(x)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const I=C.exclude;B={name:x=>x?I.indexOf(x)===-1:!1}}else B={name:"*"}}if(B){const C=g?.emitToChildren(B,"validate",R);C&&Reflect.apply([].push,N,C)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(C=>{let I=[];return C.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(I=[...I,...x.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(c,N=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(c).forEach(C=>{let I=String(C);const x={componentName:"",fieldName:I,pureDataValidate:!0};if(s){const z=yr(s,I,x,g,y);r[St].set(I,z);const v=c[I];v&&z.validateSchema.setRule(v)}});return}if(N){const R=Reflect.ownKeys(c),C={name:I=>R.includes(I),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(C,"setNameValidateRules",c,!1)}},r.clearValidate=(c=!0)=>{let N=null;if(c===!0)N={name:"*"};else if(Array.isArray(c)&&c.length>0){const B=c;N={name:R=>R?B.indexOf(R)!==-1:!1}}else if(c!=null&&typeof c=="object"){const B=c;if(Array.isArray(B.include)&&B.include.length>0){const R=B.include;N={name:C=>C?R.indexOf(C)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const R=B.exclude;N={name:C=>C?R.indexOf(C)===-1:!1}}else N={name:"*"}}N&&g?.emitToChildren(N,"clearValidate",!1)},r.resetFields=c=>{const N=h();if(!N)return;const B={};if(pt(!0,B,d()??{}),Array.isArray(c))c.forEach(R=>{N[R]=B[R]});else if(c&&Array.isArray(c.include))(c.include??[]).forEach(C=>{N[C]=B[C]});else if(c&&Array.isArray(c.exclude)){let R=c.exclude??[];Reflect.ownKeys(B).forEach(C=>{R.includes(C)||(N[C]=B[C])})}else Object.assign(N,B);r.clearValidate(c)},r.setModelValue=(c,N)=>{if(!N||N===u)f(c);else{const B={name:N,messagingPolicy:"Once"};g?.emitToChildren(B,"setModelValue",c)}},r.getModelValue=()=>h(),r.setDomainProperty=(c,N)=>{w(c,N)},r.getDomainProperty=c=>S(c),setTimeout(function(){g?.pull()},0)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Ze]=void 0,t.provide(Ze,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[ke]=void 0,t.provide(ke,null)),s?.destroy(),r[je]=void 0,t.provide(je,null),r[St]&&(r[St].clear(),r[St]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function vr(e,n,o=[]){let a=t.getCurrentInstance()?.proxy,r=t.inject(je,null);r===null&&(r=Tt());const i=e||n.prop||n.name;let u=new kn(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,o),a[je]=u,t.provide(je,u),t.onUnmounted(()=>{u?.destroy(),a[je]=void 0,t.provide(je,null),u=null,a=null}),u}function De(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(ke,null);let u=Cn(a,i,r,o);a[ke]=u,t.provide(ke,u),a.broadcast=(S,m,...g)=>u?Reflect.apply(u.emit,u,[S,m,...g]):null;const s=t.inject(Ze,null);e.fieldName=e.fieldName??r;let f=Tn(a,s,e);a[Ze]=f,t.provide(Ze,f),a.validate=(S=null)=>{if(!f)return Promise.resolve({pass:!0});const m=[];let g=!1,L=!1;if(Array.isArray(S)&&S.indexOf(r)!==-1)L=!0,g=!0;else if(S&&typeof S=="object"){const y=S,c=y.ignoreDisabled??!0,N=y.ignoreReadonly??!0,B=y.ignoreHidden??!0;c===!0&&e.disabled===!0||N===!0&&e.readonly===!0||B===!0&&Sn(a.$el)?L=!1:(Array.isArray(y.include)&&y.include.indexOf(r)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(r),L=!0),g=y.deep??!1}else typeof S=="boolean"&&(g=S),L=!0;if(L){const y=f?.validate();m.push(y)}if(g){let y=null;const c={deep:!1};if(S===!0)y={name:"*"};else if(Array.isArray(S)&&S.length>0){const N=S;y={name:B=>B?N.indexOf(B)!==-1:!1}}else if(S!=null&&typeof S=="object"){const N=S;if(Object.assign(c,N),Array.isArray(N.include)&&N.include.length>0){const B=N.include;y={name:R=>R?B.indexOf(R)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const B=N.exclude;y={name:R=>R?B.indexOf(R)===-1:!1}}else y={name:"*"}}if(y&&u){const N=u.emitToChildren(y,"validate",c);Reflect.apply([].push,m,N)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let c=[];return y.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(c=[...c,...N.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,m=!1)=>{const g=S[r];if(g&&f?.setRule(g),m&&u){const L={name:y=>Reflect.ownKeys(S).includes(y)};u.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(n??"")!==-1)&&f?.clear();let m=null;if(S===!0)m={name:"*"};else if(Array.isArray(S)&&S.length>0){const g=S;m={name:L=>L?g.indexOf(L)!==-1:!1}}else if(S!=null&&typeof S=="object"){const g=S;if(Array.isArray(g.include)&&g.include.length>0){const L=g.include;m={name:y=>y?L.indexOf(y)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const L=g.exclude;m={name:y=>y?L.indexOf(y)===-1:!1}}else m={name:"*"}}m&&u&&u.emitToChildren(m,"clearValidate",!1)};let h=new gr(a);a[gn]=h;const d=Ue((S="validate")=>{f&&(S==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:fr()).forEach(S=>{h&&h.on(S,m=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:hr()).forEach(S=>{h&&h.on(S,m=>{d("reset")})}),setTimeout(function(){u?.pull()},0),t.onUnmounted(()=>{u?.destroy(),a[ke]=void 0,t.provide(ke,null),u=null,f?.destroy(),a[Ze]=void 0,t.provide(Ze,null),f=null,h?.destroy(),a[gn]=void 0,h=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null}),{broadcast:u,validateSchema:f,emitEvent:(S,...m)=>{h&&Reflect.apply(h.emit,h,[S,...m])},onEvent:(S,m)=>{h&&Reflect.apply(h.on,h,[m])},offEvent:(S,m)=>{h&&Reflect.apply(h.off,h,[m])}}}function yr(e,n,o,l,a){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};o.fieldName=i,o.validateHandler={getValue(h){return u.getValue()}};let s=Tn({},a,o);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let p=!1,w=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)w=!0,p=!0;else if(h&&typeof h=="object"){const S=h;Array.isArray(S.include)&&S.include.indexOf(i)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(i),w=!0,p=S.deep??!1}else typeof h=="boolean"&&(p=h),w=!0;if(w&&s){const S=s.validate();d.push(S)}if(p){let S=null;const m={deep:!1};if(h===!0)S={name:"*"};else if(Array.isArray(h)&&h.length>0){const g=h;S={name:L=>L?g.indexOf(L)!==-1:!1}}else if(h!=null&&typeof h=="object"){const g=h;if(Object.assign(m,g),Array.isArray(g.include)&&g.include.length>0){const L=g.include;S={name:y=>y?L.indexOf(y)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const L=g.exclude;S={name:y=>y?L.indexOf(y)===-1:!1}}else S={name:"*"}}if(S&&f){const g=f.emitToChildren(S,"validate",m);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(S=>{let m=[];return S.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(m=[...m,...g.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const d=h[i];d&&s?.setRule(d)};let f=Cn(null,l,i,r);return t.onUnmounted(()=>{s=null,f=null}),{broadcast:f,validateSchema:s}}function Ol(){let n=t.getCurrentInstance()?.proxy,o=new gr(n);return n[gn]=o,t.onUnmounted(()=>{o?.destroy(),n[gn]=void 0,o=null,n=null}),{emitEvent:(l,...a)=>{o&&Reflect.apply(o.emit,o,[l,...a])},onEvent:(l,a)=>{o&&Reflect.apply(o.on,o,[a])},offEvent:(l,a)=>{o&&Reflect.apply(o.off,o,[a])}}}const Pe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ve(e,n)}px`:"";function ve(e,n=-1){if(e==null)return 0;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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(ct){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const ut="PageStateKey";function Qe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ve(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ve(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ve(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ve(e.right))),n}function xl(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=ve(o.headerHeight??n.headerHeight??-1),e.headerPadding=Qe(o.headerPadding??n.headerPadding),e.footerHeight=ve(o.footerHeight??n.footerHeight??-1),e.footerPadding=Qe(o.footerPadding??n.footerPadding),e.contentPadding=Qe(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ve(s,r):e.height=ve(r)-ve(i,r)-ve(u,r),e.width=ve(o.width??n.width??0,a)}}function br(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=ve(a.top),l.safeAreaBottom=ve(a.bottom),l.safeAreaLeft=ve(a.left),l.safeAreaRight=ve(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;xl(l,r,n,!0,i,u,s,f);const h=t.reactive(l),d=e.getForParent(ut);d&&(l.height=pn(e,d),l.width=vn(e,d),t.watch([()=>pn(e,d),()=>vn(e,d)],([w,S])=>{h.height=w,h.width=S}));const p=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([w,S,m=-1,g=-1,L=0,y=0])=>{xl(h,S,n,p,m,g,L,y)}),e.set(ut,h),h}function Dn(e){return e.get(ut)}function Nn(e,n){if(n=n??e.get(ut),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function En(e,n){if(n=n??e.get(ut),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function pn(e,n){if(n=n??e.get(ut),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Nn(e,n),l=En(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function vn(e,n){return n=n??e.get(ut),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Di(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Ni(e){return!!e.getForParent(ut)}var Ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ke||{});function Gt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Oe(e,n,o=1,l){const a=ft();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(Gt(s,l))return s}const i=e.value;return Gt(i,l)?i:null}):t.computed(()=>{const r=e.value;if(Gt(r,l))return r;const i=a.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(Gt(s,l))return s}return null})}function Ae(e){return Oe(e,"readonly",1)}function Fe(e){return Oe(e,"disabled",1)}function me(e,n="modelValue",o=null,l){const a=t.toRef(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const i=t.ref(r);return t.watch(a,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const xr=new Map,yn=new Map;let wl=null;function Ei(e){wl=e}function wr(e,n,o){if(o){let l=yn.get(o);l||(l=new Map,yn.set(o,l)),l.set(e,n)}else xr.set(e,n)}function Re(e,n,o){!o&&wl&&(o=wl(e)??void 0);let l=null;if(o){let a=yn.get(o);a&&(l=a.get(n))}return l||(l=xr.get(n)),l}function Ii(e,n){for(let o in e){const l=e[o];wr(o,l,n)}}function Vi(e){yn.delete(e)}function Pi(){return{top:0,left:0,bottom:0,right:0}}function Oi(){if(ct){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ai(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Fi{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const i=Ai(r.name,o);n.component(i,r)}}),this.installers.forEach(r=>{r(n,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Tt();if(o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r={...o},i=Ue(()=>{const s={...r};this.initPageLayout(s,a)},120);new window.ResizeObserver(i).observe(window.document.body)}this.initPageLayout(o,a);for(const r in o)l.indexOf(r)===-1&&a.set(r,o[r])}initPageLayout(n,o){const l=n.headerBarHeight??0,a=n.footerBarHeight??0,r=pt({},Pi(),n.safeAreaInset),i=Oi(),u=pt({},i.pageLayout,n.pageLayout);o=o??Tt(),o.set("safeAreaInset",r),o.set("headerBarHeight",l),o.set("footerBarHeight",a),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ei(n)}setAPI(n,o,l){wr(n,o,l)}getAPI(n,o,l){return Re(n,o,l)}batchSetAPI(n,o){Ii(n,o)}clearScopeAPI(n){Vi(n)}getRootDomain(){return Tt()}}const Mi=[O.ElAffix,O.ElAlert,O.ElAutocomplete,O.ElAutoResizer,O.ElAvatar,O.ElBacktop,O.ElBadge,O.ElBreadcrumb,O.ElBreadcrumbItem,O.ElButton,O.ElButtonGroup,O.ElCalendar,O.ElCard,O.ElCarousel,O.ElCarouselItem,O.ElCascader,O.ElCascaderPanel,O.ElCheckTag,O.ElCheckbox,O.ElCheckboxButton,O.ElCheckboxGroup,O.ElCol,O.ElCollapse,O.ElCollapseItem,O.ElCollapseTransition,O.ElColorPicker,O.ElConfigProvider,O.ElContainer,O.ElAside,O.ElFooter,O.ElHeader,O.ElMain,O.ElDatePicker,O.ElDescriptions,O.ElDescriptionsItem,O.ElDialog,O.ElDivider,O.ElDrawer,O.ElDropdown,O.ElDropdownItem,O.ElDropdownMenu,O.ElEmpty,O.ElForm,O.ElFormItem,O.ElIcon,O.ElImage,O.ElImageViewer,O.ElInput,O.ElInputNumber,O.ElLink,O.ElMenu,O.ElSubMenu,O.ElMenuItem,O.ElMenuItemGroup,O.ElPageHeader,O.ElPagination,O.ElPopconfirm,O.ElPopover,O.ElPopper,O.ElProgress,O.ElRadio,O.ElRadioButton,O.ElRadioGroup,O.ElRate,O.ElResult,O.ElRow,O.ElScrollbar,O.ElSelect,O.ElOption,O.ElOptionGroup,O.ElSelectV2,O.ElSkeleton,O.ElSkeletonItem,O.ElSlider,O.ElSpace,O.ElSteps,O.ElStep,O.ElSwitch,O.ElTable,O.ElTableColumn,O.ElTableV2,O.ElTabs,O.ElTabPane,O.ElTag,O.ElTimePicker,O.ElTimeSelect,O.ElTimeline,O.ElTimelineItem,O.ElTooltip,O.ElTransfer,O.ElTree,O.ElTreeSelect,O.ElTreeV2,O.ElUpload,O.ElStatistic,O.ElCountdown,O.ElSegmented,O.ElAnchor,O.ElAnchorLink,O.ElWatermark,O.ElMessageBox,O.ElMessage,O.ElNotification],Ri=[O.ElInfiniteScroll,O.ElLoading,O.ElMessage,O.ElMessageBox,O.ElNotification,O.ElPopoverDirective],Bi=(e,n={})=>{const o=n.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Mi.forEach(a=>{let r=a.name;typeof r=="string"?(r=`${l}${r.slice(2)}`,e.component(r,a)):e.use(a)}),Ri.forEach(a=>{e.use(a)})};function ie(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function ye(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Sr={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}},Cr={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Tr=[];for(const e in Cr)Tr.push(e);const Li=Symbol.for("InnerPageScopeKey"),_i={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},qi=(e,n)=>({inheritAttrs:!0,props:{...Se,...Sr,..._i},setup(o,{slots:l}){const a=Pl(o.name,o),r=t.inject(Li,!1);if(a){const h=br(a,o);ye({getPageContentHeight:()=>pn(a,h),getPageContentWidth:()=>vn(a,h),getPageHeaderHeight:()=>Nn(a,h),getPageFooterHeight:()=>En(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),f=(h,d=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(h,!0,d)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,d],[p,w])=>{if(h&&p){const S=t.toRaw(p),m=t.toRaw(h),g=m?Reflect.ownKeys(m):[];(S?Reflect.ownKeys(S):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),f(m)}if(d&&w){const S=t.toRaw(w),m=t.toRaw(d),g=m?Reflect.ownKeys(m):[];(S?Reflect.ownKeys(S):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),f(m,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);f(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);f(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:zi,create:ji}=ie("page"),Al=ji(qi(zi));function Fl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function In(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}const Hi=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=ft(),u=i?Dn(i):null;u&&(u.headerMounted=!0);const s=e,f=t.computed(()=>({[s]:!0,[`${s}--border`]:a.border,[`${s}--fixed`]:a.fixed,[`${s}--safe-area-inset-top`]:a.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${a.align}`]:!0})),d=a.height!==null&&a.height!==void 0?ve(a.height):null,p=t.computed(()=>{const v={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const P=Qe(a.padding??u.headerPadding);return Object.assign(v,P),d&&(u.headerHeight=d),u.headerHeight>0&&(v.height=u.headerHeight),v.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,v.safeAreaTop>0&&(v.top=v.safeAreaTop+(P.top??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaTop)),v}if(d&&(v.height=d),a.padding){const P=Qe(a.padding);Object.assign(v,P)}return v}),w=t.ref(null),S=()=>{if(u&&w.value&&!Sn(w.value)){if(!l){const v=Fl(w.value);u.headerAllHeight=v.height}return u.headerMounted=!0,!0}return!1},m=Ue(S,120);let g=null;t.onMounted(()=>{u&&($n(S,50,5,50,!0),window.ResizeObserver&&w.value&&(g=new window.ResizeObserver(m),g.observe(w.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,g&&(g.disconnect(),g=null))});const L=t.computed(()=>{const v={};return p.value.height!==null&&p.value.height!==void 0&&(v.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(v.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(v.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(v.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(v.paddingBottom=`${p.value.bottom}px`),v}),y=t.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function c(){r.emit("back")}function N(){r.emit("click-title")}function B(){r.emit("click-right")}function R(){r.emit("click-right-text")}const C=()=>{if(!a.leftShow)return null;const v=[];if(r.slots.left)v.push(r.slots.left());else{if(r.slots.leftIcon){const P=t.h("view",{class:"left-icon",onClick:c},[r.slots.leftIcon()]);v.push(P)}else if(a.leftIcon){const P=t.h("view",{class:"left-icon",onClick:c},[t.h(a.leftIcon)]);v.push(P)}if(a.leftText){const P=t.h("view",{class:"left-text",onClick:c},[a.leftText]);v.push(P)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__left"},v)},I=()=>{if(!a.rightShow)return null;const v=[];if(r.slots.right)v.push(r.slots.right());else{if(a.rightText){const P=t.h("view",{class:"right-text",onClick:R},[a.rightText]);v.push(P)}if(r.slots.rightIcon){const P=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);v.push(P)}else if(a.rightIcon){const P=t.h("view",{class:"right-icon",onClick:B},[t.h(a.rightIcon)]);v.push(P)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__right"},v)},x=()=>{if(!a.titleShow)return null;const v=[],P=r.slots.default?r.slots.default():null;if(P)v.push(P);else{if(a.title){const U=t.h("view",{class:"title-text"},[a.title]);v.push(U)}if(r.slots.titleIcon){const U=t.h("view",{class:"title-icon",onClick:N},[r.slots.titleIcon()]);v.push(U)}else if(a.titleIcon){const U=t.h("view",{class:"title-icon",onClick:N},[t.h(a.titleIcon)]);v.push(U)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__title"},v)},z=()=>{const v=[],P=r.slots.bottom?r.slots.bottom():null;return P&&v.push(P),v.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},v)};return()=>{if(!y.value)return null;const v=[];if(r.slots.all)v.push(r.slots.all());else{const U=[],M=C();M&&U.push(M);const $=x();$&&U.push($);const _=I();if(_&&U.push(_),U.length>0){const X=t.h("view",{class:h.value},U);v.push(X)}const F=z();F&&v.push(F)}if(v.length===0)return null;const P={class:f.value,style:L.value,ref:w};return t.h("view",P,v)}}}),{componentName:Ki,create:Wi,scope:Yi}=ie("header-bar"),Ml=Wi(Hi(Ki,Yi,Ee.ArrowLeft));function Ui(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=ft(),i=r?Dn(r):null,u=t.computed(()=>{const m=e;return{[m]:!0,[`${m}--${l.align}`]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed,[`${m}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?ve(l.height):null,f=t.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const g=Qe(l.padding??i.footerPadding);return Object.assign(m,g),s&&(i.footerHeight=s),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(g.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(s&&(m.height=s),l.padding){const g=Qe(l.padding);Object.assign(m,g)}return m}),h=t.ref(null),d=()=>{if(i&&h.value&&!Sn(h.value)){if(!o){const m=Fl(h.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1},p=Ue(d,120);let w=null;t.onMounted(()=>{i&&($n(d,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(p),w.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const S=t.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=Pe(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=Pe(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=Pe(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=Pe(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=Pe(f.value.bottom)),m});return()=>{const m=a.slots.default?a.slots.default():[],g={ref:h,class:u.value,style:S.value};return t.h("view",g,m)}}}}const{componentName:Gi,create:Xi}=ie("footer-bar"),Rl=Xi(Ui(Gi));function Zi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=ft(),i=t.computed(()=>({[e]:!0})),u=r?Dn(r):null,s=t.computed(()=>{const w={};if(r&&u){if(o.padding){const B=Qe(o.padding);Object.assign(u.contentPadding,B)}const S=Nn(r,u),m=En(r,u);let g="";u.contentHeight?g=`${u.contentHeight}`:g=`${u.height}px`,w.height=g;let L=(u&&u.contentPadding&&u.contentPadding.top)??-1;(L>=0||S>0)&&(L=L<0?0:L,w.paddingTop=`${S+L}px`);let y=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(y>=0||m>0)&&(y=y<0?0:y,w.paddingBottom=`${m+y}px`);const c=(u&&u.contentPadding&&u.contentPadding.left)??-1;c>=0&&(w.paddingLeft=`${c}px`);const N=(u&&u.contentPadding&&u.contentPadding.right)??-1;return N>=0&&(w.paddingRight=`${N}px`),w}if(o.padding){const S=Qe(o.padding);S.left&&(w.paddingLeft=`${S.left}px`),S.top&&(w.paddingTop=`${S.top}px`),S.right&&(w.paddingRight=`${S.right}px`),S.bottom&&(w.paddingBottom=`${S.bottom}px`)}return w}),f=t.ref(null),h=()=>{if(u&&f.value){const w=In(f.value);u.contentInnerHeight=w.height,u.contentInnerWidth=w.width}},d=Ue(h,120);let p=null;return t.onMounted(()=>{requestAnimationFrame(h),window.ResizeObserver&&f.value&&(p=new window.ResizeObserver(d),p.observe(f.value))}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const w=o.tag??"view",S={...a,ref:f,class:i.value,style:s.value};return t.h(w,S,l)}}}}const{componentName:Ji,create:Qi}=ie("content"),Bl=Qi(Zi(Ji)),Dt="GroupStateKey",$r=Symbol.for("GroupScopeKey");function Vn(){return t.inject($r,!1)}function Pn(e=!0){t.provide($r,e)}function es(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];Il(a)||(e[l]=a)})}function ts(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};es(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(Dt,r),r}function nl(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(Dt);if(!s)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),l===-1&&(l=f.gutter??0),r||(r=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const h=ve(r),d=ve(i);u||(u=f.type??"grid");const p=()=>{const w=n===""||n===-1,S=ve(n);let m=pe(o);const g=ve(l);if(!w){let c=(S-(m-1)*g)/m;for(;d!==-1&&c>d;)m++,c=(S-(m-1)*g)/m;for(;h!==-1&&m>1&&c<h;)m--,c=(S-(m-1)*g)/m}let L=!1;const y=s.layout;y.value.width=n,y.value.column!==m&&(y.value.column=m,L=!0),y.value.gutter!==g&&(y.value.gutter=g,L=!0),y.value.type!==u&&(y.value.type=u,L=!0),L&&t.triggerRef(y)};if(a)p();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&p()},50)}}function On(e,n=!1){let o;return n?o=e.getForParent(Dt):o=e.get(Dt),o.layout}function An(e,n=!1){let o;return n?o=e.getForParent(Dt):o=e.get(Dt),o.order}function Ro(e,n=1){if(n==="stretch")return-1;const o=pe(n);return o===-1?100:100*o/e}function Fn(e,n,o=1,l=0,a){const r={};let i=0;a?i=ve(a):i=Ro(n.column,o),i>0&&(r.width=`${i}%`);const u=Ro(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Mn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,f=s+(n.column-s);return e.index=e.index+(f-s),{"grid-column":`${s+1} / -1`}}let a=pe(o);if(a===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=pe(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const kr=Symbol("RollingStateKey");function ns(e){t.provide(kr,e)}function ls(){return t.inject(kr,null)}function Sl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function os(e){let n=Sl(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Sl(o),document.body.removeChild(o)}return n}function as(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const i=(l-(a-1)*r)/a;return i>0?`${i}px`:"1fr"}const rs={...Se,...Sr,...Cr};function is(e,n,o){return{props:rs,emits:["update:collapse","header-click"],setup(l,a){const r=Pl(l.prop??l.name,l,Tr),i=ts(r,{type:l.type}),u=Vn();Pn(!0);const s=l.rollingDisplay?ls():null,f=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),d=t.computed(()=>u&&r?On(r,!0).value:null),p=t.getCurrentInstance(),w=(b,W=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(b,!0,W)};t.watch([()=>l.rules,()=>l.pureDataRules],([b,W],[Z,D])=>{if(b&&Z){const K=t.toRaw(Z),J=t.toRaw(b),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),w(J)}if(W&&D){const K=t.toRaw(D),J=t.toRaw(W),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),w(J,!0)}},{deep:!0});const S=e,m=t.computed(()=>{const b={};b.height=$.value;const W=u?An(r,!0):null;if(d.value&&W){if(d.value.type==="grid"){const Z=Mn(W,d.value,l.span,l.offset);Object.assign(b,Z)}else if(d.value.type==="flow"){const Z=Fn(W,d.value,l.span,l.offset,l.width);Object.assign(b,Z)}}else if(l.width){const Z=Pe(l.width);b.width=Z}return b}),g=t.computed(()=>{const b=i.layout.value.type;return b==="grid"||b==="flow"?{[`${S}--${b}`]:!0,[`${S}--${b}-justify-${l.justify}`]:!0,[`${S}--${b}-align-${l.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${b}`]:!0,[`${S}--gutter`]:!0}}),L=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(l.columnWidth)W=`repeat(auto-fill, ${l.columnWidth})`;else{const Z=as(I.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),y=t.toRef(l,"gutter"),c=t.toRef(l,"column"),N=t.computed(()=>u||h.value?!0:fe(l.isWrap)),B=[],R=b=>{B.push(b)},C=()=>{let b=B.length;B.splice(0,b)},I=t.ref(-1),x=b=>{const W=In(b).width;W>0&&W!==I.value&&(I.value=W)};nl(r,I.value,c.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([I,c,y],([b,W,Z])=>{i.order.index=0,nl(r,b,W,Z,!1,l.minItemWidth,l.maxItemWidth,l.type)});const z=t.computed(()=>_.value?l.expandText??"":l.collapseText??""),v=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),U=t.ref(),M=t.ref(),$=t.computed(()=>F.value||Pe(l.height)||""),_=t.ref(!1),F=t.ref(""),X=t.ref(!1);let Y=-1;const H=(b,W=!0)=>{const Z=U.value;if(Z&&_.value!==b){if(Y=Y===-1?os(Z):Y,X.value=!0,W)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",b||(F.value="",X.value=!1)},b){let D=0;l.collapseHeight?D=l.collapseHeight:M.value&&M.value.classList.contains(`${e}__header`)&&(D=M.value.offsetHeight),F.value=`${Y}px`,t.nextTick(()=>{F.value=`${D}px`})}else F.value=`${Y}px`;else if(b){let D=0;l.collapseHeight?D=l.collapseHeight:M.value&&M.value.classList.contains(`${e}__header`)&&(D=M.value.offsetHeight),F.value=`${D}px`}else X.value=!1,F.value=`${Y}px`;_.value=b,a.emit("update:collapse",b)}};t.watch(()=>l.collapse,b=>{H(b)});const ee=b=>{a.emit("header-click",b)},k=()=>{V()},V=b=>{b=b??!_.value,H(b)};ye({toggleCollapse:V,doLayout:()=>{B[0]&&(x(B[0]),nl(r,I.value,c.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let q=null,E=!0;const Q=b=>{if(l.rules){const W=t.toRaw(l.rules);w(W)}if(l.pureDataRules){const W=t.toRaw(l.pureDataRules);w(W,!0)}if(ct&&(b&&H(fe(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const W=B[0];if(x(W),window.ResizeObserver){const Z=Ue(()=>x(W),120);q=new window.ResizeObserver(Z),q.observe(W)}}},te=()=>{q?.disconnect(),q=null},G=!h.value||s?.acquire();G&&(f.value=h.value?!0:null),t.onMounted(()=>{if(G&&(Q(E),E=!1),h.value&&s){let b=null,W=s.initialHeight;s.observe(U.value,Z=>{if(Z!==f.value)if(Z)f.value=!0,_.value||(F.value=""),b=setTimeout(()=>{b=null,f.value!==!1&&(Q(E),E=!1)},100);else{if(b!==null&&clearTimeout(b),f.value=!1,!_.value)if(E)F.value=s.initialHeight;else{let D=Sl(U.value);D<=0?F.value=W:(F.value=`${D}px`,W=F.value)}E||te()}})}}),t.onUnmounted(()=>{q?.disconnect(),s&&s.unobserve(U.value)});const T=(b="right")=>{const W=[];if(z.value){const K={class:v.value},J=t.h("span",K,[z.value]);W.push(J)}const Z={class:P.value},D=o(l.collapseIcon,Z);return D&&W.push(D),W.length>0?t.h("div",{class:{[`${S}__header-collapse`]:!0,[`is-${b}`]:!0},onClick:k},W):null},A=(b,W,Z,D)=>{const K={...g.value};if(W===0&&(K[`${S}__first`]=!0),Z>=D-1&&(K[`${S}__last`]=!0),N.value===!1){const J=a.attrs.class;J&&(K[`${J}`]=!0)}return t.h("div",{ref:R,key:`${W}`,class:K,style:L.value},b)};return()=>{if(h.value&&f.value!==!0){const K=l.tag||"div";return t.h(K,{ref:U,prop:l.name,class:{[`${S}`]:!0,"is-collapse":X.value},style:m.value},[])}i.order.index=0;const b=[];let W=0;if(a.slots.header){const K={key:`${W++}`,ref:M,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:ee},J=t.h("div",K,[a.slots.header()]);b.push(J)}else{const K=[],J=l.collapsePosition==="left";if(J&&l.showCollapse){const le=T("left");le&&K.push(le)}if(l.title||a.slots.title){if(l.showMark){const le={class:{[`${S}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const se=t.h("div",le);K.push(se)}if(a.slots.title){const le=t.h("div",{class:{[`${S}__header-title`]:!0}},[a.slots.title()]);K.push(le)}else if(l.title){const le=t.h("div",{class:{[`${S}__header-title`]:!0}},[l.title]);K.push(le)}}if(a.slots.toolbar&&K.push(a.slots.toolbar()),!J&&l.showCollapse){const le=T("right");le&&K.push(le)}if(K.length>0){const le={key:`${W++}`,ref:M,class:{[`${S}__header`]:!0,[`${S}__first`]:!0},onClick:ee},se=t.h("div",le,K);b.push(se)}}C();const Z=a.slots.default?a.slots.default():[],D=i.layout.value.type;if(D==="grid"){const K=A(Z,W++,0,Z.length);b.push(K)}else if(D==="flow"){const K=A(Z,W++,0,Z.length);b.push(K)}else for(let K=0;K<Z.length;K++){const J=Z[K],le=A([J],W++,K,Z.length);b.push(le)}if(N.value){const K=l.tag||"div";return t.h(K,{ref:U,prop:l.name,class:{[`${S}`]:!0,"is-collapse":X.value},style:m.value},[b])}else return b}}}}const{componentName:ss,create:us,scope:cs}=ie("group"),fs=(e,n)=>(e=e??Ee.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),Ll=us(is(ss,cs,fs));function ds(e){return e===window}const hs=/matrix\((.+)\)/,_l=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ds(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const h=hs.exec(f);if(h){let p=h[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}};class ms{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class gs{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r||(r=new ms,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Rt=new gs,Dr={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:ps,create:vs}=ie("price"),ys=vs({props:{...Dr},setup(e){const n=t.computed(()=>({[ps]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>tt(e.price)==0?"":xn(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:a,decimalText:r}}}),Me=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},bs=["innerHTML"],xs=["innerHTML"];function ws(e,n,o,l,a,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,bs)):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,xs)):t.createCommentVNode("",!0)],2)}const Rn=Me(ys,[["render",ws]]),{componentName:ll,create:Ss}=ie("hint-text"),Cs=Ss({components:{Price:Rn},props:{...Dr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),f=(v,P,U,M,$,_)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,Y=v.split("-");let H=[];Y[0]==="top"?H=["top","bottom","right","left"]:Y[0]==="bottom"?H=["bottom","top","right","left"]:Y[0]==="left"?H=["left","top","bottom","right"]:Y[0]==="right"&&(H=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},k=[];for(let V=0;V<H.length;V++){const j=H[V];if(k[0]=j,Y[1]&&(k[1]=Y[1]),j==="top"){const q=P.y-_-e.arrowSize-e.offset;if(q>=0){ee.top=q;let E=0;Y[1]==="start"?E=P.x:Y[1]==="end"?E=P.x+U-$:E=P.x+U/2-$/2;const Q=F-E-$;Q<0?(E+=Q,d.value=-Q):d.value=0,ee.left=E<0?0:E;break}}else if(j==="bottom"){const q=P.y+M+e.arrowSize+e.offset;if(q+_<=X){ee.top=q;let E=0;Y[1]==="start"?E=P.x:Y[1]==="end"?E=P.x+U-$:E=P.x+U/2-$/2;const Q=F-E-$;Q<0?(E+=Q,d.value=-Q):d.value=0,ee.left=E<0?0:E;break}}else if(j==="left"){const q=P.x-$-e.arrowSize-e.offset;if(q>=0){ee.left=q;let E=0;Y[1]==="start"?E=P.y:Y[1]==="end"?E=P.y+M-_:E=P.y+M/2-_/2,ee.top=E<0?0:E;break}}else if(j==="right"){const q=P.x+U+e.arrowSize+e.offset;if(q+$<=F){ee.left=q;let E=0;Y[1]==="start"?E=P.y:Y[1]==="end"?E=P.y+M-_:E=P.y+M/2-_/2,ee.top=E<0?0:E;break}}}return{bestPlacement:k.join("-"),bestInsetRect:ee}},h=(v,P,U=10)=>{if(!ct||P===!1||!v)return;l.value=_l(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const M=s.value.offsetHeight,$=s.value.offsetWidth,{bestPlacement:_,bestInsetRect:F}=f(e.placement,l.value,a.value,r.value,$,M);i.value=_,o.value=F,u.value=!0},d=t.ref(0),p=Ue(()=>{h(e.message,e.visible)},10),w=t.ref(e.visible);t.watch(()=>e.visible,v=>{w.value=v});const S=t.computed(()=>w.value&&m.value),m=t.ref(!0),g=Ue(v=>{const P=v[0];P&&(m.value=P.isIntersecting)},10),L=new IntersectionObserver(g);t.watch([()=>e.message,()=>e.visible],([v,P])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Rt.watch(e.reference,p),L.observe(e.reference)}),t.onBeforeUnmount(()=>{Rt.unwatch(e.reference,p),L.unobserve(e.reference),L.disconnect()});const y=t.computed(()=>{const v={[ll]:!0};return i.value.startsWith("top")?v["is-top"]=!0:i.value.startsWith("right")?v["is-right"]=!0:i.value.startsWith("bottom")?v["is-bottom"]=!0:i.value.startsWith("right")&&(v["is-right"]=!0),e.size==="small"?v["is-small"]=!0:e.size==="large"&&(v["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(v[`${e.customClass}`]=!0),v}),c=t.computed(()=>{const v={};o.value.top!==null&&(v.top=`${o.value.top}px`),o.value.right!==null&&(v.right=`${o.value.right}px`),o.value.bottom!==null&&(v.bottom=`${o.value.bottom}px`),o.value.left!==null&&(v.left=`${o.value.left}px`),e.autoFit&&(v["min-width"]=`${a.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return v["max-width"]=`${P}px`,u.value&&(v.opacity="1"),e.transition||(v.transition="none"),e.zIndex&&(v["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(v,e.customStyle),v}),N=t.computed(()=>{const v=[`${ll}__content`];return e.customTextClass&&v.push(e.customTextClass),v}),B=t.computed(()=>{const v={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(v,e.customTextStyle),v}),R=t.computed(()=>({[`${ll}__arrow`]:!0})),C=t.computed(()=>{const v={};return e.showArrow?(v.width=`${e.arrowSize}px`,v.height=`${e.arrowSize}px`,i.value==="top"?(v.left="50%",v.bottom=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="top-start"?(v.left=`${e.arrowOffset+d.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(v.right=`${e.arrowOffset-d.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="right"?(v.left=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="right-start"?(v.left=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="right-end"?(v.left=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(v.left="50%",v.top=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(v.left=`${e.arrowOffset+d.value}px`,v.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(v.right=`${e.arrowOffset-d.value}px`,v.top=`-${e.arrowSize}px`):i.value==="left"?(v.right=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="left-start"?(v.right=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="left-end"&&(v.right=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`),v):{display:"none"}}),I=t.computed(()=>S.value&&e.closeOnClick),x=t.computed(()=>{const v={};return e.zIndex&&(v["z-index"]=`${e.zIndex}`),v});return{show:S,tipRef:s,classes:y,styles:c,textClasses:N,textStyles:B,arrowClasses:R,arrowStyles:C,overlayShow:I,overlayStyle:x,onClickOverlay:()=>{w.value=!1,n.emit("update:visible",!1)}}}}),Ts=["innerHTML"];function $s(e,n,o,l,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),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(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ts))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const jt=Me(Cs,[["render",$s]]);class Nr{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 Cl={},ks=new Nr,$t=new Map,bn=e=>{if(e){const n=document.getElementById(e);$t.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of $t.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}$t.clear()}},Ds=e=>{e.unmount=bn;const n=document.getElementById(e.id);if(n){const o=$t.get(e.id);o?e={...Cl,...o,...e}:e={...Cl,...e},e.transition=!1;const l=t.createVNode(jt,e);t.render(l,n)}return e.id},Ns=e=>{e.unmount=bn;let n=e.id??`hinttext_${ks.get()}`;e={...Cl,...e},e.id=n,$t.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(jt,e);return t.render(l,o),document.body.appendChild(o),n},Es=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},qe={show(e,n,o={},l=!0){Es(n);const a=o.id;return a&&$t.has(a)?Ds({...o,message:n,reference:e}):(l&&bn(),Ns({...o,message:n,reference:e}))},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=qe}};function Is(e,n,o,l=!1){return{inheritAttrs:!0,props:{...Se,...Ve},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;De({componentName:e,validate:!1},i);const u=ft(),s=Vn();Pn(!1);const f=t.computed(()=>s&&u?On(u,!1).value:null),h=e,d=t.ref(null),p=t.computed(()=>{const D={[h]:!0,[`${h}__gutter`]:f.value&&f.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:fe(a.hasBorder)};if(D[a.errorMarkClass]=!!_.value,D[a.warnMarkClass]=!!M.value,D[a.infoMarkClass]=!!P.value,typeof d.value=="function"){const K=d.value(i);D[K]=!0}else if(typeof d.value=="string"){const K=d.value;D[K]=!0}return D}),w=t.ref(null),S=t.computed(()=>{const D={};if(a.width)a.width!=="auto"&&(D.width=Pe(a.width));else{const K=s&&u?An(u,!1):null;if(f.value&&K){if(f.value.type==="grid"){const J=Mn(K,f.value,a.span,a.offset);Object.assign(D,J)}else if(f.value.type==="flow"){const J=Fn(K,f.value,a.span,a.offset,a.width);Object.assign(D,J)}}}if(typeof w.value=="function"){const K=w.value(i);K&&Object.assign(D,K)}else if(w.value&&typeof w.value=="object"){const K=w.value;Object.assign(D,K)}return D}),m=t.ref(null),g=t.computed({get:()=>m.value??fe(a.isRequired),set:D=>{m.value=D}}),L=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",y=Oe(t.toRef(a,"labelPosition"),"labelPosition",Ke.Near),c=t.computed(()=>y&&y.value==="top"?"top":y&&y.value==="right"?"right":"left"),N=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${c.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${c.value}`]:!0})),R=Oe(t.toRef(a,"labelWidth"),"labelWidth",Ke.Near),C=t.computed(()=>R&&R.value?{width:Pe(R.value)}:{}),I=t.computed(()=>({"label--string":!0,"label--required":g.value})),x=t.computed(()=>({content:!0,[a.contentClass]:!0})),z=t.computed(()=>({...a.contentStyle})),v=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(D){g.value=D},setErrorTip(D){v.errorTip=D},setErrorIcon(D){v.errorIcon=D},setWarnTip(D){v.warnTip=D},setWarnIcon(D){v.warnIcon=D},setInfoTip(D){v.infoTip=D},setInfoIcon(D){v.infoIcon=D},setCustomClassName(D){d.value=D},setCustomStyle(D){w.value=D}});const P=t.computed(()=>a.infoTip||v.infoTip),U=t.computed(()=>a.infoIcon||v.infoIcon),M=t.computed(()=>a.warnTip||v.warnTip),$=t.computed(()=>a.warnIcon||v.warnIcon),_=t.computed(()=>a.errorTip||v.errorTip),F=t.computed(()=>a.errorIcon||v.errorIcon),X=t.computed(()=>_.value?"error":M.value?"warn":P.value?"info":""),Y=()=>X.value.length>0,H=t.computed(()=>X.value==="error"?_.value:X.value==="warn"?M.value:X.value==="info"?P.value:""),ee=t.computed(()=>X.value==="error"?F.value:X.value==="warn"?$.value:X.value==="info"?U.value:null),k=t.computed(()=>{const D={[`${h}__tip`]:!0,[`${h}__tip--${X.value}`]:!0,[`${h}--animate`]:!0};return X.value==="error"&&a.errorClass?D[`${a.errorClass}`]=!0:X.value==="warn"&&a.warnClass?D[`${a.warnClass}`]=!0:X.value==="info"&&a.infoClass&&(D[`${a.infoClass}`]=!0),D}),V=t.computed(()=>{const D={};return y&&y.value==="top"||!L()?D["padding-left"]="0px":R&&R.value&&(D["padding-left"]=Pe(R.value)),D}),j=t.ref();let q="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([D,K,J,le])=>{j.value&&(D&&!he(K)?q?o.show(j.value,K,{...le,id:q,type:J},!0):q=o.show(j.value,K,{...le,type:J},!0):o.hide(q))});let E=null;const Q=()=>{E||!j.value||(E=new IntersectionObserver(D=>{let K=!1;for(let J of D)if(J.intersectionRatio>0){K=!0,K&&r.emit("appear",J);break}K||r.emit("disappear")}),E.observe(j.value))},te=()=>{!E||!j.value||(E.unobserve(j.value),E=null)};t.watch(()=>fe(a.appearListen),D=>{D?Q():te()}),t.onMounted(()=>{fe(a.appearListen)&&Q()}),t.onUnmounted(te);const G=()=>{if(!L())return null;const D=[],K=r.slots?.label?.()??a.label,J={class:I.value},le=t.h("div",J,[K]);if(D.push(le),r.slots.fixedPreTip){const ue=r.slots.fixedPreTip();D.push(ue)}const se={class:B.value,style:C.value};return t.h("div",se,D)},T=()=>{const D=[];if(r.slots.prepend){const J=r.slots.prepend();D.push(J)}if(r.slots.default){const J=r.slots.default();D.push(J)}if(r.slots.append){const J=r.slots.append();D.push(J)}if(r.slots.fixedTip){const J={class:[`${h}__fixed-tip`]},le=t.h("div",J,[r.slots.fixedTip()]);D.push(le)}const K={ref:j,class:x.value,style:z.value};return t.h("div",K,D)},A=()=>{const D=ee.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--icon"},[D()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(D)]):null},b=()=>{const D=H.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--text"},[D()]):t.h("div",{class:"fox-item__tip--text"},[D]):null},W=()=>{if(!Y())return null;const D=[],K=A();K&&D.push(K);const J=b();J&&D.push(J);const le={class:k.value,style:V.value};return t.h("div",le,D)},Z=()=>r.slots?.hide?.()??null;return()=>{const D=[],K=[],J=G();J&&K.push(J);const le=T();le&&K.push(le);const se={class:N.value},ue=t.h("div",se,K);D.push(ue);const be=W();be&&D.push(be);const ge=Z();ge&&D.push(ge);const Te={class:p.value,style:S.value,prop:a.prop};return t.h("div",Te,D)}}}}const{componentName:Vs,create:Ps,scope:Os}=ie("item"),Ce=Ps(Is(Vs,Os,qe,!1)),As={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Fs(e,n){return{props:{...As},setup(o,l){const a=ft(),r=Vn();Pn(!1);const i=t.computed(()=>r&&a?On(a,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),f=t.computed(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=Pe(o.width));else{const d=r&&a?An(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const p=Mn(d,i.value,o.span,o.offset);Object.assign(h,p)}else if(i.value.type==="flow"){const p=Fn(d,i.value,o.span,o.offset,o.width);Object.assign(h,p)}else return o.width&&(h.width=Pe(o.width)),h}return h});return()=>{const h={class:s.value,style:f.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:Ms,create:Rs}=ie("slot-item"),ql=Rs(Fs(Ms));function Bs(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,String],required:!1,default:!1}},setup(o,l){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=ft(),u=Vn();Pn(!1);const s=t.computed(()=>{const f={};if(u&&i){const h=On(i,!1),d=An(i,!1);if(h.value&&d)if(h.value.type==="grid"){const p=Mn(d,h.value,o.span,o.offset);Object.assign(f,p)}else if(h.value.type==="flow"){const p=Fn(d,h.value,o.span,o.offset,o.width);Object.assign(f,p)}else o.width&&(f.width=Pe(o.width))}else o.width&&(f.width=Pe(o.width));return f});return()=>{const f=[];if(l.slots.default){const d=l.slots.default();if(o.divide)for(let p=0;p<d.length;p++){if(p>0){const w=t.h("div",{class:{[`${a}__divide`]:!0}});f.push(w)}f.push(d[p])}else Reflect.apply([].push,f,d)}const h={class:r.value,style:s.value};return t.h("div",h,f)}}}}const{componentName:Ls,create:_s}=ie("row-item"),zl=_s(Bs(Ls)),nt=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Bo={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 qs(e,n,o){return{props:{...Se,...Ve,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=e,m=t.computed(()=>({[S]:!0,[`${S}__disabled`]:i.value,[`${S}__readonly`]:s.value})),g=$=>{w.value=$,f("update:modelValue",$),f("input",$)},L=$=>{f("change",$)};let y=me(l,"hintText"),c=t.ref(!1);const N=$=>{let F=$.target.value;p.value=!0,he(y.value)||(c.value=!0),f("focus",F,$)},B=$=>{setTimeout(()=>{c.value&&(c.value=!1),p.value=!1},0);let F=$.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),f("blur",F,$)},R=()=>{f("clear","")},C=t.ref(!1);let I=null;const x=()=>{l.showTooltip&&C.value===!1&&(I&&clearTimeout(I),I=setTimeout(()=>{C.value=!0},150))},z=()=>{I&&(clearTimeout(I),C.value=!1,I=null)},v=t.computed(()=>C.value||c.value),P=t.computed(()=>C.value?w.value:y.value),U=t.computed(()=>tt(l.unit)>0),M=t.ref();return ye({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:$=>{r.value=$},setReadonly:$=>{u.value=$}}),()=>{const _={...nt(a.attrs),ref:M,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onChange:L,onInput:g,onFocus:N,onBlur:B,onMouseover:x,onMouseleave:z},F={};a.slots.prepend&&(F.prepend=a.slots.prepend),a.slots.append&&(F.append=a.slots.append),a.slots.prefix&&(F.prefix=a.slots.prefix),a.slots.suffix?F.suffix=a.slots.suffix:U.value&&(F.suffix=()=>[l.unit]);const X=[],Y=t.h(O.ElInput,_,F);X.push(Y);const H={default:()=>X};H.label=a.slots.default,H.fixedPreTip=a.slots.fixedPreTip,H.fixedTip=a.slots.fixedTip;const k={...Ie(l,Bo),hintText:P.value,hintVisible:v.value};return l.prop&&(k.prop=`${l.prop}_item`),t.h(o,k,H)}}}}const{componentName:zs,create:js,scope:Hs}=ie("input-item"),jl=js(qs(zs,Hs,Ce));function it(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Er(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Ks(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ws=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ys(){const e=t.getCurrentInstance();return new Ws(e.proxy)}function Ir(e,n,o){const l=it(e,n),a=it(e,o);if(l!==a)return!1;const r=Lt(e,n),i=Lt(e,o);return r===i}function Vr(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){const u=Er(e,i);if(Array.isArray(u)&&u.length>0){const s=Vr(e,r,o,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(o==="text")s=it(e,i)===r;else if(o==="item")s=Ir(e,i,r);else{let f=Lt(e,i);f==null&&(f=it(e,i)),s=f===r}if(s){a.push(i);break}}}}),a}function Us(e){return{text:e,value:e}}const Lo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Gs(e,n,o){return{props:{...Se,...Ve,...Lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),w=t.ref([]),S=t.computed(()=>w.value?w.value.map(W=>it(l,W)).join(" "):""),m=(b,W,Z,D=!0)=>{if(!Z||Z.length==0){p.value=b,D&&(f("update:modelValue",b),f("change",b));return}const K=Vr(l,b,W,Z);if(K===null){if(w.value===null||w.value.length===0)return;p.value=null,w.value=[],D&&(f("update:modelValue",null),f("update:text",null),f("change",null));return}let J=!0;if(K.length!==w.value.length)J=!1;else for(let le=0;le<K.length;le++){const se=K[le],ue=w.value[le];if(!Ir(l,se,ue)){J=!1;break}}if(!J){w.value=K;let le=[],se=[],ue=[];K.forEach(ze=>{const lt=Lt(l,ze),bt=it(l,ze);le.push(lt),ue.push(bt),l.valueType==="text"?se.push(bt):l.valueType==="item"?se.push(ze):se.push(lt)});let be,ge,Te;fe(l.multiple)?(p.value=le,be=t.toRaw(se),ge=ue,Te=t.toRaw(K)):(p.value=le[0]??"",be=t.toRaw(se[0]??""),ge=ue[0]??"",Te=t.toRaw(K[0])),D&&(f("update:modelValue",be),f("change",be,Te)),f("update:text",ge)}},g=t.ref(null),L=t.ref(null),y=t.computed(()=>L.value??g.value??[]),c=Oe(t.computed(()=>l.appearLoad),"appearLoad",Ke.Near,b=>fe(b)),N=Ys(),B=async(b,W)=>{if(b){const Z=await N.load("select",b,W);if(Z.length>0)if(typeof Z[0]=="string"){let J=Z.map(le=>Us(le));g.value=J}else g.value=Z;else g.value=null}};t.watch([()=>l.source,()=>l.params],([b,W])=>{L.value=null,B(b,W)},{immediate:!c.value});let R=!1;const C=()=>{R||(R=!0,B(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([b,W])=>{if(v()&&fe(l.multiple)){Ye(W,p.value)||(p.value=W);return}m(W,l.valueType,y.value,!1),f("setValue",W)}),l.source||(p.value=l.modelValue);let I=null,x=t.ref(!1);typeof l.remoteMethod=="function"&&(I=async b=>{if(b==null){L.value=null;return}x.value=!0;try{const W=await l.remoteMethod(b);W&&(L.value=W)}catch(W){L.value=null,console.error(W)}x.value=!1});let z=null;typeof l.filterMethod=="function"&&(z=async b=>{if(b==null){L.value=null;return}x.value=!0;try{const W=await l.filterMethod(b,g.value);W&&(L.value=W)}catch(W){L.value=null,console.error(W)}x.value=!1});const v=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",P=t.ref(!1),U=e,M=t.computed(()=>({[U]:!0})),$=b=>{l.allowCreate||v()&&fe(l.multiple)?(f("update:modelValue",b),f("change",b),f("update:text",b),p.value=b):m(b,"value",y.value,!0)};let _=me(l,"hintText"),F=t.ref(!1);const X=b=>{let Z=b.target.value;P.value=!0,he(_.value)||(F.value=!0),f("focus",Z,b)},Y=b=>{setTimeout(()=>{F.value&&(F.value=!1),P.value=!1},0);let Z=b.target.value;l.maxLength&&Z.length>Number(l.maxLength)&&(Z=Z.slice(0,Number(l.maxLength))),Q.value||f("blur",Z,b)},H=()=>{f("clear","")},ee=t.ref(!1);let k=null;const V=()=>{l.showTooltip&&ee.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{ee.value=!0},150))},j=()=>{k&&(clearTimeout(k),ee.value=!1,k=null)},q=t.computed(()=>ee.value||F.value),E=t.computed(()=>ee.value?S.value:_.value),Q=t.ref(!1),te=b=>{Q.value=b,f("visible-change",b),b||f("selected")},G=b=>{f("remove-tag",b)},T=(b,W)=>{const Z=[];return b.forEach((D,K)=>{const J=Er(l,D);if(Array.isArray(J)&&J.length>0){const le=T(J,W),se=it(l,D),be={key:`${se}_${K}`,label:se};Z.push(t.h(O.ElOptionGroup,be,{default:()=>le}))}else{const le=Lt(l,D),se=it(l,D),ue=Ks(l,D),ge={key:`${le}_${K}`,label:se,disabled:ue,value:le};if(typeof W=="function")Z.push(t.h(O.ElOption,ge,{default:()=>W(D)}));else if(l.optionType==="item"){const Te={class:{"fox-select-item__option-left":!0}},ze=t.h("span",Te,[le]),lt={class:{"fox-select-item__option-right":!0}},bt=t.h("span",lt,[se]),Gn=t.h("div",{class:{"fox-select-item__option":!0}},[ze,bt]);Z.push(t.h(O.ElOption,ge,{default:()=>Gn}))}else l.optionType==="value"?Z.push(t.h(O.ElOption,ge,{default:()=>[le]})):Z.push(t.h(O.ElOption,ge))}}),Z},A=t.ref();return ye({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},setDisabled:b=>{r.value=b},setReadonly:b=>{u.value=b}}),()=>{const W={...nt(a.attrs),ref:A,class:M.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:H,onChange:$,onFocus:X,onBlur:Y,onVisibleChange:te,onRemoveTag:G};typeof I=="function"&&(W["remote-method"]=I,W.loading=x.value),typeof z=="function"&&(W["filter-method"]=z,W.loading=x.value);const Z={};a.slots.prefix&&(Z.prefix=a.slots.prefix),a.slots.empty&&(Z.empty=a.slots.empty),a.slots.options?Z.default=a.slots.options:Z.default=()=>T(y.value,a.slots.option);const D=[],K=t.h(O.ElSelect,W,Z);D.push(K);const J={default:()=>D};J.label=a.slots.default,J.fixedPreTip=a.slots.fixedPreTip,J.fixedTip=a.slots.fixedTip;const se={...Ie(l,Lo),hintText:E.value,hintVisible:q.value,onMouseover:V,onMouseleave:j};return l.prop&&(se.prop=`${l.prop}_item`),c.value&&(se["appear-listen"]=!0,se.onAppear=C),t.h(o,se,J)}}}}const{componentName:Xs,create:Zs,scope:Js}=ie("select-item"),Hl=Zs(Gs(Xs,Js,Ce));function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qt={exports:{}},Qs=Qt.exports,_o;function eu(){return _o||(_o=1,function(e,n){(function(o,l){e.exports=l()})(Qs,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",f="day",h="week",d="month",p="quarter",w="year",S="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|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("_"),ordinal:function(M){var $=["th","st","nd","rd"],_=M%100;return"["+M+($[(_-20)%10]||$[_]||$[0])+"]"}},c=function(M,$,_){var F=String(M);return!F||F.length>=$?M:""+Array($+1-F.length).join(_)+M},N={s:c,z:function(M){var $=-M.utcOffset(),_=Math.abs($),F=Math.floor(_/60),X=_%60;return($<=0?"+":"-")+c(F,2,"0")+":"+c(X,2,"0")},m:function M($,_){if($.date()<_.date())return-M(_,$);var F=12*(_.year()-$.year())+(_.month()-$.month()),X=$.clone().add(F,d),Y=_-X<0,H=$.clone().add(F+(Y?-1:1),d);return+(-(F+(_-X)/(Y?X-H:H-X))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:d,y:w,w:h,d:f,D:S,h:s,m:u,s:i,ms:r,Q:p}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},B="en",R={};R[B]=y;var C="$isDayjsObject",I=function(M){return M instanceof P||!(!M||!M[C])},x=function M($,_,F){var X;if(!$)return B;if(typeof $=="string"){var Y=$.toLowerCase();R[Y]&&(X=Y),_&&(R[Y]=_,X=Y);var H=$.split("-");if(!X&&H.length>1)return M(H[0])}else{var ee=$.name;R[ee]=$,X=ee}return!F&&X&&(B=X),X||!F&&B},z=function(M,$){if(I(M))return M.clone();var _=typeof $=="object"?$:{};return _.date=M,_.args=arguments,new P(_)},v=N;v.l=x,v.i=I,v.w=function(M,$){return z(M,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function M(_){this.$L=x(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[C]=!0}var $=M.prototype;return $.parse=function(_){this.$d=function(F){var X=F.date,Y=F.utc;if(X===null)return new Date(NaN);if(v.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var H=X.match(g);if(H){var ee=H[2]-1||0,k=(H[7]||"0").substring(0,3);return Y?new Date(Date.UTC(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,k)):new Date(H[1],ee,H[3]||1,H[4]||0,H[5]||0,H[6]||0,k)}}return new Date(X)}(_),this.init()},$.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},$.$utils=function(){return v},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(_,F){var X=z(_);return this.startOf(F)<=X&&X<=this.endOf(F)},$.isAfter=function(_,F){return z(_)<this.startOf(F)},$.isBefore=function(_,F){return this.endOf(F)<z(_)},$.$g=function(_,F,X){return v.u(_)?this[F]:this.set(X,_)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(_,F){var X=this,Y=!!v.u(F)||F,H=v.p(_),ee=function(G,T){var A=v.w(X.$u?Date.UTC(X.$y,T,G):new Date(X.$y,T,G),X);return Y?A:A.endOf(f)},k=function(G,T){return v.w(X.toDate()[G].apply(X.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(T)),X)},V=this.$W,j=this.$M,q=this.$D,E="set"+(this.$u?"UTC":"");switch(H){case w:return Y?ee(1,0):ee(31,11);case d:return Y?ee(1,j):ee(0,j+1);case h:var Q=this.$locale().weekStart||0,te=(V<Q?V+7:V)-Q;return ee(Y?q-te:q+(6-te),j);case f:case S:return k(E+"Hours",0);case s:return k(E+"Minutes",1);case u:return k(E+"Seconds",2);case i:return k(E+"Milliseconds",3);default:return this.clone()}},$.endOf=function(_){return this.startOf(_,!1)},$.$set=function(_,F){var X,Y=v.p(_),H="set"+(this.$u?"UTC":""),ee=(X={},X[f]=H+"Date",X[S]=H+"Date",X[d]=H+"Month",X[w]=H+"FullYear",X[s]=H+"Hours",X[u]=H+"Minutes",X[i]=H+"Seconds",X[r]=H+"Milliseconds",X)[Y],k=Y===f?this.$D+(F-this.$W):F;if(Y===d||Y===w){var V=this.clone().set(S,1);V.$d[ee](k),V.init(),this.$d=V.set(S,Math.min(this.$D,V.daysInMonth())).$d}else ee&&this.$d[ee](k);return this.init(),this},$.set=function(_,F){return this.clone().$set(_,F)},$.get=function(_){return this[v.p(_)]()},$.add=function(_,F){var X,Y=this;_=Number(_);var H=v.p(F),ee=function(j){var q=z(Y);return v.w(q.date(q.date()+Math.round(j*_)),Y)};if(H===d)return this.set(d,this.$M+_);if(H===w)return this.set(w,this.$y+_);if(H===f)return ee(1);if(H===h)return ee(7);var k=(X={},X[u]=l,X[s]=a,X[i]=o,X)[H]||1,V=this.$d.getTime()+_*k;return v.w(V,this)},$.subtract=function(_,F){return this.add(-1*_,F)},$.format=function(_){var F=this,X=this.$locale();if(!this.isValid())return X.invalidDate||m;var Y=_||"YYYY-MM-DDTHH:mm:ssZ",H=v.z(this),ee=this.$H,k=this.$m,V=this.$M,j=X.weekdays,q=X.months,E=X.meridiem,Q=function(T,A,b,W){return T&&(T[A]||T(F,Y))||b[A].slice(0,W)},te=function(T){return v.s(ee%12||12,T,"0")},G=E||function(T,A,b){var W=T<12?"AM":"PM";return b?W.toLowerCase():W};return Y.replace(L,function(T,A){return A||function(b){switch(b){case"YY":return String(F.$y).slice(-2);case"YYYY":return v.s(F.$y,4,"0");case"M":return V+1;case"MM":return v.s(V+1,2,"0");case"MMM":return Q(X.monthsShort,V,q,3);case"MMMM":return Q(q,V);case"D":return F.$D;case"DD":return v.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Q(X.weekdaysMin,F.$W,j,2);case"ddd":return Q(X.weekdaysShort,F.$W,j,3);case"dddd":return j[F.$W];case"H":return String(ee);case"HH":return v.s(ee,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return G(ee,k,!0);case"A":return G(ee,k,!1);case"m":return String(k);case"mm":return v.s(k,2,"0");case"s":return String(F.$s);case"ss":return v.s(F.$s,2,"0");case"SSS":return v.s(F.$ms,3,"0");case"Z":return H}return null}(T)||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(_,F,X){var Y,H=this,ee=v.p(F),k=z(_),V=(k.utcOffset()-this.utcOffset())*l,j=this-k,q=function(){return v.m(H,k)};switch(ee){case w:Y=q()/12;break;case d:Y=q();break;case p:Y=q()/3;break;case h:Y=(j-V)/6048e5;break;case f:Y=(j-V)/864e5;break;case s:Y=j/a;break;case u:Y=j/l;break;case i:Y=j/o;break;default:Y=j}return X?Y:v.a(Y)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return R[this.$L]},$.locale=function(_,F){if(!_)return this.$L;var X=this.clone(),Y=x(_,F,!0);return Y&&(X.$L=Y),X},$.clone=function(){return v.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()},M}(),U=P.prototype;return z.prototype=U,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",f],["$M",d],["$y",w],["$D",S]].forEach(function(M){U[M[1]]=function($){return this.$g($,M[0],M[1])}}),z.extend=function(M,$){return M.$i||(M($,P,z),M.$i=!0),z},z.locale=x,z.isDayjs=I,z.unix=function(M){return z(1e3*M)},z.en=R[B],z.Ls=R,z.p={},z})}(Qt)),Qt.exports}var tu=eu();const et=at(tu);var en={exports:{}},nu=en.exports,qo;function lu(){return qo||(qo=1,function(e,n){(function(o,l){e.exports=l()})(nu,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(m){return(m=+m)+(m>68?1900:2e3)},f=function(m){return function(g){this[m]=+g}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var L=g.match(/([+-]|\d\d)/g),y=60*L[1]+(+L[2]||0);return y===0?0:L[0]==="+"?-y:y}(m)}],d=function(m){var g=u[m];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(m,g){var L,y=u.meridiem;if(y){for(var c=1;c<=24;c+=1)if(m.indexOf(y(c,0,g))>-1){L=c>12;break}}else L=m===(g?"pm":"PM");return L},w={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],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:[a,f("day")],Do:[i,function(m){var g=u.ordinal,L=m.match(/\d+/);if(this.day=L[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],M:[r,f("month")],MM:[a,f("month")],MMM:[i,function(m){var g=d("months"),L=(d("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(m)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[i,function(m){var g=d("months").indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(m){this.year=s(m)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function S(m){var g,L;g=m,L=u&&u.formats;for(var y=(m=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,z,v){var P=v&&v.toUpperCase();return z||L[v]||o[v]||L[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,M,$){return M||$.slice(1)})})).match(l),c=y.length,N=0;N<c;N+=1){var B=y[N],R=w[B],C=R&&R[0],I=R&&R[1];y[N]=I?{regex:C,parser:I}:B.replace(/^\[|\]$/g,"")}return function(x){for(var z={},v=0,P=0;v<c;v+=1){var U=y[v];if(typeof U=="string")P+=U.length;else{var M=U.regex,$=U.parser,_=x.slice(P),F=M.exec(_)[0];$.call(z,F),x=x.replace(F,"")}}return function(X){var Y=X.afternoon;if(Y!==void 0){var H=X.hours;Y?H<12&&(X.hours+=12):H===12&&(X.hours=0),delete X.afternoon}}(z),z}}return function(m,g,L){L.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(s=m.parseTwoDigitYear);var y=g.prototype,c=y.parse;y.parse=function(N){var B=N.date,R=N.utc,C=N.args;this.$u=R;var I=C[1];if(typeof I=="string"){var x=C[2]===!0,z=C[3]===!0,v=x||z,P=C[2];z&&(P=C[2]),u=this.$locale(),!x&&P&&(u=L.Ls[P]),this.$d=function(_,F,X){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var Y=S(F)(_),H=Y.year,ee=Y.month,k=Y.day,V=Y.hours,j=Y.minutes,q=Y.seconds,E=Y.milliseconds,Q=Y.zone,te=new Date,G=k||(H||ee?1:te.getDate()),T=H||te.getFullYear(),A=0;H&&!ee||(A=ee>0?ee-1:te.getMonth());var b=V||0,W=j||0,Z=q||0,D=E||0;return Q?new Date(Date.UTC(T,A,G,b,W,Z,D+60*Q.offset*1e3)):X?new Date(Date.UTC(T,A,G,b,W,Z,D)):new Date(T,A,G,b,W,Z,D)}catch{return new Date("")}}(B,I,R),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),v&&B!=this.format(I)&&(this.$d=new Date("")),u={}}else if(I instanceof Array)for(var U=I.length,M=1;M<=U;M+=1){C[1]=I[M-1];var $=L.apply(this,C);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}M===U&&(this.$d=new Date(""))}else c.call(this,N)}}})}(en)),en.exports}var ou=lu();const au=at(ou);var tn={exports:{}},ru=tn.exports,zo;function iu(){return zo||(zo=1,function(e,n){(function(o,l){e.exports=l()})(ru,function(){return function(o,l){var a=l.prototype,r=a.format;a.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var f=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(d){switch(d){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),d==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return d}});return r.bind(this)(h)}}})}(tn)),tn.exports}var su=iu();const uu=at(su);var nn={exports:{}},cu=nn.exports,jo;function fu(){return jo||(jo=1,function(e,n){(function(o,l){e.exports=l()})(cu,function(){return function(o,l,a){var r=l.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,p,w,S,m){var g=d.name?d:d.$locale(),L=i(g[p]),y=i(g[w]),c=L||y.map(function(B){return B.slice(0,S)});if(!m)return c;var N=g.weekStart;return c.map(function(B,R){return c[(R+(N||0))%7]})},s=function(){return a.Ls[a.locale()]},f=function(d,p){return d.formats[p]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,m,g){return m||g.slice(1)})}(d.formats[p.toUpperCase()])},h=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):u(d,"months")},monthsShort:function(p){return p?p.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var d=s();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return f(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(d){return u(s(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return u(s(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return u(s(),"weekdaysMin","weekdays",2,d)}}})}(nn)),nn.exports}var du=fu();const hu=at(du);var ln={exports:{}},mu=ln.exports,Ho;function gu(){return Ho||(Ho=1,function(e,n){(function(o,l){e.exports=l()})(mu,function(){var o="week",l="year";return function(a,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(f),d=i(this).endOf(o);if(h.isBefore(d))return 1}var p=i(this).startOf(l).date(f).startOf(o).subtract(1,"millisecond"),w=this.diff(p,o,!0);return w<0?i(this).startOf("week").week():Math.ceil(w)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(ln)),ln.exports}var pu=gu();const vu=at(pu);var on={exports:{}},yu=on.exports,Ko;function bu(){return Ko||(Ko=1,function(e,n){(function(o,l){e.exports=l()})(yu,function(){return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})}(on)),on.exports}var xu=bu();const wu=at(xu);var an={exports:{}},Su=an.exports,Wo;function Cu(){return Wo||(Wo=1,function(e,n){(function(o,l){e.exports=l()})(Su,function(){return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})}(an)),an.exports}var Tu=Cu();const $u=at(Tu);var rn={exports:{}},ku=rn.exports,Yo;function Du(){return Yo||(Yo=1,function(e,n){(function(o,l){e.exports=l()})(ku,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})}(rn)),rn.exports}var Nu=Du();const Eu=at(Nu);var sn={exports:{}},Iu=sn.exports,Uo;function Vu(){return Uo||(Uo=1,function(e,n){(function(o,l){e.exports=l()})(Iu,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})}(sn)),sn.exports}var Pu=Vu();const Ou=at(Pu);et.extend(hu);et.extend(uu);et.extend(au);et.extend(vu);et.extend(wu);et.extend($u);et.extend(Eu);et.extend(Ou);const ae={format(e,n){return et(e).format(n)},parser(e,n){return et(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const a=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},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 o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,l,a].join(n)},getDay(e,n,o){e=e||0;let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),i=a.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let u=a.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,f=r+(6-i)*864e5,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(f));return[h,d]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,f=r+(7-i)*u,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(f));return[h,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},Go={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Xo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Au(e,n,o){return{props:{...Se,...Ve,...Go,...Xo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=t.computed(()=>F.value&&Array.isArray(w.value)&&w.value.length==2?w.value[0]:w.value),m=t.computed(()=>F.value?"longTermKey":"normalKey"),g=A=>{if(F.value&&l.type==="daterange"){const b=[...w.value];b[0]=A,w.value=b}else w.value=A;f("update:modelValue",w.value),f("change",w.value)},L=t.computed(()=>F.value&&l.type==="daterange"?"date":l.type),y=e,c=t.computed(()=>({[`${y}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":i.value}));let N=me(l,"hintText"),B=t.ref(!1);const R=A=>{let W=A.target.value;p.value=!0,he(N.value)||(B.value=!0),f("focus",W,A)},C=A=>{setTimeout(()=>{B.value&&(B.value=!1),p.value=!1},0);let W=A.target.value;l.maxLength&&W.length>Number(l.maxLength)&&(W=W.slice(0,Number(l.maxLength))),f("blur",W,A)},I=()=>{f("clear","")},x=A=>{f("calendar-change",A)},z=(A,b,W)=>{f("panel-change",A,b,W)},v=A=>{f("visible-change",A)},P=Oe(t.computed(()=>l.longTermText),"longTermText",Ke.Near),U=Oe(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Ke.Near),M=Oe(t.computed(()=>l.longTermValue),"longTermValue",Ke.Near),$=Oe(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Ke.Near);let _=null;const F=t.ref(fe(l.longTerm)),X=A=>{if(F.value=A,f("update:longTerm",A),A){if(_=w.value,l.type==="daterange"){const b=[];Array.isArray(M.value)?(b[0]=w.value?w.value[0]??M.value[0]:null,b[1]=M.value[1]??M.value[0]):(b[0]=w.value?w.value[0]??M.value:null,b[1]=F.value),b[0]||(b[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w.value=b}else Array.isArray(M.value)?w.value=M.value[1]??M.value[0]:w.value=M.value,w.value||(w.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);f("update:modelValue",w.value)}else{if(l.type==="daterange"){const b=[];b[0]=Array.isArray(w.value)?w.value[0]:w.value,Array.isArray(_)?b[1]=_[1]:b[1]=_,b[0]||(b[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w.value=b}else w.value=_;f("update:modelValue",w.value),setTimeout(()=>{G()},100)}},Y=fe(l.isLongTerm);if(Y){const A=()=>{if(F.value===!0){if(_=w.value,l.type==="daterange"){const b=[w.value[0]];Array.isArray(M.value)?b[1]=M.value[1]??M.value[0]:b[1]=F.value,b[0]||(b[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),w.value=b}else w.value=M.value;f("update:modelValue",w.value)}else Ye(M.value,w.value)&&(F.value=!0)};A(),t.watch([()=>l.longTerm],([b])=>{F.value!==b&&A()}),t.watch([()=>w.value],([b])=>{let W=!1;if(l.type==="daterange"&&Array.isArray(b))try{let Z=b[1];if(!Z)return;if(b[0]==null){f("update:modelValue",[]);return}typeof Z!="string"&&l.valueFormat&&(Z=ae.format(Z,l.valueFormat));let D=Array.isArray(M.value)?M.value[1]:M.value;(Z===D||Array.isArray($.value)&&$.value.findIndex(J=>Z==J)!==-1)&&(W=!0)}catch(Z){console.error(Z)}F.value!==W&&(F.value=W)},{immediate:!0})}const H=t.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),ee=t.ref(),k=t.ref(),V=/^\d+$/,j=(A,b)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(A,b):V.test(A)&&A.length===l.flashFillThreshold,q=(A,b)=>{let W;if(typeof l.flashFillFormat=="function")W=l.flashFillFormat(A,b);else{const D=l.flashFillFormat??"YYYYMMDD";W=ae.parser(A,D)}const Z=l.valueFormat??"YYYY-MM-DD";return ae.format(W,Z)},E=A=>A?A.endsWith("range"):!1,Q=A=>{if(!A.target)return;const b=A.target.value??"";if(j(b,l.type)){const W=q(b,l.type);if(E(l.type)){const Z=Array.isArray(w.value)?[...w.value]:[];Z[0]=W,g(Z)}else g(W)}},te=A=>{if(!A.target)return;const b=A.target.value??"";if(j(b,l.type)){const W=q(b,l.type);if(E(l.type)){const Z=Array.isArray(w.value)?[...w.value]:[];Z[1]=W,g(Z)}else g(W)}},G=()=>{if(l.flashFill&&ee.value&&ee.value.$el)if(E(l.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].addEventListener("input",Q),A[1]&&A[1].addEventListener("input",te)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.addEventListener("input",Q)}},T=()=>{if(l.flashFill&&ee.value&&ee.value.$el)if(E(l.type)){const A=ee.value.$el.querySelectorAll("input.el-range-input");A[0]&&A[0].removeEventListener("input",Q),A[1]&&A[1].removeEventListener("input",te)}else{const A=ee.value.$el.querySelector("input.el-input__inner");A&&A.removeEventListener("input",Q)}};return t.onMounted(G),t.onBeforeUnmount(T),ye({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()},setDisabled:A=>{r.value=A},setReadonly:A=>{u.value=A}}),()=>{const b={...a.attrs,key:m.value,type:L.value,ref:k,class:c.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:S.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":g,onClear:I,onFocus:R,onBlur:C,onCalendarChange:x,onPanelChange:z,onVisibleChange:v},W={};a.slots["range-separator"]&&(W["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(W.default=a.slots.cell);const Z=[],D=t.h(O.ElDatePicker,b,W);Z.push(D);const K={default:()=>Z};if(K.label=a.slots.default,K.fixedPreTip=a.slots.fixedPreTip,K.fixedTip=a.slots.fixedTip,Y){if(F.value){const ue=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),be=t.h("input",{class:["fox-date-item__long-text"],value:P.value,readonly:!0}),ge={class:H.value},Te=t.h("div",ge,{default:()=>[ue,be]});Z.push(Te)}if(!s.value&&!i.value){const ue={label:U.value||P.value,disabled:s.value||i.value,modelValue:F.value,"onUpdate:modelValue":X},be=t.h(O.ElCheckbox,ue),ge=t.h("div",{class:{[`${y}__append`]:!0}},[be]);K.append=()=>ge}}const le={...Ie(l,Go,Xo),ref:ee,class:{[`${y}__wrapper`]:!0,"has-append":Y},hintText:N.value,hintVisible:B.value};return l.prop&&(le.prop=`${l.prop}_item`),t.h(o,le,K)}}}}const{componentName:Fu,create:Mu,scope:Ru}=ie("date-item"),Kl=Mu(Au(Fu,Ru,Ce)),Bu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Wl={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},popClass:{type:String},popStyle:{type:Object}},Yl={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:{}}},Pr=2e3;let Zo=Pr;const Lu=(e,n)=>({components:n,props:{...Yl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==Pr&&(Zo=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++Zo,o.destroyOnClose&&(a.showSlot=!0),l("open")},f=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=m=>{l("click-pop",m)},d=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},p=m=>{l("click-overlay",m),o.closeOnClickOverlay&&l("update:visible",!1)},w=m=>{l("opend",m)},S=m=>{l("closed",m)};return t.watch(()=>o.visible,m=>{o.visible?s():f()}),t.watch(()=>o.closeable,m=>{a.closed=m}),{...t.toRefs(a),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:d,onClickOverlay:p,onOpened:w,onClosed:S}}});let Ot=0;const Jo="fox-overflow-hidden",Qo=()=>ct?document.body:{classList:[]},_u=e=>[()=>{if(e())try{!Ot&&Qo().classList.add(Jo),Ot++}catch{}},()=>{if(e()&&Ot)try{Ot--,!Ot&&Qo().classList.remove(Jo)}catch{}}],qu={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:zu,create:ju}=ie("overlay"),Hu=ju({props:{...qu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=_u(()=>e.lockScroll),a=t.computed(()=>({[zu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ku(e,n,o,l,a,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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Bn=Me(Hu,[["render",Ku]]),Wu=["aria-labelledby"],Yu=t.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uu=[Yu],Gu=t.defineComponent({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uu,14,Wu))}}),Xu=["aria-labelledby"],Zu=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ju=[Zu],Qu=t.defineComponent({__name:"Search2",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ju,14,Xu))}}),ec=["aria-labelledby"],tc=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),nc=[tc],lc=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},nc,14,ec))}}),oc=["aria-labelledby"],ac=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),rc=[ac],Ln=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},rc,14,oc))}}),ic=["aria-labelledby"],sc=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),uc=[sc],Or=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},uc,14,ic))}}),cc=["aria-labelledby"],fc=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),dc=[fc],Ar=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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},dc,14,cc))}}),hc=["aria-labelledby"],mc=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),gc=[mc],pc=t.defineComponent({__name:"Checked",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},gc,14,hc))}}),vc=["aria-labelledby"],yc=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),bc=[yc],xc=t.defineComponent({__name:"CheckNormal",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 o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},bc,14,vc))}}),wc=["aria-labelledby"],Sc=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Cc=[Sc],Tc=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,f)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Cc,14,wc))}}),{componentName:$c,create:kc}=ie("popup"),Dc=kc(Lu($c,{FoxOverLay:Bn,Close:Or}));function Nc(e,n,o,l,a,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const yt=Me(Dc,[["render",Nc]]),ea=39,ta=64,{create:Ec,scope:Ic}=ie("calendar-pane"),Vc=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:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=we.useFoxI18n(Ic),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${ea}px`})),u=t.computed(()=>({height:`${ta}px`})),s=JSON.parse(a("weekdays")),f=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),d=t.ref(null),p=t.ref(null),w=t.ref(null),S=t.ref(0),m=t.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),g=t.computed(()=>o.btn),L=t.computed(()=>o["top-info"]),y=t.computed(()=>o["bottom-info"]),c=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}),N=G=>G.split("-"),B=G=>ae.isEqual(c.currDate[0],G),R=G=>ae.isEqual(c.currDate[1],G),C=G=>c.currDate?.length>0?c.currDate?.some(T=>ae.isEqual(T,G)):!1,I=(G,T)=>T.curData[0]+"-"+T.curData[1]+"-"+ae.getNumTwoBit(+G.day),x=(G,T)=>{const A=I(G,T),{type:b}=e;return G.type=="curr"?ae.isEqual(c.currDate,A)||(b=="range"||b=="week")&&(B(A)||R(A))||b=="multiple"&&C(A)?`${c.dayPrefix}--active`:c.propStartDate&&ae.compareDate(A,c.propStartDate)||c.propEndDate&&ae.compareDate(c.propEndDate,A)?`${c.dayPrefix}--disabled`:(b=="range"||b=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ae.compareDate(c.currDate[0],A)&&ae.compareDate(A,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},z=()=>{const{type:G}=e;if(G=="range"&&c.chooseData.length==2||G!="range"){let T=c.chooseData.slice(0);G=="week"&&(T={weekDate:[P(c.chooseData[0]),P(c.chooseData[1])]}),n("choose",T),e.poppable&&n("update")}},v=(G,T,A=!1)=>{if(x(G,T)!=`${c.dayPrefix}--disabled`){const{type:b}=e;let[W,Z]=T.curData,D=[...T.curData];if(D[2]=ae.getNumTwoBit(Number(G.day)),D[3]=`${D[0]}-${D[1]}-${D[2]}`,D[4]=ae.getWhatDay(+D[0],+D[1],+D[2]),b=="multiple")if(c.currDate?.length>0){let K;c.currDate?.forEach((J,le)=>{J==D[3]&&(K=le)}),A?c.chooseData.push([...D]):K!==void 0?(c.currDate.splice(K,1),c.chooseData.splice(K,1)):(c.currDate.push(D[3]),c.chooseData.push([...D]))}else c.currDate=[D[3]],c.chooseData=[[...D]];else if(b=="range"){let K=Object.values(c.currDate).length;K==2||K==0?c.currDate=[D[3]]:ae.compareDate(c.currDate[0],D[3])?Array.isArray(c.currDate)&&c.currDate.push(D[3]):Array.isArray(c.currDate)&&c.currDate.unshift(D[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...D]]:ae.compareDate(c.chooseData[0][3],D[3])?c.chooseData=[...c.chooseData,[...D]]:c.chooseData=[[...D],...c.chooseData]}else if(b=="week"){let K=ae.getWeekDate(W,Z,G.day,e.firstDayOfWeek);c.propStartDate&&ae.compareDate(K[0],c.propStartDate)&&K.splice(0,1,c.propStartDate),c.propEndDate&&ae.compareDate(c.propEndDate,K[1])&&K.splice(1,1,c.propEndDate),c.currDate=K,c.chooseData=[ae.formatResultDate(K[0]),ae.formatResultDate(K[1])]}else c.currDate=D[3],c.chooseData=[...D];if(!A){let K=c.chooseData;b=="week"&&(K={weekDate:[P(c.chooseData[0]),P(c.chooseData[1])]}),n("select",K),(e.isAutoBackFill||!e.poppable)&&z()}}},P=G=>{let[T,A,b]=G;return{date:G,monthWeekNum:ae.getMonthWeek(T,A,b,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(T,A,b,e.firstDayOfWeek)}},U=G=>{const T=c.monthsData[c.monthsData.length-1];let A=parseInt(T.curData[0]),b=parseInt(T.curData[1].toString().replace(/^0/,""));switch(G){case"prev":b==1&&(A-=1),b=b==1?12:--b;break;case"next":b==12&&(A+=1),b=b==12?1:++b;break}return[A+"",ae.getNumTwoBit(b),ae.getMonthDays(String(A),String(b))+""]},M=(G,T,A)=>{let{year:b,month:W}=A;return Array.from(Array(G),(Z,D)=>({day:String(D+1),type:T,year:b,month:W}))},$=(G,T,A,b)=>{G=G-e.firstDayOfWeek;let{year:W,month:Z}=A;return G>=7&&(G-=7),Array.from(Array(b),(K,J)=>({day:String(J+1),type:T,year:W,month:Z})).slice(b-G)},_=(G,T)=>{const A=ae.getMonthPreDay(+G[0],+G[1]);let b=Number(G[1])-1,W=Number(G[0]);b<=0&&(b=12,W+=1);const Z=ae.getMonthDays(String(G[0]),String(G[1])),D=ae.getMonthDays(W+"",b+""),K={year:G[0],month:G[1]},J={curData:G,title:a("monthTitle",{year:K.year,month:K.month}),monthData:[...$(A,"prev",{month:String(b),year:String(W)},D),...M(Z,"curr",K)],cssHeight:0,cssScrollHeight:0},le=J.monthData.length>35?6:5;J.cssHeight=ea+ta*le;let se=0;c.monthsData.length>0&&(se=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),J.cssScrollHeight=se,(!c.endData||!ae.compareDate(`${c.endData[0]}-${c.endData[1]}-${ae.getMonthDays(c.endData[0],c.endData[1])}`,`${G[0]}-${G[1]}-${G[2]}`))&&c.monthsData.push(J)},F=()=>{let G=e.startDate?e.startDate:ae.getDay(0),T=e.endDate?e.endDate:ae.getDay(365);c.propStartDate=G,c.propEndDate=T,c.startData=N(G),c.endData=N(T),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const A={year:Number(c.startData[0]),month:Number(c.startData[1])},b={year:Number(c.endData[0]),month:Number(c.endData[1])};let W=b.month-A.month;b.year-A.year>0&&(W=W+12*(b.year-A.year)),W<=0&&(W=1),_(c.startData);let Z=1;do _(U("next"));while(Z++<W);if(c.monthsNum=W,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(G&&ae.compareDate(c.currDate[0],G)&&c.currDate.splice(0,1,G),T&&ae.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...N(c.currDate[0]),...N(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let D=[],K={};c.currDate.forEach(J=>{G&&!ae.compareDate(J,G)&&T&&!ae.compareDate(T,J)&&(Object.hasOwnProperty.call(K,J)||(D.push(J),K[J]=J))}),c.currDate=[...D],c.defaultData=[...N(D[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[D,K,J]=N(c.currDate[0]),le=ae.getWeekDate(D,K,J,e.firstDayOfWeek);c.currDate=le,G&&ae.compareDate(c.currDate[0],G)&&c.currDate.splice(0,1,G),T&&ae.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...N(c.currDate[0]),...N(c.currDate[1])]}}else c.currDate&&(G&&ae.compareDate(c.currDate,G)?c.currDate=G:T&&!ae.compareDate(c.currDate,T)&&(c.currDate=T),c.defaultData=[...N(c.currDate)])};ye({scrollToDate:G=>{ae.compareDate(G,c.propStartDate)?G=c.propStartDate:ae.compareDate(G,c.propEndDate)||(G=c.propEndDate);let T=N(G);c.monthsData.forEach((A,b)=>{if(A.title==a("monthTitle",{year:T[0],month:T[1]})&&h.value){let W=c.monthsData[b].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let Z=0,D=setInterval(()=>{if(Z++,h.value){let K=W/10;h.value.scrollTop=h.value.scrollTop+K}Z>=10&&(clearInterval(D),h.value&&(h.value.scrollTop=c.monthsData[b].cssScrollHeight))},40)}else h.value.scrollTop=c.monthsData[b].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let G=0,T=0;c.defaultData.length>0&&c.monthsData.forEach((W,Z)=>{W.title==a("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(G=Z),(e.type=="range"||e.type=="week")&&W.title==a("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(T=Z)}),ee(c.monthsNum,G),c.currentIndex=G,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),v({day:c.defaultData[5],type:"curr"},c.monthsData[T],!0)):e.type=="week"?v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(W=>{let Z=N(W),D=c.currentIndex;c.monthsData.forEach((K,J)=>{K.title==a("monthTitle",{year:Z[0],month:Z[1]})&&(D=J)}),v({day:Z[2],type:"curr"},c.monthsData[D],!0)}):v({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let A=c.monthsData[c.monthsData.length-1],b=A.cssHeight+A.cssScrollHeight;kl(()=>{h?.value&&d?.value&&w?.value&&(S.value=h.value.clientHeight,d.value.style.height=`${b}px`,h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(b/(c.monthsNum+1))}});const ee=(G,T)=>{G>=3?T>0&&T<G?c.defaultRange=[T-1,T+3]:T==0?c.defaultRange=[T,T+4]:T==G&&(c.defaultRange=[T-2,T+2]):c.defaultRange=[0,G+2];let A=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=A},k=(G,T)=>(e.type=="range"||e.type=="week")&&G.type=="curr"&&x(G,T)=="fox-calendar__day--active",V=(G,T)=>k(G,T)&&B(I(G,T)),j=(G,T)=>c.currDate.length>=2&&R(I(G,T))?k(G,T):!1,q=()=>{if(c.currDate.length>=2)return ae.isEqual(c.currDate[0],c.currDate[1])},E=G=>{const T=`${G.year}-${G.month}-${Number(G.day)<10?"0"+G.day:G.day}`;return ae.isEqual(T,ae.date2Str(new Date))},Q=G=>{if(c.monthsData.length<=1)return;const T=G.target.scrollTop;let A=Math.floor(T/c.avgHeight);if(A==0)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1);else if(A>0&&A<c.monthsNum-1)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1),T<c.monthsData[A].cssScrollHeight&&(A-=1);else{const b=Math.round(T+S.value);b<c.monthsData[A].cssScrollHeight+c.monthsData[A].cssHeight&&T>c.monthsData[A-1].cssScrollHeight&&(A-=1),A+1<=c.monthsNum&&b>=c.monthsData[A+1].cssScrollHeight+c.monthsData[A+1].cssHeight&&(A+=1),A>=1&&T<c.monthsData[A-1].cssScrollHeight&&(A-=1)}c.currentIndex!==A&&(c.currentIndex=A,ee(c.monthsNum,A)),c.yearMonthTitle=c.monthsData[A].title},te=()=>{c.chooseData.splice(0),c.monthsData.splice(0),F()};return F(),t.watch(()=>e.defaultValue,G=>{G&&e.poppable&&te()}),{dayTitleStyle:i,dayCellStyle:u,weeks:f,compConthsData:m,showTopBtn:g,topInfo:L,bottomInfo:y,rangeTip:q,mothsViewScroll:Q,getClass:x,isStartTip:V,isEndTip:j,chooseDay:v,isCurrDay:E,confirm:z,months:h,...t.toRefs(c),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:p,viewArea:w}}}),Pc={class:"fox-calendar__header"},Oc={key:0,class:"fox-calendar__header-title"},Ac={key:1,class:"fox-calendar__header-slot"},Fc={key:2,class:"fox-calendar__header-subtitle"},Mc={class:"fox-calendar__weekdays",ref:"weeksPanel"},Rc={class:"fox-calendar__panel",ref:"monthsPanel"},Bc={class:"fox-calendar__days"},Lc=["onClick"],_c={class:"fox-calendar__day-value"},qc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},zc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},jc={key:2,class:"fox-calendar__day-tips--curr"},Hc={key:4,class:"fox-calendar__day-tip"},Kc={key:0,class:"fox-calendar__footer"};function Wc(e,n,o,l,a,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",Pc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Oc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ac,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Fc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Mc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[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,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Bc,[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(i.monthData,(s,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",_c,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",qc,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",zc,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",jc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(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(s,i)?(t.openBlock(),t.createElementBlock("view",Hc,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",Kc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Yc=Me(Vc,[["render",Wc]]),{create:Uc}=ie("calendar-picker"),Gc=Uc({components:{CalendarPane:Yc,Popup:yt},props:{...Wl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),i=t.computed(()=>o["bottom-info"]),u=t.ref(null),s=g=>{u.value?.scrollToDate(g)},f=()=>{u.value?.initPosition()},h=t.computed(()=>{const g=["fox-calendar__popup"];return e.popClass&&g.push(e.popClass),g});t.watch(()=>e.visible,g=>{g&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),ye({scrollToDate:s,initPosition:f});const d=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{p()},update:d,close:p,select:g=>{n("select",g)},choose:g=>{p(),n("choose",g)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Xc(e,n,o,l,a,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{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(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.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","pop-class","style"])):(t.openBlock(),t.createBlock(i,{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(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.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 _n=Me(Gc,[["render",Xc]]),ol=(e,n)=>{let o;return st(e)?o=e:typeof e=="string"&&tt(e)>0?o=ae.parser(e,n):o=new Date,o},xt=(e,n,o)=>(st(n)||(n=new Date),ae.format(n,o)),wt=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,a=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,a,r]},na={...Wl,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 Zc(e,n,o){return{props:{...Se,...Ve,...na},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]);let p=me(l,"hintText"),w=t.ref(!1);const S=t.ref(!1),m=t.computed(()=>l.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),L=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},y=(Y,H="one",ee="YYYY-MM-DD")=>{if(Bu(Y)){L();return}if(m.value&&Array.isArray(Y)&&Y.length==2){let k,V;typeof Y[0]=="string"?(k=ol(Y[0],ee),V=ol(Y[1],ee)):(k=Y[0],V=Y[1]);let j=wt(k),q=wt(V);(g.startDate===null||g.startDate.getTime()!==k.getTime()||g.endDate?.getTime()!==V.getTime())&&(g.startDate=k,g.startArray=j,g.endDate=V,g.endArray=q)}else{let k;typeof Y=="string"?k=ol(Y,ee):k=Y;let V=wt(k);(g.startDate===null||g.startDate.getTime()!==k.getTime())&&(g.startDate=k,g.startArray=V)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,Y=>{y(Y,l.type,l.valueFormat),f("setValue",Y)});const c=t.computed(()=>{if(g.startDate===null)return"";if(m.value){let Y=xt(l,g.startDate,l.format),H=xt(l,g.endDate,l.format);return`${Y} ${l.rangeSeparator} ${H}`}else{let Y=xt(l,g.startDate,l.format);return l.showWeek&&(Y=`${Y} ${g.startArray[4]}`),Y}}),N=t.computed(()=>{if(g.startDate===null)return null;if(m.value){let Y=ae.date2Str(g.startDate),H=ae.date2Str(g.endDate??new Date);return[Y,H]}else return ae.date2Str(g.startDate)}),B="fox-input-item",R=t.computed(()=>({[B]:!0,[`${B}__disabled`]:i.value})),C=Oe(t.computed(()=>l.textAlign),"textAlign"),I=t.computed(()=>({textAlign:C.value??"right"})),x=t.ref(!1),z=()=>{s.value||i.value||(x.value=!0)},v=()=>{x.value=!1},P=Y=>{x.value=Y},U=Y=>{if(Y){if(m.value&&Array.isArray(Y)){let H=Y[0],ee=pe(H[0]),k=pe(H[1]),V=pe(H[2]),j=new Date(ee,k-1,V),q=Y[1];ee=pe(q[0]),k=pe(q[1]),V=pe(q[2]);let E=new Date(ee,k-1,V);if(g.startDate=j,g.startArray=wt(j),g.endDate=E,g.endArray=wt(E),l.valueFormat){let Q=xt(l,j,l.valueFormat),te=xt(l,E,l.valueFormat);f("update:modelValue",[Q,te],{})}else f("update:modelValue",[j,E],{})}else{let H=Y,ee=pe(H[0]),k=pe(H[1]),V=pe(H[2]),j=new Date(ee,k-1,V);if(g.startDate=j,g.startArray=wt(j),l.valueFormat){let q=xt(l,j,l.valueFormat);f("update:modelValue",q,{})}else f("update:modelValue",j,{})}f("change",Y,{})}},M=Y=>{let ee=Y.target.value;S.value=!0,f("focus",ee,Y)},$=Y=>{setTimeout(()=>{S.value=!1},0);let ee=Y.target.value;l.maxLength&&ee.length>Number(l.maxLength)&&(ee=ee.slice(0,Number(l.maxLength))),f("blur",ee,Y)},_=t.computed(()=>tt(l.unit)>0),F=Y=>{L(),f("update:modelValue",null,Y),f("change","",Y),f("clear","")},X=t.ref();return ye({showPicker:z,hidePicker:v,focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},select:()=>{X?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const Y={class:R.value,style:I.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:c.value,onClick:z,onFocus:M,onBlur:$,onClear:F},H={};a.slots.prepend&&(H.prepend=a.slots.prepend),a.slots.append&&(H.append=a.slots.append),a.slots.prefix?H.prefix=a.slots.prefix:H.prefix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.Calendar)}),a.slots.suffix?H.suffix=a.slots.suffix:_.value&&(H.suffix=()=>[l.unit]);const ee=[],k=t.h(O.ElInput,Y,H);ee.push(k);const V={default:()=>ee};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const j=zt(l,Wl);j.visible=x.value,j["onUpdate:visible"]=P,j["default-value"]=N.value,j.onChoose=U;const q={};if(a.slots.btn){const T=a.slots.btn();q.btn=()=>T}a.slots.day&&(q.day=a.slots.day),a.slots.topInfo&&(q.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(q.bottomInfo=a.slots.bottomInfo);const E=t.h(_n,j,q);V.hide=()=>[E];const te={...Ie(l,na),hintText:p.value,hintVisible:w.value};return l.prop&&(te.prop=`${l.prop}_item`),t.h(o,te,V)}}}}const{componentName:Jc,create:Qc,scope:ef}=ie("calendar-item"),Ul=Qc(Zc(Jc,ef,Ce)),la={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function tf(e,n,o){return{props:{...Se,...Ve,...la},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=e,m=t.computed(()=>({[S]:!0})),g=I=>{w.value=I,f("update:modelValue",I),f("change",I)};let L=me(l,"hintText"),y=t.ref(!1);const c=I=>{let z=I.target.value;p.value=!0,he(L.value)||(y.value=!0),f("focus",z,I)},N=I=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let z=I.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),f("blur",z,I)},B=()=>{f("clear","")},R=I=>{f("visible-change",I)},C=t.ref();return ye({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()},setDisabled:I=>{r.value=I},setReadonly:I=>{u.value=I}}),()=>{const x={...a.attrs,ref:C,class:m.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":g,onClear:B,onFocus:c,onBlur:N,onVisibleChange:R},z={},v=[],P=t.h(O.ElTimePicker,x,z);v.push(P);const U={default:()=>v};U.label=a.slots.default,U.fixedPreTip=a.slots.fixedPreTip,U.fixedTip=a.slots.fixedTip;const $={...Ie(l,la),hintText:L.value,hintVisible:y.value};return l.prop&&($.prop=`${l.prop}_item`),t.h(o,$,U)}}}}const{componentName:nf,create:lf,scope:of}=ie("time-item"),Gl=lf(tf(nf,of,Ce)),oa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function af(e,n,o){return{props:{...Se,...Ve,...oa},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=e,m=t.computed(()=>({[S]:!0})),g=C=>{w.value=C,f("update:modelValue",C),f("change",C)};let L=me(l,"hintText"),y=t.ref(!1);const c=C=>{let x=C.target.value;p.value=!0,he(L.value)||(y.value=!0),f("focus",x,C)},N=C=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let x=C.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),f("blur",x,C)},B=()=>{f("clear","")},R=t.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()},setDisabled:C=>{r.value=C},setReadonly:C=>{u.value=C}}),()=>{const I={...a.attrs,ref:R,class:m.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":g,onClear:B,onFocus:c,onBlur:N},x={},z=[],v=t.h(O.ElTimeSelect,I,x);z.push(v);const P={default:()=>z};P.label=a.slots.default,P.fixedPreTip=a.slots.fixedPreTip,P.fixedTip=a.slots.fixedTip;const M={...Ie(l,oa),hintText:L.value,hintVisible:y.value};return l.prop&&(M.prop=`${l.prop}_item`),t.h(o,M,P)}}}}const{componentName:rf,create:sf,scope:uf}=ie("time-select-item"),Xl=sf(af(rf,uf,Ce));function aa(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function ra(e,n,o=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Ja(`${e}`,`${n}`);return aa(l)}else{let l=Nl(`${e}`,Qa(`${n}`),20);return aa(l)}}function cf(e,n=-1,o=!1,l=3,a=","){return xn(e,n,o,l,a)}function ia(e,n,o,l,a=!0){if(e==="")return"";if(e=er(e),n=pe(n),n==1)return e;if(l)e=ra(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(pe(o)+2,"0"):e=Nl(e,1,pe(o)));else{let r=-1*n;e=ra(e,r)}return e}function sa(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=fe(n.minInclude),a=gl(e,n.min);if(l&&a==-1||!l&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=fe(n.maxInclude),a=gl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ua={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 ff(e,n,o){return{props:{...Se,...Ve,...ua},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref(!1),d=me(l,"modelValue",null,f),p=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([$,_,F])=>{if(he($)){p.value="";return}const X=ia($,_,F,!1);p.value!==X&&(p.value=X)},{immediate:!0});const w=t.computed(()=>{let $="";return h.value&&($=p.value),$}),{t:S}=we.useFoxI18n(n),m=t.computed(()=>{let $=l.placeholder??"";return!h.value&&!he(p.value)?$=cf(p.value,l.decimalLength,l.autoPadding,l.digits,l.separator):$=S(["placeholder",$]),$}),g=e,L=t.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__placeholder`]:p.value.length>0})),y=Oe(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>h.value?{textAlign:"left"}:{textAlign:y.value??"right"});const c=t.ref(""),N=t.computed(()=>{let $=c.value;return he($)&&($=l.errorTip??""),$}),B=t.ref(""),R=t.ref(!1),C=($,_)=>{if($=`${$}`,he($)){p.value="",d.value="",_.forEach(F=>{f(F,"")}),fe(l.showTip)&&R.value&&(R.value=!1);return}if($.length>=2){let F=$;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){t.triggerRef(p);return}}if($!="-"){if(!ir($)){t.triggerRef(p);return}if(l.integerLength!=-1&&sr($)>Number(l.integerLength)){t.triggerRef(p);return}if(l.decimalLength&&l.decimalLength!=-1&&ur($)>Number(l.decimalLength)){t.triggerRef(p);return}let F=sa($,l);if(F.maxValid===!1){c.value=F.message,t.triggerRef(p);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(p);return}B.value=$,fe(l.showTip)&&(R.value=$.length>0),p.value=$,d.value=ia($,l.rates,l.precision,!0),_.forEach(F=>{f(F,d.value)})},I=$=>{C($,["update:modelValue","input"])},x=$=>{C($,["update:modelValue","change"])},z=$=>{if(h.value=!0,fe(l.showTip)){let _=p.value;he(_)&&(_=l.hintText),he(_)||(B.value=_,R.value=!0)}c.value="",f("focus",d.value,$)},v=$=>{if(setTimeout(()=>{h.value=!1,fe(l.showTip)&&R.value===!0&&(R.value=!1)},0),!he(p.value)){let _=sa(p.value,l);if(_.minValid===!1||_.maxValid===!1){c.value=_.message;return}}f("update:modelValue",d.value,$),f("blur",d.value,$)},P=()=>{f("clear","")},U=t.computed(()=>tt(l.unit)>0),M=t.ref();return ye({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()},setDisabled:$=>{r.value=$},setReadonly:$=>{u.value=$}}),()=>{const _={...nt(a.attrs),ref:M,class:L.value,type:"digit",maxlength:l.maxLength,placeholder:m.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:P,onInput:I,onChange:x,onFocus:z,onBlur:v},F={};a.slots.prepend&&(F.prepend=a.slots.prepend),a.slots.append&&(F.append=a.slots.append),a.slots.prefix&&(F.prefix=a.slots.prefix),a.slots.suffix?F.suffix=a.slots.suffix:U.value&&(F.suffix=()=>[l.unit]);const X=[],Y=t.h(O.ElInput,_,F);X.push(Y);const H={default:()=>X};H.label=a.slots.default,H.fixedPreTip=a.slots.fixedPreTip,H.fixedTip=a.slots.fixedTip;const k={...Ie(l,ua),errorTip:N.value,hintText:B.value,hintVisible:R.value,hintType:"number"};return l.prop&&(k.prop=`${l.prop}_item`),t.h(o,k,H)}}}}const{componentName:df,create:hf,scope:mf}=ie("money-item"),Zl=hf(ff(df,mf,Ce)),ca={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 gf(e,n,o){return{props:{...Se,...Ve,...ca},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=e,m=t.computed(()=>({[S]:!0,[`${S}__append`]:I.value})),g=t.computed(()=>({[`${S}__unit`]:!0})),L=z=>{w.value=z,f("update:modelValue",z),f("input",z)},y=z=>{f("change",z)};let c=me(l,"hintText"),N=t.ref(!1);const B=z=>{let P=z.target.value;p.value=!0,he(c.value)||(N.value=!0),f("focus",P,z)},R=z=>{setTimeout(()=>{N.value&&(N.value=!1),p.value=!1},0);let P=z.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),f("blur",P,z)},C=()=>{f("clear","")},I=t.computed(()=>tt(l.unit)>0),x=t.ref();return ye({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:z=>{r.value=z},setReadonly:z=>{u.value=z}}),()=>{const v={...nt(a.attrs),ref:x,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:C,onChange:y,onInput:L,onFocus:B,onBlur:R},P={},U=[],M=t.h(O.ElInputNumber,v,P);U.push(M);const $={default:()=>U};$.label=a.slots.default,$.fixedPreTip=a.slots.fixedPreTip,$.fixedTip=a.slots.fixedTip;const F={...Ie(l,ca),hintText:c.value,hintVisible:N.value};if(l.prop&&(F.prop=`${l.prop}_item`),a.slots.append)$.append=a.slots.append;else if(I.value){const Y={class:g.value},H=t.h("div",Y,[l.unit]);$.append=()=>H}return t.h(o,F,$)}}}}const{componentName:pf,create:vf,scope:yf}=ie("input-number-item"),Jl=vf(gf(pf,yf,Ce));function ot(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function bf(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let xf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,a);const r=Re(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l,a))}};function wf(){const e=t.getCurrentInstance();return new xf(e.proxy)}function Tl(e,n,o){const l=ot(e,n),a=ot(e,o);if(l!==a)return!1;const r=gt(e,n),i=gt(e,o);return r===i}function Fr(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Fr(e,u,o,l);a.push(s)}else{let s=!1;for(let f of r){if(o==="text")s=ot(e,f)===u;else if(o==="item")s=Tl(e,f,u);else{let h=gt(e,f);h==null&&(h=ot(e,f)),s=h===u}if(s){a.push(f),r=bf(e,f);break}}if(!s)break}}return a}function Sf(e){return{text:e,value:e}}const fa={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Cf(e,n,o){return{props:{...Se,...Ve,...fa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),w=t.ref([]),S=t.computed(()=>w.value?w.value.map(A=>Array.isArray(A)?A.map(W=>ot(l,W)).join(" "):ot(l,A)).join(" "):""),m=(T,A,b,W=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(p.value===T)return;p.value=T;const J=t.toRaw(T);if(W){const le=G?.value.getCheckedNodes();if(le)if(l.multiple){const se=[];le.forEach(ue=>{const ge=(ue.pathNodes??[]).map(Te=>Te.data);se.push(ge)}),f("update:pathNodes",se)}else{const ue=(le[0]?.pathNodes??[]).map(be=>be.data);f("update:pathNodes",ue)}f("update:modelValue",J),f("change",J)}return}const Z=Fr(l,T,A,b);if(Z===null){if(w.value.length===0||w.value===null)return;w.value=[],p.value=null,W&&(f("update:pathNodes",[]),f("update:modelValue",null),f("change",null));return}const D=Z[Z.length-1];if(P.value.checkStrictly!==!0&&D&&!Array.isArray(D)&&Array.isArray(D.children)&&D.children.length>0){const J=[];Z.forEach(le=>{const se=`${ot(l,le)}`;J.push(se)}),J.length>0&&(z.value=J.join(l.separator))}else z.value=null;let K=!0;if(Z.length!==w.value.length)K=!1;else for(let J=0;J<Z.length;J++){const le=Z[J],se=w.value[J];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)K=!1;else for(let ue=0;ue<le.length;ue++)if(!Tl(l,le[ue],se[ue])){K=!1;break}}else Tl(l,le,se)||(K=!1);if(!K)break}if(!K){w.value=Z;let J=[],le=[];Z.forEach(ue=>{if(Array.isArray(ue)){let be=[],ge=[];for(let Te of ue)be.push(gt(l,Te)),l.valueType==="text"?ge.push(ot(l,Te)):l.valueType==="item"?ge.push(Te):ge.push(gt(l,Te));J.push(be),le.push(ge)}else J.push(gt(l,ue)),l.valueType==="text"?le.push(ot(l,ue)):l.valueType==="item"?le.push(ue):le.push(gt(l,ue))}),p.value=J;const se=t.toRaw(le);W&&(f("update:pathNodes",Z),f("update:modelValue",se),f("change",se))}},g=t.ref([]),L=Oe(t.computed(()=>l.appearLoad),"appearLoad",Ke.Near,T=>fe(T)),y=wf(),c=async(T,A)=>{if(T){const b=await y.load("cascader",T,A);if(b.length>0)if(typeof b[0]=="string"){let D=b.map(K=>Sf(K));g.value=D}else g.value=b}};t.watch([()=>l.source,()=>l.params],async([T,A])=>{c(T,A)},{immediate:!(L.value||l.lazy)});let N=!1;const B=()=>{N||(N=!0,c(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([T,A])=>{m(A,l.valueType,T,!1),f("setValue",A)}),l.lazy&&m(l.modelValue,"value",[],!1);let R=null,C=t.ref(!1);typeof l.remoteMethod=="function"&&(R=async T=>{if(T!=null){C.value=!0;try{const A=await l.remoteMethod(T);g.value=A}catch(A){console.error(A)}C.value=!1}});const I=t.ref(!1),x=e,z=t.ref(null),v=t.computed(()=>({[x]:!0,"is-incomplete":z.value&&z.value.length>0})),P=t.computed(()=>{let T={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(T.multiple=!0),l.props&&Object.assign(T,l.props),l.lazy&&(T.lazy=!0,typeof l.lazyLoad=="function"?T.lazyLoad=l.lazyLoad:T.lazyLoad=async(A,b)=>{let W={};l.params&&Object.assign(W,l.params),A&&Object.assign(W,A);const Z=await y.load("cascader",l.source,W,!0);if(A?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===A.level){const D=A.pathLabels??[];let K=[];D.forEach(J=>{J&&K.push(J)}),K.length>0&&(z.value=K.join(l.separator))}else z.value=null;b(Z)}),T}),U=T=>{l.allowCreate?(f("update:modelValue",T),f("change",T),p.value=T):m(T,"value",g.value,!0)};let M=me(l,"hintText"),$=t.ref(!1);const _=T=>{let b=T.target.value;I.value=!0,he(M.value)||($.value=!0),f("focus",b,T)},F=T=>{setTimeout(()=>{$.value&&($.value=!1),I.value=!1},0);let b=T.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),q.value||f("blur",b,T)},X=()=>{f("clear","")},Y=t.ref(!1);let H=null;const ee=()=>{l.showTooltip&&Y.value===!1&&(H&&clearTimeout(H),H=setTimeout(()=>{Y.value=!0},150))},k=()=>{H&&(clearTimeout(H),Y.value=!1,H=null)},V=t.computed(()=>Y.value||$.value),j=t.computed(()=>Y.value?S.value:M.value),q=t.ref(!1),E=T=>{q.value=T,f("visible-change",T),T||f("selected")},Q=T=>{f("remove-tag",T)},te=T=>{f("expand-change",T)},G=t.ref();return ye({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},getCheckedNodes:()=>G?.value.getCheckedNodes(),setDisabled:T=>{r.value=T},setReadonly:T=>{u.value=T}}),()=>{const A={...a.attrs,ref:G,class:v.value,props:P.value,clearable:l.clearable,placeholder:z.value||d.placeholder.value,disabled:i.value||s.value,options:g.value,modelValue:p.value,separator:l.separator,onClear:X,onChange:U,onFocus:_,onBlur:F,onVisibleChange:E,onRemoveTag:Q,expandChange:te};typeof R=="function"&&(A["remote-method"]=R,A.loading=C.value);const b={};a.slots.option&&(b.default=a.slots.option),a.slots.empty&&(b.empty=a.slots.empty);const W=[],Z=t.h(O.ElCascader,A,b);W.push(Z);const D={default:()=>W};D.label=a.slots.default,D.fixedPreTip=a.slots.fixedPreTip,D.fixedTip=a.slots.fixedTip;const J={...Ie(l,fa),hintText:j.value,hintVisible:V.value,onMouseover:ee,onMouseleave:k};return l.prop&&(J.prop=`${l.prop}_item`),L.value&&!l.lazy&&(J["appear-listen"]=!0,J.onAppear=B),t.h(o,J,D)}}}}const{componentName:Tf,create:$f,scope:kf}=ie("cascader-item"),Ql=$f(Cf(Tf,kf,Ce)),da={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Df(e,n,o){return{props:{...Se,...Ve,...da},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=me(l,"modelValue",null,f),S=e,m=t.computed(()=>({[S]:!0})),g=x=>{w.value=x,f("update:modelValue",x),f("input",x)},L=x=>{f("change",x)},y=x=>{f("select",x)};let c=me(l,"hintText"),N=t.ref(!1);const B=x=>{let v=x.target.value;p.value=!0,he(c.value)||(N.value=!0),f("focus",v,x)},R=x=>{setTimeout(()=>{N.value&&(N.value=!1),p.value=!1},0);let v=x.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),f("blur",v,x)},C=()=>{f("clear","")},I=t.ref();return ye({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},select:()=>{I?.value.select()},setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...a.attrs,ref:I,class:m.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,onClear:C,onChange:L,onInput:g,onFocus:B,onBlur:R,onSelect:y},v={};a.slots.prepend&&(v.prepend=a.slots.prepend),a.slots.append&&(v.append=a.slots.append),a.slots.prefix&&(v.prefix=a.slots.prefix),a.slots.suffix&&(v.suffix=a.slots.suffix),a.slots.option&&(v.default=a.slots.option);const P=[],U=t.h(O.ElAutocomplete,z,v);P.push(U);const M={default:()=>P};M.label=a.slots.default,M.fixedPreTip=a.slots.fixedPreTip,M.fixedTip=a.slots.fixedTip;const _={...Ie(l,da),hintText:c.value,hintVisible:N.value};return l.prop&&(_.prop=`${l.prop}_item`),t.h(o,_,M)}}}}const{componentName:Nf,create:Ef,scope:If}=ie("autocomplete-item"),eo=Ef(Df(Nf,If,Ce));function Vf(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let f=0;s&&f<r.length;f++){let h=r[f],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let f=n[s],h=r[s];const d=f.find(p=>p[l]===h);if(!d)break;i.push(d[o])}else{let s=n;for(let f=0;s&&f<r.length;f++){let h=r[f],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[o]),s=d[a]}}return i}let Pf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Of(){const e=t.getCurrentInstance();return new Pf(e.proxy)}const Mr={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 Af(e,n){return{props:{...Mr},setup(o,{attrs:l,slots:a}){const r=Of(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([f,h])=>{i.value=await r.load(o.sourceType,f,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Vf(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const f={...l};return a.default?a.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,f,{default:()=>u.value}):t.h(s,f,u.value)}}}}const{create:Ff}=ie("mapping"),_t=Ff(Af());function Mf(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Rf(e,n){return{props:{...Mr},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const u=Mf(i.row,i.column.property);return a.default?t.h(_t,{...o,modelValue:u},{default:a.default}):t.h(_t,{...o,modelValue:u})}};for(let i in a)i!=="default"&&(r[i]=a[i]);return t.h(O.ElTableColumn,{...l},r)}}}}const{create:Bf}=ie("table-mapping-column"),to=Bf(Rf()),Lf=Symbol.for("TableStateKey");function ha(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function _f(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Lf,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:u=>{const s=ha(u.row,u.column.property),f=r?ha(r,u.column.property):null,h=s===f,d={class:{"el-radio__input":!0,"is-checked":h}},p=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":h}};return t.h("label",w,[p])}};return t.h(O.ElTableColumn,{...l},i)}}}}const{create:qf}=ie("table-radio-column"),no=qf(_f()),zf={},jf={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Hf(e,n){return t.openBlock(),t.createElementBlock("svg",jf,n[0]||(n[0]=[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)]))}const Kf=Me(zf,[["render",Hf]]),{create:Wf}=ie("table-setting"),Yf={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:"不固定"}},Uf=Wf({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:Kf,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Yf},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),i=t.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),u=t.computed(()=>a.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),f=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),d=E=>E.length>1,p=(E,Q)=>{Array.isArray(E)&&Array.isArray(Q)&&E.forEach(T=>{Q.some(A=>A.prop===T.prop?(T.label=A.label,!0):!1)});const te=[];a.value=E.map((T,A)=>(!(T.label===""||T.type)&&T.visible!==!1&&te.push(T.prop),{...T,sortIndex:A})),u.value.length+r.value.length+i.value.length===te.length?y.value=!0:te.length>0&&(c.value=!0),R.value=te},w=E=>E?E.type?E.type:E.label?E.prop:"":"",S=(E,Q)=>{if(E.length!==Q.length)return!1;const te=E.map(G=>w(G));for(let G of Q){const T=w(G);if(te.indexOf(T)===-1)return!1}return!0},m=E=>{if(!E){const Q=e.tableRef.getColumnSetting(),te=Q.srcColumnPropertyList;l=te.map((G,T)=>({...G,sortIndex:T})),E=Q.columnPropertyList,E&&E.length>0&&S(te,E)||(E=te)}p(E,l)},g=()=>{e.tableRef.setColumnSetting(a.value)},L=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),c=t.ref(!1),N=E=>{const Q=[];a.value.forEach(G=>{E&&!(G.label===""||G.type)&&Q.push(G.prop),G.visible=E}),y.value=!1,c.value=!1,u.value.length+r.value.length+i.value.length===Q.length?y.value=!0:Q.length>0&&(c.value=!0),R.value=Q,g()},B=()=>{m(l),g()},R=t.ref([]),C=E=>{a.value.forEach(te=>{if(te.label===""||te.type)return;const G=E.indexOf(te.prop)!==-1;te.visible=G}),y.value=!1,c.value=!1;const Q=u.value.length+r.value.length+i.value.length;E.length===Q?y.value=!0:E.length>0&&(c.value=!0),g()},I=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const x={currentRow:null,index:null,roleType:null},z=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,z(E)):null:null,v=E=>{const Q=E.currentTarget;Q&&Q.dataset&&(x.roleType=Q.dataset.roleType,x.index=Q.dataset.index)},P=E=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},U=E=>{const Q=E.currentTarget;E.relatedTarget;const te=z(Q);if(!te)return;const G=te.dataset&&te.dataset.roleType;x.roleType===G&&(E.preventDefault(),x.currentRow&&x.currentRow!==te&&x.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),x.currentRow=te)},M=E=>{E.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},$=E=>{const Q=E.currentTarget,te=z(Q);if(!te)return;const G=te.dataset&&te.dataset.roleType;if(x.roleType!==G)return;E.preventDefault();const T=Number(x.index),A=Number(te.dataset.index);if(T!==A){if(T<A){const b=a.value[T];a.value.splice(T,1),a.value.splice(A,0,b)}else{const b=a.value[T];a.value.splice(T,1),a.value.splice(A+1,0,b)}p(a.value,l),g()}},_=E=>{const Q=a.value[E];Q.fixed="left",g()},F=E=>{const Q=a.value[E];Q.fixed="right",g()},X=E=>{const Q=a.value[E];Q.fixed=void 0,g()},Y=new Map;let H=null;function ee(E){const Q=document.createRange();return Q.setStart(E,0),Q.setEnd(E,E.childNodes.length),Q.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:f,isShowRightFixedTitle:h,isDraggble:d,isCheckAll:y,isIndeterminate:c,handleCheckAllChange:N,handleReset:B,checkedValue:R,handleCheckChange:C,onShow:I,onDragStart:v,onDragEnd:P,onDragOver:U,onDragLeave:M,onDrop:$,toLeftFixed:_,toRightFixed:F,toUnFixed:X,checkboxLabelStyle:L,onMouseOverForOverflowText:(E,Q,te)=>{const G=E.currentTarget;if(G){const T=Math.floor(G.offsetWidth);if(Math.floor(ee(G))>T){let b=Y.get(Q);if(b){if(b===H)return;qe.hide(b)}b=qe.show(G,te,{type:"text",placement:"top",closeOnClick:!1}),b&&(Y.set(Q,b),H=b)}}},onMouseLeaveForOverflowText:(E,Q)=>{const te=Y.get(Q);te&&(qe.hide(te),te===H&&(H=null))},onMouseOverForTip:(E,Q)=>{const te=E.currentTarget;te&&(H&&qe.hide(H),H=qe.show(te,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{H&&(qe.hide(H),H=null)}}}}),Gf={class:"fox-table-setting"},Xf={class:"fox-table-setting__header"},Zf={class:"fox-table-setting__body"},Jf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Qf={key:0,class:"fox-table-setting__body-title"},ed=["data-index","draggable"],td=["onMouseover","onMouseleave"],nd={class:"tools-item"},ld={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},od={key:0,class:"fox-table-setting__body-title"},ad=["data-index","draggable"],rd=["onMouseover","onMouseleave"],id={class:"tools-item"},sd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},ud={key:0,class:"fox-table-setting__body-title"},cd=["data-index","draggable"],fd=["onMouseover","onMouseleave"],dd={class:"tools-item"};function hd(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),f=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),p=t.resolveComponent("fox-checkbox"),w=t.resolveComponent("FoxCheckboxGroup"),S=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(S,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",Gf,[t.createElementVNode("div",Xf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Zf,[t.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Jf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Qf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,td)]),_:2},1032,["value"]),t.createElementVNode("div",nd,[t.createVNode(h,{onClick:g=>e.toUnFixed(m.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toRightFixed(m.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,ed))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ld,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",od,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[15]||(n[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[16]||(n[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[17]||(n[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[18]||(n[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,rd)]),_:2},1032,["value"]),t.createElementVNode("div",id,[t.createVNode(h,{onClick:g=>e.toLeftFixed(m.sortIndex),onMouseover:n[10]||(n[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toRightFixed(m.sortIndex),onMouseover:n[12]||(n[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:n[13]||(n[13]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,ad))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",sd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",ud,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[24]||(n[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[25]||(n[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[26]||(n[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[27]||(n[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(p,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,m.prop,m.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,fd)]),_:2},1032,["label"]),t.createElementVNode("div",dd,[t.createVNode(h,{onClick:g=>e.toUnFixed(m.sortIndex),onMouseover:n[19]||(n[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:n[20]||(n[20]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toLeftFixed(m.sortIndex),onMouseover:n[21]||(n[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,cd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const qn=Me(Uf,[["render",hd]]);let md=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let f=(l-1)*a,h=f+a;h>o.length&&(h=o.length);const d=o.slice(f,h);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,u]);const s=Re(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(He(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r,i,u]))}};function gd(){const e=t.getCurrentInstance();return new md(e.proxy)}let pd=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Re(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Re(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function vd(){const e=t.getCurrentInstance();return new pd(e.proxy)}const yd=Symbol.for("TableStateKey"),ma={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},ga={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[Boolean],required:!1,default:()=>"large"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},al={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:"不固定"}},bd={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function xd(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let f=r.substring(u+1,s);if(/^\d+$/.test(f)){let h=parseInt(f);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function rl(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=xd(l,a);if(r!==i)return!1}return!0})}function wd(e,n,o){return{props:{...Se,...Ve,...ma,...ga,...al,...bd},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=we.useFoxI18n(n),{emitEvent:i,broadcast:u}=De({componentName:e,validateHandler:{getValue(...ne){return C.value}}},l.prop??a.attrs.name),s=e,f=t.computed(()=>({[s]:!0})),h=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${l.footerAlign}`]:!0})),p=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${l.paginationAlign}`]:!0})),w=t.shallowRef({}),S=t.computed(()=>({...w.value,...l.params??{},...l.baseParams??{}})),m=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),L=fe(l.infiniteLoad);L||(t.watch(()=>l.pageIndex,ne=>{m.value=ne}),t.watch(()=>l.pageSize,ne=>{g.value=ne}),t.watch([m,g],([ne,oe],[re,ce])=>{oe!==ce&&(m.value=1,ne=1),v(l.data,ne,oe,S.value)}));const y=()=>Array.isArray(l.data)?!0:fe(l.autoLoad);y()&&t.watch([()=>l.data,S],async([ne,oe],[re,ce])=>{y()&&(ne!==re&&(x=!0),!(!Array.isArray(ne)&&Ye(ne,re)&&Ye(oe,ce))&&(L?(m.value=0,B.value=!0,C.value=[],U()):m.value===1?v(ne,m.value,g.value,oe):m.value=1))},{deep:!0});const c=ne=>{m.value=ne,i("page-index-change",ne)},N=ne=>{g.value=ne,i("page-size-change",ne)},B=t.ref(!0),R=t.ref(0),C=t.ref(),I=gd();let x=!0;const z=Oe(t.computed(()=>l.lazyLoad),"lazyLoad",Ke.Near,ne=>fe(ne)),v=async(ne,oe,re,ce,Be)=>{x=!1;try{if(Be===!0){if(!B.value)return!1;const xe=await I.load("table",ne,oe,re,ce,x,r.value);return R.value=xe.totalSize,!xe.page||!Array.isArray(xe.page)||(Reflect.apply([].push,C.value,xe.page),setTimeout(()=>{i("loaded-data")},250),(C.value?.length??0)>=R.value)||xe.page.length<re?(B.value=!1,!1):!0}else{const xe=await I.load("table",ne,oe,re,ce,x,r.value);return R.value=xe.totalSize,C.value=xe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(xe){console.error("[FoxUI] Load Table Data Fail",xe),R.value=0,C.value=[]}return!1};let P=!1;const U=async()=>{if(!P){if(P=!0,!B.value){P=!1;return}m.value+=1,await v(l.data,m.value,g.value,S.value,!0),P=!1}},M=(ne={},oe=!1)=>new Promise(async re=>{w.value=t.toRaw(ne??{}),oe||(m.value=l.pageIndex??1),L===!0?(m.value=0,C.value=[],B.value=!0,await U()):await v(l.data,m.value,g.value,S.value),re()}),$=()=>{R.value=0,C.value=[],L===!0&&(m.value=0,B.value=!0)};let _=!1;const F=()=>{_||(_=!0,M())},X=t.ref(null);if(L===!0){let ne=null;const oe=()=>{X.value&&(ne=new IntersectionObserver(ce=>{let Be=!1;for(let xe of ce)if(xe.intersectionRatio>0){Be=!0;break}Be&&U()}),ne.observe(X.value))},re=()=>{!ne||!X.value||(ne.unobserve(X.value),ne=null)};t.onMounted(oe),t.onBeforeUnmount(re)}y()&&!z.value&&M();const Y=t.ref(null);t.provide(yd,{currentRow:Y});const H=(ne,oe)=>{Y.value=ne,i("current-change",ne,oe)},ee=(ne,oe,re)=>{i("row-click",ne,oe,re),fe(l.rowClickSelectable)===!0&&Ne?.value.toggleRowSelection(ne)},k=[],V=(ne,oe)=>{if(i("expand-change",ne,oe),fe(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=k.length;k.splice(0,re)}else{k.forEach(ce=>{ce!==ne&&Ne?.value.toggleRowExpansion(ce,!1)});const re=k.length;k.splice(0,re,ne)}},j=a.attrs.id??l.prop??a.attrs.name,q=vd(),E=t.ref([]);let Q=[];const te=()=>({srcColumnPropertyList:Q.map(oe=>({...oe})),columnPropertyList:E.value}),G=ne=>{E.value=[...ne],A()},T=async()=>{const ne=await q.load(j);ne&&(E.value=ne)},A=()=>{q.save(j,E.value)},b=()=>{q.remove(j)};T();const W=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",Z=(ne,oe={})=>{for(let re in oe){const ce=oe[re];typeof ce!="function"&&(ne[re]=ce)}},D=ne=>{const oe=ne?ne():[],re=new Map;if(Q=[],oe.forEach(ce=>{const xe=ce;if(!xe.props)return;const Ge=W(xe.props);re.set(Ge,xe);const We={label:"",prop:""};Z(We,xe.props),Q.push(We)}),E.value.length===Q.length){const ce=[];for(let Be of E.value){const xe=W(Be),Ge=re.get(xe);if(!Ge)return oe;if(Be.visible===!1)continue;const We=Ge;We.props.fixed=Be.fixed,ce.push(We)}return ce}return oe},K=t.shallowRef(new Map),J=({row:ne,column:oe,rowIndex:re,columnIndex:ce})=>{const Be=`${re}_${oe.property}`,xe=`${re}_${ce}`;let Ge=K.value.get(Be);return Ge||(Ge=K.value.get(xe)),typeof Ge=="string"?Ge:""},le=ne=>ne?oe=>{const re=[];let ce=J(oe);return ce&&re.push(ce),ce=typeof ne=="function"?ne(oe):ne,ce&&re.push(ce),re.length===0?"":re.join(" ")}:J,se=(ne=!1)=>{K.value.forEach((oe,re)=>{ue(re,oe,ne)})},ue=(ne,oe,re=!1)=>{const ce=`${ne}_item`;re?(u.clearPersistantMessage(),Array.isArray(oe)?u.emitToChildren({name:ne},"setCellClassNames",[]):u.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(oe)?u.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",oe):u.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",oe)},be=(ne,oe,re)=>{const ce=`${ne}_${oe}`;re?(K.value.set(ce,re),ue(ce,re)):(K.value.delete(ce),ue(ce,"",!0)),t.triggerRef(K)},ge=ne=>{se(!0),K.value.clear(),ne.forEach(oe=>{const re=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?K.value.set(re,oe.children):typeof oe.cellClassName=="string"&&K.value.set(re,oe.cellClassName)}),se(),t.triggerRef(K)},Te=()=>{se(),K.value.clear(),t.triggerRef(K)},ze=t.shallowRef(new Map),lt=({rowIndex:ne})=>{const oe=`${ne}`;return ze.value.get(oe)??""},bt=ne=>ne?oe=>{const re=[];let ce=lt(oe);return ce&&re.push(ce),ce=typeof ne=="function"?ne(oe):ne,ce&&re.push(ce),re.length===0?"":re.join(" ")}:lt,Gn=(ne,oe)=>{const re=`${ne}`;oe?ze.value.set(re,oe):ze.value.delete(re),t.triggerRef(ze)},Xr=()=>{ze.value.clear(),t.triggerRef(ze)},Ne=t.ref();return ye({clearSelection:()=>Ne?.value.clearSelection(),getSelectionRows:()=>Ne?.value.getSelectionRows(),toggleRowSelection:(ne,oe)=>{Ne?.value.toggleRowSelection(ne,oe)},toggleRowSelectionByProp:(ne,oe)=>{if(!C.value)return;const re=rl(C.value,ne);re.length!==0&&re.forEach(ce=>{Ne?.value.toggleRowSelection(ce,oe)})},toggleAllSelection:()=>{Ne?.value.toggleAllSelection()},toggleRowExpansion:(ne,oe)=>{Ne?.value.toggleRowExpansion(ne,oe)},toggleRowExpansionByProp:(ne,oe)=>{if(!C.value)return;const re=rl(C.value,ne);re.length!==0&&re.forEach(ce=>{Ne?.value.toggleRowExpansion(ce,oe)})},setCurrentRow:ne=>{Ne?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!C.value)return;const oe=rl(C.value,ne);oe.length!==0&&Ne?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Y.value,clearSort:()=>{Ne?.value.clearSort()},clearFilter:ne=>{Ne?.value.clearFilter(ne)},doLayout:()=>{Ne?.value.doLayout()},sort:(ne,oe)=>{Ne?.value.sort(ne,oe)},scrollTo:(ne,oe)=>{Ne?.value.scrollTo(ne,oe)},setScrollTop:ne=>{Ne?.value.setScrollTop(ne)},setScrollLeft:ne=>{Ne?.value.setScrollLeft(ne)},loadData:M,clearData:$,getData(){return C.value},getTotalSize(){return R.value},getPageIndex(){return m.value},getPageSize(){return g.value},getColumnSetting:te,setColumnSetting:G,removeColumnSetting:b,setCellClassName:be,setCellClassNames:ge,clearCellClassName:Te,setRowClassName:Gn,clearRowClassName:Xr}),()=>{const oe={...nt(a.attrs),onCurrentChange:H,onRowClick:ee,onExpandChange:V,data:C.value,ref:Ne,class:f.value,"cell-class-name":le(l.cellClassName),"row-class-name":bt(l.rowClassName)},re={};if(a.slots.default&&(re.default=()=>D(a.slots.default)),a.slots.append&&(re.append=()=>a.slots.append),a.slots.empty&&(re.empty=()=>a.slots.empty),L===!0){const Xe=[];if(B.value){const It=t.h(Ee.Loading,{class:`${s}__infinite-icon`});Xe.push(It);const Zn=t.h("span",{class:`${s}__infinite-text`},[l.loadText]);Xe.push(Zn)}else{const It=t.h("span",{class:`${s}__infinite-text`},[l.loadMoreText]);Xe.push(It)}const dt={ref:X,class:`${s}__infinite`},Xn=t.h("div",dt,Xe);re.append=()=>Xn}const ce=t.h(O.ElTable,oe,re),Be=[];if(Be.push(ce),!L){let Xe=null;if(typeof a.slots.pagination=="function")Xe=a.slots.pagination();else if(l.showPagination){const dt={class:p.value,total:R.value,pageSize:g.value,"onUpdate:pageSize":N,pageSizes:l.pageSizes,currentPage:m.value,"onUpdate:currentPage":c,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,size:l.paginationSize,background:l.paginationBackground,appendSizeTo:l.paginationAppendSizeTo,teleported:l.paginationTeleported,popperClass:l.paginationPopperClass,prevText:l.paginationpPrevText,prevIcos:l.paginationPrevIcon,nextText:l.paginationNextText,pnextIcon:l.paginationNextIcon,disabled:l.paginationDisabled};Xe=t.h(O.ElPagination,dt)}if(l.showSetting){const dt=[];Xe&&dt.push(Xe);const Xn=t.h(O.ElIcon,{class:h.value},{default:()=>t.h(Ee.Setting)}),It=zt(l,al),Zn=t.h(qn,{...It,tableRef:{getColumnSetting:te,setColumnSetting:G,removeColumnSetting:b}},{default:()=>Xn});dt.push(Zn);const Zr=t.h("div",{class:d.value},dt);Be.push(Zr)}else Xe&&Be.push(Xe)}const xe={default:()=>Be},We={...Ie(l,ma,ga,al)};return l.prop&&(We.prop=`${l.prop}_item`),We.contentClass=`${s}__wrap`,We.errorMarkClass="is-table-error",z.value&&y()&&(We["appear-listen"]=!0,We.onAppear=F),t.h(o,We,xe)}}}}const{componentName:Sd,create:Cd,scope:Td}=ie("table-item"),lo=Cd(wd(Sd,Td,Ce));function Nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $d(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,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Dd(){const e=t.getCurrentInstance();return new kd(e.proxy)}function Rr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=Nt(e,n),a=Nt(e,o);if(l!==a)return!1;const r=qt(e,n),i=qt(e,o);return r===i}function Nd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of l){let i=!1;if(o==="text")i=Nt(e,r)===n;else if(o==="item")i=Rr(e,r,n);else{let u=qt(e,r);u==null&&(u=Nt(e,r)),i=u===n}if(i){a=r;break}}return a}function Ed(e){return{text:e,value:e}}function Id(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const pa={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Vd(e,n,o){return{inheritAttrs:!0,props:{...Se,...Ve,...pa},emits:["change","update:modelValue","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref(null),d=t.ref(null),p=(x,z,v,P=!0)=>{const U=Nd(l,x,z,v);if(U===null){if(d.value===null)return;d.value=null,h.value=null,P&&(f("update:modelValue",null),f("change",null));return}if(!Rr(l,U,d.value)){h.value=x;const $=t.toRaw(U);d.value=$;let _=null;l.valueType==="text"?_=Nt(l,$):l.valueType==="item"?_=$:_=qt(l,$),P&&(f("update:modelValue",_),f("change",_))}},w=t.ref([]),S=Oe(t.computed(()=>l.appearLoad),"appearLoad",Ke.Near,x=>fe(x)),m=Dd(),g=async(x,z)=>{if(x){const v=await m.load("radio",x,z);if(v.length>0)if(typeof v[0]=="string"){let M=v.map($=>Ed($));w.value=M}else w.value=v}};t.watch([()=>l.source,()=>l.params],async([x,z])=>{g(x,z)},{immediate:!S.value});let L=!1;const y=()=>{L||(L=!0,g(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,z])=>{p(z,l.valueType,x,!1),f("setValue",z)});const c=e,N=t.computed(()=>({[c]:!0,[`is-${l.direction}`]:!0})),B=x=>{p(x,"value",w.value,!0)};let R=me(l,"hintText"),C=me(l,"hintVisible");const I=(x,z)=>{const v=[];return x.forEach((P,U)=>{const M=qt(l,P),$=Nt(l,P);let _=$d(l,P);i.value===!0&&(_=i.value),s.value===!0&&(_=s.value);const F=Id(l,P,U)??{},X=`${M}_${U}`,Y={...F,key:X,value:M,size:l.size,border:fe(l.border)};_&&(Y.disabled=_),l.itemType==="button"?v.push(t.h(O.ElRadioButton,Y,{default:()=>[$]})):typeof z=="function"?v.push(t.h(O.ElRadio,Y,{default:()=>z(P)})):v.push(t.h(O.ElRadio,Y,{default:()=>[$]}))}),v};return ye({setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...nt(a.attrs),class:N.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,onChange:B},v=[],P={};a.slots.options?P.default=a.slots.options:P.default=()=>I(w.value,a.slots.text);const U=t.h(O.ElRadioGroup,z,P);v.push(U);const M={default:()=>v};M.label=a.slots.default,M.fixedPreTip=a.slots.fixedPreTip,M.fixedTip=a.slots.fixedTip;const _={...Ie(l,pa),hintText:R.value,hintVisible:C.value};return l.prop&&(_.prop=`${l.prop}_item`),S.value&&(_["appear-listen"]=!0,_.onAppear=y),t.h(o,_,M)}}}}const{componentName:Pd,create:Od,scope:Ad}=ie("radio-item"),oo=Od(Vd(Pd,Ad,Ce));function Et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Md=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Rd(){const e=t.getCurrentInstance();return new Md(e.proxy)}function Br(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=Et(e,n),a=Et(e,o);if(l!==a)return!1;const r=kt(e,n),i=kt(e,o);return r===i}function Bd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){let u=!1;if(o==="text")u=Et(e,i)===r;else if(o==="item")u=Br(e,i,r);else{let s=kt(e,i);s==null&&(s=Et(e,i)),u=s===r}if(u){a.push(i);break}}}),a}function Ld(e){return{text:e,value:e}}function _d(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const va={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function qd(e,n,o){return{inheritAttrs:!0,props:{...Se,...Ve,...va},emits:["change","update:modelValue","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=t.ref([]),d=t.ref([]),p=(x,z,v,P=!0)=>{const U=Bd(l,x,z,v);if(U===null){if(d.value===null||d.value.length===0)return;h.value=[],d.value=[],P&&(f("update:modelValue",[]),f("change",[]));return}let M=!0;if(U.length!==d.value.length)M=!1;else for(let $=0;$<U.length;$++){const _=U[$],F=d.value[$];if(!Br(l,_,F)){M=!1;break}}if(!M){d.value=U;let $=[],_=[];U.forEach(X=>{$.push(kt(l,X)),l.valueType==="text"?_.push(Et(l,X)):l.valueType==="item"?_.push(X):_.push(kt(l,X))}),h.value=$;const F=t.toRaw(_);P&&(f("update:modelValue",F),f("change",F))}},w=t.ref([]),S=Oe(t.computed(()=>l.appearLoad),"appearLoad",Ke.Near,x=>fe(x)),m=Rd(),g=async(x,z)=>{if(x){const v=await m.load("checkbox",x,z);if(v.length>0)if(typeof v[0]=="string"){let M=v.map($=>Ld($));w.value=M}else w.value=v}};t.watch([()=>l.source,()=>l.params],async([x,z])=>{g(x,z)},{immediate:!S.value});let L=!1;const y=()=>{L||(L=!0,g(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,z])=>{p(z,l.valueType,x,!1),f("setValue",z)});const c=e,N=t.computed(()=>({[c]:!0,[`is-${l.direction}`]:!0})),B=x=>{p(x,"value",w.value,!0)};let R=me(l,"hintText"),C=me(l,"hintVisible");const I=(x,z)=>{const v=[];return x.forEach((P,U)=>{const M=kt(l,P),$=Et(l,P);let _=Fd(l,P);i.value===!0&&(_=i.value),s.value===!0&&(_=s.value);const F=_d(l,P,U)??{},X=`${M}_${U}`,Y={...F,key:X,class:l.itemClass,value:M,size:l.size,border:fe(l.border)};_&&(Y.disabled=_),l.itemType==="button"?v.push(t.h(O.ElCheckboxButton,Y,{default:()=>[$]})):typeof z=="function"?v.push(t.h(O.ElCheckbox,Y,{default:()=>z(P)})):v.push(t.h(O.ElCheckbox,Y,{default:()=>[$]}))}),v};return ye({setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...nt(a.attrs),class:N.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,max:pe(l.max),min:pe(l.min),onChange:B},v=[],P={};a.slots.options?P.default=a.slots.options:P.default=()=>I(w.value,a.slots.text);const U=t.h(O.ElCheckboxGroup,z,P);v.push(U);const M={default:()=>v};M.label=a.slots.default,M.fixedPreTip=a.slots.fixedPreTip,M.fixedTip=a.slots.fixedTip;const _={...Ie(l,va),hintText:R.value,hintVisible:C.value};return l.prop&&(_.prop=`${l.prop}_item`),S.value&&(_["appear-listen"]=!0,_.onAppear=y),t.h(o,_,M)}}}}const{componentName:zd,create:jd,scope:Hd}=ie("checkbox-item"),ao=jd(qd(zd,Hd,Ce)),ya={modelValue:{type:[Number,String],required:!1}};function Kd(e,n,o){return{props:{...Se,...Ve,...ya},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=me(l,"modelValue",L=>pe(L),f),d=e,p=t.computed(()=>({[d]:!0})),w=L=>{f("update:modelValue",L),f("change",L)};let S=me(l,"hintText"),m=t.ref(!1);const g=t.ref();return ye({setDisabled:L=>{r.value=L},setReadonly:L=>{u.value=L}}),()=>{const y={...nt(a.attrs),ref:g,class:p.value,readonly:s.value||i.value,modelValue:h.value,onChange:w},c={},N=[],B=t.h(O.ElRate,y,c);N.push(B);const R={default:()=>N};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const I={...Ie(l,ya),hintText:S.value,hintVisible:m.value};return l.prop&&(I.prop=`${l.prop}_item`),t.h(o,I,R)}}}}const{componentName:Wd,create:Yd,scope:Ud}=ie("rate-item"),ro=Yd(Kd(Wd,Ud,Ce)),ba={modelValue:{type:[Boolean,String,Number],required:!1}};function Gd(e,n,o){return{props:{...Se,...Ve,...ba},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),h=me(l,"modelValue",null,f),d=e,p=t.computed(()=>({[d]:!0})),w=L=>{f("update:modelValue",L),f("change",L)};let S=me(l,"hintText"),m=me(l,"hintVisible");const g=t.ref();return ye({setDisabled:L=>{r.value=L},setReadonly:L=>{u.value=L}}),()=>{const y={...nt(a.attrs),ref:g,class:p.value,readonly:s.value,disabled:i.value,modelValue:h.value,onChange:w},c={},N=[],B=t.h(O.ElSwitch,y,c);N.push(B);const R={default:()=>N};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const I={...Ie(l,ba),hintText:S.value,hintVisible:m.value};return l.prop&&(I.prop=`${l.prop}_item`),t.h(o,I,R)}}}}const{componentName:Xd,create:Zd,scope:Jd}=ie("switch-item"),io=Zd(Gd(Xd,Jd,Ce)),xa={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}};let Qd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,a);const i=Re(this.proxy,n);return i===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await i(o,l,a))}};function eh(){const e=t.getCurrentInstance();return new Qd(e.proxy)}const wa={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function th(e,n,o){return{props:{...Se,...Ve,...wa,...xa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),f=t.ref(!1),{emitEvent:h}=De({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),d=me(l,"modelValue",null,h),p=e,w=t.computed(()=>({[p]:!0})),S=P=>{d.value=P,h("update:modelValue",P),h("change",P)};let m=me(l,"hintText"),g=t.ref(!1);const L=P=>{let M=P.target.value;f.value=!0,he(m.value)||(g.value=!0),h("focus",M,P)},y=P=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let M=P.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),N.value||h("blur",M,P)},c=()=>{h("clear","")},N=t.ref(!1),B=P=>{N.value=P,h("visible-change",P),P||h("selected")},R=t.ref([]),C=eh(),I=async(P,U)=>{try{const M=await C.load("treeselect",P,U);R.value=M}catch(M){console.error(M)}};t.watch([()=>l.data,()=>l.params,()=>l.lazy],([P,U,M])=>{!P||M||I(P,U)},{immediate:!0});let x=null;l.lazy&&(typeof l.load=="function"?x=l.load:x=async(P,U)=>{debugger;let M={};l.params&&Object.assign(M,l.params),P&&Object.assign(M,P);const $=await C.load("treeselect",l.data,M,!0);U($)});let z={label:l.textKey,value:l.valueKey,children:l.childrenKey,isLeaf:l.leafKey,class:l.classKey};const v=t.ref();return ye({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},setDisabled:P=>{r.value=P},setReadonly:P=>{u.value=P}}),()=>{const U={...nt(a.attrs),ref:v,class:w.value,disabled:i.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,lazy:l.lazy,props:z,onClear:c,onFocus:L,onBlur:y,onVisibleChange:B};x?U.load=x:U.data=R.value;const M={};a.slots.option&&(M.default=a.slots.option);const $=[],_=t.h(O.ElTreeSelect,U,M);$.push(_);const F={default:()=>$};F.label=a.slots.default,F.fixedPreTip=a.slots.fixedPreTip,F.fixedTip=a.slots.fixedTip;const Y={...Ie(l,wa,xa),hintText:m.value,hintVisible:g.value};return l.prop&&(Y.prop=`${l.prop}_item`),t.h(o,Y,F)}}}}const{componentName:nh,create:lh,scope:oh}=ie("tree-select-item"),so=lh(th(nh,oh,Ce));class ah{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Re(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Re(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function rh(){const e=t.getCurrentInstance();return new ah(e.proxy)}const ih={},sh={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function uh(e,n){return t.openBlock(),t.createElementBlock("svg",sh,n[0]||(n[0]=[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)]))}const ch=Me(ih,[["render",uh]]),{create:fh}=ie("group-setting"),dh={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},hh=fh({components:{FoxPopover:O.ElPopover,FoxCheckbox:O.ElCheckbox,FoxCheckboxGroup:O.ElCheckboxGroup,FoxButton:O.ElButton,FoxIcon:O.ElIcon,DragIcon:ch,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...dh},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=rh(),u=k=>k.length>1,s=()=>{const k=[],V=[...r.value];r.value=V.map((q,E)=>(q.visible!==!1&&k.push(q.prop),{...q,sortIndex:E})),r.value.length===k.length?m.value=!0:k.length>0&&(g.value=!0),c.value=k},f=k=>{let V=null;if(typeof k=="string")V=document.querySelectorAll(`.fox-group[prop="${k}"] > div > .fox-item[prop]`);else if(k&&typeof k=="object"){const q=k.$el??k;typeof q.querySelectorAll=="function"&&(V=q.querySelectorAll(".fox-item[prop]"))}if(!V)return[];const j=[];return V.forEach(q=>{const E=q.querySelector(".label--string");let Q="";E&&(Q=E.textContent??"");const te=q.getAttribute("prop")??"",T=window.getComputedStyle(q,null).getPropertyValue("display");j.push({label:Q,prop:te,sortIndex:0,visible:T!=="none"})}),j},h=()=>{if(!a){const k=f(e.groupRef??e.groupProp);if(k.length===0)return!1;a=k}return!0},d=async(k=!1)=>{const V=await i.load(e.groupProp),j=q=>{if(!q||!a)return;const E=a.map(Q=>({...Q}));Array.isArray(V)&&V.forEach(Q=>{E.some(te=>{if(te.prop===Q.prop){const G=te.label;return Object.assign(te,Q),te.label=G,!0}return!1})}),r.value=E.sort((Q,te)=>Q.sortIndex-te.sortIndex),s(),k&&w(!1)};a?j(!0):$n(h,e.initDelay,5,50,!1,j)},p=()=>{const k=a??[];r.value=k.map(V=>({...V})),s(),w()},w=(k=!0)=>{k&&i.save(e.groupProp,r.value);const V=r.value.map(j=>({...j}));n("change",V)},S=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),g=t.ref(!1),L=k=>{const V=[];r.value.forEach(q=>{k&&V.push(q.prop),q.visible=k}),m.value=!1,g.value=!1,r.value.length===V.length?m.value=!0:V.length>0&&(g.value=!0),c.value=V,w()},y=()=>{p()},c=t.ref([]),N=k=>{r.value.forEach(j=>{const q=k.indexOf(j.prop)!==-1;j.visible=q}),m.value=!1,g.value=!1;const V=r.value.length;k.length===V?m.value=!0:k.length>0&&(g.value=!0),w()},B=()=>{d()};t.onMounted(()=>{d(!0)});const R={currentRow:null,index:null},C=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,C(k)):null:null,I=k=>{const V=k.currentTarget;V&&V.dataset&&(R.index=V.dataset.index)},x=k=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null},z=k=>{const V=k.currentTarget;k.relatedTarget;const j=C(V);j&&(k.preventDefault(),R.currentRow&&R.currentRow!==j&&R.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),R.currentRow=j)},v=k=>{k.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},P=k=>{const V=k.currentTarget,j=C(V);if(!j)return;k.preventDefault();const q=Number(R.index),E=Number(j.dataset.index);if(q!==E){if(q<E){const Q=r.value[q];r.value.splice(q,1),r.value.splice(E,0,Q)}else{const Q=r.value[q];r.value.splice(q,1),r.value.splice(E+1,0,Q)}s(),w()}},U=k=>{const V=r.value[k];r.value.splice(k,1),r.value.splice(0,0,V),s(),w()},M=k=>{const V=r.value[k];r.value.splice(k,1),r.value.push(V),s(),w()};l({refresh:()=>{a=null,d(!1)}});const $=new Map;let _=null;function F(k){const V=document.createRange();return V.setStart(k,0),V.setEnd(k,k.childNodes.length),V.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:u,isCheckAll:m,isIndeterminate:g,handleCheckAllChange:L,handleReset:y,checkedValue:c,handleCheckChange:N,onShow:B,onDragStart:I,onDragEnd:x,onDragOver:z,onDragLeave:v,onDrop:P,checkboxLabelStyle:S,toTop:U,toBottom:M,onMouseOverForOverflowText:(k,V,j)=>{const q=k.currentTarget;if(q){const E=Math.floor(q.offsetWidth);if(Math.floor(F(q))>E){let te=$.get(V);if(te){if(te===_)return;qe.hide(te)}te=qe.show(q,j,{type:"text",placement:"top",closeOnClick:!1}),$.set(V,te),_=te}}},onMouseLeaveForOverflowText:(k,V)=>{const j=$.get(V);j&&(qe.hide(j),j===_&&(_=null))},onMouseOverForTip:(k,V)=>{const j=k.currentTarget;j&&(_&&qe.hide(_),_=qe.show(j,V,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:k=>{_&&(qe.hide(_),_=null)}}}}),mh={class:"fox-group-setting"},gh={class:"fox-group-setting__header"},ph={class:"fox-group-setting__body"},vh={class:"fox-group-setting__body-list","data-role":"container"},yh=["data-index","draggable"],bh=["onMouseover","onMouseleave"],xh={class:"tools-item"};function wh(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),f=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),d=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-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",mh,[t.createElementVNode("div",gh,[t.createVNode(i,{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(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",ph,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":w.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:n[6]||(n[6]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:n[7]||(n[7]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:n[8]||(n[8]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:n[9]||(n[9]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,w.prop,w.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,w.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),45,bh)]),_:2},1032,["label"]),t.createElementVNode("div",xh,[t.createVNode(h,{onClick:S=>e.toTop(w.sortIndex),onMouseover:n[1]||(n[1]=S=>e.onMouseOverForTip(S,e.toTopText)),onMouseleave:n[2]||(n[2]=S=>e.onMouseLeaveForTip(S)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:S=>e.toBottom(w.sortIndex),onMouseover:n[3]||(n[3]=S=>e.onMouseOverForTip(S,e.toBottomText)),onMouseleave:n[4]||(n[4]=S=>e.onMouseLeaveForTip(S))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,yh))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const uo=Me(hh,[["render",wh]]),un={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Sh(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(cn(e,r)===o)return a}else if(l==="item"){if(Ye(o,r))return a}else if(Lr(e,r)===o)return a}return-1}function cn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Sa(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Lr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ch(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Th(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let $h=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let f=o;typeof u=="function"&&(f=f.filter(u));let h=(l-1)*a,d=h+a;d>f.length&&(d=f.length);const p=f.slice(h,d);return{totalSize:f.length,page:p}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const s=Re(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(He(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r]))}};function kh(){const e=t.getCurrentInstance();return new $h(e.proxy)}function Dh(e,n,o,l,a,r,i,u,s,f,h){return{props:{...un},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:p}){const{emitEvent:w}=Ol(),{toLocaleRefs:S}=we.useFoxI18n(n),m=S(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),g=kh(),L=t.ref([]),y=t.ref(0),c=t.ref(""),N=t.shallowRef(null),B=t.computed(()=>{const T={};return d.params&&Object.assign(T,d.params),he(c.value)||(T[`${d.searchKey}`]=c.value),N.value&&Object.assign(T,N.value),T});let R=!0;const C=async(T,A,b)=>{try{if(x.value===!1)return;let W=null;he(c.value)||(W=D=>{const K=cn(d,D);if(typeof K=="string"&&K.includes(c.value))return!0;const J=Sa(d,D);return!!(typeof J=="string"&&J.includes(c.value))});const Z=await g.load("actionsheet",T,A,b,B.value,R,W??void 0);R=!1,Array.isArray(Z)?(L.value=Z,y.value=1,x.value=!1):!Array.isArray(Z.page)||Z.page.length===0?(console.warn("[FoxUI] can not load more data"),x.value=!1):(Reflect.apply([].push,L.value,Z.page),y.value=Math.ceil(L.value.length/d.pageSize),(Z.totalSize&&L.value.length>=Z.totalSize||b<Z.page.length)&&(x.value=!1)),I.value=!1}catch(W){console.error("[FoxUI] ActionSheet load more data fail",W),x.value=!0,y.value=0,L.value=[]}setTimeout(()=>{w("loaded-data")},250)},I=t.ref(!1),x=t.ref(!0),z=async()=>{if(!d.source){I.value=!1;return}await C(d.source,y.value+1,d.pageSize)};t.watch(()=>c.value,(T,A)=>{he(T)&&!he(A)&&z()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([T,A,b])=>{d.source&&z()},{immediate:!0});const v=t.computed(()=>!d.multiple&&d.isAutoBackFill),P=t.ref([]);let U=null;const M=t.ref(d.visible);t.watch(()=>d.visible,T=>{M.value!==T&&(M.value=T),T?U=[...P.value]:U=null});const $=(T,A)=>{const b=[];return Array.isArray(T)||(T=[T]),T.forEach(W=>{let Z=Sh(d,A,W,d.valueType);Z!==-1&&b.push(Z)}),Ye(b,P.value)?!1:(P.value=b,!0)};t.watch([()=>d.modelValue,()=>L.value],([T,A],[b,W])=>{if($(T,A)){const D=_();F(D)}},{deep:!0});const _=()=>{const T=[],A=[],b=[];for(let K of P.value){const J=L.value[K];A.push(J);const le=cn(d,J);if(b.push(le),d.valueType==="item")T.push(J);else if(d.valueType==="text")T.push(le);else{const se=Lr(d,J);T.push(se)}}let W=null,Z=null,D=null;return d.multiple?(W=T,Z=b,D=A):(W=T[0]??null,Z=b[0]??null,D=A[0]??null),{value:W,text:Z,item:D}},F=T=>{w("update:modelValue",T.value),w("update:text",T.text),w("change",T.value,T.item,T.text)},X=()=>{U&&(P.value=U)},Y=T=>{const A=P.value.indexOf(T);d.multiple?A===-1?P.value.push(T):P.value.splice(A,1):A===-1?P.value=[T]:P.value=[],(v.value||!d.poppable&&!d.showFooter)&&k()},H=T=>{M.value=T,w("update:visible",T)},ee=()=>{const T=()=>{X(),H(!1)},A=d.beforeMethod??d.beforeClose;if(typeof A=="function"){const b=A("close");hn(b)?b.then(W=>{W!==!1&&T()}).catch(()=>{T()}):b!==!1&&T()}else T()},k=()=>{const T=_(),A=()=>{F(T),H(!1)},b=d.beforeMethod??d.beforeClose;if(typeof b=="function"){const W=b("confirm",T.value,T.item,T.text);hn(W)?W.then(Z=>{Z!==!1&&A()}).catch(()=>{A()}):W!==!1&&A()}else A()},V=()=>{x.value=!0,y.value=0,L.value=[],d.source&&z()},j=()=>{let T=m.title.value??"";p.title&&(T=p.title());const A=t.h("view",{class:["fox-actionsheet__header-title"]},[T]),b=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:ee});return t.h("view",{class:["fox-actionsheet__header"]},[A,b])},q=()=>{let T=null;if(p.search)T=p.search();else{const A={onSearch:V,placeholder:m.seachPlaceholder.value,disabled:d.disabled,modelValue:c.value,"onUpdate:modelValue":b=>{c.value=b}};T=t.h(r,A,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[T])},E=(T,A,b,W,Z)=>{if(p.optionLabel)return p.optionLabel({text:T,checked:A,disabled:b,subText:W,item:Z});const D=[],K=t.h("view",{class:"fox-actionsheet__list-item-text"},[T]);if(D.push(K),W){const J=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[W]);D.push(J)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},D)},Q=(T,A,b,W)=>{if(p.optionIcon)return p.optionIcon({checked:T,disabled:A,iconSize:b,item:W});if(T){if(p.checkedIcon)return p.checkedIcon({disabled:A,item:W});{const Z=d.checkedIcon??u;return t.h(Z,{width:b,height:b,class:["fox-actionsheet__list-item-icon"]})}}else{if(p.icon)return p.icon({disabled:A,item:W});{const Z=d.icon??i;return t.h(Z,{width:b,height:b,class:["fox-actionsheet__list-item-icon"]})}}},te=()=>{const T=[];for(let A=0;A<L.value.length;A++){const b=L.value[A],W=cn(d,b),Z=Sa(d,b),D=["fox-actionsheet__list-item"],K={};let J=Ch(d,b),le=d.iconSize?ve(d.iconSize):null;const se=Th(d,b,A);se&&(J=J||se.disabled,se.class&&D.push(se.class),se.style&&Object.assign(K,se.style)),J=!!(d.disabled||J);const ue=P.value.includes(A);J&&D.push("is-disabled"),ue&&D.push("is-checked");const be={class:D,style:K,key:`${A}`,onClick:()=>{J||Y(A)}};let ge=[];if(p.option)ge.push(p.option({item:b,checked:ue,disabled:J}));else{const ze=E(W,ue,J,Z,b);ge.push(ze);const lt=Q(ue,J,le,b);ge.push(lt)}const Te=t.h("view",be,ge);T.push(Te)}return T},G=()=>{let T=[];if(p.buttons)T=p.buttons();else{const b=t.h(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:k,disabled:d.disabled},{default:()=>m.confirmText.value});T.push(b)}return t.h("view",{class:"fox-actionsheet__footer"},[T])};return ye({search:async(T=null,A=!0)=>{N.value=T&&t.toRaw(T),t.triggerRef(N),A&&(x.value=!0,y.value=0,L.value=[]),t.nextTick(()=>{z()})},clear:()=>{x.value=!0,y.value=0,L.value=[]},confirm:()=>{k()},cancel:()=>{ee()}}),()=>{const T=[];if(d.showHeader){const le=j();T.push(le)}if(d.showSearchbar){const le=q();T.push(le)}let A=null;if(p.content)A=p.content();else{const le=te(),se={hasMore:x.value,loadText:m.loadText.value,loadMoreText:m.loadMoreText.value,modelValue:I.value,"onUpdate:modelValue":ue=>{I.value=ue},onLoadMore:z};A=t.h(l,se,{default:()=>le})}const b={};d.optionsHeight&&(b.height=d.optionsHeight);const W={"fox-actionsheet__list":!0};d.poppable||(W["fox-actionsheet__list--inner"]=!0);const Z=t.h("view",{class:W,style:b},[A]);if(T.push(Z),d.showFooter&&!v.value){const le=G();T.push(le)}const D=t.h("view",{class:"fox-actionsheet"},T);if(!d.poppable)return D;const K=["fox-actionsheet__popup"];d.popClass&&K.push(d.popClass);const J={popClass:K.join(" "),visible:M.value,closeable:!1,"onUpdate:visible":H,position:d.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(o,J,{default:()=>D})}}}}const Nh=/scroll|auto|overlay/i,_r=window;function Eh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ih(e,n=_r){let o=e;for(;o&&o!==n&&Eh(o);){const{overflowY:l}=window.getComputedStyle(o);if(Nh.test(l))return o;o=o.parentNode}return n}function qr(e,n=_r){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Ih(e.value,n))}),o}const zr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Vh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Ph(e,n,o){return{props:{...Vh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=we.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),f=qr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),p=y=>y?y.offsetTop+p(y.offsetParent):0,w=()=>{let y=0,c=0,N="down";if(f.value==window){const B=zr();s.value&&(y=p(s.value)+s.value.offsetHeight-B-window.innerHeight),c=B}else{const{scrollHeight:B,clientHeight:R,scrollTop:C}=f.value;y=B-R-C,c=C}return h.beforeScrollTop>c?N="up":N="down",h.beforeScrollTop=c,a("scroll-change",c),y<=l.threshold&&N=="down"},S=()=>{kl(()=>{if(!w()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},m=()=>{f.value&&f.value.addEventListener("scroll",S,l.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",S,l.useCapture)};t.onMounted(()=>{m(),l.immediate&&S()}),t.onUnmounted(()=>{g()});const L=t.ref(!1);return t.onActivated(()=>{L.value&&(L.value=!1,m())}),t.onDeactivated(()=>{L.value=!0,g()}),t.watch(()=>l.modelValue,y=>{y||(h.isInfiniting=!1)}),()=>{const y={class:"fox-infinite__container"},c=t.h("view",y,[r?.default?.()]),N=[];if(h.isInfiniting){let I=r?.loading?.()??null;if(!I){let v=r?.loadingIcon?.()??null;if(!v){const M={class:["fox-infinite__bottom-box__img"]};v=t.h(o,M)}const P={class:"fox-infinite__bottom-box__text"},U=t.h("view",P,[u.loadText.value]);I=[v,U]}const x={class:"fox-infinite__bottom-box"},z=t.h("view",x,I);N.push(z)}else if(!l.hasMore){let I=r?.finished?.()??null;if(!I){const x={class:"fox-infinite__bottom-tips"};I=t.h("view",x,[u.loadMoreText.value]),N.push(I)}}const B={class:"fox-infinite__bottom"},R=t.h("view",B,N),C={class:d.value,ref:s};return t.h("view",C,[c,R])}}}}const{componentName:Oh,create:Ah,scope:Fh}=ie("infinite-loading"),zn=Ah(Ph(Oh,Fh,Ln)),Mh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Rh=(e,n,o)=>({props:{...Mh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=Ol(),{toLocaleRefs:i}=we.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),f=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),d=x=>{let v=x.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),r("update:modelValue",v,x),r("change",v,x)},p=t.ref({}),w=x=>{let v=x.target.value;s.active=!0,p.value=l.focusStyle,r("focus",v,x)},S=x=>{setTimeout(()=>{s.active=!1},0);let v=x.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),p.value={},r("blur",v,x)},m=x=>{r("update:modelValue","",x),r("change","",x),r("clear","")},g=t.computed(()=>String(l.modelValue).length>0),L=t.computed(()=>{const x={};return g.value||(x.display="none"),x}),y=()=>{r("search",l.modelValue)},c=x=>{r("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&y()},N=x=>{r("click-input",x)},B=x=>{r("click-left-icon",l.modelValue,x)},R=t.computed(()=>({textAlign:l.inputAlign})),C=t.ref(null);t.onMounted(()=>{l.autofocus&&C.value.focus()});const I=()=>{const x=[];if(a.leftin){const M={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},$=t.h("view",M,[a.leftin()]);x.push($)}const z={ref:C,class:[`${e}__input-inner`],style:R.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:N,onInput:d,onFocus:w,onBlur:S,onkeyup:c},v=t.h("input",z);x.push(v);const P=[];if(l.clearable){const M={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:L.value,onClick:m},$=a?.clear?.()??l.clearIcon??o,_=t.h("view",M,[t.h($)]);P.push(_)}if(a.rightin){const M={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},$=t.h("view",M,[a.rightin()]);P.push($)}if(P.length>0){const M={class:`${e}__input-inner-right`},$=t.h("view",M,P);x.push($)}const U={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...p.value}};return t.h("view",U,x)};return()=>{const x=[];if(l.label){const P={class:`${e}__search-label`},U=t.h("span",P,[l.label]);x.push(U)}if(a.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},U=t.h("view",P,[a.leftout()]);x.push(U)}const z=I();if(x.push(z),a.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},U=t.h("view",P,[a.rightout()]);x.push(U)}const v={class:`${e}`,style:f.value};return t.h("view",v,x)}}}),{componentName:Bh,create:Lh,scope:_h}=ie("searchbar"),jn=Lh(Rh(Bh,_h,Ee.CircleClose)),{componentName:qh,create:zh,scope:jh}=ie("actionsheet-pane"),Hn=zh(Dh(qh,jh,yt,zn,O.ElButton,jn,xc,pc,Or,Qu)),Ca={type:{type:String,default:"text"},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},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Hh(e,n,o,l,a){return{props:{...Se,...Ve,...Ca,...un},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=t.ref(null),s=Fe(t.computed(()=>u.value??r.disabled)),f=t.ref(null),h=Ae(t.computed(()=>f.value??r.readonly)),{emitEvent:d}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:p}=we.useFoxI18n(n),w=p(r,["placeholder"]),S=t.ref(!1),m=me(r,"modelValue",null,d),g=t.ref(""),L=t.computed(()=>Array.isArray(g.value)?g.value.join(r.separator):g.value),y="fox-input-item",c=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value})),N=Oe(t.computed(()=>r.textAlign),"textAlign"),B=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),R=t.ref(!1),C=()=>{R.value=!0},I=F=>{R.value=F},x=F=>{m.value=F,d("update:modelValue",F)},z=(F,X)=>{d("change",F,X)},v=F=>{let Y=F.target.value;S.value=!0,d("focus",Y,F)},P=F=>{setTimeout(()=>{S.value=!1},0);let Y=F.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,F)},U=F=>{g.value=F,d("update:text",F)},M=t.computed(()=>tt(r.unit)>0),$=t.ref(),_=t.ref(null);return ye({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()},search:F=>{_.value&&_.value.search(F)},clear:()=>{_.value&&_.value.clear},confirm:F=>{_.value&&_.value.confirm()},cancel:()=>{_.value&&_.value.cancel()},setDisabled:F=>{u.value=F},setReadonly:F=>{f.value=F}}),()=>{const F={ref:$,class:c.value,style:B.value,type:"text",maxlength:r.maxLength,placeholder:w.placeholder.value,readonly:!0,value:L.value,onClick:C,onFocus:v,onBlur:P},X={};i.slots.prepend&&(X.prepend=i.slots.prepend),i.slots.append&&(X.append=i.slots.append),i.slots.prefix&&(X.prefix=i.slots.prefix),i.slots.suffix?X.suffix=i.slots.suffix:M.value?X.suffix=()=>[r.unit]:X.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.ArrowDown)});const Y=[],H=t.h(O.ElInput,F,X);Y.push(H);const ee={default:()=>Y};ee.label=i.slots.default,ee.prepend=i.slots.prepend,ee.append=i.slots.append,ee.fixedPreTip=i.slots.fixedPreTip,ee.fixedTip=i.slots.fixedTip;const k=zt(r,un);k.ref=_,k.class=r.actionsheetProps,k.disabled=s.value||h.value,k.visible=R.value,k["onUpdate:visible"]=I,k.modelValue=m.value,k["onUpdate:modelValue"]=x,k.text=g.value,k["onUpdate:text"]=U,k.onChange=z,k.poppable=!0;const V={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},j=t.h(l,k,V);ee.hide=()=>[j];const E={...Ie(r,Ca,un)};return r.prop&&(E.prop=`${r.prop}_item`),t.h(o,E,ee)}}}}const{componentName:Kh,create:Wh,scope:Yh}=ie("actionsheet-item"),co=Wh(Hh(Kh,Yh,Ce,Hn)),jr={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:360}},fo={...Yl,...jr,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function Uh(e){return e===window}const ho=e=>{const n=t.unref(e);if(Uh(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ta=10;function Hr(e,n){return e>n&&e>Ta?"horizontal":n>e&&n>Ta?"vertical":""}function Ht(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Kt(){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",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Hr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function Kr(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),f=t.ref(0),h=t.ref(""),d=()=>h.value==="vertical",p=()=>h.value==="horizontal",w=()=>{i.value=0,u.value=0,s.value=0,f.value=0,h.value="",o.value=0};return{move:g=>{if(g.touches){const c=g.touches[0];i.value=c.clientX-e.value,u.value=c.clientY-n.value,a.value=c.clientX,r.value=c.clientY}else{const y=g;i.value=y.clientX-e.value,u.value=y.clientY-n.value,a.value=y.clientX,r.value=y.clientY}s.value=Math.abs(i.value),f.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Hr(s.value,f.value))},start:g=>{if(w(),g.touches){const c=g.touches[0];e.value=c.clientX,n.value=c.clientY}else{const y=g;e.value=y.clientX,n.value=y.clientY}o.value=Date.now()},reset:w,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:f,direction:h,isVertical:d,isHorizontal:p}}let Wr=36;function Gh(){return Wr}function Xh(e){Wr=e}function Je(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $l(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Zh(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $a(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Jh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Qh(){const e=t.getCurrentInstance();return new Jh(e.proxy)}function ka(e,n,o){const l=Je(e,n),a=Je(e,o);if(l!==a)return!1;const r=vt(e,n),i=vt(e,o);return r===i}function em(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let f=o[i].findIndex(h=>{if(r==="text")return Je(e,h)===u;if(r==="value"){let d=vt(e,h);return d==null&&(d=Je(e,h)),d===u}else if(r==="item")return ka(e,h,u)});if(f==-1)break;a.push(f)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let f=i.findIndex(d=>{if(r==="text")return Je(e,d)===s;if(r==="value"){let p=vt(e,d);return p==null&&(p=Je(e,d)),p===s}else if(r==="item")return ka(e,d,s)});if(f==-1)break;a.push(f);const h=$l(e,i[f]);if(!Array.isArray(h))break;i=h}}return a}function Da(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const f=u[s],h=Je(e,f);if(a.texts.push(h),a.items.push(f),r==="text")a.values.push(h);else if(r==="value"){let d=vt(e,f);d==null&&(d=h),a.values.push(d)}else a.values.push(f)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const f=i[s],h=Je(e,f),d=Object.assign({},f);if(d.children=null,a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let p=vt(e,f);p==null&&(p=h),a.values.push(p)}else a.values.push(d);if(!Array.isArray(f.children))break;i=f.children}}return a}function Na(e){return{text:e,value:e}}const tm=15,nm=300,lm=200,{create:om}=ie("picker-column");function am(e){e.stopPropagation()}function rm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),am(e)}const im=om({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},visible:{type:Boolean,default:!1},...jr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=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)),i=C=>C>=d.currIndex+8||C<=d.currIndex-8,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),s=C=>`transform: rotate3d(1, 0, 0, ${-d.rotation*C}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),h=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=C=>Je(e,C),w=C=>vt(e,C),S=Kr(),m=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},g=(C,I=!1,x=!1)=>{if(d.currIndex=C,I){const z=()=>{d.moving=!1,n("update:modelValue",C),n("change",C)};x?d.transitionEndTrigger=z:z()}},L=(C,I,x)=>{let z=C+d.startDistance;if(I==="end"){const v=-(e.source.length-1)*e.itemHeight;z<v&&(z=v),z>0&&(z=0);let P=Math.abs(Math.round(-z/e.itemHeight));const U=-P*e.itemHeight,M=`${(P+1)*d.rotation}deg`,$=x?x>0:!1;g(P,!0,$),y(U,I,x,M)}else{let v=(-z/e.itemHeight+1)*d.rotation;const P=(e.source.length+1)*d.rotation,U=0;if(v=Math.min(Math.max(v,U),P),e.threeDimensional&&(v<U||v>P))return;y(z,null,void 0,`${v}deg`)}},y=(C=0,I,x=lm,z)=>{I==="end"?d.scrollTime=x:d.scrollTime=0,d.deg=z,d.scrollDistance=C},c=(C,I)=>(C=Math.abs(C/I)/.003*(C<0?-1:1),C),N=C=>{e.readonly||(d.startDistance=d.scrollDistance,S.start(C),d.transitionEndTrigger=null)},B=C=>{e.readonly||(d.moving=!0,S.move(C),S.isVertical()&&(d.moving=!0,rm(C)),L(S.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const C=S.deltaY.value,I=S.duration.value;if(I<nm&&Math.abs(C)>tm){const z=c(C,I);L(z,"end",e.swipeDuration)}else L(C,"end",0)};return t.watch(()=>e.modelValue,C=>{const I=d.currIndex-C;if(I!==0){d.currIndex=C,d.startDistance=d.scrollDistance;const x=I*e.itemHeight;L(x,"",0)}}),t.watch(()=>e.source,C=>{if(d.currIndex>=C.length){const z=(C.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,L(z,"end",0)}}),t.watch(()=>e.visible,C=>{C===!1&&m()}),t.onMounted(()=>{const C=-e.modelValue*e.itemHeight;L(C)}),{classes:o,styles:l,contentClasses:a,itemText:p,itemValue:w,...t.toRefs(d),roller:h,getItemText:Je,onTouchStart:N,onTouchMove:B,onTouchEnd:R,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:f,stopMomentum:m}}}),sm={key:1,class:"fox-picker__item-tile"};function um(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[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,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",sm,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const cm=Me(im,[["render",um]]),{create:fm,componentName:dm,scope:hm}=ie("picker"),mm=fm({components:{PickerColumn:cm,Popup:yt},props:{...fo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=we.useFoxI18n(hm),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(Gh());t.watch(()=>e.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(r.value){const P=ho(r.value);i.value=P.height,Xh(i.value)}},50)});const u=t.computed(()=>({[dm]:!0})),s=Qh(),f=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([v,P])=>{if(v){let U=await s.load("select",v,P);if(U.length>0){let M=U[0];if(Array.isArray(M)){if(typeof M[0]=="string"){let $=U,_=[];$.forEach(F=>{let X=F.map(Y=>Na(Y));_.push(X)}),h.value=_}else h.value=U;f.value="multipleColumn"}else if(typeof M=="string"){let $=U,_=[],F=$.map(X=>Na(X));_.push(F),h.value=_,f.value="singleColumn"}else{const $=$l(e,M);Array.isArray($)?(f.value="cascade",h.value=[U]):(f.value="singleColumn",h.value=[U])}}else h.value=[]}},{immediate:!0});const d=t.ref([]),p=t.ref(e.modelValue),w=t.ref([]),S=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([v,P])=>{let U=em(e,v,P,f.value);if(!Ye(U,S.value)){S.value=U;let M=Da(e,U,P,f.value);M&&(d.value=M.texts,n("update:text",d.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,v=>{m.value=v});const g=v=>{let P=$a(e,v);return He(P)?P.defaultIndex??0:0},L=v=>{if(e.readonly===!0)return!0;let P=$a(e,v);return He(P)?P.readonly??!1:!1},y=(v,P)=>{let U=S.value;U[v]=P;for(let $=0;$<v;$++)U[$]==null&&(U[$]=g($));if(f.value==="cascade")for(let $=v+1;$<N.value.length;$++){let _=g($);$<U.length?U[$]=_:U.push(_)}else for(let $=U.length;$<N.value.length;$++){let _=g($);U.push(_)}S.value=U;let M=Da(e,U,h.value,f.value);M&&(d.value=M.texts,p.value=M.values,w.value=M.items)},c=v=>v<S.value.length?S.value[v]:g(v),N=t.computed(()=>{if(h.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return h.value;let v=[],P=0,U=h.value[0],M=0;for(;;){let $=U.map(X=>{let Y=Object.assign({},X);return Zh(e,Y,null),Y});v.push($),P>=S.value.length?M=0:M=S.value[P],(M<0||M>=U.length)&&(M=0);let _=U[M];const F=$l(e,_);if(!Array.isArray(F))break;U=F,P++}return v}),B=t.computed(()=>pe(+e.visibleItemCount-1)/2*i.value),R=(v=!1)=>{if(e.readonly===!0){v&&n("update:visible",!1);return}let P=h.value.length-1;for(;P>=0&&!(S.value[P]===null||S.value[P]===void 0);P--);if(P>=0&&y(P,0),f.value==="singleColumn"){let U=p.value.length>0?p.value[0]:"",M=w.value.length>0?w.value[0]:null;n("update:modelValue",U),n("update:text",d.value),n("change",U,M),v&&(n("confirm",U),n("update:visible",!1))}else n("update:modelValue",p.value),n("update:text",d.value),n("change",p.value,w.value),v&&(n("confirm",p.value),n("update:visible",!1))};return{...a,pickerLineRef:r,classes:u,columns:N,dataType:f,show:m,itemHeight:i,top:B,isReadonly:L,getIndex:c,change:(v,P)=>{if(y(v,P),e.isAutoBackFill){const U=!m.value;R(U)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{R(!0)},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)}}}}),gm={class:"fox-picker__bar"},pm={class:"fox-picker__title"},vm={class:"fox-picker__bar__action"},ym={class:"fox-picker__column"};function bm(e,n,o,l,a,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),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",gm,[t.createElementVNode("view",pm,t.toDisplayString(e.title),1),t.createElementVNode("view",vm,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},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]=(...s)=>e.clear&&e.clear(...s))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",ym,[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,(s,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:s,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":h=>e.change(f,h),"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,["visible","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 Wt=Me(mm,[["render",bm]]),Ea={...fo,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function xm(e,n,o){return{props:{...Se,...Ve,...Ea},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,a){const r=t.ref(null),i=Fe(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ae(t.computed(()=>u.value??l.readonly)),{emitEvent:f}=De({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??a.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),w=e,S=t.computed(()=>({[w]:!0})),m=Oe(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>({textAlign:m.value??"right"})),L=me(l,"modelValue",null,f),y=t.ref([]),c=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),N=t.ref(!1),B=()=>{N.value=!0},R=F=>{N.value=F},C=F=>{L.value=F,f("update:modelValue",F)},I=F=>{y.value=F,Array.isArray(F)&&F.length===0?f("update:text",F[0]):f("update:text",F)},x=(F,X)=>{f("change",F,X)};let z=me(l,"hintText"),v=t.ref(!1);const P=F=>{let Y=F.target.value;p.value=!0,he(z.value)||(v.value=!0),f("focus",Y,F)},U=F=>{setTimeout(()=>{v.value&&(v.value=!1),p.value=!1},0);let Y=F.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),N.value?setTimeout(()=>{f("blur",Y,F)},50):f("blur",Y,F)},M=()=>{f("clear","")},$=t.computed(()=>tt(l.unit)>0),_=t.ref();return ye({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()},setDisabled:F=>{r.value=F},setReadonly:F=>{u.value=F}}),()=>{const F={class:S.value,style:g.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:fe(l.clearable),readonly:!0,value:c.value,onClick:B,onFocus:P,onBlur:U},X={};a.slots.prepend&&(X.prepend=a.slots.prepend),a.slots.append&&(X.append=a.slots.append),a.slots.prefix&&(X.prefix=a.slots.prefix),a.slots.suffix?X.suffix=a.slots.suffix:$.value?X.suffix=()=>[l.unit]:X.suffix=()=>t.h(O.ElIcon,{},{default:()=>t.h(Ee.ArrowDown)});const Y=[],H=t.h(O.ElInput,F,X);Y.push(H);const ee={default:()=>Y};ee.label=a.slots.default,ee.fixedPreTip=a.slots.fixedPreTip,ee.fixedTip=a.slots.fixedTip;const k=zt(l,fo);k.disabled=!1,k.readonly=i.value||s.value,k.visible=N.value,k["onUpdate:visible"]=R,k.modelValue=L.value,k["onUpdate:modelValue"]=C,k.text=y.value,k["onUpdate:text"]=I,k.onClear=M,k.onChange=x;const V=t.h(Wt,k);ee.hide=()=>[V];const q={...Ie(l,Ea),hintText:z.value,hintVisible:v.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(o,q,ee)}}}}const{componentName:wm,create:Sm,scope:Cm}=ie("picker-item"),mo=Sm(xm(wm,Cm,Ce)),Tm={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Ia=(e,n)=>n[e.textKey],At=(e,n)=>n[e.valueKey],$m=(e,n)=>n[e.visibleKey],Va=(e,n)=>n[e.disabledKey],km=(e,n)=>{const o=n[e.doitKey];return fe(o)},Dm=(e,n)=>{const o=n[e.numKey];return o==null?null:pe(n[o])},Pa=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Nm(e,n,o,l=!1){return{props:{...Tm},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const u=t.computed(()=>{const k={};return k[`${e}`]=!0,k}),s=t.computed(()=>{const k={};return k[`${e}__titles`]=!0,k[`${a.direction}`]=!0,a.align==="left"&&(k.left=!0),a.scroll===!0&&(k.scrollable=!0),a.shape&&(k[`${a.shape}`]=!0),k}),f=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const k=ve(a.gutter);return k<=0?0:k}),d=t.ref(a.modelValue);t.watch(()=>a.modelValue,k=>{d.value!==k&&(d.value=k,F(!1))});const p=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),w=t.computed(()=>{const k={};return m.value||(k.display="none"),k}),S=t.ref(),m=t.ref(!1),g=()=>{const k=!m.value;L(k)},L=k=>{const V=k;V?(m.value=V,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,S.value?S.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},y=t.ref(),c=t.ref([]),N=(k,V)=>{c.value[V]=k},B=k=>V=>{N(V,k)},R=(k,V)=>{const j=y.value,q=c.value;if(!j||!q||!q[k])return;const E=q[k];let Q=0;a.direction==="vertical"?Q=E.offsetTop-(j.offsetHeight-E.offsetHeight)/2:Q=E.offsetLeft-(j.offsetWidth-E.offsetWidth)/2,C(j,Q,V?0:.3,a.direction)},C=(k,V,j,q)=>{let E=0;const Q=q==="horizontal"?k.scrollLeft:k.scrollTop,te=j===0?1:Math.round(j*1e3/16);function G(){q==="horizontal"?k.scrollLeft+=(V-Q)/te:k.scrollTop+=(V-Q)/te,++E<te&&El(G)}G()},I=(k,V)=>{const j=At(a,k),q={};return q[`${e}__titles-item`]=!0,q.disabled=Va(a,k),q.active=j===d.value,a.shape&&(q[`${a.shape}`]=!0),a.ellipsis&&(q.ellipsis=!0),V&&(V.class&&(q[`${V.class}`]=!0),V.disabled===!0&&(q.disabled=V.disabled)),q},x=(k,V)=>{const j={};if(h.value>0){const q=Math.abs(h.value/2);a.direction==="vertical"?(j["margin-top"]=`${q}px`,j["margin-bottom"]=`${q}px`):(j["margin-left"]=`${q}px`,j["margin-right"]=`${q}px`)}return V&&V.style&&Object.assign(j,V.style),j},z=(k,V)=>`${At(a,k)??V}`,v=(k,V)=>{const j=At(a,k),q={};q[`${e}__popup-item`]=!0,q.disabled=Va(a,k),q.active=j===d.value,a.shape&&(q[`${a.shape}`]=!0);const E=Pa(a,k,V);return E&&E.disabled===!0&&(q.disabled=E.disabled),q},P=t.computed(()=>(a.data??[]).filter(V=>$m(a,V)!==!1)),U=(k,V)=>{const j=At(a,k);if(d.value==j)return;const q=()=>{d.value=j,a.scroll&&R(V,!1),i("update:modelValue",j),i("change",k,V)};if(typeof a.beforeChange=="function"){const E=a.beforeChange(k,V);hn(E)?E.then(Q=>{Q!==!1&&q()}).catch(()=>{q()}):E!==!1&&q()}else q()},M=(k,V)=>function(){U(k,V)},$=(k,V)=>{U(k,V),L(!1)},_=(k,V)=>function(){$(k,V)},F=k=>{if(!Array.isArray(a.data)||!a.scroll)return;const V=a.data.findIndex(j=>At(a,j)===d.value);V!==-1&&R(V,k)};t.watch(()=>a.data,()=>{setTimeout(F,0)}),t.onMounted(()=>{F(!0)});const X=(k,V)=>{if(r.item)return r.item({item:k,index:V});const j=Pa(a,k,V),q=[];if(r.text){const G=r.text({item:k,index:V});q.push(G)}else{const G=[];if(j?.doit===!0||km(a,k)){const W={class:[`${e}__titles-item-tip`,"doit"]},Z=t.h("view",W);G.push(Z)}const T=j?.num??Dm(a,k);if(T){let W="";const Z=pe(T);Z>=100?W="99+":W=`${Z}`;const D={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",D,[W]);G.push(K)}const A={class:`${e}__titles-item-text`};G.push(Ia(a,k));const b=t.h("view",A,G);q.push(b)}const E={class:`${e}__titles-item-line`},Q=t.h("view",E);q.push(Q);const te={ref:B(V),class:I(k,j),style:x(k,j),key:z(k,V),onClick:M(k,V)};return t.h("view",te,q)},Y=()=>{const k=r.default?r.default():[];if(k.length===0)for(let j=0;j<P.value.length;j++){const q=P.value[j],E=X(q,j);k.push(E)}const V={ref:y,class:s.value,style:f.value};return t.h("view",V,k)},H=()=>{let k=null;r.navigation?k=r.navigation():k=t.h(o);const V={class:`${e}__navigation`,onClick:g};return t.h("view",V,[k])},ee=()=>{const k=[];for(let j=0;j<P.value.length;j++){const q=P.value[j];let E=null;r.popupItem?E=r.popupItem({item:q,index:j}):E=Ia(a,q);const Q={class:v(q,j),key:z(q,j),onClick:_(q,j)},te=t.h("view",Q,[E]);k.push(te)}const V={class:p.value,style:w.value};return t.h("view",V,k)};return()=>{const k=[],V=Y();if(k.push(V),a.showQuickNavigation){const q=H();k.push(q);const E=ee();k.push(E)}const j={class:u.value};return t.h("view",j,k)}}}}const{create:Em,componentName:Im,scope:Vm}=ie("tabs-bar"),Kn=Em(Nm(Im,Vm,lc,!1)),Yr=Symbol("TabsStatesKey"),Pm={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Om=15,Am=300,Fm=200;function Mm(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function Oa(e,n=0,o,l,a=Fm){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let Rm=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,o,l,a=1){this.onStart=n,this.onMove=o,this.onEnd=l,this.momentumReduceRatio=a,this.isTouch=Ht()}open(n){this.el=n;const o=Kt(),l=(a,r,i)=>{const u={delta:a,direction:r,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;o.start(a),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.removeEventListener("transitionend",this.transitionend),n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=a=>{if(!this.moving)return;o.move(a);let r=0;if(this.direction==="horizontal"){if(o.isVertical())return;r=o.state.deltaX}else{if(o.isHorizontal())return;r=o.state.deltaY}l(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let a=0;if(this.direction==="horizontal"){if(o.isVertical()){this.moving=!1;return}a=o.state.deltaX}else{if(o.isHorizontal()){this.moving=!1;return}a=o.state.deltaY}const r=o.state.duration;r<Am&&Math.abs(a)>Om?(a=Mm(a,r,this.momentumReduceRatio),l(a,this.direction,"end")):l(a,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Bm(e,n,o,l=1){return new Rm(e,n,o,l)}function Lm(e,n,o=!1){return{props:{...Pm},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:C=>{const I={name:C};u.current.value===C&&(I.loaded=!0),i.value.push(I),t.triggerRef(i)},remove:C=>{const I=i.value.findIndex(x=>x.name===C);I!==-1&&i.value.splice(I,1)},isLoaded:C=>{if(!l.lazy)return!0;const I=i.value.findIndex(x=>x.name===C);return I!==-1?u.current.value?i.value[I].loaded??!1:I===0:!1}};t.provide(Yr,u);const s=C=>{const I=i.value.findIndex(x=>x.name===C);I!==-1&&(i.value[I].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([C,I])=>{u.current.value!==C&&(u.current.value=C??"",s(C??"")),u.direction.value!==I&&(u.direction.value=I)});const f=t.ref(null),h=t.ref(null),d=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0})),p=t.computed(()=>{const C={};if(l.width){const I=Pe(l.width);I&&(C.width=I)}if(l.height){const I=Pe(l.height);I&&(C.height=I)}return C});let w=!0;const S=t.computed(()=>{const C={},I=i.value.length;if(I<=0)return C;const x=i.value.findIndex(z=>z.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(C.height=`${I*u.tabHeight.value}px`,x!==-1&&(C.transform=`translate(0, -${x*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(C.width=`${I*u.tabWidth.value}px`,x!==-1&&(C.transform=`translate(-${x*u.tabWidth.value}px, 0)`)),w&&(w=!1,C.transition="transform 0s ease"),C}),m={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},g=C=>{const I=i.value.length,x=i.value.findIndex(z=>z.name===u.current.value);m.moved=0,C.direction==="vertical"?(m.min=-1*(u.tabHeight.value*(I-1)+u.tabHeight.value/4),m.max=u.tabHeight.value/4,m.start=-x*u.tabHeight.value,m.itemDistance=u.tabHeight.value):(m.min=-1*(u.tabWidth.value*(I-1)+u.tabWidth.value/4),m.max=u.tabWidth.value/4,m.start=-x*u.tabWidth.value,m.itemDistance=u.tabWidth.value)},L=C=>{const I=h.value;if(!I)return;let x=m.start+C.delta;if(x>m.max?x=m.max:x<m.min&&(x=m.min),C.type==="move")Oa(I,x,"move",C.direction,300);else if(C.type==="end"){let z=Math.floor(Math.abs(x)*1/m.itemDistance);const v=Math.abs(x)%m.itemDistance;m.start>x?v>=m.itemDistance*m.triggerAutoMoveRatio&&(z+=1):v>m.itemDistance-m.itemDistance*m.triggerAutoMoveRatio&&(z+=1),x=-1*z*m.itemDistance,Oa(I,x,"end",C.direction,300),m.moved=x;const P=i.value[z].name;u.current.value=P??"",s(P??""),a("update:modelValue",P)}},y=()=>{},c=()=>{if(!f.value)return;const C=In(f.value);u.tabWidth.value=C.width,u.tabHeight.value=C.height},N=pr(c,250);let B=null,R=null;return t.onMounted(()=>{f.value&&(c(),window.ResizeObserver&&(R=new window.ResizeObserver(N),R.observe(f.value)),l.draggle&&(B=Bm(g,L,y),B.open(h.value)))}),t.onBeforeUnmount(()=>{R&&(R.disconnect(),R=null),B&&B.close()}),()=>{const C={class:`${e}__panes`,style:S.value,ref:h},I=t.h("view",C,[r?.default?.()]),x={class:d.value,style:p.value,ref:f};return t.h("view",x,[I])}}}}const{create:_m,componentName:qm,scope:zm}=ie("tabs-container"),Wn=_m(Lm(qm,zm,!1)),jm={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Hm(e,n,o){return{props:{...jm},setup(l,{emit:a,slots:r}){const i=t.inject(Yr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),s=t.computed(()=>l.loaded!=null?fe(l.loaded):i.isLoaded(l.paneKey));return()=>{let f=[];if(s.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},p=l.emptyIcon??o,w=t.h(p,d),S={class:`${e}__empty-text`},m=l.emptyText??"Loading",g=t.h("view",S,[m]),L={class:`${e}__empty`},y=t.h("view",L,[w,g]);f.push(y)}const h={class:`${e}`,style:u.value};return t.h("view",h,f)}}}}const{create:Km,componentName:Wm,scope:Ym}=ie("tabs-pane"),Yn=Km(Hm(Wm,Ym,Ln)),Um={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Gm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Aa(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fa(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Xm(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function il(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ma(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ra(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function sl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Zm{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const a=Re(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(He(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function Jm(){const e=t.getCurrentInstance();return new Zm(e.proxy)}function Qm(e,n,o,l){return{props:{...Um},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const u=e,s=Jm(),f=t.ref([]),h=t.computed(()=>f.value.filter(V=>Xm(a,V)!==!1)),d=t.ref(-1),p=()=>{const V=a.modelValue,j=h.value.findIndex(q=>Aa(a,q)===V);d.value!==j&&(d.value=j,a.scroll&&ee(j))};t.watch([()=>a.modelValue,h],()=>{p()});const w=V=>d.value===V,S=V=>{if(V<0&&V>=h.value.length)return!1;const j=h.value[V],E=(sl(a,j,V)??{}).status??il(a,j);return w(V)||E},m=t.computed(()=>{const V={[u]:!0};return a.mode?V[`is-${a.mode}`]=!0:a.direction&&(V[`is-${a.direction}`]=!0),a.scroll&&(V["is-scroll"]=!0),V}),g=t.computed(()=>({})),L=(V,j,q,E,Q)=>{const te={[`${u}__step`]:!0};return Q&&(te[`${Q}`]=!0),te[`${y.value}`]=!0,E&&(te["is-doit"]=!0),V===d.value?te["is-active"]=!0:j==="done"?te["is-done"]=!0:j==="error"?te["is-error"]=!0:j==="half"?te["is-half"]=!0:q?te["is-disabled"]=!0:te["is-normal"]=!0,te},y=t.computed(()=>{if(a.mode==="simple")return"start";let V=a.align;return V||(a.direction==="vertical"?V="start":V="center"),V}),c=(V,j={})=>{const q={...j};return y.value==="start"&&V===h.value.length-1?q.flex="0 0 auto":a.step?a.direction==="vertical"?q.height=a.step:q.width=a.step:q.flex="1 1 100%",q},N=(V,j)=>{let q={};if(j<h.value.length-1){const E=j+1;S(j)&&S(E)?a.direction==="vertical"?q.height="100%":q.width="100%":q.opacity="0"}return q},B=V=>h.value.length-1===V,R=(V,j)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&j>d.value||d.value===j)return;const q=d.value,E=j;d.value=j,a.scroll&&ee(j);const Q=Aa(a,V);i("update:modelValue",Q);const te={fromIndex:q,currentIndex:E,item:V,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",Q,te)},C=t.ref(!0),I=async(V,j)=>{try{const q=await s.load("stesbar",V,j);Array.isArray(q)&&(f.value=q),C.value=!1}catch(q){console.error("[FoxUI] Load StepsBar Data Fail",q),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([V,j])=>{V&&I(V,j)},{immediate:!0});const x=(V,j,q,E,Q)=>{let te=null;if(r.icon)te=r.icon({item:V,index:j,status:E});else if(E==="done"){const T={};a.iconSize&&(T.width=a.iconSize,T.height=a.iconSize);const A=a.icon??o;te=t.h(A,T)}else{const T=q??`${j+1}`;te=t.h("span",{},[T])}const G={class:"fox-steps-bar__icon",onClick:()=>{Q||R(V,j)}};return t.h("view",G,[te])},z=(V,j,q)=>{const E=t.h("i",{class:"fox-steps-bar__line-inner",style:N(V,j)});return t.h("view",{class:"fox-steps-bar__line"},[E])},v=()=>{let V=null;if(r.markIcon)V=r.markIcon();else{const q={};a.iconSize&&(q.width=a.markIconSize,q.height=a.markIconSize);const E=a.markIcon??l;V=t.h(E,q)}return t.h("view",{class:"fox-steps-bar__mark"},[V])},P=(V,j,q,E,Q)=>{const te=[];if(!B(j)){const A=z(V,j);te.push(A)}const G=x(V,j,q,E,Q);te.push(G);const T={class:"fox-steps-bar__head"};return t.h("view",T,te)},U=(V,j,q,E)=>{let Q=null;r.main?Q=r.main({item:V,index:j,status:q}):Q=Gm(a,V);const te={class:"fox-steps-bar__main",onClick:()=>{E||R(V,j)}};return t.h("view",te,[Q])},M=(V,j,q)=>{let E=null;if(r.sub){E=r.sub({item:V,index:j,status:q});const Q={class:"fox-steps-bar__sub"};return t.h("view",Q,[E])}return null},$=(V,j)=>{const q=sl(a,V,j)??{},E=q.status??il(a,V);let Q=Fa(a,V);q.disabled===!0&&(Q=!0),a.disabled===!0&&(Q=!0);const te=q.label??Ra(a,V),G=[],T=x(V,j,te,E,Q);T&&G.push(T);const A=U(V,j,E,Q);if(A&&G.push(A),!B(j)){const J=z(V,j);J&&G.push(J)}const b=t.h("view",{class:"fox-steps-bar__head"},G),W=q.class,Z=q.style??{};let D=Ma(a,V);q.doit===!0&&(D=!0);const K={ref:H(j),class:L(j,E,Q,D,W),style:c(j,Z)};return t.h("view",K,[b])},_=(V,j)=>{const q=sl(a,V,j)??{},E=q.status??il(a,V);let Q=Fa(a,V);q.disabled===!0&&(Q=!0),a.disabled===!0&&(Q=!0);const te=q.label??Ra(a,V),G=[],T=a.layout;for(let D of T)if(D==="head"){const K=P(V,j,te,E,Q);G.push(K)}else if(D==="main"){const K=U(V,j,E,Q);G.push(K)}else if(D==="sub"){const K=M(V,j,E);G.push(K)}else if(D==="mark"){const K=v();G.push(K)}const A=q.class,b=q.style??{};let W=Ma(a,V);q.doit===!0&&(W=!0);const Z={ref:H(j),class:L(j,E,Q,W,A),style:c(j,b)};return t.h("view",Z,G)},F=t.ref(),X=t.ref([]),Y=(V,j)=>{X.value[j]=V},H=V=>j=>{Y(j,V)},ee=(V,j)=>{const q=F.value,E=X.value;if(!q||!E||!E[V])return;const Q=E[V];let te=0;a.direction==="vertical"?te=Q.offsetTop-(q.offsetHeight-Q.offsetHeight)/2:te=Q.offsetLeft-(q.offsetWidth-Q.offsetWidth)/2,k(q,te,.3,a.direction)},k=(V,j,q,E)=>{let Q=0;const te=E==="horizontal"?V.scrollLeft:V.scrollTop,G=Math.round(q*1e3/16);function T(){E==="horizontal"?V.scrollLeft+=(j-te)/G:V.scrollTop+=(j-te)/G,++Q<G&&El(T)}T()};return()=>{const V=[];if(a.mode==="simple")for(let q=0;q<h.value.length;q++){const E=h.value[q],Q=$(E,q);V.push(Q)}else for(let q=0;q<h.value.length;q++){const E=h.value[q],Q=_(E,q);V.push(Q)}const j={ref:F,class:m.value,style:g.value};return t.h("view",j,V)}}}}const{componentName:eg,create:tg,scope:ng}=ie("steps-bar"),go=tg(Qm(eg,ng,Ar,Tc)),Ba=new Date().getFullYear(),lg={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"},La=(e,n,o)=>{let l;if(st(n)?l=n:typeof n=="string"&&tt(n)>0?l=ae.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},og=(e,n,o)=>{st(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ae.format(new Date(l),o)},ag={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(Ba-10,0,1),validator:st},maxDate:{type:Date,default:()=>new Date(Ba+10,11,31),validator:st},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:rg,scope:ig}=ie("date-picker"),sg=rg({components:{Picker:Wt},props:{...ag},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=we.useFoxI18n(ig),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=t.ref(!1);t.watch(()=>e.visible,c=>{a.value=c});function r(c,N){return new Date(c,N,0).getDate()}const i=(c,N)=>{const B=e[`${c}Date`],R=B.getFullYear();let C=1,I=1,x=0,z=0;c==="max"&&(C=12,I=r(N.getFullYear(),N.getMonth()+1),x=23,z=59);const v=z;return N.getFullYear()===R&&(C=B.getMonth()+1,N.getMonth()+1===C&&(I=B.getDate(),N.getDate()===I&&(x=B.getHours(),N.getHours()===x&&(z=B.getMinutes())))),{[`${c}Year`]:R,[`${c}Month`]:C,[`${c}Date`]:I,[`${c}Hour`]:x,[`${c}Minute`]:z,[`${c}Seconds`]:v}},u=t.computed(()=>{if(!p.value)return[];const{maxYear:c,maxDate:N,maxMonth:B,maxHour:R,maxMinute:C,maxSeconds:I}=i("max",p.value),{minYear:x,minDate:z,minMonth:v,minHour:P,minMinute:U,minSeconds:M}=i("min",p.value);let $=[{type:"year",range:[x,c]},{type:"month",range:[v,B]},{type:"day",range:[z,N]},{type:"hour",range:[P,R]},{type:"minute",range:[U,C]},{type:"seconds",range:[M,I]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),s=(c,N,B,R,C)=>{const I=[];for(;c<=N;){let x=!0;if(typeof e.itemFilter=="function"){const z={text:`${c}`,value:c,type:B,currentYearMonth:R};x=e.itemFilter(z)}if(x)if(typeof e.itemFormatter=="function"){const z={text:`${c}`,value:c,type:B,currentYearMonth:R};e.itemFormatter(z),I.push({text:z.text,value:z.value})}else if(e.isShowChinese){let z=`${c}${l[B]}`;if(B==="day"){if(R[0]===C[0]&&R[1]===C[1]&&c===C[2])z=l.today;else{const P=new Date(R[0],R[1],c).getDay();z=`${z} ${l.fullWeekdays[P]}`}I.push({text:z,value:c})}else I.push({text:c+l[B],value:c})}else I.push({text:`${c}`,value:c});B==="minute"?c+=e.minuteStep:c++}return I},f=t.computed(()=>{const c=new Date,N=[c.getFullYear(),c.getMonth(),c.getDate()],B=[];p.value&&(B[0]=p.value.getFullYear(),B[1]=p.value.getMonth());let R=[];return u.value.forEach(C=>{let I=s(C.range[0],C.range[1],C.type,B,N);I&&R.push(I)}),R}),h=(c,N)=>c==="year"?N.getFullYear():c==="month"?N.getMonth()+1:c==="day"?N.getDate():c==="hour"?N.getHours():c==="minute"?N.getMinutes():c==="seconds"?N.getSeconds():0,d=t.ref(),p=t.ref(null);t.watch(()=>e.modelValue,c=>{let N;if(typeof c=="string"?c.length==0||c==="Invalid Date"?N=new Date:e.valueFormat?N=La(e,e.modelValue,e.valueFormat):N=La(e,c,lg[e.type]):st(c)?N=c:N=new Date,!!N&&(!p.value||N.getTime()!==p.value.getTime())){p.value=N;let B=[];u.value.forEach(R=>{let C=h(R.type,N);B.push(C)}),d.value=B}},{immediate:!0});const w=c=>{if(!c||c.length===0){p.value=new Date;let N=[];u.value.forEach(B=>{let R=h(B.type,p.value);N.push(R)}),d.value=N;return}if(e.type==="date"){const N=c[0],B=c[1]-1,R=Math.min(c[2],r(N,B+1));R!==c[2]&&(c[2]=R),p.value=new Date(N,B,R)}else if(e.type==="datetime"){const N=c[0],B=c[1]-1,R=Math.min(c[2],r(N,B+1)),C=c[3],I=c[4];R!==c[2]&&(c[2]=R),p.value=new Date(N,B,R,C,I)}else if(e.type==="time"){const N=c[0],B=c[1],R=c[2],C=p.value??new Date,I=new Date(C.getFullYear(),C.getMonth(),C.getDate(),N,B,R);p.value=I}else if(e.type==="year-month"){const N=c[0],B=c[1]-1;p.value=new Date(N,B)}else if(e.type==="month-day"){const B=(p.value??new Date).getFullYear(),R=c[0]-1,C=Math.min(c[1],r(B,R+1));C!==c[1]&&(c[1]=C);const I=new Date(B,R,C);p.value=I}else if(e.type==="datehour"){const N=c[0],B=c[1]-1,R=Math.min(c[2],r(N,B+1)),C=c[3];R!==c[2]&&(c[2]=R),p.value=new Date(N,B,R,C)}else if(e.type==="hour-minute"){const N=c[0],B=c[1],R=p.value??new Date,C=new Date(R.getFullYear(),R.getMonth(),R.getDate(),N,B);p.value=C}d.value=c};return{columns:f,dateIndexs:d,show:a,onChange:c=>{w(c)},onClose:()=>{n("update:close",!1)},onConfirm:c=>{w(c);const N=p.value??new Date;if(e.valueFormat){let B=og(e,N,e.valueFormat);n("update:modelValue",B)}else n("update:modelValue",N);n("confirm",c)},onClear:()=>{n("clear")},onUpdateVisible:c=>{a.value=c,n("update:visible",c)}}}});function ug(e,n,o,l,a,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"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","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const po=Me(sg,[["render",ug]]),fn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:f,...h}=l,d={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:f,_parent:n};return d.children&&d.children.length&&(d.children=fn(d.children,d,o)),d}),Ur=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ur(l.children,n)},cg={topId:null,idKey:"id",pidKey:"pid",sortKey:""},fg=(e,n)=>{const o={...cg,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let u=[],s={};return e.forEach(f=>{f={...f};const{[a]:h,[r]:d}=f,p=s[d]=s[d]||[];!u.length&&d===l&&(u=p),p.push(f),f.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(f=>{s[f].length>1&&s[f].sort((h,d)=>h[i]-d[i])}),s=null,u};class _a{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=fn(n,null,this.config)}updateChildren(n,o){o?o.children=fn(n,o,this.config):this.nodes=fn(n,null,this.config)}getNodeByValue(n){let o;return Ur(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const a=l.find(r=>r.value===n[r.level]);if(!a)break;o.push(a),l=a.children}return o}isLeaf(n,o){const{leaf:l,children:a}=n,r=Array.isArray(a)&&!!a.length;return l||!r&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:dg,scope:hg}=ie("cascader-pane"),mg=dg({components:{Loading:Ln,Checklist:Ar,TabsBar:Kn,TabsContainer:Wn,TabsPane:Yn},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{t:o}=we.useFoxI18n(hg),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new _a([],{})),s=t.ref([]),f=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||s.value.length==0?[{text:"Loading",value:0}]:s.value.map((y,c)=>({text:y.selectedNode?y.selectedNode.text:o("select"),value:c}))),d=new Map;let p;const w=async()=>{d.clear(),s.value=[],a.value=0,r.value=!1,p=null;let{options:y}=e;l.value.convertConfig&&(y=fg(y,l.value.convertConfig)),u.value=new _a(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),f.value&&!u.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],S()},S=async()=>{const y=i.value;if(y===void 0||!u.value.nodes.length)return;if(y.length===0){a.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=y;if(f.value&&Array.isArray(y)&&y.length){c=[];let N=u.value.nodes.find(B=>B.value===y[0]);if(N){c=[N.value],r.value=!0;const B=await y.slice(1).reduce(async(R,C)=>{const I=await R;await m(I);const x=I?.children?.find(z=>z.value===C);return x&&c.push(C),Promise.resolve(x)},Promise.resolve(N));await m(B),r.value=!1}}c.length&&y===e.modelValue&&u.value.getPathNodesByValue(c).map((B,R)=>{a.value=R,L.handleNode(B,!0)})},m=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(u.value.isLeaf(y,f.value)||u.value.hasChildren(y,f.value))return;y.loading=!0;const c=y.root?null:y;let N=d.get(y);N||(N=new Promise(R=>{l.value.lazyLoad?.(y,R)}),d.set(y,N));const B=await N;Array.isArray(B)&&B.length>0?u.value.updateChildren(B,c):y.leaf=!0,y.loading=!1,d.delete(y)},g=y=>{const c=y.map(N=>N.value);i.value=c,n("change",c,y),n("update:modelValue",c,y)},L={async handleNode(y,c){const{disabled:N,loading:B}=y;if(!(!c&&N||!s.value[a.value])){if(u.value.isLeaf(y,f.value)){if(y.leaf=!0,s.value[a.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!c){const R=s.value.map(C=>C.selectedNode);g(R),n("pathChange",R)}return}if(u.value.hasChildren(y,f.value)){const R=y.level+1;if(s.value[a.value].selectedNode=y,s.value=s.value.slice(0,R),s.value.push({nodes:y.children||[],selectedNode:null}),a.value=R,!c){const C=s.value.map(I=>I.selectedNode);n("pathChange",C)}return}p=y,!B&&(await m(y),p===y&&(s.value[a.value].selectedNode=y,L.handleNode(y,c)))}},handleTabChange(y,c){p=null},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:o("select")},isSelected(y,c){return y.selectedNode&&y.selectedNode.value===c.value}};return t.watch([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==i.value&&(i.value=y,S())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(i.value)&&i.value.length>0&&S()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:a,...L}}}),gg={class:"fox-cascader"},pg={role:"menu",class:"fox-cascader__pane"},vg=["aria-checked","aria-disabled","onClick"],yg={class:"fox-cascader__item__title"};function bg(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",gg,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,p)=>(t.openBlock(),t.createBlock(f,{"pane-key":p,key:p},{default:t.withCtx(()=>[t.createElementVNode("view",pg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,w=>(t.openBlock(),t.createElementBlock("view",{key:w.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,w),disabled:w.disabled}]),"aria-checked":e.isSelected(d,w),"aria-disabled":w.disabled||void 0,role:"menuitemradio",onClick:S=>e.handleNode(w,!1)},[t.createElementVNode("view",yg,t.toDisplayString(w.text),1),w.loading?(t.openBlock(),t.createBlock(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,vg))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1,__:[2]}))]),_:1},8,["modelValue"])])}const xg=Me(mg,[["render",bg]]),{create:wg}=ie("cascader-picker"),Sg=wg({components:{FoxCascaderPane:xg,FoxPopup:yt},props:{...Yl,modelValue:Array,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 o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),Cg=["innerHTML"];function Tg(e,n,o,l,a,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Cg)):t.createCommentVNode("",!0)]),t.createVNode(i,{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"])]),_:3},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{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 vo=Me(Sg,[["render",Tg]]),$g=Symbol.for("InnerPageScopeKey"),kg=Symbol.for("PageWrapperKey");function Dg(e,n){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(o,l){t.provide($g,!0);const a={};t.provide(kg,a);const r=s=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const f={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":r},h=["fox-dialog-item "];o.hideHeader&&h.push("hide-header"),o.class&&h.push(o.class),f.class=h.join(" ");const d={};return typeof l.slots.default=="function"&&(d.default=l.slots.default),t.h(O.ElDialog,f,d)}}}}const{create:Ng}=ie("dialog-item"),yo=Ng(Dg()),{create:Eg}=ie("toast"),Ig=Eg({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 o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,w=>{w&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const w=ve(e.iconSize);return t.h(e.icon,{width:w,height:w,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:f,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:d,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Vg={key:1,class:"fox-toast-title"},Pg=["innerHTML"];function Og(e,n,o,l,a,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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",Vg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Pg)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const bo=Me(Ig,[["render",Og]]),Ag={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Fg=(e,n,o)=>({props:{...Ag},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=we.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Kt(),f=t.ref(),h=qr(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=t.computed(()=>({[e]:!0})),w=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),S=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),m=t.computed(()=>{const C={};return l.headHeight!=50&&(C.height=Pe(l.headHeight)),C}),g=C=>{const I=+(l.pullDistance||l.headHeight);let x=C;return C>I&&(C<I*2?x=(C+I)/2:x=I+C/4),Math.round(x)},L=(C,I)=>{const x=+(l.pullDistance||l.headHeight);d.distance=C,I?d.status="loading":C===0?d.status="normal":C<x?d.status="pulling":d.status="loosing",a("change",{status:d.status,distance:C})},y=()=>d.status!=="loading"&&d.status!=="complete",c=()=>h.value==window?zr()==0:h.value&&h.value.scrollTop==0,N=C=>{y()&&(c()?(s.start(C),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=C=>{y()&&d.moving&&(s.move(C),s.isVertical()&&s.state.deltaY>0&&d.isPullRefresh&&(C.cancelable&&C.preventDefault(),L(g(s.state.deltaY))))},R=()=>{d.moving=!1,d.isPullRefresh&&y()&&s.state.deltaY&&(d.status==="loosing"?(L(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):L(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,C=>{C?L(+l.headHeight,!0):L(0)}),()=>{const C=[];let I=null;if(d.status==="loading"){if(I=r?.loading?.()??null,!I){const _={class:["fox-pull-refresh-container-topbox-icon"]};I=t.h(o,_)}}else d.status==="pulling"?I=r?.pulling?.()??null:d.status==="loosing"&&(I=r?.loosing?.()??null);I&&C.push(I);const x={class:["fox-pull-refresh-container-topbox-text"]},z=t.h("dive",x,[w.value]);C.push(z);const v={class:["fox-pull-refresh-container-topbox"],style:m.value},P=t.h("div",v,C),U={class:"fox-pull-refresh-container",style:S.value},M=t.h("div",U,[P,r?.default?.()]),$={ref:f,class:p.value};return Ht()?Object.assign($,{onTouchstart:N,onTouchmove:B,onTouchend:R}):Object.assign($,{onMousedown:N,onMousemove:B,onMouseup:R}),t.h("div",$,[M])}}}),{componentName:Mg,create:Rg,scope:Bg}=ie("pull-refresh"),xo=Rg(Fg(Mg,Bg,Ln));function Lg(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(o,{slots:l}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const h={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),f=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const m={class:i.value,style:u.value};h=t.h(o.icon??"div",m)}const d={class:s.value,style:f.value},p=l.default?l.default():[],w=t.h("div",d,p),S={class:r.value};return o.textPosition==="right"?t.h("div",S,[h,w]):t.h("div",S,[w,h])}}}}const{componentName:_g,create:qg}=ie("indicator"),wo=qg(Lg(_g));function zg(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const jg={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Hg(e,n,o,l=!1){return{props:{...jg},emits:["click"],setup(a,r){const i=t.ref(null),u=t.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(c[`${e}--${a.type??"default"}`]=!0),a.size&&(c[`${e}--${a.size}`]=!0),c}),s=t.computed(()=>{const c={},N=a.textColor??a.color;return N&&(c.color=N),c}),f=(c,N)=>{let B=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const R=a.highlightFilter;if(c.indexOf(R)!==-1){const I=c.replace(new RegExp(R,"g"),`<span>${R}</span>`);N.innerHTML=I,N.class["is-highlight"]=!0,B=t.h(a.tag,N)}}else if(typeof a.highlightFilter=="function"){const R=a.highlightFilter(c);R&&(N.innerHTML=R,N.class["is-highlight"]=!0,B=t.h(a.tag,N))}return B},h=c=>{r.emit("click",c)};let d="";const p=()=>{const c=i.value;if(!c)return;const N=c.clientWidth;zg(c,B=>{const R=c.innerHTML??"";he(R)||B<N||(d?o?.show(c,R,{type:"text",id:d,showArrow:a.showArrow},!0):d=o?.show(c,R,{type:"text",showArrow:a.showArrow},!0)??"")})},w=()=>{d&&o?.hide(d)};let S=null;const m=c=>{S||(S=setTimeout(()=>{p(),S=null},a.showAfter??0))},g=c=>{S&&(clearTimeout(S),S=null),setTimeout(()=>{w()},a.hideAfter??0)},L=()=>{const c=i.value;c&&(c.addEventListener("mouseover",m),c.addEventListener("mouseleave",g))},y=()=>{const c=i.value;c&&(c.removeEventListener("mouseover",m),c.removeEventListener("mouseleave",g))};return t.onMounted(()=>{!fe(a.showOverflowTooltip)||!o||L()}),t.onBeforeUnmount(()=>{!fe(a.showOverflowTooltip)||!o||y()}),()=>{const c={onClick:h,class:u.value,style:s.value,ref:i};let N=null;if(fe(a.numberFormat)&&typeof r.slots.default=="function"){const I=r.slots.default();if(Array.isArray(I)&&I.length===1){const x=I[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=pe(a.digits),v=pe(a.decimalLength),P=fe(a.autoPadding);let U=`${I[0].children}`,M=U.split("").reverse().join("");M=xn(M,v,P,z,a.separator),U=M.split("").reverse().join(""),a.highlightFilter!==void 0&&(N=f(U,c)),N||(c.innerHTML=U,N=t.h(a.tag,c))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const I=r.slots.default();if(Array.isArray(I)&&I.length===1){const x=I[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=`${I[0].children}`;N=f(z,c),N||(c.innerHTML=z,N=t.h(a.tag,c))}}}N||(N=t.h(a.tag,c,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return N;let R=null;if(a.icon){const I={[`${e}__mark-wrap`]:!0};a.type&&(I[`${e}__mark-wrap--${a.type}`]=!0);const x={},z=a.color;z&&(x.color=z);const v={class:I,style:x};R=t.h("view",v,t.h(a.icon))}else if(r.slots.mark){const I={[`${e}__mark-wrap`]:!0};a.type&&(I[`${e}__mark-wrap--${a.type}`]=!0);const x={},z=a.color;z&&(x.color=z);const v={class:I,style:x};R=t.h("view",v,{default:r.slots.mark})}else{const I={[`${e}__mark`]:!0};a.type&&(I[`${e}__mark--${a.type??"default"}`]=!0);const x={},z=a.color;z&&(x["background-color"]=z);const v={class:I,style:x};R=t.h("view",v)}const C={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",C,[R,N])}}}}const{componentName:Kg,create:Wg,scope:Yg}=ie("text"),So=Wg(Hg(Kg,Yg,qe,!1)),Ug={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ee.ArrowUp}};function Gg(e,n,o){return{props:{...Ug},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const d={[`${e}`]:!0};return l.disabled?d[`${e}__disabled`]=!0:d[`${e}__${l.type}`]=!0,d}),i=me(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(u.value){const m={class:s.value},g=t.h("span",m,[u.value]);d.push(g)}const p={class:f.value},w=o(l.icon,p);return w&&d.push(w),t.h("div",{class:r.value,onClick:h},d)}}}}const{componentName:Xg,create:Zg,scope:Jg}=ie("more-button"),Qg=(e,n)=>(e=e??Ee.ArrowUp,t.h(O.ElIcon,n,{default:()=>[t.h(e)]})),Co=Zg(Gg(Xg,Jg,Qg));function ep(e){e.stopPropagation()}let tp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Ht()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Kt(),l=(a,r,i,u)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),ep(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function np(e,n){return new tp(e,n)}const lp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},op=(e,n,o,l=!1)=>({props:{...lp},emits:["click"],setup(a,{slots:r,emit:i}){const u=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),s=t.computed(()=>{const y=[`${e}`];return a.customClass&&y.push(a.customClass),y}),f=t.computed(()=>{const y={};return he(u.top)||(y.top=u.top),he(u.right)||(y.right=u.right),he(u.bottom)||(y.bottom=u.bottom),he(u.left)||(y.left=u.left),he(a.width)||(y.width=a.width),he(a.height)||(y.height=a.height),he(a.color)||(y.color=a.color),he(a.background)||(y.background=a.background),he(a.borderRadius)||(y["border-radius"]=a.borderRadius),he(a.zIndex)||(y["z-index"]=a.zIndex),y}),h=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{i("click")},p=t.ref(null),w=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},S={x:0,y:0},L=np(y=>{if(!p.value)return;const c=p.value;w(),u.left=c.offsetLeft,u.top=c.offsetTop,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`,c.style.right=null,c.style.bottom=null,S.x=u.left,S.y=u.top},y=>{if(!p.value)return;const c=p.value;w(),u.left=S.x+y.x,u.top=S.y+y.y,c.style.left=`${u.left}px`,c.style.top=`${u.top}px`});return t.onMounted(()=>{if(a.draggable&&p.value){const y=[p.value];L.open(y)}}),t.onBeforeUnmount(()=>{a.draggable&&p.value&&L.close()}),()=>{let y=[];const c=typeof r.default=="function"?r.default():[];if(c&&c.length>0)y=c;else{const B=t.h(o,{class:h.value});y.push(B)}const N={ref:B=>{p.value=B},class:s.value,style:f.value,onClick:d};return t.h("view",N,y)}}}),{componentName:ap,create:rp,scope:ip}=ie("floating-button"),To=rp(op(ap,ip,Gu,!1)),{componentName:sp,create:up}=ie("tour"),cp=up({components:{Close:Ee.Close,ElPopover:O.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 o=sp,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:S,maskWidth:m,maskHeight:g}=e,{width:L,height:y,left:c,top:N}=a.value,B=e.steps[l.active].offset??S,R=[c+L/2,N+y/2],C=Number(m||L),I=Number(g||y);return{width:`${C+ +B.left+B.right}px`,height:`${I+B.top+B.bottom}px`,top:`${R[1]-I/2-+B.top}px`,left:`${R[0]-C/2-+B.left}px`}}),u=S=>{S=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},s=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,h=()=>{const S=document.querySelector(`${e.steps[l.active].target}`),m=ho(S);a.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},d=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&d()},w=(S,m=0)=>{S&&h(),e.steps,l.active=m,l.showTour=S,l.showPopup=S};return t.onMounted(()=>{w(e.modelValue,e.current)}),t.watch(()=>e.modelValue,S=>{w(S)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:f,close:d,handleClickMask:p}}}),fp={key:0,class:"fox-tour__content"},dp={key:0,class:"fox-tour__content-top"},hp={class:"fox-tour__content-inner"},mp={class:"fox-tour__content-bottom"},gp={class:"fox-tour__content-bottom-init"},pp={class:"fox-tour__content-bottom-operate"},vp={key:1,class:"fox-tour__content fox-tour__content-tile"},yp={class:"fox-tour__content-inner"};function bp(e,n,o,l,a,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=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,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{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",fp,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",dp,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",hp,t.toDisplayString(f.content),1),t.createElementVNode("div",mp,[t.createElementVNode("div",gp,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",pp,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=d=>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(u,{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(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=d=>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",vp,[t.createElementVNode("div",yp,t.toDisplayString(f.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const $o=Me(cp,[["render",bp]]),_e=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ht=e=>e==null;class xp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Ht()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Kt(),l=(a,r,i,u)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function qa(e,n){return new xp(e,n)}const za=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Ct=[];const ja=e=>{const n=e;n.key==="Escape"&&Ct.forEach(o=>o(n))},wp=e=>{t.onMounted(()=>{Ct.length===0&&document.addEventListener("keydown",ja),za&&Ct.push(e)}),t.onBeforeUnmount(()=>{Ct=Ct.filter(n=>n!==e),Ct.length===0&&za&&document.removeEventListener("keydown",ja)})},ul="fox-focus-trap.focus-after-trapped",cl="fox-focus-trap.focus-after-released",Sp="fox-focus-trap.focusout-prevented",Ha={cancelable:!0,bubbles:!1},Cp={cancelable:!0,bubbles:!1},Ka="foxFocusAfterTrapped",Wa="foxFocusAfterReleased",Tp=Symbol("foxFocusTrap"),ko=t.ref(),Un=t.ref(0),Do=t.ref(0);let Xt=0;const Gr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},$p=(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},Ya=(e,n)=>{for(const o of e)if(!$p(o,n))return o},kp=e=>{const n=Gr(e),o=Ya(n,e),l=Ya(n.reverse(),e);return[o,l]},Dp=e=>e instanceof HTMLInputElement&&"select"in e,rt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Do.value=window.performance.now(),e!==o&&Dp(e)&&n&&e.select()}};function Ua(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Np=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=Ua(e,l),e.unshift(l)},remove:l=>{e=Ua(e,l),e[0]?.resume?.()}}},Ep=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(rt(l,n),document.activeElement!==o)return},Ga=Np(),Ip=()=>Un.value>Do.value,Zt=()=>{ko.value="pointer",Un.value=window.performance.now()},Xa=()=>{ko.value="keyboard",Un.value=window.performance.now()},Vp=()=>(t.onMounted(()=>{Xt===0&&(document.addEventListener("mousedown",Zt),document.addEventListener("touchstart",Zt),document.addEventListener("keydown",Xa)),Xt++}),t.onBeforeUnmount(()=>{Xt--,Xt<=0&&(document.removeEventListener("mousedown",Zt),document.removeEventListener("touchstart",Zt),document.removeEventListener("keydown",Xa))}),{focusReason:ko,lastUserFocusTimestamp:Un,lastAutomatedFocusTimestamp:Do}),Jt=e=>new CustomEvent(Sp,{...Cp,detail:e}),{create:Pp}=ie("focus-trap"),Op={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"}},Ap=Pp({props:Op,emits:[Ka,Wa,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=Vp();wp(m=>{fe(e.trapped)&&!u.paused&&o("release-requested",m)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=m=>{if(!e.loop&&!fe(e.trapped)||u.paused)return;const{key:g,altKey:L,ctrlKey:y,metaKey:c,currentTarget:N,shiftKey:B}=m,{loop:R}=e,C=g==="Tab"&&!L&&!y&&!c,I=document.activeElement;if(C&&I){const x=N,[z,v]=kp(x);if(z&&v){if(!B&&I===v){const U=Jt({focusReason:i.value});o("focusout-prevented",U),U.defaultPrevented||(m.preventDefault(),R&&rt(z,!0))}else if(B&&[z,x].includes(I)){const U=Jt({focusReason:i.value});o("focusout-prevented",U),U.defaultPrevented||(m.preventDefault(),R&&rt(v,!0))}}else if(I===x){const U=Jt({focusReason:i.value});o("focusout-prevented",U),U.defaultPrevented||m.preventDefault()}}};t.provide(Tp,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[g])=>{m&&(m.addEventListener("keydown",s),m.addEventListener("focusin",d),m.addEventListener("focusout",p)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",d),g.removeEventListener("focusout",p))});const f=m=>{o(Ka,m)},h=m=>o(Wa,m),d=m=>{const g=t.unref(l);if(!g)return;const L=m.target,y=m.relatedTarget,c=L&&g.contains(L);fe(e.trapped)||y&&g.contains(y)||(a=y),c&&o("focusin",m),!u.paused&&fe(e.trapped)&&(c?r=L:rt(r,!0))},p=m=>{const g=t.unref(l);if(!(u.paused||!g))if(!e.escape&&fe(e.trapped)){const L=m.relatedTarget;!Il(L)&&!g.contains(L)&&setTimeout(()=>{if(!u.paused&&fe(e.trapped)){const y=Jt({focusReason:i.value});o("focusout-prevented",y),y.defaultPrevented||rt(r,!0)}},0)}else{const L=m.target;L&&g.contains(L)||o("focusout",m)}};async function w(){await t.nextTick();const m=t.unref(l);if(m){Ga.push(u);const g=m.contains(document.activeElement)?a:document.activeElement;if(a=g,!m.contains(g)){const y=new Event(ul,Ha);m.addEventListener(ul,f),m.dispatchEvent(y),y.defaultPrevented||t.nextTick(()=>{let c=e.focusStartEl;tr(c)||(rt(c),document.activeElement!==c&&(c="first")),c==="first"&&Ep(Gr(m),!0),(document.activeElement===g||c==="container")&&rt(m)})}}}function S(){const m=t.unref(l);if(m){m.removeEventListener(ul,f);const g=new CustomEvent(cl,{...Ha,detail:{focusReason:i.value}});m.addEventListener(cl,h),m.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Ip())&&rt(a??document.body,!0),m.removeEventListener(cl,f),Ga.remove(u)}}return t.onMounted(()=>{fe(e.trapped)&&w(),t.watch(()=>e.trapped,m=>{fe(m)?w():S()})}),t.onBeforeUnmount(()=>{fe(e.trapped)&&S()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Fp,create:Mp}=ie("floating-window"),Rp=Symbol.for("InnerPageScopeKey"),Bp=Symbol.for("PageWrapperKey"),Lp={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},_p=Mp({inheritAttrs:!1,components:{FoxIcon:O.ElIcon,FocusTrap:Ap},props:{...Lp},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Fp,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,D=>{l.value=D});const r=t.computed(()=>l.value===!1?!1:!I.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),f=t.ref(e.bottom),h=t.computed(()=>{const D=["fox-floating-window"];return e.customClass&&D.push(e.customClass),D}),d=t.computed(()=>{const D={};return ht(i.value)?D.left="auto":D.left=_e(i.value),ht(u.value)?D.top="auto":D.top=_e(u.value),ht(s.value)?D.right="auto":D.right=_e(s.value),ht(f.value)?D.bottom="auto":D.bottom=_e(f.value),ht(e.zIndex)||(D["z-index"]=_e(e.zIndex)),ht(R.value)||(D.height=R.value),ht(C.value)||(D.width=C.value),D}),p=t.computed(()=>e.closeIcon??Ee.Close),w=t.computed(()=>e.collapseIcon??Ee.ArrowUp),S=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),g=t.computed(()=>e.expandText??e.title??"展开"),L=t.computed(()=>({[`${o}__collapse-text`]:!0})),y=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),c=t.ref(),N=t.ref(null),B=t.ref(null),R=t.computed(()=>_e(e.height)||""),C=t.computed(()=>_e(e.width)||""),I=t.ref(fe(e.collapse)),x=(D,K=!0)=>{I.value!==D&&(I.value=D,D?V():j(),n("update:collapse",D),D&&typeof P.onHide=="function"?P.onHide():!D&&typeof P.onShow=="function"&&P.onShow())};t.watch(()=>e.collapse,D=>{x(D)});const z=()=>{v()},v=D=>{D=D??!I.value,x(D)};t.provide(Rp,!0);const P={setCollapse:x,setFixedNavVisible:D=>{H.value=D}};t.provide(Bp,P);const U=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{l.value=!1}):l.value=!1},M=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),_=t.computed(()=>{const D=["fox-floating-window__fixednav"];return e.expandClass&&D.push(e.expandClass),e.collapsePosition==="left"?D.push("is-left"):e.collapsePosition==="right"&&D.push("is-right"),D}),F=t.ref(""),X=t.computed(()=>{const D={};return F.value?D.top=F.value:e.collapseTop&&(D.top=e.collapseTop),D}),Y=t.ref(I.value),H=t.computed({set:D=>{Y.value=D},get:()=>l.value===!1?!1:Y.value});let ee=null;const k=()=>{typeof ee=="function"&&(ee(),ee=null)},V=()=>{M.value&&M.value.classList.add("slide-in"),H.value=!0,ee=()=>{M.value&&M.value.classList.remove("slide-in")}},j=()=>{M.value&&M.value.classList.add("slide-out"),ee=()=>{M.value&&M.value.classList.remove("slide-out"),H.value=!1}},q=()=>{i.value=null,u.value=null,s.value=null,f.value=null},E={x:0,y:0},G=qa(D=>{if(!c.value)return;const K=c.value;if(q(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,E.x=i.value,E.y=u.value;else if(e.origin==="left-bottom"){const J=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=J-(K.offsetTop+K.offsetHeight),E.x=i.value,E.y=f.value}else if(e.origin==="right-bottom"){const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=J-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),E.x=s.value,E.y=f.value}else{const J=document.documentElement.clientWidth||document.body.clientWidth;s.value=J-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,E.x=s.value,E.y=u.value}},D=>{if(!c.value)return;const K=c.value;q(),e.origin==="left-top"?(i.value=E.x+D.x,u.value=E.y+D.y,K.style.left=_e(i.value),K.style.top=_e(u.value)):e.origin==="left-bottom"?(i.value=E.x+D.x,f.value=E.y-D.y,K.style.left=_e(i.value),K.style.bottom=_e(f.value)):e.origin==="right-bottom"?(s.value=E.x-D.x,f.value=E.y-D.y,K.style.right=_e(s.value),K.style.bottom=_e(f.value)):(s.value=E.x-D.x,u.value=E.y+D.y,K.style.right=_e(s.value),K.style.top=_e(u.value))}),T={x:0,y:0},W=qa(D=>{M.value&&(T.x=M.value.offsetLeft,T.y=M.value.offsetTop)},D=>{if(!M.value)return;const K=T.y+D.y;F.value=`${K}px`}),Z=()=>{if(c.value){const D=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=D}};return t.onMounted(()=>{if(e.draggable&&c.value){const D=[];N.value&&D.push(N.value),e.footerDraggable&&(Z(),B.value&&D.push(B.value)),G.open(D)}e.collapse===!0&&x(e.collapse,!1),M.value&&W.open(M.value)}),t.onBeforeUnmount(()=>{e.draggable&&N.value&&G.close(),M.value&&W.close()}),{classes:h,styles:d,isShow:r,closeIcon:p,onClose:U,dialogRef:c,headerRef:N,onClickToggle:z,collapseIcon:w,collapseText:S,collapseTextClasses:L,collapseIconClasses:y,expandIcon:m,expandText:g,isShowFixedNav:H,fixedNavRef:M,fixedNavClasses:_,fixedNavStyles:X,onAnimationEnd:k,teleportDisabled:a,fixedNavTeleportDisabled:$}}}),qp={ref:"headerRef",class:"fox-floating-window__header"},zp={class:"fox-floating-window__title"},jp={class:"fox-floating-window__tools"},Hp={class:"fox-floating-window__body"},Kp={class:"fox-floating-window__fixednav__text"};function Wp(e,n,o,l,a,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[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(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",qp,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",zp,t.toDisplayString(e.title),1),t.createElementVNode("div",jp,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{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(i,{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",Hp,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Kp,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const No=Me(_p,[["render",Wp]]),Yp={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function Up(e,n,o=!1){return{props:{...Yp},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:i}){const u=t.ref({top:null,right:null,bottom:null,left:null}),s=t.ref(0),f=t.ref(0),h=t.ref(0),d=t.ref(0),p=t.ref(l.placement),w=t.ref(!1),S=t.ref(!1),m=t.ref(null),g=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,L=(H,ee,k,V,j,q,E,Q=!0)=>{const te=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,T=H.split("-");let A=[];Q?T[0]==="top"?A=["top","bottom","right","left"]:T[0]==="bottom"?A=["bottom","top","right","left"]:T[0]==="left"?A=["left","top","bottom","right"]:T[0]==="right"&&(A=["right","top","bottom","left"]):A=[H[0]];const b={top:null,right:null,bottom:null,left:null},W=[];for(let Z=0;Z<A.length;Z++){const D=A[Z];if(W[0]=D,T[1]&&(W[1]=T[1]),D==="top"){const K=k-E-l.arrowSize/2-l.offset;if(K>=0){b.top=K;let J=0;T[1]==="start"?J=ee:T[1]==="end"?J=ee+V-q:J=ee+V/2-q/2;const le=te-J-q;le<0?(J+=le,c.value=-le):c.value=0,b.left=J<0?0:J;break}}else if(D==="bottom"){const K=k+j+l.arrowSize/2+l.offset;if(K+E<=G){b.top=K;let J=0;T[1]==="start"?J=ee:T[1]==="end"?J=ee+V-q:J=ee+V/2-q/2;const le=te-J-q;le<0?(J+=le,c.value=-le):c.value=0,b.left=J<0?0:J;break}}else if(D==="left"){const K=ee-q-l.arrowSize/2-l.offset;if(K>=0){b.left=K;let J=0;T[1]==="start"?J=k:T[1]==="end"?J=k+j-E:J=k+j/2-E/2,b.top=J<0?0:J;break}}else if(D==="right"){const K=ee+V+l.arrowSize/2+l.offset;if(K+q<=te){b.left=K;let J=0;T[1]==="start"?J=k:T[1]==="end"?J=k+j-E:J=k+j/2-E/2,b.top=J<0?0:J;break}}}return{bestPlacement:W.join("-"),bestInsetRect:b}},y=()=>{const H=l.visible,ee=l.autoFit;if(!ct||H===!1)return;if(l.reference){const E=g(),Q=_l(E);s.value=Q.x,f.value=Q.y,h.value=E.offsetWidth,d.value=E.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,f.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,d.value=l.referenceInset.bottom-l.referenceInset.top);const k=m.value.offsetWidth,V=m.value.offsetHeight,{bestPlacement:j,bestInsetRect:q}=L(l.placement,s.value,f.value,h.value,d.value,k,V,ee);p.value=j,u.value=q},c=t.ref(0),N=Ue(()=>{y()},10),B=t.ref(l.visible);t.watch([()=>l.visible],([H])=>{B.value=H,H?(w.value=H,setTimeout(()=>{y(),S.value=!0},0)):S.value=!1});const R=t.computed(()=>B.value&&C.value),C=t.ref(!0),I=Ue(H=>{const ee=H[0];ee&&(C.value=ee.isIntersecting)},10),x=new IntersectionObserver(I);t.watch([()=>l.reference,()=>l.referenceInset],([H,ee],[k,V])=>{!H&&!ee||(setTimeout(()=>{y()},0),l.autoFit&&(k&&(Rt.unwatch(k,N),x.unobserve(k)),H&&(Rt.watch(H,N),x.observe(H))))},{immediate:!0}),t.onBeforeUnmount(()=>{l.reference&&(Rt.unwatch(l.reference,N),x.unobserve(l.reference),x.disconnect())});const z=t.computed(()=>{const H={[e]:!0};return p.value.startsWith("top")?H["is-top"]=!0:p.value.startsWith("right")?H["is-right"]=!0:p.value.startsWith("bottom")?H["is-bottom"]=!0:p.value.startsWith("left")&&(H["is-left"]=!0),H[`is-${l.effect}`]=!0,!S.value&&R.value&&(H["is-opacity"]=!0),S.value&&R.value&&(H["is-show"]=!0),R.value||(H["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(H[`${l.customClass}`]=!0),H}),v=t.computed(()=>{const H={};return u.value.top!==null&&(H.top=`${u.value.top}px`),u.value.right!==null&&(H.right=`${u.value.right}px`),u.value.bottom!==null&&(H.bottom=`${u.value.bottom}px`),u.value.left!==null&&(H.left=`${u.value.left}px`),l.width&&(H.width=l.width),l.zIndex&&(H["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(H,l.customStyle),H}),P=()=>{B.value=!1,a("update:visible",!1)},U=()=>{if(!l.showOverlay)return null;const H={class:`${e}__overlay`,onClick:P};return t.h("div",H)},M=()=>{let H=null;return r.title?H=t.h("div",{class:`${e}__title`},{default:r.title}):l.title&&(H=t.h("div",{class:`${e}__title`},[l.title])),H},$=t.computed(()=>({[`${e}__arrow`]:!0})),_=t.computed(()=>{const H={};return l.showArrow?(H.width=`${l.arrowSize}px`,H.height=`${l.arrowSize}px`,p.value==="top"?(H.left="50%",H.bottom="0",H.transform="translate(-50%, 50%)"):p.value==="top-start"?(H.left=`${l.arrowOffset+c.value}px`,H.bottom="0",H.transform="translate(-50%, 50%)"):p.value==="top-end"?(H.right=`${l.arrowOffset-c.value}px`,H.bottom="0",H.transform="translate(-50%, 50%)"):p.value==="right"?(H.left="0",H.top="50%",H.transform="translate(-50%, -50%)"):p.value==="right-start"?(H.left="0",H.top=`${l.arrowOffset}px`,H.transform="translate(-50%, 50%)"):p.value==="right-end"?(H.left="0",H.bottom=`-${l.arrowOffset}px`,H.transform="translate(-50%, 50%)"):p.value==="bottom"?(H.left="50%",H.top="0",H.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(H.left=`${l.arrowOffset+c.value}px`,H.top="0",H.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(H.right=`${l.arrowOffset-c.value}px`,H.top="0",H.transform="translate(-50%, -50%)"):p.value==="left"?(H.right="0",H.top="50%",H.transform="translate(50%, -50%)"):p.value==="left-start"?(H.right="0",H.top=`${l.arrowOffset}px`,H.transform="translate(50%, -50%)"):p.value==="left-end"&&(H.right="0",H.bottom=`-${l.arrowOffset}px`,H.transform="translate(50%, -50%)"),H):{display:"none"}}),F=()=>{const H={class:$.value,style:_.value};return t.h("div",H)},X=()=>{B.value===!1&&(w.value=!1)},Y=H=>{if(!m.value||B.value===!1)return;const{relatedTarget:ee}=H;m.value.contains(ee)||(B.value=!1,a("update:visible",!1))};return i({doLayout:y}),()=>{if(!w.value)return null;const H=[],ee=U();ee&&H.push(ee);const k=[],V=M();if(V&&k.push(V),r.default){const Q=r.default();k.push(Q)}const j=F();j&&k.push(j);const q={ref:m,class:z.value,style:v.value,onAnimationend:X};l.leaveHide&&(q.onMouseleave=Y);const E=t.h("div",q,{default:()=>k});return H.push(E),H}}}}const{componentName:Gp,create:Xp,scope:Zp}=ie("popover-dialog"),Eo=Xp(Up(Gp,Zp,!1));function Jp(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return vr(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{create:Qp}=ie("domain-provider"),Io=Qp(Jp()),ev={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 tv(e,n){return{inheritAttrs:!1,props:ev,setup(o,{slots:l}){if(ct&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(p,w)=>{if(h===null){r.set(p,{visible:null,callback:w});return}a.has(p)&&h.unobserve(p),a.set(p,{visible:null,callback:w}),h.observe(p)},u=p=>{if(h===null){r.delete(p);return}a.has(p)&&(a.delete(p),h.unobserve(p))};let s=o.initialVisibleObserverSize;ns({acquire:()=>{const p=s>0;return s--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const d=(p,w,S)=>{h=new IntersectionObserver(m=>{for(let g of m){let L=!1;g.intersectionRatio>0&&(L=!0);const y=a.get(g.target);if(y)try{if(o.loadPolicy==="lazy"&&!L&&y.visible!==null)return;y.visible=L,y.callback(L)}catch(c){console.error(c)}}},{root:p,rootMargin:w,threshold:S}),r.forEach((m,g)=>{a.set(g,m),h?.observe(g)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([p,w])=>{if(w||!p||h)return;let S=null;typeof p=="string"?S=document.querySelector(p):S=p,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{create:nv}=ie("rolling-provider"),Vo=nv(tv()),lv=[Al,Ml,Rl,Bl,Ll,Ce,ql,zl,jt,jl,Hl,Kl,Ul,Gl,Xl,Zl,Jl,Ql,eo,to,no,qn,lo,oo,ao,ro,io,so,uo,Hn,co,mo,Kn,Wn,Yn,go,Wt,po,_n,vo,yo,Bn,yt,bo,jn,zn,xo,_t,Rn,wo,So,Co,To,$o,No,Eo,Io,Vo],ov=new Fi(lv,[Bi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>O.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>O.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>O.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>O.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>O.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>O.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>O.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>O.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>O.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>O.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>O.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>O.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>O.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>O.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>O.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>O.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>O.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>O.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>O.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>O.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>O.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>O.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>O.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>O.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>O.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>O.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>O.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>O.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>O.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>O.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>O.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>O.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>O.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>O.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>O.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>O.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>O.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>O.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>O.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>O.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>O.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>O.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>O.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>O.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>O.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>O.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>O.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>O.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>O.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>O.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>O.ElInputNumber});Object.defineProperty(exports,"FoxInputTag",{enumerable:!0,get:()=>O.ElInputTag});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>O.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>O.ElMain});Object.defineProperty(exports,"FoxMention",{enumerable:!0,get:()=>O.ElMention});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>O.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>O.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>O.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>O.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>O.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>O.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>O.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>O.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>O.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>O.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>O.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>O.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>O.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>O.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>O.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>O.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>O.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>O.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>O.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>O.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>O.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>O.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>O.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>O.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>O.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>O.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>O.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>O.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>O.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>O.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>O.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>O.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>O.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>O.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>O.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>O.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>O.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>O.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>O.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>O.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>O.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>O.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>O.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>O.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>O.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>O.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>O.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>O.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>O.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>O.ElWatermark});exports.ActionsheetItem=co;exports.ActionsheetPane=Hn;exports.AutocompleteItem=eo;exports.Broadcast=Vl;exports.BroadcastKey=ke;exports.CalendarItem=Ul;exports.CascaderItem=Ql;exports.CheckboxItem=ao;exports.Content=Bl;exports.DataItemsKey=St;exports.DateItem=Kl;exports.DateUtils=ae;exports.DialogItem=yo;exports.Domain=kn;exports.DomainKey=je;exports.DomainProvider=Io;exports.FloatingButton=To;exports.FloatingWindow=No;exports.FooterBar=Rl;exports.FoxActionsheetItem=co;exports.FoxActionsheetPane=Hn;exports.FoxAutocompleteItem=eo;exports.FoxCalendarItem=Ul;exports.FoxCascaderItem=Ql;exports.FoxCheckboxItem=ao;exports.FoxContent=Bl;exports.FoxDateItem=Kl;exports.FoxDialogItem=yo;exports.FoxDomainProvider=Io;exports.FoxFloatingButton=To;exports.FoxFloatingWindow=No;exports.FoxFooterBar=Rl;exports.FoxGroup=Ll;exports.FoxGroupSetting=uo;exports.FoxHeaderBar=Ml;exports.FoxHintText=jt;exports.FoxIndicator=wo;exports.FoxInfiniteLoading=zn;exports.FoxInputItem=jl;exports.FoxInputNumberItem=Jl;exports.FoxItem=Ce;exports.FoxMapping=_t;exports.FoxMoneyItem=Zl;exports.FoxMoreButton=Co;exports.FoxOverLay=Bn;exports.FoxPage=Al;exports.FoxPickerItem=mo;exports.FoxPopoverDialog=Eo;exports.FoxPopup=yt;exports.FoxPrice=Rn;exports.FoxPullRefresh=xo;exports.FoxRadioItem=oo;exports.FoxRateItem=ro;exports.FoxRollingProvider=Vo;exports.FoxRowItem=zl;exports.FoxSearchBar=jn;exports.FoxSelectItem=Hl;exports.FoxSlotItem=ql;exports.FoxStepsBar=go;exports.FoxSwitchItem=io;exports.FoxTableItem=lo;exports.FoxTableMappingColumn=to;exports.FoxTableRadioColumn=no;exports.FoxTableSetting=qn;exports.FoxTabsBar=Kn;exports.FoxTabsContainer=Wn;exports.FoxTabsPane=Yn;exports.FoxText=So;exports.FoxTimeItem=Gl;exports.FoxTimeSelectItem=Xl;exports.FoxToast=bo;exports.FoxTour=$o;exports.FoxTreeSelectItem=so;exports.Foxcalendarpicker=_n;exports.Foxcascaderpicker=vo;exports.Foxdatepicker=po;exports.Foxpicker=Wt;exports.Group=Ll;exports.GroupSetting=uo;exports.HeaderBar=Ml;exports.HintText=jt;exports.Indicator=wo;exports.InfiniteLoading=zn;exports.InputItem=jl;exports.InputNumberItem=Jl;exports.Item=Ce;exports.Mapping=_t;exports.MoneyItem=Zl;exports.MoreButton=Co;exports.OverLay=Bn;exports.Page=Al;exports.PickerItem=mo;exports.PopoverDialog=Eo;exports.Popup=yt;exports.Price=Rn;exports.PriorityPolicy=Ke;exports.PullRefresh=xo;exports.RadioItem=oo;exports.RateItem=ro;exports.RollingProvider=Vo;exports.RowItem=zl;exports.SearchBar=jn;exports.SelectItem=Hl;exports.SlotItem=ql;exports.StepsBar=go;exports.SwitchItem=io;exports.TableItem=lo;exports.TableMappingColumn=to;exports.TableRadioColumn=no;exports.TableSetting=qn;exports.TabsBar=Kn;exports.TabsContainer=Wn;exports.TabsPane=Yn;exports.Text=So;exports.TimeItem=Gl;exports.TimeSelectItem=Xl;exports.Toast=bo;exports.Tour=$o;exports.TreeSelectItem=so;exports.UniqueID=Nr;exports.ValidateSchema=mr;exports.ValidateSchemaKey=Ze;exports.calendarpicker=_n;exports.cancelRaf=ei;exports.cascaderpicker=vo;exports.clearNonNumber=fi;exports.clone=yl;exports.compareTo=gl;exports.createBroadcast=Cn;exports.createValidateSchema=Tn;exports.datepicker=po;exports.debounce=Ue;exports.debounceRef=Ti;exports.decimalLength=ur;exports.default=ov;exports.defineBroadcast=gi;exports.defineConfigDomain=vr;exports.defineDataItem=yr;exports.defineDomain=Pl;exports.defineItem=De;exports.definePageState=br;exports.defineSimpleItem=Ol;exports.deleteGlobalValidator=xi;exports.disabledProperty=Fe;exports.divide=Nl;exports.excludeProps=Ie;exports.extend=pt;exports.floatData=mi;exports.getGlobalValidateCheckEvents=fr;exports.getGlobalValidateResetEvents=hr;exports.getPageContentAreaHeight=pn;exports.getPageContentAreaWidth=vn;exports.getPageFooterAreaHeight=En;exports.getPageHeaderAreaHeight=Nn;exports.getRootDomain=Tt;exports.hasSymbol=lr;exports.includeProps=zt;exports.indexOf=di;exports.integerLength=sr;exports.isArray=ni;exports.isArrayLike=ar;exports.isBrowser=ct;exports.isDate=st;exports.isESModule=ri;exports.isEmptyString=he;exports.isEqual=Ye;exports.isFunction=pl;exports.isHidden=Sn;exports.isInnerPage=Di;exports.isMap=li;exports.isNil=Il;exports.isNumberString=ir;exports.isObject=He;exports.isPlainObject=vl;exports.isPromise=hn;exports.isRegExp=bl;exports.isSet=oi;exports.isString=tr;exports.isSubPage=Ni;exports.isSymbol=ai;exports.isTouch=Ht;exports.isWindow=or;exports.lastIndexOf=hi;exports.makeArray=ci;exports.merge=rr;exports.multiply=Ja;exports.negate=Qa;exports.nextTick=si;exports.numberFormat=xn;exports.objectToString=nr;exports.once=$i;exports.overrideGlobalValidateHandler=yi;exports.picker=Wt;exports.property=Oe;exports.raf=El;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=wi;exports.setGlobalValidateHandler=vi;exports.setGlobalValidateMessages=Ci;exports.setGlobalValidateResetEvents=Si;exports.setGlobalValidator=bi;exports.throttle=pr;exports.toBoolean=fe;exports.toNumber=pe;exports.toPadding=Qe;exports.toPx=ve;exports.toPxDesc=Pe;exports.toTypeString=wn;exports.toValue=me;exports.tryTimes=$n;exports.typeOf=mn;exports.unNumberFormat=er;exports.updatePageState=xl;exports.useBroadcast=Ft;exports.useDomain=ft;exports.useExpose=ye;exports.useInnerSize=In;exports.usePageState=Dn;exports.usePosition=_l;exports.useRawTouch=Kt;exports.useRect=ho;exports.useSize=Fl;exports.useTouch=Kr;exports.valueLength=tt;
|