@fox-js/foxui-pad 4.0.1-26 → 4.0.1-27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Fri May 24 2024 09:54:54 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ot=require("@fox-js/validator"),F=require("element-plus"),Ce=require("@element-plus/icons-vue"),ve=require("@fox-js/i18n"),Lt=window,Pr=typeof window<"u";function Or(){return typeof Lt<"u"?Lt.requestAnimationFrame||Lt.webkitRequestAnimationFrame||function(e){Lt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ar(e){Pr?cancelAnimationFrame(e):clearTimeout(e)}const rl=Or();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Tue May 28 2024 21:14:11 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),ot=require("@fox-js/validator"),A=require("element-plus"),Te=require("@element-plus/icons-vue"),ye=require("@fox-js/i18n"),Lt=window,Pr=typeof window<"u";function Or(){return typeof Lt<"u"?Lt.requestAnimationFrame||Lt.webkitRequestAnimationFrame||function(e){Lt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ar(e){Pr?cancelAnimationFrame(e):clearTimeout(e)}const rl=Or();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Wt(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=Ie(e),n=Ie(n),[e,n]=il(Ie(e),Ie(n)),o==1&&(l==1?e=In(e):n=In(n));let a=wa(e,n);return o?o==2?"-"+Ie(a):e.length<a.length?Ie(a.substring(1)):"-"+Ie(In(a)):Ie(a)}function In(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 wa(n,r)}function Ie(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 il(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 wa(e,n){[e,n]=il(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 xe=(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))(xe||{});function Et(e,n=0,o=xe.HALF_EVEN){if(o===xe.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=Et(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,co(a[1],r,l,o)?(l?"-":"")+Pn(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&&co(u,i,l,o)&&(i=Pn(i),i.length>n)?(l?"-":"")+Pn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function co(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!o&&l===xe.FLOOR||o&&l===xe.CEILING)return!1;if(l===xe.UP||o&&l===xe.FLOOR||!o&&l===xe.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 xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Pn(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 Kn(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=Ct(e),n=Ct(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=Ct(e.replace(".","")),n=Ct(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let I=n.length-1;I>=d&&I>=0;I--)s[I]>-1&&s[I]<e.length&&(b+=parseInt(e[s[I]--])*parseInt(n[I]));b+=u,u=Math.floor(b/10),h=b%10+h,d--}return h=Ct(Fr(h,r)),o==1&&(h="-"+h),h}function Fr(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 Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Yn(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=Ie(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ie(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ie(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let h=e.length-d+a;e=Ie(e.substring(0,h)+"."+e.substring(h))}else a==d&&(e=Ie(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 d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Wt(s,"-"+n),d++;u+=d,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?"-":"")+Ie(Et(u,o-2))}function Wn(e,n){return e=e.toString(),n=n.toString(),n=Un(n),Wt(e,n)}function Un(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ho(e),ho(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Wn(e,Kn(n,Et(Yn(e,n),0,xe.FLOOR)));return o+l}function ho(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function mo(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]=il(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 ce{value;static RoundingModes=xe;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=Ie(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+Ie(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=ce.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=ce.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 ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=xe.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Et(n,o,l)}round(n=0,o=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Et(this.value,n,o))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.CEILING)}static add(n,o){return n=ce.validate(n),o=ce.validate(o),Wt(n,o)}add(n){return new ce(Wt(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),Wn(n,o)}subtract(n){return new ce(Wn(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),Kn(n,o)}multiply(n){return new ce(Kn(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),Yn(n,o,l)}divide(n,o){return new ce(Yn(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),fo(n,o)}modulus(n){return new ce(fo(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),mo(n,o)}compareTo(n){return mo(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Un(n)}negate(){return new ce(Un(this.value))}}function xa(e,n){return ce.multiply(`${e}`,`${n}`)}function sl(e,n,o=8){return ce.divide(`${e}`,`${n}`,o)}function Gn(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Sa(e){return ce.negate(e)}function tn(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="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+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 c="",b=u.split("").reverse();for(let I=0;I<b.length;I++)c+=b[I]+((I+1)%l==0&&I+1!=b.length?a:"");s.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function Ca(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const ul=rl,Br=Array.isArray,Mr=e=>nn(e)==="[object Map]",Rr=e=>nn(e)==="[object Set]",et=e=>e instanceof Date,Xn=e=>typeof e=="function",Ta=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",Ut=e=>Me(e)&&Xn(e.then)&&Xn(e.catch),$a=Object.prototype.toString,nn=e=>$a.call(e),Zn=e=>nn(e)==="[object Object]",ka=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function _r(e){return e.__esModule||ka&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...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 d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=it(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}function Jn(e,n,o=!1){if(!o)it(!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)&&!Zn(i))continue;r=Jn(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)&&!Zn(i))continue;r=Jn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const On=qr?Promise.resolve():null;function zr(e,...n){On!==null?n&&n.length>0?On.then(()=>{e(n)}):On.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}const jr={"[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 Gt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):jr[o]||"object"}function Da(e){return e&&typeof e=="object"&&"setInterval"in e}function ln(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Na(e){let n=!!e&&"length"in e&&e.length,o=Gt(e);return o==="function"||Da(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ea(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 Hr(e,n=[]){let o=n;return e!=null&&(Na(Object(e))?Ea(o,typeof e=="string"?[e]:e):o.push(e)),o}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Gt(e),l=Gt(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],d=n[u];if(!Le(s,d))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(!Le(r,i))return!1}return!0}return!1}const ut=typeof window<"u";function cl(e){return e==null}function Va(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ia(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Pa(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 Oa(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 go(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 Kr(e,n=!0,o=!0){n?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Le(e,o))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function He(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Bt(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Te(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 Ur=(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},De=Symbol.for("BroadcastKey");class fl{parent;children=[];callbacks=new Map;proxy=null;name;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.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Va(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)}}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){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 on(e,n,o,l){const a=new fl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function Gr(e,n,o){const l=o;if(l[De])return l[De];const a=t.inject(De,null),r=new fl(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[De]=r,t.provide(De,r),t.onUnmounted(()=>{r.destroy(),l[De]=void 0}),r}function Dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const at=e=>e.default??e;class Xr{error(n,o){const l=o,a=t.hasInjectionContext()?Dt(o):null;a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=t.hasInjectionContext()?Dt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=t.hasInjectionContext()?Dt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=t.hasInjectionContext()?Dt(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 Nt=new Xr;function Zr(e){Nt=e}function Jr(e){Nt?Object.assign(Nt,e):Nt=e}function Qr(e,n){at(ot).setValidator(e,n)}function ei(e){at(ot).deleteValidator(e)}let Aa=["blur","clear"];function ti(e){Aa=e}function Fa(){return Aa}let Ba=["focus","change","setValue"];function ni(e){Ba=e}function Ma(){return Ba}function li(e){at(ot).messages(e)}function Tt(...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 _t(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 We=Symbol("ValidateSchemaKey");class Ra{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(),this.scope.run(()=>{t.watchEffect(()=>{const o=_t(Tt(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=_t(l);const a=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Nt;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?at(ot).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?at(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return at(ot).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=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=_t(n):this.rules=_t([n]);const l=Tt(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=Tt(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=at(ot),s=new u(a),d=this.proxy??i;return s.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function an(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 Ra(n,o,e)}const Xt=Symbol.for("EventEmitterKey");class La{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 Vt(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function _a(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function oi(e,n){const o=Vt((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function ai(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function rn(e,n,o,l=0,a=!0,r){let i=n,u=0;if(a){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Re=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class sn{_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 ri=new sn;function gt(){return ri}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Re]??t.inject(Re,null):t.inject(Re,null)}const An=Symbol("OriginalDateKey");function dl(e,n,o=[],l){const a=t.getCurrentInstance(),r=a?.proxy;let i=t.inject(Re,null);i===null&&(i=gt());const u=e||n.prop||n.name,s=new sn(u);s.parent=i;const d=g=>{r[An]||b(g),s.set("modelValue",g)},h=()=>s.getForSelf("modelValue")??null,c=()=>r[An]??null,b=g=>{const y={};it(!0,y,t.toRaw(g)),r[An]=y};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{s.merge(g,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&b(n.modelValue),r[Re]=s,t.provide(Re,s);let I=null,p=null;if(a!==null){const g=t.inject(De,null);I=on(r,g,u,l),s.broadcast=I,r[De]=I,t.provide(De,I),r.broadcast=(P,m,...f)=>Reflect.apply(I.emit,I,[P,m,...f]);const y=t.inject(We,null);p=an(r,y,{componentName:""}),s.validateSchema=p,r[We]=p,t.provide(We,p),r[ht]=new Map,r.validate=(P=!0)=>{const m=[];let f=null;const E={deep:!1};if(P===!0)f={name:"*"};else if(Array.isArray(P)&&P.length>0){const B=P;f={name:M=>M?B.indexOf(M)!==-1:!1}}else if(P!=null&&typeof P=="object"){const B=P;if(Object.assign(E,B),Array.isArray(B.include)&&B.include.length>0){const M=B.include;f={name:D=>D?M.indexOf(D)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const M=B.exclude;f={name:D=>D?M.indexOf(D)===-1:!1}}else f={name:"*"}}if(f){const B=I?.emitToChildren(f,"validate",E);B&&Reflect.apply([].push,m,B)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(B=>{let M=[];return B.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(M=[...M,...D.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(P,m=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(P).forEach(B=>{let M=String(B);const L=ja(s,M,{componentName:"",fieldName:M,pureDataValidate:!0},I,p);r[ht].set(M,L);const N=P[M];N&&L.validateSchema.setRule(N)});return}if(m){const E=Reflect.ownKeys(P),B={name:M=>E.includes(M)};I?.emitToChildren(B,"setNameValidateRules",P,!1)}},r.clearValidate=(P=!0)=>{let m=null;if(P===!0)m={name:"*"};else if(Array.isArray(P)&&P.length>0){const f=P;m={name:E=>E?f.indexOf(E)!==-1:!1}}else if(P!=null&&typeof P=="object"){const f=P;if(Array.isArray(f.include)&&f.include.length>0){const E=f.include;m={name:B=>B?E.indexOf(B)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const E=f.exclude;m={name:B=>B?E.indexOf(B)===-1:!1}}else m={name:"*"}}m&&I?.emitToChildren(m,"clearValidate",!1)},r.resetFields=P=>{const m=h();if(!m)return;const f={};if(it(!0,f,c()??{}),Array.isArray(P))P.forEach(E=>{m[E]=f[E]});else if(P&&Array.isArray(P.include))(P.include??[]).forEach(B=>{m[B]=f[B]});else if(P&&Array.isArray(P.exclude)){let E=P.exclude??[];Reflect.ownKeys(f).forEach(B=>{E.includes(B)||(m[B]=f[B])})}else Object.assign(m,f);r.clearValidate(P)},r.setModelValue=(P,m)=>{!m||m===u?d(P):I?.emitToChildren({name:m},"setModelValue",P)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{s.destroy(),r[Re]=void 0,r[ht]&&(r[ht].clear(),r[ht]=void 0),I!==null&&(I.destroy(),r[De]=void 0),p!==null&&(p.destroy(),r[We]=void 0)}),s}function qa(e,n,o=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Re,null);r===null&&(r=gt());const i=e||n.prop||n.name,u=new sn(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[Re]=u,t.provide(Re,u),t.onUnmounted(()=>{u.destroy(),a[Re]=void 0}),u}function za(e,n,o){const a=Ue(e)?.get("rules");if(!a)return;let r=a[o];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Se(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(De,null),u=on(a,i,r,o);a[De]=u,t.provide(De,u),a.broadcast=(p,g,...y)=>Reflect.apply(u.emit,u,[p,g,...y]);const s=t.inject(We,null);e.fieldName=e.fieldName??r;const d=an(a,s,e);a[We]=d,t.provide(We,d),za(a,d,r),a.validate=(p=null)=>{const g=[];let y=!1,P=!1;if(Array.isArray(p)&&p.indexOf(r)!==-1)P=!0,y=!0;else if(p&&typeof p=="object"){const m=p,f=m.ignoreDisabled??!0,E=m.ignoreReadonly??!0,B=m.ignoreHidden??!0;f===!0&&e.disabled===!0||E===!0&&e.readonly===!0||B===!0&&ln(a.$el)?P=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),P=!0),y=m.deep??!1}else typeof p=="boolean"&&(y=p),P=!0;if(P){const m=d?.validate();g.push(m)}if(y){let m=null;const f={deep:!1};if(p===!0)m={name:"*"};else if(Array.isArray(p)&&p.length>0){const E=p;m={name:B=>B?E.indexOf(B)!==-1:!1}}else if(p!=null&&typeof p=="object"){const E=p;if(Object.assign(f,E),Array.isArray(E.include)&&E.include.length>0){const B=E.include;m={name:M=>M?B.indexOf(M)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const B=E.exclude;m={name:M=>M?B.indexOf(M)===-1:!1}}else m={name:"*"}}if(m){const E=u.emitToChildren(m,"validate",f);Reflect.apply([].push,g,E)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(m=>{let f=[];return m.forEach(E=>{E.pass===!1&&Array.isArray(E.errors)&&(f=[...f,...E.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=p=>d?.setRule(p),a.setNameValidateRules=(p,g=!1)=>{const y=p[r];if(y&&d?.setRule(y),g){const P={name:m=>Reflect.ownKeys(p).includes(m)};u.emitToChildren(P,"setNameValidateRules",p,!1)}},a.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&d?.clear();let g=null;if(p===!0)g={name:"*"};else if(Array.isArray(p)&&p.length>0){const y=p;g={name:P=>P?y.indexOf(P)!==-1:!1}}else if(p!=null&&typeof p=="object"){const y=p;if(Array.isArray(y.include)&&y.include.length>0){const P=y.include;g={name:m=>m?P.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const P=y.exclude;g={name:m=>m?P.indexOf(m)===-1:!1}}else g={name:"*"}}g&&u.emitToChildren(g,"clearValidate",!1)};const h=new La(a);a[Xt]=h;const c=Vt((p="validate")=>{p==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fa()).forEach(p=>{h.on(p,g=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ma()).forEach(p=>{h.on(p,g=>{c("reset")})}),t.onUnmounted(()=>{u.destroy(),a[De]=void 0,d.destroy(),a[We]=void 0,h.destroy(),a[Xt]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(p,...g)=>{Reflect.apply(h.emit,h,[p,...g])},onEvent:(p,g)=>{Reflect.apply(h.on,h,[g])},offEvent:(p,g)=>{Reflect.apply(h.off,h,[g])}}}function ja(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()}};const s=an({},a,o);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,I=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)I=!0,b=!0;else if(h&&typeof h=="object"){const p=h;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),I=!0,b=p.deep??!1}else typeof h=="boolean"&&(b=h),I=!0;if(I){const p=s?.validate();c.push(p)}if(b){let p=null;const g={deep:!1};if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;p={name:P=>P?y.indexOf(P)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Object.assign(g,y),Array.isArray(y.include)&&y.include.length>0){const P=y.include;p={name:m=>m?P.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const P=y.exclude;p={name:m=>m?P.indexOf(m)===-1:!1}}else p={name:"*"}}if(p){const y=d.emitToChildren(p,"validate",g);Reflect.apply([].push,c,y)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(p=>{let g=[];return p.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(g=[...g,...y.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&s?.setRule(c)};const d=on(null,l,i,r);return{broadcast:d,validateSchema:s}}function hl(){const n=t.getCurrentInstance()?.proxy,o=new La(n);return n[Xt]=o,t.onUnmounted(()=>{o.destroy(),n[Xt]=void 0}),{emitEvent:(l,...a)=>{Reflect.apply(o.emit,o,[l,...a])},onEvent:(l,a)=>{Reflect.apply(o.on,o,[a])},offEvent:(l,a)=>{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:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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 tt="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=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Qn(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=he(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=he(s,r):e.height=he(r)-he(i,r)-he(u,r),e.width=he(o.width??n.width??0,a)}}function Ha(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=he(a.top),l.safeAreaBottom=he(a.bottom),l.safeAreaLeft=he(a.left),l.safeAreaRight=he(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,d=e.get("footerBarHeight")??0;Qn(l,r,n,!0,i,u,s,d);const h=t.reactive(l),c=e.getForParent(tt);c&&(l.height=Zt(e,c),l.width=Jt(e,c),t.watch([()=>Zt(e,c),()=>Jt(e,c)],([I,p])=>{h.height=I,h.width=p}));const b=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([I,p,g=-1,y=-1,P=0,m=0])=>{Qn(h,p,n,b,g,y,P,m)}),e.set(tt,h),h}function un(e){return e.get(tt)}function It(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Pt(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Zt(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=It(e,n),l=Pt(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Jt(e,n){return n=n??e.get(tt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function si(e){return!!e.getForParent(tt)}var Be=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Be||{});function Fn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,o=1,l){const a=Ue();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(Fn(s,l))return s}const i=e.value;return Fn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Fn(r,l)?r:a?.get(n)})}function Ee(e){return Ne(e,"readonly",0,function(o){return ue(o)})}function Ve(e){return Ne(e,"disabled",0,function(o){return ue(o)})}function fe(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 Ka=new Map,Qt=new Map;let el=null;function ui(e){el=e}function Ya(e,n,o){if(o){let l=Qt.get(o);l||(l=new Map,Qt.set(o,l)),l.set(e,n)}else Ka.set(e,n)}function Oe(e,n,o){!o&&el&&(o=el(e)??void 0);let l=null;if(o){let a=Qt.get(o);a&&(l=a.get(n))}return l||(l=Ka.get(n)),l}function ci(e,n){for(let o in e){const l=e[o];Ya(o,l,n)}}function fi(e){Qt.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(ut){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{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=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=gt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=_a(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);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=it({},di(),n.safeAreaInset),i=hi(l,a),u=it({},i.pageLayout,n.pageLayout);o=o??gt(),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){ui(n)}setAPI(n,o,l){Ya(n,o,l)}getAPI(n,o,l){return Oe(n,o,l)}batchSetAPI(n,o){ci(n,o)}clearScopeAPI(n){fi(n)}getRootDomain(){return gt()}}const gi=[F.ElAffix,F.ElAlert,F.ElAutocomplete,F.ElAutoResizer,F.ElAvatar,F.ElBacktop,F.ElBadge,F.ElBreadcrumb,F.ElBreadcrumbItem,F.ElButton,F.ElButtonGroup,F.ElCalendar,F.ElCard,F.ElCarousel,F.ElCarouselItem,F.ElCascader,F.ElCascaderPanel,F.ElCheckTag,F.ElCheckbox,F.ElCheckboxButton,F.ElCheckboxGroup,F.ElCol,F.ElCollapse,F.ElCollapseItem,F.ElCollapseTransition,F.ElColorPicker,F.ElConfigProvider,F.ElContainer,F.ElAside,F.ElFooter,F.ElHeader,F.ElMain,F.ElDatePicker,F.ElDescriptions,F.ElDescriptionsItem,F.ElDialog,F.ElDivider,F.ElDrawer,F.ElDropdown,F.ElDropdownItem,F.ElDropdownMenu,F.ElEmpty,F.ElForm,F.ElFormItem,F.ElIcon,F.ElImage,F.ElImageViewer,F.ElInput,F.ElInputNumber,F.ElLink,F.ElMenu,F.ElSubMenu,F.ElMenuItem,F.ElMenuItemGroup,F.ElPageHeader,F.ElPagination,F.ElPopconfirm,F.ElPopover,F.ElPopper,F.ElProgress,F.ElRadio,F.ElRadioButton,F.ElRadioGroup,F.ElRate,F.ElResult,F.ElRow,F.ElScrollbar,F.ElSelect,F.ElOption,F.ElOptionGroup,F.ElSelectV2,F.ElSkeleton,F.ElSkeletonItem,F.ElSlider,F.ElSpace,F.ElSteps,F.ElStep,F.ElSwitch,F.ElTable,F.ElTableColumn,F.ElTableV2,F.ElTabs,F.ElTabPane,F.ElTag,F.ElTimePicker,F.ElTimeSelect,F.ElTimeline,F.ElTimelineItem,F.ElTooltip,F.ElTransfer,F.ElTree,F.ElTreeSelect,F.ElTreeV2,F.ElUpload],pi=[F.ElInfiniteScroll,F.ElLoading,F.ElMessage,F.ElMessageBox,F.ElNotification,F.ElPopoverDirective],yi=e=>{gi.forEach(n=>{let o=n.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,n)):e.use(n)}),pi.forEach(n=>{e.use(n)})};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 pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const be={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},$e={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}},Wa={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}},Ua={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ga=[];for(const e in Ua)Ga.push(e);const vi=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}},wi=(e,n)=>({inheritAttrs:!0,props:{...be,...Wa,...bi},setup(o,{slots:l}){const a=dl(o.name,o),r=t.inject(vi,!1);if(a){const h=Ha(a,o);pe({getPageContentHeight:()=>Zt(a,h),getPageContentWidth:()=>Jt(a,h),getPageHeaderHeight:()=>It(a,h),getPageFooterHeight:()=>Pt(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,c=!1)=>{const b=s?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(h,!0,c)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,c],[b,I])=>{if(h&&b){const p=t.toRaw(b),g=t.toRaw(h),y=g?Reflect.ownKeys(g):[];(p?Reflect.ownKeys(p):[]).forEach(m=>{y.includes(m)||(g[m]=[])}),d(g)}if(c&&I){const p=t.toRaw(I),g=t.toRaw(c),y=g?Reflect.ownKeys(g):[];(p?Reflect.ownKeys(p):[]).forEach(m=>{y.includes(m)||(g[m]=[])}),d(g,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);d(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:xi,create:Si,scope:np}=ie("page"),ml=Si(wi(xi));function cn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function gl(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 Ci=(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=Ue(),u=i?un(i):null;u&&(u.headerMounted=!0);const s=e,d=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})),c=a.height!==null&&a.height!==void 0?he(a.height):null,b=t.computed(()=>{const O={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const S=ze(a.padding??u.headerPadding);return Object.assign(O,S),c&&(u.headerHeight=c),u.headerHeight>0&&(O.height=u.headerHeight),O.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,O.safeAreaTop>0&&(O.top=O.safeAreaTop+(S.top??0),O.height&&O.height>0&&(O.height=O.height+O.safeAreaTop)),O}if(c&&(O.height=c),a.padding){const S=ze(a.padding);Object.assign(O,S)}return O}),I=t.ref(null),p=()=>{if(u&&I.value&&!ln(I.value)){if(!l){const O=cn(I.value);u.headerAllHeight=O.height}return u.headerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{u&&(rn(p,50,5,50,!0),window.ResizeObserver&&I.value&&(g=new window.ResizeObserver(()=>{p()}),g.observe(I.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,g&&(g.disconnect(),g=null))});const y=t.computed(()=>{const O={};return b.value.height!==null&&b.value.height!==void 0&&(O.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(O.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(O.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(O.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(O.paddingBottom=`${b.value.bottom}px`),O}),P=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function m(){r.emit("back")}function f(){r.emit("click-title")}function E(){r.emit("click-right")}function B(){r.emit("click-right-text")}const M=()=>{if(!a.leftShow)return null;const O=[];if(r.slots.left)O.push(r.slots.left());else{if(r.slots.leftIcon){const S=t.h("view",{class:"left-icon",onClick:m},[r.slots.leftIcon()]);O.push(S)}else if(a.leftIcon){const S=t.h("view",{class:"left-icon",onClick:m},[t.h(a.leftIcon)]);O.push(S)}if(a.leftText){const S=t.h("view",{class:"left-text",onClick:m},[a.leftText]);O.push(S)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__left"},O)},D=()=>{if(!a.rightShow)return null;const O=[];if(r.slots.right)O.push(r.slots.right());else{if(a.rightText){const S=t.h("view",{class:"right-text",onClick:B},[a.rightText]);O.push(S)}if(r.slots.rightIcon){const S=t.h("view",{class:"right-icon",onClick:E},[r.slots.rightIcon()]);O.push(S)}else if(a.rightIcon){const S=t.h("view",{class:"right-icon",onClick:E},[t.h(a.rightIcon)]);O.push(S)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__right"},O)},L=()=>{if(!a.titleShow)return null;const O=[],S=r.slots.default?r.slots.default():null;if(S)O.push(S);else{if(a.title){const q=t.h("view",{class:"title-text"},[a.title]);O.push(q)}if(r.slots.titleIcon){const q=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);O.push(q)}else if(a.titleIcon){const q=t.h("view",{class:"title-icon",onClick:f},[t.h(a.titleIcon)]);O.push(q)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__title"},O)},N=()=>{const O=[],S=r.slots.bottom?r.slots.bottom():null;return S&&O.push(S),O.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},O)};return()=>{if(!P.value)return null;const O=[];if(r.slots.all)O.push(r.slots.all());else{const q=[],$=M();$&&q.push($);const k=L();k&&q.push(k);const C=D();if(C&&q.push(C),q.length>0){const z=t.h("view",{class:h.value},q);O.push(z)}const W=N();W&&O.push(W)}if(O.length===0)return null;const S={class:d.value,style:y.value,ref:I};return t.h("view",S,O)}}}),{componentName:Ti,create:$i,scope:ki}=ie("header-bar"),pl=$i(Ci(Ti,ki,Ce.ArrowLeft));function Di(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=Ue(),i=r?un(r):null,u=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,d=t.computed(()=>{const p={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(p,g),s&&(i.footerHeight=s),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(g.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const g=ze(l.padding);Object.assign(p,g)}return p}),h=t.ref(null),c=()=>{if(i&&h.value&&!ln(h.value)){if(!o){const p=cn(h.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(rn(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const I=t.computed(()=>{const p={};return d.value.height!==null&&d.value.height!==void 0&&(p.height=Pe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(p.paddingTop=Pe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(p.paddingLeft=Pe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(p.paddingRight=Pe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(p.paddingBottom=Pe(d.value.bottom)),p});return()=>{const p=a.slots.default?a.slots.default():[],g={ref:h,class:u.value,style:I.value};return t.h("view",g,p)}}}}const{componentName:Ni,create:Ei,scope:lp}=ie("footer-bar"),yl=Ei(Di(Ni));function Vi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),a=t.computed(()=>({[e]:!0})),r=l?un(l):null,i=t.computed(()=>{const d={};if(l&&r){if(o.padding){const I=ze(o.padding);Object.assign(r.contentPadding,I)}const h=It(l,r),c=Pt(l,r);let b="";if(r.contentHeight?b=`${r.contentHeight}`:b=`${r.height}px`,r.contentPadding,d.height=b,r.contentPadding.top||h>0){const I=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+I}px`}if(r.contentPadding.bottom||c>0){const I=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+I}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(o.padding){const h=ze(o.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=gl(u.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{s()}),l&&r&&t.watch([()=>It(l),()=>Pt(l)],([])=>{s()}),{contentRef:u,classes:a,styles:i}}}}const{componentName:Ii,create:Pi,scope:op}=ie("content"),Oi=Pi(Vi(Ii));function Ai(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ke=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},vl=ke(Oi,[["render",Ai]]),vt="GroupStateKey",Xa=Symbol.for("GroupScopeKey");function fn(){return t.inject(Xa,!1)}function dn(e=!0){t.provide(Xa,e)}function Fi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];cl(a)||(e[l]=a)})}function Bi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Fi(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(vt,r),r}function Bn(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(vt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=he(r),c=he(i);u||(u=d.type??"grid");const b=()=>{const I=n===""||n===-1,p=he(n);let g=de(o);const y=he(l);if(!I){let f=(p-(g-1)*y)/g;for(;c!==-1&&f>c;)g++,f=(p-(g-1)*y)/g;for(;h!==-1&&g>1&&f<h;)g--,f=(p-(g-1)*y)/g}let P=!1;const m=s.layout;m.value.width=n,m.value.column!==g&&(m.value.column=g,P=!0),m.value.gutter!==y&&(m.value.gutter=y,P=!0),m.value.type!==u&&(m.value.type=u,P=!0),P&&t.triggerRef(m)};if(a)b();else{const I=++s.passport;setTimeout(()=>{I===s.passport&&b()},50)}}function hn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.layout}function mn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.order}function po(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function gn(e,n,o=1,l=0,a){const r={};let i=0;a?i=he(a):i=po(n.column,o),i>0&&(r.width=`${i}%`);const u=po(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 pn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let a=de(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=de(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 Za=Symbol("RollingStateKey");function Mi(e){t.provide(Za,e)}function Ri(){return t.inject(Za,null)}function tl(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 Li(e){let n=tl(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=tl(o),document.body.removeChild(o)}return n}function _i(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const qi={...be,...Wa,...Ua};function zi(e,n,o){return{props:qi,emits:["update:collapse"],setup(l,a){const r=dl(l.name,l,Ga),i=Bi(r,{type:l.type}),u=fn();dn(!0);const s=l.rollingDisplay?Ri():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),c=t.computed(()=>u&&r?hn(r,!0).value:null),b=t.getCurrentInstance(),I=(x,R=!1)=>{const G=b?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(x,!0,R)};t.watch([()=>l.rules,()=>l.pureDataRules],([x,R],[G,te])=>{if(x&&G){const w=t.toRaw(G),Y=t.toRaw(x),Q=Y?Reflect.ownKeys(Y):[];(w?Reflect.ownKeys(w):[]).forEach(ee=>{Q.includes(ee)||(Y[ee]=[])}),I(Y)}if(R&&te){const w=t.toRaw(te),Y=t.toRaw(R),Q=Y?Reflect.ownKeys(Y):[];(w?Reflect.ownKeys(w):[]).forEach(ee=>{Q.includes(ee)||(Y[ee]=[])}),I(Y,!0)}},{deep:!0});const p=e,g=t.computed(()=>{const x={};x.height=C.value;const R=u?mn(r,!0):null;if(c.value&&R){if(c.value.type==="grid"){const G=pn(R,c.value,l.span,l.offset);Object.assign(x,G)}else if(c.value.type==="flow"){const G=gn(R,c.value,l.span,l.offset,l.width);Object.assign(x,G)}}else if(l.width){const G=Pe(l.width);x.width=G}return x}),y=t.computed(()=>{const x=i.layout.value.type;return x==="grid"||x==="flow"?{[`${p}--${x}`]:!0,[`${p}--${x}-justify-${l.justify}`]:!0,[`${p}--${x}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${x}`]:!0,[`${p}--gutter`]:!0}}),P=t.computed(()=>{if(i.layout.value.type==="grid"){let R="";if(l.columnWidth)R=`repeat(auto-fill, ${l.columnWidth})`;else{const G=_i(L.value,i.layout.value.column,i.layout.value.gutter);R=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":R}}}),m=t.toRef(l,"gutter"),f=t.toRef(l,"column"),E=t.computed(()=>u||h.value?!0:ue(l.isWrap)),B=[],M=x=>{B.push(x)},D=()=>{let x=B.length;B.splice(0,x)},L=t.ref(-1),N=x=>{const R=gl(x).width;R>0&&R!==L.value&&(L.value=R)};Bn(r,L.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([L,f,m],([x,R,G])=>{i.order.index=0,Bn(r,x,R,G,!1,l.minItemWidth,l.maxItemWidth,l.type)});const O=t.computed(()=>W.value?l.expandText??"":l.collapseText??""),S=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!W.value,"is-collapse":W.value})),$=t.ref(),k=t.ref(),C=t.computed(()=>z.value||Pe(l.height)||""),W=t.ref(!1),z=t.ref(""),J=t.ref(!1);let U=-1;const Z=(x,R=!0)=>{const G=$.value;if(G&&W.value!==x){if(U=U===-1?Li(G):U,J.value=!0,R)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",x||(z.value="",J.value=!1)},x){let te=0;l.collapseHeight?te=l.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(te=k.value.offsetHeight),z.value=`${U}px`,t.nextTick(()=>{z.value=`${te}px`})}else z.value=`${U}px`;else if(x){let te=0;l.collapseHeight?te=l.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(te=k.value.offsetHeight),z.value=`${te}px`}else J.value=!1,z.value=`${U}px`;W.value=x,a.emit("update:collapse",x)}};t.watch(()=>l.collapse,x=>{Z(x)});const ne=()=>{_()},_=x=>{x=x??!W.value,Z(x)};pe({toggleCollapse:_,doLayout:()=>{B[0]&&(N(B[0]),Bn(r,L.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let H=null,j=!0;const A=x=>{if(l.rules){const R=t.toRaw(l.rules);I(R)}if(l.pureDataRules){const R=t.toRaw(l.pureDataRules);I(R,!0)}if(ut&&(x&&Z(ue(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const R=B[0];N(R),window.ResizeObserver&&(H=new window.ResizeObserver(()=>{N(R)}),H.observe(R))}},X=()=>{H?.disconnect(),H=null},K=!h.value||s?.acquire();K&&(d.value=h.value?!0:null),t.onMounted(()=>{if(K&&(A(j),j=!1),h.value&&s){let x=null,R=s.initialHeight;s.observe($.value,G=>{if(G!==d.value)if(G)d.value=!0,W.value||(z.value=""),x=setTimeout(()=>{x=null,d.value!==!1&&(A(j),j=!1)},100);else{if(x!==null&&clearTimeout(x),d.value=!1,!W.value)if(j)z.value=s.initialHeight;else{let te=tl($.value);te<=0?z.value=R:(z.value=`${te}px`,R=z.value)}j||X()}})}}),t.onUnmounted(()=>{H?.disconnect(),s&&s.unobserve($.value)});const T=(x="right")=>{const R=[];if(O.value){const w={class:S.value},Y=t.h("span",w,[O.value]);R.push(Y)}const G={class:q.value},te=o(l.collapseIcon,G);return te&&R.push(te),R.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${x}`]:!0},onClick:ne},R):null},v=(x,R,G,te)=>{const w={...y.value};return R===0&&(w[`${p}__first`]=!0),G>=te-1&&(w[`${p}__last`]=!0),t.h("div",{ref:M,key:`${R}`,class:w,style:P.value},x)};return()=>{if(h.value&&d.value!==!0){const w=l.tag||"div";return t.h(w,{ref:$,prop:l.name,class:{[`${p}`]:!0,"is-collapse":J.value},style:g.value},[])}i.order.index=0;const x=[];let R=0;if(a.slots.header){const w={key:`${R++}`,ref:k,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},Y=t.h("div",w,[a.slots.header()]);x.push(Y)}else{const w=[],Y=l.collapsePosition==="left";if(Y&&l.showCollapse){const Q=T("left");Q&&w.push(Q)}if(l.title||a.slots.title){if(l.showMark){const Q={class:{[`${p}__header-mark`]:!0}};l.markColor&&(Q.style={background:l.markColor});const le=t.h("div",Q);w.push(le)}if(a.slots.title){const Q=t.h("div",{class:{[`${p}__header-title`]:!0}},[a.slots.title()]);w.push(Q)}else if(l.title){const Q=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);w.push(Q)}}if(a.slots.toolbar&&w.push(a.slots.toolbar()),!Y&&l.showCollapse){const Q=T("right");Q&&w.push(Q)}if(w.length>0){const Q={key:`${R++}`,ref:k,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},le=t.h("div",Q,w);x.push(le)}}D();const G=a.slots.default?a.slots.default():[],te=i.layout.value.type;if(te==="grid"){const w=v(G,R++,0,G.length);x.push(w)}else if(te==="flow"){const w=v(G,R++,0,G.length);x.push(w)}else for(let w=0;w<G.length;w++){const Y=G[w],Q=v([Y],R++,w,G.length);x.push(Q)}if(E.value){const w=l.tag||"div";return t.h(w,{ref:$,prop:l.name,class:{[`${p}`]:!0,"is-collapse":J.value},style:g.value},[x])}else return x}}}}const{componentName:ji,create:Hi,scope:Ki}=ie("group"),Yi=(e,n)=>(e=e??Ce.ArrowUp,t.h(F.ElIcon,n,{default:()=>[t.h(e)]})),bl=Hi(zi(ji,Ki,Yi));function Wi(e){return e===window}const Ui=/matrix\((.+)\)/,Ja=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Wi(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:d}=window.getComputedStyle(a);if(d){const h=Ui.exec(d);if(h){let b=h[1].split(/\s*,\s*/);b.length==6&&(u+=Number(b[4]),s+=Number(b[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}};class Gi{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 Xi{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 Gi,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 yo=new Xi,Qa={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Zi,create:Ji}=ie("price"),Qi=Ji({props:{...Qa},setup(e){const n=t.computed(()=>({[Zi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>He(e.price)==0?"":tn(e.price,e.decimalLength,!0,de(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}}}),es=["innerHTML"],ts=["innerHTML"];function ns(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,es)):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,ts)):t.createCommentVNode("",!0)],2)}const yn=ke(Qi,[["render",ns]]),{componentName:Mn,create:ls}=ie("hint-text"),os=ls({components:{Price:yn},props:{...Qa,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),d=(S,q,$,k,C,W)=>{const z=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,U=S.split("-");let Z=[];U[0]==="top"?Z=["top","bottom","right","left"]:U[0]==="bottom"?Z=["bottom","top","right","left"]:U[0]==="left"?Z=["left","top","bottom","right"]:U[0]==="right"&&(Z=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},_=[];for(let V=0;V<Z.length;V++){const H=Z[V];if(_[0]=H,U[1]&&(_[1]=U[1]),H==="top"){const j=q.y-W-e.arrowSize-e.offset;if(j>=0){ne.top=j;let A=0;U[1]==="start"?A=q.x:U[1]==="end"?A=q.x+$-C:A=q.x+$/2-C/2;const X=z-A-C;X<0?(A+=X,c.value=-X):c.value=0,ne.left=A<0?0:A;break}}else if(H==="bottom"){const j=q.y+k+e.arrowSize+e.offset;if(j+W<=J){ne.top=j;let A=0;U[1]==="start"?A=q.x:U[1]==="end"?A=q.x+$-C:A=q.x+$/2-C/2;const X=z-A-C;X<0?(A+=X,c.value=-X):c.value=0,ne.left=A<0?0:A;break}}else if(H==="left"){const j=q.x-C-e.arrowSize-e.offset;if(j>=0){ne.left=j;let A=0;U[1]==="start"?A=q.y:U[1]==="end"?A=q.y+k-W:A=q.y+k/2-W/2,ne.top=A<0?0:A;break}}else if(H==="right"){const j=q.x+$+e.arrowSize+e.offset;if(j+C<=z){ne.left=j;let A=0;U[1]==="start"?A=q.y:U[1]==="end"?A=q.y+k-W:A=q.y+k/2-W/2,ne.top=A<0?0:A;break}}}return{bestPlacement:_.join("-"),bestInsetRect:ne}},h=(S,q,$=10)=>{if(!ut||q===!1||!S)return;l.value=Ja(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const k=s.value.offsetHeight,C=s.value.offsetWidth,{bestPlacement:W,bestInsetRect:z}=d(e.placement,l.value,a.value,r.value,C,k);i.value=W,o.value=z,u.value=!0},c=t.ref(0),b=Vt(()=>{h(e.message,e.visible)},10),I=t.ref(e.visible);t.watch(()=>e.visible,S=>{I.value=S});const p=t.computed(()=>I.value&&g.value),g=t.ref(!0),y=Vt(S=>{const q=S[0];q&&(g.value=q.isIntersecting)},10),P=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([S,q])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),yo.watch(e.reference,b),P.observe(e.reference)}),t.onBeforeMount(()=>{yo.unwatch(e.reference,b),P.unobserve(e.reference),P.disconnect()});const m=t.computed(()=>{const S={[Mn]:!0};return i.value.startsWith("top")?S["is-top"]=!0:i.value.startsWith("right")?S["is-right"]=!0:i.value.startsWith("bottom")?S["is-bottom"]=!0:i.value.startsWith("right")&&(S["is-right"]=!0),e.size==="small"?S["is-small"]=!0:e.size==="large"&&(S["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(S[`${e.customClass}`]=!0),S}),f=t.computed(()=>{const S={};o.value.top!==null&&(S.top=`${o.value.top}px`),o.value.right!==null&&(S.right=`${o.value.right}px`),o.value.bottom!==null&&(S.bottom=`${o.value.bottom}px`),o.value.left!==null&&(S.left=`${o.value.left}px`),e.autoFit&&(S["min-width"]=`${a.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return S["max-width"]=`${q}px`,u.value&&(S.opacity="1"),e.transition||(S.transition="none"),e.zIndex&&(S["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(S,e.customStyle),S}),E=t.computed(()=>{const S=[`${Mn}__content`];return e.customTextClass&&S.push(e.customTextClass),S}),B=t.computed(()=>{const S={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(S,e.customTextStyle),S}),M=t.computed(()=>({[`${Mn}__arrow`]:!0})),D=t.computed(()=>{const S={};return e.showArrow?(S.width=`${e.arrowSize}px`,S.height=`${e.arrowSize}px`,i.value==="top"?(S.left="50%",S.bottom=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):i.value==="top-start"?(S.left=`${e.arrowOffset+c.value}px`,S.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(S.right=`${e.arrowOffset-c.value}px`,S.bottom=`-${e.arrowSize}px`):i.value==="right"?(S.left=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):i.value==="right-start"?(S.left=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):i.value==="right-end"?(S.left=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(S.left="50%",S.top=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(S.left=`${e.arrowOffset+c.value}px`,S.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(S.right=`${e.arrowOffset-c.value}px`,S.top=`-${e.arrowSize}px`):i.value==="left"?(S.right=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):i.value==="left-start"?(S.right=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):i.value==="left-end"&&(S.right=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`),S):{display:"none"}}),L=t.computed(()=>p.value&&e.closeOnClick),N=t.computed(()=>{const S={};return e.zIndex&&(S["z-index"]=`${e.zIndex}`),S});return{show:p,tipRef:s,classes:m,styles:f,textClasses:E,textStyles:B,arrowClasses:M,arrowStyles:D,overlayShow:L,overlayStyle:N,onClickOverlay:()=>{I.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function rs(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,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Mt=ke(os,[["render",rs]]);class er{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 nl={},is=new er,pt=new Map,en=e=>{if(e){const n=document.getElementById(e);pt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of pt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}pt.clear()}},ss=e=>{e.unmount=en;const n=document.getElementById(e.id);if(n){const o=pt.get(e.id);o?e={...nl,...o,...e}:e={...nl,...e},e.transition=!1;const l=t.createVNode(Mt,e);return t.render(l,n),e.id}},us=e=>{e.unmount=en;let n=e.id??`hinttext_${is.get()}`;e={...nl,...e},e.id=n,pt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Mt,e);return t.render(l,o),document.body.appendChild(o),n},cs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){cs(n);const a=o.id;return a&&pt.has(a)?ss({...o,message:n,reference:e}):(l&&en(),us({...o,message:n,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=Fe}};function fs(e,n,o,l=!1){return{inheritAttrs:!0,props:{...be,...$e},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Se({componentName:e,validate:!1},i);const u=Ue(),s=fn();dn(!1);const d=t.computed(()=>s&&u?hn(u,!1).value:null),h=e,c=t.ref(null),b=t.computed(()=>{const w={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:ue(a.hasBorder)};if(w[a.errorMarkClass]=!!W.value,w[a.warnMarkClass]=!!k.value,w[a.infoMarkClass]=!!q.value,typeof c.value=="function"){const Y=c.value(i);w[Y]=!0}else if(typeof c.value=="string"){const Y=c.value;w[Y]=!0}return w}),I=t.ref(null),p=t.computed(()=>{const w={};if(a.width)a.width!=="auto"&&(w.width=Pe(a.width));else{const Y=s&&u?mn(u,!1):null;if(d.value&&Y){if(d.value.type==="grid"){const Q=pn(Y,d.value,a.span,a.offset);Object.assign(w,Q)}else if(d.value.type==="flow"){const Q=gn(Y,d.value,a.span,a.offset,a.width);Object.assign(w,Q)}}}if(typeof I.value=="function"){const Y=I.value(i);Y&&Object.assign(w,Y)}else if(I.value&&typeof I.value=="object"){const Y=I.value;Object.assign(w,Y)}return w}),g=t.ref(null),y=t.computed({get:()=>g.value??ue(a.isRequired),set:w=>{g.value=w}}),P=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",m=Ne(t.toRef(a,"labelPosition"),"labelPosition",Be.Near),f=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),E=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),M=Ne(t.toRef(a,"labelWidth"),"labelWidth",Be.Near),D=t.computed(()=>M&&M.value?{width:Pe(M.value)}:{}),L=t.computed(()=>({"label--string":!0,"label--required":y.value})),N=t.computed(()=>({content:!0,[a.contentClass]:!0})),O=t.computed(()=>({...a.contentStyle})),S=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(w){y.value=w},setErrorTip(w){S.errorTip=w},setErrorIcon(w){S.errorIcon=w},setWarnTip(w){S.warnTip=w},setWarnIcon(w){S.warnIcon=w},setInfoTip(w){S.infoTip=w},setInfoIcon(w){S.infoIcon=w},setCustomClassName(w){c.value=w},setCustomStyle(w){I.value=w}});const q=t.computed(()=>a.infoTip||S.infoTip),$=t.computed(()=>a.infoIcon||S.infoIcon),k=t.computed(()=>a.warnTip||S.warnTip),C=t.computed(()=>a.warnIcon||S.warnIcon),W=t.computed(()=>a.errorTip||S.errorTip),z=t.computed(()=>a.errorIcon||S.errorIcon),J=t.computed(()=>W.value?"error":k.value?"warn":q.value?"info":""),U=()=>J.value.length>0,Z=t.computed(()=>J.value==="error"?W.value:J.value==="warn"?k.value:J.value==="info"?q.value:""),ne=t.computed(()=>J.value==="error"?z.value:J.value==="warn"?C.value:J.value==="info"?$.value:null),_=t.computed(()=>{const w={[`${h}__tip`]:!0,[`${h}__tip--${J.value}`]:!0,[`${h}--animate`]:!0};return J.value==="error"&&a.errorClass?w[`${a.errorClass}`]=!0:J.value==="warn"&&a.warnClass?w[`${a.warnClass}`]=!0:J.value==="info"&&a.infoClass&&(w[`${a.infoClass}`]=!0),w}),V=t.computed(()=>{const w={};return m&&m.value==="top"||!P()?w["padding-left"]="0px":M&&M.value&&(w["padding-left"]=Pe(M.value)),w}),H=t.ref();let j="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([w,Y,Q,le])=>{H.value&&(w&&!ge(Y)?j?o.show(H.value,Y,{...le,id:j,type:Q},!0):j=o.show(H.value,Y,{...le,type:Q},!0):o.hide(j))});let A=null;const X=()=>{A||!H.value||(A=new IntersectionObserver(w=>{let Y=!1;for(let Q of w)if(Q.intersectionRatio>0){Y=!0,Y&&r.emit("appear",Q);break}Y||r.emit("disappear")}),A.observe(H.value))},K=()=>{!A||!H.value||(A.unobserve(H.value),A=null)};t.watch(()=>ue(a.appearListen),w=>{w?X():K()}),t.onMounted(()=>{ue(a.appearListen)&&X()}),t.onUnmounted(K);const T=()=>{if(!P())return null;const w=[],Y=r.slots?.label?.()??a.label,Q={class:L.value},le=t.h("div",Q,[Y]);if(w.push(le),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();w.push(oe)}const ee={class:B.value,style:D.value};return t.h("div",ee,w)},v=()=>{const w=[];if(r.slots.prepend){const Q=r.slots.prepend();w.push(Q)}if(r.slots.default){const Q=r.slots.default();w.push(Q)}if(r.slots.append){const Q=r.slots.append();w.push(Q)}if(r.slots.fixedTip){const Q={class:[`${h}__fixed-tip`]},le=t.h("div",Q,[r.slots.fixedTip()]);w.push(le)}const Y={ref:H,class:N.value,style:O.value};return t.h("div",Y,w)},x=()=>{const w=ne.value;return w?typeof w=="function"?t.h("div",{class:"fox-item__tip--icon"},[w()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(w)]):null},R=()=>{const w=Z.value;return w?typeof w=="function"?t.h("div",{class:"fox-item__tip--text"},[w()]):t.h("div",{class:"fox-item__tip--text"},[w]):null},G=()=>{if(!U())return null;const w=[],Y=x();Y&&w.push(Y);const Q=R();Q&&w.push(Q);const le={class:_.value,style:V.value};return t.h("div",le,w)},te=()=>r.slots?.hide?.()??null;return()=>{const w=[],Y=[],Q=T();Q&&Y.push(Q);const le=v();le&&Y.push(le);const ee={class:E.value},oe=t.h("div",ee,Y);w.push(oe);const re=G();re&&w.push(re);const se=te();se&&w.push(se);const ye={class:b.value,style:p.value,prop:a.prop};return t.h("div",ye,w)}}}}const{componentName:ds,create:hs,scope:ms}=ie("item"),we=hs(fs(ds,ms,Fe,!1));function gs(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=Ue(),r=fn();dn(!1);const i=t.computed(()=>r&&a?hn(a,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&a?mn(a,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=pn(c,i.value,o.span,o.offset);Object.assign(h,b)}else if(i.value.type==="flow"){const b=gn(c,i.value,o.span,o.offset,o.width);Object.assign(h,b)}else return o.width&&(h.width=Pe(o.width)),h;else o.width&&(h.width=Pe(o.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:ps,create:ys,scope:ap}=ie("slot-item"),wl=ys(gs(ps));function vs(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=Ue(),u=fn();dn(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=hn(i,!1),c=mn(i,!1);if(h.value&&c)if(h.value.type==="grid"){const b=pn(c,h.value,o.span,o.offset);Object.assign(d,b)}else if(h.value.type==="flow"){const b=gn(c,h.value,o.span,o.offset,o.width);Object.assign(d,b)}else o.width&&(d.width=Pe(o.width))}else o.width&&(d.width=Pe(o.width));return d});return()=>{const d=[];if(l.slots.default){const c=l.slots.default();if(o.divide)for(let b=0;b<c.length;b++){if(b>0){const I=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(I)}d.push(c[b])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:ws,scope:rp}=ie("row-item"),xl=ws(vs(bs)),Ke=(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},vo={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 xs(e,n,o){return{props:{...be,...$e,...vo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,I=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__readonly`]:i.value})),p=$=>{c.value=$,u("update:modelValue",$),u("input",$)},g=$=>{u("change",$)};let y=fe(l,"hintText"),P=t.ref(!1);const m=$=>{let C=$.target.value;h.value=!0,ge(y.value)||(P.value=!0),u("focus",C,$)},f=$=>{setTimeout(()=>{P.value&&(P.value=!1),h.value=!1},0);let C=$.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),u("blur",C,$)},E=()=>{u("clear","")},B=t.ref(!1);let M=null;const D=()=>{l.showTooltip&&B.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{B.value=!0},150))},L=()=>{M&&(clearTimeout(M),B.value=!1,M=null)},N=t.computed(()=>B.value||P.value),O=t.computed(()=>B.value?c.value:y.value),S=t.computed(()=>He(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ke(a.attrs),ref:q,class:I.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:E,onChange:g,onInput:p,onFocus:m,onBlur:f,onMouseover:D,onMouseleave:L},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:S.value&&(C.suffix=()=>[l.unit]);const W=[],z=t.h(F.ElInput,k,C);W.push(z);const J={default:()=>W};a.slots.default&&(J.label=a.slots.default),a.slots.default&&(J.fixedTip=a.slots.fixedTip);const Z={...Te(l,vo),hintText:O.value,hintVisible:N.value,prop:`${l.prop}_item`};return t.h(o,Z,J)}}}}const{componentName:Ss,create:Cs,scope:Ts}=ie("input-item"),Sl=Cs(xs(Ss,Ts,we));function Qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function tr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function $s(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ks=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ds(){const e=t.getCurrentInstance();return new ks(e.proxy)}function nr(e,n,o){const l=Qe(e,n),a=Qe(e,o);if(l!==a)return!1;const r=Ot(e,n),i=Ot(e,o);return r===i}function lr(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=tr(e,i);if(Array.isArray(u)&&u.length>0){const s=lr(e,r,o,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(o==="text")s=Qe(e,i)===r;else if(o==="item")s=nr(e,i,r);else{let d=Ot(e,i);d==null&&(d=Qe(e,i)),s=d===r}if(s){a.push(i);break}}}}),a}function Ns(e){return{text:e,value:e}}const bo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Es(e,n,o){return{props:{...be,...$e,...bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map(x=>Qe(l,x)).join(" "):""),I=(v,x,R,G=!0)=>{const te=lr(l,v,x,R);if(te===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],G&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let w=!0;if(te.length!==c.value.length)w=!1;else for(let Y=0;Y<te.length;Y++){const Q=te[Y],le=c.value[Y];if(!nr(l,Q,le)){w=!1;break}}if(!w){c.value=te;let Y=[],Q=[],le=[];te.forEach(se=>{const ye=Ot(l,se),me=Qe(l,se);Y.push(ye),le.push(me),l.valueType==="text"?Q.push(me):l.valueType==="item"?Q.push(se):Q.push(ye)});let ee,oe,re;ue(l.multiple)?(h.value=Y,ee=t.toRaw(Q),oe=le,re=t.toRaw(te)):(h.value=Y[0]??"",ee=t.toRaw(Q[0]??""),oe=le[0]??"",re=t.toRaw(te[0])),G&&(u("update:modelValue",ee),u("change",ee,re)),u("update:text",oe)}},p=t.ref(null),g=t.ref(null),y=t.computed(()=>g.value??p.value??[]),P=Ne(t.computed(()=>l.appearLoad),"appearLoad",Be.Near,v=>ue(v)),m=Ds(),f=async(v,x)=>{if(v){const R=await m.load("select",v,x);if(R.length>0)if(typeof R[0]=="string"){let w=R.map(Y=>Ns(Y));p.value=w}else p.value=R;else p.value=null}};t.watch([()=>l.source,()=>l.params],([v,x])=>{g.value=null,f(v,x)},{immediate:!P.value});let E=!1;const B=()=>{E||(E=!0,f(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([v,x])=>{if(N()&&ue(l.multiple)){Le(x,h.value)||(h.value=x);return}I(x,l.valueType,y.value,!1),u("setValue",x)});let M=null,D=t.ref(!1);typeof l.remoteMethod=="function"&&(M=async v=>{if(v==null){g.value=null;return}D.value=!0;try{const x=await l.remoteMethod(v);x&&(g.value=x)}catch(x){g.value=null,console.error(x)}D.value=!1});let L=null;typeof l.filterMethod=="function"&&(L=async v=>{if(v==null){g.value=null;return}D.value=!0;try{const x=await l.filterMethod(v,p.value);x&&(g.value=x)}catch(x){g.value=null,console.error(x)}D.value=!1});const N=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",O=t.ref(!1),S=e,q=t.computed(()=>({[S]:!0})),$=v=>{l.allowCreate||N()&&ue(l.multiple)?(u("update:modelValue",v),u("change",v),u("update:text",v),h.value=v):I(v,"value",y.value,!0)};let k=fe(l,"hintText"),C=t.ref(!1);const W=v=>{let R=v.target.value;O.value=!0,ge(k.value)||(C.value=!0),u("focus",R,v)},z=v=>{setTimeout(()=>{C.value&&(C.value=!1),O.value=!1},0);let R=v.target.value;l.maxLength&&R.length>Number(l.maxLength)&&(R=R.slice(0,Number(l.maxLength))),j.value||u("blur",R,v)},J=()=>{u("clear","")},U=t.ref(!1);let Z=null;const ne=()=>{l.showTooltip&&U.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{U.value=!0},150))},_=()=>{Z&&(clearTimeout(Z),U.value=!1,Z=null)},V=t.computed(()=>U.value||C.value),H=t.computed(()=>U.value?b.value:k.value),j=t.ref(!1),A=v=>{j.value=v,u("visible-change",v),v||u("selected")},X=v=>{u("remove-tag",v)},K=(v,x)=>{const R=[];return v.forEach((G,te)=>{const w=tr(l,G);if(Array.isArray(w)&&w.length>0){const Y=K(w,x),Q=Qe(l,G),ee={key:`${Q}_${te}`,label:Q};R.push(t.h(F.ElOptionGroup,ee,{default:()=>Y}))}else{const Y=Ot(l,G),Q=Qe(l,G),le=$s(l,G),oe={key:`${Y}_${te}`,label:Q,disabled:le,value:Y};if(typeof x=="function")R.push(t.h(F.ElOption,oe,{default:()=>x(G)}));else if(l.optionType==="item"){const re={class:{"fox-select-item__option-left":!0}},se=t.h("span",re,[Y]),ye={class:{"fox-select-item__option-right":!0}},me=t.h("span",ye,[Q]),Ze=t.h("div",{class:{"fox-select-item__option":!0}},[se,me]);R.push(t.h(F.ElOption,oe,{default:()=>Ze}))}else l.optionType==="value"?R.push(t.h(F.ElOption,oe,{default:()=>[Y]})):R.push(t.h(F.ElOption,oe))}}),R},T=t.ref();return pe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()}}),()=>{const x={...Ke(a.attrs),ref:T,class:q.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:J,onChange:$,onFocus:W,onBlur:z,onVisibleChange:A,onRemoveTag:X};typeof M=="function"&&(x["remote-method"]=M,x.loading=D.value),typeof L=="function"&&(x["filter-method"]=L,x.loading=D.value);const R={};a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.empty&&(R.empty=a.slots.empty),a.slots.options?R.default=a.slots.options:R.default=()=>K(y.value,a.slots.option);const G=[],te=t.h(F.ElSelect,x,R);G.push(te);const w={default:()=>G};a.slots.default&&(w.label=a.slots.default),a.slots.fixedTip&&(w.fixedTip=a.slots.fixedTip);const Q={...Te(l,bo),hintText:H.value,hintVisible:V.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:ne,onMouseleave:_};return P.value&&(Q["appear-listen"]=!0,Q.onAppear=B),t.h(o,Q,w)}}}}const{componentName:Vs,create:Is,scope:Ps}=ie("select-item"),Cl=Is(Es(Vs,Ps,we));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",c="month",b="quarter",I="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function($,k,C){var W=String($);return!W||W.length>=k?$:""+Array(k+1-W.length).join(C)+$},E={s:f,z:function($){var k=-$.utcOffset(),C=Math.abs(k),W=Math.floor(C/60),z=C%60;return(k<=0?"+":"-")+f(W,2,"0")+":"+f(z,2,"0")},m:function $(k,C){if(k.date()<C.date())return-$(C,k);var W=12*(C.year()-k.year())+(C.month()-k.month()),z=k.clone().add(W,c),J=C-z<0,U=k.clone().add(W+(J?-1:1),c);return+(-(W+(C-z)/(J?z-U:U-z))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:I,w:h,d,D:p,h:s,m:u,s:i,ms:r,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",M={};M[B]=m;var D=function($){return $ instanceof S},L=function $(k,C,W){var z;if(!k)return B;if(typeof k=="string"){var J=k.toLowerCase();M[J]&&(z=J),C&&(M[J]=C,z=J);var U=k.split("-");if(!z&&U.length>1)return $(U[0])}else{var Z=k.name;M[Z]=k,z=Z}return!W&&z&&(B=z),z||!W&&B},N=function($,k){if(D($))return $.clone();var C=typeof k=="object"?k:{};return C.date=$,C.args=arguments,new S(C)},O=E;O.l=L,O.i=D,O.w=function($,k){return N($,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var S=function(){function $(C){this.$L=L(C.locale,null,!0),this.parse(C)}var k=$.prototype;return k.parse=function(C){this.$d=function(W){var z=W.date,J=W.utc;if(z===null)return new Date(NaN);if(O.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var U=z.match(y);if(U){var Z=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return J?new Date(Date.UTC(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],Z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(z)}(C),this.$x=C.x||{},this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return O},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(C,W){var z=N(C);return this.startOf(W)<=z&&z<=this.endOf(W)},k.isAfter=function(C,W){return N(C)<this.startOf(W)},k.isBefore=function(C,W){return this.endOf(W)<N(C)},k.$g=function(C,W,z){return O.u(C)?this[W]:this.set(z,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,W){var z=this,J=!!O.u(W)||W,U=O.p(C),Z=function(K,T){var v=O.w(z.$u?Date.UTC(z.$y,T,K):new Date(z.$y,T,K),z);return J?v:v.endOf(d)},ne=function(K,T){return O.w(z.toDate()[K].apply(z.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(T)),z)},_=this.$W,V=this.$M,H=this.$D,j="set"+(this.$u?"UTC":"");switch(U){case I:return J?Z(1,0):Z(31,11);case c:return J?Z(1,V):Z(0,V+1);case h:var A=this.$locale().weekStart||0,X=(_<A?_+7:_)-A;return Z(J?H-X:H+(6-X),V);case d:case p:return ne(j+"Hours",0);case s:return ne(j+"Minutes",1);case u:return ne(j+"Seconds",2);case i:return ne(j+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,W){var z,J=O.p(C),U="set"+(this.$u?"UTC":""),Z=(z={},z[d]=U+"Date",z[p]=U+"Date",z[c]=U+"Month",z[I]=U+"FullYear",z[s]=U+"Hours",z[u]=U+"Minutes",z[i]=U+"Seconds",z[r]=U+"Milliseconds",z)[J],ne=J===d?this.$D+(W-this.$W):W;if(J===c||J===I){var _=this.clone().set(p,1);_.$d[Z](ne),_.init(),this.$d=_.set(p,Math.min(this.$D,_.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},k.set=function(C,W){return this.clone().$set(C,W)},k.get=function(C){return this[O.p(C)]()},k.add=function(C,W){var z,J=this;C=Number(C);var U=O.p(W),Z=function(V){var H=N(J);return O.w(H.date(H.date()+Math.round(V*C)),J)};if(U===c)return this.set(c,this.$M+C);if(U===I)return this.set(I,this.$y+C);if(U===d)return Z(1);if(U===h)return Z(7);var ne=(z={},z[u]=l,z[s]=a,z[i]=o,z)[U]||1,_=this.$d.getTime()+C*ne;return O.w(_,this)},k.subtract=function(C,W){return this.add(-1*C,W)},k.format=function(C){var W=this,z=this.$locale();if(!this.isValid())return z.invalidDate||g;var J=C||"YYYY-MM-DDTHH:mm:ssZ",U=O.z(this),Z=this.$H,ne=this.$m,_=this.$M,V=z.weekdays,H=z.months,j=function(T,v,x,R){return T&&(T[v]||T(W,J))||x[v].slice(0,R)},A=function(T){return O.s(Z%12||12,T,"0")},X=z.meridiem||function(T,v,x){var R=T<12?"AM":"PM";return x?R.toLowerCase():R},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:_+1,MM:O.s(_+1,2,"0"),MMM:j(z.monthsShort,_,H,3),MMMM:j(H,_),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:j(z.weekdaysMin,this.$W,V,2),ddd:j(z.weekdaysShort,this.$W,V,3),dddd:V[this.$W],H:String(Z),HH:O.s(Z,2,"0"),h:A(1),hh:A(2),a:X(Z,ne,!0),A:X(Z,ne,!1),m:String(ne),mm:O.s(ne,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:U};return J.replace(P,function(T,v){return v||K[T]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,W,z){var J,U=O.p(W),Z=N(C),ne=(Z.utcOffset()-this.utcOffset())*l,_=this-Z,V=O.m(this,Z);return V=(J={},J[I]=V/12,J[c]=V,J[b]=V/3,J[h]=(_-ne)/6048e5,J[d]=(_-ne)/864e5,J[s]=_/a,J[u]=_/l,J[i]=_/o,J)[U]||_,z?V:O.a(V)},k.daysInMonth=function(){return this.endOf(c).$D},k.$locale=function(){return M[this.$L]},k.locale=function(C,W){if(!C)return this.$L;var z=this.clone(),J=L(C,W,!0);return J&&(z.$L=J),z},k.clone=function(){return O.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},$}(),q=S.prototype;return N.prototype=q,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",I],["$D",p]].forEach(function($){q[$[1]]=function(k){return this.$g(k,$[0],$[1])}}),N.extend=function($,k){return $.$i||($(k,S,N),$.$i=!0),N},N.locale=L,N.isDayjs=D,N.unix=function($){return N(1e3*$)},N.en=M[B],N.Ls=M,N.p={},N})})(or);var Os=or.exports;const je=Xe(Os);var ar={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(y){this[g]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var P=y.match(/([+-]|\d\d)/g),m=60*P[1]+(+P[2]||0);return m===0?0:P[0]==="+"?-m:m}(g)}],c=function(g){var y=u[g];return y&&(y.indexOf?y:y.s.concat(y.f))},b=function(g,y){var P,m=u.meridiem;if(m){for(var f=1;f<=24;f+=1)if(g.indexOf(m(f,0,y))>-1){P=f>12;break}}else P=g===(y?"pm":"PM");return P},I={A:[i,function(g){this.afternoon=b(g,!1)}],a:[i,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[i,function(g){var y=u.ordinal,P=g.match(/\d+/);if(this.day=P[0],y)for(var m=1;m<=31;m+=1)y(m).replace(/\[|\]/g,"")===g&&(this.day=m)}],M:[r,d("month")],MM:[a,d("month")],MMM:[i,function(g){var y=c("months"),P=(c("monthsShort")||y.map(function(m){return m.slice(0,3)})).indexOf(g)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[i,function(g){var y=c("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=s(g)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function p(g){var y,P;y=g,P=u&&u.formats;for(var m=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,O,S){var q=S&&S.toUpperCase();return O||P[S]||o[S]||P[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,k,C){return k||C.slice(1)})})).match(l),f=m.length,E=0;E<f;E+=1){var B=m[E],M=I[B],D=M&&M[0],L=M&&M[1];m[E]=L?{regex:D,parser:L}:B.replace(/^\[|\]$/g,"")}return function(N){for(var O={},S=0,q=0;S<f;S+=1){var $=m[S];if(typeof $=="string")q+=$.length;else{var k=$.regex,C=$.parser,W=N.slice(q),z=k.exec(W)[0];C.call(O,z),N=N.replace(z,"")}}return function(J){var U=J.afternoon;if(U!==void 0){var Z=J.hours;U?Z<12&&(J.hours+=12):Z===12&&(J.hours=0),delete J.afternoon}}(O),O}}return function(g,y,P){P.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(s=g.parseTwoDigitYear);var m=y.prototype,f=m.parse;m.parse=function(E){var B=E.date,M=E.utc,D=E.args;this.$u=M;var L=D[1];if(typeof L=="string"){var N=D[2]===!0,O=D[3]===!0,S=N||O,q=D[2];O&&(q=D[2]),u=this.$locale(),!N&&q&&(u=P.Ls[q]),this.$d=function(W,z,J){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*W);var U=p(z)(W),Z=U.year,ne=U.month,_=U.day,V=U.hours,H=U.minutes,j=U.seconds,A=U.milliseconds,X=U.zone,K=new Date,T=_||(Z||ne?1:K.getDate()),v=Z||K.getFullYear(),x=0;Z&&!ne||(x=ne>0?ne-1:K.getMonth());var R=V||0,G=H||0,te=j||0,w=A||0;return X?new Date(Date.UTC(v,x,T,R,G,te,w+60*X.offset*1e3)):J?new Date(Date.UTC(v,x,T,R,G,te,w)):new Date(v,x,T,R,G,te,w)}catch{return new Date("")}}(B,L,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),S&&B!=this.format(L)&&(this.$d=new Date("")),u={}}else if(L instanceof Array)for(var $=L.length,k=1;k<=$;k+=1){D[1]=L[k-1];var C=P.apply(this,D);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}k===$&&(this.$d=new Date(""))}else f.call(this,E)}}})})(ar);var As=ar.exports;const Fs=Xe(As);var rr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=r.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),c=(u||"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(b){switch(b){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return h.s(s.week(),b==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),b==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return b}});return i.bind(this)(c)}}})})(rr);var Bs=rr.exports;const Ms=Xe(Bs);var ir={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,b,I,p,g){var y=c.name?c:c.$locale(),P=i(y[b]),m=i(y[I]),f=P||m.map(function(B){return B.slice(0,p)});if(!g)return f;var E=y.weekStart;return f.map(function(B,M){return f[(M+(E||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(c,b){return c.formats[b]||function(I){return I.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,g,y){return g||y.slice(1)})}(c.formats[b.toUpperCase()])},h=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):u(c,"months")},monthsShort:function(b){return b?b.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):u(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(c){return u(s(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}})})(ir);var Rs=ir.exports;const Ls=Xe(Rs);var sr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(h.isBefore(c))return 1}var b=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),I=this.diff(b,o,!0);return I<0?i(this).startOf("week").week():Math.ceil(I)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(sr);var _s=sr.exports;const qs=Xe(_s);var ur={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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}}})})(ur);var zs=ur.exports;const js=Xe(zs);var cr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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")}}})})(cr);var Hs=cr.exports;const Ks=Xe(Hs);var fr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(fr);var Ys=fr.exports;const Ws=Xe(Ys);var dr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(dr);var Us=dr.exports;const Gs=Xe(Us);je.extend(Ls);je.extend(Ms);je.extend(Fs);je.extend(qs);je.extend(js);je.extend(Ks);je.extend(Ws);je.extend(Gs);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){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(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,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}},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}},wo={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 Xs(e,n,o){return{props:{...be,...$e,...wo,...xo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=t.computed(()=>C.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),I=t.computed(()=>C.value?"longTermKey":"normalKey"),p=T=>{if(C.value&&l.type==="daterange"){const v=[...c.value];v[0]=T,c.value=v}else c.value=T;u("update:modelValue",c.value),u("change",c.value)},g=t.computed(()=>C.value&&l.type==="daterange"?"date":l.type),y=e,P=t.computed(()=>({[`${y}`]:!0,"is-long":C.value,"is-readonly":i.value,"is-disabled":r.value}));let m=fe(l,"hintText"),f=t.ref(!1);const E=T=>{let x=T.target.value;h.value=!0,ge(m.value)||(f.value=!0),u("focus",x,T)},B=T=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let x=T.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),u("blur",x,T)},M=()=>{u("clear","")},D=T=>{u("calendar-change",T)},L=(T,v,x)=>{u("panel-change",T,v,x)},N=T=>{u("visible-change",T)},O=Ne(t.computed(()=>l.longTermText),"longTermText",Be.Near),S=Ne(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Be.Near),q=Ne(t.computed(()=>l.longTermValue),"longTermValue",Be.Near),$=Ne(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Be.Near);let k=null;const C=t.ref(ue(l.longTerm)),W=T=>{if(C.value=T,u("update:longTerm",T),T){if(k=c.value,l.type==="daterange"){const v=[];Array.isArray(q.value)?(v[0]=c.value?c.value[0]??q.value[0]:null,v[1]=q.value[1]??q.value[0]):(v[0]=c.value?c.value[0]??q.value:null,v[1]=C.value),v[0]||(v[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),v[1]||(v[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=v}else Array.isArray(q.value)?c.value=q.value[1]??q.value[0]:c.value=q.value,c.value||(c.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);u("update:modelValue",c.value)}else{if(l.type==="daterange"){const v=[];v[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(k)?v[1]=k[1]:v[1]=k,v[0]||(v[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),v[1]||(v[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=v}else c.value=k;u("update:modelValue",c.value),setTimeout(()=>{X()},100)}},z=ue(l.isLongTerm);if(z){const T=()=>{if(C.value===!0){if(k=c.value,l.type==="daterange"){const v=[c.value[0]];Array.isArray(q.value)?v[1]=q.value[1]??q.value[0]:v[1]=C.value,v[0]||(v[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),v[1]||(v[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=v}else c.value=q.value;u("update:modelValue",c.value)}else Le(q.value,c.value)&&(C.value=!0)};T(),t.watch([()=>l.longTerm],([v])=>{C.value!==v&&T()}),t.watch([()=>c.value],([v])=>{let x=!1;if(l.type==="daterange"&&Array.isArray(v))try{let R=v[1];if(!R)return;typeof R!="string"&&l.valueFormat&&(R=ae.format(R,l.valueFormat));let G=Array.isArray(q.value)?q.value[1]:q.value;(R===G||Array.isArray($.value)&&$.value.findIndex(w=>R==w)!==-1)&&(x=!0)}catch(R){console.error(R)}C.value!==x&&(C.value=x)},{immediate:!0})}const J=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),U=t.ref(),Z=t.ref(),ne=/^\d+$/,_=(T,v)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(T,v):ne.test(T)&&T.length===l.flashFillThreshold,V=(T,v)=>{let x;if(typeof l.flashFillFormat=="function")x=l.flashFillFormat(T,v);else{const G=l.flashFillFormat??"YYYYMMDD";x=ae.parser(T,G)}const R=l.valueFormat??"YYYY-MM-DD";return ae.format(x,R)},H=T=>T?T.endsWith("range"):!1,j=T=>{if(!T.target)return;const v=T.target.value??"";if(_(v,l.type)){const x=V(v,l.type);if(H(l.type)){const R=Array.isArray(c.value)?[...c.value]:[];R[0]=x,p(R)}else p(x)}},A=T=>{if(!T.target)return;const v=T.target.value??"";if(_(v,l.type)){const x=V(v,l.type);if(H(l.type)){const R=Array.isArray(c.value)?[...c.value]:[];R[1]=x,p(R)}else p(x)}},X=()=>{if(l.flashFill&&U.value&&U.value.$el)if(H(l.type)){const T=U.value.$el.querySelectorAll("input.el-range-input");T[0]&&T[0].addEventListener("input",j),T[1]&&T[1].addEventListener("input",A)}else{const T=U.value.$el.querySelector("input.el-input__inner");T&&T.addEventListener("input",j)}},K=()=>{if(l.flashFill&&U.value&&U.value.$el)if(H(l.type)){const T=U.value.$el.querySelectorAll("input.el-range-input");T[0]&&T[0].removeEventListener("input",j),T[1]&&T[1].removeEventListener("input",A)}else{const T=U.value.$el.querySelector("input.el-input__inner");T&&T.removeEventListener("input",j)}};return t.onMounted(X),t.onBeforeUnmount(K),pe({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},handleOpen:()=>{Z?.value.handleOpen()},handleClose:()=>{Z?.value.handleClose()}}),()=>{const v={...a.attrs,key:I.value,type:g.value,ref:Z,class:P.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:b.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":p,onClear:M,onFocus:E,onBlur:B,onCalendarChange:D,onPanelChange:L,onVisibleChange:N},x={};a.slots["range-separator"]&&(x["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(x.default=a.slots.cell);const R=[],G=t.h(F.ElDatePicker,v,x);R.push(G);const te={default:()=>R};if(a.slots.default&&(te.label=a.slots.default),a.slots.fixedTip&&(te.fixedTip=a.slots.fixedTip),z){if(C.value){const le=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ee=t.h("input",{class:["fox-date-item__long-text"],value:O.value,readonly:!0}),oe={class:J.value},re=t.h("div",oe,{default:()=>[le,ee]});R.push(re)}if(!i.value&&!r.value){const le={label:S.value||O.value,disabled:i.value||r.value,modelValue:C.value,"onUpdate:modelValue":W},ee=t.h(F.ElCheckbox,le),oe=t.h("div",{class:{[`${y}__append`]:!0}},[ee]);te.append=()=>oe}}const Y={...Te(l,wo,xo),ref:U,class:{[`${y}__wrapper`]:!0,"has-append":z},hintText:m.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(o,Y,te)}}}}const{componentName:Zs,create:Js,scope:Qs}=ie("date-item"),Tl=Js(Xs(Zs,Qs,we)),eu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),$l={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}},kl={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:{}}},hr=2e3;let So=hr;const tu=(e,n)=>({components:n,props:{...kl},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!==hr&&(So=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++So,o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=g=>{l("click-pop",g)},c=g=>{g.stopPropagation(),l("click-close-icon",g),l("update:visible",!1)},b=g=>{l("click-overlay",g),o.closeOnClickOverlay&&l("update:visible",!1)},I=g=>{l("opend",g)},p=g=>{l("closed",g)};return t.watch(()=>o.visible,g=>{o.visible?s():d()}),t.watch(()=>o.closeable,g=>{a.closed=g}),{...t.toRefs(a),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:b,onOpened:I,onClosed:p}}});let $t=0;const Co="fox-overflow-hidden",To=()=>ut?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!$t&&To().classList.add(Co),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&To().classList.remove(Co)}catch{}}],lu={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:ou,create:au}=ie("overlay"),ru=au({props:{...lu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=nu(()=>e.lockScroll),a=t.computed(()=>({[ou]:!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 iu(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 vn=ke(ru,[["render",iu]]),su=["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),cu=[uu],fu=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,d)=>(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"},cu,14,su))}}),du=["aria-labelledby"],hu=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),mu=[hu],gu=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,d)=>(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"},mu,14,du))}}),pu=["aria-labelledby"],yu=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),vu=[yu],bn=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,d)=>(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"},vu,14,pu))}}),bu=["aria-labelledby"],wu=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),xu=[wu],mr=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,d)=>(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"},xu,14,bu))}}),Su=["aria-labelledby"],Cu=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),Tu=[Cu],gr=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,d)=>(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"},Tu,14,Su))}}),$u=["aria-labelledby"],ku=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),Du=[ku],Nu=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,d)=>(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"},Du,14,$u))}}),Eu=["aria-labelledby"],Vu=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),Iu=[Vu],Pu=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,d)=>(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"},Iu,14,Eu))}}),Ou=["aria-labelledby"],Au=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),Fu=[Au],Bu=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,d)=>(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"},Fu,14,Ou))}}),{componentName:Mu,create:Ru}=ie("popup"),Lu=Ru(tu(Mu,{FoxOverLay:vn,Close:mr}));function _u(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 ct=ke(Lu,[["render",_u]]),$o=39,ko=64,{create:qu,scope:zu}=ie("calendar-pane"),ju=qu({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}=ve.useFoxI18n(zu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${$o}px`})),u=t.computed(()=>({height:`${ko}px`})),s=JSON.parse(a("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),b=t.ref(null),I=t.ref(null),p=t.ref(0),g=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>o.btn),P=t.computed(()=>o["top-info"]),m=t.computed(()=>o["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),E=T=>T.split("-"),B=T=>ae.isEqual(f.currDate[0],T),M=T=>ae.isEqual(f.currDate[1],T),D=T=>f.currDate?.length>0?f.currDate?.some(v=>ae.isEqual(v,T)):!1,L=(T,v)=>v.curData[0]+"-"+v.curData[1]+"-"+ae.getNumTwoBit(+T.day),N=(T,v)=>{const x=L(T,v),{type:R}=e;return T.type=="curr"?ae.isEqual(f.currDate,x)||(R=="range"||R=="week")&&(B(x)||M(x))||R=="multiple"&&D(x)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(x,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,x)?`${f.dayPrefix}--disabled`:(R=="range"||R=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],x)&&ae.compareDate(x,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},O=()=>{const{type:T}=e;if(T=="range"&&f.chooseData.length==2||T!="range"){let v=f.chooseData.slice(0);T=="week"&&(v={weekDate:[q(f.chooseData[0]),q(f.chooseData[1])]}),n("choose",v),e.poppable&&n("update")}},S=(T,v,x=!1)=>{if(N(T,v)!=`${f.dayPrefix}--disabled`){const{type:R}=e;let[G,te]=v.curData,w=[...v.curData];if(w[2]=ae.getNumTwoBit(Number(T.day)),w[3]=`${w[0]}-${w[1]}-${w[2]}`,w[4]=ae.getWhatDay(+w[0],+w[1],+w[2]),R=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((Q,le)=>{Q==w[3]&&(Y=le)}),x?f.chooseData.push([...w]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(w[3]),f.chooseData.push([...w]))}else f.currDate=[w[3]],f.chooseData=[[...w]];else if(R=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[w[3]]:ae.compareDate(f.currDate[0],w[3])?Array.isArray(f.currDate)&&f.currDate.push(w[3]):Array.isArray(f.currDate)&&f.currDate.unshift(w[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...w]]:ae.compareDate(f.chooseData[0][3],w[3])?f.chooseData=[...f.chooseData,[...w]]:f.chooseData=[[...w],...f.chooseData]}else if(R=="week"){let Y=ae.getWeekDate(G,te,T.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ae.formatResultDate(Y[0]),ae.formatResultDate(Y[1])]}else f.currDate=w[3],f.chooseData=[...w];if(!x){let Y=f.chooseData;R=="week"&&(Y={weekDate:[q(f.chooseData[0]),q(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&O()}}},q=T=>{let[v,x,R]=T;return{date:T,monthWeekNum:ae.getMonthWeek(v,x,R,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(v,x,R,e.firstDayOfWeek)}},$=T=>{const v=T=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let x=parseInt(v.curData[0]),R=parseInt(v.curData[1].toString().replace(/^0/,""));switch(T){case"prev":R==1&&(x-=1),R=R==1?12:--R;break;case"next":R==12&&(x+=1),R=R==12?1:++R;break}return[x+"",ae.getNumTwoBit(R),ae.getMonthDays(String(x),String(R))+""]},k=(T,v,x)=>{let{year:R,month:G}=x;return v=="prev"&&T>=7&&(T-=7),Array.from(Array(T),(te,w)=>({day:String(w+1),type:v,year:R,month:G}))},C=(T,v,x,R)=>{T=T-e.firstDayOfWeek;let{year:G,month:te}=x;return v=="prev"&&T>=7&&(T-=7),Array.from(Array(R),(Y,Q)=>({day:String(Q+1),type:v,year:G,month:te})).slice(R-T)},W=(T,v)=>{const x=ae.getMonthPreDay(+T[0],+T[1]);let R=Number(T[1])-1,G=Number(T[0]);R<=0&&(R=12,G+=1);const te=ae.getMonthDays(String(T[0]),String(T[1])),w=ae.getMonthDays(G+"",R+""),Y={year:T[0],month:T[1]},Q={curData:T,title:a("monthTitle",{year:Y.year,month:Y.month}),monthData:[...C(x,"prev",{month:String(R),year:String(G)},w),...k(te,"curr",Y)],cssHeight:0,cssScrollHeight:0},le=Q.monthData.length>35?6:5;Q.cssHeight=$o+ko*le;let ee=0;f.monthsData.length>0&&(ee=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),Q.cssScrollHeight=ee,v=="next"?(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${T[0]}-${T[1]}-${T[2]}`))&&f.monthsData.push(Q):!f.startData||!ae.compareDate(`${T[0]}-${T[1]}-${T[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(Q):f.unLoadPrev=!0},z=()=>{let T=e.startDate?e.startDate:ae.getDay(0),v=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=T,f.propEndDate=v,f.startData=E(T),f.endData=E(v),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const x={year:Number(f.startData[0]),month:Number(f.startData[1])},R={year:Number(f.endData[0]),month:Number(f.endData[1])};let G=R.month-x.month;R.year-x.year>0&&(G=G+12*(R.year-x.year)),G<=0&&(G=1),W(f.startData,"next");let te=1;do W($("next"),"next");while(te++<G);if(f.monthsNum=G,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(T&&ae.compareDate(f.currDate[0],T)&&f.currDate.splice(0,1,T),v&&ae.compareDate(v,f.currDate[1])&&f.currDate.splice(1,1,v),f.defaultData=[...E(f.currDate[0]),...E(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let w=[],Y={};f.currDate.forEach(Q=>{T&&!ae.compareDate(Q,T)&&v&&!ae.compareDate(v,Q)&&(Object.hasOwnProperty.call(Y,Q)||(w.push(Q),Y[Q]=Q))}),f.currDate=[...w],f.defaultData=[...E(w[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[w,Y,Q]=E(f.currDate[0]),le=ae.getWeekDate(w,Y,Q,e.firstDayOfWeek);f.currDate=le,T&&ae.compareDate(f.currDate[0],T)&&f.currDate.splice(0,1,T),v&&ae.compareDate(v,f.currDate[1])&&f.currDate.splice(1,1,v),f.defaultData=[...E(f.currDate[0]),...E(f.currDate[1])]}}else f.currDate&&(T&&ae.compareDate(f.currDate,T)?f.currDate=T:v&&!ae.compareDate(f.currDate,v)&&(f.currDate=v),f.defaultData=[...E(f.currDate)])};pe({scrollToDate:T=>{ae.compareDate(T,f.propStartDate)?T=f.propStartDate:ae.compareDate(T,f.propEndDate)||(T=f.propEndDate);let v=E(T);f.monthsData.forEach((x,R)=>{if(x.title==a("monthTitle",{year:v[0],month:v[1]})&&h.value){let G=f.monthsData[R].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let te=0,w=setInterval(()=>{if(te++,h.value){let Y=G/10;h.value.scrollTop=h.value.scrollTop+Y}te>=10&&(clearInterval(w),h.value&&(h.value.scrollTop=f.monthsData[R].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[R].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let T=0,v=0;f.defaultData.length>0&&f.monthsData.forEach((G,te)=>{G.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(T=te),(e.type=="range"||e.type=="week")&&G.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(v=te)}),ne(f.monthsNum,T),f.currentIndex=T,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(S({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),S({day:f.defaultData[5],type:"curr"},f.monthsData[v],!0)):e.type=="week"?S({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(G=>{let te=E(G),w=f.currentIndex;f.monthsData.forEach((Y,Q)=>{Y.title==a("monthTitle",{year:te[0],month:te[1]})&&(w=Q)}),S({day:te[2],type:"curr"},f.monthsData[w],!0)}):S({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let x=f.monthsData[f.monthsData.length-1],R=x.cssHeight+x.cssScrollHeight;rl(()=>{h?.value&&c?.value&&I?.value&&(p.value=h.value.clientHeight,c.value.style.height=`${R}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(R/(f.monthsNum+1))}});const ne=(T,v)=>{T>=3?v>0&&v<T?f.defaultRange=[v-1,v+3]:v==0?f.defaultRange=[v,v+4]:v==T&&(f.defaultRange=[v-2,v+2]):f.defaultRange=[0,T+2];let x=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=x},_=(T,v)=>(e.type=="range"||e.type=="week")&&T.type=="curr"&&N(T,v)=="fox-calendar__day--active",V=(T,v)=>_(T,v)&&B(L(T,v)),H=(T,v)=>f.currDate.length>=2&&M(L(T,v))?_(T,v):!1,j=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},A=T=>{const v=`${T.year}-${T.month}-${Number(T.day)<10?"0"+T.day:T.day}`;return ae.isEqual(v,ae.date2Str(new Date))},X=T=>{if(f.monthsData.length<=1)return;const v=T.target.scrollTop;let x=Math.floor(v/f.avgHeight);if(x==0)v>=f.monthsData[x+1].cssScrollHeight&&(x+=1);else if(x>0&&x<f.monthsNum-1)v>=f.monthsData[x+1].cssScrollHeight&&(x+=1),v<f.monthsData[x].cssScrollHeight&&(x-=1);else{const R=Math.round(v+p.value);R<f.monthsData[x].cssScrollHeight+f.monthsData[x].cssHeight&&v>f.monthsData[x-1].cssScrollHeight&&(x-=1),x+1<=f.monthsNum&&R>=f.monthsData[x+1].cssScrollHeight+f.monthsData[x+1].cssHeight&&(x+=1),x>=1&&v<f.monthsData[x-1].cssScrollHeight&&(x-=1)}f.currentIndex!==x&&(f.currentIndex=x,ne(f.monthsNum,x)),f.yearMonthTitle=f.monthsData[x].title},K=()=>{f.chooseData.splice(0),f.monthsData.splice(0),z()};return z(),t.watch(()=>e.defaultValue,T=>{T&&e.poppable&&K()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:g,showTopBtn:y,topInfo:P,bottomInfo:m,rangeTip:j,mothsViewScroll:X,getClass:N,isStartTip:V,isEndTip:H,chooseDay:S,isCurrDay:A,confirm:O,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:b,viewArea:I}}}),Hu={class:"fox-calendar__header"},Ku={key:0,class:"fox-calendar__header-title"},Yu={key:1,class:"fox-calendar__header-slot"},Wu={key:2,class:"fox-calendar__header-subtitle"},Uu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Gu={class:"fox-calendar__panel",ref:"monthsPanel"},Xu={class:"fox-calendar__days"},Zu=["onClick"],Ju={class:"fox-calendar__day-value"},Qu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},ec={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},tc={key:2,class:"fox-calendar__day-tips--curr"},nc={key:4,class:"fox-calendar__day-tip"},lc={key:0,class:"fox-calendar__footer"};function oc(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",Hu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Yu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Wu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uu,[(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",Gu,[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",Xu,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Ju,[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",Qu,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",ec,[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",tc,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",nc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Zu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",lc,[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 ac=ke(ju,[["render",oc]]),{create:rc}=ie("calendar-picker"),ic=rc({components:{CalendarPane:ac,Popup:ct},props:{...$l},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=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const y=["fox-calendar__popup"];return e.popClass&&y.push(e.popClass),y});t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),pe({scrollToDate:s,initPosition:d});const c=()=>{n("update:visible",!1)},b=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{b()},update:c,close:b,select:y=>{n("select",y)},choose:y=>{b(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function sc(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 wn=ke(ic,[["render",sc]]),Rn=(e,n)=>{let o;return et(e)?o=e:typeof e=="string"&&He(e)>0?o=ae.parser(e,n):o=new Date,o},ft=(e,n,o)=>(et(n)||(n=new Date),ae.format(n,o)),dt=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]},Do={...$l,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:{...be,...$e,...Do},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]);let h=fe(l,"hintText"),c=t.ref(!1);const b=t.ref(!1),I=t.computed(()=>l.type==="range"),p=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),g=()=>{p.startDate!==null&&(p.startDate=null,p.endDate=null,p.startArray=[],p.endArray=[])},y=(z,J="one",U="YYYY-MM-DD")=>{if(eu(z)){g();return}if(I.value&&Array.isArray(z)&&z.length==2){let Z,ne;typeof z[0]=="string"?(Z=Rn(z[0],U),ne=Rn(z[1],U)):(Z=z[0],ne=z[1]);let _=dt(Z),V=dt(ne);(p.startDate===null||p.startDate.getTime()!==Z.getTime()||p.endDate?.getTime()!==ne.getTime())&&(p.startDate=Z,p.startArray=_,p.endDate=ne,p.endArray=V)}else{let Z;typeof z=="string"?Z=Rn(z,U):Z=z;let ne=dt(Z);(p.startDate===null||p.startDate.getTime()!==Z.getTime())&&(p.startDate=Z,p.startArray=ne)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,z=>{y(z,l.type,l.valueFormat),u("setValue",z)});const P=t.computed(()=>{if(p.startDate===null)return"";if(I.value){let z=ft(l,p.startDate,l.format),J=ft(l,p.endDate,l.format);return`${z} ${l.rangeSeparator} ${J}`}else{let z=ft(l,p.startDate,l.format);return l.showWeek&&(z=`${z} ${p.startArray[4]}`),z}}),m=t.computed(()=>{if(p.startDate===null)return null;if(I.value){let z=ae.date2Str(p.startDate),J=ae.date2Str(p.endDate??new Date);return[z,J]}else return ae.date2Str(p.startDate)}),f="fox-input-item",E=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),B=Ne(t.computed(()=>l.textAlign),"textAlign"),M=t.computed(()=>({textAlign:B.value??"right"})),D=t.ref(!1),L=()=>{i.value||r.value||(D.value=!0)},N=()=>{D.value=!1},O=z=>{D.value=z},S=z=>{if(z){if(I.value&&Array.isArray(z)){let J=z[0],U=de(J[0]),Z=de(J[1]),ne=de(J[2]),_=new Date(U,Z-1,ne),V=z[1];U=de(V[0]),Z=de(V[1]),ne=de(V[2]);let H=new Date(U,Z-1,ne);if(p.startDate=_,p.startArray=dt(_),p.endDate=H,p.endArray=dt(H),l.valueFormat){let j=ft(l,_,l.valueFormat),A=ft(l,H,l.valueFormat);u("update:modelValue",[j,A],{})}else u("update:modelValue",[_,H],{})}else{let J=z,U=de(J[0]),Z=de(J[1]),ne=de(J[2]),_=new Date(U,Z-1,ne);if(p.startDate=_,p.startArray=dt(_),l.valueFormat){let V=ft(l,_,l.valueFormat);u("update:modelValue",V,{})}else u("update:modelValue",_,{})}u("change",z,{})}},q=z=>{let U=z.target.value;b.value=!0,u("focus",U,z)},$=z=>{setTimeout(()=>{b.value=!1},0);let U=z.target.value;l.maxLength&&U.length>Number(l.maxLength)&&(U=U.slice(0,Number(l.maxLength))),u("blur",U,z)},k=t.computed(()=>He(l.unit)>0),C=z=>{g(),u("update:modelValue",null,z),u("change","",z),u("clear","")},W=t.ref();return pe({showPicker:L,hidePicker:N,focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const z={class:E.value,style:M.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:P.value,onClick:L,onFocus:q,onBlur:$,onClear:C},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(F.ElIcon,{},{default:()=>t.h(Ce.Calendar)}),a.slots.suffix?J.suffix=a.slots.suffix:k.value&&(J.suffix=()=>[l.unit]);const U=[],Z=t.h(F.ElInput,z,J);U.push(Z);const ne={default:()=>U};a.slots.default&&(ne.label=a.slots.default),a.slots.fixedTip&&(ne.fixedTip=a.slots.fixedTip);const _=Bt(l,$l);_.visible=D.value,_["onUpdate:visible"]=O,_["default-value"]=m.value,_.onChoose=S;const V={};if(a.slots.btn){const K=a.slots.btn();V.btn=()=>K}a.slots.day&&(V.day=a.slots.day),a.slots.topInfo&&(V.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(V.bottomInfo=a.slots.bottomInfo);const H=t.h(wn,_,V);ne.hide=()=>[H];const A={...Te(l,Do),hintText:h.value,hintVisible:c.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,A,ne)}}}}const{componentName:cc,create:fc,scope:dc}=ie("calendar-item"),Dl=fc(uc(cc,dc,we)),No={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hc(e,n,o){return{props:{...be,...$e,...No},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,I=t.computed(()=>({[b]:!0})),p=M=>{c.value=M,u("update:modelValue",M),u("change",M)};let g=fe(l,"hintText"),y=t.ref(!1);const P=M=>{let L=M.target.value;h.value=!0,ge(g.value)||(y.value=!0),u("focus",L,M)},m=M=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let L=M.target.value;l.maxLength&&L.length>Number(l.maxLength)&&(L=L.slice(0,Number(l.maxLength))),u("blur",L,M)},f=()=>{u("clear","")},E=M=>{u("visible-change",M)},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const D={...a.attrs,ref:B,class:I.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:P,onBlur:m,onVisibleChange:E},L={},N=[],O=t.h(F.ElTimePicker,D,L);N.push(O);const S={default:()=>N};a.slots.default&&(S.label=a.slots.default),a.slots.fixedTip&&(S.fixedTip=a.slots.fixedTip);const $={...Te(l,No),hintText:g.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(o,$,S)}}}}const{componentName:mc,create:gc,scope:pc}=ie("time-item"),Nl=gc(hc(mc,pc,we)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yc(e,n,o){return{props:{...be,...$e,...Eo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,I=t.computed(()=>({[b]:!0})),p=B=>{c.value=B,u("update:modelValue",B),u("change",B)};let g=fe(l,"hintText"),y=t.ref(!1);const P=B=>{let D=B.target.value;h.value=!0,ge(g.value)||(y.value=!0),u("focus",D,B)},m=B=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let D=B.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),u("blur",D,B)},f=()=>{u("clear","")},E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const M={...a.attrs,ref:E,class:I.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:P,onBlur:m},D={},L=[],N=t.h(F.ElTimeSelect,M,D);L.push(N);const O={default:()=>L};a.slots.default&&(O.label=a.slots.default),a.slots.fixedTip&&(O.fixedTip=a.slots.fixedTip);const q={...Te(l,Eo),hintText:g.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(o,q,O)}}}}const{componentName:vc,create:bc,scope:wc}=ie("time-select-item"),El=bc(yc(vc,wc,we));function Vo(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 Io(e,n,o=20){if(typeof n=="string"&&(n=de(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=xa(`${e}`,`${n}`);return Vo(l)}else{let l=sl(`${e}`,Sa(`${n}`),20);return Vo(l)}}function xc(e,n=-1,o=!1,l=3,a=","){return tn(e,n,o,l,a)}function Po(e,n,o,l,a=!0){if(e=="")return"";if(e=Ca(e),n=de(n),n==1)return e;if(l)e=Io(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=sl(e,1,de(o)));else{let r=-1*n;e=Io(e,r)}return e}function Oo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),a=Gn(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=ue(n.maxInclude),a=Gn(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Ao={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 Sc(e,n,o){return{props:{...be,...$e,...Ao},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref(!1),d=fe(l,"modelValue",null,u),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([$,k,C])=>{if(ge($)){h.value="";return}const W=Po($,k,C,!1);h.value!==W&&(h.value=W)},{immediate:!0});const c=t.computed(()=>{let $="";return s.value&&($=h.value),$}),{t:b}=ve.useFoxI18n(n),I=t.computed(()=>{let $=l.placeholder??"";return!s.value&&!ge(h.value)?$=xc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):$=b(["placeholder",$]),$}),p=e,g=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__placeholder`]:h.value.length>0})),y=Ne(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:y.value??"right"});const P=t.ref(""),m=t.computed(()=>{let $=P.value;return ge($)&&($=l.errorTip??""),$}),f=t.ref(""),E=t.ref(!1),B=($,k)=>{if($=`${$}`,ge($)){h.value="",d.value="",k.forEach(C=>{u(C,"")}),ue(l.showTip)&&E.value&&(E.value=!1);return}if($.length>=2){let C=$;if(C.charAt(0)=="-"&&(C=C.substring(1)),C.length>=2&&C.charAt(0)=="0"&&C.charAt(1)!="."){t.triggerRef(h);return}}if($!="-"){if(!Ia($)){t.triggerRef(h);return}if(l.integerLength!=-1&&Pa($)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Oa($)>Number(l.decimalLength)){t.triggerRef(h);return}let C=Oo($,l);if(C.maxValid===!1){P.value=C.message,t.triggerRef(h);return}}else if(l.min!=null&&de(l.min)>=0){t.triggerRef(h);return}f.value=$,ue(l.showTip)&&(E.value=$.length>0),h.value=$,d.value=Po($,l.rates,l.precision,!0),k.forEach(C=>{u(C,d.value)})},M=$=>{B($,["update:modelValue","input"])},D=$=>{B($,["update:modelValue","change"])},L=$=>{if(s.value=!0,ue(l.showTip)){let k=h.value;ge(k)&&(k=l.hintText),ge(k)||(f.value=k,E.value=!0)}P.value="",u("focus",d.value,$)},N=$=>{if(setTimeout(()=>{s.value=!1,ue(l.showTip)&&E.value===!0&&(E.value=!1)},0),!ge(h.value)){let k=Oo(h.value,l);if(k.minValid===!1||k.maxValid===!1){P.value=k.message;return}}u("update:modelValue",d.value,$),u("blur",d.value,$)},O=()=>{u("clear","")},S=t.computed(()=>He(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ke(a.attrs),ref:q,class:g.value,type:"digit",maxlength:l.maxLength,placeholder:I.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:O,onInput:M,onChange:D,onFocus:L,onBlur:N},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:S.value&&(C.suffix=()=>[l.unit]);const W=[],z=t.h(F.ElInput,k,C);W.push(z);const J={default:()=>W};a.slots.default&&(J.label=a.slots.default),a.slots.fixedTip&&(J.fixedTip=a.slots.fixedTip);const Z={...Te(l,Ao),errorTip:m.value,hintText:f.value,hintVisible:E.value,hintType:"number",prop:`${l.prop}_item`};return t.h(o,Z,J)}}}}const{componentName:Cc,create:Tc,scope:$c}=ie("money-item"),Vl=Tc(Sc(Cc,$c,we)),Fo={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 kc(e,n,o){return{props:{...be,...$e,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,I=t.computed(()=>({[b]:!0,[`${b}__append`]:M.value})),p=t.computed(()=>({[`${b}__unit`]:!0})),g=L=>{c.value=L,u("update:modelValue",L),u("input",L)},y=L=>{u("change",L)};let P=fe(l,"hintText"),m=t.ref(!1);const f=L=>{let O=L.target.value;h.value=!0,ge(P.value)||(m.value=!0),u("focus",O,L)},E=L=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let O=L.target.value;l.maxLength&&O.length>Number(l.maxLength)&&(O=O.slice(0,Number(l.maxLength))),u("blur",O,L)},B=()=>{u("clear","")},M=t.computed(()=>He(l.unit)>0),D=t.ref();return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const N={...Ke(a.attrs),ref:D,class:I.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:y,onInput:g,onFocus:f,onBlur:E},O={},S=[],q=t.h(F.ElInputNumber,N,O);S.push(q);const $={default:()=>S};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const C={...Te(l,Fo),hintText:P.value,hintVisible:m.value,prop:`${l.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(M.value){const z={class:p.value},J=t.h("div",z,[l.unit]);$.append=()=>J}return t.h(o,C,$)}}}}const{componentName:Dc,create:Nc,scope:Ec}=ie("input-number-item"),Il=Nc(kc(Dc,Ec,we));function Ye(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Vc(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ic=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=Oe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l,a))}};function Pc(){const e=t.getCurrentInstance();return new Ic(e.proxy)}function ll(e,n,o){const l=Ye(e,n),a=Ye(e,o);if(l!==a)return!1;const r=rt(e,n),i=rt(e,o);return r===i}function pr(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=pr(e,u,o,l);a.push(s)}else{let s=!1;for(let d of r){if(o==="text")s=Ye(e,d)===u;else if(o==="item")s=ll(e,d,u);else{let h=rt(e,d);h==null&&(h=Ye(e,d)),s=h===u}if(s){a.push(d),r=Vc(e,d);break}}if(!s)break}}return a}function Oc(e){return{text:e,value:e}}const Bo={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:[Function],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ac(e,n,o){return{props:{...be,...$e,...Bo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map(T=>Array.isArray(T)?T.map(x=>Ye(l,x)).join(" "):Ye(l,T)).join(" "):""),I=(K,T,v,x=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===K)return;h.value=K;const w=t.toRaw(K);if(x){const Y=X?.value.getCheckedNodes();if(Y)if(l.multiple){const Q=[];Y.forEach(le=>{const oe=(le.pathNodes??[]).map(re=>re.data);Q.push(oe)}),u("update:pathNodes",Q)}else{const le=(Y[0]?.pathNodes??[]).map(ee=>ee.data);u("update:pathNodes",le)}u("update:modelValue",w),u("change",w)}return}const R=pr(l,K,T,v);if(R===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,x&&(u("update:pathNodes",[]),u("update:modelValue",null),u("change",null));return}const G=R[R.length-1];if(O.value.checkStrictly!==!0&&G&&!Array.isArray(G)&&Array.isArray(G.children)&&G.children.length>0){const w=[];R.forEach(Y=>{const Q=`${Ye(l,Y)}`;w.push(Q)}),w.length>0&&(L.value=w.join(l.separator))}else L.value=null;let te=!0;if(R.length!==c.value.length)te=!1;else for(let w=0;w<R.length;w++){const Y=R[w],Q=c.value[w];if(Array.isArray(Y)){if(!Array.isArray(Q)||Y.length!==Q.length)te=!1;else for(let le=0;le<Y.length;le++)if(!ll(l,Y[le],Q[le])){te=!1;break}}else ll(l,Y,Q)||(te=!1);if(!te)break}if(!te){c.value=R;let w=[],Y=[];R.forEach(le=>{if(Array.isArray(le)){let ee=[],oe=[];for(let re of le)ee.push(rt(l,re)),l.valueType==="text"?oe.push(Ye(l,re)):l.valueType==="item"?oe.push(re):oe.push(rt(l,re));w.push(ee),Y.push(oe)}else w.push(rt(l,le)),l.valueType==="text"?Y.push(Ye(l,le)):l.valueType==="item"?Y.push(le):Y.push(rt(l,le))}),h.value=w;const Q=t.toRaw(Y);x&&(u("update:pathNodes",R),u("update:modelValue",Q),u("change",Q))}},p=t.ref([]),g=Ne(t.computed(()=>l.appearLoad),"appearLoad",Be.Near,K=>ue(K)),y=Pc(),P=async(K,T)=>{if(K){const v=await y.load("cascader",K,T);if(v.length>0)if(typeof v[0]=="string"){let G=v.map(te=>Oc(te));p.value=G}else p.value=v}};t.watch([()=>l.source,()=>l.params],async([K,T])=>{P(K,T)},{immediate:!(g.value||l.lazy)});let m=!1;const f=()=>{m||(m=!0,P(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([K,T])=>{I(T,l.valueType,K,!1),u("setValue",T)}),l.lazy&&I(l.modelValue,"value",[],!1);let E=null,B=t.ref(!1);typeof l.remoteMethod=="function"&&(E=async K=>{if(K!=null){B.value=!0;try{const T=await l.remoteMethod(K);p.value=T}catch(T){console.error(T)}B.value=!1}});const M=t.ref(!1),D=e,L=t.ref(null),N=t.computed(()=>({[D]:!0,"is-incomplete":L.value&&L.value.length>0})),O=t.computed(()=>{let K={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(K.multiple=!0),l.props&&Object.assign(K,l.props),l.lazy&&(K.lazy=!0,typeof l.lazyLoad=="function"?K.lazyLoad=l.lazyLoad:K.lazyLoad=async(T,v)=>{const x=await y.load("cascader",l.source,T,!0);if(T?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===T.level){const R=T.pathLabels??[];let G=[];R.forEach(te=>{te&&G.push(te)}),G.length>0&&(L.value=G.join(l.separator))}else L.value=null;v(x)}),K}),S=K=>{l.allowCreate?(u("update:modelValue",K),u("change",K),h.value=K):I(K,"value",p.value,!0)};let q=fe(l,"hintText"),$=t.ref(!1);const k=K=>{let v=K.target.value;M.value=!0,ge(q.value)||($.value=!0),u("focus",v,K)},C=K=>{setTimeout(()=>{$.value&&($.value=!1),M.value=!1},0);let v=K.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),V.value||u("blur",v,K)},W=()=>{u("clear","")},z=t.ref(!1);let J=null;const U=()=>{l.showTooltip&&z.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{z.value=!0},150))},Z=()=>{J&&(clearTimeout(J),z.value=!1,J=null)},ne=t.computed(()=>z.value||$.value),_=t.computed(()=>z.value?b.value:q.value),V=t.ref(!1),H=K=>{V.value=K,u("visible-change",K),K||u("selected")},j=K=>{u("remove-tag",K)},A=K=>{u("expand-change",K)},X=t.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},getCheckedNodes:()=>X?.value.getCheckedNodes()}),()=>{const T={...a.attrs,ref:X,class:N.value,props:O.value,clearable:l.clearable,placeholder:L.value||d.placeholder.value,disabled:r.value||i.value,options:p.value,modelValue:h.value,separator:l.separator,onClear:W,onChange:S,onFocus:k,onBlur:C,onVisibleChange:H,onRemoveTag:j,expandChange:A};typeof E=="function"&&(T["remote-method"]=E,T.loading=B.value);const v={};a.slots.option&&(v.default=a.slots.option),a.slots.empty&&(v.empty=a.slots.empty);const x=[],R=t.h(F.ElCascader,T,v);x.push(R);const G={default:()=>x};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const w={...Te(l,Bo),hintText:_.value,hintVisible:ne.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:U,onMouseleave:Z};return g.value&&!l.lazy&&(w["appear-listen"]=!0,w.onAppear=f),t.h(o,w,G)}}}}const{componentName:Fc,create:Bc,scope:Mc}=ie("cascader-item"),Pl=Bc(Ac(Fc,Mc,we)),Mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Rc(e,n,o){return{props:{...be,...$e,...Mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,I=t.computed(()=>({[b]:!0})),p=D=>{c.value=D,u("update:modelValue",D),u("input",D)},g=D=>{u("change",D)},y=D=>{u("select",D)};let P=fe(l,"hintText"),m=t.ref(!1);const f=D=>{let N=D.target.value;h.value=!0,ge(P.value)||(m.value=!0),u("focus",N,D)},E=D=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let N=D.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),u("blur",N,D)},B=()=>{u("clear","")},M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const L={...a.attrs,ref:M,class:I.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:B,onChange:g,onInput:p,onFocus:f,onBlur:E,onSelect:y},N={};a.slots.prepend&&(N.prepend=a.slots.prepend),a.slots.append&&(N.append=a.slots.append),a.slots.prefix&&(N.prefix=a.slots.prefix),a.slots.suffix&&(N.suffix=a.slots.suffix),a.slots.option&&(N.default=a.slots.option);const O=[],S=t.h(F.ElAutocomplete,L,N);O.push(S);const q={default:()=>O};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const k={...Te(l,Mo),hintText:P.value,hintVisible:m.value,prop:`${l.prop}_item`};return t.h(o,k,q)}}}}const{componentName:Lc,create:_c,scope:qc}=ie("autocomplete-item"),Ol=_c(Rc(Lc,qc,we));function zc(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 d=0;s&&d<r.length;d++){let h=r[d],c=s.find(b=>b[l]===h);if(!c)break;i.push(c[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const c=d.find(b=>b[l]===h);if(!c)break;i.push(c[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(b=>b[l]===h);if(!c)break;i.push(c[o]),s=c[a]}}return i}let jc=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Hc(){const e=t.getCurrentInstance();return new jc(e.proxy)}const yr={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 Kc(e,n){return{props:{...yr},setup(o,{attrs:l,slots:a}){const r=Hc(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([d,h])=>{i.value=await r.load(o.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=zc(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const d={...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,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:cp,create:Yc,scope:fp}=ie("mapping"),At=Yc(Kc());function Wc(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Uc(e,n){return{props:{...yr},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const u=Wc(i.row,i.column.property);return a.default?t.h(At,{...o,modelValue:u},{default:a.default}):t.h(At,{...o,modelValue:u})}};return t.h(F.ElTableColumn,{...l},r)}}}}const{componentName:dp,create:Gc,scope:hp}=ie("table-mapping-column"),Al=Gc(Uc()),Xc=Symbol.for("TableStateKey");function Ro(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Zc(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Xc,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:u=>{const s=Ro(u.row,u.column.property),d=r?Ro(r,u.column.property):null,h=s===d,c={class:{"el-radio__input":!0,"is-checked":h}},b=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),I={class:{"el-radio":!0,"is-checked":h}};return t.h("label",I,[b])}};return t.h(F.ElTableColumn,{...l},i)}}}}const{componentName:mp,create:Jc,scope:gp}=ie("table-radio-column"),Fl=Jc(Zc()),Qc={},ef={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"},tf=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),nf=[tf];function lf(e,n){return t.openBlock(),t.createElementBlock("svg",ef,nf)}const of=ke(Qc,[["render",lf]]),{componentName:pp,create:af,scope:yp}=ie("table-setting"),rf={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:"不固定"}},sf=af({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:of,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...rf},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(A=>A.label===""||A.type?!1:A.fixed===""||A.fixed===!0||A.fixed==="left")),i=t.computed(()=>a.value.filter(A=>A.label===""||A.type?!1:A.fixed==="right")),u=t.computed(()=>a.value.filter(A=>!(A.label===""||A.type||A.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),c=A=>A.length>1,b=(A,X)=>{Array.isArray(A)&&Array.isArray(X)&&A.forEach(v=>{X.some(x=>x.prop===v.prop?(v.label=x.label,!0):!1)});const K=[];a.value=A.map((v,x)=>(!(v.label===""||v.type)&&v.visible!==!1&&K.push(v.prop),{...v,sortIndex:x})),u.value.length+r.value.length+i.value.length===K.length?m.value=!0:K.length>0&&(f.value=!0),M.value=K},I=A=>A?A.type?A.type:A.label?A.prop:"":"",p=(A,X)=>{if(A.length!==X.length)return!1;const K=A.map(T=>I(T));for(let T of X){const v=I(T);if(K.indexOf(v)===-1)return!1}return!0},g=A=>{if(!A){const X=e.tableRef.getColumnSetting(),K=X.srcColumnPropertyList;l=K.map((T,v)=>({...T,sortIndex:v})),A=X.columnPropertyList,A&&A.length>0&&p(K,A)||(A=K)}b(A,l)},y=()=>{e.tableRef.setColumnSetting(a.value)},P=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),f=t.ref(!1),E=A=>{const X=[];a.value.forEach(T=>{A&&!(T.label===""||T.type)&&X.push(T.prop),T.visible=A}),m.value=!1,f.value=!1,u.value.length+r.value.length+i.value.length===X.length?m.value=!0:X.length>0&&(f.value=!0),M.value=X,y()},B=()=>{g(l),y()},M=t.ref([]),D=A=>{a.value.forEach(K=>{if(K.label===""||K.type)return;const T=A.indexOf(K.prop)!==-1;K.visible=T}),m.value=!1,f.value=!1;const X=u.value.length+r.value.length+i.value.length;A.length===X?m.value=!0:A.length>0&&(f.value=!0),y()},L=()=>{g()};t.onMounted(()=>{setTimeout(()=>{g()},50)});const N={currentRow:null,index:null,roleType:null},O=A=>A?A.dataset&&A.dataset.role==="row"?A:A.tagName.toLowerCase()!=="body"?(A=A.parentElement,O(A)):null:null,S=A=>{const X=A.currentTarget;X&&X.dataset&&(N.roleType=X.dataset.roleType,N.index=X.dataset.index)},q=A=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},$=A=>{const X=A.currentTarget;A.relatedTarget;const K=O(X);if(!K)return;const T=K.dataset&&K.dataset.roleType;N.roleType===T&&(A.preventDefault(),N.currentRow&&N.currentRow!==K&&N.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),N.currentRow=K)},k=A=>{A.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},C=A=>{const X=A.currentTarget,K=O(X);if(!K)return;const T=K.dataset&&K.dataset.roleType;if(N.roleType!==T)return;A.preventDefault();const v=Number(N.index),x=Number(K.dataset.index);if(v!==x){if(v<x){const R=a.value[v];a.value.splice(v,1),a.value.splice(x,0,R)}else{const R=a.value[v];a.value.splice(v,1),a.value.splice(x+1,0,R)}b(a.value,l),y()}},W=A=>{const X=a.value[A];X.fixed="left",y()},z=A=>{const X=a.value[A];X.fixed="right",y()},J=A=>{const X=a.value[A];X.fixed=void 0,y()},U=new Map;let Z=null;function ne(A){const X=document.createRange();return X.setStart(A,0),X.setEnd(A,A.childNodes.length),X.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:m,isIndeterminate:f,handleCheckAllChange:E,handleReset:B,checkedValue:M,handleCheckChange:D,onShow:L,onDragStart:S,onDragEnd:q,onDragOver:$,onDragLeave:k,onDrop:C,toLeftFixed:W,toRightFixed:z,toUnFixed:J,checkboxLabelStyle:P,onMouseOverForOverflowText:(A,X,K)=>{const T=A.currentTarget;if(T){const v=Math.floor(T.offsetWidth);if(Math.floor(ne(T))>v){let R=U.get(X);if(R){if(R===Z)return;Fe.hide(R)}R=Fe.show(T,K,{type:"text",placement:"top",closeOnClick:!1}),U.set(X,R),Z=R}}},onMouseLeaveForOverflowText:(A,X)=>{const K=U.get(X);K&&(Fe.hide(K),K===Z&&(Z=null))},onMouseOverForTip:(A,X)=>{const K=A.currentTarget;K&&(Z&&Fe.hide(Z),Z=Fe.show(K,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:A=>{Z&&(Fe.hide(Z),Z=null)}}}}),uf={class:"fox-table-setting"},cf={class:"fox-table-setting__header"},ff={class:"fox-table-setting__body"},df={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},hf={key:0,class:"fox-table-setting__body-title"},mf=["data-index","draggable"],gf=["onMouseover","onMouseleave"],pf={class:"tools-item"},yf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vf={key:0,class:"fox-table-setting__body-title"},bf=["data-index","draggable"],wf=["onMouseover","onMouseleave"],xf={class:"tools-item"},Sf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Cf={key:0,class:"fox-table-setting__body-title"},Tf=["data-index","draggable"],$f=["onMouseover","onMouseleave"],kf={class:"tools-item"};function Df(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),I=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",uf,[t.createElementVNode("div",cf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=g=>e.isCheckAll=g),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",ff,[t.createVNode(I,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",df,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",hf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,gf)]),_:2},1032,["label"]),t.createElementVNode("div",pf,[t.createVNode(h,{onClick:y=>e.toUnFixed(g.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(g.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,mf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",yf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",vf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[15]||(n[15]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[16]||(n[16]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[17]||(n[17]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[18]||(n[18]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,wf)]),_:2},1032,["label"]),t.createElementVNode("div",xf,[t.createVNode(h,{onClick:y=>e.toLeftFixed(g.sortIndex),onMouseover:n[10]||(n[10]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(g.sortIndex),onMouseover:n[12]||(n[12]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[13]||(n[13]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,bf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Sf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Cf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[24]||(n[24]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[25]||(n[25]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[26]||(n[26]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[27]||(n[27]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,$f)]),_:2},1032,["label"]),t.createElementVNode("div",kf,[t.createVNode(h,{onClick:y=>e.toUnFixed(g.sortIndex),onMouseover:n[19]||(n[19]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[20]||(n[20]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toLeftFixed(g.sortIndex),onMouseover:n[21]||(n[21]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Tf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xn=ke(sf,[["render",Df]]);let Nf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=(l-1)*a,h=d+a;h>o.length&&(h=o.length);const c=o.slice(d,h);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,u]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r,i,u]))}};function Ef(){const e=t.getCurrentInstance();return new Nf(e.proxy)}let Vf=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function If(){const e=t.getCurrentInstance();return new Vf(e.proxy)}const Pf=Symbol.for("TableStateKey"),Lo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},_o={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}},Ln={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:"不固定"}},Of={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Af(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 _n(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=Af(l,a);if(r!==i)return!1}return!0})}function Ff(e,n,o){return{inheritAttrs:!1,props:{...be,...$e,...Lo,..._o,...Ln,...Of},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=ve.useFoxI18n(n),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...ee){return M.value}}},l.prop??a.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),c=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),I=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),y=ue(l.infiniteLoad);y||(t.watch(()=>l.pageIndex,ee=>{p.value=ee}),t.watch(()=>l.pageSize,ee=>{g.value=ee}),t.watch([p,g],([ee,oe],[re,se])=>{oe!==se&&(p.value=1,ee=1),O(l.data,ee,oe,I.value)}));const P=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);P()&&t.watch([()=>l.data,I],async([ee,oe],[re,se])=>{P()&&(ee!==re&&(L=!0),!(!Array.isArray(ee)&&Le(ee,re)&&Le(oe,se))&&(y?(p.value=0,E.value=!0,M.value=[],q()):p.value===1?O(ee,p.value,g.value,oe):p.value=1))},{deep:!0});const m=ee=>{p.value=ee,i("page-index-change",ee)},f=ee=>{g.value=ee,i("page-size-change",ee)},E=t.ref(!0),B=t.ref(0),M=t.ref(),D=Ef();let L=!0;const N=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Be.Near,ee=>ue(ee)),O=async(ee,oe,re,se,ye)=>{L=!1;try{if(ye===!0){if(!E.value)return!1;const me=await D.load("table",ee,oe,re,se,L,r.value);return B.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,M.value,me.page),setTimeout(()=>{i("loaded-data")},250),(M.value?.length??0)>=B.value)||me.page.length<re?(E.value=!1,!1):!0}else{const me=await D.load("table",ee,oe,re,se,L,r.value);return B.value=me.totalSize,M.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),B.value=0,M.value=[]}return!1};let S=!1;const q=async()=>{if(!S){if(S=!0,!E.value){S=!1;return}p.value+=1,await O(l.data,p.value,g.value,I.value,!0),S=!1}},$=(ee={},oe=!1)=>new Promise(async re=>{b.value=t.toRaw(ee??{}),oe||(p.value=l.pageIndex??1),y===!0?(p.value=0,M.value=[],E.value=!0,await q()):await O(l.data,p.value,g.value,I.value),re()}),k=()=>{B.value=0,M.value=[],y===!0&&(p.value=0,E.value=!0)};let C=!1;const W=()=>{C||(C=!0,$())},z=t.ref(null);if(y===!0){let ee=null;const oe=()=>{z.value&&(ee=new IntersectionObserver(se=>{let ye=!1;for(let me of se)if(me.intersectionRatio>0){ye=!0;break}ye&&q()}),ee.observe(z.value))},re=()=>{!ee||!z.value||(ee.unobserve(z.value),ee=null)};t.onMounted(oe),t.onBeforeUnmount(re)}P()&&!N.value&&$();const J=t.ref(null);t.provide(Pf,{currentRow:J});const U=(ee,oe)=>{J.value=ee,i("current-change",ee,oe)},Z=(ee,oe,re)=>{i("row-click",ee,oe,re),ue(l.rowClickSelectable)===!0&&le?.value.toggleRowSelection(ee)},ne=[],_=(ee,oe)=>{if(i("expand-change",ee,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(se=>{se!==ee&&le?.value.toggleRowExpansion(se,!1)});const re=ne.length;ne.splice(0,re,ee)}},V=a.attrs.id??l.prop??a.attrs.name,H=If(),j=t.ref([]);let A=[];const X=()=>({srcColumnPropertyList:A.map(oe=>({...oe})),columnPropertyList:j.value}),K=ee=>{j.value=[...ee],v()},T=async()=>{const ee=await H.load(V);ee&&(j.value=ee)},v=()=>{H.save(V,j.value)},x=()=>{H.remove(V)};T();const R=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",G=t.computed(()=>{if(typeof a.slots.default=="function"){const ee=a.slots.default(),oe=new Map;if(A=[],ee.forEach(re=>{const se=re;if(!se.props)return;const ye=R(se.props);oe.set(ye,re);const me={label:"",prop:""};Object.assign(me,se.props),A.push(me)}),j.value.length===A.length){const re=[];for(let se of j.value){const ye=R(se),me=oe.get(ye);if(!me)return ee;if(se.visible===!1)continue;const Ze=me;Ze.props.fixed=se.fixed,re.push(Ze)}return re}return ee}return[]}),te=t.shallowRef(new Map),w=({column:ee,rowIndex:oe})=>{const re=`${oe}_${ee.property}`;return te.value.get(re)??""},Y=ee=>typeof ee=="function"?oe=>{const re=[];let se=w(oe);return se&&re.push(se),se=ee(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:w,Q=(ee,oe,re)=>{const se=`${ee}_${oe}`;re?te.value.set(se,re):te.value.delete(se),t.triggerRef(te)},le=t.ref();return pe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{le?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!M.value)return;const re=_n(M.value,ee);re.length!==0&&re.forEach(se=>{le?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{le?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!M.value)return;const re=_n(M.value,ee);re.length!==0&&re.forEach(se=>{le?.value.toggleRowExpansion(se,oe)})},setCurrentRow:ee=>{le?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!M.value)return;const oe=_n(M.value,ee);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:ee=>{le?.value.clearFilter(ee)},doLayout:()=>{le?.value.doLayout()},sort:(ee,oe)=>{le?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{le?.value.scrollTo(ee,oe)},setScrollTop:ee=>{le?.value.setScrollTop(ee)},setScrollLeft:ee=>{le?.value.setScrollLeft(ee)},loadData:$,clearData:k,getData(){return M.value},getTotalSize(){return B.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:X,setColumnSetting:K,removeColumnSetting:x,setCellClassName:Q}),()=>{const oe={...Ke(a.attrs),onCurrentChange:U,onRowClick:Z,onExpandChange:_,data:M.value,ref:le,class:s.value,"cell-class-name":Y(l.cellClassName)},re={};if(a.slots.default&&(re.default=()=>G.value),a.slots.append&&(re.append=()=>a.slots.append),a.slots.empty&&(re.empty=()=>a.slots.empty),y===!0){const _e=[];if(E.value){const St=t.h(Ce.Loading,{class:`${u}__infinite-icon`});_e.push(St);const Vn=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);_e.push(Vn)}else{const St=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);_e.push(St)}const nt={ref:z,class:`${u}__infinite`},En=t.h("div",nt,_e);re.append=()=>En}const se=t.h(F.ElTable,oe,re),ye=[];if(ye.push(se),!y){let _e=null;if(typeof a.slots.pagination=="function")_e=a.slots.pagination();else if(l.showPagination){const nt={class:c.value,total:B.value,pageSize:g.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":m,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};_e=t.h(F.ElPagination,nt)}if(l.showSetting){const nt=[];_e&&nt.push(_e);const En=t.h(F.ElIcon,{class:d.value},{default:()=>t.h(Ce.Setting)}),St=Bt(l,Ln),Vn=t.h(xn,{...St,tableRef:{getColumnSetting:X,setColumnSetting:K,removeColumnSetting:x}},{default:()=>En});nt.push(Vn);const Ir=t.h("div",{class:h.value},nt);ye.push(Ir)}else _e&&ye.push(_e)}const me={default:()=>ye},xt={...Te(l,Lo,_o,Ln),prop:`${l.prop}_item`};return xt.contentClass=`${u}__wrap`,xt.errorMarkClass="is-table-error",N.value&&P()&&(xt["appear-listen"]=!0,xt.onAppear=W),t.h(o,xt,me)}}}}const{componentName:Bf,create:Mf,scope:Rf}=ie("table-item"),Bl=Mf(Ff(Bf,Rf,we));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Lf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let _f=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function qf(){const e=t.getCurrentInstance();return new _f(e.proxy)}function vr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=bt(e,n),a=bt(e,o);if(l!==a)return!1;const r=Ft(e,n),i=Ft(e,o);return r===i}function zf(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=bt(e,r)===n;else if(o==="item")i=vr(e,r,n);else{let u=Ft(e,r);u==null&&(u=bt(e,r)),i=u===n}if(i){a=r;break}}return a}function jf(e){return{text:e,value:e}}function Hf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const qo={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 Kf(e,n,o){return{inheritAttrs:!0,props:{...be,...$e,...qo},emits:["change","update:modelValue","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref(null),d=t.ref(null),h=(D,L,N,O=!0)=>{const S=zf(l,D,L,N);if(S===null){if(d.value===null)return;d.value=null,s.value=null,O&&(u("update:modelValue",null),u("change",null));return}if(!vr(l,S,d.value)){s.value=D;const $=t.toRaw(S);d.value=$;let k=null;l.valueType==="text"?k=bt(l,$):l.valueType==="item"?k=$:k=Ft(l,$),O&&(u("update:modelValue",k),u("change",k))}},c=t.ref([]),b=Ne(t.computed(()=>l.appearLoad),"appearLoad",Be.Near,D=>ue(D)),I=qf(),p=async(D,L)=>{if(D){const N=await I.load("radio",D,L);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>jf($));c.value=q}else c.value=N}};t.watch([()=>l.source,()=>l.params],async([D,L])=>{p(D,L)},{immediate:!b.value});let g=!1;const y=()=>{g||(g=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([D,L])=>{h(L,l.valueType,D,!1),u("setValue",L)});const P=e,m=t.computed(()=>({[P]:!0,[`is-${l.direction}`]:!0})),f=D=>{h(D,"value",c.value,!0)};let E=fe(l,"hintText"),B=fe(l,"hintVisible");const M=(D,L)=>{const N=[];return D.forEach((O,S)=>{const q=Ft(l,O),$=bt(l,O);let k=Lf(l,O);r.value===!0&&(k=r.value),i.value===!0&&(k=i.value);const C=Hf(l,O,S)??{},W=`${q}_${S}`,z={...C,key:W,label:q,size:l.size,border:ue(l.border)};k&&(z.disabled=k),l.itemType==="button"?N.push(t.h(F.ElRadioButton,z,{default:()=>[$]})):typeof L=="function"?N.push(t.h(F.ElRadio,z,{default:()=>L(O)})):N.push(t.h(F.ElRadio,z,{default:()=>[$]}))}),N};return()=>{const L={...Ke(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:f},N=[],O={};a.slots.options?O.default=a.slots.options:O.default=()=>M(c.value,a.slots.text);const S=t.h(F.ElRadioGroup,L,O);N.push(S);const q={default:()=>N};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const k={...Te(l,qo),hintText:E.value,hintVisible:B.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(k["appear-listen"]=!0,k.onAppear=y),t.h(o,k,q)}}}}const{componentName:Yf,create:Wf,scope:Uf}=ie("radio-item"),Ml=Wf(Kf(Yf,Uf,we));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function yt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xf=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Zf(){const e=t.getCurrentInstance();return new Xf(e.proxy)}function br(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=wt(e,n),a=wt(e,o);if(l!==a)return!1;const r=yt(e,n),i=yt(e,o);return r===i}function Jf(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=wt(e,i)===r;else if(o==="item")u=br(e,i,r);else{let s=yt(e,i);s==null&&(s=wt(e,i)),u=s===r}if(u){a.push(i);break}}}),a}function Qf(e){return{text:e,value:e}}function ed(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const zo={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 td(e,n,o){return{inheritAttrs:!0,props:{...be,...$e,...zo},emits:["change","update:modelValue","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref([]),d=t.ref([]),h=(D,L,N,O=!0)=>{const S=Jf(l,D,L,N);if(S===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],O&&(u("update:modelValue",[]),u("change",[]));return}let q=!0;if(S.length!==d.value.length)q=!1;else for(let $=0;$<S.length;$++){const k=S[$],C=d.value[$];if(!br(l,k,C)){q=!1;break}}if(!q){d.value=S;let $=[],k=[];S.forEach(W=>{$.push(yt(l,W)),l.valueType==="text"?k.push(wt(l,W)):l.valueType==="item"?k.push(W):k.push(yt(l,W))}),s.value=$;const C=t.toRaw(k);O&&(u("update:modelValue",C),u("change",C))}},c=t.ref([]),b=Ne(t.computed(()=>l.appearLoad),"appearLoad",Be.Near,D=>ue(D)),I=Zf(),p=async(D,L)=>{if(D){const N=await I.load("checkbox",D,L);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>Qf($));c.value=q}else c.value=N}};t.watch([()=>l.source,()=>l.params],async([D,L])=>{p(D,L)},{immediate:!b.value});let g=!1;const y=()=>{g||(g=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([D,L])=>{h(L,l.valueType,D,!1),u("setValue",L)});const P=e,m=t.computed(()=>({[P]:!0,[`is-${l.direction}`]:!0})),f=D=>{h(D,"value",c.value,!0)};let E=fe(l,"hintText"),B=fe(l,"hintVisible");const M=(D,L)=>{const N=[];return D.forEach((O,S)=>{const q=yt(l,O),$=wt(l,O);let k=Gf(l,O);r.value===!0&&(k=r.value),i.value===!0&&(k=i.value);const C=ed(l,O,S)??{},W=`${q}_${S}`,z={...C,key:W,class:l.itemClass,label:q,size:l.size,border:ue(l.border)};k&&(z.disabled=k),l.itemType==="button"?N.push(t.h(F.ElCheckboxButton,z,{default:()=>[$]})):typeof L=="function"?N.push(t.h(F.ElCheckbox,z,{default:()=>L(O)})):N.push(t.h(F.ElCheckbox,z,{default:()=>[$]}))}),N};return()=>{const L={...Ke(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:de(l.max),min:de(l.min),onChange:f},N=[],O={};a.slots.options?O.default=a.slots.options:O.default=()=>M(c.value,a.slots.text);const S=t.h(F.ElCheckboxGroup,L,O);N.push(S);const q={default:()=>N};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const k={...Te(l,zo),hintText:E.value,hintVisible:B.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(k["appear-listen"]=!0,k.onAppear=y),t.h(o,k,q)}}}}const{componentName:nd,create:ld,scope:od}=ie("checkbox-item"),Rl=ld(td(nd,od,we)),jo={modelValue:{type:[Number,String],required:!1}};function ad(e,n,o){return{props:{...be,...$e,...jo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=fe(l,"modelValue",g=>de(g),u),d=e,h=t.computed(()=>({[d]:!0})),c=g=>{u("update:modelValue",g),u("change",g)};let b=fe(l,"hintText"),I=t.ref(!1);const p=t.ref();return pe({}),()=>{const y={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:c},P={},m=[],f=t.h(F.ElRate,y,P);m.push(f);const E={default:()=>m};a.slots.default&&(E.label=a.slots.default),a.slots.fixedTip&&(E.fixedTip=a.slots.fixedTip);const M={...Te(l,jo),hintText:b.value,hintVisible:I.value,prop:`${l.prop}_item`};return t.h(o,M,E)}}}}const{componentName:rd,create:id,scope:sd}=ie("rate-item"),Ll=id(ad(rd,sd,we)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function ud(e,n,o){return{props:{...be,...$e,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=fe(l,"modelValue",null,u),d=e,h=t.computed(()=>({[d]:!0})),c=g=>{u("update:modelValue",g),u("change",g)};let b=fe(l,"hintText"),I=fe(l,"hintVisible");const p=t.ref();return pe({}),()=>{const y={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:c},P={},m=[],f=t.h(F.ElSwitch,y,P);m.push(f);const E={default:()=>m};a.slots.default&&(E.label=a.slots.default),a.slots.fixedTip&&(E.fixedTip=a.slots.fixedTip);const M={...Te(l,Ho),hintText:b.value,hintVisible:I.value,prop:`${l.prop}_item`};return t.h(o,M,E)}}}}const{componentName:cd,create:fd,scope:dd}=ie("switch-item"),_l=fd(ud(cd,dd,we)),Ko={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hd(e,n,o){return{props:{...be,...$e,...Ko},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),d=fe(l,"modelValue",null,s),h=e,c=t.computed(()=>({[h]:!0})),b=B=>{s("update:modelValue",B),s("change",B)};let I=fe(l,"hintText"),p=t.ref(!1);const g=B=>{let D=B.target.value;u.value=!0,ge(I.value)||(p.value=!0),s("focus",D,B)},y=B=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let D=B.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),m.value||s("blur",D,B)},P=()=>{s("clear","")},m=t.ref(!1),f=B=>{m.value=B,s("visible-change",B),B||s("selected")},E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()}}),()=>{const M={...Ke(a.attrs),ref:E,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:P,onFocus:g,onBlur:y,onVisibleChange:f},D={};a.slots.option&&(D.default=a.slots.option);const L=[],N=t.h(F.ElTreeSelect,M,D);L.push(N);const O={default:()=>L};a.slots.default&&(O.label=a.slots.default),a.slots.fixedTip&&(O.fixedTip=a.slots.fixedTip);const q={...Te(l,Ko),hintText:I.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(o,q,O)}}}}const{componentName:md,create:gd,scope:pd}=ie("tree-select-item"),ql=gd(hd(md,pd,we));class yd{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function vd(){const e=t.getCurrentInstance();return new yd(e.proxy)}const bd={},wd={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"},xd=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),Sd=[xd];function Cd(e,n){return t.openBlock(),t.createElementBlock("svg",wd,Sd)}const Td=ke(bd,[["render",Cd]]),{componentName:Sp,create:$d,scope:Cp}=ie("group-setting"),kd={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:"到底部"}},Dd=$d({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:Td,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...kd},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=vd(),u=_=>_.length>1,s=()=>{const _=[],V=[...r.value];r.value=V.map((j,A)=>(j.visible!==!1&&_.push(j.prop),{...j,sortIndex:A})),r.value.length===_.length?g.value=!0:_.length>0&&(y.value=!0),f.value=_},d=_=>{let V=null;if(typeof _=="string")V=document.querySelectorAll(`.fox-group[prop="${_}"] > div > .fox-item[prop]`);else if(_&&typeof _=="object"){const j=_.$el??_;typeof j.querySelectorAll=="function"&&(V=j.querySelectorAll(".fox-item[prop]"))}if(!V)return[];const H=[];return V.forEach(j=>{const A=j.querySelector(".label--string");let X="";A&&(X=A.textContent??"");const K=j.getAttribute("prop")??"",v=window.getComputedStyle(j,null).getPropertyValue("display");H.push({label:X,prop:K,sortIndex:0,visible:v!=="none"})}),H},h=()=>{if(!a){const _=d(e.groupRef??e.groupProp);if(_.length===0)return!1;a=_}return!0},c=async(_=!1)=>{const V=await i.load(e.groupProp),H=j=>{if(!j||!a)return;const A=a.map(X=>({...X}));Array.isArray(V)&&V.forEach(X=>{A.some(K=>{if(K.prop===X.prop){const T=K.label;return Object.assign(K,X),K.label=T,!0}return!1})}),r.value=A.sort((X,K)=>X.sortIndex-K.sortIndex),s(),_&&I(!1)};a?H(!0):rn(h,e.initDelay,5,50,!1,H)},b=()=>{const _=a??[];r.value=_.map(V=>({...V})),s(),I()},I=(_=!0)=>{_&&i.save(e.groupProp,r.value);const V=r.value.map(H=>({...H}));n("change",V)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),y=t.ref(!1),P=_=>{const V=[];r.value.forEach(j=>{_&&V.push(j.prop),j.visible=_}),g.value=!1,y.value=!1,r.value.length===V.length?g.value=!0:V.length>0&&(y.value=!0),f.value=V,I()},m=()=>{b()},f=t.ref([]),E=_=>{r.value.forEach(H=>{const j=_.indexOf(H.prop)!==-1;H.visible=j}),g.value=!1,y.value=!1;const V=r.value.length;_.length===V?g.value=!0:_.length>0&&(y.value=!0),I()},B=()=>{c()};t.onMounted(()=>{c(!0)});const M={currentRow:null,index:null},D=_=>_?_.dataset&&_.dataset.role==="row"?_:_.tagName.toLowerCase()!=="body"?(_=_.parentElement,D(_)):null:null,L=_=>{const V=_.currentTarget;V&&V.dataset&&(M.index=V.dataset.index)},N=_=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},O=_=>{const V=_.currentTarget;_.relatedTarget;const H=D(V);H&&(_.preventDefault(),M.currentRow&&M.currentRow!==H&&M.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),M.currentRow=H)},S=_=>{_.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=_=>{const V=_.currentTarget,H=D(V);if(!H)return;_.preventDefault();const j=Number(M.index),A=Number(H.dataset.index);if(j!==A){if(j<A){const X=r.value[j];r.value.splice(j,1),r.value.splice(A,0,X)}else{const X=r.value[j];r.value.splice(j,1),r.value.splice(A+1,0,X)}s(),I()}},$=_=>{const V=r.value[_];r.value.splice(_,1),r.value.splice(0,0,V),s(),I()},k=_=>{const V=r.value[_];r.value.splice(_,1),r.value.push(V),s(),I()};l({refresh:()=>{a=null,c(!1)}});const C=new Map;let W=null;function z(_){const V=document.createRange();return V.setStart(_,0),V.setEnd(_,_.childNodes.length),V.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:u,isCheckAll:g,isIndeterminate:y,handleCheckAllChange:P,handleReset:m,checkedValue:f,handleCheckChange:E,onShow:B,onDragStart:L,onDragEnd:N,onDragOver:O,onDragLeave:S,onDrop:q,checkboxLabelStyle:p,toTop:$,toBottom:k,onMouseOverForOverflowText:(_,V,H)=>{const j=_.currentTarget;if(j){const A=Math.floor(j.offsetWidth);if(Math.floor(z(j))>A){let K=C.get(V);if(K){if(K===W)return;Fe.hide(K)}K=Fe.show(j,H,{type:"text",placement:"top",closeOnClick:!1}),C.set(V,K),W=K}}},onMouseLeaveForOverflowText:(_,V)=>{const H=C.get(V);H&&(Fe.hide(H),H===W&&(W=null))},onMouseOverForTip:(_,V)=>{const H=_.currentTarget;H&&(W&&Fe.hide(W),W=Fe.show(H,V,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:_=>{W&&(Fe.hide(W),W=null)}}}}),Nd={class:"fox-group-setting"},Ed={class:"fox-group-setting__header"},Vd={class:"fox-group-setting__body"},Id={class:"fox-group-setting__body-list","data-role":"container"},Pd=["data-index","draggable"],Od=["onMouseover","onMouseleave"],Ad={class:"tools-item"};function Fd(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=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-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Nd,[t.createElementVNode("div",Ed,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=I=>e.isCheckAll=I),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",Vd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=I=>e.checkedValue=I),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Id,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,I=>(t.openBlock(),t.createElementBlock("div",{key:I.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":I.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:I.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,I.prop,I.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,I.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(I.label),45,Od)]),_:2},1032,["label"]),t.createElementVNode("div",Ad,[t.createVNode(h,{onClick:p=>e.toTop(I.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toBottom(I.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,Pd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const zl=ke(Dd,[["render",Fd]]),Ht={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 Bd(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Kt(e,r)===o)return a}else if(l==="item"){if(Le(o,r))return a}else if(wr(e,r)===o)return a}return-1}function Kt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function wr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Md(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Rd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let Ld=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=o;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*a,c=h+a;c>d.length&&(c=d.length);const b=d.slice(h,c);return{totalSize:d.length,page:b}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r]))}};function _d(){const e=t.getCurrentInstance();return new Ld(e.proxy)}function qd(e,n,o,l,a,r,i,u,s,d,h){return{props:{...Ht},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:b}){const{emitEvent:I}=hl(),{toLocaleRefs:p}=ve.useFoxI18n(n),g=p(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),y=_d(),P=t.ref([]),m=t.ref(0),f=t.ref(""),E=t.shallowRef(null),B=t.computed(()=>{const v={};return c.params&&Object.assign(v,c.params),ge(f.value)||(v[`${c.searchKey}`]=f.value),E.value&&Object.assign(v,E.value),v});let M=!0;const D=async(v,x,R)=>{try{if(N.value===!1)return;let G=null;ge(f.value)||(G=w=>{const Y=Kt(c,w);if(typeof Y=="string"&&Y.includes(f.value))return!0;const Q=Yo(c,w);return!!(typeof Q=="string"&&Q.includes(f.value))});const te=await y.load("actionsheet",v,x,R,B.value,M,G??void 0);M=!1,Array.isArray(te)?(P.value=te,m.value=1,N.value=!1):!Array.isArray(te.page)||te.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,P.value,te.page),m.value=Math.ceil(P.value.length/c.pageSize),(te.totalSize&&P.value.length>=te.totalSize||R<te.page.length)&&(N.value=!1)),L.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),N.value=!0,m.value=0,P.value=[]}setTimeout(()=>{I("loaded-data")},250)},L=t.ref(!1),N=t.ref(!0),O=async()=>{if(!c.source){L.value=!1;return}await D(c.source,m.value+1,c.pageSize)};t.watch(()=>f.value,(v,x)=>{ge(v)&&!ge(x)&&O()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([v,x,R])=>{c.source&&O()},{immediate:!0});const S=t.computed(()=>!c.multiple&&c.isAutoBackFill),q=t.ref([]);let $=null;const k=t.ref(c.visible);t.watch(()=>c.visible,v=>{k.value!==v&&(k.value=v),v?$=[...q.value]:$=null});const C=(v,x)=>{const R=[];return Array.isArray(v)||(v=[v]),v.forEach(G=>{let te=Bd(c,x,G,c.valueType);te!==-1&&R.push(te)}),Le(R,q.value)?!1:(q.value=R,!0)};t.watch([()=>c.modelValue,()=>P.value],([v,x],[R,G])=>{if(C(v,x)){const w=W();z(w)}},{deep:!0});const W=()=>{const v=[],x=[],R=[];for(let Y of q.value){const Q=P.value[Y];x.push(Q);const le=Kt(c,Q);if(R.push(le),c.valueType==="item")v.push(Q);else if(c.valueType==="text")v.push(le);else{const ee=wr(c,Q);v.push(ee)}}let G=null,te=null,w=null;return c.multiple?(G=v,te=R,w=x):(G=v[0]??null,te=R[0]??null,w=x[0]??null),{value:G,text:te,item:w}},z=v=>{I("update:modelValue",v.value),I("update:text",v.text),I("change",v.value,v.item,v.text)},J=()=>{$&&(q.value=$)},U=v=>{const x=q.value.indexOf(v);c.multiple?x===-1?q.value.push(v):q.value.splice(x,1):x===-1?q.value=[v]:q.value=[],(S.value||!c.poppable&&!c.showFooter)&&_()},Z=v=>{k.value=v,I("update:visible",v)},ne=()=>{const v=()=>{J(),Z(!1)},x=c.beforeMethod??c.beforeClose;if(typeof x=="function"){const R=x("close");Ut(R)?R.then(G=>{G!==!1&&v()}).catch(()=>{v()}):R!==!1&&v()}else v()},_=()=>{const v=W(),x=()=>{z(v),Z(!1)},R=c.beforeMethod??c.beforeClose;if(typeof R=="function"){const G=R("confirm",v.value,v.item,v.text);Ut(G)?G.then(te=>{te!==!1&&x()}).catch(()=>{x()}):G!==!1&&x()}else x()},V=()=>{N.value=!0,m.value=0,P.value=[],c.source&&O()},H=()=>{let v=g.title.value??"";b.title&&(v=b.title());const x=t.h("view",{class:["fox-actionsheet__header-title"]},[v]),R=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:ne});return t.h("view",{class:["fox-actionsheet__header"]},[x,R])},j=()=>{let v=null;if(b.search)v=b.search();else{const x={onSearch:V,placeholder:g.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":R=>{f.value=R}};v=t.h(r,x,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[v])},A=(v,x,R,G,te)=>{if(b.optionLabel)return b.optionLabel({text:v,checked:x,disabled:R,subText:G,item:te});const w=[],Y=t.h("view",{class:"fox-actionsheet__list-item-text"},[v]);if(w.push(Y),G){const Q=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);w.push(Q)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},w)},X=(v,x,R,G)=>{if(b.optionIcon)return b.optionIcon({checked:v,disabled:x,iconSize:R,item:G});if(v){if(b.checkedIcon)return b.checkedIcon({disabled:x,item:G});{const te=c.checkedIcon??u;return t.h(te,{width:R,height:R,class:["fox-actionsheet__list-item-icon"]})}}else{if(b.icon)return b.icon({disabled:x,item:G});{const te=c.icon??i;return t.h(te,{width:R,height:R,class:["fox-actionsheet__list-item-icon"]})}}},K=()=>{const v=[];for(let x=0;x<P.value.length;x++){const R=P.value[x],G=Kt(c,R),te=Yo(c,R),w=["fox-actionsheet__list-item"],Y={};let Q=Md(c,R),le=c.iconSize?he(c.iconSize):null;const ee=Rd(c,R,x);ee&&(Q=Q||ee.disabled,ee.class&&w.push(ee.class),ee.style&&Object.assign(Y,ee.style)),Q=!!(c.disabled||Q);const oe=q.value.includes(x);Q&&w.push("is-disabled"),oe&&w.push("is-checked");const re={class:w,style:Y,key:`${x}`,onClick:()=>{Q||U(x)}};let se=[];if(b.option)se.push(b.option({item:R,checked:oe,disabled:Q}));else{const me=A(G,oe,Q,te,R);se.push(me);const Ze=X(oe,Q,le,R);se.push(Ze)}const ye=t.h("view",re,se);v.push(ye)}return v},T=()=>{let v=[];if(b.buttons)v=b.buttons();else{const R=t.h(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:_,disabled:c.disabled},{default:()=>g.confirmText.value});v.push(R)}return t.h("view",{class:"fox-actionsheet__footer"},[v])};return pe({search:async(v=null,x=!0)=>{E.value=v&&t.toRaw(v),t.triggerRef(E),x&&(N.value=!0,m.value=0,P.value=[]),t.nextTick(()=>{O()})},clear:()=>{N.value=!0,m.value=0,P.value=[]},confirm:()=>{_()},cancel:()=>{ne()}}),()=>{const v=[];if(c.showHeader){const le=H();v.push(le)}if(c.showSearchbar){const le=j();v.push(le)}let x=null;if(b.content)x=b.content();else{const le=K(),ee={hasMore:N.value,loadText:g.loadText.value,loadMoreText:g.loadMoreText.value,modelValue:L.value,"onUpdate:modelValue":oe=>{L.value=oe},onLoadMore:O};x=t.h(l,ee,{default:()=>le})}const R={};c.optionsHeight&&(R.height=c.optionsHeight);const G={"fox-actionsheet__list":!0};c.poppable||(G["fox-actionsheet__list--inner"]=!0);const te=t.h("view",{class:G,style:R},[x]);if(v.push(te),c.showFooter&&!S.value){const le=T();v.push(le)}const w=t.h("view",{class:"fox-actionsheet"},v);if(!c.poppable)return w;const Y=["fox-actionsheet__popup"];c.popClass&&Y.push(c.popClass);const Q={popClass:Y.join(" "),visible:k.value,closeable:!1,"onUpdate:visible":Z,position:c.position,round:"round",onClickOverlay:ne,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(o,Q,{default:()=>w})}}}}const zd=/scroll|auto|overlay/i,xr=window;function jd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Hd(e,n=xr){let o=e;for(;o&&o!==n&&jd(o);){const{overflowY:l}=window.getComputedStyle(o);if(zd.test(l))return o;o=o.parentNode}return n}function Sr(e,n=xr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Hd(e.value,n))}),o}const Cr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Kd={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 Yd(e,n,o){return{props:{...Kd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=Sr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),b=m=>m?m.offsetTop+b(m.offsetParent):0,I=()=>{let m=0,f=0,E="down";if(d.value==window){const B=Cr();s.value&&(m=b(s.value)+s.value.offsetHeight-B-window.innerHeight),f=B}else{const{scrollHeight:B,clientHeight:M,scrollTop:D}=d.value;m=B-M-D,f=D}return h.beforeScrollTop>f?E="up":E="down",h.beforeScrollTop=f,a("scroll-change",f),m<=l.threshold&&E=="down"},p=()=>{rl(()=>{if(!I()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},g=()=>{d.value&&d.value.addEventListener("scroll",p,l.useCapture)},y=()=>{d.value&&d.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{g(),l.immediate&&p()}),t.onUnmounted(()=>{y()});const P=t.ref(!1);return t.onActivated(()=>{P.value&&(P.value=!1,g())}),t.onDeactivated(()=>{P.value=!0,y()}),t.watch(()=>l.modelValue,m=>{m||(h.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},f=t.h("view",m,[r?.default?.()]),E=[];if(h.isInfiniting){let L=r?.loading?.()??null;if(!L){let S=r?.loadingIcon?.()??null;if(!S){const k={class:["fox-infinite__bottom-box__img"]};S=t.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},$=t.h("view",q,[u.loadText.value]);L=[S,$]}const N={class:"fox-infinite__bottom-box"},O=t.h("view",N,L);E.push(O)}else if(!l.hasMore){let L=r?.finished?.()??null;if(!L){const N={class:"fox-infinite__bottom-tips"};L=t.h("view",N,[u.loadMoreText.value]),E.push(L)}}const B={class:"fox-infinite__bottom"},M=t.h("view",B,E),D={class:c.value,ref:s};return t.h("view",D,[f,M])}}}}const{componentName:Wd,create:Ud,scope:Gd}=ie("infinite-loading"),Sn=Ud(Yd(Wd,Gd,bn)),Xd={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"}},Zd=(e,n,o)=>({props:{...Xd},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}=hl(),{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=N=>{let S=N.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),r("update:modelValue",S,N),r("change",S,N)},b=t.ref({}),I=N=>{let S=N.target.value;s.active=!0,b.value=l.focusStyle,r("focus",S,N)},p=N=>{setTimeout(()=>{s.active=!1},0);let S=N.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),b.value={},r("blur",S,N)},g=N=>{r("update:modelValue","",N),r("change","",N),r("clear","")},y=t.computed(()=>String(l.modelValue).length>0),P=t.computed(()=>{const N={};return y.value||(N.display="none"),N}),m=()=>{r("search",l.modelValue)},f=N=>{r("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&m()},E=N=>{r("click-input",N)},B=N=>{r("click-left-icon",l.modelValue,N)},M=t.computed(()=>({textAlign:l.inputAlign})),D=t.ref(null);t.onMounted(()=>{l.autofocus&&D.value.focus()});const L=()=>{const N=[];if(a.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},C=t.h("view",k,[a.leftin()]);N.push(C)}const O={ref:D,class:[`${e}__input-inner`],style:M.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:E,onInput:c,onFocus:I,onBlur:p,onkeyup:f},S=t.h("input",O);N.push(S);const q=[];if(l.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:g},C=a?.clear?.()??l.clearIcon??o,W=t.h("view",k,[t.h(C)]);q.push(W)}if(a.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},C=t.h("view",k,[a.rightin()]);q.push(C)}if(q.length>0){const k={class:`${e}__input-inner-right`},C=t.h("view",k,q);N.push(C)}const $={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...b.value}};return t.h("view",$,N)};return()=>{const N=[];if(l.label){const q={class:`${e}__search-label`},$=t.h("span",q,[l.label]);N.push($)}if(a.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=t.h("view",q,[a.leftout()]);N.push($)}const O=L();if(N.push(O),a.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=t.h("view",q,[a.rightout()]);N.push($)}const S={class:`${e}`,style:d.value};return t.h("view",S,N)}}}),{componentName:Jd,create:Qd,scope:eh}=ie("searchbar"),Cn=Qd(Zd(Jd,eh,Ce.CircleClose)),{componentName:th,create:nh,scope:lh}=ie("actionsheet-pane"),Tn=nh(qd(th,lh,ct,Sn,F.ElButton,Cn,Pu,Nu,mr,fu)),Wo={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 oh(e,n,o,l,a){return{props:{...be,...$e,...Wo,...Ht},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=Ve(t.computed(()=>r.disabled)),s=Ee(t.computed(()=>r.readonly)),{emitEvent:d}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return u.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),c=h(r,["placeholder"]),b=t.ref(!1),I=fe(r,"modelValue",null,d),p=t.ref(""),g=t.computed(()=>Array.isArray(p.value)?p.value.join(r.separator):p.value),y="fox-input-item",P=t.computed(()=>({[y]:!0,[`${y}__disabled`]:u.value})),m=Ne(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const C={};return m.value&&(C["text-align"]=m.value),C}),E=t.ref(!1),B=()=>{E.value=!0},M=C=>{E.value=C},D=C=>{I.value=C,d("update:modelValue",C)},L=(C,W)=>{d("change",C,W)},N=C=>{let z=C.target.value;b.value=!0,d("focus",z,C)},O=C=>{setTimeout(()=>{b.value=!1},0);let z=C.target.value;r.maxLength&&z.length>Number(r.maxLength)&&(z=z.slice(0,Number(r.maxLength))),d("blur",z,C)},S=C=>{p.value=C,d("update:text",C)},q=t.computed(()=>He(r.unit)>0),$=t.ref(),k=t.ref(null);return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()},search:C=>{k.value&&k.value.search(C)},clear:()=>{k.value&&k.value.clear},confirm:C=>{k.value&&k.value.confirm()},cancel:()=>{k.value&&k.value.cancel()}}),()=>{const C={ref:$,class:P.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:g.value,onClick:B,onFocus:N,onBlur:O},W={};i.slots.prepend&&(W.prepend=i.slots.prepend),i.slots.append&&(W.append=i.slots.append),i.slots.prefix&&(W.prefix=i.slots.prefix),i.slots.suffix?W.suffix=i.slots.suffix:q.value?W.suffix=()=>[r.unit]:W.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ce.ArrowDown)});const z=[],J=t.h(F.ElInput,C,W);z.push(J);const U={default:()=>z};U.label=i.slots.default,U.prepend=i.slots.prepend,U.append=i.slots.append,U.fixedPreTip=i.slots.fixedPreTip,U.fixedTip=i.slots.fixedTip;const Z=Bt(r,Ht);Z.ref=k,Z.class=r.actionsheetProps,Z.disabled=u.value||s.value,Z.visible=E.value,Z["onUpdate:visible"]=M,Z.modelValue=I.value,Z["onUpdate:modelValue"]=D,Z.text=p.value,Z["onUpdate:text"]=S,Z.onChange=L,Z.poppable=!0;const ne={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},_=t.h(l,Z,ne);U.hide=()=>[_];const V=Te(r,Wo,Ht);return t.h(o,{...V,prop:`${r.prop}_item`},U)}}}}const{componentName:ah,create:rh,scope:ih}=ie("actionsheet-item"),jl=rh(oh(ah,ih,we,Tn)),Tr={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}},Hl={...kl,...Tr,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 sh(e){return e===window}const Kl=e=>{const n=t.unref(e);if(sh(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}},Uo=10;function $r(e,n){return e>n&&e>Uo?"horizontal":n>e&&n>Uo?"vertical":""}function Yl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Wl(){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 d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.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=$r(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.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),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",b=()=>h.value==="horizontal",I=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:y=>{if(y.touches){const f=y.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const m=y;i.value=m.clientX-e.value,u.value=m.clientY-n.value,a.value=m.clientX,r.value=m.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=$r(s.value,d.value))},start:y=>{if(I(),y.touches){const f=y.touches[0];e.value=f.clientX,n.value=f.clientY}else{const m=y;e.value=m.clientX,n.value=m.clientY}o.value=Date.now()},reset:I,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:b}}let Dr=36;function uh(){return Dr}function ch(e){Dr=e}function qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ol(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fh(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Go(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let dh=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function hh(){const e=t.getCurrentInstance();return new dh(e.proxy)}function Xo(e,n,o){const l=qe(e,n),a=qe(e,o);if(l!==a)return!1;const r=st(e,n),i=st(e,o);return r===i}function mh(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 d=o[i].findIndex(h=>{if(r==="text")return qe(e,h)===u;if(r==="value"){let c=st(e,h);return c==null&&(c=qe(e,h)),c===u}else if(r==="item")return Xo(e,h,u)});if(d==-1)break;a.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return qe(e,c)===s;if(r==="value"){let b=st(e,c);return b==null&&(b=qe(e,c)),b===s}else if(r==="item")return Xo(e,c,s)});if(d==-1)break;a.push(d);const h=ol(e,i[d]);if(!Array.isArray(h))break;i=h}}return a}function Zo(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 d=u[s],h=qe(e,d);if(a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let c=st(e,d);c==null&&(c=h),a.values.push(c)}else a.values.push(d)}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 d=i[s],h=qe(e,d),c=Object.assign({},d);if(c.children=null,a.texts.push(h),a.items.push(c),r==="text")a.values.push(h);else if(r==="value"){let b=st(e,d);b==null&&(b=h),a.values.push(b)}else a.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return a}function Jo(e){return{text:e,value:e}}const gh=15,ph=300,yh=200,{create:vh}=ie("picker-column");function bh(e){e.stopPropagation()}function wh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&bh(e)}const xh=vh({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},...Tr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${de(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=D=>D>=c.currIndex+8||D<=c.currIndex-8,u=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=D=>`transform: rotate3d(1, 0, 0, ${-c.rotation*D}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),b=D=>qe(e,D),I=D=>st(e,D),p=kr(),g=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},y=(D,L=!1,N=!1)=>{if(c.currIndex=D,L){const O=()=>{c.moving=!1,n("update:modelValue",D),n("change",D)};N?c.transitionEndTrigger=O:O()}},P=(D,L,N)=>{let O=D+c.startDistance;if(L==="end"){const S=-(e.source.length-1)*e.itemHeight;O<S&&(O=S),O>0&&(O=0);let q=Math.abs(Math.round(-O/e.itemHeight));const $=-q*e.itemHeight,k=`${(q+1)*c.rotation}deg`,C=N?N>0:!1;y(q,!0,C),m($,L,N,k)}else{let S=(-O/e.itemHeight+1)*c.rotation;const q=(e.source.length+1)*c.rotation,$=0;if(S=Math.min(Math.max(S,$),q),e.threeDimensional&&(S<$||S>q))return;m(O,null,void 0,`${S}deg`)}},m=(D=0,L,N=yh,O)=>{L==="end"?c.scrollTime=N:c.scrollTime=0,c.deg=O,c.scrollDistance=D},f=(D,L)=>(D=Math.abs(D/L)/.003*(D<0?-1:1),D),E=D=>{e.readonly||(c.startDistance=c.scrollDistance,p.start(D),c.transitionEndTrigger=null)},B=D=>{e.readonly||(c.moving=!0,p.move(D),p.isVertical()&&(c.moving=!0,wh(D,!0)),P(p.deltaY.value,"",0))},M=()=>{if(e.readonly)return;const D=p.deltaY.value,L=p.duration.value;if(L<ph&&Math.abs(D)>gh){const O=f(D,L);P(O,"end",e.swipeDuration)}else P(D,"end",0)};return t.watch(()=>e.modelValue,D=>{const L=c.currIndex-D;if(L!==0){c.currIndex=D,c.startDistance=c.scrollDistance;const N=L*e.itemHeight;P(N,"",0)}}),t.watch(()=>e.source,D=>{if(c.currIndex>=D.length){const O=(D.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,P(O,"end",0)}}),t.watch(()=>e.visible,D=>{D===!1&&g()}),t.onMounted(()=>{const D=-e.modelValue*e.itemHeight;P(D)}),{classes:o,styles:l,contentClasses:a,itemText:b,itemValue:I,...t.toRefs(c),roller:h,getItemText:qe,onTouchStart:E,onTouchMove:B,onTouchEnd:M,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:g}}}),Sh={key:1,class:"fox-picker__item-tile"};function Ch(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",Sh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Th=ke(xh,[["render",Ch]]),{create:$h,componentName:kh,scope:Dh}=ie("picker"),Nh=$h({components:{PickerColumn:Th,Popup:ct},props:{...Hl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ve.useFoxI18n(Dh),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(uh());t.watch(()=>e.visible,S=>{S&&i.value<=0&&setTimeout(()=>{if(r.value){const q=Kl(r.value);i.value=q.height,ch(i.value)}},50)});const u=t.computed(()=>({[kh]:!0})),s=hh(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([S,q])=>{if(S){let $=await s.load("select",S,q);if($.length>0){let k=$[0];if(Array.isArray(k)){if(typeof k[0]=="string"){let C=$,W=[];C.forEach(z=>{let J=z.map(U=>Jo(U));W.push(J)}),h.value=W}else h.value=$;d.value="multipleColumn"}else if(typeof k=="string"){let C=$,W=[],z=C.map(J=>Jo(J));W.push(z),h.value=W,d.value="singleColumn"}else{const C=ol(e,k);Array.isArray(C)?(d.value="cascade",h.value=[$]):(d.value="singleColumn",h.value=[$])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),b=t.ref(e.modelValue),I=t.ref([]),p=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([S,q])=>{let $=mh(e,S,q,d.value);if(!Le($,p.value)){p.value=$;let k=Zo(e,$,q,d.value);k&&(c.value=k.texts,n("update:text",c.value))}});const g=t.ref(e.visible);t.watch(()=>e.visible,S=>{g.value=S});const y=S=>{let q=Go(e,S);return Me(q)?q.defaultIndex??0:0},P=S=>{if(e.readonly===!0)return!0;let q=Go(e,S);return Me(q)?q.readonly??!1:!1},m=(S,q)=>{let $=p.value;$[S]=q;for(let C=0;C<S;C++)$[C]==null&&($[C]=y(C));if(d.value==="cascade")for(let C=S+1;C<E.value.length;C++){let W=y(C);C<$.length?$[C]=W:$.push(W)}else for(let C=$.length;C<E.value.length;C++){let W=y(C);$.push(W)}p.value=$;let k=Zo(e,$,h.value,d.value);k&&(c.value=k.texts,b.value=k.values,I.value=k.items)},f=S=>S<p.value.length?p.value[S]:y(S),E=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let S=[],q=0,$=h.value[0],k=0;for(;;){let C=$.map(J=>{let U=Object.assign({},J);return fh(e,U,null),U});S.push(C),q>=p.value.length?k=0:k=p.value[q],(k<0||k>=$.length)&&(k=0);let W=$[k];const z=ol(e,W);if(!Array.isArray(z))break;$=z,q++}return S}),B=t.computed(()=>de(+e.visibleItemCount-1)/2*i.value),M=(S=!1)=>{if(e.readonly===!0){S&&n("update:visible",!1);return}let q=h.value.length-1;for(;q>=0&&!(p.value[q]===null||p.value[q]===void 0);q--);if(q>=0&&m(q,0),d.value==="singleColumn"){let $=b.value.length>0?b.value[0]:"",k=I.value.length>0?I.value[0]:null;n("update:modelValue",$),n("update:text",c.value),n("change",$,k),S&&(n("confirm",$),n("update:visible",!1))}else n("update:modelValue",b.value),n("update:text",c.value),n("change",b.value,I.value),S&&(n("confirm",b.value),n("update:visible",!1))};return{...a,pickerLineRef:r,classes:u,columns:E,dataType:d,show:g,itemHeight:i,top:B,isReadonly:P,getIndex:f,change:(S,q)=>{if(m(S,q),e.isAutoBackFill){const $=!g.value;M($)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{M(!0)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Eh={class:"fox-picker__bar"},Vh={class:"fox-picker__title"},Ih={class:"fox-picker__bar__action"},Ph={class:"fox-picker__column"};function Oh(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",Eh,[t.createElementVNode("view",Vh,t.toDisplayString(e.title),1),t.createElementVNode("view",Ih,[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",Ph,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,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 Rt=ke(Nh,[["render",Oh]]),Qo={...Hl,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 Ah(e,n,o){return{props:{...be,...$e,...Qo},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Se({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=e,b=t.computed(()=>({[c]:!0})),I=Ne(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>({textAlign:I.value??"right"})),g=fe(l,"modelValue",null,u),y=t.ref([]),P=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),m=t.ref(!1),f=()=>{m.value=!0},E=C=>{m.value=C},B=C=>{g.value=C,u("update:modelValue",C)},M=C=>{y.value=C,Array.isArray(C)&&C.length===0?u("update:text",C[0]):u("update:text",C)},D=(C,W)=>{u("change",C,W)};let L=fe(l,"hintText"),N=t.ref(!1);const O=C=>{let z=C.target.value;h.value=!0,ge(L.value)||(N.value=!0),u("focus",z,C)},S=C=>{setTimeout(()=>{N.value&&(N.value=!1),h.value=!1},0);let z=C.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),m.value?setTimeout(()=>{u("blur",z,C)},50):u("blur",z,C)},q=()=>{u("clear","")},$=t.computed(()=>He(l.unit)>0),k=t.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const C={class:b.value,style:p.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ue(l.clearable),readonly:!0,value:P.value,onClick:f,onFocus:O,onBlur:S},W={};a.slots.prepend&&(W.prepend=a.slots.prepend),a.slots.append&&(W.append=a.slots.append),a.slots.prefix&&(W.prefix=a.slots.prefix),a.slots.suffix?W.suffix=a.slots.suffix:$.value?W.suffix=()=>[l.unit]:W.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ce.ArrowDown)});const z=[],J=t.h(F.ElInput,C,W);z.push(J);const U={default:()=>z};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const Z=Bt(l,Hl);Z.disabled=!1,Z.readonly=r.value||i.value,Z.visible=m.value,Z["onUpdate:visible"]=E,Z.modelValue=g.value,Z["onUpdate:modelValue"]=B,Z.text=y.value,Z["onUpdate:text"]=M,Z.onClear=q,Z.onChange=D;const ne=t.h(Rt,Z);U.hide=()=>[ne];const V={...Te(l,Qo),hintText:L.value,hintVisible:N.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,V,U)}}}}const{componentName:Fh,create:Bh,scope:Mh}=ie("picker-item"),Ul=Bh(Ah(Fh,Mh,we)),Rh={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},ea=(e,n)=>n[e.textKey],kt=(e,n)=>n[e.valueKey],Lh=(e,n)=>n[e.visibleKey],ta=(e,n)=>n[e.disabledKey],_h=(e,n)=>{const o=n[e.doitKey];return ue(o)},qh=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},na=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function zh(e,n,o,l=!1){return{props:{...Rh},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const u=t.computed(()=>{const _={};return _[`${e}`]=!0,_}),s=t.computed(()=>{const _={};return _[`${e}__titles`]=!0,_[`${a.direction}`]=!0,a.align==="left"&&(_.left=!0),a.scroll===!0&&(_.scrollable=!0),a.shape&&(_[`${a.shape}`]=!0),_}),d=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const _=he(a.gutter);return _<=0?0:_}),c=t.ref(a.modelValue);t.watch(()=>a.modelValue,_=>{c.value!==_&&(c.value=_,z(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),I=t.computed(()=>{const _={};return g.value||(_.display="none"),_}),p=t.ref(),g=t.ref(!1),y=()=>{const _=!g.value;P(_)},P=_=>{const V=_;V?(g.value=V,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},m=t.ref(),f=t.ref([]),E=(_,V)=>{f.value[V]=_},B=_=>V=>{E(V,_)},M=(_,V)=>{const H=m.value,j=f.value;if(!H||!j||!j[_])return;const A=j[_];let X=0;a.direction==="vertical"?X=A.offsetTop-(H.offsetHeight-A.offsetHeight)/2:X=A.offsetLeft-(H.offsetWidth-A.offsetWidth)/2,D(H,X,V?0:.3,a.direction)},D=(_,V,H,j)=>{let A=0;const X=j==="horizontal"?_.scrollLeft:_.scrollTop,K=H===0?1:Math.round(H*1e3/16);function T(){j==="horizontal"?_.scrollLeft+=(V-X)/K:_.scrollTop+=(V-X)/K,++A<K&&ul(T)}T()},L=(_,V)=>{const H=kt(a,_),j={};return j[`${e}__titles-item`]=!0,j.disabled=ta(a,_),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0),a.ellipsis&&(j.ellipsis=!0),V&&(V.class&&(j[`${V.class}`]=!0),V.disabled===!0&&(j.disabled=V.disabled)),j},N=(_,V)=>{const H={};if(h.value>0){const j=Math.abs(h.value/2);a.direction==="vertical"?(H["margin-top"]=`${j}px`,H["margin-bottom"]=`${j}px`):(H["margin-left"]=`${j}px`,H["margin-right"]=`${j}px`)}return V&&V.style&&Object.assign(H,V.style),H},O=(_,V)=>`${kt(a,_)??V}`,S=(_,V)=>{const H=kt(a,_),j={};j[`${e}__popup-item`]=!0,j.disabled=ta(a,_),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0);const A=na(a,_,V);return A&&A.disabled===!0&&(j.disabled=A.disabled),j},q=t.computed(()=>(a.data??[]).filter(V=>Lh(a,V)!==!1)),$=(_,V)=>{const H=kt(a,_);if(c.value==H)return;const j=()=>{c.value=H,a.scroll&&M(V,!1),i("update:modelValue",H),i("change",_,V)};if(typeof a.beforeChange=="function"){const A=a.beforeChange(_,V);Ut(A)?A.then(X=>{X!==!1&&j()}).catch(()=>{j()}):A!==!1&&j()}else j()},k=(_,V)=>function(){$(_,V)},C=(_,V)=>{$(_,V),P(!1)},W=(_,V)=>function(){C(_,V)},z=_=>{if(!Array.isArray(a.data)||!a.scroll)return;const V=a.data.findIndex(H=>kt(a,H)===c.value);V!==-1&&M(V,_)};t.watch(()=>a.data,()=>{setTimeout(z,0)}),t.onMounted(()=>{z(!0)});const J=(_,V)=>{if(r.item)return r.item({item:_,index:V});const H=na(a,_,V),j=[];if(r.text){const T=r.text({item:_,index:V});j.push(T)}else{const T=[];if(H?.doit===!0||_h(a,_)){const G={class:[`${e}__titles-item-tip`,"doit"]},te=t.h("view",G);T.push(te)}const v=H?.num??qh(a,_);if(v){let G="";const te=de(v);te>=100?G="99+":G=`${te}`;const w={class:[`${e}__titles-item-tip`,"num"]},Y=t.h("view",w,[G]);T.push(Y)}const x={class:`${e}__titles-item-text`};T.push(ea(a,_));const R=t.h("view",x,T);j.push(R)}const A={class:`${e}__titles-item-line`},X=t.h("view",A);j.push(X);const K={ref:B(V),class:L(_,H),style:N(_,H),key:O(_,V),onClick:k(_,V)};return t.h("view",K,j)},U=()=>{const _=r.default?r.default():[];if(_.length===0)for(let H=0;H<q.value.length;H++){const j=q.value[H],A=J(j,H);_.push(A)}const V={ref:m,class:s.value,style:d.value};return t.h("view",V,_)},Z=()=>{let _=null;r.navigation?_=r.navigation():_=t.h(o);const V={class:`${e}__navigation`,onClick:y};return t.h("view",V,[_])},ne=()=>{const _=[];for(let H=0;H<q.value.length;H++){const j=q.value[H];let A=null;r.popupItem?A=r.popupItem({item:j,index:H}):A=ea(a,j);const X={class:S(j,H),key:O(j,H),onClick:W(j,H)},K=t.h("view",X,[A]);_.push(K)}const V={class:b.value,style:I.value};return t.h("view",V,_)};return()=>{const _=[],V=U();if(_.push(V),a.showQuickNavigation){const j=Z();_.push(j);const A=ne();_.push(A)}const H={class:u.value};return t.h("view",H,_)}}}}const{create:jh,componentName:Hh,scope:Kh}=ie("tabs-bar"),$n=jh(zh(Hh,Kh,gu,!1)),Nr=Symbol("TabsStatesKey"),Yh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Wh(e,n,o=!1){return{props:{...Yh},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:g=>{const y={name:g};u.current.value===g&&(y.loaded=!0),i.value.push(y),t.triggerRef(i)},remove:g=>{const y=i.value.findIndex(P=>P.name===g);y!==-1&&i.value.splice(y,1)},isLoaded:g=>{if(!l.lazy)return!0;const y=i.value.findIndex(P=>P.name===g);return y!==-1?u.current.value?i.value[y].loaded??!1:y===0:!1}};t.provide(Nr,u);const s=g=>{const y=i.value.findIndex(P=>P.name===g);y!==-1&&(i.value[y].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([g,y])=>{u.current.value!==g&&(u.current.value=g??"",s(g??"")),u.direction.value!==y&&(u.direction.value=y)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const I=t.computed(()=>{const g={},y=i.value.length;if(y<=0)return g;const P=i.value.findIndex(m=>m.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(g.height=`${y*u.tabHeight.value}px`,P!==-1&&(g.transform=`translate(0, -${P*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(g.width=`${y*u.tabWidth.value}px`,P!==-1&&(g.transform=`translate(-${P*u.tabWidth.value}px, 0)`)),b&&(b=!1,g.transition="transform 0s ease"),g});let p=null;return t.onMounted(()=>{if(!d.value)return;const g=()=>{const y=cn(d.value);u.tabWidth.value=y.width,u.tabHeight.value=y.height};window.ResizeObserver&&(p=new window.ResizeObserver(g),p.observe(d.value)),g()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const g={class:`${e}__panes`,style:I.value,ref:h},y=t.h("view",g,[r?.default?.()]),P={class:c.value,ref:d};return t.h("view",P,[y])}}}}const{create:Uh,componentName:Gh,scope:Xh}=ie("tabs-container"),kn=Uh(Wh(Gh,Xh,!1)),Zh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Jh(e,n,o){return{props:{...Zh},setup(l,{emit:a,slots:r}){const i=t.inject(Nr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),s=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const c={class:`${e}__empty-icon`},b=l.emptyIcon??o,I=t.h(b,c),p={class:`${e}__empty-text`},g=l.emptyText??"Loading",y=t.h("view",p,[g]),P={class:`${e}__empty`},m=t.h("view",P,[I,y]);d.push(m)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Qh,componentName:em,scope:tm}=ie("tabs-pane"),Dn=Qh(Jh(em,tm,bn)),nm={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function lm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function la(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function oa(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function om(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function qn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function aa(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 zn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class am{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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function rm(){const e=t.getCurrentInstance();return new am(e.proxy)}function im(e,n,o,l){return{props:{...nm},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const u=e,s=rm(),d=t.ref([]),h=t.computed(()=>d.value.filter(V=>om(a,V)!==!1)),c=t.ref(-1),b=()=>{const V=a.modelValue,H=h.value.findIndex(j=>la(a,j)===V);c.value!==H&&(c.value=H,a.scroll&&ne(H,!1))};t.watch([()=>a.modelValue,h],()=>{b()});const I=V=>c.value===V,p=V=>{if(V<0&&V>=h.value.length)return!1;const H=h.value[V],A=(zn(a,H,V)??{}).status??qn(a,H);return I(V)||A},g=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}),y=t.computed(()=>({})),P=(V,H,j,A,X)=>{const K={[`${u}__step`]:!0};return X&&(K[`${X}`]=!0),K[`${m.value}`]=!0,A&&(K["is-doit"]=!0),V===c.value?K["is-active"]=!0:H==="done"?K["is-done"]=!0:H==="error"?K["is-error"]=!0:H==="half"?K["is-half"]=!0:j?K["is-disabled"]=!0:K["is-normal"]=!0,K},m=t.computed(()=>{if(a.mode==="simple")return"start";let V=a.align;return V||(a.direction==="vertical"?V="start":V="center"),V}),f=(V,H={})=>{const j={...H};return m.value==="start"&&V===h.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},E=(V,H)=>{let j={};if(H<h.value.length-1){const A=H+1;p(H)&&p(A)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},B=V=>h.value.length-1===V,M=(V,H)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&H>c.value||c.value===H)return;const j=c.value,A=H;c.value=H,a.scroll&&ne(H,!1);const X=la(a,V);i("update:modelValue",X);const K={fromIndex:j,currentIndex:A,item:V,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",X,K)},D=t.ref(!0),L=async(V,H)=>{try{const j=await s.load("stesbar",V,H);Array.isArray(j)&&(d.value=j),D.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([V,H])=>{V&&L(V,H)},{immediate:!0});const N=(V,H,j,A,X)=>{let K=null;if(r.icon)K=r.icon({item:V,index:H,status:A});else if(A==="done"){const v={};a.iconSize&&(v.width=a.iconSize,v.height=a.iconSize);const x=a.icon??o;K=t.h(x,v)}else{const v=j??`${H+1}`;K=t.h("span",{},[v])}const T={class:"fox-steps-bar__icon",onClick:()=>{X||M(V,H)}};return t.h("view",T,[K])},O=(V,H,j)=>{const A=t.h("i",{class:"fox-steps-bar__line-inner",style:E(V,H)});return t.h("view",{class:"fox-steps-bar__line"},[A])},S=()=>{let V=null;if(r.markIcon)V=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const A=a.markIcon??l;V=t.h(A,j)}return t.h("view",{class:"fox-steps-bar__mark"},[V])},q=(V,H,j,A,X)=>{const K=[];if(!B(H)){const x=O(V,H);K.push(x)}const T=N(V,H,j,A,X);K.push(T);const v={class:"fox-steps-bar__head"};return t.h("view",v,K)},$=(V,H,j,A)=>{let X=null;r.main?X=r.main({item:V,index:H,status:j}):X=lm(a,V);const K={class:"fox-steps-bar__main",onClick:()=>{A||M(V,H)}};return t.h("view",K,[X])},k=(V,H,j)=>{let A=null;if(r.sub){A=r.sub({item:V,index:H,status:j});const X={class:"fox-steps-bar__sub"};return t.h("view",X,[A])}return null},C=(V,H)=>{const j=zn(a,V,H)??{},A=j.status??qn(a,V);let X=oa(a,V);j.disabled===!0&&(X=!0),a.disabled===!0&&(X=!0);const K=j.label??ra(a,V),T=[],v=N(V,H,K,A,X);v&&T.push(v);const x=$(V,H,A,X);if(x&&T.push(x),!B(H)){const Q=O(V,H);Q&&T.push(Q)}const R=t.h("view",{class:"fox-steps-bar__head"},T),G=j.class,te=j.style??{};let w=aa(a,V);j.doit===!0&&(w=!0);const Y={ref:Z(H),class:P(H,A,X,w,G),style:f(H,te)};return t.h("view",Y,[R])},W=(V,H)=>{const j=zn(a,V,H)??{},A=j.status??qn(a,V);let X=oa(a,V);j.disabled===!0&&(X=!0),a.disabled===!0&&(X=!0);const K=j.label??ra(a,V),T=[],v=a.layout;for(let w of v)if(w==="head"){const Y=q(V,H,K,A,X);T.push(Y)}else if(w==="main"){const Y=$(V,H,A,X);T.push(Y)}else if(w==="sub"){const Y=k(V,H,A);T.push(Y)}else if(w==="mark"){const Y=S();T.push(Y)}const x=j.class,R=j.style??{};let G=aa(a,V);j.doit===!0&&(G=!0);const te={ref:Z(H),class:P(H,A,X,G,x),style:f(H,R)};return t.h("view",te,T)},z=t.ref(),J=t.ref([]),U=(V,H)=>{J.value[H]=V},Z=V=>H=>{U(H,V)},ne=(V,H)=>{const j=z.value,A=J.value;if(!j||!A||!A[V])return;const X=A[V];let K=0;a.direction==="vertical"?K=X.offsetTop-(j.offsetHeight-X.offsetHeight)/2:K=X.offsetLeft-(j.offsetWidth-X.offsetWidth)/2,_(j,K,H?0:.3,a.direction)},_=(V,H,j,A)=>{let X=0;const K=A==="horizontal"?V.scrollLeft:V.scrollTop,T=j===0?1:Math.round(j*1e3/16);function v(){A==="horizontal"?V.scrollLeft+=(H-K)/T:V.scrollTop+=(H-K)/T,++X<T&&ul(v)}v()};return()=>{const V=[];if(a.mode==="simple")for(let j=0;j<h.value.length;j++){const A=h.value[j],X=C(A,j);V.push(X)}else for(let j=0;j<h.value.length;j++){const A=h.value[j],X=W(A,j);V.push(X)}const H={ref:z,class:g.value,style:y.value};return t.h("view",H,V)}}}}const{componentName:sm,create:um,scope:cm}=ie("steps-bar"),Gl=um(im(sm,cm,gr,Bu)),ia=new Date().getFullYear(),fm={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"},sa=(e,n,o)=>{let l;if(et(n)?l=n:typeof n=="string"&&He(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)},dm=(e,n,o)=>{et(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)};let hm={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(ia-10,0,1),validator:et},maxDate:{type:Date,default:()=>new Date(ia+10,11,31),validator:et},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:mm,scope:gm}=ie("date-picker"),pm=mm({components:{Picker:Rt},props:{...hm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=ve.useFoxI18n(gm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},a=t.ref(!1);t.watch(()=>e.visible,m=>{a.value=m});function r(m,f){return new Date(m,f,0).getDate()}const i=(m,f)=>{const E=e[`${m}Date`],B=E.getFullYear();let M=1,D=1,L=0,N=0;m==="max"&&(M=12,D=r(f.getFullYear(),f.getMonth()+1),L=23,N=59);const O=N;return f.getFullYear()===B&&(M=E.getMonth()+1,f.getMonth()+1===M&&(D=E.getDate(),f.getDate()===D&&(L=E.getHours(),f.getHours()===L&&(N=E.getMinutes())))),{[`${m}Year`]:B,[`${m}Month`]:M,[`${m}Date`]:D,[`${m}Hour`]:L,[`${m}Minute`]:N,[`${m}Seconds`]:O}},u=t.computed(()=>{if(!b.value)return[];const{maxYear:m,maxDate:f,maxMonth:E,maxHour:B,maxMinute:M,maxSeconds:D}=i("max",b.value),{minYear:L,minDate:N,minMonth:O,minHour:S,minMinute:q,minSeconds:$}=i("min",b.value);let k=[{type:"year",range:[L,m]},{type:"month",range:[O,E]},{type:"day",range:[N,f]},{type:"hour",range:[S,B]},{type:"minute",range:[q,M]},{type:"seconds",range:[$,D]}];switch(e.type){case"date":k=k.slice(0,3);break;case"datetime":k=k.slice(0,5);break;case"time":k=k.slice(3,6);break;case"year-month":k=k.slice(0,2);break;case"month-day":k=k.slice(1,3);break;case"datehour":k=k.slice(0,4);break;case"hour-minute":k=k.slice(3,5);break}return k}),s=(m,f,E)=>{if(!(f>m))return null;const B=[];for(;m<=f;)e.isShowChinese?B.push({text:m+l[E],value:m}):B.push({text:`${m}`,value:m}),E==="minute"?m+=e.minuteStep:m++;return B},d=t.computed(()=>{let m=[];return u.value.forEach(f=>{let E=s(f.range[0],f.range[1],f.type);E&&m.push(E)}),m}),h=(m,f)=>m==="year"?f.getFullYear():m==="month"?f.getMonth()+1:m==="day"?f.getDate():m==="hour"?f.getHours():m==="minute"?f.getMinutes():m==="seconds"?f.getSeconds():0,c=t.ref(),b=t.ref(null);t.watch(()=>e.modelValue,m=>{let f;if(typeof m=="string"?m.length==0?f=new Date:e.valueFormat?f=sa(e,e.modelValue,e.valueFormat):f=sa(e,m,fm[e.type]):et(m)?f=m:f=new Date,!!f&&(!b.value||f.getTime()!==b.value.getTime())){b.value=f;let E=[];u.value.forEach(B=>{let M=h(B.type,f);E.push(M)}),c.value=E}},{immediate:!0});const I=m=>{if(e.type==="date"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1));B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B)}else if(e.type==="datetime"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1)),M=m[3],D=m[4];B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B,M,D)}else if(e.type==="time"){const f=m[0],E=m[1],B=m[2],M=b.value??new Date,D=new Date(M.getFullYear(),M.getMonth(),M.getDate(),f,E,B);b.value=D}else if(e.type==="year-month"){const f=m[0],E=m[1]-1;b.value=new Date(f,E)}else if(e.type==="month-day"){const E=(b.value??new Date).getFullYear(),B=m[0]-1,M=Math.min(m[1],r(E,B+1));M!==m[1]&&(m[1]=M);const D=new Date(E,B,M);b.value=D}else if(e.type==="datehour"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1)),M=m[3];B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B,M)}else if(e.type==="hour-minute"){const f=m[0],E=m[1],B=b.value??new Date,M=new Date(B.getFullYear(),B.getMonth(),B.getDate(),f,E);b.value=M}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{I(m)},onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{I(m),a.value=!1;let f=b.value??new Date;if(e.valueFormat){let E=dm(e,f,e.valueFormat);n("update:modelValue",E)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function ym(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,"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","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Xl=ke(pm,[["render",ym]]),Yt=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=Yt(c.children,c,o)),c}),Er=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Er(l.children,n)},vm={topId:null,idKey:"id",pidKey:"pid",sortKey:""},bm=(e,n)=>{const o={...vm,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let u=[],s={};return e.forEach(d=>{d={...d};const{[a]:h,[r]:c}=d,b=s[c]=s[c]||[];!u.length&&c===l&&(u=b),b.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,c)=>h[i]-c[i])}),s=null,u};class ua{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=Yt(n,null,this.config)}updateChildren(n,o){o?o.children=Yt(n,o,this.config):this.nodes=Yt(n,null,this.config)}getNodeByValue(n){let o;return Er(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:wm,scope:xm}=ie("cascader-pane"),Sm=wm({components:{Loading:bn,Checklist:gr,TabsBar:$n,TabsContainer:kn,TabsPane:Dn},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}=ve.useFoxI18n(xm),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 ua([],{})),s=t.ref([]),d=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((m,f)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:f}))),c=new Map;let b;const I=async()=>{c.clear(),s.value=[],a.value=0,r.value=!1,b=null;let{options:m}=e;l.value.convertConfig&&(m=bm(m,l.value.convertConfig)),u.value=new ua(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],p()},p=async()=>{const m=i.value;if(m===void 0||!u.value.nodes.length)return;if(m.length===0){a.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let f=m;if(d.value&&Array.isArray(m)&&m.length){f=[];let E=u.value.nodes.find(B=>B.value===m[0]);if(E){f=[E.value],r.value=!0;const B=await m.slice(1).reduce(async(M,D)=>{const L=await M;await g(L);const N=L?.children?.find(O=>O.value===D);return N&&f.push(D),Promise.resolve(N)},Promise.resolve(E));await g(B),r.value=!1}}f.length&&m===e.modelValue&&u.value.getPathNodesByValue(f).map((B,M)=>{a.value=M,P.handleNode(B,!0)})},g=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(u.value.isLeaf(m,d.value)||u.value.hasChildren(m,d.value))return;m.loading=!0;const f=m.root?null:m;let E=c.get(m);E||(E=new Promise(M=>{l.value.lazyLoad?.(m,M)}),c.set(m,E));const B=await E;Array.isArray(B)&&B.length>0?u.value.updateChildren(B,f):m.leaf=!0,m.loading=!1,c.delete(m)},y=m=>{const f=m.map(E=>E.value);i.value=f,n("change",f,m),n("update:modelValue",f,m)},P={async handleNode(m,f){const{disabled:E,loading:B}=m;if(!(!f&&E||!s.value[a.value])){if(u.value.isLeaf(m,d.value)){if(m.leaf=!0,s.value[a.value].selectedNode=m,s.value=s.value.slice(0,m.level+1),!f){const M=s.value.map(D=>D.selectedNode);y(M),n("pathChange",M)}return}if(u.value.hasChildren(m,d.value)){const M=m.level+1;if(s.value[a.value].selectedNode=m,s.value=s.value.slice(0,M),s.value.push({nodes:m.children||[],selectedNode:null}),a.value=M,!f){const D=s.value.map(L=>L.selectedNode);n("pathChange",D)}return}b=m,!B&&(await g(m),b===m&&(s.value[a.value].selectedNode=m,P.handleNode(m,f)))}},handleTabChange(m,f){b=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,f){return m.selectedNode&&m.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{I()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==i.value&&(i.value=m,p())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&p()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:a,...P}}}),Cm={class:"fox-cascader"},Tm={role:"menu",class:"fox-cascader__pane"},$m=["aria-checked","aria-disabled","onClick"],km={class:"fox-cascader__item__title"},Dm=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Nm(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Cm,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),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]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,b)=>(t.openBlock(),t.createBlock(d,{"pane-key":b,key:b},{default:t.withCtx(()=>[t.createElementVNode("view",Tm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,I=>(t.openBlock(),t.createElementBlock("view",{key:I.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,I),disabled:I.disabled}]),"aria-checked":e.isSelected(c,I),"aria-disabled":I.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(I,!1)},[t.createElementVNode("view",km,t.toDisplayString(I.text),1),I.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,$m))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[Dm]),_:1}))]),_:1},8,["modelValue"])])}const Em=ke(Sm,[["render",Nm]]),{create:Vm}=ie("cascader-picker"),Im=Vm({components:{FoxCascaderPane:Em,FoxPopup:ct},props:{...kl,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}}}),Pm=["innerHTML"];function Om(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(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Pm)):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"])]),_:1},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 Zl=ke(Im,[["render",Om]]),Am=Symbol.for("InnerPageScopeKey"),Fm=Symbol.for("PageWrapperKey");function Bm(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(Am,!0);const a={};t.provide(Fm,a);const r=s=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...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={};if(typeof l.slots.default=="function"){const c=l.slots.default();h.default=()=>c}return t.h(F.ElDialog,d,h)}}}}const{componentName:kp,create:Mm,scope:Dp}=ie("dialog-item"),Jl=Mm(Bm()),{create:Rm}=ie("toast"),Lm=Rm({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,I=>{I&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const I=he(e.iconSize);return t.h(e.icon,{width:I,height:I,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]),c=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),_m={key:1,class:"fox-toast-title"},qm=["innerHTML"];function zm(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",_m,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,qm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ql=ke(Lm,[["render",zm]]),jm={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}},Hm=(e,n,o)=>({props:{...jm},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Wl(),d=t.ref(),h=Sr(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),I=t.computed(()=>{switch(c.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""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),g=t.computed(()=>{const D={};return l.headHeight!=50&&(D.height=Pe(l.headHeight)),D}),y=D=>{const L=+(l.pullDistance||l.headHeight);let N=D;return D>L&&(D<L*2?N=(D+L)/2:N=L+D/4),Math.round(N)},P=(D,L)=>{const N=+(l.pullDistance||l.headHeight);c.distance=D,L?c.status="loading":D===0?c.status="normal":D<N?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:D})},m=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?Cr()==0:h.value&&h.value.scrollTop==0,E=D=>{m()&&(f()?(s.start(D),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=D=>{m()&&c.moving&&(s.move(D),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(D.cancelable&&D.preventDefault(),P(y(s.state.deltaY))))},M=()=>{c.moving=!1,c.isPullRefresh&&m()&&s.state.deltaY&&(c.status==="loosing"?(P(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):P(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,D=>{D?P(+l.headHeight,!0):P(0)}),()=>{const D=[];let L=null;if(c.status==="loading"){if(L=r?.loading?.()??null,!L){const W={class:["fox-pull-refresh-container-topbox-icon"]};L=t.h(o,W)}}else c.status==="pulling"?L=r?.pulling?.()??null:c.status==="loosing"&&(L=r?.loosing?.()??null);L&&D.push(L);const N={class:["fox-pull-refresh-container-topbox-text"]},O=t.h("dive",N,[I.value]);D.push(O);const S={class:["fox-pull-refresh-container-topbox"],style:g.value},q=t.h("div",S,D),$={class:"fox-pull-refresh-container",style:p.value},k=t.h("div",$,[q,r?.default?.()]),C={ref:d,class:b.value};return Yl()?Object.assign(C,{onTouchstart:E,onTouchmove:B,onTouchend:M}):Object.assign(C,{onMousedown:E,onMousemove:B,onMouseup:M}),t.h("div",C,[k])}}}),{componentName:Km,create:Ym,scope:Wm}=ie("pull-refresh"),eo=Ym(Hm(Km,Wm,bn));function Um(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}),d=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const g={class:i.value,style:u.value};h=t.h(o.icon??"div",g)}const c={class:s.value,style:d.value},b=l.default?l.default():[],I=t.h("div",c,b),p={class:r.value};return o.textPosition==="right"?t.h("div",p,[h,I]):t.h("div",p,[I,h])}}}}const{componentName:Gm,create:Xm,scope:Np}=ie("indicator"),to=Xm(Um(Gm));function Zm(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 Jm={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 Qm(e,n,o,l=!1){return{props:{...Jm},emits:["click"],setup(a,r){const i=t.ref(null),u=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(f[`${e}--${a.type??"default"}`]=!0),a.size&&(f[`${e}--${a.size}`]=!0),f}),s=t.computed(()=>{const f={},E=a.textColor??a.color;return E&&(f.color=E),f}),d=(f,E)=>{let B=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const M=a.highlightFilter;if(f.indexOf(M)!==-1){const L=f.replace(new RegExp(M,"g"),`<span>${M}</span>`);E.innerHTML=L,E.class["is-highlight"]=!0,B=t.h(a.tag,E)}}else if(typeof a.highlightFilter=="function"){const M=a.highlightFilter(f);M&&(E.innerHTML=M,E.class["is-highlight"]=!0,B=t.h(a.tag,E))}return B},h=f=>{r.emit("click",f)};let c="";const b=()=>{const f=i.value;if(!f)return;const E=f.clientWidth;Zm(f,B=>{const M=f.innerHTML??"";ge(M)||B<E||(c?o?.show(f,M,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(f,M,{type:"text",showArrow:a.showArrow},!0)??"")})},I=()=>{c&&o?.hide(c)};let p=null;const g=f=>{p||(p=setTimeout(()=>{b(),p=null},a.showAfter??0))},y=f=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{I()},a.hideAfter??0)},P=()=>{const f=i.value;f&&(f.addEventListener("mouseover",g),f.addEventListener("mouseleave",y))},m=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",g),f.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!ue(a.showOverflowTooltip)||!o||P()}),t.onBeforeUnmount(()=>{!ue(a.showOverflowTooltip)||!o||m()}),()=>{const f={onClick:h,class:u.value,style:s.value,ref:i};let E=null;if(ue(a.numberFormat)&&typeof r.slots.default=="function"){const L=r.slots.default();if(Array.isArray(L)&&L.length===1){const N=L[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const O=de(a.digits),S=de(a.decimalLength),q=ue(a.autoPadding);let $=`${L[0].children}`,k=$.split("").reverse().join("");k=tn(k,S,q,O,a.separator),$=k.split("").reverse().join(""),a.highlightFilter!==void 0&&(E=d($,f)),E||(f.innerHTML=$,E=t.h(a.tag,f))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const L=r.slots.default();if(Array.isArray(L)&&L.length===1){const N=L[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const O=`${L[0].children}`;E=d(O,f),E||(f.innerHTML=O,E=t.h(a.tag,f))}}}E||(E=t.h(a.tag,f,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return E;let M=null;if(a.icon){const L={[`${e}__mark-wrap`]:!0};a.type&&(L[`${e}__mark-wrap--${a.type}`]=!0);const N={},O=a.color;O&&(N.color=O);const S={class:L,style:N};M=t.h("view",S,t.h(a.icon))}else if(r.slots.mark){const L={[`${e}__mark-wrap`]:!0};a.type&&(L[`${e}__mark-wrap--${a.type}`]=!0);const N={},O=a.color;O&&(N.color=O);const S={class:L,style:N};M=t.h("view",S,{default:r.slots.mark})}else{const L={[`${e}__mark`]:!0};a.type&&(L[`${e}__mark--${a.type??"default"}`]=!0);const N={},O=a.color;O&&(N["background-color"]=O);const S={class:L,style:N};M=t.h("view",S)}const D={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",D,[M,E])}}}}const{componentName:eg,create:tg,scope:ng}=ie("text"),no=tg(Qm(eg,ng,Fe,!1)),lg={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:Ce.ArrowUp}};function og(e,n,o){return{props:{...lg},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),i=fe(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const c=[];if(u.value){const g={class:s.value},y=t.h("span",g,[u.value]);c.push(y)}const b={class:d.value},I=o(l.icon,b);return I&&c.push(I),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:ag,create:rg,scope:ig}=ie("more-button"),sg=(e,n)=>(e=e??Ce.ArrowUp,t.h(F.ElIcon,n,{default:()=>[t.h(e)]})),lo=rg(og(ag,ig,sg)),{componentName:ug,create:cg,scope:Ep}=ie("tour"),fg=cg({components:{Close:Ce.Close,ElPopover:F.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=ug,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:g,maskHeight:y}=e,{width:P,height:m,left:f,top:E}=a.value,B=e.steps[l.active].offset??p,M=[f+P/2,E+m/2],D=Number(g||P),L=Number(y||m);return{width:`${D+ +B.left+B.right}px`,height:`${L+B.top+B.bottom}px`,top:`${M[1]-L/2-+B.top}px`,left:`${M[0]-D/2-+B.left}px`}}),u=p=>{p=="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=p=>p.popoverWidth??e.width,d=p=>p.location??e.location,h=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),g=Kl(p);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},I=(p,g=0)=>{p&&h(),e.steps,l.active=g,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{I(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{I(p)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:c,handleClickMask:b}}}),dg={key:0,class:"fox-tour__content"},hg={key:0,class:"fox-tour__content-top"},mg={class:"fox-tour__content-inner"},gg={class:"fox-tour__content-bottom"},pg={class:"fox-tour__content-bottom-init"},yg={class:"fox-tour__content-bottom-operate"},vg={key:1,class:"fox-tour__content fox-tour__content-tile"},bg={class:"fox-tour__content-inner"};function wg(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]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,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(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",dg,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",hg,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",mg,t.toDisplayString(d.content),1),t.createElementVNode("div",gg,[t.createElementVNode("div",pg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",yg,[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]=c=>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]=c=>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",vg,[t.createElementVNode("div",bg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const oo=ke(fg,[["render",wg]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class xg{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=Yl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Wl(),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 ca(e,n){return new xg(e,n)}var fa;const al=typeof window<"u";al&&((fa=window?.navigator)!=null&&fa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const da=e=>{const n=e;n.key==="Escape"&&mt.forEach(o=>o(n))},Sg=e=>{t.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",da),al&&mt.push(e)}),t.onBeforeUnmount(()=>{mt=mt.filter(n=>n!==e),mt.length===0&&al&&document.removeEventListener("keydown",da)})},jn="fox-focus-trap.focus-after-trapped",Hn="fox-focus-trap.focus-after-released",Cg="fox-focus-trap.focusout-prevented",ha={cancelable:!0,bubbles:!1},Tg={cancelable:!0,bubbles:!1},ma="foxFocusAfterTrapped",ga="foxFocusAfterReleased",$g=Symbol("foxFocusTrap"),ao=t.ref(),Nn=t.ref(0),ro=t.ref(0);let qt=0;const Vr=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},kg=(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},pa=(e,n)=>{for(const o of e)if(!kg(o,n))return o},Dg=e=>{const n=Vr(e),o=pa(n,e),l=pa(n.reverse(),e);return[o,l]},Ng=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ro.value=window.performance.now(),e!==o&&Ng(e)&&n&&e.select()}};function ya(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Eg=()=>{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?.()}}},Vg=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(Je(l,n),document.activeElement!==o)return},va=Eg(),Ig=()=>Nn.value>ro.value,zt=()=>{ao.value="pointer",Nn.value=window.performance.now()},ba=()=>{ao.value="keyboard",Nn.value=window.performance.now()},Pg=()=>(t.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",ba)),qt++}),t.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",ba))}),{focusReason:ao,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:ro}),jt=e=>new CustomEvent(Cg,{...Tg,detail:e}),{componentName:Vp,create:Og,scope:Ip}=ie("focus-trap"),Ag={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"}},Fg=Og({props:Ag,emits:[ma,ga,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=Pg();Sg(g=>{ue(e.trapped)&&!u.paused&&o("release-requested",g)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:y,altKey:P,ctrlKey:m,metaKey:f,currentTarget:E,shiftKey:B}=g,{loop:M}=e,D=y==="Tab"&&!P&&!m&&!f,L=document.activeElement;if(D&&L){const N=E,[O,S]=Dg(N);if(O&&S){if(!B&&L===S){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),M&&Je(O,!0))}else if(B&&[O,N].includes(L)){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),M&&Je(S,!0))}}else if(L===N){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||g.preventDefault()}}};t.provide($g,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,g=>{g&&(l.value=g)},{immediate:!0}),t.watch([l],([g],[y])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",b)),y&&(y.removeEventListener("keydown",s),y.removeEventListener("focusin",c),y.removeEventListener("focusout",b))});const d=g=>{o(ma,g)},h=g=>o(ga,g),c=g=>{const y=t.unref(l);if(!y)return;const P=g.target,m=g.relatedTarget,f=P&&y.contains(P);ue(e.trapped)||m&&y.contains(m)||(a=m),f&&o("focusin",g),!u.paused&&ue(e.trapped)&&(f?r=P:Je(r,!0))},b=g=>{const y=t.unref(l);if(!(u.paused||!y))if(!e.escape&&ue(e.trapped)){const P=g.relatedTarget;!cl(P)&&!y.contains(P)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const m=jt({focusReason:i.value});o("focusout-prevented",m),m.defaultPrevented||Je(r,!0)}},0)}else{const P=g.target;P&&y.contains(P)||o("focusout",g)}};async function I(){await t.nextTick();const g=t.unref(l);if(g){va.push(u);const y=g.contains(document.activeElement)?a:document.activeElement;if(a=y,!g.contains(y)){const m=new Event(jn,ha);g.addEventListener(jn,d),g.dispatchEvent(m),m.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Ta(f)||(Je(f),document.activeElement!==f&&(f="first")),f==="first"&&Vg(Vr(g),!0),(document.activeElement===y||f==="container")&&Je(g)})}}}function p(){const g=t.unref(l);if(g){g.removeEventListener(jn,d);const y=new CustomEvent(Hn,{...ha,detail:{focusReason:i.value}});g.addEventListener(Hn,h),g.dispatchEvent(y),!y.defaultPrevented&&(i.value=="keyboard"||!Ig())&&Je(a??document.body,!0),g.removeEventListener(Hn,d),va.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&I(),t.watch(()=>e.trapped,g=>{ue(g)?I():p()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Bg,create:Mg,scope:Pp}=ie("floating-window"),Rg=Symbol.for("InnerPageScopeKey"),Lg=Symbol.for("PageWrapperKey"),_g={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},qg=Mg({inheritAttrs:!1,components:{FoxIcon:F.ElIcon,FocusTrap:Fg},props:{..._g},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Bg,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,w=>{l.value=w});const r=t.computed(()=>l.value===!1?!1:!L.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const w=["fox-floating-window"];return e.customClass&&w.push(e.customClass),w}),c=t.computed(()=>{const w={};return lt(i.value)?w.left="auto":w.left=Ae(i.value),lt(u.value)?w.top="auto":w.top=Ae(u.value),lt(s.value)?w.right="auto":w.right=Ae(s.value),lt(d.value)?w.bottom="auto":w.bottom=Ae(d.value),lt(e.zIndex)||(w["z-index"]=Ae(e.zIndex)),lt(M.value)||(w.height=M.value),lt(D.value)||(w.width=D.value),w}),b=t.computed(()=>e.closeIcon??Ce.Close),I=t.computed(()=>e.collapseIcon??Ce.ArrowUp),p=t.computed(()=>e.collapseText??""),g=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),y=t.computed(()=>e.expandText??e.title??"展开"),P=t.computed(()=>({[`${o}__collapse-text`]:!0})),m=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),f=t.ref(),E=t.ref(null),B=t.ref(null),M=t.computed(()=>Ae(e.height)||""),D=t.computed(()=>Ae(e.width)||""),L=t.ref(ue(e.collapse)),N=(w,Y=!0)=>{L.value!==w&&(L.value=w,w?V():H(),n("update:collapse",w),w&&typeof q.onHide=="function"?q.onHide():!w&&typeof q.onShow=="function"&&q.onShow())};t.watch(()=>e.collapse,w=>{N(w)});const O=()=>{S()},S=w=>{w=w??!L.value,N(w)};t.provide(Rg,!0);const q={setCollapse:N,setFixedNavVisible:w=>{Z.value=w}};t.provide(Lg,q);const $=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{l.value=!1}):l.value=!1},k=t.ref(null),C=t.computed(()=>!e.fixedNavTeleport),W=t.computed(()=>{const w=["fox-floating-window__fixednav"];return e.expandClass&&w.push(e.expandClass),e.collapsePosition==="left"?w.push("is-left"):e.collapsePosition==="right"&&w.push("is-right"),w}),z=t.ref(""),J=t.computed(()=>{const w={};return z.value?w.top=z.value:e.collapseTop&&(w.top=e.collapseTop),w}),U=t.ref(L.value),Z=t.computed({set:w=>{U.value=w},get:()=>l.value===!1?!1:U.value});let ne=null;const _=()=>{typeof ne=="function"&&(ne(),ne=null)},V=()=>{k.value&&k.value.classList.add("slide-in"),Z.value=!0,ne=()=>{k.value&&k.value.classList.remove("slide-in")}},H=()=>{k.value&&k.value.classList.add("slide-out"),ne=()=>{k.value&&k.value.classList.remove("slide-out"),Z.value=!1}},j=()=>{i.value=null,u.value=null,s.value=null,d.value=null},A={x:0,y:0},T=ca(w=>{if(!f.value)return;const Y=f.value;if(j(),e.origin==="left-top")i.value=Y.offsetLeft,u.value=Y.offsetTop,A.x=i.value,A.y=u.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=Y.offsetLeft,d.value=Q-(Y.offsetTop+Y.offsetHeight),A.x=i.value,A.y=d.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=Q-(Y.offsetLeft+Y.offsetWidth),d.value=le-(Y.offsetTop+Y.offsetHeight),A.x=s.value,A.y=d.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;s.value=Q-(Y.offsetLeft+Y.offsetWidth),u.value=Y.offsetTop,A.x=s.value,A.y=u.value}},w=>{if(!f.value)return;const Y=f.value;j(),e.origin==="left-top"?(i.value=A.x+w.x,u.value=A.y+w.y,Y.style.left=Ae(i.value),Y.style.top=Ae(u.value)):e.origin==="left-bottom"?(i.value=A.x+w.x,d.value=A.y-w.y,Y.style.left=Ae(i.value),Y.style.bottom=Ae(d.value)):e.origin==="right-bottom"?(s.value=A.x-w.x,d.value=A.y-w.y,Y.style.right=Ae(s.value),Y.style.bottom=Ae(d.value)):(s.value=A.x-w.x,u.value=A.y+w.y,Y.style.right=Ae(s.value),Y.style.top=Ae(u.value))}),v={x:0,y:0},G=ca(w=>{k.value&&(v.x=k.value.offsetLeft,v.y=k.value.offsetTop)},w=>{if(!k.value)return;const Y=v.y+w.y;z.value=`${Y}px`}),te=()=>{if(f.value){const w=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=w}};return t.onMounted(()=>{if(e.draggable&&f.value){const w=[];E.value&&w.push(E.value),e.footerDraggable&&(te(),B.value&&w.push(B.value)),T.open(w)}e.collapse===!0&&N(e.collapse,!1),k.value&&G.open(k.value)}),t.onBeforeUnmount(()=>{e.draggable&&E.value&&T.close(),k.value&&G.close()}),{classes:h,styles:c,isShow:r,closeIcon:b,onClose:$,dialogRef:f,headerRef:E,onClickToggle:O,collapseIcon:I,collapseText:p,collapseTextClasses:P,collapseIconClasses:m,expandIcon:g,expandText:y,isShowFixedNav:Z,fixedNavRef:k,fixedNavClasses:W,fixedNavStyles:J,onAnimationEnd:_,teleportDisabled:a,fixedNavTeleportDisabled:C}}}),zg={ref:"headerRef",class:"fox-floating-window__header"},jg={class:"fox-floating-window__title"},Hg={class:"fox-floating-window__tools"},Kg={class:"fox-floating-window__body"},Yg={class:"fox-floating-window__fixednav__text"};function Wg(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",zg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",jg,t.toDisplayString(e.title),1),t.createElementVNode("div",Hg,[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",Kg,[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",Yg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const io=ke(qg,[["render",Wg]]);function Ug(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return qa(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Op,create:Gg,scope:Ap}=ie("domain-provider"),so=Gg(Ug()),Xg={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 Zg(e,n){return{inheritAttrs:!1,props:Xg,setup(o,{slots:l}){if(ut&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(b,I)=>{if(h===null){r.set(b,{visible:null,callback:I});return}a.has(b)&&h.unobserve(b),a.set(b,{visible:null,callback:I}),h.observe(b)},u=b=>{if(h===null){r.delete(b);return}a.has(b)&&(a.delete(b),h.unobserve(b))};let s=o.initialVisibleObserverSize;Mi({acquire:()=>{const b=s>0;return s--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const c=(b,I,p)=>{h=new IntersectionObserver(g=>{for(let y of g){let P=!1;y.intersectionRatio>0&&(P=!0);const m=a.get(y.target);if(m)try{if(o.loadPolicy==="lazy"&&!P&&m.visible!==null)return;m.visible=P,m.callback(P)}catch(f){console.error(f)}}},{root:b,rootMargin:I,threshold:p}),r.forEach((g,y)=>{a.set(y,g),h?.observe(y)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([b,I])=>{if(I||!b||h)return;let p=null;typeof b=="string"?p=document.querySelector(b):p=b,p&&c(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Fp,create:Jg,scope:Bp}=ie("rolling-provider"),uo=Jg(Zg()),Qg=[ml,pl,yl,vl,bl,we,wl,xl,Mt,Sl,Cl,Tl,Dl,Nl,El,Vl,Il,Pl,Ol,Al,Fl,xn,Bl,Ml,Rl,Ll,_l,ql,zl,Tn,jl,Ul,$n,kn,Dn,Gl,Rt,Xl,wn,Zl,Jl,vn,ct,Ql,Cn,Sn,eo,At,yn,to,no,lo,oo,io,so,uo],ep=new mi(Qg,[yi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>F.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>F.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>F.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>F.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>F.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>F.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>F.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>F.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>F.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>F.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>F.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>F.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>F.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>F.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>F.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>F.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>F.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>F.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>F.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>F.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>F.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>F.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>F.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>F.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>F.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>F.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>F.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>F.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>F.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>F.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>F.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>F.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>F.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>F.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>F.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>F.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>F.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>F.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>F.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>F.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>F.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>F.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>F.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>F.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>F.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>F.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>F.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>F.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>F.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>F.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>F.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>F.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>F.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>F.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>F.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>F.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>F.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>F.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>F.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>F.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>F.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>F.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>F.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>F.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>F.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>F.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>F.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>F.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>F.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>F.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>F.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>F.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>F.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>F.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>F.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>F.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>F.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>F.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>F.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>F.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>F.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>F.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>F.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>F.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>F.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>F.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>F.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>F.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>F.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>F.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>F.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>F.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>F.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>F.ElUpload});exports.ActionsheetItem=jl;exports.ActionsheetPane=Tn;exports.AutocompleteItem=Ol;exports.Broadcast=fl;exports.BroadcastKey=De;exports.CalendarItem=Dl;exports.CascaderItem=Pl;exports.CheckboxItem=Rl;exports.Content=vl;exports.DataItemsKey=ht;exports.DateItem=Tl;exports.DateUtils=ae;exports.DialogItem=Jl;exports.Domain=sn;exports.DomainKey=Re;exports.DomainProvider=so;exports.FloatingWindow=io;exports.FooterBar=yl;exports.FoxActionsheetItem=jl;exports.FoxActionsheetPane=Tn;exports.FoxAutocompleteItem=Ol;exports.FoxCalendarItem=Dl;exports.FoxCascaderItem=Pl;exports.FoxCheckboxItem=Rl;exports.FoxContent=vl;exports.FoxDateItem=Tl;exports.FoxDialogItem=Jl;exports.FoxDomainProvider=so;exports.FoxFloatingWindow=io;exports.FoxFooterBar=yl;exports.FoxGroup=bl;exports.FoxGroupSetting=zl;exports.FoxHeaderBar=pl;exports.FoxHintText=Mt;exports.FoxIndicator=to;exports.FoxInfiniteLoading=Sn;exports.FoxInputItem=Sl;exports.FoxInputNumberItem=Il;exports.FoxItem=we;exports.FoxMapping=At;exports.FoxMoneyItem=Vl;exports.FoxMoreButton=lo;exports.FoxOverLay=vn;exports.FoxPage=ml;exports.FoxPickerItem=Ul;exports.FoxPopup=ct;exports.FoxPrice=yn;exports.FoxPullRefresh=eo;exports.FoxRadioItem=Ml;exports.FoxRateItem=Ll;exports.FoxRollingProvider=uo;exports.FoxRowItem=xl;exports.FoxSearchBar=Cn;exports.FoxSelectItem=Cl;exports.FoxSlotItem=wl;exports.FoxStepsBar=Gl;exports.FoxSwitchItem=_l;exports.FoxTableItem=Bl;exports.FoxTableMappingColumn=Al;exports.FoxTableRadioColumn=Fl;exports.FoxTableSetting=xn;exports.FoxTabsBar=$n;exports.FoxTabsContainer=kn;exports.FoxTabsPane=Dn;exports.FoxText=no;exports.FoxTimeItem=Nl;exports.FoxTimeSelectItem=El;exports.FoxToast=Ql;exports.FoxTour=oo;exports.FoxTreeSelectItem=ql;exports.Foxcalendarpicker=wn;exports.Foxcascaderpicker=Zl;exports.Foxdatepicker=Xl;exports.Foxpicker=Rt;exports.Group=bl;exports.GroupSetting=zl;exports.HeaderBar=pl;exports.HintText=Mt;exports.Indicator=to;exports.InfiniteLoading=Sn;exports.InputItem=Sl;exports.InputNumberItem=Il;exports.Item=we;exports.Mapping=At;exports.MoneyItem=Vl;exports.MoreButton=lo;exports.OverLay=vn;exports.Page=ml;exports.PickerItem=Ul;exports.Popup=ct;exports.Price=yn;exports.PriorityPolicy=Be;exports.PullRefresh=eo;exports.RadioItem=Ml;exports.RateItem=Ll;exports.RollingProvider=uo;exports.RowItem=xl;exports.SearchBar=Cn;exports.SelectItem=Cl;exports.SlotItem=wl;exports.StepsBar=Gl;exports.SwitchItem=_l;exports.TableItem=Bl;exports.TableMappingColumn=Al;exports.TableRadioColumn=Fl;exports.TableSetting=xn;exports.TabsBar=$n;exports.TabsContainer=kn;exports.TabsPane=Dn;exports.Text=no;exports.TimeItem=Nl;exports.TimeSelectItem=El;exports.Toast=Ql;exports.Tour=oo;exports.TreeSelectItem=ql;exports.UniqueID=er;exports.ValidateSchema=Ra;exports.ValidateSchemaKey=We;exports.calendarpicker=wn;exports.cancelRaf=Ar;exports.cascaderpicker=Zl;exports.clearNonNumber=Kr;exports.clone=Jn;exports.compareTo=Gn;exports.createBroadcast=on;exports.createValidateSchema=an;exports.datepicker=Xl;exports.debounce=Vt;exports.debounceRef=oi;exports.decimalLength=Oa;exports.default=ep;exports.defineBroadcast=Gr;exports.defineConfigDomain=qa;exports.defineDataItem=ja;exports.defineDomain=dl;exports.defineItem=Se;exports.definePageState=Ha;exports.defineSimpleItem=hl;exports.deleteGlobalValidator=ei;exports.disabledProperty=Ve;exports.divide=sl;exports.excludeProps=Te;exports.extend=it;exports.floatData=Ur;exports.getGlobalValidateCheckEvents=Fa;exports.getGlobalValidateResetEvents=Ma;exports.getPageContentAreaHeight=Zt;exports.getPageContentAreaWidth=Jt;exports.getPageFooterAreaHeight=Pt;exports.getPageHeaderAreaHeight=It;exports.getRootDomain=gt;exports.hasSymbol=ka;exports.includeProps=Bt;exports.indexOf=Yr;exports.installRules=za;exports.integerLength=Pa;exports.isArray=Br;exports.isArrayLike=Na;exports.isBrowser=ut;exports.isDate=et;exports.isESModule=_r;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=Xn;exports.isHidden=ln;exports.isInnerPage=ii;exports.isMap=Mr;exports.isNil=cl;exports.isNumberString=Ia;exports.isObject=Me;exports.isPlainObject=Zn;exports.isPromise=Ut;exports.isRegExp=Va;exports.isSet=Rr;exports.isString=Ta;exports.isSubPage=si;exports.isSymbol=Lr;exports.isTouch=Yl;exports.isWindow=Da;exports.lastIndexOf=Wr;exports.makeArray=Hr;exports.merge=Ea;exports.multiply=xa;exports.negate=Sa;exports.nextTick=zr;exports.numberFormat=tn;exports.objectToString=$a;exports.once=ai;exports.overrideGlobalValidateHandler=Jr;exports.picker=Rt;exports.property=Ne;exports.raf=ul;exports.readonlyProperty=Ee;exports.setGlobalValidateCheckEvents=ti;exports.setGlobalValidateHandler=Zr;exports.setGlobalValidateMessages=li;exports.setGlobalValidateResetEvents=ni;exports.setGlobalValidator=Qr;exports.throttle=_a;exports.toBoolean=ue;exports.toNumber=de;exports.toPadding=ze;exports.toPx=he;exports.toPxDesc=Pe;exports.toTypeString=nn;exports.toValue=fe;exports.tryTimes=rn;exports.typeOf=Gt;exports.unNumberFormat=Ca;exports.updatePageState=Qn;exports.useBroadcast=Dt;exports.useDomain=Ue;exports.useExpose=pe;exports.useInnerSize=gl;exports.usePageState=un;exports.usePosition=Ja;exports.useRawTouch=Wl;exports.useRect=Kl;exports.useSize=cn;exports.useTouch=kr;exports.valueLength=He;
5
+ */function Wt(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=Ie(e),n=Ie(n),[e,n]=il(Ie(e),Ie(n)),o==1&&(l==1?e=In(e):n=In(n));let a=wa(e,n);return o?o==2?"-"+Ie(a):e.length<a.length?Ie(a.substring(1)):"-"+Ie(In(a)):Ie(a)}function In(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 wa(n,r)}function Ie(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 il(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 wa(e,n){[e,n]=il(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 xe=(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))(xe||{});function Et(e,n=0,o=xe.HALF_EVEN){if(o===xe.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=Et(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,co(a[1],r,l,o)?(l?"-":"")+Pn(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&&co(u,i,l,o)&&(i=Pn(i),i.length>n)?(l?"-":"")+Pn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function co(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!o&&l===xe.FLOOR||o&&l===xe.CEILING)return!1;if(l===xe.UP||o&&l===xe.FLOOR||!o&&l===xe.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 xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Pn(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 Kn(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=Ct(e),n=Ct(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=Ct(e.replace(".","")),n=Ct(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let F=n.length-1;F>=d&&F>=0;F--)s[F]>-1&&s[F]<e.length&&(b+=parseInt(e[s[F]--])*parseInt(n[F]));b+=u,u=Math.floor(b/10),h=b%10+h,d--}return h=Ct(Fr(h,r)),o==1&&(h="-"+h),h}function Fr(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 Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Yn(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=Ie(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ie(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ie(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let h=e.length-d+a;e=Ie(e.substring(0,h)+"."+e.substring(h))}else a==d&&(e=Ie(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 d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Wt(s,"-"+n),d++;u+=d,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?"-":"")+Ie(Et(u,o-2))}function Wn(e,n){return e=e.toString(),n=n.toString(),n=Un(n),Wt(e,n)}function Un(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ho(e),ho(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Wn(e,Kn(n,Et(Yn(e,n),0,xe.FLOOR)));return o+l}function ho(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function mo(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]=il(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 ce{value;static RoundingModes=xe;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=Ie(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+Ie(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=ce.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=ce.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 ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=xe.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Et(n,o,l)}round(n=0,o=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Et(this.value,n,o))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.CEILING)}static add(n,o){return n=ce.validate(n),o=ce.validate(o),Wt(n,o)}add(n){return new ce(Wt(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),Wn(n,o)}subtract(n){return new ce(Wn(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),Kn(n,o)}multiply(n){return new ce(Kn(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),Yn(n,o,l)}divide(n,o){return new ce(Yn(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),fo(n,o)}modulus(n){return new ce(fo(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),mo(n,o)}compareTo(n){return mo(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Un(n)}negate(){return new ce(Un(this.value))}}function xa(e,n){return ce.multiply(`${e}`,`${n}`)}function sl(e,n,o=8){return ce.divide(`${e}`,`${n}`,o)}function Gn(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Sa(e){return ce.negate(e)}function tn(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="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+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 c="",b=u.split("").reverse();for(let F=0;F<b.length;F++)c+=b[F]+((F+1)%l==0&&F+1!=b.length?a:"");s.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function Ca(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const ul=rl,Br=Array.isArray,Mr=e=>nn(e)==="[object Map]",Rr=e=>nn(e)==="[object Set]",et=e=>e instanceof Date,Xn=e=>typeof e=="function",Ta=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Ut=e=>Re(e)&&Xn(e.then)&&Xn(e.catch),$a=Object.prototype.toString,nn=e=>$a.call(e),Zn=e=>nn(e)==="[object Object]",ka=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function _r(e){return e.__esModule||ka&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...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 d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=it(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}function Jn(e,n,o=!1){if(!o)it(!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)&&!Zn(i))continue;r=Jn(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)&&!Zn(i))continue;r=Jn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const On=qr?Promise.resolve():null;function zr(e,...n){On!==null?n&&n.length>0?On.then(()=>{e(n)}):On.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}const jr={"[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 Gt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):jr[o]||"object"}function Da(e){return e&&typeof e=="object"&&"setInterval"in e}function ln(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Na(e){let n=!!e&&"length"in e&&e.length,o=Gt(e);return o==="function"||Da(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ea(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 Hr(e,n=[]){let o=n;return e!=null&&(Na(Object(e))?Ea(o,typeof e=="string"?[e]:e):o.push(e)),o}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Gt(e),l=Gt(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],d=n[u];if(!Le(s,d))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(!Le(r,i))return!1}return!0}return!1}const ut=typeof window<"u";function cl(e){return e==null}function Va(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ia(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Pa(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 Oa(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 go(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 Kr(e,n=!0,o=!0){n?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Le(e,o))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function Ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Bt(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function $e(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 Ur=(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},Se=Symbol.for("BroadcastKey");class fl{parent;children=[];callbacks=new Map;proxy=null;name;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.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Va(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)}}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){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 on(e,n,o,l){const a=new fl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function Gr(e,n,o){const l=o;if(l[Se])return l[Se];const a=t.inject(Se,null),r=new fl(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),l[Se]=void 0}),r}function Dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const at=e=>e.default??e;class Xr{error(n,o){const l=o,a=o||t.hasInjectionContext()?Dt(o):null;a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?Dt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?Dt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=l||t.hasInjectionContext()?Dt(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 Nt=new Xr;function Zr(e){Nt=e}function Jr(e){Nt?Object.assign(Nt,e):Nt=e}function Qr(e,n){at(ot).setValidator(e,n)}function ei(e){at(ot).deleteValidator(e)}let Aa=["blur","clear"];function ti(e){Aa=e}function Fa(){return Aa}let Ba=["focus","change","setValue"];function ni(e){Ba=e}function Ma(){return Ba}function li(e){at(ot).messages(e)}function Tt(...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 _t(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 qe=Symbol("ValidateSchemaKey");class Ra{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=_t(Tt(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=_t(l);const a=Tt(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=Nt;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?at(ot).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?at(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return at(ot).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=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=_t(n):this.rules=_t([n]);const l=Tt(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=Tt(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=at(ot),s=new u(a),d=this.proxy??i;return s.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function an(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 Ra(n,o,e)}const Xt=Symbol.for("EventEmitterKey");class La{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 Vt(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function _a(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function oi(e,n){const o=Vt((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function ai(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function rn(e,n,o,l=0,a=!0,r){let i=n,u=0;if(a){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Be=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class sn{_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 ri=new sn;function gt(){return ri}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Be]??t.inject(Be,null):t.inject(Be,null)}const An=Symbol("OriginalDateKey");function dl(e,n,o=[],l){const a=t.getCurrentInstance();let r=a?.proxy,i=t.inject(Be,null);i===null&&(i=gt());const u=e||n.prop||n.name;let s=new sn(u);s.parent=i;const d=F=>{r[An]||b(F),s?.set("modelValue",F)},h=()=>s?.getForSelf("modelValue")??null,c=()=>r[An]??null,b=F=>{const g={};it(!0,g,t.toRaw(F)),r[An]=g};if(t.isReactive(n)||typeof n=="function"?t.watch(n,F=>{s?.merge(F,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&b(n.modelValue),r[Be]=s,t.provide(Be,s),a!==null){const F=t.inject(Se,null),g=on(r,F,u,l);s.broadcast=g,r[Se]=g,t.provide(Se,g),r.broadcast=(P,m,...f)=>Reflect.apply(g.emit,g,[P,m,...f]);const p=t.inject(qe,null),v=an(r,p,{componentName:""});s.validateSchema=v,r[qe]=v,t.provide(qe,v),r[ht]=new Map,r.validate=(P=!0)=>{const m=[];let f=null;const E={deep:!1};if(P===!0)f={name:"*"};else if(Array.isArray(P)&&P.length>0){const B=P;f={name:M=>M?B.indexOf(M)!==-1:!1}}else if(P!=null&&typeof P=="object"){const B=P;if(Object.assign(E,B),Array.isArray(B.include)&&B.include.length>0){const M=B.include;f={name:k=>k?M.indexOf(k)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const M=B.exclude;f={name:k=>k?M.indexOf(k)===-1:!1}}else f={name:"*"}}if(f){const B=g?.emitToChildren(f,"validate",E);B&&Reflect.apply([].push,m,B)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(B=>{let M=[];return B.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(M=[...M,...k.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(P,m=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(P).forEach(B=>{let M=String(B);const k={componentName:"",fieldName:M,pureDataValidate:!0};if(s){const R=ja(s,M,k,g,v);r[ht].set(M,R);const D=P[M];D&&R.validateSchema.setRule(D)}});return}if(m){const E=Reflect.ownKeys(P),B={name:M=>E.includes(M)};g?.emitToChildren(B,"setNameValidateRules",P,!1)}},r.clearValidate=(P=!0)=>{let m=null;if(P===!0)m={name:"*"};else if(Array.isArray(P)&&P.length>0){const f=P;m={name:E=>E?f.indexOf(E)!==-1:!1}}else if(P!=null&&typeof P=="object"){const f=P;if(Array.isArray(f.include)&&f.include.length>0){const E=f.include;m={name:B=>B?E.indexOf(B)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const E=f.exclude;m={name:B=>B?E.indexOf(B)===-1:!1}}else m={name:"*"}}m&&g?.emitToChildren(m,"clearValidate",!1)},r.resetFields=P=>{const m=h();if(!m)return;const f={};if(it(!0,f,c()??{}),Array.isArray(P))P.forEach(E=>{m[E]=f[E]});else if(P&&Array.isArray(P.include))(P.include??[]).forEach(B=>{m[B]=f[B]});else if(P&&Array.isArray(P.exclude)){let E=P.exclude??[];Reflect.ownKeys(f).forEach(B=>{E.includes(B)||(m[B]=f[B])})}else Object.assign(m,f);r.clearValidate(P)},r.setModelValue=(P,m)=>{!m||m===u?d(P):g?.emitToChildren({name:m},"setModelValue",P)},r.getModelValue=()=>h()}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[Se]=void 0,t.provide(Se,null)),s?.destroy(),r[Be]=void 0,t.provide(Be,null),r[ht]&&(r[ht].clear(),r[ht]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,s=null,r=null}),s}function qa(e,n,o=[]){let a=t.getCurrentInstance()?.proxy,r=t.inject(Be,null);r===null&&(r=gt());const i=e||n.prop||n.name;let u=new sn(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[Be]=u,t.provide(Be,u),t.onUnmounted(()=>{u?.destroy(),a[Be]=void 0,t.provide(Be,null),u=null,a=null}),u}function za(e,n,o){const a=Ue(e)?.get("rules");if(!a)return;let r=a[o];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ce(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Se,null);let u=on(a,i,r,o);a[Se]=u,t.provide(Se,u),a.broadcast=(g,p,...v)=>u?Reflect.apply(u.emit,u,[g,p,...v]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??r;let d=an(a,s,e);a[qe]=d,t.provide(qe,d),za(a,d,r),a.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const p=[];let v=!1,P=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)P=!0,v=!0;else if(g&&typeof g=="object"){const m=g,f=m.ignoreDisabled??!0,E=m.ignoreReadonly??!0,B=m.ignoreHidden??!0;f===!0&&e.disabled===!0||E===!0&&e.readonly===!0||B===!0&&ln(a.$el)?P=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),P=!0),v=m.deep??!1}else typeof g=="boolean"&&(v=g),P=!0;if(P){const m=d?.validate();p.push(m)}if(v){let m=null;const f={deep:!1};if(g===!0)m={name:"*"};else if(Array.isArray(g)&&g.length>0){const E=g;m={name:B=>B?E.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const E=g;if(Object.assign(f,E),Array.isArray(E.include)&&E.include.length>0){const B=E.include;m={name:M=>M?B.indexOf(M)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const B=E.exclude;m={name:M=>M?B.indexOf(M)===-1:!1}}else m={name:"*"}}if(m&&u){const E=u.emitToChildren(m,"validate",f);Reflect.apply([].push,p,E)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(m=>{let f=[];return m.forEach(E=>{E.pass===!1&&Array.isArray(E.errors)&&(f=[...f,...E.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>d?.setRule(g),a.setNameValidateRules=(g,p=!1)=>{const v=g[r];if(v&&d?.setRule(v),p&&u){const P={name:m=>Reflect.ownKeys(g).includes(m)};u.emitToChildren(P,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let p=null;if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;p={name:P=>P?v.indexOf(P)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const P=v.include;p={name:m=>m?P.indexOf(m)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const P=v.exclude;p={name:m=>m?P.indexOf(m)===-1:!1}}else p={name:"*"}}p&&u&&u.emitToChildren(p,"clearValidate",!1)};let h=new La(a);a[Xt]=h;const c=Vt((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fa()).forEach(g=>{h&&h.on(g,p=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ma()).forEach(g=>{h&&h.on(g,p=>{c("reset")})}),t.onUnmounted(()=>{u?.destroy(),a[Se]=void 0,t.provide(Se,null),u=null,d?.destroy(),a[qe]=void 0,t.provide(qe,null),d=null,h?.destroy(),a[Xt]=void 0,h=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null}),{broadcast:u,validateSchema:d,emitEvent:(g,...p)=>{h&&Reflect.apply(h.emit,h,[g,...p])},onEvent:(g,p)=>{h&&Reflect.apply(h.on,h,[p])},offEvent:(g,p)=>{h&&Reflect.apply(h.off,h,[p])}}}function ja(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=an({},a,o);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,F=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)F=!0,b=!0;else if(h&&typeof h=="object"){const g=h;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),F=!0,b=g.deep??!1}else typeof h=="boolean"&&(b=h),F=!0;if(F&&s){const g=s.validate();c.push(g)}if(b){let g=null;const p={deep:!1};if(h===!0)g={name:"*"};else if(Array.isArray(h)&&h.length>0){const v=h;g={name:P=>P?v.indexOf(P)!==-1:!1}}else if(h!=null&&typeof h=="object"){const v=h;if(Object.assign(p,v),Array.isArray(v.include)&&v.include.length>0){const P=v.include;g={name:m=>m?P.indexOf(m)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const P=v.exclude;g={name:m=>m?P.indexOf(m)===-1:!1}}else g={name:"*"}}if(g&&d){const v=d.emitToChildren(g,"validate",p);Reflect.apply([].push,c,v)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let p=[];return g.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(p=[...p,...v.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&s?.setRule(c)};let d=on(null,l,i,r);return t.onUnmounted(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function hl(){let n=t.getCurrentInstance()?.proxy,o=new La(n);return n[Xt]=o,t.onUnmounted(()=>{o?.destroy(),n[Xt]=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:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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 tt="PageStateKey";function je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Qn(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=je(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=je(o.footerPadding??n.footerPadding),e.contentPadding=je(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=he(s,r):e.height=he(r)-he(i,r)-he(u,r),e.width=he(o.width??n.width??0,a)}}function Ha(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=he(a.top),l.safeAreaBottom=he(a.bottom),l.safeAreaLeft=he(a.left),l.safeAreaRight=he(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,d=e.get("footerBarHeight")??0;Qn(l,r,n,!0,i,u,s,d);const h=t.reactive(l),c=e.getForParent(tt);c&&(l.height=Zt(e,c),l.width=Jt(e,c),t.watch([()=>Zt(e,c),()=>Jt(e,c)],([F,g])=>{h.height=F,h.width=g}));const b=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([F,g,p=-1,v=-1,P=0,m=0])=>{Qn(h,g,n,b,p,v,P,m)}),e.set(tt,h),h}function un(e){return e.get(tt)}function It(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Pt(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Zt(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=It(e,n),l=Pt(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Jt(e,n){return n=n??e.get(tt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function si(e){return!!e.getForParent(tt)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Fn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,o=1,l){const a=Ue();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(Fn(s,l))return s}const i=e.value;return Fn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Fn(r,l)?r:a?.get(n)})}function Ee(e){return Ne(e,"readonly",0,function(o){return ue(o)})}function Ve(e){return Ne(e,"disabled",0,function(o){return ue(o)})}function fe(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 Ka=new Map,Qt=new Map;let el=null;function ui(e){el=e}function Ya(e,n,o){if(o){let l=Qt.get(o);l||(l=new Map,Qt.set(o,l)),l.set(e,n)}else Ka.set(e,n)}function Oe(e,n,o){!o&&el&&(o=el(e)??void 0);let l=null;if(o){let a=Qt.get(o);a&&(l=a.get(n))}return l||(l=Ka.get(n)),l}function ci(e,n){for(let o in e){const l=e[o];Ya(o,l,n)}}function fi(e){Qt.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(ut){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{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=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=gt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=_a(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);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=it({},di(),n.safeAreaInset),i=hi(l,a),u=it({},i.pageLayout,n.pageLayout);o=o??gt(),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){ui(n)}setAPI(n,o,l){Ya(n,o,l)}getAPI(n,o,l){return Oe(n,o,l)}batchSetAPI(n,o){ci(n,o)}clearScopeAPI(n){fi(n)}getRootDomain(){return gt()}}const gi=[A.ElAffix,A.ElAlert,A.ElAutocomplete,A.ElAutoResizer,A.ElAvatar,A.ElBacktop,A.ElBadge,A.ElBreadcrumb,A.ElBreadcrumbItem,A.ElButton,A.ElButtonGroup,A.ElCalendar,A.ElCard,A.ElCarousel,A.ElCarouselItem,A.ElCascader,A.ElCascaderPanel,A.ElCheckTag,A.ElCheckbox,A.ElCheckboxButton,A.ElCheckboxGroup,A.ElCol,A.ElCollapse,A.ElCollapseItem,A.ElCollapseTransition,A.ElColorPicker,A.ElConfigProvider,A.ElContainer,A.ElAside,A.ElFooter,A.ElHeader,A.ElMain,A.ElDatePicker,A.ElDescriptions,A.ElDescriptionsItem,A.ElDialog,A.ElDivider,A.ElDrawer,A.ElDropdown,A.ElDropdownItem,A.ElDropdownMenu,A.ElEmpty,A.ElForm,A.ElFormItem,A.ElIcon,A.ElImage,A.ElImageViewer,A.ElInput,A.ElInputNumber,A.ElLink,A.ElMenu,A.ElSubMenu,A.ElMenuItem,A.ElMenuItemGroup,A.ElPageHeader,A.ElPagination,A.ElPopconfirm,A.ElPopover,A.ElPopper,A.ElProgress,A.ElRadio,A.ElRadioButton,A.ElRadioGroup,A.ElRate,A.ElResult,A.ElRow,A.ElScrollbar,A.ElSelect,A.ElOption,A.ElOptionGroup,A.ElSelectV2,A.ElSkeleton,A.ElSkeletonItem,A.ElSlider,A.ElSpace,A.ElSteps,A.ElStep,A.ElSwitch,A.ElTable,A.ElTableColumn,A.ElTableV2,A.ElTabs,A.ElTabPane,A.ElTag,A.ElTimePicker,A.ElTimeSelect,A.ElTimeline,A.ElTimelineItem,A.ElTooltip,A.ElTransfer,A.ElTree,A.ElTreeSelect,A.ElTreeV2,A.ElUpload],pi=[A.ElInfiniteScroll,A.ElLoading,A.ElMessage,A.ElMessageBox,A.ElNotification,A.ElPopoverDirective],vi=e=>{gi.forEach(n=>{let o=n.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,n)):e.use(n)}),pi.forEach(n=>{e.use(n)})};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 pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const be={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ke={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Wa={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}},Ua={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ga=[];for(const e in Ua)Ga.push(e);const yi=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}},wi=(e,n)=>({inheritAttrs:!0,props:{...be,...Wa,...bi},setup(o,{slots:l}){const a=dl(o.name,o),r=t.inject(yi,!1);if(a){const h=Ha(a,o);pe({getPageContentHeight:()=>Zt(a,h),getPageContentWidth:()=>Jt(a,h),getPageHeaderHeight:()=>It(a,h),getPageFooterHeight:()=>Pt(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,c=!1)=>{const b=s?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(h,!0,c)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,c],[b,F])=>{if(h&&b){const g=t.toRaw(b),p=t.toRaw(h),v=p?Reflect.ownKeys(p):[];(g?Reflect.ownKeys(g):[]).forEach(m=>{v.includes(m)||(p[m]=[])}),d(p)}if(c&&F){const g=t.toRaw(F),p=t.toRaw(c),v=p?Reflect.ownKeys(p):[];(g?Reflect.ownKeys(g):[]).forEach(m=>{v.includes(m)||(p[m]=[])}),d(p,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);d(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:xi,create:Si,scope:np}=ie("page"),ml=Si(wi(xi));function cn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function gl(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 Ci=(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=Ue(),u=i?un(i):null;u&&(u.headerMounted=!0);const s=e,d=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})),c=a.height!==null&&a.height!==void 0?he(a.height):null,b=t.computed(()=>{const O={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const x=je(a.padding??u.headerPadding);return Object.assign(O,x),c&&(u.headerHeight=c),u.headerHeight>0&&(O.height=u.headerHeight),O.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,O.safeAreaTop>0&&(O.top=O.safeAreaTop+(x.top??0),O.height&&O.height>0&&(O.height=O.height+O.safeAreaTop)),O}if(c&&(O.height=c),a.padding){const x=je(a.padding);Object.assign(O,x)}return O}),F=t.ref(null),g=()=>{if(u&&F.value&&!ln(F.value)){if(!l){const O=cn(F.value);u.headerAllHeight=O.height}return u.headerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{u&&(rn(g,50,5,50,!0),window.ResizeObserver&&F.value&&(p=new window.ResizeObserver(()=>{g()}),p.observe(F.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,p&&(p.disconnect(),p=null))});const v=t.computed(()=>{const O={};return b.value.height!==null&&b.value.height!==void 0&&(O.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(O.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(O.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(O.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(O.paddingBottom=`${b.value.bottom}px`),O}),P=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function m(){r.emit("back")}function f(){r.emit("click-title")}function E(){r.emit("click-right")}function B(){r.emit("click-right-text")}const M=()=>{if(!a.leftShow)return null;const O=[];if(r.slots.left)O.push(r.slots.left());else{if(r.slots.leftIcon){const x=t.h("view",{class:"left-icon",onClick:m},[r.slots.leftIcon()]);O.push(x)}else if(a.leftIcon){const x=t.h("view",{class:"left-icon",onClick:m},[t.h(a.leftIcon)]);O.push(x)}if(a.leftText){const x=t.h("view",{class:"left-text",onClick:m},[a.leftText]);O.push(x)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__left"},O)},k=()=>{if(!a.rightShow)return null;const O=[];if(r.slots.right)O.push(r.slots.right());else{if(a.rightText){const x=t.h("view",{class:"right-text",onClick:B},[a.rightText]);O.push(x)}if(r.slots.rightIcon){const x=t.h("view",{class:"right-icon",onClick:E},[r.slots.rightIcon()]);O.push(x)}else if(a.rightIcon){const x=t.h("view",{class:"right-icon",onClick:E},[t.h(a.rightIcon)]);O.push(x)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__right"},O)},R=()=>{if(!a.titleShow)return null;const O=[],x=r.slots.default?r.slots.default():null;if(x)O.push(x);else{if(a.title){const q=t.h("view",{class:"title-text"},[a.title]);O.push(q)}if(r.slots.titleIcon){const q=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);O.push(q)}else if(a.titleIcon){const q=t.h("view",{class:"title-icon",onClick:f},[t.h(a.titleIcon)]);O.push(q)}}return O.length===0?null:t.h("view",{class:"fox-header-bar__title"},O)},D=()=>{const O=[],x=r.slots.bottom?r.slots.bottom():null;return x&&O.push(x),O.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},O)};return()=>{if(!P.value)return null;const O=[];if(r.slots.all)O.push(r.slots.all());else{const q=[],T=M();T&&q.push(T);const $=R();$&&q.push($);const S=k();if(S&&q.push(S),q.length>0){const z=t.h("view",{class:h.value},q);O.push(z)}const W=D();W&&O.push(W)}if(O.length===0)return null;const x={class:d.value,style:v.value,ref:F};return t.h("view",x,O)}}}),{componentName:Ti,create:$i,scope:ki}=ie("header-bar"),pl=$i(Ci(Ti,ki,Te.ArrowLeft));function Di(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=Ue(),i=r?un(r):null,u=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${l.align}`]:!0,[`${g}--border`]:l.border,[`${g}--fixed`]:l.fixed,[`${g}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const p=je(l.padding??i.footerPadding);return Object.assign(g,p),s&&(i.footerHeight=s),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(p.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(s&&(g.height=s),l.padding){const p=je(l.padding);Object.assign(g,p)}return g}),h=t.ref(null),c=()=>{if(i&&h.value&&!ln(h.value)){if(!o){const g=cn(h.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(rn(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const F=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Pe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Pe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Pe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Pe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Pe(d.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],p={ref:h,class:u.value,style:F.value};return t.h("view",p,g)}}}}const{componentName:Ni,create:Ei,scope:lp}=ie("footer-bar"),vl=Ei(Di(Ni));function Vi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),a=t.computed(()=>({[e]:!0})),r=l?un(l):null,i=t.computed(()=>{const d={};if(l&&r){if(o.padding){const F=je(o.padding);Object.assign(r.contentPadding,F)}const h=It(l,r),c=Pt(l,r);let b="";if(r.contentHeight?b=`${r.contentHeight}`:b=`${r.height}px`,r.contentPadding,d.height=b,r.contentPadding.top||h>0){const F=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+F}px`}if(r.contentPadding.bottom||c>0){const F=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+F}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(o.padding){const h=je(o.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=gl(u.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{s()}),l&&r&&t.watch([()=>It(l),()=>Pt(l)],([])=>{s()}),{contentRef:u,classes:a,styles:i}}}}const{componentName:Ii,create:Pi,scope:op}=ie("content"),Oi=Pi(Vi(Ii));function Ai(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const De=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},yl=De(Oi,[["render",Ai]]),yt="GroupStateKey",Xa=Symbol.for("GroupScopeKey");function fn(){return t.inject(Xa,!1)}function dn(e=!0){t.provide(Xa,e)}function Fi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];cl(a)||(e[l]=a)})}function Bi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Fi(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(yt,r),r}function Bn(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(yt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=he(r),c=he(i);u||(u=d.type??"grid");const b=()=>{const F=n===""||n===-1,g=he(n);let p=de(o);const v=he(l);if(!F){let f=(g-(p-1)*v)/p;for(;c!==-1&&f>c;)p++,f=(g-(p-1)*v)/p;for(;h!==-1&&p>1&&f<h;)p--,f=(g-(p-1)*v)/p}let P=!1;const m=s.layout;m.value.width=n,m.value.column!==p&&(m.value.column=p,P=!0),m.value.gutter!==v&&(m.value.gutter=v,P=!0),m.value.type!==u&&(m.value.type=u,P=!0),P&&t.triggerRef(m)};if(a)b();else{const F=++s.passport;setTimeout(()=>{F===s.passport&&b()},50)}}function hn(e,n=!1){let o;return n?o=e.getForParent(yt):o=e.get(yt),o.layout}function mn(e,n=!1){let o;return n?o=e.getForParent(yt):o=e.get(yt),o.order}function po(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function gn(e,n,o=1,l=0,a){const r={};let i=0;a?i=he(a):i=po(n.column,o),i>0&&(r.width=`${i}%`);const u=po(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 pn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let a=de(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=de(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 Za=Symbol("RollingStateKey");function Mi(e){t.provide(Za,e)}function Ri(){return t.inject(Za,null)}function tl(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 Li(e){let n=tl(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=tl(o),document.body.removeChild(o)}return n}function _i(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const qi={...be,...Wa,...Ua};function zi(e,n,o){return{props:qi,emits:["update:collapse","header-click"],setup(l,a){const r=dl(l.name,l,Ga),i=Bi(r,{type:l.type}),u=fn();dn(!0);const s=l.rollingDisplay?Ri():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),c=t.computed(()=>u&&r?hn(r,!0).value:null),b=t.getCurrentInstance(),F=(I,U=!1)=>{const Z=b?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(I,!0,U)};t.watch([()=>l.rules,()=>l.pureDataRules],([I,U],[Z,w])=>{if(I&&Z){const K=t.toRaw(Z),ee=t.toRaw(I),ne=ee?Reflect.ownKeys(ee):[];(K?Reflect.ownKeys(K):[]).forEach(oe=>{ne.includes(oe)||(ee[oe]=[])}),F(ee)}if(U&&w){const K=t.toRaw(w),ee=t.toRaw(U),ne=ee?Reflect.ownKeys(ee):[];(K?Reflect.ownKeys(K):[]).forEach(oe=>{ne.includes(oe)||(ee[oe]=[])}),F(ee,!0)}},{deep:!0});const g=e,p=t.computed(()=>{const I={};I.height=S.value;const U=u?mn(r,!0):null;if(c.value&&U){if(c.value.type==="grid"){const Z=pn(U,c.value,l.span,l.offset);Object.assign(I,Z)}else if(c.value.type==="flow"){const Z=gn(U,c.value,l.span,l.offset,l.width);Object.assign(I,Z)}}else if(l.width){const Z=Pe(l.width);I.width=Z}return I}),v=t.computed(()=>{const I=i.layout.value.type;return I==="grid"||I==="flow"?{[`${g}--${I}`]:!0,[`${g}--${I}-justify-${l.justify}`]:!0,[`${g}--${I}-align-${l.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${I}`]:!0,[`${g}--gutter`]:!0}}),P=t.computed(()=>{if(i.layout.value.type==="grid"){let U="";if(l.columnWidth)U=`repeat(auto-fill, ${l.columnWidth})`;else{const Z=_i(R.value,i.layout.value.column,i.layout.value.gutter);U=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":U}}}),m=t.toRef(l,"gutter"),f=t.toRef(l,"column"),E=t.computed(()=>u||h.value?!0:ue(l.isWrap)),B=[],M=I=>{B.push(I)},k=()=>{let I=B.length;B.splice(0,I)},R=t.ref(-1),D=I=>{const U=gl(I).width;U>0&&U!==R.value&&(R.value=U)};Bn(r,R.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([R,f,m],([I,U,Z])=>{i.order.index=0,Bn(r,I,U,Z,!1,l.minItemWidth,l.maxItemWidth,l.type)});const O=t.computed(()=>W.value?l.expandText??"":l.collapseText??""),x=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!W.value,"is-collapse":W.value})),T=t.ref(),$=t.ref(),S=t.computed(()=>z.value||Pe(l.height)||""),W=t.ref(!1),z=t.ref(""),Q=t.ref(!1);let G=-1;const J=(I,U=!0)=>{const Z=T.value;if(Z&&W.value!==I){if(G=G===-1?Li(Z):G,Q.value=!0,U)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",I||(z.value="",Q.value=!1)},I){let w=0;l.collapseHeight?w=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(w=$.value.offsetHeight),z.value=`${G}px`,t.nextTick(()=>{z.value=`${w}px`})}else z.value=`${G}px`;else if(I){let w=0;l.collapseHeight?w=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(w=$.value.offsetHeight),z.value=`${w}px`}else Q.value=!1,z.value=`${G}px`;W.value=I,a.emit("update:collapse",I)}};t.watch(()=>l.collapse,I=>{J(I)});const le=I=>{a.emit("header-click",I)},L=()=>{N()},N=I=>{I=I??!W.value,J(I)};pe({toggleCollapse:N,doLayout:()=>{B[0]&&(D(B[0]),Bn(r,R.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let j=null,V=!0;const X=I=>{if(l.rules){const U=t.toRaw(l.rules);F(U)}if(l.pureDataRules){const U=t.toRaw(l.pureDataRules);F(U,!0)}if(ut&&(I&&J(ue(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const U=B[0];D(U),window.ResizeObserver&&(j=new window.ResizeObserver(()=>{D(U)}),j.observe(U))}},Y=()=>{j?.disconnect(),j=null},C=!h.value||s?.acquire();C&&(d.value=h.value?!0:null),t.onMounted(()=>{if(C&&(X(V),V=!1),h.value&&s){let I=null,U=s.initialHeight;s.observe(T.value,Z=>{if(Z!==d.value)if(Z)d.value=!0,W.value||(z.value=""),I=setTimeout(()=>{I=null,d.value!==!1&&(X(V),V=!1)},100);else{if(I!==null&&clearTimeout(I),d.value=!1,!W.value)if(V)z.value=s.initialHeight;else{let w=tl(T.value);w<=0?z.value=U:(z.value=`${w}px`,U=z.value)}V||Y()}})}}),t.onUnmounted(()=>{j?.disconnect(),s&&s.unobserve(T.value)});const y=(I="right")=>{const U=[];if(O.value){const K={class:x.value},ee=t.h("span",K,[O.value]);U.push(ee)}const Z={class:q.value},w=o(l.collapseIcon,Z);return w&&U.push(w),U.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${I}`]:!0},onClick:L},U):null},_=(I,U,Z,w)=>{const K={...v.value};return U===0&&(K[`${g}__first`]=!0),Z>=w-1&&(K[`${g}__last`]=!0),t.h("div",{ref:M,key:`${U}`,class:K,style:P.value},I)};return()=>{if(h.value&&d.value!==!0){const K=l.tag||"div";return t.h(K,{ref:T,prop:l.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:p.value},[])}i.order.index=0;const I=[];let U=0;if(a.slots.header){const K={key:`${U++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ee=t.h("div",K,[a.slots.header()]);I.push(ee)}else{const K=[],ee=l.collapsePosition==="left";if(ee&&l.showCollapse){const ne=y("left");ne&&K.push(ne)}if(l.title||a.slots.title){if(l.showMark){const ne={class:{[`${g}__header-mark`]:!0}};l.markColor&&(ne.style={background:l.markColor});const te=t.h("div",ne);K.push(te)}if(a.slots.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);K.push(ne)}else if(l.title){const ne=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.title]);K.push(ne)}}if(a.slots.toolbar&&K.push(a.slots.toolbar()),!ee&&l.showCollapse){const ne=y("right");ne&&K.push(ne)}if(K.length>0){const ne={key:`${U++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},te=t.h("div",ne,K);I.push(te)}}k();const Z=a.slots.default?a.slots.default():[],w=i.layout.value.type;if(w==="grid"){const K=_(Z,U++,0,Z.length);I.push(K)}else if(w==="flow"){const K=_(Z,U++,0,Z.length);I.push(K)}else for(let K=0;K<Z.length;K++){const ee=Z[K],ne=_([ee],U++,K,Z.length);I.push(ne)}if(E.value){const K=l.tag||"div";return t.h(K,{ref:T,prop:l.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:p.value},[I])}else return I}}}}const{componentName:ji,create:Hi,scope:Ki}=ie("group"),Yi=(e,n)=>(e=e??Te.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]})),bl=Hi(zi(ji,Ki,Yi));function Wi(e){return e===window}const Ui=/matrix\((.+)\)/,Ja=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Wi(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:d}=window.getComputedStyle(a);if(d){const h=Ui.exec(d);if(h){let b=h[1].split(/\s*,\s*/);b.length==6&&(u+=Number(b[4]),s+=Number(b[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}};class Gi{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 Xi{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 Gi,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 vo=new Xi,Qa={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Zi,create:Ji}=ie("price"),Qi=Ji({props:{...Qa},setup(e){const n=t.computed(()=>({[Zi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>Ke(e.price)==0?"":tn(e.price,e.decimalLength,!0,de(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}}}),es=["innerHTML"],ts=["innerHTML"];function ns(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,es)):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,ts)):t.createCommentVNode("",!0)],2)}const vn=De(Qi,[["render",ns]]),{componentName:Mn,create:ls}=ie("hint-text"),os=ls({components:{Price:vn},props:{...Qa,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),d=(x,q,T,$,S,W)=>{const z=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,G=x.split("-");let J=[];G[0]==="top"?J=["top","bottom","right","left"]:G[0]==="bottom"?J=["bottom","top","right","left"]:G[0]==="left"?J=["left","top","bottom","right"]:G[0]==="right"&&(J=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},L=[];for(let N=0;N<J.length;N++){const H=J[N];if(L[0]=H,G[1]&&(L[1]=G[1]),H==="top"){const j=q.y-W-e.arrowSize-e.offset;if(j>=0){le.top=j;let V=0;G[1]==="start"?V=q.x:G[1]==="end"?V=q.x+T-S:V=q.x+T/2-S/2;const X=z-V-S;X<0?(V+=X,c.value=-X):c.value=0,le.left=V<0?0:V;break}}else if(H==="bottom"){const j=q.y+$+e.arrowSize+e.offset;if(j+W<=Q){le.top=j;let V=0;G[1]==="start"?V=q.x:G[1]==="end"?V=q.x+T-S:V=q.x+T/2-S/2;const X=z-V-S;X<0?(V+=X,c.value=-X):c.value=0,le.left=V<0?0:V;break}}else if(H==="left"){const j=q.x-S-e.arrowSize-e.offset;if(j>=0){le.left=j;let V=0;G[1]==="start"?V=q.y:G[1]==="end"?V=q.y+$-W:V=q.y+$/2-W/2,le.top=V<0?0:V;break}}else if(H==="right"){const j=q.x+T+e.arrowSize+e.offset;if(j+S<=z){le.left=j;let V=0;G[1]==="start"?V=q.y:G[1]==="end"?V=q.y+$-W:V=q.y+$/2-W/2,le.top=V<0?0:V;break}}}return{bestPlacement:L.join("-"),bestInsetRect:le}},h=(x,q,T=10)=>{if(!ut||q===!1||!x)return;l.value=Ja(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=s.value.offsetHeight,S=s.value.offsetWidth,{bestPlacement:W,bestInsetRect:z}=d(e.placement,l.value,a.value,r.value,S,$);i.value=W,o.value=z,u.value=!0},c=t.ref(0),b=Vt(()=>{h(e.message,e.visible)},10),F=t.ref(e.visible);t.watch(()=>e.visible,x=>{F.value=x});const g=t.computed(()=>F.value&&p.value),p=t.ref(!0),v=Vt(x=>{const q=x[0];q&&(p.value=q.isIntersecting)},10),P=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),vo.watch(e.reference,b),P.observe(e.reference)}),t.onBeforeMount(()=>{vo.unwatch(e.reference,b),P.unobserve(e.reference),P.disconnect()});const m=t.computed(()=>{const x={[Mn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),f=t.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${a.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,u.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),E=t.computed(()=>{const x=[`${Mn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=t.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=t.computed(()=>({[`${Mn}__arrow`]:!0})),k=t.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+c.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-c.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+c.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-c.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=t.computed(()=>g.value&&e.closeOnClick),D=t.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:s,classes:m,styles:f,textClasses:E,textStyles:B,arrowClasses:M,arrowStyles:k,overlayShow:R,overlayStyle:D,onClickOverlay:()=>{F.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function rs(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,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Mt=De(os,[["render",rs]]);class er{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 nl={},is=new er,pt=new Map,en=e=>{if(e){const n=document.getElementById(e);pt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of pt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}pt.clear()}},ss=e=>{e.unmount=en;const n=document.getElementById(e.id);if(n){const o=pt.get(e.id);o?e={...nl,...o,...e}:e={...nl,...e},e.transition=!1;const l=t.createVNode(Mt,e);return t.render(l,n),e.id}},us=e=>{e.unmount=en;let n=e.id??`hinttext_${is.get()}`;e={...nl,...e},e.id=n,pt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Mt,e);return t.render(l,o),document.body.appendChild(o),n},cs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){cs(n);const a=o.id;return a&&pt.has(a)?ss({...o,message:n,reference:e}):(l&&en(),us({...o,message:n,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=Fe}};function fs(e,n,o,l=!1){return{inheritAttrs:!0,props:{...be,...ke},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Ce({componentName:e,validate:!1},i);const u=Ue(),s=fn();dn(!1);const d=t.computed(()=>s&&u?hn(u,!1).value:null),h=e,c=t.ref(null),b=t.computed(()=>{const w={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:ue(a.hasBorder)};if(w[a.errorMarkClass]=!!W.value,w[a.warnMarkClass]=!!$.value,w[a.infoMarkClass]=!!q.value,typeof c.value=="function"){const K=c.value(i);w[K]=!0}else if(typeof c.value=="string"){const K=c.value;w[K]=!0}return w}),F=t.ref(null),g=t.computed(()=>{const w={};if(a.width)a.width!=="auto"&&(w.width=Pe(a.width));else{const K=s&&u?mn(u,!1):null;if(d.value&&K){if(d.value.type==="grid"){const ee=pn(K,d.value,a.span,a.offset);Object.assign(w,ee)}else if(d.value.type==="flow"){const ee=gn(K,d.value,a.span,a.offset,a.width);Object.assign(w,ee)}}}if(typeof F.value=="function"){const K=F.value(i);K&&Object.assign(w,K)}else if(F.value&&typeof F.value=="object"){const K=F.value;Object.assign(w,K)}return w}),p=t.ref(null),v=t.computed({get:()=>p.value??ue(a.isRequired),set:w=>{p.value=w}}),P=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",m=Ne(t.toRef(a,"labelPosition"),"labelPosition",Me.Near),f=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),E=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),M=Ne(t.toRef(a,"labelWidth"),"labelWidth",Me.Near),k=t.computed(()=>M&&M.value?{width:Pe(M.value)}:{}),R=t.computed(()=>({"label--string":!0,"label--required":v.value})),D=t.computed(()=>({content:!0,[a.contentClass]:!0})),O=t.computed(()=>({...a.contentStyle})),x=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(w){v.value=w},setErrorTip(w){x.errorTip=w},setErrorIcon(w){x.errorIcon=w},setWarnTip(w){x.warnTip=w},setWarnIcon(w){x.warnIcon=w},setInfoTip(w){x.infoTip=w},setInfoIcon(w){x.infoIcon=w},setCustomClassName(w){c.value=w},setCustomStyle(w){F.value=w}});const q=t.computed(()=>a.infoTip||x.infoTip),T=t.computed(()=>a.infoIcon||x.infoIcon),$=t.computed(()=>a.warnTip||x.warnTip),S=t.computed(()=>a.warnIcon||x.warnIcon),W=t.computed(()=>a.errorTip||x.errorTip),z=t.computed(()=>a.errorIcon||x.errorIcon),Q=t.computed(()=>W.value?"error":$.value?"warn":q.value?"info":""),G=()=>Q.value.length>0,J=t.computed(()=>Q.value==="error"?W.value:Q.value==="warn"?$.value:Q.value==="info"?q.value:""),le=t.computed(()=>Q.value==="error"?z.value:Q.value==="warn"?S.value:Q.value==="info"?T.value:null),L=t.computed(()=>{const w={[`${h}__tip`]:!0,[`${h}__tip--${Q.value}`]:!0,[`${h}--animate`]:!0};return Q.value==="error"&&a.errorClass?w[`${a.errorClass}`]=!0:Q.value==="warn"&&a.warnClass?w[`${a.warnClass}`]=!0:Q.value==="info"&&a.infoClass&&(w[`${a.infoClass}`]=!0),w}),N=t.computed(()=>{const w={};return m&&m.value==="top"||!P()?w["padding-left"]="0px":M&&M.value&&(w["padding-left"]=Pe(M.value)),w}),H=t.ref();let j="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([w,K,ee,ne])=>{H.value&&(w&&!ge(K)?j?o.show(H.value,K,{...ne,id:j,type:ee},!0):j=o.show(H.value,K,{...ne,type:ee},!0):o.hide(j))});let V=null;const X=()=>{V||!H.value||(V=new IntersectionObserver(w=>{let K=!1;for(let ee of w)if(ee.intersectionRatio>0){K=!0,K&&r.emit("appear",ee);break}K||r.emit("disappear")}),V.observe(H.value))},Y=()=>{!V||!H.value||(V.unobserve(H.value),V=null)};t.watch(()=>ue(a.appearListen),w=>{w?X():Y()}),t.onMounted(()=>{ue(a.appearListen)&&X()}),t.onUnmounted(Y);const C=()=>{if(!P())return null;const w=[],K=r.slots?.label?.()??a.label,ee={class:R.value},ne=t.h("div",ee,[K]);if(w.push(ne),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();w.push(oe)}const te={class:B.value,style:k.value};return t.h("div",te,w)},y=()=>{const w=[];if(r.slots.prepend){const ee=r.slots.prepend();w.push(ee)}if(r.slots.default){const ee=r.slots.default();w.push(ee)}if(r.slots.append){const ee=r.slots.append();w.push(ee)}if(r.slots.fixedTip){const ee={class:[`${h}__fixed-tip`]},ne=t.h("div",ee,[r.slots.fixedTip()]);w.push(ne)}const K={ref:H,class:D.value,style:O.value};return t.h("div",K,w)},_=()=>{const w=le.value;return w?typeof w=="function"?t.h("div",{class:"fox-item__tip--icon"},[w()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(w)]):null},I=()=>{const w=J.value;return w?typeof w=="function"?t.h("div",{class:"fox-item__tip--text"},[w()]):t.h("div",{class:"fox-item__tip--text"},[w]):null},U=()=>{if(!G())return null;const w=[],K=_();K&&w.push(K);const ee=I();ee&&w.push(ee);const ne={class:L.value,style:N.value};return t.h("div",ne,w)},Z=()=>r.slots?.hide?.()??null;return()=>{const w=[],K=[],ee=C();ee&&K.push(ee);const ne=y();ne&&K.push(ne);const te={class:E.value},oe=t.h("div",te,K);w.push(oe);const re=U();re&&w.push(re);const se=Z();se&&w.push(se);const ve={class:b.value,style:g.value,prop:a.prop};return t.h("div",ve,w)}}}}const{componentName:ds,create:hs,scope:ms}=ie("item"),we=hs(fs(ds,ms,Fe,!1));function gs(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=Ue(),r=fn();dn(!1);const i=t.computed(()=>r&&a?hn(a,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&a?mn(a,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=pn(c,i.value,o.span,o.offset);Object.assign(h,b)}else if(i.value.type==="flow"){const b=gn(c,i.value,o.span,o.offset,o.width);Object.assign(h,b)}else return o.width&&(h.width=Pe(o.width)),h;else o.width&&(h.width=Pe(o.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:ps,create:vs,scope:ap}=ie("slot-item"),wl=vs(gs(ps));function ys(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=Ue(),u=fn();dn(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=hn(i,!1),c=mn(i,!1);if(h.value&&c)if(h.value.type==="grid"){const b=pn(c,h.value,o.span,o.offset);Object.assign(d,b)}else if(h.value.type==="flow"){const b=gn(c,h.value,o.span,o.offset,o.width);Object.assign(d,b)}else o.width&&(d.width=Pe(o.width))}else o.width&&(d.width=Pe(o.width));return d});return()=>{const d=[];if(l.slots.default){const c=l.slots.default();if(o.divide)for(let b=0;b<c.length;b++){if(b>0){const F=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(F)}d.push(c[b])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:ws,scope:rp}=ie("row-item"),xl=ws(ys(bs)),Ye=(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},yo={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 xs(e,n,o){return{props:{...be,...ke,...yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,F=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__readonly`]:i.value})),g=T=>{c.value=T,u("update:modelValue",T),u("input",T)},p=T=>{u("change",T)};let v=fe(l,"hintText"),P=t.ref(!1);const m=T=>{let S=T.target.value;h.value=!0,ge(v.value)||(P.value=!0),u("focus",S,T)},f=T=>{setTimeout(()=>{P.value&&(P.value=!1),h.value=!1},0);let S=T.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),u("blur",S,T)},E=()=>{u("clear","")},B=t.ref(!1);let M=null;const k=()=>{l.showTooltip&&B.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{B.value=!0},150))},R=()=>{M&&(clearTimeout(M),B.value=!1,M=null)},D=t.computed(()=>B.value||P.value),O=t.computed(()=>B.value?c.value:v.value),x=t.computed(()=>Ke(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const $={...Ye(a.attrs),ref:q,class:F.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:E,onChange:p,onInput:g,onFocus:m,onBlur:f,onMouseover:k,onMouseleave:R},S={};a.slots.prepend&&(S.prepend=a.slots.prepend),a.slots.append&&(S.append=a.slots.append),a.slots.prefix&&(S.prefix=a.slots.prefix),a.slots.suffix?S.suffix=a.slots.suffix:x.value&&(S.suffix=()=>[l.unit]);const W=[],z=t.h(A.ElInput,$,S);W.push(z);const Q={default:()=>W};a.slots.default&&(Q.label=a.slots.default),a.slots.default&&(Q.fixedTip=a.slots.fixedTip);const J={...$e(l,yo),hintText:O.value,hintVisible:D.value,prop:`${l.prop}_item`};return t.h(o,J,Q)}}}}const{componentName:Ss,create:Cs,scope:Ts}=ie("input-item"),Sl=Cs(xs(Ss,Ts,we));function Qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function tr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function $s(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ks=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ds(){const e=t.getCurrentInstance();return new ks(e.proxy)}function nr(e,n,o){const l=Qe(e,n),a=Qe(e,o);if(l!==a)return!1;const r=Ot(e,n),i=Ot(e,o);return r===i}function lr(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=tr(e,i);if(Array.isArray(u)&&u.length>0){const s=lr(e,r,o,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(o==="text")s=Qe(e,i)===r;else if(o==="item")s=nr(e,i,r);else{let d=Ot(e,i);d==null&&(d=Qe(e,i)),s=d===r}if(s){a.push(i);break}}}}),a}function Ns(e){return{text:e,value:e}}const bo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Es(e,n,o){return{props:{...be,...ke,...bo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map(_=>Qe(l,_)).join(" "):""),F=(y,_,I,U=!0)=>{const Z=lr(l,y,_,I);if(Z===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],U&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let w=!0;if(Z.length!==c.value.length)w=!1;else for(let K=0;K<Z.length;K++){const ee=Z[K],ne=c.value[K];if(!nr(l,ee,ne)){w=!1;break}}if(!w){c.value=Z;let K=[],ee=[],ne=[];Z.forEach(se=>{const ve=Ot(l,se),me=Qe(l,se);K.push(ve),ne.push(me),l.valueType==="text"?ee.push(me):l.valueType==="item"?ee.push(se):ee.push(ve)});let te,oe,re;ue(l.multiple)?(h.value=K,te=t.toRaw(ee),oe=ne,re=t.toRaw(Z)):(h.value=K[0]??"",te=t.toRaw(ee[0]??""),oe=ne[0]??"",re=t.toRaw(Z[0])),U&&(u("update:modelValue",te),u("change",te,re)),u("update:text",oe)}},g=t.ref(null),p=t.ref(null),v=t.computed(()=>p.value??g.value??[]),P=Ne(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,y=>ue(y)),m=Ds(),f=async(y,_)=>{if(y){const I=await m.load("select",y,_);if(I.length>0)if(typeof I[0]=="string"){let w=I.map(K=>Ns(K));g.value=w}else g.value=I;else g.value=null}};t.watch([()=>l.source,()=>l.params],([y,_])=>{p.value=null,f(y,_)},{immediate:!P.value});let E=!1;const B=()=>{E||(E=!0,f(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([y,_])=>{if(D()&&ue(l.multiple)){Le(_,h.value)||(h.value=_);return}F(_,l.valueType,v.value,!1),u("setValue",_)});let M=null,k=t.ref(!1);typeof l.remoteMethod=="function"&&(M=async y=>{if(y==null){p.value=null;return}k.value=!0;try{const _=await l.remoteMethod(y);_&&(p.value=_)}catch(_){p.value=null,console.error(_)}k.value=!1});let R=null;typeof l.filterMethod=="function"&&(R=async y=>{if(y==null){p.value=null;return}k.value=!0;try{const _=await l.filterMethod(y,g.value);_&&(p.value=_)}catch(_){p.value=null,console.error(_)}k.value=!1});const D=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",O=t.ref(!1),x=e,q=t.computed(()=>({[x]:!0})),T=y=>{l.allowCreate||D()&&ue(l.multiple)?(u("update:modelValue",y),u("change",y),u("update:text",y),h.value=y):F(y,"value",v.value,!0)};let $=fe(l,"hintText"),S=t.ref(!1);const W=y=>{let I=y.target.value;O.value=!0,ge($.value)||(S.value=!0),u("focus",I,y)},z=y=>{setTimeout(()=>{S.value&&(S.value=!1),O.value=!1},0);let I=y.target.value;l.maxLength&&I.length>Number(l.maxLength)&&(I=I.slice(0,Number(l.maxLength))),j.value||u("blur",I,y)},Q=()=>{u("clear","")},G=t.ref(!1);let J=null;const le=()=>{l.showTooltip&&G.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{G.value=!0},150))},L=()=>{J&&(clearTimeout(J),G.value=!1,J=null)},N=t.computed(()=>G.value||S.value),H=t.computed(()=>G.value?b.value:$.value),j=t.ref(!1),V=y=>{j.value=y,u("visible-change",y),y||u("selected")},X=y=>{u("remove-tag",y)},Y=(y,_)=>{const I=[];return y.forEach((U,Z)=>{const w=tr(l,U);if(Array.isArray(w)&&w.length>0){const K=Y(w,_),ee=Qe(l,U),te={key:`${ee}_${Z}`,label:ee};I.push(t.h(A.ElOptionGroup,te,{default:()=>K}))}else{const K=Ot(l,U),ee=Qe(l,U),ne=$s(l,U),oe={key:`${K}_${Z}`,label:ee,disabled:ne,value:K};if(typeof _=="function")I.push(t.h(A.ElOption,oe,{default:()=>_(U)}));else if(l.optionType==="item"){const re={class:{"fox-select-item__option-left":!0}},se=t.h("span",re,[K]),ve={class:{"fox-select-item__option-right":!0}},me=t.h("span",ve,[ee]),Ze=t.h("div",{class:{"fox-select-item__option":!0}},[se,me]);I.push(t.h(A.ElOption,oe,{default:()=>Ze}))}else l.optionType==="value"?I.push(t.h(A.ElOption,oe,{default:()=>[K]})):I.push(t.h(A.ElOption,oe))}}),I},C=t.ref();return pe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()}}),()=>{const _={...Ye(a.attrs),ref:C,class:q.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:Q,onChange:T,onFocus:W,onBlur:z,onVisibleChange:V,onRemoveTag:X};typeof M=="function"&&(_["remote-method"]=M,_.loading=k.value),typeof R=="function"&&(_["filter-method"]=R,_.loading=k.value);const I={};a.slots.prefix&&(I.prefix=a.slots.prefix),a.slots.empty&&(I.empty=a.slots.empty),a.slots.options?I.default=a.slots.options:I.default=()=>Y(v.value,a.slots.option);const U=[],Z=t.h(A.ElSelect,_,I);U.push(Z);const w={default:()=>U};a.slots.default&&(w.label=a.slots.default),a.slots.fixedTip&&(w.fixedTip=a.slots.fixedTip);const ee={...$e(l,bo),hintText:H.value,hintVisible:N.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:le,onMouseleave:L};return P.value&&(ee["appear-listen"]=!0,ee.onAppear=B),t.h(o,ee,w)}}}}const{componentName:Vs,create:Is,scope:Ps}=ie("select-item"),Cl=Is(Es(Vs,Ps,we));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",c="month",b="quarter",F="year",g="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(T,$,S){var W=String(T);return!W||W.length>=$?T:""+Array($+1-W.length).join(S)+T},E={s:f,z:function(T){var $=-T.utcOffset(),S=Math.abs($),W=Math.floor(S/60),z=S%60;return($<=0?"+":"-")+f(W,2,"0")+":"+f(z,2,"0")},m:function T($,S){if($.date()<S.date())return-T(S,$);var W=12*(S.year()-$.year())+(S.month()-$.month()),z=$.clone().add(W,c),Q=S-z<0,G=$.clone().add(W+(Q?-1:1),c);return+(-(W+(S-z)/(Q?z-G:G-z))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:F,w:h,d,D:g,h:s,m:u,s:i,ms:r,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},B="en",M={};M[B]=m;var k=function(T){return T instanceof x},R=function T($,S,W){var z;if(!$)return B;if(typeof $=="string"){var Q=$.toLowerCase();M[Q]&&(z=Q),S&&(M[Q]=S,z=Q);var G=$.split("-");if(!z&&G.length>1)return T(G[0])}else{var J=$.name;M[J]=$,z=J}return!W&&z&&(B=z),z||!W&&B},D=function(T,$){if(k(T))return T.clone();var S=typeof $=="object"?$:{};return S.date=T,S.args=arguments,new x(S)},O=E;O.l=R,O.i=k,O.w=function(T,$){return D(T,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var x=function(){function T(S){this.$L=R(S.locale,null,!0),this.parse(S)}var $=T.prototype;return $.parse=function(S){this.$d=function(W){var z=W.date,Q=W.utc;if(z===null)return new Date(NaN);if(O.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var G=z.match(v);if(G){var J=G[2]-1||0,le=(G[7]||"0").substring(0,3);return Q?new Date(Date.UTC(G[1],J,G[3]||1,G[4]||0,G[5]||0,G[6]||0,le)):new Date(G[1],J,G[3]||1,G[4]||0,G[5]||0,G[6]||0,le)}}return new Date(z)}(S),this.$x=S.x||{},this.init()},$.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},$.$utils=function(){return O},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(S,W){var z=D(S);return this.startOf(W)<=z&&z<=this.endOf(W)},$.isAfter=function(S,W){return D(S)<this.startOf(W)},$.isBefore=function(S,W){return this.endOf(W)<D(S)},$.$g=function(S,W,z){return O.u(S)?this[W]:this.set(z,S)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(S,W){var z=this,Q=!!O.u(W)||W,G=O.p(S),J=function(Y,C){var y=O.w(z.$u?Date.UTC(z.$y,C,Y):new Date(z.$y,C,Y),z);return Q?y:y.endOf(d)},le=function(Y,C){return O.w(z.toDate()[Y].apply(z.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(C)),z)},L=this.$W,N=this.$M,H=this.$D,j="set"+(this.$u?"UTC":"");switch(G){case F:return Q?J(1,0):J(31,11);case c:return Q?J(1,N):J(0,N+1);case h:var V=this.$locale().weekStart||0,X=(L<V?L+7:L)-V;return J(Q?H-X:H+(6-X),N);case d:case g:return le(j+"Hours",0);case s:return le(j+"Minutes",1);case u:return le(j+"Seconds",2);case i:return le(j+"Milliseconds",3);default:return this.clone()}},$.endOf=function(S){return this.startOf(S,!1)},$.$set=function(S,W){var z,Q=O.p(S),G="set"+(this.$u?"UTC":""),J=(z={},z[d]=G+"Date",z[g]=G+"Date",z[c]=G+"Month",z[F]=G+"FullYear",z[s]=G+"Hours",z[u]=G+"Minutes",z[i]=G+"Seconds",z[r]=G+"Milliseconds",z)[Q],le=Q===d?this.$D+(W-this.$W):W;if(Q===c||Q===F){var L=this.clone().set(g,1);L.$d[J](le),L.init(),this.$d=L.set(g,Math.min(this.$D,L.daysInMonth())).$d}else J&&this.$d[J](le);return this.init(),this},$.set=function(S,W){return this.clone().$set(S,W)},$.get=function(S){return this[O.p(S)]()},$.add=function(S,W){var z,Q=this;S=Number(S);var G=O.p(W),J=function(N){var H=D(Q);return O.w(H.date(H.date()+Math.round(N*S)),Q)};if(G===c)return this.set(c,this.$M+S);if(G===F)return this.set(F,this.$y+S);if(G===d)return J(1);if(G===h)return J(7);var le=(z={},z[u]=l,z[s]=a,z[i]=o,z)[G]||1,L=this.$d.getTime()+S*le;return O.w(L,this)},$.subtract=function(S,W){return this.add(-1*S,W)},$.format=function(S){var W=this,z=this.$locale();if(!this.isValid())return z.invalidDate||p;var Q=S||"YYYY-MM-DDTHH:mm:ssZ",G=O.z(this),J=this.$H,le=this.$m,L=this.$M,N=z.weekdays,H=z.months,j=function(C,y,_,I){return C&&(C[y]||C(W,Q))||_[y].slice(0,I)},V=function(C){return O.s(J%12||12,C,"0")},X=z.meridiem||function(C,y,_){var I=C<12?"AM":"PM";return _?I.toLowerCase():I},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:O.s(L+1,2,"0"),MMM:j(z.monthsShort,L,H,3),MMMM:j(H,L),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:j(z.weekdaysMin,this.$W,N,2),ddd:j(z.weekdaysShort,this.$W,N,3),dddd:N[this.$W],H:String(J),HH:O.s(J,2,"0"),h:V(1),hh:V(2),a:X(J,le,!0),A:X(J,le,!1),m:String(le),mm:O.s(le,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:G};return Q.replace(P,function(C,y){return y||Y[C]||G.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(S,W,z){var Q,G=O.p(W),J=D(S),le=(J.utcOffset()-this.utcOffset())*l,L=this-J,N=O.m(this,J);return N=(Q={},Q[F]=N/12,Q[c]=N,Q[b]=N/3,Q[h]=(L-le)/6048e5,Q[d]=(L-le)/864e5,Q[s]=L/a,Q[u]=L/l,Q[i]=L/o,Q)[G]||L,z?N:O.a(N)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return M[this.$L]},$.locale=function(S,W){if(!S)return this.$L;var z=this.clone(),Q=R(S,W,!0);return Q&&(z.$L=Q),z},$.clone=function(){return O.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()},T}(),q=x.prototype;return D.prototype=q,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",F],["$D",g]].forEach(function(T){q[T[1]]=function($){return this.$g($,T[0],T[1])}}),D.extend=function(T,$){return T.$i||(T($,x,D),T.$i=!0),D},D.locale=R,D.isDayjs=k,D.unix=function(T){return D(1e3*T)},D.en=M[B],D.Ls=M,D.p={},D})})(or);var Os=or.exports;const He=Xe(Os);var ar={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(v){this[p]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var P=v.match(/([+-]|\d\d)/g),m=60*P[1]+(+P[2]||0);return m===0?0:P[0]==="+"?-m:m}(p)}],c=function(p){var v=u[p];return v&&(v.indexOf?v:v.s.concat(v.f))},b=function(p,v){var P,m=u.meridiem;if(m){for(var f=1;f<=24;f+=1)if(p.indexOf(m(f,0,v))>-1){P=f>12;break}}else P=p===(v?"pm":"PM");return P},F={A:[i,function(p){this.afternoon=b(p,!1)}],a:[i,function(p){this.afternoon=b(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[i,function(p){var v=u.ordinal,P=p.match(/\d+/);if(this.day=P[0],v)for(var m=1;m<=31;m+=1)v(m).replace(/\[|\]/g,"")===p&&(this.day=m)}],M:[r,d("month")],MM:[a,d("month")],MMM:[i,function(p){var v=c("months"),P=(c("monthsShort")||v.map(function(m){return m.slice(0,3)})).indexOf(p)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[i,function(p){var v=c("months").indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(p){this.year=s(p)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function g(p){var v,P;v=p,P=u&&u.formats;for(var m=(p=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,O,x){var q=x&&x.toUpperCase();return O||P[x]||o[x]||P[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,$,S){return $||S.slice(1)})})).match(l),f=m.length,E=0;E<f;E+=1){var B=m[E],M=F[B],k=M&&M[0],R=M&&M[1];m[E]=R?{regex:k,parser:R}:B.replace(/^\[|\]$/g,"")}return function(D){for(var O={},x=0,q=0;x<f;x+=1){var T=m[x];if(typeof T=="string")q+=T.length;else{var $=T.regex,S=T.parser,W=D.slice(q),z=$.exec(W)[0];S.call(O,z),D=D.replace(z,"")}}return function(Q){var G=Q.afternoon;if(G!==void 0){var J=Q.hours;G?J<12&&(Q.hours+=12):J===12&&(Q.hours=0),delete Q.afternoon}}(O),O}}return function(p,v,P){P.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(s=p.parseTwoDigitYear);var m=v.prototype,f=m.parse;m.parse=function(E){var B=E.date,M=E.utc,k=E.args;this.$u=M;var R=k[1];if(typeof R=="string"){var D=k[2]===!0,O=k[3]===!0,x=D||O,q=k[2];O&&(q=k[2]),u=this.$locale(),!D&&q&&(u=P.Ls[q]),this.$d=function(W,z,Q){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*W);var G=g(z)(W),J=G.year,le=G.month,L=G.day,N=G.hours,H=G.minutes,j=G.seconds,V=G.milliseconds,X=G.zone,Y=new Date,C=L||(J||le?1:Y.getDate()),y=J||Y.getFullYear(),_=0;J&&!le||(_=le>0?le-1:Y.getMonth());var I=N||0,U=H||0,Z=j||0,w=V||0;return X?new Date(Date.UTC(y,_,C,I,U,Z,w+60*X.offset*1e3)):Q?new Date(Date.UTC(y,_,C,I,U,Z,w)):new Date(y,_,C,I,U,Z,w)}catch{return new Date("")}}(B,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&B!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var T=R.length,$=1;$<=T;$+=1){k[1]=R[$-1];var S=P.apply(this,k);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}$===T&&(this.$d=new Date(""))}else f.call(this,E)}}})})(ar);var As=ar.exports;const Fs=Xe(As);var rr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=r.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),c=(u||"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(b){switch(b){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return h.s(s.week(),b==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),b==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return b}});return i.bind(this)(c)}}})})(rr);var Bs=rr.exports;const Ms=Xe(Bs);var ir={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,b,F,g,p){var v=c.name?c:c.$locale(),P=i(v[b]),m=i(v[F]),f=P||m.map(function(B){return B.slice(0,g)});if(!p)return f;var E=v.weekStart;return f.map(function(B,M){return f[(M+(E||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(c,b){return c.formats[b]||function(F){return F.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,p,v){return p||v.slice(1)})}(c.formats[b.toUpperCase()])},h=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):u(c,"months")},monthsShort:function(b){return b?b.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):u(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(c){return u(s(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}})})(ir);var Rs=ir.exports;const Ls=Xe(Rs);var sr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(h.isBefore(c))return 1}var b=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),F=this.diff(b,o,!0);return F<0?i(this).startOf("week").week():Math.ceil(F)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(sr);var _s=sr.exports;const qs=Xe(_s);var ur={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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}}})})(ur);var zs=ur.exports;const js=Xe(zs);var cr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,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")}}})})(cr);var Hs=cr.exports;const Ks=Xe(Hs);var fr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(fr);var Ys=fr.exports;const Ws=Xe(Ys);var dr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ge,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(dr);var Us=dr.exports;const Gs=Xe(Us);He.extend(Ls);He.extend(Ms);He.extend(Fs);He.extend(qs);He.extend(js);He.extend(Ks);He.extend(Ws);He.extend(Gs);const ae={format(e,n){return He(e).format(n)},parser(e,n){return He(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){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(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,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}},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}},wo={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 Xs(e,n,o){return{props:{...be,...ke,...wo,...xo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=t.computed(()=>S.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),F=t.computed(()=>S.value?"longTermKey":"normalKey"),g=C=>{if(S.value&&l.type==="daterange"){const y=[...c.value];y[0]=C,c.value=y}else c.value=C;u("update:modelValue",c.value),u("change",c.value)},p=t.computed(()=>S.value&&l.type==="daterange"?"date":l.type),v=e,P=t.computed(()=>({[`${v}`]:!0,"is-long":S.value,"is-readonly":i.value,"is-disabled":r.value}));let m=fe(l,"hintText"),f=t.ref(!1);const E=C=>{let _=C.target.value;h.value=!0,ge(m.value)||(f.value=!0),u("focus",_,C)},B=C=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let _=C.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),u("blur",_,C)},M=()=>{u("clear","")},k=C=>{u("calendar-change",C)},R=(C,y,_)=>{u("panel-change",C,y,_)},D=C=>{u("visible-change",C)},O=Ne(t.computed(()=>l.longTermText),"longTermText",Me.Near),x=Ne(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Me.Near),q=Ne(t.computed(()=>l.longTermValue),"longTermValue",Me.Near),T=Ne(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let $=null;const S=t.ref(ue(l.longTerm)),W=C=>{if(S.value=C,u("update:longTerm",C),C){if($=c.value,l.type==="daterange"){const y=[];Array.isArray(q.value)?(y[0]=c.value?c.value[0]??q.value[0]:null,y[1]=q.value[1]??q.value[0]):(y[0]=c.value?c.value[0]??q.value:null,y[1]=S.value),y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else Array.isArray(q.value)?c.value=q.value[1]??q.value[0]:c.value=q.value,c.value||(c.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);u("update:modelValue",c.value)}else{if(l.type==="daterange"){const y=[];y[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray($)?y[1]=$[1]:y[1]=$,y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else c.value=$;u("update:modelValue",c.value),setTimeout(()=>{X()},100)}},z=ue(l.isLongTerm);if(z){const C=()=>{if(S.value===!0){if($=c.value,l.type==="daterange"){const y=[c.value[0]];Array.isArray(q.value)?y[1]=q.value[1]??q.value[0]:y[1]=S.value,y[0]||(y[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),y[1]||(y[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),c.value=y}else c.value=q.value;u("update:modelValue",c.value)}else Le(q.value,c.value)&&(S.value=!0)};C(),t.watch([()=>l.longTerm],([y])=>{S.value!==y&&C()}),t.watch([()=>c.value],([y])=>{let _=!1;if(l.type==="daterange"&&Array.isArray(y))try{let I=y[1];if(!I)return;typeof I!="string"&&l.valueFormat&&(I=ae.format(I,l.valueFormat));let U=Array.isArray(q.value)?q.value[1]:q.value;(I===U||Array.isArray(T.value)&&T.value.findIndex(w=>I==w)!==-1)&&(_=!0)}catch(I){console.error(I)}S.value!==_&&(S.value=_)},{immediate:!0})}const Q=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),G=t.ref(),J=t.ref(),le=/^\d+$/,L=(C,y)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(C,y):le.test(C)&&C.length===l.flashFillThreshold,N=(C,y)=>{let _;if(typeof l.flashFillFormat=="function")_=l.flashFillFormat(C,y);else{const U=l.flashFillFormat??"YYYYMMDD";_=ae.parser(C,U)}const I=l.valueFormat??"YYYY-MM-DD";return ae.format(_,I)},H=C=>C?C.endsWith("range"):!1,j=C=>{if(!C.target)return;const y=C.target.value??"";if(L(y,l.type)){const _=N(y,l.type);if(H(l.type)){const I=Array.isArray(c.value)?[...c.value]:[];I[0]=_,g(I)}else g(_)}},V=C=>{if(!C.target)return;const y=C.target.value??"";if(L(y,l.type)){const _=N(y,l.type);if(H(l.type)){const I=Array.isArray(c.value)?[...c.value]:[];I[1]=_,g(I)}else g(_)}},X=()=>{if(l.flashFill&&G.value&&G.value.$el)if(H(l.type)){const C=G.value.$el.querySelectorAll("input.el-range-input");C[0]&&C[0].addEventListener("input",j),C[1]&&C[1].addEventListener("input",V)}else{const C=G.value.$el.querySelector("input.el-input__inner");C&&C.addEventListener("input",j)}},Y=()=>{if(l.flashFill&&G.value&&G.value.$el)if(H(l.type)){const C=G.value.$el.querySelectorAll("input.el-range-input");C[0]&&C[0].removeEventListener("input",j),C[1]&&C[1].removeEventListener("input",V)}else{const C=G.value.$el.querySelector("input.el-input__inner");C&&C.removeEventListener("input",j)}};return t.onMounted(X),t.onBeforeUnmount(Y),pe({focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},handleOpen:()=>{J?.value.handleOpen()},handleClose:()=>{J?.value.handleClose()}}),()=>{const y={...a.attrs,key:F.value,type:p.value,ref:J,class:P.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:b.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":g,onClear:M,onFocus:E,onBlur:B,onCalendarChange:k,onPanelChange:R,onVisibleChange:D},_={};a.slots["range-separator"]&&(_["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(_.default=a.slots.cell);const I=[],U=t.h(A.ElDatePicker,y,_);I.push(U);const Z={default:()=>I};if(a.slots.default&&(Z.label=a.slots.default),a.slots.fixedTip&&(Z.fixedTip=a.slots.fixedTip),z){if(S.value){const ne=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),te=t.h("input",{class:["fox-date-item__long-text"],value:O.value,readonly:!0}),oe={class:Q.value},re=t.h("div",oe,{default:()=>[ne,te]});I.push(re)}if(!i.value&&!r.value){const ne={label:x.value||O.value,disabled:i.value||r.value,modelValue:S.value,"onUpdate:modelValue":W},te=t.h(A.ElCheckbox,ne),oe=t.h("div",{class:{[`${v}__append`]:!0}},[te]);Z.append=()=>oe}}const K={...$e(l,wo,xo),ref:G,class:{[`${v}__wrapper`]:!0,"has-append":z},hintText:m.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(o,K,Z)}}}}const{componentName:Zs,create:Js,scope:Qs}=ie("date-item"),Tl=Js(Xs(Zs,Qs,we)),eu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),$l={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}},kl={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:{}}},hr=2e3;let So=hr;const tu=(e,n)=>({components:n,props:{...kl},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!==hr&&(So=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++So,o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=p=>{l("click-pop",p)},c=p=>{p.stopPropagation(),l("click-close-icon",p),l("update:visible",!1)},b=p=>{l("click-overlay",p),o.closeOnClickOverlay&&l("update:visible",!1)},F=p=>{l("opend",p)},g=p=>{l("closed",p)};return t.watch(()=>o.visible,p=>{o.visible?s():d()}),t.watch(()=>o.closeable,p=>{a.closed=p}),{...t.toRefs(a),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:b,onOpened:F,onClosed:g}}});let $t=0;const Co="fox-overflow-hidden",To=()=>ut?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!$t&&To().classList.add(Co),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&To().classList.remove(Co)}catch{}}],lu={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:ou,create:au}=ie("overlay"),ru=au({props:{...lu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=nu(()=>e.lockScroll),a=t.computed(()=>({[ou]:!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 iu(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 yn=De(ru,[["render",iu]]),su=["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),cu=[uu],fu=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,d)=>(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"},cu,14,su))}}),du=["aria-labelledby"],hu=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),mu=[hu],gu=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,d)=>(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"},mu,14,du))}}),pu=["aria-labelledby"],vu=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),yu=[vu],bn=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,d)=>(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"},yu,14,pu))}}),bu=["aria-labelledby"],wu=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),xu=[wu],mr=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,d)=>(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"},xu,14,bu))}}),Su=["aria-labelledby"],Cu=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),Tu=[Cu],gr=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,d)=>(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"},Tu,14,Su))}}),$u=["aria-labelledby"],ku=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),Du=[ku],Nu=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,d)=>(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"},Du,14,$u))}}),Eu=["aria-labelledby"],Vu=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),Iu=[Vu],Pu=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,d)=>(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"},Iu,14,Eu))}}),Ou=["aria-labelledby"],Au=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),Fu=[Au],Bu=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,d)=>(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"},Fu,14,Ou))}}),{componentName:Mu,create:Ru}=ie("popup"),Lu=Ru(tu(Mu,{FoxOverLay:yn,Close:mr}));function _u(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 ct=De(Lu,[["render",_u]]),$o=39,ko=64,{create:qu,scope:zu}=ie("calendar-pane"),ju=qu({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}=ye.useFoxI18n(zu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${$o}px`})),u=t.computed(()=>({height:`${ko}px`})),s=JSON.parse(a("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),b=t.ref(null),F=t.ref(null),g=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>o.btn),P=t.computed(()=>o["top-info"]),m=t.computed(()=>o["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),E=C=>C.split("-"),B=C=>ae.isEqual(f.currDate[0],C),M=C=>ae.isEqual(f.currDate[1],C),k=C=>f.currDate?.length>0?f.currDate?.some(y=>ae.isEqual(y,C)):!1,R=(C,y)=>y.curData[0]+"-"+y.curData[1]+"-"+ae.getNumTwoBit(+C.day),D=(C,y)=>{const _=R(C,y),{type:I}=e;return C.type=="curr"?ae.isEqual(f.currDate,_)||(I=="range"||I=="week")&&(B(_)||M(_))||I=="multiple"&&k(_)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(_,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,_)?`${f.dayPrefix}--disabled`:(I=="range"||I=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],_)&&ae.compareDate(_,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},O=()=>{const{type:C}=e;if(C=="range"&&f.chooseData.length==2||C!="range"){let y=f.chooseData.slice(0);C=="week"&&(y={weekDate:[q(f.chooseData[0]),q(f.chooseData[1])]}),n("choose",y),e.poppable&&n("update")}},x=(C,y,_=!1)=>{if(D(C,y)!=`${f.dayPrefix}--disabled`){const{type:I}=e;let[U,Z]=y.curData,w=[...y.curData];if(w[2]=ae.getNumTwoBit(Number(C.day)),w[3]=`${w[0]}-${w[1]}-${w[2]}`,w[4]=ae.getWhatDay(+w[0],+w[1],+w[2]),I=="multiple")if(f.currDate?.length>0){let K;f.currDate?.forEach((ee,ne)=>{ee==w[3]&&(K=ne)}),_?f.chooseData.push([...w]):K!==void 0?(f.currDate.splice(K,1),f.chooseData.splice(K,1)):(f.currDate.push(w[3]),f.chooseData.push([...w]))}else f.currDate=[w[3]],f.chooseData=[[...w]];else if(I=="range"){let K=Object.values(f.currDate).length;K==2||K==0?f.currDate=[w[3]]:ae.compareDate(f.currDate[0],w[3])?Array.isArray(f.currDate)&&f.currDate.push(w[3]):Array.isArray(f.currDate)&&f.currDate.unshift(w[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...w]]:ae.compareDate(f.chooseData[0][3],w[3])?f.chooseData=[...f.chooseData,[...w]]:f.chooseData=[[...w],...f.chooseData]}else if(I=="week"){let K=ae.getWeekDate(U,Z,C.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(K[0],f.propStartDate)&&K.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,K[1])&&K.splice(1,1,f.propEndDate),f.currDate=K,f.chooseData=[ae.formatResultDate(K[0]),ae.formatResultDate(K[1])]}else f.currDate=w[3],f.chooseData=[...w];if(!_){let K=f.chooseData;I=="week"&&(K={weekDate:[q(f.chooseData[0]),q(f.chooseData[1])]}),n("select",K),(e.isAutoBackFill||!e.poppable)&&O()}}},q=C=>{let[y,_,I]=C;return{date:C,monthWeekNum:ae.getMonthWeek(y,_,I,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(y,_,I,e.firstDayOfWeek)}},T=C=>{const y=C=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let _=parseInt(y.curData[0]),I=parseInt(y.curData[1].toString().replace(/^0/,""));switch(C){case"prev":I==1&&(_-=1),I=I==1?12:--I;break;case"next":I==12&&(_+=1),I=I==12?1:++I;break}return[_+"",ae.getNumTwoBit(I),ae.getMonthDays(String(_),String(I))+""]},$=(C,y,_)=>{let{year:I,month:U}=_;return y=="prev"&&C>=7&&(C-=7),Array.from(Array(C),(Z,w)=>({day:String(w+1),type:y,year:I,month:U}))},S=(C,y,_,I)=>{C=C-e.firstDayOfWeek;let{year:U,month:Z}=_;return y=="prev"&&C>=7&&(C-=7),Array.from(Array(I),(K,ee)=>({day:String(ee+1),type:y,year:U,month:Z})).slice(I-C)},W=(C,y)=>{const _=ae.getMonthPreDay(+C[0],+C[1]);let I=Number(C[1])-1,U=Number(C[0]);I<=0&&(I=12,U+=1);const Z=ae.getMonthDays(String(C[0]),String(C[1])),w=ae.getMonthDays(U+"",I+""),K={year:C[0],month:C[1]},ee={curData:C,title:a("monthTitle",{year:K.year,month:K.month}),monthData:[...S(_,"prev",{month:String(I),year:String(U)},w),...$(Z,"curr",K)],cssHeight:0,cssScrollHeight:0},ne=ee.monthData.length>35?6:5;ee.cssHeight=$o+ko*ne;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),ee.cssScrollHeight=te,y=="next"?(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${C[0]}-${C[1]}-${C[2]}`))&&f.monthsData.push(ee):!f.startData||!ae.compareDate(`${C[0]}-${C[1]}-${C[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(ee):f.unLoadPrev=!0},z=()=>{let C=e.startDate?e.startDate:ae.getDay(0),y=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=C,f.propEndDate=y,f.startData=E(C),f.endData=E(y),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const _={year:Number(f.startData[0]),month:Number(f.startData[1])},I={year:Number(f.endData[0]),month:Number(f.endData[1])};let U=I.month-_.month;I.year-_.year>0&&(U=U+12*(I.year-_.year)),U<=0&&(U=1),W(f.startData,"next");let Z=1;do W(T("next"),"next");while(Z++<U);if(f.monthsNum=U,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(C&&ae.compareDate(f.currDate[0],C)&&f.currDate.splice(0,1,C),y&&ae.compareDate(y,f.currDate[1])&&f.currDate.splice(1,1,y),f.defaultData=[...E(f.currDate[0]),...E(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let w=[],K={};f.currDate.forEach(ee=>{C&&!ae.compareDate(ee,C)&&y&&!ae.compareDate(y,ee)&&(Object.hasOwnProperty.call(K,ee)||(w.push(ee),K[ee]=ee))}),f.currDate=[...w],f.defaultData=[...E(w[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[w,K,ee]=E(f.currDate[0]),ne=ae.getWeekDate(w,K,ee,e.firstDayOfWeek);f.currDate=ne,C&&ae.compareDate(f.currDate[0],C)&&f.currDate.splice(0,1,C),y&&ae.compareDate(y,f.currDate[1])&&f.currDate.splice(1,1,y),f.defaultData=[...E(f.currDate[0]),...E(f.currDate[1])]}}else f.currDate&&(C&&ae.compareDate(f.currDate,C)?f.currDate=C:y&&!ae.compareDate(f.currDate,y)&&(f.currDate=y),f.defaultData=[...E(f.currDate)])};pe({scrollToDate:C=>{ae.compareDate(C,f.propStartDate)?C=f.propStartDate:ae.compareDate(C,f.propEndDate)||(C=f.propEndDate);let y=E(C);f.monthsData.forEach((_,I)=>{if(_.title==a("monthTitle",{year:y[0],month:y[1]})&&h.value){let U=f.monthsData[I].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let Z=0,w=setInterval(()=>{if(Z++,h.value){let K=U/10;h.value.scrollTop=h.value.scrollTop+K}Z>=10&&(clearInterval(w),h.value&&(h.value.scrollTop=f.monthsData[I].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[I].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let C=0,y=0;f.defaultData.length>0&&f.monthsData.forEach((U,Z)=>{U.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(C=Z),(e.type=="range"||e.type=="week")&&U.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(y=Z)}),le(f.monthsNum,C),f.currentIndex=C,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(x({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),x({day:f.defaultData[5],type:"curr"},f.monthsData[y],!0)):e.type=="week"?x({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(U=>{let Z=E(U),w=f.currentIndex;f.monthsData.forEach((K,ee)=>{K.title==a("monthTitle",{year:Z[0],month:Z[1]})&&(w=ee)}),x({day:Z[2],type:"curr"},f.monthsData[w],!0)}):x({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let _=f.monthsData[f.monthsData.length-1],I=_.cssHeight+_.cssScrollHeight;rl(()=>{h?.value&&c?.value&&F?.value&&(g.value=h.value.clientHeight,c.value.style.height=`${I}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(I/(f.monthsNum+1))}});const le=(C,y)=>{C>=3?y>0&&y<C?f.defaultRange=[y-1,y+3]:y==0?f.defaultRange=[y,y+4]:y==C&&(f.defaultRange=[y-2,y+2]):f.defaultRange=[0,C+2];let _=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=_},L=(C,y)=>(e.type=="range"||e.type=="week")&&C.type=="curr"&&D(C,y)=="fox-calendar__day--active",N=(C,y)=>L(C,y)&&B(R(C,y)),H=(C,y)=>f.currDate.length>=2&&M(R(C,y))?L(C,y):!1,j=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},V=C=>{const y=`${C.year}-${C.month}-${Number(C.day)<10?"0"+C.day:C.day}`;return ae.isEqual(y,ae.date2Str(new Date))},X=C=>{if(f.monthsData.length<=1)return;const y=C.target.scrollTop;let _=Math.floor(y/f.avgHeight);if(_==0)y>=f.monthsData[_+1].cssScrollHeight&&(_+=1);else if(_>0&&_<f.monthsNum-1)y>=f.monthsData[_+1].cssScrollHeight&&(_+=1),y<f.monthsData[_].cssScrollHeight&&(_-=1);else{const I=Math.round(y+g.value);I<f.monthsData[_].cssScrollHeight+f.monthsData[_].cssHeight&&y>f.monthsData[_-1].cssScrollHeight&&(_-=1),_+1<=f.monthsNum&&I>=f.monthsData[_+1].cssScrollHeight+f.monthsData[_+1].cssHeight&&(_+=1),_>=1&&y<f.monthsData[_-1].cssScrollHeight&&(_-=1)}f.currentIndex!==_&&(f.currentIndex=_,le(f.monthsNum,_)),f.yearMonthTitle=f.monthsData[_].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),z()};return z(),t.watch(()=>e.defaultValue,C=>{C&&e.poppable&&Y()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:p,showTopBtn:v,topInfo:P,bottomInfo:m,rangeTip:j,mothsViewScroll:X,getClass:D,isStartTip:N,isEndTip:H,chooseDay:x,isCurrDay:V,confirm:O,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:b,viewArea:F}}}),Hu={class:"fox-calendar__header"},Ku={key:0,class:"fox-calendar__header-title"},Yu={key:1,class:"fox-calendar__header-slot"},Wu={key:2,class:"fox-calendar__header-subtitle"},Uu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Gu={class:"fox-calendar__panel",ref:"monthsPanel"},Xu={class:"fox-calendar__days"},Zu=["onClick"],Ju={class:"fox-calendar__day-value"},Qu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},ec={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},tc={key:2,class:"fox-calendar__day-tips--curr"},nc={key:4,class:"fox-calendar__day-tip"},lc={key:0,class:"fox-calendar__footer"};function oc(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",Hu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Yu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Wu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uu,[(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",Gu,[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",Xu,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Ju,[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",Qu,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",ec,[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",tc,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",nc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Zu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",lc,[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 ac=De(ju,[["render",oc]]),{create:rc}=ie("calendar-picker"),ic=rc({components:{CalendarPane:ac,Popup:ct},props:{...$l},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=v=>{u.value?.scrollToDate(v)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const v=["fox-calendar__popup"];return e.popClass&&v.push(e.popClass),v});t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),pe({scrollToDate:s,initPosition:d});const c=()=>{n("update:visible",!1)},b=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{b()},update:c,close:b,select:v=>{n("select",v)},choose:v=>{b(),n("choose",v)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function sc(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 wn=De(ic,[["render",sc]]),Rn=(e,n)=>{let o;return et(e)?o=e:typeof e=="string"&&Ke(e)>0?o=ae.parser(e,n):o=new Date,o},ft=(e,n,o)=>(et(n)||(n=new Date),ae.format(n,o)),dt=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]},Do={...$l,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:{...be,...ke,...Do},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]);let h=fe(l,"hintText"),c=t.ref(!1);const b=t.ref(!1),F=t.computed(()=>l.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},v=(z,Q="one",G="YYYY-MM-DD")=>{if(eu(z)){p();return}if(F.value&&Array.isArray(z)&&z.length==2){let J,le;typeof z[0]=="string"?(J=Rn(z[0],G),le=Rn(z[1],G)):(J=z[0],le=z[1]);let L=dt(J),N=dt(le);(g.startDate===null||g.startDate.getTime()!==J.getTime()||g.endDate?.getTime()!==le.getTime())&&(g.startDate=J,g.startArray=L,g.endDate=le,g.endArray=N)}else{let J;typeof z=="string"?J=Rn(z,G):J=z;let le=dt(J);(g.startDate===null||g.startDate.getTime()!==J.getTime())&&(g.startDate=J,g.startArray=le)}};v(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,z=>{v(z,l.type,l.valueFormat),u("setValue",z)});const P=t.computed(()=>{if(g.startDate===null)return"";if(F.value){let z=ft(l,g.startDate,l.format),Q=ft(l,g.endDate,l.format);return`${z} ${l.rangeSeparator} ${Q}`}else{let z=ft(l,g.startDate,l.format);return l.showWeek&&(z=`${z} ${g.startArray[4]}`),z}}),m=t.computed(()=>{if(g.startDate===null)return null;if(F.value){let z=ae.date2Str(g.startDate),Q=ae.date2Str(g.endDate??new Date);return[z,Q]}else return ae.date2Str(g.startDate)}),f="fox-input-item",E=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),B=Ne(t.computed(()=>l.textAlign),"textAlign"),M=t.computed(()=>({textAlign:B.value??"right"})),k=t.ref(!1),R=()=>{i.value||r.value||(k.value=!0)},D=()=>{k.value=!1},O=z=>{k.value=z},x=z=>{if(z){if(F.value&&Array.isArray(z)){let Q=z[0],G=de(Q[0]),J=de(Q[1]),le=de(Q[2]),L=new Date(G,J-1,le),N=z[1];G=de(N[0]),J=de(N[1]),le=de(N[2]);let H=new Date(G,J-1,le);if(g.startDate=L,g.startArray=dt(L),g.endDate=H,g.endArray=dt(H),l.valueFormat){let j=ft(l,L,l.valueFormat),V=ft(l,H,l.valueFormat);u("update:modelValue",[j,V],{})}else u("update:modelValue",[L,H],{})}else{let Q=z,G=de(Q[0]),J=de(Q[1]),le=de(Q[2]),L=new Date(G,J-1,le);if(g.startDate=L,g.startArray=dt(L),l.valueFormat){let N=ft(l,L,l.valueFormat);u("update:modelValue",N,{})}else u("update:modelValue",L,{})}u("change",z,{})}},q=z=>{let G=z.target.value;b.value=!0,u("focus",G,z)},T=z=>{setTimeout(()=>{b.value=!1},0);let G=z.target.value;l.maxLength&&G.length>Number(l.maxLength)&&(G=G.slice(0,Number(l.maxLength))),u("blur",G,z)},$=t.computed(()=>Ke(l.unit)>0),S=z=>{p(),u("update:modelValue",null,z),u("change","",z),u("clear","")},W=t.ref();return pe({showPicker:R,hidePicker:D,focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const z={class:E.value,style:M.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:P.value,onClick:R,onFocus:q,onBlur:T,onClear:S},Q={};a.slots.prepend&&(Q.prepend=a.slots.prepend),a.slots.append&&(Q.append=a.slots.append),a.slots.prefix?Q.prefix=a.slots.prefix:Q.prefix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Te.Calendar)}),a.slots.suffix?Q.suffix=a.slots.suffix:$.value&&(Q.suffix=()=>[l.unit]);const G=[],J=t.h(A.ElInput,z,Q);G.push(J);const le={default:()=>G};a.slots.default&&(le.label=a.slots.default),a.slots.fixedTip&&(le.fixedTip=a.slots.fixedTip);const L=Bt(l,$l);L.visible=k.value,L["onUpdate:visible"]=O,L["default-value"]=m.value,L.onChoose=x;const N={};if(a.slots.btn){const Y=a.slots.btn();N.btn=()=>Y}a.slots.day&&(N.day=a.slots.day),a.slots.topInfo&&(N.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(N.bottomInfo=a.slots.bottomInfo);const H=t.h(wn,L,N);le.hide=()=>[H];const V={...$e(l,Do),hintText:h.value,hintVisible:c.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,V,le)}}}}const{componentName:cc,create:fc,scope:dc}=ie("calendar-item"),Dl=fc(uc(cc,dc,we)),No={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hc(e,n,o){return{props:{...be,...ke,...No},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,F=t.computed(()=>({[b]:!0})),g=M=>{c.value=M,u("update:modelValue",M),u("change",M)};let p=fe(l,"hintText"),v=t.ref(!1);const P=M=>{let R=M.target.value;h.value=!0,ge(p.value)||(v.value=!0),u("focus",R,M)},m=M=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let R=M.target.value;l.maxLength&&R.length>Number(l.maxLength)&&(R=R.slice(0,Number(l.maxLength))),u("blur",R,M)},f=()=>{u("clear","")},E=M=>{u("visible-change",M)},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const k={...a.attrs,ref:B,class:F.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:f,onFocus:P,onBlur:m,onVisibleChange:E},R={},D=[],O=t.h(A.ElTimePicker,k,R);D.push(O);const x={default:()=>D};a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip);const T={...$e(l,No),hintText:p.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,T,x)}}}}const{componentName:mc,create:gc,scope:pc}=ie("time-item"),Nl=gc(hc(mc,pc,we)),Eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vc(e,n,o){return{props:{...be,...ke,...Eo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,F=t.computed(()=>({[b]:!0})),g=B=>{c.value=B,u("update:modelValue",B),u("change",B)};let p=fe(l,"hintText"),v=t.ref(!1);const P=B=>{let k=B.target.value;h.value=!0,ge(p.value)||(v.value=!0),u("focus",k,B)},m=B=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let k=B.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),u("blur",k,B)},f=()=>{u("clear","")},E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const M={...a.attrs,ref:E,class:F.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:f,onFocus:P,onBlur:m},k={},R=[],D=t.h(A.ElTimeSelect,M,k);R.push(D);const O={default:()=>R};a.slots.default&&(O.label=a.slots.default),a.slots.fixedTip&&(O.fixedTip=a.slots.fixedTip);const q={...$e(l,Eo),hintText:p.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,q,O)}}}}const{componentName:yc,create:bc,scope:wc}=ie("time-select-item"),El=bc(vc(yc,wc,we));function Vo(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 Io(e,n,o=20){if(typeof n=="string"&&(n=de(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=xa(`${e}`,`${n}`);return Vo(l)}else{let l=sl(`${e}`,Sa(`${n}`),20);return Vo(l)}}function xc(e,n=-1,o=!1,l=3,a=","){return tn(e,n,o,l,a)}function Po(e,n,o,l,a=!0){if(e=="")return"";if(e=Ca(e),n=de(n),n==1)return e;if(l)e=Io(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=sl(e,1,de(o)));else{let r=-1*n;e=Io(e,r)}return e}function Oo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),a=Gn(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=ue(n.maxInclude),a=Gn(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Ao={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 Sc(e,n,o){return{props:{...be,...ke,...Ao},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref(!1),d=fe(l,"modelValue",null,u),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([T,$,S])=>{if(ge(T)){h.value="";return}const W=Po(T,$,S,!1);h.value!==W&&(h.value=W)},{immediate:!0});const c=t.computed(()=>{let T="";return s.value&&(T=h.value),T}),{t:b}=ye.useFoxI18n(n),F=t.computed(()=>{let T=l.placeholder??"";return!s.value&&!ge(h.value)?T=xc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):T=b(["placeholder",T]),T}),g=e,p=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__placeholder`]:h.value.length>0})),v=Ne(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:v.value??"right"});const P=t.ref(""),m=t.computed(()=>{let T=P.value;return ge(T)&&(T=l.errorTip??""),T}),f=t.ref(""),E=t.ref(!1),B=(T,$)=>{if(T=`${T}`,ge(T)){h.value="",d.value="",$.forEach(S=>{u(S,"")}),ue(l.showTip)&&E.value&&(E.value=!1);return}if(T.length>=2){let S=T;if(S.charAt(0)=="-"&&(S=S.substring(1)),S.length>=2&&S.charAt(0)=="0"&&S.charAt(1)!="."){t.triggerRef(h);return}}if(T!="-"){if(!Ia(T)){t.triggerRef(h);return}if(l.integerLength!=-1&&Pa(T)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Oa(T)>Number(l.decimalLength)){t.triggerRef(h);return}let S=Oo(T,l);if(S.maxValid===!1){P.value=S.message,t.triggerRef(h);return}}else if(l.min!=null&&de(l.min)>=0){t.triggerRef(h);return}f.value=T,ue(l.showTip)&&(E.value=T.length>0),h.value=T,d.value=Po(T,l.rates,l.precision,!0),$.forEach(S=>{u(S,d.value)})},M=T=>{B(T,["update:modelValue","input"])},k=T=>{B(T,["update:modelValue","change"])},R=T=>{if(s.value=!0,ue(l.showTip)){let $=h.value;ge($)&&($=l.hintText),ge($)||(f.value=$,E.value=!0)}P.value="",u("focus",d.value,T)},D=T=>{if(setTimeout(()=>{s.value=!1,ue(l.showTip)&&E.value===!0&&(E.value=!1)},0),!ge(h.value)){let $=Oo(h.value,l);if($.minValid===!1||$.maxValid===!1){P.value=$.message;return}}u("update:modelValue",d.value,T),u("blur",d.value,T)},O=()=>{u("clear","")},x=t.computed(()=>Ke(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const $={...Ye(a.attrs),ref:q,class:p.value,type:"digit",maxlength:l.maxLength,placeholder:F.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:O,onInput:M,onChange:k,onFocus:R,onBlur:D},S={};a.slots.prepend&&(S.prepend=a.slots.prepend),a.slots.append&&(S.append=a.slots.append),a.slots.prefix&&(S.prefix=a.slots.prefix),a.slots.suffix?S.suffix=a.slots.suffix:x.value&&(S.suffix=()=>[l.unit]);const W=[],z=t.h(A.ElInput,$,S);W.push(z);const Q={default:()=>W};a.slots.default&&(Q.label=a.slots.default),a.slots.fixedTip&&(Q.fixedTip=a.slots.fixedTip);const J={...$e(l,Ao),errorTip:m.value,hintText:f.value,hintVisible:E.value,hintType:"number",prop:`${l.prop}_item`};return t.h(o,J,Q)}}}}const{componentName:Cc,create:Tc,scope:$c}=ie("money-item"),Vl=Tc(Sc(Cc,$c,we)),Fo={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 kc(e,n,o){return{props:{...be,...ke,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,F=t.computed(()=>({[b]:!0,[`${b}__append`]:M.value})),g=t.computed(()=>({[`${b}__unit`]:!0})),p=R=>{c.value=R,u("update:modelValue",R),u("input",R)},v=R=>{u("change",R)};let P=fe(l,"hintText"),m=t.ref(!1);const f=R=>{let O=R.target.value;h.value=!0,ge(P.value)||(m.value=!0),u("focus",O,R)},E=R=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let O=R.target.value;l.maxLength&&O.length>Number(l.maxLength)&&(O=O.slice(0,Number(l.maxLength))),u("blur",O,R)},B=()=>{u("clear","")},M=t.computed(()=>Ke(l.unit)>0),k=t.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const D={...Ye(a.attrs),ref:k,class:F.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:v,onInput:p,onFocus:f,onBlur:E},O={},x=[],q=t.h(A.ElInputNumber,D,O);x.push(q);const T={default:()=>x};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const S={...$e(l,Fo),hintText:P.value,hintVisible:m.value,prop:`${l.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(M.value){const z={class:g.value},Q=t.h("div",z,[l.unit]);T.append=()=>Q}return t.h(o,S,T)}}}}const{componentName:Dc,create:Nc,scope:Ec}=ie("input-number-item"),Il=Nc(kc(Dc,Ec,we));function We(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Vc(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ic=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=Oe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l,a))}};function Pc(){const e=t.getCurrentInstance();return new Ic(e.proxy)}function ll(e,n,o){const l=We(e,n),a=We(e,o);if(l!==a)return!1;const r=rt(e,n),i=rt(e,o);return r===i}function pr(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=pr(e,u,o,l);a.push(s)}else{let s=!1;for(let d of r){if(o==="text")s=We(e,d)===u;else if(o==="item")s=ll(e,d,u);else{let h=rt(e,d);h==null&&(h=We(e,d)),s=h===u}if(s){a.push(d),r=Vc(e,d);break}}if(!s)break}}return a}function Oc(e){return{text:e,value:e}}const Bo={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:[Function],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ac(e,n,o){return{props:{...be,...ke,...Bo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),b=t.computed(()=>c.value?c.value.map(C=>Array.isArray(C)?C.map(_=>We(l,_)).join(" "):We(l,C)).join(" "):""),F=(Y,C,y,_=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===Y)return;h.value=Y;const w=t.toRaw(Y);if(_){const K=X?.value.getCheckedNodes();if(K)if(l.multiple){const ee=[];K.forEach(ne=>{const oe=(ne.pathNodes??[]).map(re=>re.data);ee.push(oe)}),u("update:pathNodes",ee)}else{const ne=(K[0]?.pathNodes??[]).map(te=>te.data);u("update:pathNodes",ne)}u("update:modelValue",w),u("change",w)}return}const I=pr(l,Y,C,y);if(I===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,_&&(u("update:pathNodes",[]),u("update:modelValue",null),u("change",null));return}const U=I[I.length-1];if(O.value.checkStrictly!==!0&&U&&!Array.isArray(U)&&Array.isArray(U.children)&&U.children.length>0){const w=[];I.forEach(K=>{const ee=`${We(l,K)}`;w.push(ee)}),w.length>0&&(R.value=w.join(l.separator))}else R.value=null;let Z=!0;if(I.length!==c.value.length)Z=!1;else for(let w=0;w<I.length;w++){const K=I[w],ee=c.value[w];if(Array.isArray(K)){if(!Array.isArray(ee)||K.length!==ee.length)Z=!1;else for(let ne=0;ne<K.length;ne++)if(!ll(l,K[ne],ee[ne])){Z=!1;break}}else ll(l,K,ee)||(Z=!1);if(!Z)break}if(!Z){c.value=I;let w=[],K=[];I.forEach(ne=>{if(Array.isArray(ne)){let te=[],oe=[];for(let re of ne)te.push(rt(l,re)),l.valueType==="text"?oe.push(We(l,re)):l.valueType==="item"?oe.push(re):oe.push(rt(l,re));w.push(te),K.push(oe)}else w.push(rt(l,ne)),l.valueType==="text"?K.push(We(l,ne)):l.valueType==="item"?K.push(ne):K.push(rt(l,ne))}),h.value=w;const ee=t.toRaw(K);_&&(u("update:pathNodes",I),u("update:modelValue",ee),u("change",ee))}},g=t.ref([]),p=Ne(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,Y=>ue(Y)),v=Pc(),P=async(Y,C)=>{if(Y){const y=await v.load("cascader",Y,C);if(y.length>0)if(typeof y[0]=="string"){let U=y.map(Z=>Oc(Z));g.value=U}else g.value=y}};t.watch([()=>l.source,()=>l.params],async([Y,C])=>{P(Y,C)},{immediate:!(p.value||l.lazy)});let m=!1;const f=()=>{m||(m=!0,P(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([Y,C])=>{F(C,l.valueType,Y,!1),u("setValue",C)}),l.lazy&&F(l.modelValue,"value",[],!1);let E=null,B=t.ref(!1);typeof l.remoteMethod=="function"&&(E=async Y=>{if(Y!=null){B.value=!0;try{const C=await l.remoteMethod(Y);g.value=C}catch(C){console.error(C)}B.value=!1}});const M=t.ref(!1),k=e,R=t.ref(null),D=t.computed(()=>({[k]:!0,"is-incomplete":R.value&&R.value.length>0})),O=t.computed(()=>{let Y={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(Y.multiple=!0),l.props&&Object.assign(Y,l.props),l.lazy&&(Y.lazy=!0,typeof l.lazyLoad=="function"?Y.lazyLoad=l.lazyLoad:Y.lazyLoad=async(C,y)=>{const _=await v.load("cascader",l.source,C,!0);if(C?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===C.level){const I=C.pathLabels??[];let U=[];I.forEach(Z=>{Z&&U.push(Z)}),U.length>0&&(R.value=U.join(l.separator))}else R.value=null;y(_)}),Y}),x=Y=>{l.allowCreate?(u("update:modelValue",Y),u("change",Y),h.value=Y):F(Y,"value",g.value,!0)};let q=fe(l,"hintText"),T=t.ref(!1);const $=Y=>{let y=Y.target.value;M.value=!0,ge(q.value)||(T.value=!0),u("focus",y,Y)},S=Y=>{setTimeout(()=>{T.value&&(T.value=!1),M.value=!1},0);let y=Y.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),N.value||u("blur",y,Y)},W=()=>{u("clear","")},z=t.ref(!1);let Q=null;const G=()=>{l.showTooltip&&z.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{z.value=!0},150))},J=()=>{Q&&(clearTimeout(Q),z.value=!1,Q=null)},le=t.computed(()=>z.value||T.value),L=t.computed(()=>z.value?b.value:q.value),N=t.ref(!1),H=Y=>{N.value=Y,u("visible-change",Y),Y||u("selected")},j=Y=>{u("remove-tag",Y)},V=Y=>{u("expand-change",Y)},X=t.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},getCheckedNodes:()=>X?.value.getCheckedNodes()}),()=>{const C={...a.attrs,ref:X,class:D.value,props:O.value,clearable:l.clearable,placeholder:R.value||d.placeholder.value,disabled:r.value||i.value,options:g.value,modelValue:h.value,separator:l.separator,onClear:W,onChange:x,onFocus:$,onBlur:S,onVisibleChange:H,onRemoveTag:j,expandChange:V};typeof E=="function"&&(C["remote-method"]=E,C.loading=B.value);const y={};a.slots.option&&(y.default=a.slots.option),a.slots.empty&&(y.empty=a.slots.empty);const _=[],I=t.h(A.ElCascader,C,y);_.push(I);const U={default:()=>_};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const w={...$e(l,Bo),hintText:L.value,hintVisible:le.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:G,onMouseleave:J};return p.value&&!l.lazy&&(w["appear-listen"]=!0,w.onAppear=f),t.h(o,w,U)}}}}const{componentName:Fc,create:Bc,scope:Mc}=ie("cascader-item"),Pl=Bc(Ac(Fc,Mc,we)),Mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Rc(e,n,o){return{props:{...be,...ke,...Mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=fe(l,"modelValue",null,u),b=e,F=t.computed(()=>({[b]:!0})),g=k=>{c.value=k,u("update:modelValue",k),u("input",k)},p=k=>{u("change",k)},v=k=>{u("select",k)};let P=fe(l,"hintText"),m=t.ref(!1);const f=k=>{let D=k.target.value;h.value=!0,ge(P.value)||(m.value=!0),u("focus",D,k)},E=k=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let D=k.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),u("blur",D,k)},B=()=>{u("clear","")},M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...a.attrs,ref:M,class:F.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:B,onChange:p,onInput:g,onFocus:f,onBlur:E,onSelect:v},D={};a.slots.prepend&&(D.prepend=a.slots.prepend),a.slots.append&&(D.append=a.slots.append),a.slots.prefix&&(D.prefix=a.slots.prefix),a.slots.suffix&&(D.suffix=a.slots.suffix),a.slots.option&&(D.default=a.slots.option);const O=[],x=t.h(A.ElAutocomplete,R,D);O.push(x);const q={default:()=>O};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const $={...$e(l,Mo),hintText:P.value,hintVisible:m.value,prop:`${l.prop}_item`};return t.h(o,$,q)}}}}const{componentName:Lc,create:_c,scope:qc}=ie("autocomplete-item"),Ol=_c(Rc(Lc,qc,we));function zc(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 d=0;s&&d<r.length;d++){let h=r[d],c=s.find(b=>b[l]===h);if(!c)break;i.push(c[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const c=d.find(b=>b[l]===h);if(!c)break;i.push(c[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(b=>b[l]===h);if(!c)break;i.push(c[o]),s=c[a]}}return i}let jc=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Hc(){const e=t.getCurrentInstance();return new jc(e.proxy)}const vr={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 Kc(e,n){return{props:{...vr},setup(o,{attrs:l,slots:a}){const r=Hc(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([d,h])=>{i.value=await r.load(o.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=zc(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const d={...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,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:cp,create:Yc,scope:fp}=ie("mapping"),At=Yc(Kc());function Wc(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Uc(e,n){return{props:{...vr},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const u=Wc(i.row,i.column.property);return a.default?t.h(At,{...o,modelValue:u},{default:a.default}):t.h(At,{...o,modelValue:u})}};return t.h(A.ElTableColumn,{...l},r)}}}}const{componentName:dp,create:Gc,scope:hp}=ie("table-mapping-column"),Al=Gc(Uc()),Xc=Symbol.for("TableStateKey");function Ro(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Zc(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Xc,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:u=>{const s=Ro(u.row,u.column.property),d=r?Ro(r,u.column.property):null,h=s===d,c={class:{"el-radio__input":!0,"is-checked":h}},b=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),F={class:{"el-radio":!0,"is-checked":h}};return t.h("label",F,[b])}};return t.h(A.ElTableColumn,{...l},i)}}}}const{componentName:mp,create:Jc,scope:gp}=ie("table-radio-column"),Fl=Jc(Zc()),Qc={},ef={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"},tf=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),nf=[tf];function lf(e,n){return t.openBlock(),t.createElementBlock("svg",ef,nf)}const of=De(Qc,[["render",lf]]),{componentName:pp,create:af,scope:vp}=ie("table-setting"),rf={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:"不固定"}},sf=af({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:of,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...rf},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),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),c=V=>V.length>1,b=(V,X)=>{Array.isArray(V)&&Array.isArray(X)&&V.forEach(y=>{X.some(_=>_.prop===y.prop?(y.label=_.label,!0):!1)});const Y=[];a.value=V.map((y,_)=>(!(y.label===""||y.type)&&y.visible!==!1&&Y.push(y.prop),{...y,sortIndex:_})),u.value.length+r.value.length+i.value.length===Y.length?m.value=!0:Y.length>0&&(f.value=!0),M.value=Y},F=V=>V?V.type?V.type:V.label?V.prop:"":"",g=(V,X)=>{if(V.length!==X.length)return!1;const Y=V.map(C=>F(C));for(let C of X){const y=F(C);if(Y.indexOf(y)===-1)return!1}return!0},p=V=>{if(!V){const X=e.tableRef.getColumnSetting(),Y=X.srcColumnPropertyList;l=Y.map((C,y)=>({...C,sortIndex:y})),V=X.columnPropertyList,V&&V.length>0&&g(Y,V)||(V=Y)}b(V,l)},v=()=>{e.tableRef.setColumnSetting(a.value)},P=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),f=t.ref(!1),E=V=>{const X=[];a.value.forEach(C=>{V&&!(C.label===""||C.type)&&X.push(C.prop),C.visible=V}),m.value=!1,f.value=!1,u.value.length+r.value.length+i.value.length===X.length?m.value=!0:X.length>0&&(f.value=!0),M.value=X,v()},B=()=>{p(l),v()},M=t.ref([]),k=V=>{a.value.forEach(Y=>{if(Y.label===""||Y.type)return;const C=V.indexOf(Y.prop)!==-1;Y.visible=C}),m.value=!1,f.value=!1;const X=u.value.length+r.value.length+i.value.length;V.length===X?m.value=!0:V.length>0&&(f.value=!0),v()},R=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const D={currentRow:null,index:null,roleType:null},O=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,O(V)):null:null,x=V=>{const X=V.currentTarget;X&&X.dataset&&(D.roleType=X.dataset.roleType,D.index=X.dataset.index)},q=V=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},T=V=>{const X=V.currentTarget;V.relatedTarget;const Y=O(X);if(!Y)return;const C=Y.dataset&&Y.dataset.roleType;D.roleType===C&&(V.preventDefault(),D.currentRow&&D.currentRow!==Y&&D.currentRow.classList.remove("is-dragover"),Y.classList.add("is-dragover"),D.currentRow=Y)},$=V=>{V.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},S=V=>{const X=V.currentTarget,Y=O(X);if(!Y)return;const C=Y.dataset&&Y.dataset.roleType;if(D.roleType!==C)return;V.preventDefault();const y=Number(D.index),_=Number(Y.dataset.index);if(y!==_){if(y<_){const I=a.value[y];a.value.splice(y,1),a.value.splice(_,0,I)}else{const I=a.value[y];a.value.splice(y,1),a.value.splice(_+1,0,I)}b(a.value,l),v()}},W=V=>{const X=a.value[V];X.fixed="left",v()},z=V=>{const X=a.value[V];X.fixed="right",v()},Q=V=>{const X=a.value[V];X.fixed=void 0,v()},G=new Map;let J=null;function le(V){const X=document.createRange();return X.setStart(V,0),X.setEnd(V,V.childNodes.length),X.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:m,isIndeterminate:f,handleCheckAllChange:E,handleReset:B,checkedValue:M,handleCheckChange:k,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:T,onDragLeave:$,onDrop:S,toLeftFixed:W,toRightFixed:z,toUnFixed:Q,checkboxLabelStyle:P,onMouseOverForOverflowText:(V,X,Y)=>{const C=V.currentTarget;if(C){const y=Math.floor(C.offsetWidth);if(Math.floor(le(C))>y){let I=G.get(X);if(I){if(I===J)return;Fe.hide(I)}I=Fe.show(C,Y,{type:"text",placement:"top",closeOnClick:!1}),G.set(X,I),J=I}}},onMouseLeaveForOverflowText:(V,X)=>{const Y=G.get(X);Y&&(Fe.hide(Y),Y===J&&(J=null))},onMouseOverForTip:(V,X)=>{const Y=V.currentTarget;Y&&(J&&Fe.hide(J),J=Fe.show(Y,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:V=>{J&&(Fe.hide(J),J=null)}}}}),uf={class:"fox-table-setting"},cf={class:"fox-table-setting__header"},ff={class:"fox-table-setting__body"},df={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},hf={key:0,class:"fox-table-setting__body-title"},mf=["data-index","draggable"],gf=["onMouseover","onMouseleave"],pf={class:"tools-item"},vf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yf={key:0,class:"fox-table-setting__body-title"},bf=["data-index","draggable"],wf=["onMouseover","onMouseleave"],xf={class:"tools-item"},Sf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Cf={key:0,class:"fox-table-setting__body-title"},Tf=["data-index","draggable"],$f=["onMouseover","onMouseleave"],kf={class:"tools-item"};function Df(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),F=t.resolveComponent("FoxCheckboxGroup"),g=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(g,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",uf,[t.createElementVNode("div",cf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),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",ff,[t.createVNode(F,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",df,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",hf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[6]||(n[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[7]||(n[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[8]||(n[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[9]||(n[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,p.prop,p.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,gf)]),_:2},1032,["label"]),t.createElementVNode("div",pf,[t.createVNode(h,{onClick:v=>e.toUnFixed(p.sortIndex),onMouseover:n[1]||(n[1]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[2]||(n[2]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(p.sortIndex),onMouseover:n[3]||(n[3]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[4]||(n[4]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,mf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",vf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",yf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[15]||(n[15]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[16]||(n[16]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[17]||(n[17]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[18]||(n[18]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,p.prop,p.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,wf)]),_:2},1032,["label"]),t.createElementVNode("div",xf,[t.createVNode(h,{onClick:v=>e.toLeftFixed(p.sortIndex),onMouseover:n[10]||(n[10]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(p.sortIndex),onMouseover:n[12]||(n[12]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[13]||(n[13]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,bf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Sf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Cf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[24]||(n[24]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[25]||(n[25]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[26]||(n[26]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[27]||(n[27]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,p.prop,p.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,$f)]),_:2},1032,["label"]),t.createElementVNode("div",kf,[t.createVNode(h,{onClick:v=>e.toUnFixed(p.sortIndex),onMouseover:n[19]||(n[19]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[20]||(n[20]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toLeftFixed(p.sortIndex),onMouseover:n[21]||(n[21]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Tf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xn=De(sf,[["render",Df]]);let Nf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=(l-1)*a,h=d+a;h>o.length&&(h=o.length);const c=o.slice(d,h);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,u]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r,i,u]))}};function Ef(){const e=t.getCurrentInstance();return new Nf(e.proxy)}let Vf=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function If(){const e=t.getCurrentInstance();return new Vf(e.proxy)}const Pf=Symbol.for("TableStateKey"),Lo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},_o={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}},Ln={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:"不固定"}},Of={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Af(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 d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 _n(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=Af(l,a);if(r!==i)return!1}return!0})}function Ff(e,n,o){return{inheritAttrs:!1,props:{...be,...ke,...Lo,..._o,...Ln,...Of},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=ye.useFoxI18n(n),{emitEvent:i}=Ce({componentName:e,validateHandler:{getValue(...te){return M.value}}},l.prop??a.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),c=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),F=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),g=t.ref(l.infiniteLoad===!0?0:l.pageIndex),p=t.ref(l.pageSize),v=ue(l.infiniteLoad);v||(t.watch(()=>l.pageIndex,te=>{g.value=te}),t.watch(()=>l.pageSize,te=>{p.value=te}),t.watch([g,p],([te,oe],[re,se])=>{oe!==se&&(g.value=1,te=1),O(l.data,te,oe,F.value)}));const P=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);P()&&t.watch([()=>l.data,F],async([te,oe],[re,se])=>{P()&&(te!==re&&(R=!0),!(!Array.isArray(te)&&Le(te,re)&&Le(oe,se))&&(v?(g.value=0,E.value=!0,M.value=[],q()):g.value===1?O(te,g.value,p.value,oe):g.value=1))},{deep:!0});const m=te=>{g.value=te,i("page-index-change",te)},f=te=>{p.value=te,i("page-size-change",te)},E=t.ref(!0),B=t.ref(0),M=t.ref(),k=Ef();let R=!0;const D=Ne(t.computed(()=>l.lazyLoad),"lazyLoad",Me.Near,te=>ue(te)),O=async(te,oe,re,se,ve)=>{R=!1;try{if(ve===!0){if(!E.value)return!1;const me=await k.load("table",te,oe,re,se,R,r.value);return B.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,M.value,me.page),setTimeout(()=>{i("loaded-data")},250),(M.value?.length??0)>=B.value)||me.page.length<re?(E.value=!1,!1):!0}else{const me=await k.load("table",te,oe,re,se,R,r.value);return B.value=me.totalSize,M.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),B.value=0,M.value=[]}return!1};let x=!1;const q=async()=>{if(!x){if(x=!0,!E.value){x=!1;return}g.value+=1,await O(l.data,g.value,p.value,F.value,!0),x=!1}},T=(te={},oe=!1)=>new Promise(async re=>{b.value=t.toRaw(te??{}),oe||(g.value=l.pageIndex??1),v===!0?(g.value=0,M.value=[],E.value=!0,await q()):await O(l.data,g.value,p.value,F.value),re()}),$=()=>{B.value=0,M.value=[],v===!0&&(g.value=0,E.value=!0)};let S=!1;const W=()=>{S||(S=!0,T())},z=t.ref(null);if(v===!0){let te=null;const oe=()=>{z.value&&(te=new IntersectionObserver(se=>{let ve=!1;for(let me of se)if(me.intersectionRatio>0){ve=!0;break}ve&&q()}),te.observe(z.value))},re=()=>{!te||!z.value||(te.unobserve(z.value),te=null)};t.onMounted(oe),t.onBeforeUnmount(re)}P()&&!D.value&&T();const Q=t.ref(null);t.provide(Pf,{currentRow:Q});const G=(te,oe)=>{Q.value=te,i("current-change",te,oe)},J=(te,oe,re)=>{i("row-click",te,oe,re),ue(l.rowClickSelectable)===!0&&ne?.value.toggleRowSelection(te)},le=[],L=(te,oe)=>{if(i("expand-change",te,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=le.length;le.splice(0,re)}else{le.forEach(se=>{se!==te&&ne?.value.toggleRowExpansion(se,!1)});const re=le.length;le.splice(0,re,te)}},N=a.attrs.id??l.prop??a.attrs.name,H=If(),j=t.ref([]);let V=[];const X=()=>({srcColumnPropertyList:V.map(oe=>({...oe})),columnPropertyList:j.value}),Y=te=>{j.value=[...te],y()},C=async()=>{const te=await H.load(N);te&&(j.value=te)},y=()=>{H.save(N,j.value)},_=()=>{H.remove(N)};C();const I=te=>te?te.type?te.type:te.label?te.prop:"":"",U=t.computed(()=>{if(typeof a.slots.default=="function"){const te=a.slots.default(),oe=new Map;if(V=[],te.forEach(re=>{const se=re;if(!se.props)return;const ve=I(se.props);oe.set(ve,re);const me={label:"",prop:""};Object.assign(me,se.props),V.push(me)}),j.value.length===V.length){const re=[];for(let se of j.value){const ve=I(se),me=oe.get(ve);if(!me)return te;if(se.visible===!1)continue;const Ze=me;Ze.props.fixed=se.fixed,re.push(Ze)}return re}return te}return[]}),Z=t.shallowRef(new Map),w=({column:te,rowIndex:oe})=>{const re=`${oe}_${te.property}`;return Z.value.get(re)??""},K=te=>typeof te=="function"?oe=>{const re=[];let se=w(oe);return se&&re.push(se),se=te(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:w,ee=(te,oe,re)=>{const se=`${te}_${oe}`;re?Z.value.set(se,re):Z.value.delete(se),t.triggerRef(Z)},ne=t.ref();return pe({clearSelection:()=>ne?.value.clearSelection(),getSelectionRows:()=>ne?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{ne?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!M.value)return;const re=_n(M.value,te);re.length!==0&&re.forEach(se=>{ne?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{ne?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{ne?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!M.value)return;const re=_n(M.value,te);re.length!==0&&re.forEach(se=>{ne?.value.toggleRowExpansion(se,oe)})},setCurrentRow:te=>{ne?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!M.value)return;const oe=_n(M.value,te);oe.length!==0&&ne?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Q.value,clearSort:()=>{ne?.value.clearSort()},clearFilter:te=>{ne?.value.clearFilter(te)},doLayout:()=>{ne?.value.doLayout()},sort:(te,oe)=>{ne?.value.sort(te,oe)},scrollTo:(te,oe)=>{ne?.value.scrollTo(te,oe)},setScrollTop:te=>{ne?.value.setScrollTop(te)},setScrollLeft:te=>{ne?.value.setScrollLeft(te)},loadData:T,clearData:$,getData(){return M.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return p.value},getColumnSetting:X,setColumnSetting:Y,removeColumnSetting:_,setCellClassName:ee}),()=>{const oe={...Ye(a.attrs),onCurrentChange:G,onRowClick:J,onExpandChange:L,data:M.value,ref:ne,class:s.value,"cell-class-name":K(l.cellClassName)},re={};if(a.slots.default&&(re.default=()=>U.value),a.slots.append&&(re.append=()=>a.slots.append),a.slots.empty&&(re.empty=()=>a.slots.empty),v===!0){const _e=[];if(E.value){const St=t.h(Te.Loading,{class:`${u}__infinite-icon`});_e.push(St);const Vn=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);_e.push(Vn)}else{const St=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);_e.push(St)}const nt={ref:z,class:`${u}__infinite`},En=t.h("div",nt,_e);re.append=()=>En}const se=t.h(A.ElTable,oe,re),ve=[];if(ve.push(se),!v){let _e=null;if(typeof a.slots.pagination=="function")_e=a.slots.pagination();else if(l.showPagination){const nt={class:c.value,total:B.value,pageSize:p.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:g.value,"onUpdate:currentPage":m,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};_e=t.h(A.ElPagination,nt)}if(l.showSetting){const nt=[];_e&&nt.push(_e);const En=t.h(A.ElIcon,{class:d.value},{default:()=>t.h(Te.Setting)}),St=Bt(l,Ln),Vn=t.h(xn,{...St,tableRef:{getColumnSetting:X,setColumnSetting:Y,removeColumnSetting:_}},{default:()=>En});nt.push(Vn);const Ir=t.h("div",{class:h.value},nt);ve.push(Ir)}else _e&&ve.push(_e)}const me={default:()=>ve},xt={...$e(l,Lo,_o,Ln),prop:`${l.prop}_item`};return xt.contentClass=`${u}__wrap`,xt.errorMarkClass="is-table-error",D.value&&P()&&(xt["appear-listen"]=!0,xt.onAppear=W),t.h(o,xt,me)}}}}const{componentName:Bf,create:Mf,scope:Rf}=ie("table-item"),Bl=Mf(Ff(Bf,Rf,we));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Lf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let _f=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function qf(){const e=t.getCurrentInstance();return new _f(e.proxy)}function yr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=bt(e,n),a=bt(e,o);if(l!==a)return!1;const r=Ft(e,n),i=Ft(e,o);return r===i}function zf(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=bt(e,r)===n;else if(o==="item")i=yr(e,r,n);else{let u=Ft(e,r);u==null&&(u=bt(e,r)),i=u===n}if(i){a=r;break}}return a}function jf(e){return{text:e,value:e}}function Hf(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const qo={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 Kf(e,n,o){return{inheritAttrs:!0,props:{...be,...ke,...qo},emits:["change","update:modelValue","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref(null),d=t.ref(null),h=(k,R,D,O=!0)=>{const x=zf(l,k,R,D);if(x===null){if(d.value===null)return;d.value=null,s.value=null,O&&(u("update:modelValue",null),u("change",null));return}if(!yr(l,x,d.value)){s.value=k;const T=t.toRaw(x);d.value=T;let $=null;l.valueType==="text"?$=bt(l,T):l.valueType==="item"?$=T:$=Ft(l,T),O&&(u("update:modelValue",$),u("change",$))}},c=t.ref([]),b=Ne(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,k=>ue(k)),F=qf(),g=async(k,R)=>{if(k){const D=await F.load("radio",k,R);if(D.length>0)if(typeof D[0]=="string"){let q=D.map(T=>jf(T));c.value=q}else c.value=D}};t.watch([()=>l.source,()=>l.params],async([k,R])=>{g(k,R)},{immediate:!b.value});let p=!1;const v=()=>{p||(p=!0,g(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([k,R])=>{h(R,l.valueType,k,!1),u("setValue",R)});const P=e,m=t.computed(()=>({[P]:!0,[`is-${l.direction}`]:!0})),f=k=>{h(k,"value",c.value,!0)};let E=fe(l,"hintText"),B=fe(l,"hintVisible");const M=(k,R)=>{const D=[];return k.forEach((O,x)=>{const q=Ft(l,O),T=bt(l,O);let $=Lf(l,O);r.value===!0&&($=r.value),i.value===!0&&($=i.value);const S=Hf(l,O,x)??{},W=`${q}_${x}`,z={...S,key:W,label:q,size:l.size,border:ue(l.border)};$&&(z.disabled=$),l.itemType==="button"?D.push(t.h(A.ElRadioButton,z,{default:()=>[T]})):typeof R=="function"?D.push(t.h(A.ElRadio,z,{default:()=>R(O)})):D.push(t.h(A.ElRadio,z,{default:()=>[T]}))}),D};return()=>{const R={...Ye(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:f},D=[],O={};a.slots.options?O.default=a.slots.options:O.default=()=>M(c.value,a.slots.text);const x=t.h(A.ElRadioGroup,R,O);D.push(x);const q={default:()=>D};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const $={...$e(l,qo),hintText:E.value,hintVisible:B.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&($["appear-listen"]=!0,$.onAppear=v),t.h(o,$,q)}}}}const{componentName:Yf,create:Wf,scope:Uf}=ie("radio-item"),Ml=Wf(Kf(Yf,Uf,we));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xf=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Zf(){const e=t.getCurrentInstance();return new Xf(e.proxy)}function br(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=wt(e,n),a=wt(e,o);if(l!==a)return!1;const r=vt(e,n),i=vt(e,o);return r===i}function Jf(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=wt(e,i)===r;else if(o==="item")u=br(e,i,r);else{let s=vt(e,i);s==null&&(s=wt(e,i)),u=s===r}if(u){a.push(i);break}}}),a}function Qf(e){return{text:e,value:e}}function ed(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const zo={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 td(e,n,o){return{inheritAttrs:!0,props:{...be,...ke,...zo},emits:["change","update:modelValue","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=t.ref([]),d=t.ref([]),h=(k,R,D,O=!0)=>{const x=Jf(l,k,R,D);if(x===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],O&&(u("update:modelValue",[]),u("change",[]));return}let q=!0;if(x.length!==d.value.length)q=!1;else for(let T=0;T<x.length;T++){const $=x[T],S=d.value[T];if(!br(l,$,S)){q=!1;break}}if(!q){d.value=x;let T=[],$=[];x.forEach(W=>{T.push(vt(l,W)),l.valueType==="text"?$.push(wt(l,W)):l.valueType==="item"?$.push(W):$.push(vt(l,W))}),s.value=T;const S=t.toRaw($);O&&(u("update:modelValue",S),u("change",S))}},c=t.ref([]),b=Ne(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,k=>ue(k)),F=Zf(),g=async(k,R)=>{if(k){const D=await F.load("checkbox",k,R);if(D.length>0)if(typeof D[0]=="string"){let q=D.map(T=>Qf(T));c.value=q}else c.value=D}};t.watch([()=>l.source,()=>l.params],async([k,R])=>{g(k,R)},{immediate:!b.value});let p=!1;const v=()=>{p||(p=!0,g(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([k,R])=>{h(R,l.valueType,k,!1),u("setValue",R)});const P=e,m=t.computed(()=>({[P]:!0,[`is-${l.direction}`]:!0})),f=k=>{h(k,"value",c.value,!0)};let E=fe(l,"hintText"),B=fe(l,"hintVisible");const M=(k,R)=>{const D=[];return k.forEach((O,x)=>{const q=vt(l,O),T=wt(l,O);let $=Gf(l,O);r.value===!0&&($=r.value),i.value===!0&&($=i.value);const S=ed(l,O,x)??{},W=`${q}_${x}`,z={...S,key:W,class:l.itemClass,label:q,size:l.size,border:ue(l.border)};$&&(z.disabled=$),l.itemType==="button"?D.push(t.h(A.ElCheckboxButton,z,{default:()=>[T]})):typeof R=="function"?D.push(t.h(A.ElCheckbox,z,{default:()=>R(O)})):D.push(t.h(A.ElCheckbox,z,{default:()=>[T]}))}),D};return()=>{const R={...Ye(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:de(l.max),min:de(l.min),onChange:f},D=[],O={};a.slots.options?O.default=a.slots.options:O.default=()=>M(c.value,a.slots.text);const x=t.h(A.ElCheckboxGroup,R,O);D.push(x);const q={default:()=>D};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const $={...$e(l,zo),hintText:E.value,hintVisible:B.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&($["appear-listen"]=!0,$.onAppear=v),t.h(o,$,q)}}}}const{componentName:nd,create:ld,scope:od}=ie("checkbox-item"),Rl=ld(td(nd,od,we)),jo={modelValue:{type:[Number,String],required:!1}};function ad(e,n,o){return{props:{...be,...ke,...jo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=fe(l,"modelValue",p=>de(p),u),d=e,h=t.computed(()=>({[d]:!0})),c=p=>{u("update:modelValue",p),u("change",p)};let b=fe(l,"hintText"),F=t.ref(!1);const g=t.ref();return pe({}),()=>{const v={...Ye(a.attrs),ref:g,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:c},P={},m=[],f=t.h(A.ElRate,v,P);m.push(f);const E={default:()=>m};a.slots.default&&(E.label=a.slots.default),a.slots.fixedTip&&(E.fixedTip=a.slots.fixedTip);const M={...$e(l,jo),hintText:b.value,hintVisible:F.value,prop:`${l.prop}_item`};return t.h(o,M,E)}}}}const{componentName:rd,create:id,scope:sd}=ie("rate-item"),Ll=id(ad(rd,sd,we)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function ud(e,n,o){return{props:{...be,...ke,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),s=fe(l,"modelValue",null,u),d=e,h=t.computed(()=>({[d]:!0})),c=p=>{u("update:modelValue",p),u("change",p)};let b=fe(l,"hintText"),F=fe(l,"hintVisible");const g=t.ref();return pe({}),()=>{const v={...Ye(a.attrs),ref:g,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:c},P={},m=[],f=t.h(A.ElSwitch,v,P);m.push(f);const E={default:()=>m};a.slots.default&&(E.label=a.slots.default),a.slots.fixedTip&&(E.fixedTip=a.slots.fixedTip);const M={...$e(l,Ho),hintText:b.value,hintVisible:F.value,prop:`${l.prop}_item`};return t.h(o,M,E)}}}}const{componentName:cd,create:fd,scope:dd}=ie("switch-item"),_l=fd(ud(cd,dd,we)),Ko={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hd(e,n,o){return{props:{...be,...ke,...Ko},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),d=fe(l,"modelValue",null,s),h=e,c=t.computed(()=>({[h]:!0})),b=B=>{s("update:modelValue",B),s("change",B)};let F=fe(l,"hintText"),g=t.ref(!1);const p=B=>{let k=B.target.value;u.value=!0,ge(F.value)||(g.value=!0),s("focus",k,B)},v=B=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let k=B.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),m.value||s("blur",k,B)},P=()=>{s("clear","")},m=t.ref(!1),f=B=>{m.value=B,s("visible-change",B),B||s("selected")},E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()}}),()=>{const M={...Ye(a.attrs),ref:E,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:P,onFocus:p,onBlur:v,onVisibleChange:f},k={};a.slots.option&&(k.default=a.slots.option);const R=[],D=t.h(A.ElTreeSelect,M,k);R.push(D);const O={default:()=>R};a.slots.default&&(O.label=a.slots.default),a.slots.fixedTip&&(O.fixedTip=a.slots.fixedTip);const q={...$e(l,Ko),hintText:F.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(o,q,O)}}}}const{componentName:md,create:gd,scope:pd}=ie("tree-select-item"),ql=gd(hd(md,pd,we));class vd{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function yd(){const e=t.getCurrentInstance();return new vd(e.proxy)}const bd={},wd={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"},xd=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),Sd=[xd];function Cd(e,n){return t.openBlock(),t.createElementBlock("svg",wd,Sd)}const Td=De(bd,[["render",Cd]]),{componentName:Sp,create:$d,scope:Cp}=ie("group-setting"),kd={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:"到底部"}},Dd=$d({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:Td,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...kd},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=yd(),u=L=>L.length>1,s=()=>{const L=[],N=[...r.value];r.value=N.map((j,V)=>(j.visible!==!1&&L.push(j.prop),{...j,sortIndex:V})),r.value.length===L.length?p.value=!0:L.length>0&&(v.value=!0),f.value=L},d=L=>{let N=null;if(typeof L=="string")N=document.querySelectorAll(`.fox-group[prop="${L}"] > div > .fox-item[prop]`);else if(L&&typeof L=="object"){const j=L.$el??L;typeof j.querySelectorAll=="function"&&(N=j.querySelectorAll(".fox-item[prop]"))}if(!N)return[];const H=[];return N.forEach(j=>{const V=j.querySelector(".label--string");let X="";V&&(X=V.textContent??"");const Y=j.getAttribute("prop")??"",y=window.getComputedStyle(j,null).getPropertyValue("display");H.push({label:X,prop:Y,sortIndex:0,visible:y!=="none"})}),H},h=()=>{if(!a){const L=d(e.groupRef??e.groupProp);if(L.length===0)return!1;a=L}return!0},c=async(L=!1)=>{const N=await i.load(e.groupProp),H=j=>{if(!j||!a)return;const V=a.map(X=>({...X}));Array.isArray(N)&&N.forEach(X=>{V.some(Y=>{if(Y.prop===X.prop){const C=Y.label;return Object.assign(Y,X),Y.label=C,!0}return!1})}),r.value=V.sort((X,Y)=>X.sortIndex-Y.sortIndex),s(),L&&F(!1)};a?H(!0):rn(h,e.initDelay,5,50,!1,H)},b=()=>{const L=a??[];r.value=L.map(N=>({...N})),s(),F()},F=(L=!0)=>{L&&i.save(e.groupProp,r.value);const N=r.value.map(H=>({...H}));n("change",N)},g=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),v=t.ref(!1),P=L=>{const N=[];r.value.forEach(j=>{L&&N.push(j.prop),j.visible=L}),p.value=!1,v.value=!1,r.value.length===N.length?p.value=!0:N.length>0&&(v.value=!0),f.value=N,F()},m=()=>{b()},f=t.ref([]),E=L=>{r.value.forEach(H=>{const j=L.indexOf(H.prop)!==-1;H.visible=j}),p.value=!1,v.value=!1;const N=r.value.length;L.length===N?p.value=!0:L.length>0&&(v.value=!0),F()},B=()=>{c()};t.onMounted(()=>{c(!0)});const M={currentRow:null,index:null},k=L=>L?L.dataset&&L.dataset.role==="row"?L:L.tagName.toLowerCase()!=="body"?(L=L.parentElement,k(L)):null:null,R=L=>{const N=L.currentTarget;N&&N.dataset&&(M.index=N.dataset.index)},D=L=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},O=L=>{const N=L.currentTarget;L.relatedTarget;const H=k(N);H&&(L.preventDefault(),M.currentRow&&M.currentRow!==H&&M.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),M.currentRow=H)},x=L=>{L.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=L=>{const N=L.currentTarget,H=k(N);if(!H)return;L.preventDefault();const j=Number(M.index),V=Number(H.dataset.index);if(j!==V){if(j<V){const X=r.value[j];r.value.splice(j,1),r.value.splice(V,0,X)}else{const X=r.value[j];r.value.splice(j,1),r.value.splice(V+1,0,X)}s(),F()}},T=L=>{const N=r.value[L];r.value.splice(L,1),r.value.splice(0,0,N),s(),F()},$=L=>{const N=r.value[L];r.value.splice(L,1),r.value.push(N),s(),F()};l({refresh:()=>{a=null,c(!1)}});const S=new Map;let W=null;function z(L){const N=document.createRange();return N.setStart(L,0),N.setEnd(L,L.childNodes.length),N.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:u,isCheckAll:p,isIndeterminate:v,handleCheckAllChange:P,handleReset:m,checkedValue:f,handleCheckChange:E,onShow:B,onDragStart:R,onDragEnd:D,onDragOver:O,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:T,toBottom:$,onMouseOverForOverflowText:(L,N,H)=>{const j=L.currentTarget;if(j){const V=Math.floor(j.offsetWidth);if(Math.floor(z(j))>V){let Y=S.get(N);if(Y){if(Y===W)return;Fe.hide(Y)}Y=Fe.show(j,H,{type:"text",placement:"top",closeOnClick:!1}),S.set(N,Y),W=Y}}},onMouseLeaveForOverflowText:(L,N)=>{const H=S.get(N);H&&(Fe.hide(H),H===W&&(W=null))},onMouseOverForTip:(L,N)=>{const H=L.currentTarget;H&&(W&&Fe.hide(W),W=Fe.show(H,N,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:L=>{W&&(Fe.hide(W),W=null)}}}}),Nd={class:"fox-group-setting"},Ed={class:"fox-group-setting__header"},Vd={class:"fox-group-setting__body"},Id={class:"fox-group-setting__body-list","data-role":"container"},Pd=["data-index","draggable"],Od=["onMouseover","onMouseleave"],Ad={class:"tools-item"};function Fd(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=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-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Nd,[t.createElementVNode("div",Ed,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=F=>e.isCheckAll=F),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",Vd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=F=>e.checkedValue=F),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Id,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,F=>(t.openBlock(),t.createElementBlock("div",{key:F.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":F.sortIndex,draggable:e.isDraggble(e.itemPropertyList),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.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:F.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,F.prop,F.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,F.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(F.label),45,Od)]),_:2},1032,["label"]),t.createElementVNode("div",Ad,[t.createVNode(h,{onClick:g=>e.toTop(F.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toBottom(F.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,Pd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const zl=De(Dd,[["render",Fd]]),Ht={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 Bd(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Kt(e,r)===o)return a}else if(l==="item"){if(Le(o,r))return a}else if(wr(e,r)===o)return a}return-1}function Kt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function wr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Md(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Rd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let Ld=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=o;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*a,c=h+a;c>d.length&&(c=d.length);const b=d.slice(h,c);return{totalSize:d.length,page:b}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r]))}};function _d(){const e=t.getCurrentInstance();return new Ld(e.proxy)}function qd(e,n,o,l,a,r,i,u,s,d,h){return{props:{...Ht},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:b}){const{emitEvent:F}=hl(),{toLocaleRefs:g}=ye.useFoxI18n(n),p=g(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),v=_d(),P=t.ref([]),m=t.ref(0),f=t.ref(""),E=t.shallowRef(null),B=t.computed(()=>{const y={};return c.params&&Object.assign(y,c.params),ge(f.value)||(y[`${c.searchKey}`]=f.value),E.value&&Object.assign(y,E.value),y});let M=!0;const k=async(y,_,I)=>{try{if(D.value===!1)return;let U=null;ge(f.value)||(U=w=>{const K=Kt(c,w);if(typeof K=="string"&&K.includes(f.value))return!0;const ee=Yo(c,w);return!!(typeof ee=="string"&&ee.includes(f.value))});const Z=await v.load("actionsheet",y,_,I,B.value,M,U??void 0);M=!1,Array.isArray(Z)?(P.value=Z,m.value=1,D.value=!1):!Array.isArray(Z.page)||Z.page.length===0?(console.warn("[FoxUI] can not load more data"),D.value=!1):(Reflect.apply([].push,P.value,Z.page),m.value=Math.ceil(P.value.length/c.pageSize),(Z.totalSize&&P.value.length>=Z.totalSize||I<Z.page.length)&&(D.value=!1)),R.value=!1}catch(U){console.error("[FoxUI] ActionSheet load more data fail",U),D.value=!0,m.value=0,P.value=[]}setTimeout(()=>{F("loaded-data")},250)},R=t.ref(!1),D=t.ref(!0),O=async()=>{if(!c.source){R.value=!1;return}await k(c.source,m.value+1,c.pageSize)};t.watch(()=>f.value,(y,_)=>{ge(y)&&!ge(_)&&O()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([y,_,I])=>{c.source&&O()},{immediate:!0});const x=t.computed(()=>!c.multiple&&c.isAutoBackFill),q=t.ref([]);let T=null;const $=t.ref(c.visible);t.watch(()=>c.visible,y=>{$.value!==y&&($.value=y),y?T=[...q.value]:T=null});const S=(y,_)=>{const I=[];return Array.isArray(y)||(y=[y]),y.forEach(U=>{let Z=Bd(c,_,U,c.valueType);Z!==-1&&I.push(Z)}),Le(I,q.value)?!1:(q.value=I,!0)};t.watch([()=>c.modelValue,()=>P.value],([y,_],[I,U])=>{if(S(y,_)){const w=W();z(w)}},{deep:!0});const W=()=>{const y=[],_=[],I=[];for(let K of q.value){const ee=P.value[K];_.push(ee);const ne=Kt(c,ee);if(I.push(ne),c.valueType==="item")y.push(ee);else if(c.valueType==="text")y.push(ne);else{const te=wr(c,ee);y.push(te)}}let U=null,Z=null,w=null;return c.multiple?(U=y,Z=I,w=_):(U=y[0]??null,Z=I[0]??null,w=_[0]??null),{value:U,text:Z,item:w}},z=y=>{F("update:modelValue",y.value),F("update:text",y.text),F("change",y.value,y.item,y.text)},Q=()=>{T&&(q.value=T)},G=y=>{const _=q.value.indexOf(y);c.multiple?_===-1?q.value.push(y):q.value.splice(_,1):_===-1?q.value=[y]:q.value=[],(x.value||!c.poppable&&!c.showFooter)&&L()},J=y=>{$.value=y,F("update:visible",y)},le=()=>{const y=()=>{Q(),J(!1)},_=c.beforeMethod??c.beforeClose;if(typeof _=="function"){const I=_("close");Ut(I)?I.then(U=>{U!==!1&&y()}).catch(()=>{y()}):I!==!1&&y()}else y()},L=()=>{const y=W(),_=()=>{z(y),J(!1)},I=c.beforeMethod??c.beforeClose;if(typeof I=="function"){const U=I("confirm",y.value,y.item,y.text);Ut(U)?U.then(Z=>{Z!==!1&&_()}).catch(()=>{_()}):U!==!1&&_()}else _()},N=()=>{D.value=!0,m.value=0,P.value=[],c.source&&O()},H=()=>{let y=p.title.value??"";b.title&&(y=b.title());const _=t.h("view",{class:["fox-actionsheet__header-title"]},[y]),I=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:le});return t.h("view",{class:["fox-actionsheet__header"]},[_,I])},j=()=>{let y=null;if(b.search)y=b.search();else{const _={onSearch:N,placeholder:p.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":I=>{f.value=I}};y=t.h(r,_,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[y])},V=(y,_,I,U,Z)=>{if(b.optionLabel)return b.optionLabel({text:y,checked:_,disabled:I,subText:U,item:Z});const w=[],K=t.h("view",{class:"fox-actionsheet__list-item-text"},[y]);if(w.push(K),U){const ee=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[U]);w.push(ee)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},w)},X=(y,_,I,U)=>{if(b.optionIcon)return b.optionIcon({checked:y,disabled:_,iconSize:I,item:U});if(y){if(b.checkedIcon)return b.checkedIcon({disabled:_,item:U});{const Z=c.checkedIcon??u;return t.h(Z,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}else{if(b.icon)return b.icon({disabled:_,item:U});{const Z=c.icon??i;return t.h(Z,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}},Y=()=>{const y=[];for(let _=0;_<P.value.length;_++){const I=P.value[_],U=Kt(c,I),Z=Yo(c,I),w=["fox-actionsheet__list-item"],K={};let ee=Md(c,I),ne=c.iconSize?he(c.iconSize):null;const te=Rd(c,I,_);te&&(ee=ee||te.disabled,te.class&&w.push(te.class),te.style&&Object.assign(K,te.style)),ee=!!(c.disabled||ee);const oe=q.value.includes(_);ee&&w.push("is-disabled"),oe&&w.push("is-checked");const re={class:w,style:K,key:`${_}`,onClick:()=>{ee||G(_)}};let se=[];if(b.option)se.push(b.option({item:I,checked:oe,disabled:ee}));else{const me=V(U,oe,ee,Z,I);se.push(me);const Ze=X(oe,ee,ne,I);se.push(Ze)}const ve=t.h("view",re,se);y.push(ve)}return y},C=()=>{let y=[];if(b.buttons)y=b.buttons();else{const I=t.h(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:L,disabled:c.disabled},{default:()=>p.confirmText.value});y.push(I)}return t.h("view",{class:"fox-actionsheet__footer"},[y])};return pe({search:async(y=null,_=!0)=>{E.value=y&&t.toRaw(y),t.triggerRef(E),_&&(D.value=!0,m.value=0,P.value=[]),t.nextTick(()=>{O()})},clear:()=>{D.value=!0,m.value=0,P.value=[]},confirm:()=>{L()},cancel:()=>{le()}}),()=>{const y=[];if(c.showHeader){const ne=H();y.push(ne)}if(c.showSearchbar){const ne=j();y.push(ne)}let _=null;if(b.content)_=b.content();else{const ne=Y(),te={hasMore:D.value,loadText:p.loadText.value,loadMoreText:p.loadMoreText.value,modelValue:R.value,"onUpdate:modelValue":oe=>{R.value=oe},onLoadMore:O};_=t.h(l,te,{default:()=>ne})}const I={};c.optionsHeight&&(I.height=c.optionsHeight);const U={"fox-actionsheet__list":!0};c.poppable||(U["fox-actionsheet__list--inner"]=!0);const Z=t.h("view",{class:U,style:I},[_]);if(y.push(Z),c.showFooter&&!x.value){const ne=C();y.push(ne)}const w=t.h("view",{class:"fox-actionsheet"},y);if(!c.poppable)return w;const K=["fox-actionsheet__popup"];c.popClass&&K.push(c.popClass);const ee={popClass:K.join(" "),visible:$.value,closeable:!1,"onUpdate:visible":J,position:c.position,round:"round",onClickOverlay:le,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(o,ee,{default:()=>w})}}}}const zd=/scroll|auto|overlay/i,xr=window;function jd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Hd(e,n=xr){let o=e;for(;o&&o!==n&&jd(o);){const{overflowY:l}=window.getComputedStyle(o);if(zd.test(l))return o;o=o.parentNode}return n}function Sr(e,n=xr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Hd(e.value,n))}),o}const Cr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Kd={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 Yd(e,n,o){return{props:{...Kd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=Sr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),b=m=>m?m.offsetTop+b(m.offsetParent):0,F=()=>{let m=0,f=0,E="down";if(d.value==window){const B=Cr();s.value&&(m=b(s.value)+s.value.offsetHeight-B-window.innerHeight),f=B}else{const{scrollHeight:B,clientHeight:M,scrollTop:k}=d.value;m=B-M-k,f=k}return h.beforeScrollTop>f?E="up":E="down",h.beforeScrollTop=f,a("scroll-change",f),m<=l.threshold&&E=="down"},g=()=>{rl(()=>{if(!F()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},p=()=>{d.value&&d.value.addEventListener("scroll",g,l.useCapture)},v=()=>{d.value&&d.value.removeEventListener("scroll",g,l.useCapture)};t.onMounted(()=>{p(),l.immediate&&g()}),t.onUnmounted(()=>{v()});const P=t.ref(!1);return t.onActivated(()=>{P.value&&(P.value=!1,p())}),t.onDeactivated(()=>{P.value=!0,v()}),t.watch(()=>l.modelValue,m=>{m||(h.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},f=t.h("view",m,[r?.default?.()]),E=[];if(h.isInfiniting){let R=r?.loading?.()??null;if(!R){let x=r?.loadingIcon?.()??null;if(!x){const $={class:["fox-infinite__bottom-box__img"]};x=t.h(o,$)}const q={class:"fox-infinite__bottom-box__text"},T=t.h("view",q,[u.loadText.value]);R=[x,T]}const D={class:"fox-infinite__bottom-box"},O=t.h("view",D,R);E.push(O)}else if(!l.hasMore){let R=r?.finished?.()??null;if(!R){const D={class:"fox-infinite__bottom-tips"};R=t.h("view",D,[u.loadMoreText.value]),E.push(R)}}const B={class:"fox-infinite__bottom"},M=t.h("view",B,E),k={class:c.value,ref:s};return t.h("view",k,[f,M])}}}}const{componentName:Wd,create:Ud,scope:Gd}=ie("infinite-loading"),Sn=Ud(Yd(Wd,Gd,bn)),Xd={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"}},Zd=(e,n,o)=>({props:{...Xd},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}=hl(),{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=D=>{let x=D.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),r("update:modelValue",x,D),r("change",x,D)},b=t.ref({}),F=D=>{let x=D.target.value;s.active=!0,b.value=l.focusStyle,r("focus",x,D)},g=D=>{setTimeout(()=>{s.active=!1},0);let x=D.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),b.value={},r("blur",x,D)},p=D=>{r("update:modelValue","",D),r("change","",D),r("clear","")},v=t.computed(()=>String(l.modelValue).length>0),P=t.computed(()=>{const D={};return v.value||(D.display="none"),D}),m=()=>{r("search",l.modelValue)},f=D=>{r("keyup-input",D),D.key.toLocaleUpperCase()==="ENTER"&&m()},E=D=>{r("click-input",D)},B=D=>{r("click-left-icon",l.modelValue,D)},M=t.computed(()=>({textAlign:l.inputAlign})),k=t.ref(null);t.onMounted(()=>{l.autofocus&&k.value.focus()});const R=()=>{const D=[];if(a.leftin){const $={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},S=t.h("view",$,[a.leftin()]);D.push(S)}const O={ref:k,class:[`${e}__input-inner`],style:M.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:E,onInput:c,onFocus:F,onBlur:g,onkeyup:f},x=t.h("input",O);D.push(x);const q=[];if(l.clearable){const $={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:p},S=a?.clear?.()??l.clearIcon??o,W=t.h("view",$,[t.h(S)]);q.push(W)}if(a.rightin){const $={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},S=t.h("view",$,[a.rightin()]);q.push(S)}if(q.length>0){const $={class:`${e}__input-inner-right`},S=t.h("view",$,q);D.push(S)}const T={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...b.value}};return t.h("view",T,D)};return()=>{const D=[];if(l.label){const q={class:`${e}__search-label`},T=t.h("span",q,[l.label]);D.push(T)}if(a.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},T=t.h("view",q,[a.leftout()]);D.push(T)}const O=R();if(D.push(O),a.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},T=t.h("view",q,[a.rightout()]);D.push(T)}const x={class:`${e}`,style:d.value};return t.h("view",x,D)}}}),{componentName:Jd,create:Qd,scope:eh}=ie("searchbar"),Cn=Qd(Zd(Jd,eh,Te.CircleClose)),{componentName:th,create:nh,scope:lh}=ie("actionsheet-pane"),Tn=nh(qd(th,lh,ct,Sn,A.ElButton,Cn,Pu,Nu,mr,fu)),Wo={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 oh(e,n,o,l,a){return{props:{...be,...ke,...Wo,...Ht},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=Ve(t.computed(()=>r.disabled)),s=Ee(t.computed(()=>r.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return u.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ye.useFoxI18n(n),c=h(r,["placeholder"]),b=t.ref(!1),F=fe(r,"modelValue",null,d),g=t.ref(""),p=t.computed(()=>Array.isArray(g.value)?g.value.join(r.separator):g.value),v="fox-input-item",P=t.computed(()=>({[v]:!0,[`${v}__disabled`]:u.value})),m=Ne(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const S={};return m.value&&(S["text-align"]=m.value),S}),E=t.ref(!1),B=()=>{E.value=!0},M=S=>{E.value=S},k=S=>{F.value=S,d("update:modelValue",S)},R=(S,W)=>{d("change",S,W)},D=S=>{let z=S.target.value;b.value=!0,d("focus",z,S)},O=S=>{setTimeout(()=>{b.value=!1},0);let z=S.target.value;r.maxLength&&z.length>Number(r.maxLength)&&(z=z.slice(0,Number(r.maxLength))),d("blur",z,S)},x=S=>{g.value=S,d("update:text",S)},q=t.computed(()=>Ke(r.unit)>0),T=t.ref(),$=t.ref(null);return pe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},select:()=>{T?.value.select()},search:S=>{$.value&&$.value.search(S)},clear:()=>{$.value&&$.value.clear},confirm:S=>{$.value&&$.value.confirm()},cancel:()=>{$.value&&$.value.cancel()}}),()=>{const S={ref:T,class:P.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:p.value,onClick:B,onFocus:D,onBlur:O},W={};i.slots.prepend&&(W.prepend=i.slots.prepend),i.slots.append&&(W.append=i.slots.append),i.slots.prefix&&(W.prefix=i.slots.prefix),i.slots.suffix?W.suffix=i.slots.suffix:q.value?W.suffix=()=>[r.unit]:W.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Te.ArrowDown)});const z=[],Q=t.h(A.ElInput,S,W);z.push(Q);const G={default:()=>z};G.label=i.slots.default,G.prepend=i.slots.prepend,G.append=i.slots.append,G.fixedPreTip=i.slots.fixedPreTip,G.fixedTip=i.slots.fixedTip;const J=Bt(r,Ht);J.ref=$,J.class=r.actionsheetProps,J.disabled=u.value||s.value,J.visible=E.value,J["onUpdate:visible"]=M,J.modelValue=F.value,J["onUpdate:modelValue"]=k,J.text=g.value,J["onUpdate:text"]=x,J.onChange=R,J.poppable=!0;const le={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},L=t.h(l,J,le);G.hide=()=>[L];const N=$e(r,Wo,Ht);return t.h(o,{...N,prop:`${r.prop}_item`},G)}}}}const{componentName:ah,create:rh,scope:ih}=ie("actionsheet-item"),jl=rh(oh(ah,ih,we,Tn)),Tr={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}},Hl={...kl,...Tr,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 sh(e){return e===window}const Kl=e=>{const n=t.unref(e);if(sh(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}},Uo=10;function $r(e,n){return e>n&&e>Uo?"horizontal":n>e&&n>Uo?"vertical":""}function Yl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Wl(){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 d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.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=$r(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.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),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",b=()=>h.value==="horizontal",F=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:v=>{if(v.touches){const f=v.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const m=v;i.value=m.clientX-e.value,u.value=m.clientY-n.value,a.value=m.clientX,r.value=m.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=$r(s.value,d.value))},start:v=>{if(F(),v.touches){const f=v.touches[0];e.value=f.clientX,n.value=f.clientY}else{const m=v;e.value=m.clientX,n.value=m.clientY}o.value=Date.now()},reset:F,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:b}}let Dr=36;function uh(){return Dr}function ch(e){Dr=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ol(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fh(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Go(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let dh=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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function hh(){const e=t.getCurrentInstance();return new dh(e.proxy)}function Xo(e,n,o){const l=ze(e,n),a=ze(e,o);if(l!==a)return!1;const r=st(e,n),i=st(e,o);return r===i}function mh(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 d=o[i].findIndex(h=>{if(r==="text")return ze(e,h)===u;if(r==="value"){let c=st(e,h);return c==null&&(c=ze(e,h)),c===u}else if(r==="item")return Xo(e,h,u)});if(d==-1)break;a.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return ze(e,c)===s;if(r==="value"){let b=st(e,c);return b==null&&(b=ze(e,c)),b===s}else if(r==="item")return Xo(e,c,s)});if(d==-1)break;a.push(d);const h=ol(e,i[d]);if(!Array.isArray(h))break;i=h}}return a}function Zo(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 d=u[s],h=ze(e,d);if(a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let c=st(e,d);c==null&&(c=h),a.values.push(c)}else a.values.push(d)}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 d=i[s],h=ze(e,d),c=Object.assign({},d);if(c.children=null,a.texts.push(h),a.items.push(c),r==="text")a.values.push(h);else if(r==="value"){let b=st(e,d);b==null&&(b=h),a.values.push(b)}else a.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return a}function Jo(e){return{text:e,value:e}}const gh=15,ph=300,vh=200,{create:yh}=ie("picker-column");function bh(e){e.stopPropagation()}function wh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&bh(e)}const xh=yh({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},...Tr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${de(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=k=>k>=c.currIndex+8||k<=c.currIndex-8,u=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=k=>`transform: rotate3d(1, 0, 0, ${-c.rotation*k}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),b=k=>ze(e,k),F=k=>st(e,k),g=kr(),p=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},v=(k,R=!1,D=!1)=>{if(c.currIndex=k,R){const O=()=>{c.moving=!1,n("update:modelValue",k),n("change",k)};D?c.transitionEndTrigger=O:O()}},P=(k,R,D)=>{let O=k+c.startDistance;if(R==="end"){const x=-(e.source.length-1)*e.itemHeight;O<x&&(O=x),O>0&&(O=0);let q=Math.abs(Math.round(-O/e.itemHeight));const T=-q*e.itemHeight,$=`${(q+1)*c.rotation}deg`,S=D?D>0:!1;v(q,!0,S),m(T,R,D,$)}else{let x=(-O/e.itemHeight+1)*c.rotation;const q=(e.source.length+1)*c.rotation,T=0;if(x=Math.min(Math.max(x,T),q),e.threeDimensional&&(x<T||x>q))return;m(O,null,void 0,`${x}deg`)}},m=(k=0,R,D=vh,O)=>{R==="end"?c.scrollTime=D:c.scrollTime=0,c.deg=O,c.scrollDistance=k},f=(k,R)=>(k=Math.abs(k/R)/.003*(k<0?-1:1),k),E=k=>{e.readonly||(c.startDistance=c.scrollDistance,g.start(k),c.transitionEndTrigger=null)},B=k=>{e.readonly||(c.moving=!0,g.move(k),g.isVertical()&&(c.moving=!0,wh(k,!0)),P(g.deltaY.value,"",0))},M=()=>{if(e.readonly)return;const k=g.deltaY.value,R=g.duration.value;if(R<ph&&Math.abs(k)>gh){const O=f(k,R);P(O,"end",e.swipeDuration)}else P(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const R=c.currIndex-k;if(R!==0){c.currIndex=k,c.startDistance=c.scrollDistance;const D=R*e.itemHeight;P(D,"",0)}}),t.watch(()=>e.source,k=>{if(c.currIndex>=k.length){const O=(k.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,P(O,"end",0)}}),t.watch(()=>e.visible,k=>{k===!1&&p()}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;P(k)}),{classes:o,styles:l,contentClasses:a,itemText:b,itemValue:F,...t.toRefs(c),roller:h,getItemText:ze,onTouchStart:E,onTouchMove:B,onTouchEnd:M,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:p}}}),Sh={key:1,class:"fox-picker__item-tile"};function Ch(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",Sh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Th=De(xh,[["render",Ch]]),{create:$h,componentName:kh,scope:Dh}=ie("picker"),Nh=$h({components:{PickerColumn:Th,Popup:ct},props:{...Hl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ye.useFoxI18n(Dh),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(uh());t.watch(()=>e.visible,x=>{x&&i.value<=0&&setTimeout(()=>{if(r.value){const q=Kl(r.value);i.value=q.height,ch(i.value)}},50)});const u=t.computed(()=>({[kh]:!0})),s=hh(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,q])=>{if(x){let T=await s.load("select",x,q);if(T.length>0){let $=T[0];if(Array.isArray($)){if(typeof $[0]=="string"){let S=T,W=[];S.forEach(z=>{let Q=z.map(G=>Jo(G));W.push(Q)}),h.value=W}else h.value=T;d.value="multipleColumn"}else if(typeof $=="string"){let S=T,W=[],z=S.map(Q=>Jo(Q));W.push(z),h.value=W,d.value="singleColumn"}else{const S=ol(e,$);Array.isArray(S)?(d.value="cascade",h.value=[T]):(d.value="singleColumn",h.value=[T])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),b=t.ref(e.modelValue),F=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([x,q])=>{let T=mh(e,x,q,d.value);if(!Le(T,g.value)){g.value=T;let $=Zo(e,T,q,d.value);$&&(c.value=$.texts,n("update:text",c.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,x=>{p.value=x});const v=x=>{let q=Go(e,x);return Re(q)?q.defaultIndex??0:0},P=x=>{if(e.readonly===!0)return!0;let q=Go(e,x);return Re(q)?q.readonly??!1:!1},m=(x,q)=>{let T=g.value;T[x]=q;for(let S=0;S<x;S++)T[S]==null&&(T[S]=v(S));if(d.value==="cascade")for(let S=x+1;S<E.value.length;S++){let W=v(S);S<T.length?T[S]=W:T.push(W)}else for(let S=T.length;S<E.value.length;S++){let W=v(S);T.push(W)}g.value=T;let $=Zo(e,T,h.value,d.value);$&&(c.value=$.texts,b.value=$.values,F.value=$.items)},f=x=>x<g.value.length?g.value[x]:v(x),E=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let x=[],q=0,T=h.value[0],$=0;for(;;){let S=T.map(Q=>{let G=Object.assign({},Q);return fh(e,G,null),G});x.push(S),q>=g.value.length?$=0:$=g.value[q],($<0||$>=T.length)&&($=0);let W=T[$];const z=ol(e,W);if(!Array.isArray(z))break;T=z,q++}return x}),B=t.computed(()=>de(+e.visibleItemCount-1)/2*i.value),M=(x=!1)=>{if(e.readonly===!0){x&&n("update:visible",!1);return}let q=h.value.length-1;for(;q>=0&&!(g.value[q]===null||g.value[q]===void 0);q--);if(q>=0&&m(q,0),d.value==="singleColumn"){let T=b.value.length>0?b.value[0]:"",$=F.value.length>0?F.value[0]:null;n("update:modelValue",T),n("update:text",c.value),n("change",T,$),x&&(n("confirm",T),n("update:visible",!1))}else n("update:modelValue",b.value),n("update:text",c.value),n("change",b.value,F.value),x&&(n("confirm",b.value),n("update:visible",!1))};return{...a,pickerLineRef:r,classes:u,columns:E,dataType:d,show:p,itemHeight:i,top:B,isReadonly:P,getIndex:f,change:(x,q)=>{if(m(x,q),e.isAutoBackFill){const T=!p.value;M(T)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{M(!0)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Eh={class:"fox-picker__bar"},Vh={class:"fox-picker__title"},Ih={class:"fox-picker__bar__action"},Ph={class:"fox-picker__column"};function Oh(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",Eh,[t.createElementVNode("view",Vh,t.toDisplayString(e.title),1),t.createElementVNode("view",Ih,[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",Ph,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,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 Rt=De(Nh,[["render",Oh]]),Qo={...Hl,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 Ah(e,n,o){return{props:{...be,...ke,...Qo},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=e,b=t.computed(()=>({[c]:!0})),F=Ne(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>({textAlign:F.value??"right"})),p=fe(l,"modelValue",null,u),v=t.ref([]),P=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),m=t.ref(!1),f=()=>{m.value=!0},E=S=>{m.value=S},B=S=>{p.value=S,u("update:modelValue",S)},M=S=>{v.value=S,Array.isArray(S)&&S.length===0?u("update:text",S[0]):u("update:text",S)},k=(S,W)=>{u("change",S,W)};let R=fe(l,"hintText"),D=t.ref(!1);const O=S=>{let z=S.target.value;h.value=!0,ge(R.value)||(D.value=!0),u("focus",z,S)},x=S=>{setTimeout(()=>{D.value&&(D.value=!1),h.value=!1},0);let z=S.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),m.value?setTimeout(()=>{u("blur",z,S)},50):u("blur",z,S)},q=()=>{u("clear","")},T=t.computed(()=>Ke(l.unit)>0),$=t.ref();return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const S={class:b.value,style:g.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ue(l.clearable),readonly:!0,value:P.value,onClick:f,onFocus:O,onBlur:x},W={};a.slots.prepend&&(W.prepend=a.slots.prepend),a.slots.append&&(W.append=a.slots.append),a.slots.prefix&&(W.prefix=a.slots.prefix),a.slots.suffix?W.suffix=a.slots.suffix:T.value?W.suffix=()=>[l.unit]:W.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Te.ArrowDown)});const z=[],Q=t.h(A.ElInput,S,W);z.push(Q);const G={default:()=>z};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const J=Bt(l,Hl);J.disabled=!1,J.readonly=r.value||i.value,J.visible=m.value,J["onUpdate:visible"]=E,J.modelValue=p.value,J["onUpdate:modelValue"]=B,J.text=v.value,J["onUpdate:text"]=M,J.onClear=q,J.onChange=k;const le=t.h(Rt,J);G.hide=()=>[le];const N={...$e(l,Qo),hintText:R.value,hintVisible:D.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,N,G)}}}}const{componentName:Fh,create:Bh,scope:Mh}=ie("picker-item"),Ul=Bh(Ah(Fh,Mh,we)),Rh={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},ea=(e,n)=>n[e.textKey],kt=(e,n)=>n[e.valueKey],Lh=(e,n)=>n[e.visibleKey],ta=(e,n)=>n[e.disabledKey],_h=(e,n)=>{const o=n[e.doitKey];return ue(o)},qh=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},na=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function zh(e,n,o,l=!1){return{props:{...Rh},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const u=t.computed(()=>{const L={};return L[`${e}`]=!0,L}),s=t.computed(()=>{const L={};return L[`${e}__titles`]=!0,L[`${a.direction}`]=!0,a.align==="left"&&(L.left=!0),a.scroll===!0&&(L.scrollable=!0),a.shape&&(L[`${a.shape}`]=!0),L}),d=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const L=he(a.gutter);return L<=0?0:L}),c=t.ref(a.modelValue);t.watch(()=>a.modelValue,L=>{c.value!==L&&(c.value=L,z(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),F=t.computed(()=>{const L={};return p.value||(L.display="none"),L}),g=t.ref(),p=t.ref(!1),v=()=>{const L=!p.value;P(L)},P=L=>{const N=L;N?(p.value=N,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{p.value=!1},{once:!0}):setTimeout(()=>{p.value=!1},0))},m=t.ref(),f=t.ref([]),E=(L,N)=>{f.value[N]=L},B=L=>N=>{E(N,L)},M=(L,N)=>{const H=m.value,j=f.value;if(!H||!j||!j[L])return;const V=j[L];let X=0;a.direction==="vertical"?X=V.offsetTop-(H.offsetHeight-V.offsetHeight)/2:X=V.offsetLeft-(H.offsetWidth-V.offsetWidth)/2,k(H,X,N?0:.3,a.direction)},k=(L,N,H,j)=>{let V=0;const X=j==="horizontal"?L.scrollLeft:L.scrollTop,Y=H===0?1:Math.round(H*1e3/16);function C(){j==="horizontal"?L.scrollLeft+=(N-X)/Y:L.scrollTop+=(N-X)/Y,++V<Y&&ul(C)}C()},R=(L,N)=>{const H=kt(a,L),j={};return j[`${e}__titles-item`]=!0,j.disabled=ta(a,L),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0),a.ellipsis&&(j.ellipsis=!0),N&&(N.class&&(j[`${N.class}`]=!0),N.disabled===!0&&(j.disabled=N.disabled)),j},D=(L,N)=>{const H={};if(h.value>0){const j=Math.abs(h.value/2);a.direction==="vertical"?(H["margin-top"]=`${j}px`,H["margin-bottom"]=`${j}px`):(H["margin-left"]=`${j}px`,H["margin-right"]=`${j}px`)}return N&&N.style&&Object.assign(H,N.style),H},O=(L,N)=>`${kt(a,L)??N}`,x=(L,N)=>{const H=kt(a,L),j={};j[`${e}__popup-item`]=!0,j.disabled=ta(a,L),j.active=H===c.value,a.shape&&(j[`${a.shape}`]=!0);const V=na(a,L,N);return V&&V.disabled===!0&&(j.disabled=V.disabled),j},q=t.computed(()=>(a.data??[]).filter(N=>Lh(a,N)!==!1)),T=(L,N)=>{const H=kt(a,L);if(c.value==H)return;const j=()=>{c.value=H,a.scroll&&M(N,!1),i("update:modelValue",H),i("change",L,N)};if(typeof a.beforeChange=="function"){const V=a.beforeChange(L,N);Ut(V)?V.then(X=>{X!==!1&&j()}).catch(()=>{j()}):V!==!1&&j()}else j()},$=(L,N)=>function(){T(L,N)},S=(L,N)=>{T(L,N),P(!1)},W=(L,N)=>function(){S(L,N)},z=L=>{if(!Array.isArray(a.data)||!a.scroll)return;const N=a.data.findIndex(H=>kt(a,H)===c.value);N!==-1&&M(N,L)};t.watch(()=>a.data,()=>{setTimeout(z,0)}),t.onMounted(()=>{z(!0)});const Q=(L,N)=>{if(r.item)return r.item({item:L,index:N});const H=na(a,L,N),j=[];if(r.text){const C=r.text({item:L,index:N});j.push(C)}else{const C=[];if(H?.doit===!0||_h(a,L)){const U={class:[`${e}__titles-item-tip`,"doit"]},Z=t.h("view",U);C.push(Z)}const y=H?.num??qh(a,L);if(y){let U="";const Z=de(y);Z>=100?U="99+":U=`${Z}`;const w={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",w,[U]);C.push(K)}const _={class:`${e}__titles-item-text`};C.push(ea(a,L));const I=t.h("view",_,C);j.push(I)}const V={class:`${e}__titles-item-line`},X=t.h("view",V);j.push(X);const Y={ref:B(N),class:R(L,H),style:D(L,H),key:O(L,N),onClick:$(L,N)};return t.h("view",Y,j)},G=()=>{const L=r.default?r.default():[];if(L.length===0)for(let H=0;H<q.value.length;H++){const j=q.value[H],V=Q(j,H);L.push(V)}const N={ref:m,class:s.value,style:d.value};return t.h("view",N,L)},J=()=>{let L=null;r.navigation?L=r.navigation():L=t.h(o);const N={class:`${e}__navigation`,onClick:v};return t.h("view",N,[L])},le=()=>{const L=[];for(let H=0;H<q.value.length;H++){const j=q.value[H];let V=null;r.popupItem?V=r.popupItem({item:j,index:H}):V=ea(a,j);const X={class:x(j,H),key:O(j,H),onClick:W(j,H)},Y=t.h("view",X,[V]);L.push(Y)}const N={class:b.value,style:F.value};return t.h("view",N,L)};return()=>{const L=[],N=G();if(L.push(N),a.showQuickNavigation){const j=J();L.push(j);const V=le();L.push(V)}const H={class:u.value};return t.h("view",H,L)}}}}const{create:jh,componentName:Hh,scope:Kh}=ie("tabs-bar"),$n=jh(zh(Hh,Kh,gu,!1)),Nr=Symbol("TabsStatesKey"),Yh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Wh(e,n,o=!1){return{props:{...Yh},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:p=>{const v={name:p};u.current.value===p&&(v.loaded=!0),i.value.push(v),t.triggerRef(i)},remove:p=>{const v=i.value.findIndex(P=>P.name===p);v!==-1&&i.value.splice(v,1)},isLoaded:p=>{if(!l.lazy)return!0;const v=i.value.findIndex(P=>P.name===p);return v!==-1?u.current.value?i.value[v].loaded??!1:v===0:!1}};t.provide(Nr,u);const s=p=>{const v=i.value.findIndex(P=>P.name===p);v!==-1&&(i.value[v].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([p,v])=>{u.current.value!==p&&(u.current.value=p??"",s(p??"")),u.direction.value!==v&&(u.direction.value=v)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const F=t.computed(()=>{const p={},v=i.value.length;if(v<=0)return p;const P=i.value.findIndex(m=>m.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(p.height=`${v*u.tabHeight.value}px`,P!==-1&&(p.transform=`translate(0, -${P*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(p.width=`${v*u.tabWidth.value}px`,P!==-1&&(p.transform=`translate(-${P*u.tabWidth.value}px, 0)`)),b&&(b=!1,p.transition="transform 0s ease"),p});let g=null;return t.onMounted(()=>{if(!d.value)return;const p=()=>{const v=cn(d.value);u.tabWidth.value=v.width,u.tabHeight.value=v.height};window.ResizeObserver&&(g=new window.ResizeObserver(p),g.observe(d.value)),p()}),t.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const p={class:`${e}__panes`,style:F.value,ref:h},v=t.h("view",p,[r?.default?.()]),P={class:c.value,ref:d};return t.h("view",P,[v])}}}}const{create:Uh,componentName:Gh,scope:Xh}=ie("tabs-container"),kn=Uh(Wh(Gh,Xh,!1)),Zh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Jh(e,n,o){return{props:{...Zh},setup(l,{emit:a,slots:r}){const i=t.inject(Nr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),s=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const c={class:`${e}__empty-icon`},b=l.emptyIcon??o,F=t.h(b,c),g={class:`${e}__empty-text`},p=l.emptyText??"Loading",v=t.h("view",g,[p]),P={class:`${e}__empty`},m=t.h("view",P,[F,v]);d.push(m)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Qh,componentName:em,scope:tm}=ie("tabs-pane"),Dn=Qh(Jh(em,tm,bn)),nm={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function lm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function la(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function oa(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function om(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function qn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function aa(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 zn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class am{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=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function rm(){const e=t.getCurrentInstance();return new am(e.proxy)}function im(e,n,o,l){return{props:{...nm},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const u=e,s=rm(),d=t.ref([]),h=t.computed(()=>d.value.filter(N=>om(a,N)!==!1)),c=t.ref(-1),b=()=>{const N=a.modelValue,H=h.value.findIndex(j=>la(a,j)===N);c.value!==H&&(c.value=H,a.scroll&&le(H,!1))};t.watch([()=>a.modelValue,h],()=>{b()});const F=N=>c.value===N,g=N=>{if(N<0&&N>=h.value.length)return!1;const H=h.value[N],V=(zn(a,H,N)??{}).status??qn(a,H);return F(N)||V},p=t.computed(()=>{const N={[u]:!0};return a.mode?N[`is-${a.mode}`]=!0:a.direction&&(N[`is-${a.direction}`]=!0),a.scroll&&(N["is-scroll"]=!0),N}),v=t.computed(()=>({})),P=(N,H,j,V,X)=>{const Y={[`${u}__step`]:!0};return X&&(Y[`${X}`]=!0),Y[`${m.value}`]=!0,V&&(Y["is-doit"]=!0),N===c.value?Y["is-active"]=!0:H==="done"?Y["is-done"]=!0:H==="error"?Y["is-error"]=!0:H==="half"?Y["is-half"]=!0:j?Y["is-disabled"]=!0:Y["is-normal"]=!0,Y},m=t.computed(()=>{if(a.mode==="simple")return"start";let N=a.align;return N||(a.direction==="vertical"?N="start":N="center"),N}),f=(N,H={})=>{const j={...H};return m.value==="start"&&N===h.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},E=(N,H)=>{let j={};if(H<h.value.length-1){const V=H+1;g(H)&&g(V)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},B=N=>h.value.length-1===N,M=(N,H)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&H>c.value||c.value===H)return;const j=c.value,V=H;c.value=H,a.scroll&&le(H,!1);const X=la(a,N);i("update:modelValue",X);const Y={fromIndex:j,currentIndex:V,item:N,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",X,Y)},k=t.ref(!0),R=async(N,H)=>{try{const j=await s.load("stesbar",N,H);Array.isArray(j)&&(d.value=j),k.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([N,H])=>{N&&R(N,H)},{immediate:!0});const D=(N,H,j,V,X)=>{let Y=null;if(r.icon)Y=r.icon({item:N,index:H,status:V});else if(V==="done"){const y={};a.iconSize&&(y.width=a.iconSize,y.height=a.iconSize);const _=a.icon??o;Y=t.h(_,y)}else{const y=j??`${H+1}`;Y=t.h("span",{},[y])}const C={class:"fox-steps-bar__icon",onClick:()=>{X||M(N,H)}};return t.h("view",C,[Y])},O=(N,H,j)=>{const V=t.h("i",{class:"fox-steps-bar__line-inner",style:E(N,H)});return t.h("view",{class:"fox-steps-bar__line"},[V])},x=()=>{let N=null;if(r.markIcon)N=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const V=a.markIcon??l;N=t.h(V,j)}return t.h("view",{class:"fox-steps-bar__mark"},[N])},q=(N,H,j,V,X)=>{const Y=[];if(!B(H)){const _=O(N,H);Y.push(_)}const C=D(N,H,j,V,X);Y.push(C);const y={class:"fox-steps-bar__head"};return t.h("view",y,Y)},T=(N,H,j,V)=>{let X=null;r.main?X=r.main({item:N,index:H,status:j}):X=lm(a,N);const Y={class:"fox-steps-bar__main",onClick:()=>{V||M(N,H)}};return t.h("view",Y,[X])},$=(N,H,j)=>{let V=null;if(r.sub){V=r.sub({item:N,index:H,status:j});const X={class:"fox-steps-bar__sub"};return t.h("view",X,[V])}return null},S=(N,H)=>{const j=zn(a,N,H)??{},V=j.status??qn(a,N);let X=oa(a,N);j.disabled===!0&&(X=!0),a.disabled===!0&&(X=!0);const Y=j.label??ra(a,N),C=[],y=D(N,H,Y,V,X);y&&C.push(y);const _=T(N,H,V,X);if(_&&C.push(_),!B(H)){const ee=O(N,H);ee&&C.push(ee)}const I=t.h("view",{class:"fox-steps-bar__head"},C),U=j.class,Z=j.style??{};let w=aa(a,N);j.doit===!0&&(w=!0);const K={ref:J(H),class:P(H,V,X,w,U),style:f(H,Z)};return t.h("view",K,[I])},W=(N,H)=>{const j=zn(a,N,H)??{},V=j.status??qn(a,N);let X=oa(a,N);j.disabled===!0&&(X=!0),a.disabled===!0&&(X=!0);const Y=j.label??ra(a,N),C=[],y=a.layout;for(let w of y)if(w==="head"){const K=q(N,H,Y,V,X);C.push(K)}else if(w==="main"){const K=T(N,H,V,X);C.push(K)}else if(w==="sub"){const K=$(N,H,V);C.push(K)}else if(w==="mark"){const K=x();C.push(K)}const _=j.class,I=j.style??{};let U=aa(a,N);j.doit===!0&&(U=!0);const Z={ref:J(H),class:P(H,V,X,U,_),style:f(H,I)};return t.h("view",Z,C)},z=t.ref(),Q=t.ref([]),G=(N,H)=>{Q.value[H]=N},J=N=>H=>{G(H,N)},le=(N,H)=>{const j=z.value,V=Q.value;if(!j||!V||!V[N])return;const X=V[N];let Y=0;a.direction==="vertical"?Y=X.offsetTop-(j.offsetHeight-X.offsetHeight)/2:Y=X.offsetLeft-(j.offsetWidth-X.offsetWidth)/2,L(j,Y,H?0:.3,a.direction)},L=(N,H,j,V)=>{let X=0;const Y=V==="horizontal"?N.scrollLeft:N.scrollTop,C=j===0?1:Math.round(j*1e3/16);function y(){V==="horizontal"?N.scrollLeft+=(H-Y)/C:N.scrollTop+=(H-Y)/C,++X<C&&ul(y)}y()};return()=>{const N=[];if(a.mode==="simple")for(let j=0;j<h.value.length;j++){const V=h.value[j],X=S(V,j);N.push(X)}else for(let j=0;j<h.value.length;j++){const V=h.value[j],X=W(V,j);N.push(X)}const H={ref:z,class:p.value,style:v.value};return t.h("view",H,N)}}}}const{componentName:sm,create:um,scope:cm}=ie("steps-bar"),Gl=um(im(sm,cm,gr,Bu)),ia=new Date().getFullYear(),fm={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"},sa=(e,n,o)=>{let l;if(et(n)?l=n:typeof n=="string"&&Ke(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)},dm=(e,n,o)=>{et(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)};let hm={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(ia-10,0,1),validator:et},maxDate:{type:Date,default:()=>new Date(ia+10,11,31),validator:et},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:mm,scope:gm}=ie("date-picker"),pm=mm({components:{Picker:Rt},props:{...hm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=ye.useFoxI18n(gm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},a=t.ref(!1);t.watch(()=>e.visible,m=>{a.value=m});function r(m,f){return new Date(m,f,0).getDate()}const i=(m,f)=>{const E=e[`${m}Date`],B=E.getFullYear();let M=1,k=1,R=0,D=0;m==="max"&&(M=12,k=r(f.getFullYear(),f.getMonth()+1),R=23,D=59);const O=D;return f.getFullYear()===B&&(M=E.getMonth()+1,f.getMonth()+1===M&&(k=E.getDate(),f.getDate()===k&&(R=E.getHours(),f.getHours()===R&&(D=E.getMinutes())))),{[`${m}Year`]:B,[`${m}Month`]:M,[`${m}Date`]:k,[`${m}Hour`]:R,[`${m}Minute`]:D,[`${m}Seconds`]:O}},u=t.computed(()=>{if(!b.value)return[];const{maxYear:m,maxDate:f,maxMonth:E,maxHour:B,maxMinute:M,maxSeconds:k}=i("max",b.value),{minYear:R,minDate:D,minMonth:O,minHour:x,minMinute:q,minSeconds:T}=i("min",b.value);let $=[{type:"year",range:[R,m]},{type:"month",range:[O,E]},{type:"day",range:[D,f]},{type:"hour",range:[x,B]},{type:"minute",range:[q,M]},{type:"seconds",range:[T,k]}];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=(m,f,E)=>{if(!(f>m))return null;const B=[];for(;m<=f;)e.isShowChinese?B.push({text:m+l[E],value:m}):B.push({text:`${m}`,value:m}),E==="minute"?m+=e.minuteStep:m++;return B},d=t.computed(()=>{let m=[];return u.value.forEach(f=>{let E=s(f.range[0],f.range[1],f.type);E&&m.push(E)}),m}),h=(m,f)=>m==="year"?f.getFullYear():m==="month"?f.getMonth()+1:m==="day"?f.getDate():m==="hour"?f.getHours():m==="minute"?f.getMinutes():m==="seconds"?f.getSeconds():0,c=t.ref(),b=t.ref(null);t.watch(()=>e.modelValue,m=>{let f;if(typeof m=="string"?m.length==0?f=new Date:e.valueFormat?f=sa(e,e.modelValue,e.valueFormat):f=sa(e,m,fm[e.type]):et(m)?f=m:f=new Date,!!f&&(!b.value||f.getTime()!==b.value.getTime())){b.value=f;let E=[];u.value.forEach(B=>{let M=h(B.type,f);E.push(M)}),c.value=E}},{immediate:!0});const F=m=>{if(e.type==="date"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1));B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B)}else if(e.type==="datetime"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1)),M=m[3],k=m[4];B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B,M,k)}else if(e.type==="time"){const f=m[0],E=m[1],B=m[2],M=b.value??new Date,k=new Date(M.getFullYear(),M.getMonth(),M.getDate(),f,E,B);b.value=k}else if(e.type==="year-month"){const f=m[0],E=m[1]-1;b.value=new Date(f,E)}else if(e.type==="month-day"){const E=(b.value??new Date).getFullYear(),B=m[0]-1,M=Math.min(m[1],r(E,B+1));M!==m[1]&&(m[1]=M);const k=new Date(E,B,M);b.value=k}else if(e.type==="datehour"){const f=m[0],E=m[1]-1,B=Math.min(m[2],r(f,E+1)),M=m[3];B!==m[2]&&(m[2]=B),b.value=new Date(f,E,B,M)}else if(e.type==="hour-minute"){const f=m[0],E=m[1],B=b.value??new Date,M=new Date(B.getFullYear(),B.getMonth(),B.getDate(),f,E);b.value=M}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{F(m)},onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{F(m),a.value=!1;let f=b.value??new Date;if(e.valueFormat){let E=dm(e,f,e.valueFormat);n("update:modelValue",E)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function vm(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,"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","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Xl=De(pm,[["render",vm]]),Yt=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=Yt(c.children,c,o)),c}),Er=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Er(l.children,n)},ym={topId:null,idKey:"id",pidKey:"pid",sortKey:""},bm=(e,n)=>{const o={...ym,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let u=[],s={};return e.forEach(d=>{d={...d};const{[a]:h,[r]:c}=d,b=s[c]=s[c]||[];!u.length&&c===l&&(u=b),b.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,c)=>h[i]-c[i])}),s=null,u};class ua{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=Yt(n,null,this.config)}updateChildren(n,o){o?o.children=Yt(n,o,this.config):this.nodes=Yt(n,null,this.config)}getNodeByValue(n){let o;return Er(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:wm,scope:xm}=ie("cascader-pane"),Sm=wm({components:{Loading:bn,Checklist:gr,TabsBar:$n,TabsContainer:kn,TabsPane:Dn},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}=ye.useFoxI18n(xm),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 ua([],{})),s=t.ref([]),d=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((m,f)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:f}))),c=new Map;let b;const F=async()=>{c.clear(),s.value=[],a.value=0,r.value=!1,b=null;let{options:m}=e;l.value.convertConfig&&(m=bm(m,l.value.convertConfig)),u.value=new ua(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await p({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],g()},g=async()=>{const m=i.value;if(m===void 0||!u.value.nodes.length)return;if(m.length===0){a.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let f=m;if(d.value&&Array.isArray(m)&&m.length){f=[];let E=u.value.nodes.find(B=>B.value===m[0]);if(E){f=[E.value],r.value=!0;const B=await m.slice(1).reduce(async(M,k)=>{const R=await M;await p(R);const D=R?.children?.find(O=>O.value===k);return D&&f.push(k),Promise.resolve(D)},Promise.resolve(E));await p(B),r.value=!1}}f.length&&m===e.modelValue&&u.value.getPathNodesByValue(f).map((B,M)=>{a.value=M,P.handleNode(B,!0)})},p=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(u.value.isLeaf(m,d.value)||u.value.hasChildren(m,d.value))return;m.loading=!0;const f=m.root?null:m;let E=c.get(m);E||(E=new Promise(M=>{l.value.lazyLoad?.(m,M)}),c.set(m,E));const B=await E;Array.isArray(B)&&B.length>0?u.value.updateChildren(B,f):m.leaf=!0,m.loading=!1,c.delete(m)},v=m=>{const f=m.map(E=>E.value);i.value=f,n("change",f,m),n("update:modelValue",f,m)},P={async handleNode(m,f){const{disabled:E,loading:B}=m;if(!(!f&&E||!s.value[a.value])){if(u.value.isLeaf(m,d.value)){if(m.leaf=!0,s.value[a.value].selectedNode=m,s.value=s.value.slice(0,m.level+1),!f){const M=s.value.map(k=>k.selectedNode);v(M),n("pathChange",M)}return}if(u.value.hasChildren(m,d.value)){const M=m.level+1;if(s.value[a.value].selectedNode=m,s.value=s.value.slice(0,M),s.value.push({nodes:m.children||[],selectedNode:null}),a.value=M,!f){const k=s.value.map(R=>R.selectedNode);n("pathChange",k)}return}b=m,!B&&(await p(m),b===m&&(s.value[a.value].selectedNode=m,P.handleNode(m,f)))}},handleTabChange(m,f){b=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,f){return m.selectedNode&&m.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{F()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==i.value&&(i.value=m,g())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&g()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:a,...P}}}),Cm={class:"fox-cascader"},Tm={role:"menu",class:"fox-cascader__pane"},$m=["aria-checked","aria-disabled","onClick"],km={class:"fox-cascader__item__title"},Dm=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Nm(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Cm,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),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]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,b)=>(t.openBlock(),t.createBlock(d,{"pane-key":b,key:b},{default:t.withCtx(()=>[t.createElementVNode("view",Tm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,F=>(t.openBlock(),t.createElementBlock("view",{key:F.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,F),disabled:F.disabled}]),"aria-checked":e.isSelected(c,F),"aria-disabled":F.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(F,!1)},[t.createElementVNode("view",km,t.toDisplayString(F.text),1),F.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,$m))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[Dm]),_:1}))]),_:1},8,["modelValue"])])}const Em=De(Sm,[["render",Nm]]),{create:Vm}=ie("cascader-picker"),Im=Vm({components:{FoxCascaderPane:Em,FoxPopup:ct},props:{...kl,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}}}),Pm=["innerHTML"];function Om(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(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Pm)):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"])]),_:1},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 Zl=De(Im,[["render",Om]]),Am=Symbol.for("InnerPageScopeKey"),Fm=Symbol.for("PageWrapperKey");function Bm(e,n){return{props:{title:{type:[String]},customClass:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(Am,!0);const a={};t.provide(Fm,a);const r=s=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...l.attrs,title:o.title,"custom-class":o.customClass,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={};if(typeof l.slots.default=="function"){const c=l.slots.default();h.default=()=>c}return t.h(A.ElDialog,d,h)}}}}const{componentName:kp,create:Mm,scope:Dp}=ie("dialog-item"),Jl=Mm(Bm()),{create:Rm}=ie("toast"),Lm=Rm({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,F=>{F&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const F=he(e.iconSize);return t.h(e.icon,{width:F,height:F,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]),c=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),_m={key:1,class:"fox-toast-title"},qm=["innerHTML"];function zm(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",_m,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,qm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ql=De(Lm,[["render",zm]]),jm={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}},Hm=(e,n,o)=>({props:{...jm},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Wl(),d=t.ref(),h=Sr(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),F=t.computed(()=>{switch(c.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""}}),g=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),p=t.computed(()=>{const k={};return l.headHeight!=50&&(k.height=Pe(l.headHeight)),k}),v=k=>{const R=+(l.pullDistance||l.headHeight);let D=k;return k>R&&(k<R*2?D=(k+R)/2:D=R+k/4),Math.round(D)},P=(k,R)=>{const D=+(l.pullDistance||l.headHeight);c.distance=k,R?c.status="loading":k===0?c.status="normal":k<D?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:k})},m=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?Cr()==0:h.value&&h.value.scrollTop==0,E=k=>{m()&&(f()?(s.start(k),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=k=>{m()&&c.moving&&(s.move(k),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(k.cancelable&&k.preventDefault(),P(v(s.state.deltaY))))},M=()=>{c.moving=!1,c.isPullRefresh&&m()&&s.state.deltaY&&(c.status==="loosing"?(P(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):P(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,k=>{k?P(+l.headHeight,!0):P(0)}),()=>{const k=[];let R=null;if(c.status==="loading"){if(R=r?.loading?.()??null,!R){const W={class:["fox-pull-refresh-container-topbox-icon"]};R=t.h(o,W)}}else c.status==="pulling"?R=r?.pulling?.()??null:c.status==="loosing"&&(R=r?.loosing?.()??null);R&&k.push(R);const D={class:["fox-pull-refresh-container-topbox-text"]},O=t.h("dive",D,[F.value]);k.push(O);const x={class:["fox-pull-refresh-container-topbox"],style:p.value},q=t.h("div",x,k),T={class:"fox-pull-refresh-container",style:g.value},$=t.h("div",T,[q,r?.default?.()]),S={ref:d,class:b.value};return Yl()?Object.assign(S,{onTouchstart:E,onTouchmove:B,onTouchend:M}):Object.assign(S,{onMousedown:E,onMousemove:B,onMouseup:M}),t.h("div",S,[$])}}}),{componentName:Km,create:Ym,scope:Wm}=ie("pull-refresh"),eo=Ym(Hm(Km,Wm,bn));function Um(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}),d=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const p={class:i.value,style:u.value};h=t.h(o.icon??"div",p)}const c={class:s.value,style:d.value},b=l.default?l.default():[],F=t.h("div",c,b),g={class:r.value};return o.textPosition==="right"?t.h("div",g,[h,F]):t.h("div",g,[F,h])}}}}const{componentName:Gm,create:Xm,scope:Np}=ie("indicator"),to=Xm(Um(Gm));function Zm(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 Jm={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 Qm(e,n,o,l=!1){return{props:{...Jm},emits:["click"],setup(a,r){const i=t.ref(null),u=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(f[`${e}--${a.type??"default"}`]=!0),a.size&&(f[`${e}--${a.size}`]=!0),f}),s=t.computed(()=>{const f={},E=a.textColor??a.color;return E&&(f.color=E),f}),d=(f,E)=>{let B=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const M=a.highlightFilter;if(f.indexOf(M)!==-1){const R=f.replace(new RegExp(M,"g"),`<span>${M}</span>`);E.innerHTML=R,E.class["is-highlight"]=!0,B=t.h(a.tag,E)}}else if(typeof a.highlightFilter=="function"){const M=a.highlightFilter(f);M&&(E.innerHTML=M,E.class["is-highlight"]=!0,B=t.h(a.tag,E))}return B},h=f=>{r.emit("click",f)};let c="";const b=()=>{const f=i.value;if(!f)return;const E=f.clientWidth;Zm(f,B=>{const M=f.innerHTML??"";ge(M)||B<E||(c?o?.show(f,M,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(f,M,{type:"text",showArrow:a.showArrow},!0)??"")})},F=()=>{c&&o?.hide(c)};let g=null;const p=f=>{g||(g=setTimeout(()=>{b(),g=null},a.showAfter??0))},v=f=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{F()},a.hideAfter??0)},P=()=>{const f=i.value;f&&(f.addEventListener("mouseover",p),f.addEventListener("mouseleave",v))},m=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",p),f.removeEventListener("mouseleave",v))};return t.onMounted(()=>{!ue(a.showOverflowTooltip)||!o||P()}),t.onBeforeUnmount(()=>{!ue(a.showOverflowTooltip)||!o||m()}),()=>{const f={onClick:h,class:u.value,style:s.value,ref:i};let E=null;if(ue(a.numberFormat)&&typeof r.slots.default=="function"){const R=r.slots.default();if(Array.isArray(R)&&R.length===1){const D=R[0].type.toString();if(D==="Symbol(Text)"||D==="Symbol(v-txt)"){const O=de(a.digits),x=de(a.decimalLength),q=ue(a.autoPadding);let T=`${R[0].children}`,$=T.split("").reverse().join("");$=tn($,x,q,O,a.separator),T=$.split("").reverse().join(""),a.highlightFilter!==void 0&&(E=d(T,f)),E||(f.innerHTML=T,E=t.h(a.tag,f))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const R=r.slots.default();if(Array.isArray(R)&&R.length===1){const D=R[0].type.toString();if(D==="Symbol(Text)"||D==="Symbol(v-txt)"){const O=`${R[0].children}`;E=d(O,f),E||(f.innerHTML=O,E=t.h(a.tag,f))}}}E||(E=t.h(a.tag,f,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return E;let M=null;if(a.icon){const R={[`${e}__mark-wrap`]:!0};a.type&&(R[`${e}__mark-wrap--${a.type}`]=!0);const D={},O=a.color;O&&(D.color=O);const x={class:R,style:D};M=t.h("view",x,t.h(a.icon))}else if(r.slots.mark){const R={[`${e}__mark-wrap`]:!0};a.type&&(R[`${e}__mark-wrap--${a.type}`]=!0);const D={},O=a.color;O&&(D.color=O);const x={class:R,style:D};M=t.h("view",x,{default:r.slots.mark})}else{const R={[`${e}__mark`]:!0};a.type&&(R[`${e}__mark--${a.type??"default"}`]=!0);const D={},O=a.color;O&&(D["background-color"]=O);const x={class:R,style:D};M=t.h("view",x)}const k={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",k,[M,E])}}}}const{componentName:eg,create:tg,scope:ng}=ie("text"),no=tg(Qm(eg,ng,Fe,!1)),lg={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:Te.ArrowUp}};function og(e,n,o){return{props:{...lg},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),i=fe(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const c=[];if(u.value){const p={class:s.value},v=t.h("span",p,[u.value]);c.push(v)}const b={class:d.value},F=o(l.icon,b);return F&&c.push(F),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:ag,create:rg,scope:ig}=ie("more-button"),sg=(e,n)=>(e=e??Te.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]})),lo=rg(og(ag,ig,sg)),{componentName:ug,create:cg,scope:Ep}=ie("tour"),fg=cg({components:{Close:Te.Close,ElPopover:A.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=ug,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:g,maskWidth:p,maskHeight:v}=e,{width:P,height:m,left:f,top:E}=a.value,B=e.steps[l.active].offset??g,M=[f+P/2,E+m/2],k=Number(p||P),R=Number(v||m);return{width:`${k+ +B.left+B.right}px`,height:`${R+B.top+B.bottom}px`,top:`${M[1]-R/2-+B.top}px`,left:`${M[0]-k/2-+B.left}px`}}),u=g=>{g=="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=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,h=()=>{const g=document.querySelector(`${e.steps[l.active].target}`),p=Kl(g);a.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},F=(g,p=0)=>{g&&h(),e.steps,l.active=p,l.showTour=g,l.showPopup=g};return t.onMounted(()=>{F(e.modelValue,e.current)}),t.watch(()=>e.modelValue,g=>{F(g)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:c,handleClickMask:b}}}),dg={key:0,class:"fox-tour__content"},hg={key:0,class:"fox-tour__content-top"},mg={class:"fox-tour__content-inner"},gg={class:"fox-tour__content-bottom"},pg={class:"fox-tour__content-bottom-init"},vg={class:"fox-tour__content-bottom-operate"},yg={key:1,class:"fox-tour__content fox-tour__content-tile"},bg={class:"fox-tour__content-inner"};function wg(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]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,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(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",dg,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",hg,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",mg,t.toDisplayString(d.content),1),t.createElementVNode("div",gg,[t.createElementVNode("div",pg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",vg,[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]=c=>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]=c=>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",yg,[t.createElementVNode("div",bg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const oo=De(fg,[["render",wg]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class xg{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=Yl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Wl(),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 ca(e,n){return new xg(e,n)}var fa;const al=typeof window<"u";al&&((fa=window?.navigator)!=null&&fa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const da=e=>{const n=e;n.key==="Escape"&&mt.forEach(o=>o(n))},Sg=e=>{t.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",da),al&&mt.push(e)}),t.onBeforeUnmount(()=>{mt=mt.filter(n=>n!==e),mt.length===0&&al&&document.removeEventListener("keydown",da)})},jn="fox-focus-trap.focus-after-trapped",Hn="fox-focus-trap.focus-after-released",Cg="fox-focus-trap.focusout-prevented",ha={cancelable:!0,bubbles:!1},Tg={cancelable:!0,bubbles:!1},ma="foxFocusAfterTrapped",ga="foxFocusAfterReleased",$g=Symbol("foxFocusTrap"),ao=t.ref(),Nn=t.ref(0),ro=t.ref(0);let qt=0;const Vr=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},kg=(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},pa=(e,n)=>{for(const o of e)if(!kg(o,n))return o},Dg=e=>{const n=Vr(e),o=pa(n,e),l=pa(n.reverse(),e);return[o,l]},Ng=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),ro.value=window.performance.now(),e!==o&&Ng(e)&&n&&e.select()}};function va(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Eg=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=va(e,l),e.unshift(l)},remove:l=>{e=va(e,l),e[0]?.resume?.()}}},Vg=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(Je(l,n),document.activeElement!==o)return},ya=Eg(),Ig=()=>Nn.value>ro.value,zt=()=>{ao.value="pointer",Nn.value=window.performance.now()},ba=()=>{ao.value="keyboard",Nn.value=window.performance.now()},Pg=()=>(t.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",ba)),qt++}),t.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",ba))}),{focusReason:ao,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:ro}),jt=e=>new CustomEvent(Cg,{...Tg,detail:e}),{componentName:Vp,create:Og,scope:Ip}=ie("focus-trap"),Ag={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"}},Fg=Og({props:Ag,emits:[ma,ga,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=Pg();Sg(p=>{ue(e.trapped)&&!u.paused&&o("release-requested",p)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:v,altKey:P,ctrlKey:m,metaKey:f,currentTarget:E,shiftKey:B}=p,{loop:M}=e,k=v==="Tab"&&!P&&!m&&!f,R=document.activeElement;if(k&&R){const D=E,[O,x]=Dg(D);if(O&&x){if(!B&&R===x){const T=jt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),M&&Je(O,!0))}else if(B&&[O,D].includes(R)){const T=jt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),M&&Je(x,!0))}}else if(R===D){const T=jt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||p.preventDefault()}}};t.provide($g,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,p=>{p&&(l.value=p)},{immediate:!0}),t.watch([l],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",b)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",b))});const d=p=>{o(ma,p)},h=p=>o(ga,p),c=p=>{const v=t.unref(l);if(!v)return;const P=p.target,m=p.relatedTarget,f=P&&v.contains(P);ue(e.trapped)||m&&v.contains(m)||(a=m),f&&o("focusin",p),!u.paused&&ue(e.trapped)&&(f?r=P:Je(r,!0))},b=p=>{const v=t.unref(l);if(!(u.paused||!v))if(!e.escape&&ue(e.trapped)){const P=p.relatedTarget;!cl(P)&&!v.contains(P)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const m=jt({focusReason:i.value});o("focusout-prevented",m),m.defaultPrevented||Je(r,!0)}},0)}else{const P=p.target;P&&v.contains(P)||o("focusout",p)}};async function F(){await t.nextTick();const p=t.unref(l);if(p){ya.push(u);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(jn,ha);p.addEventListener(jn,d),p.dispatchEvent(m),m.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Ta(f)||(Je(f),document.activeElement!==f&&(f="first")),f==="first"&&Vg(Vr(p),!0),(document.activeElement===v||f==="container")&&Je(p)})}}}function g(){const p=t.unref(l);if(p){p.removeEventListener(jn,d);const v=new CustomEvent(Hn,{...ha,detail:{focusReason:i.value}});p.addEventListener(Hn,h),p.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!Ig())&&Je(a??document.body,!0),p.removeEventListener(Hn,d),ya.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&F(),t.watch(()=>e.trapped,p=>{ue(p)?F():g()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Bg,create:Mg,scope:Pp}=ie("floating-window"),Rg=Symbol.for("InnerPageScopeKey"),Lg=Symbol.for("PageWrapperKey"),_g={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},qg=Mg({inheritAttrs:!1,components:{FoxIcon:A.ElIcon,FocusTrap:Fg},props:{..._g},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Bg,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,w=>{l.value=w});const r=t.computed(()=>l.value===!1?!1:!R.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const w=["fox-floating-window"];return e.customClass&&w.push(e.customClass),w}),c=t.computed(()=>{const w={};return lt(i.value)?w.left="auto":w.left=Ae(i.value),lt(u.value)?w.top="auto":w.top=Ae(u.value),lt(s.value)?w.right="auto":w.right=Ae(s.value),lt(d.value)?w.bottom="auto":w.bottom=Ae(d.value),lt(e.zIndex)||(w["z-index"]=Ae(e.zIndex)),lt(M.value)||(w.height=M.value),lt(k.value)||(w.width=k.value),w}),b=t.computed(()=>e.closeIcon??Te.Close),F=t.computed(()=>e.collapseIcon??Te.ArrowUp),g=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),v=t.computed(()=>e.expandText??e.title??"展开"),P=t.computed(()=>({[`${o}__collapse-text`]:!0})),m=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),f=t.ref(),E=t.ref(null),B=t.ref(null),M=t.computed(()=>Ae(e.height)||""),k=t.computed(()=>Ae(e.width)||""),R=t.ref(ue(e.collapse)),D=(w,K=!0)=>{R.value!==w&&(R.value=w,w?N():H(),n("update:collapse",w),w&&typeof q.onHide=="function"?q.onHide():!w&&typeof q.onShow=="function"&&q.onShow())};t.watch(()=>e.collapse,w=>{D(w)});const O=()=>{x()},x=w=>{w=w??!R.value,D(w)};t.provide(Rg,!0);const q={setCollapse:D,setFixedNavVisible:w=>{J.value=w}};t.provide(Lg,q);const T=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{l.value=!1}):l.value=!1},$=t.ref(null),S=t.computed(()=>!e.fixedNavTeleport),W=t.computed(()=>{const w=["fox-floating-window__fixednav"];return e.expandClass&&w.push(e.expandClass),e.collapsePosition==="left"?w.push("is-left"):e.collapsePosition==="right"&&w.push("is-right"),w}),z=t.ref(""),Q=t.computed(()=>{const w={};return z.value?w.top=z.value:e.collapseTop&&(w.top=e.collapseTop),w}),G=t.ref(R.value),J=t.computed({set:w=>{G.value=w},get:()=>l.value===!1?!1:G.value});let le=null;const L=()=>{typeof le=="function"&&(le(),le=null)},N=()=>{$.value&&$.value.classList.add("slide-in"),J.value=!0,le=()=>{$.value&&$.value.classList.remove("slide-in")}},H=()=>{$.value&&$.value.classList.add("slide-out"),le=()=>{$.value&&$.value.classList.remove("slide-out"),J.value=!1}},j=()=>{i.value=null,u.value=null,s.value=null,d.value=null},V={x:0,y:0},C=ca(w=>{if(!f.value)return;const K=f.value;if(j(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,V.x=i.value,V.y=u.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,d.value=ee-(K.offsetTop+K.offsetHeight),V.x=i.value,V.y=d.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=ee-(K.offsetLeft+K.offsetWidth),d.value=ne-(K.offsetTop+K.offsetHeight),V.x=s.value,V.y=d.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;s.value=ee-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,V.x=s.value,V.y=u.value}},w=>{if(!f.value)return;const K=f.value;j(),e.origin==="left-top"?(i.value=V.x+w.x,u.value=V.y+w.y,K.style.left=Ae(i.value),K.style.top=Ae(u.value)):e.origin==="left-bottom"?(i.value=V.x+w.x,d.value=V.y-w.y,K.style.left=Ae(i.value),K.style.bottom=Ae(d.value)):e.origin==="right-bottom"?(s.value=V.x-w.x,d.value=V.y-w.y,K.style.right=Ae(s.value),K.style.bottom=Ae(d.value)):(s.value=V.x-w.x,u.value=V.y+w.y,K.style.right=Ae(s.value),K.style.top=Ae(u.value))}),y={x:0,y:0},U=ca(w=>{$.value&&(y.x=$.value.offsetLeft,y.y=$.value.offsetTop)},w=>{if(!$.value)return;const K=y.y+w.y;z.value=`${K}px`}),Z=()=>{if(f.value){const w=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=w}};return t.onMounted(()=>{if(e.draggable&&f.value){const w=[];E.value&&w.push(E.value),e.footerDraggable&&(Z(),B.value&&w.push(B.value)),C.open(w)}e.collapse===!0&&D(e.collapse,!1),$.value&&U.open($.value)}),t.onBeforeUnmount(()=>{e.draggable&&E.value&&C.close(),$.value&&U.close()}),{classes:h,styles:c,isShow:r,closeIcon:b,onClose:T,dialogRef:f,headerRef:E,onClickToggle:O,collapseIcon:F,collapseText:g,collapseTextClasses:P,collapseIconClasses:m,expandIcon:p,expandText:v,isShowFixedNav:J,fixedNavRef:$,fixedNavClasses:W,fixedNavStyles:Q,onAnimationEnd:L,teleportDisabled:a,fixedNavTeleportDisabled:S}}}),zg={ref:"headerRef",class:"fox-floating-window__header"},jg={class:"fox-floating-window__title"},Hg={class:"fox-floating-window__tools"},Kg={class:"fox-floating-window__body"},Yg={class:"fox-floating-window__fixednav__text"};function Wg(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",zg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",jg,t.toDisplayString(e.title),1),t.createElementVNode("div",Hg,[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",Kg,[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",Yg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const io=De(qg,[["render",Wg]]);function Ug(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return qa(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Op,create:Gg,scope:Ap}=ie("domain-provider"),so=Gg(Ug()),Xg={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 Zg(e,n){return{inheritAttrs:!1,props:Xg,setup(o,{slots:l}){if(ut&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(b,F)=>{if(h===null){r.set(b,{visible:null,callback:F});return}a.has(b)&&h.unobserve(b),a.set(b,{visible:null,callback:F}),h.observe(b)},u=b=>{if(h===null){r.delete(b);return}a.has(b)&&(a.delete(b),h.unobserve(b))};let s=o.initialVisibleObserverSize;Mi({acquire:()=>{const b=s>0;return s--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const c=(b,F,g)=>{h=new IntersectionObserver(p=>{for(let v of p){let P=!1;v.intersectionRatio>0&&(P=!0);const m=a.get(v.target);if(m)try{if(o.loadPolicy==="lazy"&&!P&&m.visible!==null)return;m.visible=P,m.callback(P)}catch(f){console.error(f)}}},{root:b,rootMargin:F,threshold:g}),r.forEach((p,v)=>{a.set(v,p),h?.observe(v)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([b,F])=>{if(F||!b||h)return;let g=null;typeof b=="string"?g=document.querySelector(b):g=b,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Fp,create:Jg,scope:Bp}=ie("rolling-provider"),uo=Jg(Zg()),Qg=[ml,pl,vl,yl,bl,we,wl,xl,Mt,Sl,Cl,Tl,Dl,Nl,El,Vl,Il,Pl,Ol,Al,Fl,xn,Bl,Ml,Rl,Ll,_l,ql,zl,Tn,jl,Ul,$n,kn,Dn,Gl,Rt,Xl,wn,Zl,Jl,yn,ct,Ql,Cn,Sn,eo,At,vn,to,no,lo,oo,io,so,uo],ep=new mi(Qg,[vi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>A.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>A.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>A.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>A.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>A.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>A.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>A.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>A.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>A.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>A.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>A.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>A.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>A.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>A.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>A.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>A.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>A.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>A.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>A.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>A.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>A.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>A.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>A.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>A.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>A.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>A.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>A.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>A.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>A.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>A.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>A.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>A.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>A.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>A.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>A.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>A.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>A.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>A.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>A.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>A.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>A.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>A.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>A.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>A.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>A.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>A.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>A.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>A.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>A.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>A.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>A.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>A.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>A.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>A.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>A.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>A.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>A.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>A.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>A.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>A.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>A.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>A.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>A.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>A.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>A.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>A.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>A.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>A.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>A.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>A.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>A.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>A.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>A.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>A.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>A.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>A.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>A.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>A.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>A.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>A.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>A.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>A.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>A.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>A.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>A.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>A.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>A.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>A.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>A.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>A.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>A.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>A.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>A.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>A.ElUpload});exports.ActionsheetItem=jl;exports.ActionsheetPane=Tn;exports.AutocompleteItem=Ol;exports.Broadcast=fl;exports.BroadcastKey=Se;exports.CalendarItem=Dl;exports.CascaderItem=Pl;exports.CheckboxItem=Rl;exports.Content=yl;exports.DataItemsKey=ht;exports.DateItem=Tl;exports.DateUtils=ae;exports.DialogItem=Jl;exports.Domain=sn;exports.DomainKey=Be;exports.DomainProvider=so;exports.FloatingWindow=io;exports.FooterBar=vl;exports.FoxActionsheetItem=jl;exports.FoxActionsheetPane=Tn;exports.FoxAutocompleteItem=Ol;exports.FoxCalendarItem=Dl;exports.FoxCascaderItem=Pl;exports.FoxCheckboxItem=Rl;exports.FoxContent=yl;exports.FoxDateItem=Tl;exports.FoxDialogItem=Jl;exports.FoxDomainProvider=so;exports.FoxFloatingWindow=io;exports.FoxFooterBar=vl;exports.FoxGroup=bl;exports.FoxGroupSetting=zl;exports.FoxHeaderBar=pl;exports.FoxHintText=Mt;exports.FoxIndicator=to;exports.FoxInfiniteLoading=Sn;exports.FoxInputItem=Sl;exports.FoxInputNumberItem=Il;exports.FoxItem=we;exports.FoxMapping=At;exports.FoxMoneyItem=Vl;exports.FoxMoreButton=lo;exports.FoxOverLay=yn;exports.FoxPage=ml;exports.FoxPickerItem=Ul;exports.FoxPopup=ct;exports.FoxPrice=vn;exports.FoxPullRefresh=eo;exports.FoxRadioItem=Ml;exports.FoxRateItem=Ll;exports.FoxRollingProvider=uo;exports.FoxRowItem=xl;exports.FoxSearchBar=Cn;exports.FoxSelectItem=Cl;exports.FoxSlotItem=wl;exports.FoxStepsBar=Gl;exports.FoxSwitchItem=_l;exports.FoxTableItem=Bl;exports.FoxTableMappingColumn=Al;exports.FoxTableRadioColumn=Fl;exports.FoxTableSetting=xn;exports.FoxTabsBar=$n;exports.FoxTabsContainer=kn;exports.FoxTabsPane=Dn;exports.FoxText=no;exports.FoxTimeItem=Nl;exports.FoxTimeSelectItem=El;exports.FoxToast=Ql;exports.FoxTour=oo;exports.FoxTreeSelectItem=ql;exports.Foxcalendarpicker=wn;exports.Foxcascaderpicker=Zl;exports.Foxdatepicker=Xl;exports.Foxpicker=Rt;exports.Group=bl;exports.GroupSetting=zl;exports.HeaderBar=pl;exports.HintText=Mt;exports.Indicator=to;exports.InfiniteLoading=Sn;exports.InputItem=Sl;exports.InputNumberItem=Il;exports.Item=we;exports.Mapping=At;exports.MoneyItem=Vl;exports.MoreButton=lo;exports.OverLay=yn;exports.Page=ml;exports.PickerItem=Ul;exports.Popup=ct;exports.Price=vn;exports.PriorityPolicy=Me;exports.PullRefresh=eo;exports.RadioItem=Ml;exports.RateItem=Ll;exports.RollingProvider=uo;exports.RowItem=xl;exports.SearchBar=Cn;exports.SelectItem=Cl;exports.SlotItem=wl;exports.StepsBar=Gl;exports.SwitchItem=_l;exports.TableItem=Bl;exports.TableMappingColumn=Al;exports.TableRadioColumn=Fl;exports.TableSetting=xn;exports.TabsBar=$n;exports.TabsContainer=kn;exports.TabsPane=Dn;exports.Text=no;exports.TimeItem=Nl;exports.TimeSelectItem=El;exports.Toast=Ql;exports.Tour=oo;exports.TreeSelectItem=ql;exports.UniqueID=er;exports.ValidateSchema=Ra;exports.ValidateSchemaKey=qe;exports.calendarpicker=wn;exports.cancelRaf=Ar;exports.cascaderpicker=Zl;exports.clearNonNumber=Kr;exports.clone=Jn;exports.compareTo=Gn;exports.createBroadcast=on;exports.createValidateSchema=an;exports.datepicker=Xl;exports.debounce=Vt;exports.debounceRef=oi;exports.decimalLength=Oa;exports.default=ep;exports.defineBroadcast=Gr;exports.defineConfigDomain=qa;exports.defineDataItem=ja;exports.defineDomain=dl;exports.defineItem=Ce;exports.definePageState=Ha;exports.defineSimpleItem=hl;exports.deleteGlobalValidator=ei;exports.disabledProperty=Ve;exports.divide=sl;exports.excludeProps=$e;exports.extend=it;exports.floatData=Ur;exports.getGlobalValidateCheckEvents=Fa;exports.getGlobalValidateResetEvents=Ma;exports.getPageContentAreaHeight=Zt;exports.getPageContentAreaWidth=Jt;exports.getPageFooterAreaHeight=Pt;exports.getPageHeaderAreaHeight=It;exports.getRootDomain=gt;exports.hasSymbol=ka;exports.includeProps=Bt;exports.indexOf=Yr;exports.installRules=za;exports.integerLength=Pa;exports.isArray=Br;exports.isArrayLike=Na;exports.isBrowser=ut;exports.isDate=et;exports.isESModule=_r;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=Xn;exports.isHidden=ln;exports.isInnerPage=ii;exports.isMap=Mr;exports.isNil=cl;exports.isNumberString=Ia;exports.isObject=Re;exports.isPlainObject=Zn;exports.isPromise=Ut;exports.isRegExp=Va;exports.isSet=Rr;exports.isString=Ta;exports.isSubPage=si;exports.isSymbol=Lr;exports.isTouch=Yl;exports.isWindow=Da;exports.lastIndexOf=Wr;exports.makeArray=Hr;exports.merge=Ea;exports.multiply=xa;exports.negate=Sa;exports.nextTick=zr;exports.numberFormat=tn;exports.objectToString=$a;exports.once=ai;exports.overrideGlobalValidateHandler=Jr;exports.picker=Rt;exports.property=Ne;exports.raf=ul;exports.readonlyProperty=Ee;exports.setGlobalValidateCheckEvents=ti;exports.setGlobalValidateHandler=Zr;exports.setGlobalValidateMessages=li;exports.setGlobalValidateResetEvents=ni;exports.setGlobalValidator=Qr;exports.throttle=_a;exports.toBoolean=ue;exports.toNumber=de;exports.toPadding=je;exports.toPx=he;exports.toPxDesc=Pe;exports.toTypeString=nn;exports.toValue=fe;exports.tryTimes=rn;exports.typeOf=Gt;exports.unNumberFormat=Ca;exports.updatePageState=Qn;exports.useBroadcast=Dt;exports.useDomain=Ue;exports.useExpose=pe;exports.useInnerSize=gl;exports.usePageState=un;exports.usePosition=Ja;exports.useRawTouch=Wl;exports.useRect=Kl;exports.useSize=cn;exports.useTouch=kr;exports.valueLength=Ke;