@fox-js/foxui-pc 4.1.1-28 → 4.1.1-29

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 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var No=Object.create,fa=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,zo=Object.getOwnPropertyNames,ko=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty,lt=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),_o=(e,n,r,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=zo(n),o=0,s=a.length,u;o<s;o++)u=a[o],!Eo.call(e,u)&&u!==r&&fa(e,u,{get:(i=>n[i]).bind(null,u),enumerable:!(l=Co(n,u))||l.enumerable});return e},nt=(e,n,r)=>(r=e!=null?No(ko(e)):{},_o(n||!e||!e.__esModule?fa(r,"default",{value:e,enumerable:!0}):r,e));let t=require("vue"),dt=require("@fox-js/validator"),N=require("element-plus"),Ve=require("@element-plus/icons-vue"),Ae=require("@fox-js/i18n");var Yt=window,To=typeof window<"u";function $o(){return typeof Yt<"u"?Yt.requestAnimationFrame||Yt.webkitRequestAnimationFrame||function(e){Yt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Bo(e){To?cancelAnimationFrame(e):clearTimeout(e)}var ma=$o();function el(e,n="0"){let r=0,l=-1;e[0]=="-"&&(r++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(r++,l=2,n=n.substring(1),n.length),e=Me(e),n=Me(n),[e,n]=dn(Me(e),Me(n)),r==1&&(l==1?e=Ll(e):n=Ll(n));let a=pa(e,n);return r?r==2?"-"+Me(a):e.length<a.length?Me(a.substring(1)):"-"+Me(Ll(a)):Me(a)}function Ll(e){let n="",r=e.length,l=e.split(".")[1],a=l?l.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let o=a>0?"0."+new Array(a).join("0")+"1":"1";return pa(n,o)}function Me(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function dn(e,n){let r=e.split("."),l=n.split("."),a=r[0].length,o=l[0].length;return a>o?l[0]=new Array(Math.abs(a-o)+1).join("0")+(l[0]?l[0]:""):r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,o=l[1]?l[1].length:0,(a||o)&&(a>o?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function pa(e,n){[e,n]=dn(e,n);let r="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let o=parseInt(e[a])+parseInt(n[a])+l;r=o%10+r,l=Math.floor(o/10)}return l?l.toString()+r:r}var xe=(function(e){return 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})({});function Pt(e,n=0,r=xe.HALF_EVEN){if(r===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("."),o=a[0],s=a[1];if(n<0){if(n=-n,o.length<=n)return"0";{let i=o.substr(0,o.length-n);return e=i+"."+o.substr(o.length-n)+s,i=Pt(e,0,r),(l?"-":"")+i+new Array(n+1).join("0")}}if(n==0)return o.length,hr(a[1],o,l,r)?(l?"-":"")+Al(o):(l?"-":"")+o;if(a[1]){if(a[1].length<n)return(l?"-":"")+o+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+o+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let u=a[1].substring(n);return u&&hr(u,s,l,r)&&(s=Al(s),s.length>n)?(l?"-":"")+Al(o,parseInt(s[0]))+"."+s.substring(1):(l?"-":"")+o+"."+s}function hr(e,n,r,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!r&&l===xe.FLOOR||r&&l===xe.CEILING)return!1;if(l===xe.UP||r&&l===xe.FLOOR||!r&&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 Al(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let r=e.length-1,l="";for(let a=r;a>=0;a--){let o=parseInt(e[a])+n;o==10?(n=1,o=0):n=0,l+=o}return n&&(l+=n),l.split("").reverse().join("")}function Yl(e,n){e=e.toString(),n=n.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),n[0]=="-"&&(r++,n=n.substr(1)),e=_t(e),n=_t(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 o=l+a;if(e=_t(e.replace(".","")),n=_t(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let s=n.length,u=0,i=[],c=s-1,d="";for(let m=0;m<s;m++)i[m]=e.length-1;for(let m=0;m<2*e.length;m++){let v=0;for(let g=n.length-1;g>=c&&g>=0;g--)i[g]>-1&&i[g]<e.length&&(v+=parseInt(e[i[g]--])*parseInt(n[g]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=_t(Vo(d,o)),r==1&&(d="-"+d),d}function Vo(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 _t(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 Ul(e,n,r=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Me(n.replace(".","")),a>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Me(e+new Array(a+1).join("0"));else if(a>c)e=e.replace(".",""),e=Me(e+new Array(a-c+1).join("0"));else if(a<c){e=e.replace(".","");let d=e.length-c+a;e=Me(e.substring(0,d)+"."+e.substring(d))}else a==c&&(e=Me(e.replace(".","")))}let o=0,s=n.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let c=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(c+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=c,u="0."+new Array(c).join("0")}for(r=r+2;o<=r;){let c=0;for(;parseInt(i)>=parseInt(n);)i=el(i,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(l==1?"-":"")+Me(Pt(u,r-2))}function Gl(e,n){return e=e.toString(),n=n.toString(),n=Xl(n),el(e,n)}function Xl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function gr(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),vr(e),vr(n);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Gl(e,Yl(n,Pt(Ul(e,n),0,xe.FLOOR)));return r+l}function vr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,n){let r=!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),r=!0),[e,n]=dn(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]?r?-1:1:r?1:-1;return 0}var qt=class me{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[r,l]=n.split(/[eE]/);r=Me(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(l=parseInt(l)+r.indexOf("."),r=r.replace(".","")):l=parseInt(l)+r.length,r.length<l?n=a+r+new Array(l-r.length+1).join("0"):r.length>=l&&l>0?n=a+Me(r.substring(0,l))+(r.length>l?"."+r.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+r}return n}constructor(n="0"){this.value=me.validate(n)}getValue(){return this.value}static getPrettyValue(n,r,l){if(!(r||l))r=3,l=",";else if(!(r&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=me.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var o=n.indexOf(".");o=o>0?o:n.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=n.substring(u,u+r)+(u<o-r&&u>=0?l:"")+s;return(a?"-":"")+s+n.substring(o)}getPrettyValue(n,r){return me.getPrettyValue(this.value,n,r)}static round(n,r=0,l=xe.HALF_EVEN){if(n=me.validate(n),isNaN(r))throw Error("Precision is not a number: "+r);return Pt(n,r,l)}round(n=0,r=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new me(Pt(this.value,n,r))}static floor(n){return n=me.validate(n),n.indexOf(".")===-1?n:me.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,xe.FLOOR)}static ceil(n){return n=me.validate(n),n.indexOf(".")===-1?n:me.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,xe.CEILING)}static add(n,r){return n=me.validate(n),r=me.validate(r),el(n,r)}add(n){return new me(el(this.value,n.getValue()))}static subtract(n,r){return n=me.validate(n),r=me.validate(r),Gl(n,r)}subtract(n){return new me(Gl(this.value,n.getValue()))}static multiply(n,r){return n=me.validate(n),r=me.validate(r),Yl(n,r)}multiply(n){return new me(Yl(this.value,n.getValue()))}static divide(n,r,l){return n=me.validate(n),r=me.validate(r),Ul(n,r,l)}divide(n,r){return new me(Ul(this.value,n.getValue(),r))}static modulus(n,r){return n=me.validate(n),r=me.validate(r),gr(n,r)}modulus(n){return new me(gr(this.value,n.getValue()))}static compareTo(n,r){return n=me.validate(n),r=me.validate(r),yr(n,r)}compareTo(n){return yr(this.value,n.getValue())}static negate(n){return n=me.validate(n),Xl(n)}negate(){return new me(Xl(this.value))}};function ha(e,n){return qt.multiply(`${e}`,`${n}`)}function fn(e,n,r=8){return qt.divide(`${e}`,`${n}`,r)}var f5=qt.RoundingModes;function Zl(e,n){return e=`${e}`,n=`${n}`,qt.compareTo(e,n)}function ga(e){return qt.negate(e)}function il(e,n=-1,r=!1,l=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",c=o.indexOf(".");c!=-1&&(u=o.substring(0,c),i=o.substring(c+1)),n!=-1&&(n<i.length?i=i.substring(0,n):r&&n>i.length&&(i=i.padEnd(n,"0")));let d;if(l>0){let m="",v=u.split("").reverse();for(let g=0;g<v.length;g++)m+=v[g]+((g+1)%l==0&&g+1!=v.length?a:"");i.length==0?d=`${s}${m.split("").reverse().join("")}`:d=`${s}${m.split("").reverse().join("")}.${i}`}else i.length==0?d=`${s}${u}`:d=`${s}${u}.${i}`;return d}function va(e){let n=`${e}`,r=n.charAt(0);r=="-"?n=n.substring(1):r="";let l=n.replace(/[^\d\.-]/g,"");return`${r}${l}`}var mn=ma,Mo=Array.isArray,Io=e=>sl(e)==="[object Map]",Lo=e=>sl(e)==="[object Set]",Ao=e=>e instanceof Date,Jl=e=>typeof e=="function",ya=e=>typeof e=="string",Po=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",ba=e=>Ye(e)&&Jl(e.then)&&Jl(e.catch),Sa=Object.prototype.toString,sl=e=>Sa.call(e),Fo=e=>sl(e)==="[object Object]",wa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ro(e){return e.__esModule||wa&&e[Symbol.toStringTag]==="Module"}var Do=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function wt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[r]??{},r++),typeof n!="object"&&(n={});r<l;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let u=n[s],i=o[s];if(u!==i)if(a===!0&&i&&typeof i=="object"){let c;Array.isArray(i)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[s]=wt(a,c,i)}else i!==void 0&&(n[s]=i)}}return n}var Pl=Do?Promise.resolve():null;function Oo(e,...n){Pl!==null?n&&n.length>0?Pl.then(()=>{e(n)}):Pl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function _e(e){return typeof e=="number"?e:Number(e)}var qo={"[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 tl(e){let n=Object.prototype.toString.call(e);return e==null?String(e):qo[n]||"object"}function xa(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const r=window.getComputedStyle(n);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!0;n=n.parentElement}return!1}function pn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Na(e){return e&&typeof e=="object"&&"setInterval"in e}function Ca(e){let n=!!e&&"length"in e&&e.length,r=tl(e);return r==="function"||Na(e)?!1:r==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function za(e,n){let r=+n.length,l=0,a=e.length;for(;l<r;l++)e[a++]=n[l];return e.length=a,e}function Ho(e,n=[]){let r=n;return e!=null&&(Ca(Object(e))?za(r,typeof e=="string"?[e]:e):r.push(e)),r}function Je(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let r=tl(e);if(r!==tl(n))return!1;if(r==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let o=0;o<l.length;o++){let s=l[o],u=e[s],i=n[s];if(!Je(u,i))return!1}return!0}else if(r==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],o=n[l];if(!Je(a,o))return!1}return!0}return!1}var st=typeof window<"u";function qe(e){return e==null}function Ql(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null||typeof e!="string"?!1:e.length===0;function hn(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ka(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 r=n.indexOf(".");return r==-1?n.length:r}function Ea(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const r=n.indexOf(".");return r==-1?0:n.length-(r+1)}function br(e,n,r){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(r,"")}function jo(e,n=!0,r=!0){n?e=br(e,".",/\./g):e=e.replace(/\./g,""),r?e=br(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Ko(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(r=>{if(Je(e,r))return!0}):n.indexOf(e)}function Wo(e,n){if(typeof e=="object"||Array.isArray(e)){let r=n.reverse().findIndex(l=>{if(Je(e,l))return!0});return r!==-1&&(r=n.length-1-r),r}return n.lastIndexOf(e)}function zt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mt(e,...n){const r={};return n.forEach(l=>{for(const a in l)r[a]=e[a]}),r}function Pe(e,...n){const r=[];n.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const l={};for(const a in e)r.includes(a)||(l[a]=e[a]);return l}var Yo=(e,n,r)=>{const l=Object.assign({},e),a=Object.assign({},r);return Object.keys(n).length>0?(Object.keys(l).forEach(o=>{a.hasOwnProperty(o)?typeof a[o]=="string"&&(l[o]=n[a[o]]):n[o]&&(l[o]=n[o])}),l):e};function Uo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var Go=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Xo=(e,n,r)=>Math.min(Math.max(e,n),r);function Ft(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function _a(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var be=Symbol.for("BroadcastKey"),gn=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,r){this.parent=e,this.proxy=n,this.name=r,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(r=>e===r);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,r){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:r};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let r=!1;return!n.name||n.name==="*"||n.name==="+"||Ql(n.name)&&e&&n.name.test(e)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[e]):n.name===e&&(r=!0),r}trigger(e,n,r){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...r]));const o=this.proxy??{};typeof o[n]=="function"&&(l=Reflect.apply(o[n],o,[...r])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(r=>{if(this.isMatched(this.name,r.matched))try{this.trigger(r.matched,r.action,r.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...r){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,r)){const o=e.resolve,s=e.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof o=="function"&&o(...i)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Ql(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const o=this.callbacks.get(n);if(typeof o=="function"){const u=Reflect.apply(o,this.proxy,[...r]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[n]=="function"){const u=Reflect.apply(s[n],s,[...r]);u!=null&&a.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...e},n,...r]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(e,n,...r){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,r)){const a=e.resolve,o=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(o),typeof a=="function"&&a(...u)};e.resolve=s}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const o=Reflect.apply(a.emit,a,[{...e},n,...r]);o!=null&&Array.isArray(o)&&Reflect.apply([].push,l,[...o])}),l}on(e,n){this.callbacks.set(e,n)}};function ul(e,n,r,l){const a=new gn(n,e,r);if(l&&typeof l=="object")for(const o in l)a.on(o,l[o]);return a}function Zo(e,n,r){const l=r;if(l[be])return l[be];const a=new gn((0,t.inject)(be,null),r,e);if(n&&typeof n=="object")for(const o in n)a.on(o,n[o]);return l[be]=a,(0,t.provide)(be,a),(0,t.onUnmounted)(()=>{a.destroy(),l[be]=void 0}),a}function Mt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[be]??(0,t.inject)(be,null):(0,t.inject)(be,null)}var Jo=class{error(e,n){const r=n,l=n||(0,t.hasInjectionContext)()?Mt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof r.setErrorTip=="function"&&r.setErrorTip(e)}reset(e){const n=e,r=e||(0,t.hasInjectionContext)()?Mt(e):null;r?r.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,r=e||(0,t.hasInjectionContext)()?Mt(e):null;r?r.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,r){Array.isArray(e)||(e=[e]);const l=r,a=r||(0,t.hasInjectionContext)()?Mt(r):null,o=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!o&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):o&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(r))}getValue(e){return e.modelValue}},It=new Jo;function Qo(e){It=e}function ei(e){It?Object.assign(It,e):It=e}function ti(e,n){dt.Schema.setValidator(e,n)}function li(e){dt.Schema.deleteValidator(e)}var Ta=["blur","clear"];function ni(e){Ta=e}function $a(){return Ta}var Ba=["focus","change","setValue"];function ri(e){Ba=e}function Va(){return Ba}function ai(e){dt.Schema.messages(e)}function Tt(...e){const n=[];return e.forEach(r=>{r.forEach(l=>{const a=n.findIndex(o=>o.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var We=Symbol("ValidateSchemaKey"),Ma=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,r){this.parent=e,this.descriptor=n,this.proxy=r,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=Ut(Tt(this.attrRules,this.rules)),r=[];for(let a in e){let o=e[a];if(this.hasValidator(a,!0)){if(o===!1)continue;let u={type:a};o!==null&&typeof o=="object"&&Object.assign(u,o),r.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};r.push(u)}}this.attrRules=Ut(r);const l=Tt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const r=this.descriptor.validateHandler;if(r&&typeof r[e]=="function")return Reflect.apply(r[e],r,[...n]);const l=It;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,r=!1){r?dt.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?dt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return dt.Schema.hasValidator(e);{let r=Reflect.has(this.validators,e);return!r&&this.parent!==null&&(r=this.parent.hasValidator(e,!1)),r}}setRule(e){const n=Tt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=Ut(e):this.rules=Ut([e]);const r=Tt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(r,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Tt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const r={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},o=new dt.Schema(r),s=this.proxy??a;return o.validate(a,{context:s}).then(u=>{if(u.pass)this.success();else{let i="error";Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors[0].message??i,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(i)}return u}).catch(u=>{const i=u.message??`${u}`;return this.error(i),u})}}return Promise.resolve({pass:!0})}};function cl(e,n,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(a){return a[l]}}}return new Ma(n,r,e)}var ll=Symbol.for("EventEmitterKey"),Ia=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let r=this.register.get(e);if(r&&Array.isArray(r)){let l=r.findIndex(a=>a===n);l!==-1&&r.splice(l,1)}}on(e,n){let r=this.register.get(e);r||(r=new Array,this.register.set(e,r)),r.push(n)}emit(e,...n){const r=this.register.get(e);r&&r.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function je(e,n){let r=null;return function(...l){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...l])},n)}}function La(e,n){let r=0;return function(...l){const a=new Date().getTime();a-r<n||(r=a,Reflect.apply(e,null,[...l]))}}function oi(e,n){const r=je((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(o){r(o,a)}}))}function ii(e){let n=!1;return function(...r){n||(n=!0,Reflect.apply(e,null,[...r]))}}function dl(e,n,r,l=0,a=!0,o){let s=n,u=0;if(a){const c=e();if(u++,c){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}}const i=()=>{const c=e();if(u++,c){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}s+=l,setTimeout(i,s)};setTimeout(i,s)}var Oe=Symbol("DomainKey"),ht=Symbol("DataItemsKey"),fl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const r in e){const l=e[r];n.length>0&&n.indexOf(l)!==-1||(this._props[r]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const r=this._props[e];if(r!=null)return r}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,e)){const l=r._props[e];n.push(l)}r=r._parent}return n}},si=new fl;function yt(){return si}function ut(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Oe]??(0,t.inject)(Oe,null):(0,t.inject)(Oe,null)}var Fl=Symbol("OriginalDateKey");function vn(e,n,r=[],l){const a=(0,t.getCurrentInstance)();let o=a?.proxy,s=(0,t.inject)(Oe,null);s===null&&(s=yt());const u=e||n.prop||n.name;let i=new fl(u);i.parent=s;const c=p=>{o[Fl]||v(p),i?.set("modelValue",p)},d=()=>i?.getForSelf("modelValue")??null,m=()=>o[Fl]??null,v=p=>{const f={};wt(!0,f,(0,t.toRaw)(p)),o[Fl]=f};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,p=>{i?.merge(p,r)},{immediate:!0}):i.merge(n,r),n.modelValue&&v(n.modelValue);const g=(p,f)=>{i?.set(p,f)},w=p=>i?.getForSelf(p)??null;if(o[Oe]=i,(0,t.provide)(Oe,i),a!==null){const p=(0,t.inject)(be,null),f=ul(o,p,u,l);i.broadcast=f,o[be]=f,(0,t.provide)(be,f),o.broadcast=(y,F,...P)=>Reflect.apply(f.emit,f,[y,F,...P]);const C=(0,t.inject)(We,null),b=cl(o,C,{componentName:""});i.validateSchema=b,o[We]=b,(0,t.provide)(We,b),o[ht]=new Map,o.validate=(y=!0)=>{const F=[];let P=null;const B={deep:!1};if(y===!0)P={name:"*"};else if(Array.isArray(y)&&y.length>0){const E=y;P={name:V=>V?E.indexOf(V)!==-1:!1}}else if(y!=null&&typeof y=="object"){const E=y;if(Object.assign(B,E),Array.isArray(E.include)&&E.include.length>0){const V=E.include;P={name:S=>S?V.indexOf(S)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const V=E.exclude;P={name:S=>S?V.indexOf(S)===-1:!1}}else P={name:"*"}}if(P){const E=f?.emitToChildren(P,"validate",B);E&&Reflect.apply([].push,F,E)}return F.length==1?F[0]:F.length>1?Promise.all(F).then(E=>{let V=[];return E.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(V=[...V,...S.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(y,F=!0,P=!1)=>{if(P===!0){Reflect.ownKeys(y).forEach(B=>{let E=String(B);const V={componentName:"",fieldName:E,pureDataValidate:!0};if(i){const S=Pa(i,E,V,f,b);o[ht].set(E,S);const D=y[E];D&&S.validateSchema.setRule(D)}});return}if(F){const B=Reflect.ownKeys(y);f?.emitToChildren({name:E=>B.includes(E),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",y,!1)}},o.clearValidate=(y=!0)=>{let F=null;if(y===!0)F={name:"*"};else if(Array.isArray(y)&&y.length>0){const P=y;F={name:B=>B?P.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const P=y;if(Array.isArray(P.include)&&P.include.length>0){const B=P.include;F={name:E=>E?B.indexOf(E)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const B=P.exclude;F={name:E=>E?B.indexOf(E)===-1:!1}}else F={name:"*"}}F&&f?.emitToChildren(F,"clearValidate",!1)},o.resetFields=y=>{const F=d();if(!F)return;const P={};if(wt(!0,P,m()??{}),Array.isArray(y))y.forEach(B=>{F[B]=P[B]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(B=>{F[B]=P[B]});else if(y&&Array.isArray(y.exclude)){let B=y.exclude??[];Reflect.ownKeys(P).forEach(E=>{B.includes(E)||(F[E]=P[E])})}else Object.assign(F,P);o.clearValidate(y)},o.setModelValue=(y,F)=>{if(!F||F===u)c(y);else{const P={name:F,messagingPolicy:"Once"};f?.emitToChildren(P,"setModelValue",y)}},o.getModelValue=()=>d(),o.setDomainProperty=(y,F)=>{g(y,F)},o.getDomainProperty=y=>w(y),setTimeout(function(){f?.pull()},0)}return(0,t.onUnmounted)(function(){i?.validateSchema&&(i.validateSchema.destroy(),o[We]=void 0,(0,t.provide)(We,null)),i?.broadcast&&(i?.broadcast?.destroy(),o[be]=void 0,(0,t.provide)(be,null)),i?.destroy(),o[Oe]=void 0,(0,t.provide)(Oe,null),o[ht]&&(o[ht].clear(),o[ht]=void 0),o.broadcast=null,o.validate=null,o.setNameValidateRules=null,o.clearValidate=null,o.resetFields=null,o.setModelValue=null,o.getModelValue=null,o.setDomainProperty=null,o.getDomainProperty=null,i=null,o=null}),i}function Aa(e,n,r=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(Oe,null);a===null&&(a=yt());let o=new fl(e||n.prop||n.name);return o.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,s=>{o?.merge(s,r)},{immediate:!0}):o.merge(n,r),l[Oe]=o,(0,t.provide)(Oe,o),(0,t.onUnmounted)(()=>{o?.destroy(),l[Oe]=void 0,(0,t.provide)(Oe,null),o=null,l=null}),o}function $e(e,n,r){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let o=ul(l,(0,t.inject)(be,null),a,r);l[be]=o,(0,t.provide)(be,o),l.broadcast=(d,m,...v)=>o?Reflect.apply(o.emit,o,[d,m,...v]):null;const s=(0,t.inject)(We,null);e.fieldName=e.fieldName??a;let u=cl(l,s,e);l[We]=u,(0,t.provide)(We,u),l.validate=(d=null)=>{if(!u)return Promise.resolve({pass:!0});const m=[];let v=!1,g=!1;if(Array.isArray(d)&&d.indexOf(a)!==-1)g=!0,v=!0;else if(d&&typeof d=="object"){const w=d,p=w.ignoreDisabled??!0,f=w.ignoreReadonly??!0,C=w.ignoreHidden??!0;p===!0&&e.disabled===!0||f===!0&&e.readonly===!0||C===!0&&xa(l.$el)?g=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),g=!0),v=w.deep??!1}else typeof d=="boolean"&&(v=d),g=!0;if(g){const w=u?.validate();m.push(w)}if(v){let w=null;const p={deep:!1};if(d===!0)w={name:"*"};else if(Array.isArray(d)&&d.length>0){const f=d;w={name:C=>C?f.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const f=d;if(Object.assign(p,f),Array.isArray(f.include)&&f.include.length>0){const C=f.include;w={name:b=>b?C.indexOf(b)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const C=f.exclude;w={name:b=>b?C.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&o){const f=o.emitToChildren(w,"validate",p);Reflect.apply([].push,m,f)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(w=>{let p=[];return w.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(p=[...p,...f.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=d=>u?.setRule(d),l.setNameValidateRules=(d,m=!1)=>{const v=d[a];v&&u?.setRule(v),m&&o&&o.emitToChildren({name:g=>Reflect.ownKeys(d).includes(g)},"setNameValidateRules",d,!1)},l.clearValidate=(d=null)=>{(!Array.isArray(d)||d.indexOf(n??"")!==-1)&&u?.clear();let m=null;if(d===!0)m={name:"*"};else if(Array.isArray(d)&&d.length>0){const v=d;m={name:g=>g?v.indexOf(g)!==-1:!1}}else if(d!=null&&typeof d=="object"){const v=d;if(Array.isArray(v.include)&&v.include.length>0){const g=v.include;m={name:w=>w?g.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const g=v.exclude;m={name:w=>w?g.indexOf(w)===-1:!1}}else m={name:"*"}}m&&o&&o.emitToChildren(m,"clearValidate",!1)};let i=new Ia(l);l[ll]=i;const c=je((d="validate")=>{u&&(d==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:$a()).forEach(d=>{i&&i.on(d,m=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Va()).forEach(d=>{i&&i.on(d,m=>{c("reset")})}),setTimeout(function(){o?.pull()},0),(0,t.onUnmounted)(()=>{o?.destroy(),l[be]=void 0,(0,t.provide)(be,null),o=null,u?.destroy(),l[We]=void 0,(0,t.provide)(We,null),u=null,i?.destroy(),l[ll]=void 0,i=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:o,validateSchema:u,emitEvent:(d,...m)=>{i&&Reflect.apply(i.emit,i,[d,...m])},onEvent:(d,m)=>{i&&Reflect.apply(i.on,i,[m])},offEvent:(d,m)=>{i&&Reflect.apply(i.off,i,[m])}}}function Pa(e,n,r,l,a){const o={},s=n??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[s]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,s):!1}};r.fieldName=s,r.validateHandler={getValue(d){return u.getValue()}};let i=cl({},a,r);o.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let v=!1,g=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)g=!0,v=!0;else if(d&&typeof d=="object"){const w=d;Array.isArray(w.include)&&w.include.indexOf(s)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(s),g=!0,v=w.deep??!1}else typeof d=="boolean"&&(v=d),g=!0;if(g&&i){const w=i.validate();m.push(w)}if(v){let w=null;const p={deep:!1};if(d===!0)w={name:"*"};else if(Array.isArray(d)&&d.length>0){const f=d;w={name:C=>C?f.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const f=d;if(Object.assign(p,f),Array.isArray(f.include)&&f.include.length>0){const C=f.include;w={name:b=>b?C.indexOf(b)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const C=f.exclude;w={name:b=>b?C.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&c){const f=c.emitToChildren(w,"validate",p);Reflect.apply([].push,m,f)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(w=>{let p=[];return w.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(p=[...p,...f.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>i?.setRule(d),o.setNameValidateRules=d=>{const m=d[s];m&&i?.setRule(m)};let c=ul(null,l,s,o);return(0,t.onUnmounted)(()=>{i=null,c=null}),{broadcast:c,validateSchema:i}}function Fa(){let e=(0,t.getCurrentInstance)()?.proxy,n=new Ia(e);return e[ll]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[ll]=void 0,n=null,e=null}),{emitEvent:(r,...l)=>{n&&Reflect.apply(n.emit,n,[r,...l])},onEvent:(r,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(r,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var ve=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,n)}px`:"",ui=ve;function de(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),o=1;if(st){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return a*=o,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*n;const l=Number(e);return isNaN(l)?0:l}var it="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=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function en(e,n,r={},l=!0,a=-1,o=-1,s=0,u=0){if(e.headerHeight=de(r.headerHeight??n.headerHeight??-1),e.headerPadding=Ze(r.headerPadding??n.headerPadding),e.footerHeight=de(r.footerHeight??n.footerHeight??-1),e.footerPadding=Ze(r.footerPadding??n.footerPadding),e.contentPadding=Ze(r.contentPadding??n.contentPadding),l){const i=r.height??n.height;i?e.height=de(i,o):e.height=de(o)-de(s,o)-de(u,o),e.width=de(r.width??n.width??0,a)}}function Ra(e,n={}){const r={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},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=de(a.top),l.safeAreaBottom=de(a.bottom),l.safeAreaLeft=de(a.left),l.safeAreaRight=de(a.right));const o=e.get("pageLayout");if(!o)return null;en(l,o,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(l),u=e.getForParent(it);u&&(l.height=nl(e,u),l.width=rl(e,u),(0,t.watch)([()=>nl(e,u),()=>rl(e,u)],([c,d])=>{s.height=c,s.width=d}));const i=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([c,d,m=-1,v=-1,g=0,w=0])=>{en(s,d,n,i,m,v,g,w)}),e.set(it,s),s}function ml(e){return e.get(it)}function pl(e,n){if(n=n??e.get(it),n&&n.headerMounted){const r=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+r}return 0}function hl(e,n){if(n=n??e.get(it),n&&n.footerMounted){const r=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+r}return 0}function nl(e,n){if(n=n??e.get(it),n){if(n.contentInnerHeight)return n.contentInnerHeight;const r=pl(e,n),l=hl(e,n),a=de(n.contentPadding.top??0),o=de(n.contentPadding.bottom??0);return n.height-r-l-a-o}return 0}function rl(e,n){if(n=n??e.get(it),n){const r=de(n.contentPadding.left??0),l=de(n.contentPadding.right??0);return n.contentInnerWidth??n.width-r-l}return 0}function ci(e){return!!e.getForParent(it)}var yn=Symbol.for("InnerPageScopeKey");function bn(e){(0,t.provide)(yn,e)}function Ht(e=!1){return(0,t.inject)(yn,e)}var Sn=Symbol.for("AbstractPageScopeKey");function Da(e){(0,t.provide)(Sn,e)}function jt(e=!1){return(0,t.inject)(Sn,e)}var Ie=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function Gt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Le(e,n,r=Ie.Near,l){const a=ut();return a==null?e:r===Ie.Parent?(0,t.computed)(()=>{const o=a.getAll(n);for(let u=o.length-1;u>=0;u--){const i=o[u];if(Gt(i,l))return i}const s=e.value;return Gt(s,l)?s:null}):(0,t.computed)(()=>{const o=e.value;if(Gt(o,l))return o;const s=a.getAll(n);for(let u=0;u<s.length;u++){const i=s[u];if(Gt(i,l))return i}return null})}function Fe(e){return Le(e,"readonly",Ie.Near)}function Re(e){return Le(e,"disabled",Ie.Near)}function he(e,n="modelValue",r=null,l){const a=(0,t.toRef)(e,n);let o=a.value;typeof r=="function"&&(o=r(a.value));const s=(0,t.ref)(o);return(0,t.watch)(a,u=>{if(typeof r=="function"){const i=r(u);i!==s.value&&(s.value=i,l&&l("setValue",i))}else u!==s.value&&(s.value=u,l&&l("setValue",u))}),s}var Oa=new Map,al=new Map,tn=null;function di(e){tn=e}function qa(e,n,r){if(r){let l=al.get(r);l||(l=new Map,al.set(r,l)),l.set(e,n)}else Oa.set(e,n)}function He(e,n,r){!r&&tn&&(r=tn(e)??void 0);let l=null;if(r){let a=al.get(r);a&&(l=a.get(n))}return l||(l=Oa.get(n)),l}function fi(e,n){for(let r in e){const l=e[r];qa(r,l,n)}}function mi(e){al.delete(e)}function pi(){return{top:0,left:0,bottom:0,right:0}}function hi(){return st?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function gi(e,n){let r=e;if(n.componentPrefix){const l=r.indexOf("-");l!==-1?r=`${n.componentPrefix}${r.slice(l)}`:r=`${n.componentPrefix}-${r}`}return Ft(r)}var vi=class{packages;installers;_version;get version(){return this._version}constructor(e,n,r){this.packages=e,this.installers=n,this._version=r}install(e,n={}){n?.install!==!1&&(this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const a=gi(l.name,n);e.component(a,l)}}),this.installers.forEach(l=>{l(e,n)}));const r=yt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=je(()=>{const o={...l};this.updateLayout(o,r)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,r)}updateLayout(e,n){const r=e.headerBarHeight??0,l=e.footerBarHeight??0,a=wt({},pi(),e.safeAreaInset),o=hi(),s=wt({},o.pageLayout,e.pageLayout);n=n??yt(),n.set("safeAreaInset",a),n.set("headerBarHeight",r),n.set("footerBarHeight",l),n.set("pageLayout",s),n.set("rootWidth",o.rootWidth),n.set("rootHeight",o.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)u.indexOf(i)===-1&&n.set(i,e[i])}setScopeGetter(e){di(e)}setAPI(e,n,r){qa(e,n,r)}getAPI(e,n,r){return He(e,n,r)}batchSetAPI(e,n){fi(e,n)}clearScopeAPI(e){mi(e)}getRootDomain(){return yt()}},yi=[N.ElAffix,N.ElAlert,N.ElAutocomplete,N.ElAutoResizer,N.ElAvatar,N.ElBacktop,N.ElBadge,N.ElBreadcrumb,N.ElBreadcrumbItem,N.ElButton,N.ElButtonGroup,N.ElCalendar,N.ElCard,N.ElCarousel,N.ElCarouselItem,N.ElCascader,N.ElCascaderPanel,N.ElCheckTag,N.ElCheckbox,N.ElCheckboxButton,N.ElCheckboxGroup,N.ElCol,N.ElCollapse,N.ElCollapseItem,N.ElCollapseTransition,N.ElColorPicker,N.ElConfigProvider,N.ElContainer,N.ElAside,N.ElFooter,N.ElHeader,N.ElMain,N.ElDatePicker,N.ElDescriptions,N.ElDescriptionsItem,N.ElDialog,N.ElDivider,N.ElDrawer,N.ElDropdown,N.ElDropdownItem,N.ElDropdownMenu,N.ElEmpty,N.ElForm,N.ElFormItem,N.ElIcon,N.ElImage,N.ElImageViewer,N.ElInput,N.ElInputNumber,N.ElLink,N.ElMenu,N.ElSubMenu,N.ElMenuItem,N.ElMenuItemGroup,N.ElPageHeader,N.ElPagination,N.ElPopconfirm,N.ElPopover,N.ElPopper,N.ElProgress,N.ElRadio,N.ElRadioButton,N.ElRadioGroup,N.ElRate,N.ElResult,N.ElRow,N.ElScrollbar,N.ElSelect,N.ElOption,N.ElOptionGroup,N.ElSelectV2,N.ElSkeleton,N.ElSkeletonItem,N.ElSlider,N.ElSpace,N.ElSteps,N.ElStep,N.ElSwitch,N.ElTable,N.ElTableColumn,N.ElTableV2,N.ElTabs,N.ElTabPane,N.ElTag,N.ElTimePicker,N.ElTimeSelect,N.ElTimeline,N.ElTimelineItem,N.ElTooltip,N.ElTransfer,N.ElTree,N.ElTreeSelect,N.ElTreeV2,N.ElUpload,N.ElStatistic,N.ElCountdown,N.ElSegmented,N.ElAnchor,N.ElAnchorLink,N.ElWatermark,N.ElMessageBox,N.ElMessage,N.ElNotification,N.ElSplitter],bi=[N.ElInfiniteScroll,N.ElLoading,N.ElMessage,N.ElMessageBox,N.ElNotification,N.ElPopoverDirective],Si=(e,n={})=>{const r=n.componentPrefix??"fox";yi.forEach(l=>{if(typeof l.name=="string"){let a="";const o=_a(l.name),s=o.indexOf("-");s!==-1?a=`${r}${o.slice(s)}`:a=`${r}-${o}`,a=Ft(a),e.component(a,l)}else e.use(l)}),bi.forEach(l=>{e.use(l)})};function se(e){const n=`fox-${e}`,r=Ft(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=r,l.install=(a,o)=>{let s=l.name;o?.componentPrefix&&(s=`${o.componentPrefix}-${l.baseName}`,s=Ft(s)),a.component(s,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}function Ne(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let r=n.proxy;Object.assign(r,e)}}var Se={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Te={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}},Ha={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}},ja={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Ka=[];for(const e in ja)Ka.push(e);var wi={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}},xi=(e,n)=>({inheritAttrs:!0,props:{...Se,...Ha,...wi},setup(r,{slots:l}){const a=jt(!1),o=Ht(!1),s=vn(r.name,r);if(s){const m=Ra(s,r);Ne({getPageContentHeight:()=>nl(s,m),getPageContentWidth:()=>rl(s,m),getPageHeaderHeight:()=>pl(s,m),getPageFooterHeight:()=>hl(s,m)}),m&&o&&(m.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":o})),i=(0,t.computed)(()=>({})),c=(0,t.getCurrentInstance)(),d=(m,v=!1)=>{const g=c?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(m,!0,v)};return(0,t.watch)([()=>r.rules,()=>r.pureDataRules],([m,v],[g,w])=>{if(m&&g){const p=(0,t.toRaw)(g),f=(0,t.toRaw)(m),C=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(b=>{C.includes(b)||(f[b]=[])}),d(f)}if(v&&w){const p=(0,t.toRaw)(w),f=(0,t.toRaw)(v),C=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(b=>{C.includes(b)||(f[b]=[])}),d(f,!0)}},{deep:!0}),(0,t.onMounted)(()=>{r.rules&&d((0,t.toRaw)(r.rules)),r.pureDataRules&&d((0,t.toRaw)(r.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:u.value,style:i.value},[l?.default?.()])}}),{componentName:Ni,create:Ci,scope:zi}=se("page"),ki=Ci(xi(Ni,zi)),wn=ki;function xn(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function gl(e){const n=(0,t.unref)(e),r=window.getComputedStyle(n,null),l=parseFloat(r.getPropertyValue("padding-left")),a=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-o-s}}var Wa={headerbar:{},radio:{},checkbox:{}};function Ei(e){Object.assign(Wa,e)}function Ya(){return Wa}var _i=(e,n,r,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:r},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,o){const s=jt(!1),u=Ht(!1),i=s?null:ut(),c=i?ml(i):null;c&&(c.headerMounted=!0);const d=Ya(),m=e,v=(0,t.computed)(()=>{const x={[m]:!0,[`${m}--border`]:a.border,[`${m}--fixed`]:a.fixed};return u||(x[`${m}--safe-area-inset-top`]=a.safeAreaInsetTop),x}),g=(0,t.computed)(()=>({[`${m}__inner`]:!0,[`${m}__inner--${a.align}`]:!0})),w=qe(a.height)?null:de(a.height),p=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return x;if(i&&c){const k=Ze(a.padding??c.headerPadding);if(Object.assign(x,k),qe(w)||(c.headerHeight=w),x.height=c.headerHeight,x.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,x.safeAreaTop>0){const M=de(k.top??0);x.top=x.safeAreaTop+M,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(qe(w)||(x.height=w),a.padding){const k=Ze(a.padding);Object.assign(x,k)}return x}),f=(0,t.ref)(null),C=()=>c&&f.value&&!pn(f.value)?(l||(c.headerAllHeight=xn(f.value).height),c.headerMounted=!0,!0):!1,b=je(C,120);let y=null;(0,t.onMounted)(()=>{s||c&&(dl(C,50,5,50,!0),window.ResizeObserver&&f.value&&(y=new window.ResizeObserver(b),y.observe(f.value)))}),(0,t.onUnmounted)(()=>{s||c&&(c.headerMounted=!1,y&&(y.disconnect(),y=null))});const F=(0,t.computed)(()=>{const x={};return s||(p.value.height!==null&&p.value.height!==void 0&&(x.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(x.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(x.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(x.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(x.paddingBottom=`${p.value.bottom}px`)),x}),P=(0,t.computed)(()=>{const x=p.value?.height;return qe(x)||x<0?!0:x>0});function B(){o.emit("back")}function E(){o.emit("click-title")}function V(){o.emit("click-right")}function S(){o.emit("click-right-text")}const D=()=>{if(!a.leftShow)return null;const x=[];if(o.slots.left)x.push(o.slots.left());else{if(o.slots.leftIcon){const k=(0,t.h)("view",{class:"left-icon",onClick:B},[o.slots.leftIcon()]);x.push(k)}else{const k=a.leftIcon??d.headerbar.Left??r,M=(0,t.h)("view",{class:"left-icon",onClick:B},[(0,t.h)(k)]);x.push(M)}if(a.leftText){const k=(0,t.h)("view",{class:"left-text",onClick:B},[a.leftText]);x.push(k)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},z=()=>{if(!a.rightShow)return null;const x=[];if(o.slots.right)x.push(o.slots.right());else{if(a.rightText){const k=(0,t.h)("view",{class:"right-text",onClick:S},[a.rightText]);x.push(k)}if(o.slots.rightIcon){const k=(0,t.h)("view",{class:"right-icon",onClick:V},[o.slots.rightIcon()]);x.push(k)}else if(a.rightIcon){const k=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(a.rightIcon)]);x.push(k)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},A=()=>{if(!a.titleShow)return null;const x=[],k=o.slots.default?o.slots.default():null;if(k)x.push(k);else{if(a.title){const M=(0,t.h)("view",{class:"title-text"},[a.title]);x.push(M)}if(o.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:E},[o.slots.titleIcon()]);x.push(M)}else if(a.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:E},[(0,t.h)(a.titleIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},Q=()=>{const x=[],k=o.slots.bottom?o.slots.bottom():null;return k&&x.push(k),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(s||!P.value)return null;const x=[];if(o.slots.all)x.push(o.slots.all());else{const k=[],M=D();M&&k.push(M);const H=A();H&&k.push(H);const U=z();if(U&&k.push(U),k.length>0){const I=(0,t.h)("view",{class:g.value},k);x.push(I)}const Z=Q();Z&&x.push(Z)}return x.length===0?null:(0,t.h)("view",{class:v.value,style:F.value,ref:f},x)}}}),{componentName:Ti,create:$i,scope:Bi}=se("header-bar"),Vi=$i(_i(Ti,Bi,Ve.ArrowLeft)),Nn=Vi;function Mi(e,n,r=!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 o=jt(!1),s=Ht(!1),u=o?null:ut(),i=u?ml(u):null,c=(0,t.computed)(()=>{const b=e,y={[b]:!0,[`${b}--${l.align}`]:!0,[`${b}--border`]:l.border,[`${b}--fixed`]:l.fixed};return s||(y[`${b}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),y}),d=qe(l.height)?null:de(l.height),m=(0,t.computed)(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return b;if(u&&i){const y=Ze(l.padding??i.footerPadding);if(Object.assign(b,y),qe(d)||(i.footerHeight=d),b.height=i.footerHeight,b.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,b.safeAreaBottom>0){const F=de(y.bottom??0);b.bottom=b.safeAreaBottom+F,b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)}return b}if(qe(d)||(b.height=d),l.padding){const y=Ze(l.padding);Object.assign(b,y)}return b}),v=(0,t.computed)(()=>{const b=m.value?.height;return qe(b)||b<0?!0:b>0}),g=(0,t.ref)(null),w=()=>i&&g.value&&!pn(g.value)?(r||(i.footerAllHeight=xn(g.value).height),i.footerMounted=!0,!0):!1,p=je(w,120);let f=null;(0,t.onMounted)(()=>{o||i&&(dl(w,50,5,50,!0),window.ResizeObserver&&g.value&&(f=new window.ResizeObserver(p),f.observe(g.value)))}),(0,t.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,f&&(f.disconnect(),f=null))});const C=(0,t.computed)(()=>{const b={};return o||(m.value.height!==null&&m.value.height!==void 0&&(b.height=ve(m.value.height)),m.value.top!==null&&m.value.top!==void 0&&(b.paddingTop=ve(m.value.top)),m.value.left!==null&&m.value.left!==void 0&&(b.paddingLeft=ve(m.value.left)),m.value.right!==null&&m.value.right!==void 0&&(b.paddingRight=ve(m.value.right)),m.value.bottom!==null&&m.value.bottom!==void 0&&(b.paddingBottom=ve(m.value.bottom))),b});return()=>{if(o||!v.value)return null;const b=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:g,class:c.value,style:C.value},b)}}}}var{componentName:Ii,create:Li,scope:Ai}=se("footer-bar"),Pi=Li(Mi(Ii,Ai)),Cn=Pi;function Fi(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:l,attrs:a}){const o=jt(!1),s=Ht(!1),u=o?null:ut(),i=(0,t.computed)(()=>({[e]:!0})),c=u?ml(u):null,d=(0,t.computed)(()=>{const p={};if(o)return p;if(u&&c){if(r.padding){const E=Ze(r.padding);Object.assign(c.contentPadding,E)}const f=pl(u,c),C=hl(u,c);let b="";c.contentHeight?b=`${c.contentHeight}`:b=`${c.height}px`,p.height=b;let y=de((c&&c.contentPadding&&c.contentPadding.top)??-1);(y>=0||f>0)&&(y=y<0?0:y,p.paddingTop=`${f+y}px`);let F=de((c&&c.contentPadding&&c.contentPadding.bottom)??-1);(F>=0||C>0)&&(F=F<0?0:F,p.paddingBottom=`${C+F}px`);const P=de((c&&c.contentPadding&&c.contentPadding.left)??-1);P>=0&&(p.paddingLeft=`${P}px`);const B=de((c&&c.contentPadding&&c.contentPadding.right)??-1);return B>=0&&(p.paddingRight=`${B}px`),p}if(r.padding){const f=Ze(r.padding);f.left&&(p.paddingLeft=`${f.left}px`),f.top&&(p.paddingTop=`${f.top}px`),f.right&&(p.paddingRight=`${f.right}px`),f.bottom&&(p.paddingBottom=`${f.bottom}px`)}return p}),m=(0,t.ref)(null),v=()=>{if(c&&m.value){const p=gl(m.value);c.contentInnerHeight=p.height,c.contentInnerWidth=p.width}},g=je(v,120);let w=null;return(0,t.onMounted)(()=>{s||o||(requestAnimationFrame(v),window.ResizeObserver&&m.value&&(w=new window.ResizeObserver(g),w.observe(m.value)))}),(0,t.onUnmounted)(()=>{s||o||w&&(w.disconnect(),w=null)}),()=>o?l.default?.():(0,t.h)(r.tag??"view",{...a,ref:m,class:i.value,style:d.value},l)}}}var{componentName:Ri,create:Di,scope:Oi}=se("content"),qi=Di(Fi(Ri,Oi)),zn=qi,xt="GroupStateKey",Ua=Symbol.for("GroupScopeKey");function vl(){return(0,t.inject)(Ua,!1)}function yl(e=!0){(0,t.provide)(Ua,e)}function Hi(e,n={}){Reflect.ownKeys(n).forEach(r=>{if(typeof r!="string")return;const l=n[r];qe(l)||(e[r]=l)})}function ji(e,n={}){const r={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Hi(r,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(r),passport:0,order:{index:0}});return e.set(xt,l),l}function Rl(e,n,r=-1,l=-1,a=!1,o,s,u){const i=e.get(xt);if(!i)return;const c=e.get("groupLayout")??{};r===-1&&(r=c.column??1),l===-1&&(l=c.gutter??0),o||(o=c.minItemWidth??-1),s||(s=c.maxItemWidth??-1);const d=de(o),m=de(s);u||(u=c.type??"grid");const v=()=>{const g=n===""||n===-1,w=de(n);let p=_e(r);const f=de(l);if(!g){let y=(w-(p-1)*f)/p;for(;m!==-1&&y>m;)p++,y=(w-(p-1)*f)/p;for(;d!==-1&&p>1&&y<d;)p--,y=(w-(p-1)*f)/p}let C=!1;const b=i.layout;b.value.width=n,b.value.column!==p&&(b.value.column=p,C=!0),b.value.gutter!==f&&(b.value.gutter=f,C=!0),b.value.type!==u&&(b.value.type=u,C=!0),C&&(0,t.triggerRef)(b)};if(a)v();else{const g=++i.passport;setTimeout(()=>{g===i.passport&&v()},50)}}function bl(e,n=!1){let r;return n?r=e.getForParent(xt):r=e.get(xt),r.layout}function Sl(e,n=!1){let r;return n?r=e.getForParent(xt):r=e.get(xt),r.order}function Sr(e,n=1){if(n==="stretch")return-1;const r=_e(n);return r===-1?100:100*r/e}function wl(e,n,r=1,l=0,a){const o={};let s=0;a?s=de(a):s=Sr(n.column,r),s>0&&(o.width=`${s}%`);const u=Sr(n.column,l);u>0&&(o["margin-left"]=`${u}%`);const i=de(n.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function xl(e,n,r=1,l=0){if(r==="stretch"){const i=e.index%n.column,c=i+(n.column-i);return e.index=e.index+(c-i),{"grid-column":`${i+1} / -1`}}let a=_e(r);if(a===-1){const i=e.index%n.column;return n.column,i==0?e.index=e.index+n.column:e.index=e.index+(n.column-i)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const i=e.index%n.column;return n.column,i==0?e.index=e.index+n.column:e.index=e.index+(n.column-i)+n.column,{"grid-column":"1 / -1"}}const o=_e(l)%n.column;let s=(e.index+o)%n.column,u=s+a;return u>n.column?(s=0,u=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+o+a,o>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var Ga=Symbol("RollingStateKey");function Ki(e){(0,t.provide)(Ga,e)}function Wi(){return(0,t.inject)(Ga,null)}function ln(e){let n=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function Yi(e){let n=ln(e);if(n<=0){const r=e.cloneNode(!0);r.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),n=ln(r),document.body.removeChild(r)}return n}function Ui(e,n,r){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),o=typeof r=="number"?r:parseInt(r);if(l<=0)return"1fr";const s=(l-(a-1)*o)/a;return s>0?`${s}px`:"1fr"}function Xa(e){const n=[];return e.forEach(r=>{r.type===t.Fragment&&Array.isArray(r.children)?n.push(...Xa(r.children)):n.push(r)}),n}function Gi(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function kn(e){function n(){return Xa(e?.()??[]).filter(Gi)}return{getChildren:n}}var Xi={...Se,...Ha,...ja};function Zi(e,n,r){return{props:Xi,emits:["update:collapse","header-click"],setup(l,a){const o=vn(l.prop??l.name,l,Ka),s=ji(o,{type:l.type}),u=vl();yl(!0);const i=l.rollingDisplay?Wi():null,c=(0,t.ref)(null),d=(0,t.computed)(()=>l.rollingDisplay?i&&!i.disabled:!1),m=(0,t.computed)(()=>u&&o?bl(o,!0).value:null),v=(0,t.getCurrentInstance)(),g=($,G=!1)=>{const T=v?.proxy;T&&typeof T.setNameValidateRules=="function"&&T.setNameValidateRules($,!0,G)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([$,G],[T,h])=>{if($&&T){const R=(0,t.toRaw)(T),q=(0,t.toRaw)($),J=q?Reflect.ownKeys(q):[];(R?Reflect.ownKeys(R):[]).forEach(ae=>{J.includes(ae)||(q[ae]=[])}),g(q)}if(G&&h){const R=(0,t.toRaw)(h),q=(0,t.toRaw)(G),J=q?Reflect.ownKeys(q):[];(R?Reflect.ownKeys(R):[]).forEach(ae=>{J.includes(ae)||(q[ae]=[])}),g(q,!0)}},{deep:!0});const w=e,p=(0,t.computed)(()=>{const $={};$.height=k.value;const G=u?Sl(o,!0):null;if(m.value&&G){if(m.value.type==="grid"){const T=xl(G,m.value,l.span,l.offset);Object.assign($,T)}else if(m.value.type==="flow"){const T=wl(G,m.value,l.span,l.offset,l.width);Object.assign($,T)}}else l.width&&($.width=ve(l.width));return $}),f=(0,t.computed)(()=>{const $=s.layout.value.type;return $==="grid"||$==="flow"?{[`${w}--${$}`]:!0,[`${w}--${$}-justify-${l.justify}`]:!0,[`${w}--${$}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${$}`]:!0,[`${w}--gutter`]:!0}}),C=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let $="";if(l.columnWidth)$=`repeat(auto-fill, ${l.columnWidth})`;else{const G=Ui(V.value,s.layout.value.column,s.layout.value.gutter);$=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":$}}}),b=(0,t.toRef)(l,"gutter"),y=(0,t.toRef)(l,"column"),F=(0,t.computed)(()=>u||d.value?!0:ce(l.isWrap)),P=[],B=$=>{P.push($)},E=()=>{let $=P.length;P.splice(0,$)},V=(0,t.ref)(-1),S=$=>{const G=gl($).width;G>0&&G!==V.value&&(V.value=G)};Rl(o,V.value,y.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([V,y,b],([$,G,T])=>{s.order.index=0,Rl(o,$,G,T,!1,l.minItemWidth,l.maxItemWidth,l.type)});const D=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),z=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),A=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),Q=(0,t.ref)(),x=(0,t.ref)(),k=(0,t.computed)(()=>H.value||ve(l.height)||""),M=(0,t.ref)(!1),H=(0,t.ref)(""),U=(0,t.ref)(!1);let Z=-1;const I=($,G=!0)=>{const T=Q.value;if(T&&M.value!==$){if(Z=Z===-1?Yi(T):Z,U.value=!0,G)if(T.style["will-change"]="height",T.ontransitionend=function(){T.ontransitionend=null,this.style["will-change"]="auto",$||(H.value="",U.value=!1)},$){let h=0;l.collapseHeight?h=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(h=x.value.offsetHeight),H.value=`${Z}px`,(0,t.nextTick)(()=>{H.value=`${h}px`})}else H.value=`${Z}px`;else if($){let h=0;l.collapseHeight?h=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(h=x.value.offsetHeight),H.value=`${h}px`}else U.value=!1,H.value=`${Z}px`;M.value=$,a.emit("update:collapse",$)}};(0,t.watch)(()=>l.collapse,$=>{I($)});const te=$=>{a.emit("header-click",$)},K=()=>{L()},L=$=>{$=$??!M.value,I($)};Ne({toggleCollapse:L,doLayout:()=>{P[0]&&(S(P[0]),Rl(o,V.value,y.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let j=null,_=!0;const W=$=>{if(l.rules&&g((0,t.toRaw)(l.rules)),l.pureDataRules&&g((0,t.toRaw)(l.pureDataRules),!0),!!st&&($&&I(ce(l.collapse),!1),l.autoLayout&&Array.isArray(P)&&P.length>0)){const G=P[0];if(S(G),window.ResizeObserver){const T=je(()=>S(G),120);j=new window.ResizeObserver(T),j.observe(G)}}},ee=()=>{j?.disconnect(),j=null},ne=!d.value||i?.acquire();ne&&(c.value=d.value?!0:null),(0,t.onMounted)(()=>{if(ne&&(W(_),_=!1),d.value&&i){let $=null,G=i.initialHeight;i.observe(Q.value,T=>{if(T!==c.value)if(T)c.value=!0,M.value||(H.value=""),$=setTimeout(()=>{$=null,c.value!==!1&&(W(_),_=!1)},100);else{if($!==null&&clearTimeout($),c.value=!1,!M.value)if(_)H.value=i.initialHeight;else{let h=ln(Q.value);h<=0?H.value=G:(H.value=`${h}px`,G=H.value)}_||ee()}})}}),(0,t.onUnmounted)(()=>{j?.disconnect(),i&&i.unobserve(Q.value)});const X=($="right")=>{const G=[];if(D.value){const R=(0,t.h)("span",{class:z.value},[D.value]);G.push(R)}const T={class:A.value},h=r(l.collapseIcon,T);return h&&G.push(h),G.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${$}`]:!0},onClick:K},G):null},Y=($,G,T,h)=>{const R={...f.value};if(G===0&&(R[`${w}__first`]=!0),T>=h-1&&(R[`${w}__last`]=!0),F.value===!1){const q=a.attrs.class;q&&(R[`${q}`]=!0)}return(0,t.h)("div",{ref:B,key:`${G}`,class:R,style:C.value},$)};return()=>{const $=l.prop??l.name;if(d.value&&c.value!==!0)return(0,t.h)(l.tag||"div",{ref:Q,prop:$,class:{[`${w}`]:!0,"is-collapse":U.value},style:p.value},[]);s.order.index=0;const G=[];let T=0;if(a.slots.header){const J=(0,t.h)("div",{key:`${T++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:te},[a.slots.header()]);G.push(J)}else{const J=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const oe=X("left");oe&&J.push(oe)}if(l.title||a.slots.title){if(l.showMark){const oe={class:{[`${w}__header-mark`]:!0}};l.markColor&&(oe.style={background:l.markColor});const pe=(0,t.h)("div",oe);J.push(pe)}if(a.slots.title){const oe=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);J.push(oe)}else if(l.title){const oe=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);J.push(oe)}}if(a.slots.toolbar&&J.push(a.slots.toolbar()),!ae&&l.showCollapse){const oe=X("right");oe&&J.push(oe)}if(J.length>0){const oe=(0,t.h)("div",{key:`${T++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:te},J);G.push(oe)}}E();const{getChildren:h}=kn(a.slots.default),R=h(),q=s.layout.value.type;if(q==="grid"){const J=Y(R,T++,0,R.length);G.push(J)}else if(q==="flow"){const J=Y(R,T++,0,R.length);G.push(J)}else for(let J=0;J<R.length;J++){const ae=R[J],oe=Y([ae],T++,J,R.length);G.push(oe)}return F.value?(0,t.h)(l.tag||"div",{ref:Q,prop:$,class:{[`${w}`]:!0,"is-collapse":U.value},style:p.value},[G]):G}}}}var{componentName:Ji,create:Qi,scope:es}=se("group"),ts=(e,n)=>(e=e??Ve.ArrowUp,(0,t.h)(N.ElIcon,n,{default:()=>[(0,t.h)(e)]})),ls=Qi(Zi(Ji,es,ts)),En=ls;function ns(e){return e===window}var rs=/matrix\((.+)\)/,_n=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(ns(n))return{x:0,y:0};let r=0,l=0,a=n;for(;a!==null;)r+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let o=0,s=0,u=0,i=0;for(a=n;a!==document;){s+=a.scrollTop,o+=a.scrollLeft;const{transform:c}=window.getComputedStyle(a);if(c){const d=rs.exec(c);if(d){let m=d[1].split(/\s*,\s*/);m.length==6&&(u+=Number(m[4]),i+=Number(m[5]))}}a=a.parentNode}return r-=o,l-=s,r+=u,l+=i,{x:r,y:l}},as=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},os=class{monitorRegister=new WeakMap;watch(e,n){let r=e.parentNode;const l=document.body.parentNode;for(;r&&r!==l;){let a=this.monitorRegister.get(r);a||(a=new as,r.addEventListener("scroll",a.listen),r===document.body&&r.addEventListener("resize",a.listen),this.monitorRegister.set(r,a)),a.add(n),r=r.parentNode}}unwatch(e,n){let r=e.parentNode;const l=document.body.parentNode;for(;r&&r!==l;){let a=this.monitorRegister.get(r);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(r),r.removeEventListener("scroll",a.listen),r===document.body&&r.removeEventListener("resize",a.listen))),r=r.parentNode}}},Lt=new os,Za={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:is,create:ss}=se("price"),us=ss({props:{...Za},setup(e){const n=(0,t.computed)(()=>({[is]:!0})),r=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>zt(e.price)==0?"":il(e.price,e.decimalLength,!0,_e(e.digits),e.separator));return{classes:n,showSymbol:r,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let o=a.indexOf(".");return a.substring(0,o)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let o=a.indexOf(".");return a.substring(o+1)})}}}),Ue=(e,n)=>{const r=e.__vccOpts||e;for(const[l,a]of n)r[l]=a;return r},cs=["innerHTML"],ds=["innerHTML"];function fs(e,n,r,l,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,cs)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ds)):(0,t.createCommentVNode)("",!0)],2)}var Nl=Ue(us,[["render",fs]]),{componentName:Dl,create:ms}=se("hint-text"),ps=ms({components:{Price:Nl},props:{...Za,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 r=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(e.placement),u=(0,t.ref)(!1),i=(0,t.ref)(null),c=(z,A,Q,x,k,M)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=z.split("-");let I=[];Z[0]==="top"?I=["top","bottom","right","left"]:Z[0]==="bottom"?I=["bottom","top","right","left"]:Z[0]==="left"?I=["left","top","bottom","right"]:Z[0]==="right"&&(I=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},K=[];for(let L=0;L<I.length;L++){const O=I[L];if(K[0]=O,Z[1]&&(K[1]=Z[1]),O==="top"){const j=A.y-M-e.arrowSize-e.offset;if(j>=0){te.top=j;let _=0;Z[1]==="start"?_=A.x:Z[1]==="end"?_=A.x+Q-k:_=A.x+Q/2-k/2;const W=H-_-k;W<0?(_+=W,m.value=-W):m.value=0,te.left=_<0?0:_;break}}else if(O==="bottom"){const j=A.y+x+e.arrowSize+e.offset;if(j+M<=U){te.top=j;let _=0;Z[1]==="start"?_=A.x:Z[1]==="end"?_=A.x+Q-k:_=A.x+Q/2-k/2;const W=H-_-k;W<0?(_+=W,m.value=-W):m.value=0,te.left=_<0?0:_;break}}else if(O==="left"){const j=A.x-k-e.arrowSize-e.offset;if(j>=0){te.left=j;let _=0;Z[1]==="start"?_=A.y:Z[1]==="end"?_=A.y+x-M:_=A.y+x/2-M/2,te.top=_<0?0:_;break}}else if(O==="right"){const j=A.x+Q+e.arrowSize+e.offset;if(j+k<=H){te.left=j;let _=0;Z[1]==="start"?_=A.y:Z[1]==="end"?_=A.y+x-M:_=A.y+x/2-M/2,te.top=_<0?0:_;break}}}return{bestPlacement:K.join("-"),bestInsetRect:te}},d=(z,A,Q=10)=>{if(!st||A===!1||!z)return;l.value=_n(e.reference),a.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const x=i.value.offsetHeight,k=i.value.offsetWidth,{bestPlacement:M,bestInsetRect:H}=c(e.placement,l.value,a.value,o.value,k,x);s.value=M,r.value=H,u.value=!0},m=(0,t.ref)(0),v=je(()=>{d(e.message,e.visible)},10),g=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,z=>{g.value=z});const w=(0,t.computed)(()=>g.value&&p.value),p=(0,t.ref)(!0),f=je(z=>{const A=z[0];A&&(p.value=A.isIntersecting)},10),C=new IntersectionObserver(f);(0,t.watch)([()=>e.message,()=>e.visible],([z,A])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Lt.watch(e.reference,v),C.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Lt.unwatch(e.reference,v),C.unobserve(e.reference),C.disconnect()});const b=(0,t.computed)(()=>{const z={[Dl]:!0};return s.value.startsWith("top")?z["is-top"]=!0:s.value.startsWith("right")?z["is-right"]=!0:s.value.startsWith("bottom")?z["is-bottom"]=!0:s.value.startsWith("right")&&(z["is-right"]=!0),e.size==="small"?z["is-small"]=!0:e.size==="large"&&(z["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(z[`${e.customClass}`]=!0),z}),y=(0,t.computed)(()=>{const z={};return r.value.top!==null&&(z.top=`${r.value.top}px`),r.value.right!==null&&(z.right=`${r.value.right}px`),r.value.bottom!==null&&(z.bottom=`${r.value.bottom}px`),r.value.left!==null&&(z.left=`${r.value.left}px`),e.autoFit&&(z["min-width"]=`${a.value}px`),z["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(z.opacity="1"),e.transition||(z.transition="none"),e.zIndex&&(z["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(z,e.customStyle),z}),F=(0,t.computed)(()=>{const z=[`${Dl}__content`];return e.customTextClass&&z.push(e.customTextClass),z}),P=(0,t.computed)(()=>{const z={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(z,e.customTextStyle),z}),B=(0,t.computed)(()=>({[`${Dl}__arrow`]:!0})),E=(0,t.computed)(()=>{const z={};return e.showArrow?(z.width=`${e.arrowSize}px`,z.height=`${e.arrowSize}px`,s.value==="top"?(z.left="50%",z.bottom=`-${e.arrowSize}px`,z.transform=" translate(-50%, 0%)"):s.value==="top-start"?(z.left=`${e.arrowOffset+m.value}px`,z.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(z.right=`${e.arrowOffset-m.value}px`,z.bottom=`-${e.arrowSize}px`):s.value==="right"?(z.left=`-${e.arrowSize}px`,z.top="50%",z.transform=" translate(0%, -50%)"):s.value==="right-start"?(z.left=`-${e.arrowSize}px`,z.top=`${e.arrowOffset}px`):s.value==="right-end"?(z.left=`-${e.arrowSize}px`,z.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(z.left="50%",z.top=`-${e.arrowSize}px`,z.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(z.left=`${e.arrowOffset+m.value}px`,z.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(z.right=`${e.arrowOffset-m.value}px`,z.top=`-${e.arrowSize}px`):s.value==="left"?(z.right=`-${e.arrowSize}px`,z.top="50%",z.transform=" translate(0%, -50%)"):s.value==="left-start"?(z.right=`-${e.arrowSize}px`,z.top=`${e.arrowOffset}px`):s.value==="left-end"&&(z.right=`-${e.arrowSize}px`,z.bottom=`-${e.arrowOffset}px`),z):{display:"none"}}),V=(0,t.computed)(()=>w.value&&e.closeOnClick),S=(0,t.computed)(()=>{const z={};return e.zIndex&&(z["z-index"]=`${e.zIndex}`),z});return{show:w,tipRef:i,classes:b,styles:y,textClasses:F,textStyles:P,arrowClasses:B,arrowStyles:E,overlayShow:V,overlayStyle:S,onClickOverlay:()=>{g.value=!1,n.emit("update:visible",!1)}}}}),hs=["innerHTML"];function gs(e,n,r,l,a,o){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,hs))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Ja=Ue(ps,[["render",gs]]),Qa=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},nn={},vs=new Qa,bt=new Map,ol=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const r=document.getElementById(n);r&&r.parentNode?.removeChild(r)}bt.clear()}},ys=e=>{e.unmount=ol;const n=document.getElementById(e.id);if(n){const r=bt.get(e.id);r?e={...nn,...r,...e}:e={...nn,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ja,e),n)}return e.id},bs=e=>{e.unmount=ol;let n=e.id??`hinttext_${vs.get()}`;e={...nn,...e},e.id=n,bt.set(n,e);const r=document.createElement("div");return r.id=e.id,(0,t.render)((0,t.createVNode)(Ja,e),r),document.body.appendChild(r),n},Ss=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ee={show(e,n,r={},l=!0){Ss(n);const a=r.id;return a&&bt.has(a)?ys({...r,message:n,reference:e}):(l&&ol(),bs({...r,message:n,reference:e}))},hide(e){ol(e)},install(e){e.config.globalProperties.$hintText=Ee}};function ws(e,n,r,l=!1){return{inheritAttrs:!0,props:{...Se,...Te},emits:["appear","disappear"],setup(a,o){const s=a.prop??o.attrs.name;$e({componentName:e,validate:!1},s);const u=ut(),i=vl();yl(!1);const c=(0,t.computed)(()=>i&&u?bl(u,!1).value:null),d=e,m=(0,t.ref)(null),v=(0,t.computed)(()=>{const h={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:a.span==="stretch",[`${d}__input--border`]:ce(a.hasBorder)};if(h[a.errorMarkClass]=!!M.value,h[a.warnMarkClass]=!!x.value,h[a.infoMarkClass]=!!A.value,typeof m.value=="function"){const R=m.value(s);h[R]=!0}else if(typeof m.value=="string"){const R=m.value;h[R]=!0}return h}),g=(0,t.ref)(null),w=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=ve(a.width));else{const R=i&&u?Sl(u,!1):null;if(c.value&&R){if(c.value.type==="grid"){const q=xl(R,c.value,a.span,a.offset);Object.assign(h,q)}else if(c.value.type==="flow"){const q=wl(R,c.value,a.span,a.offset,a.width);Object.assign(h,q)}}}if(typeof g.value=="function"){const R=g.value(s);R&&Object.assign(h,R)}else if(g.value&&typeof g.value=="object"){const R=g.value;Object.assign(h,R)}return h}),p=(0,t.ref)(null),f=(0,t.computed)({get:()=>p.value??ce(a.isRequired),set:h=>{p.value=h}}),C=()=>typeof a.label=="string"&&a.label.length>0||typeof o.slots.label=="function",b=Le((0,t.toRef)(a,"labelPosition"),"labelPosition",Ie.Near),y=(0,t.computed)(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),F=(0,t.computed)(()=>({[`${d}__main`]:!0,[`${d}__main--${y.value}`]:!0})),P=(0,t.computed)(()=>({label:!0,[`label--${y.value}`]:!0})),B=Le((0,t.toRef)(a,"labelWidth"),"labelWidth",Ie.Near),E=(0,t.computed)(()=>B&&B.value?{width:ve(B.value)}:{}),V=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),S=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),D=(0,t.computed)(()=>({...a.contentStyle})),z=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ne({setRequired(h){f.value=h},setErrorTip(h){z.errorTip=h},setErrorIcon(h){z.errorIcon=h},setWarnTip(h){z.warnTip=h},setWarnIcon(h){z.warnIcon=h},setInfoTip(h){z.infoTip=h},setInfoIcon(h){z.infoIcon=h},setCustomClassName(h){m.value=h},setCustomStyle(h){g.value=h}});const A=(0,t.computed)(()=>a.infoTip||z.infoTip),Q=(0,t.computed)(()=>a.infoIcon||z.infoIcon),x=(0,t.computed)(()=>a.warnTip||z.warnTip),k=(0,t.computed)(()=>a.warnIcon||z.warnIcon),M=(0,t.computed)(()=>a.errorTip||z.errorTip),H=(0,t.computed)(()=>a.errorIcon||z.errorIcon),U=(0,t.computed)(()=>M.value?"error":x.value?"warn":A.value?"info":""),Z=()=>U.value.length>0,I=(0,t.computed)(()=>U.value==="error"?M.value:U.value==="warn"?x.value:U.value==="info"?A.value:""),te=(0,t.computed)(()=>U.value==="error"?H.value:U.value==="warn"?k.value:U.value==="info"?Q.value:null),K=(0,t.computed)(()=>{const h={[`${d}__tip`]:!0,[`${d}__tip--${U.value}`]:!0,[`${d}--animate`]:!0};return U.value==="error"&&a.errorClass?h[`${a.errorClass}`]=!0:U.value==="warn"&&a.warnClass?h[`${a.warnClass}`]=!0:U.value==="info"&&a.infoClass&&(h[`${a.infoClass}`]=!0),h}),L=(0,t.computed)(()=>{const h={};return b&&b.value==="top"||!C()?h["padding-left"]="0px":B&&B.value&&(h["padding-left"]=ve(B.value)),h}),O=(0,t.ref)();let j="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([h,R,q,J])=>{O.value&&(h&&!fe(R)?j?r.show(O.value,R,{...J,id:j,type:q},!0):j=r.show(O.value,R,{...J,type:q},!0):r.hide(j))});let _=null;const W=()=>{_||!O.value||(_=new IntersectionObserver(h=>{let R=!1;for(let q of h)if(q.intersectionRatio>0){R=!0,R&&o.emit("appear",q);break}R||o.emit("disappear")}),_.observe(O.value))},ee=()=>{!_||!O.value||(_.unobserve(O.value),_=null)};(0,t.watch)(()=>ce(a.appearListen),h=>{h?W():ee()}),(0,t.onMounted)(()=>{ce(a.appearListen)&&W()}),(0,t.onUnmounted)(ee);const ne=()=>{if(!C())return null;const h=[],R=o.slots?.label?.()??a.label,q=(0,t.h)("div",{class:V.value},[R]);if(h.push(q),o.slots.fixedPreTip){const J=o.slots.fixedPreTip();h.push(J)}return(0,t.h)("div",{class:P.value,style:E.value},h)},X=()=>{const h=[];if(o.slots.prepend){const R=o.slots.prepend();h.push(R)}if(o.slots.default){const R=o.slots.default();h.push(R)}if(o.slots.append){const R=o.slots.append();h.push(R)}if(o.slots.fixedTip){const R=(0,t.h)("div",{class:[`${d}__fixed-tip`]},[o.slots.fixedTip()]);h.push(R)}return(0,t.h)("div",{ref:O,class:S.value,style:D.value},h)},Y=()=>{const h=te.value;return h?typeof h=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[h()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(h)]):null},$=()=>{const h=I.value;return h?typeof h=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[h()]):(0,t.h)("div",{class:"fox-item__tip--text"},[h]):null},G=()=>{if(!Z())return null;const h=[],R=Y();R&&h.push(R);const q=$();return q&&h.push(q),(0,t.h)("div",{class:K.value,style:L.value},h)},T=()=>o.slots?.hide?.()??null;return()=>{const h=[],R=[],q=ne();q&&R.push(q);const J=X();J&&R.push(J);const ae=(0,t.h)("div",{class:F.value},R);h.push(ae);const oe=G();oe&&h.push(oe);const pe=T();return pe&&h.push(pe),(0,t.h)("div",{class:v.value,style:w.value,prop:a.prop},h)}}}}var{componentName:xs,create:Ns,scope:Cs}=se("item"),zs=Ns(ws(xs,Cs,Ee,!1)),Ce=zs,rn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ks(e,n){return{props:{...rn},setup(r,l){const a=ut(),o=vl();yl(!1);const s=(0,t.computed)(()=>o&&a?bl(a,!1).value:null),u=e,i=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),c=(0,t.computed)(()=>{const d={};if(r.width)r.width!=="auto"&&(d.width=ve(r.width));else{const m=o&&a?Sl(a,!1):null;if(s.value&&m)if(s.value.type==="grid"){const v=xl(m,s.value,r.span,r.offset);Object.assign(d,v)}else if(s.value.type==="flow"){const v=wl(m,s.value,r.span,r.offset,r.width);Object.assign(d,v)}else return r.width&&(d.width=ve(r.width)),d}return d});return()=>{const d={class:i.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",d,l.slots.default()):(0,t.h)("div",d)}}}}var{componentName:Es,create:_s,scope:Ts}=se("slot-item"),$s=_s(ks(Es,Ts)),Cl=$s,an={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Bs(e,n){return{props:{...an},setup(r,l){const a=e,o=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),s=ut(),u=vl();yl(!1);const i=(0,t.computed)(()=>{const c={};if(r.width)r.width!=="auto"&&(c.width=ve(r.width));else if(u&&s){const d=bl(s,!1),m=Sl(s,!1);if(d.value&&m)if(d.value.type==="grid"){const v=xl(m,d.value,r.span,r.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=wl(m,d.value,r.span,r.offset,r.width);Object.assign(c,v)}else r.width&&(c.width=ve(r.width))}return r.gutter&&(c.gap=ve(r.gutter)),c});return()=>{const c=[];if(l.slots.default){const d=l.slots.default();if(r.divide)for(let m=0;m<d.length;m++){if(m>0){const v=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});c.push(v)}c.push(d[m])}else Reflect.apply([].push,c,d)}return(0,t.h)("div",{class:o.value,style:i.value},c)}}}}var{componentName:Vs,create:Ms,scope:Is}=se("row-item"),Ls=Ms(Bs(Vs,Is)),zl=Ls;function As(e,n){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const l=r.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const a=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Ps={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},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Fs(e,n,r,l=!1){return{props:{...Ps},emits:["click"],setup(a,o){const s=(0,t.ref)(null),u=(0,t.computed)(()=>{const y={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(y[`${e}--${a.type??"default"}`]=!0),a.size&&(y[`${e}--${a.size}`]=!0),y}),i=(0,t.computed)(()=>{const y={},F=a.textColor??a.color;return F&&(y.color=F),y}),c=(y,F)=>{let P=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const B=a.highlightFilter;y.indexOf(B)!==-1&&(F.innerHTML=y.replace(new RegExp(B,"g"),`<span>${B}</span>`),F.class["is-highlight"]=!0,P=(0,t.h)(a.tag,F))}else if(typeof a.highlightFilter=="function"){const B=a.highlightFilter(y);B&&(F.innerHTML=B,F.class["is-highlight"]=!0,P=(0,t.h)(a.tag,F))}return P},d=y=>{o.emit("click",y)};let m="";const v=()=>{const y=s.value;if(!y)return;const F=y.clientWidth;As(y,P=>{const B=y.innerHTML??"";fe(B)||P<F||(m?r?.show(y,B,{type:"text",id:m,showArrow:a.showArrow},!0):m=r?.show(y,B,{type:"text",showArrow:a.showArrow},!0)??"")})},g=()=>{m&&r?.hide(m)};let w=null;const p=y=>{w||(w=setTimeout(()=>{v(),w=null},a.showAfter??0))},f=y=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{g()},a.hideAfter??0)},C=()=>{const y=s.value;y&&(y.addEventListener("mouseover",p),y.addEventListener("mouseleave",f))},b=()=>{const y=s.value;y&&(y.removeEventListener("mouseover",p),y.removeEventListener("mouseleave",f))};return(0,t.onMounted)(()=>{!ce(a.showOverflowTooltip)||!r||C()}),(0,t.onBeforeUnmount)(()=>{!ce(a.showOverflowTooltip)||!r||b()}),()=>{const y={onClick:d,class:u.value,style:i.value,ref:s};let F=null;if(ce(a.numberFormat)&&typeof o.slots.default=="function"){const B=o.slots.default();if(Array.isArray(B)&&B.length===1){const E=B[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const V=_e(a.digits),S=_e(a.decimalLength),D=ce(a.autoPadding);let z=`${B[0].children}`,A=z.split("").reverse().join("");A=il(A,S,D,V,a.separator),z=A.split("").reverse().join(""),a.highlightFilter!==void 0&&(F=c(z,y)),F||(y.innerHTML=z,F=(0,t.h)(a.tag,y))}}}else{if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const B=o.slots.default();if(Array.isArray(B)&&B.length===1){const E=B[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const V=`${B[0].children}`;F=c(V,y),F||(y.innerHTML=V,F=(0,t.h)(a.tag,y))}}}F||(F=(0,t.h)(a.tag,y,{default:o.slots.default}))}if(!a.mark&&!o.slots.mark)return F;const P=[];if(o.slots.mark){const B={[`${e}__mark-wrap`]:!0};a.type&&(B[`${e}__mark-wrap--${a.type}`]=!0);const E={},V=a.color;V&&(E.color=V);const S=(0,t.h)("view",{onClick:d,class:B,style:E},{default:o.slots.mark});P.push(S)}else{const B={[`${e}__mark`]:!0};a.type&&(B[`${e}__mark--${a.type??"default"}`]=!0);const E={},V=a.color;V&&(E["background-color"]=V);const S=(0,t.h)("view",{onClick:d,class:B,style:E});P.push(S)}if(a.divide){const B=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});P.push(B)}return P.push(F),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},P)}}}}var{componentName:Rs,create:Ds,scope:Os}=se("text"),qs=Ds(Fs(Rs,Os,Ee,!1)),kl=qs,Hs={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function js(e,n,r=!1){return{props:{...Hs},emits:["update:visible"],setup(l,{emit:a,slots:o,expose:s}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),i=(0,t.ref)(0),c=(0,t.ref)(0),d=(0,t.ref)(0),m=(0,t.ref)(0),v=(0,t.ref)(l.placement),g=(0,t.ref)(!1),w=(0,t.ref)(!1),p=(0,t.ref)(null),f=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,C=(I,te,K,L,O,j,_,W=!0)=>{const ee=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,X=I.split("-");let Y=[];W?X[0]==="top"?Y=["top","bottom","right","left"]:X[0]==="bottom"?Y=["bottom","top","right","left"]:X[0]==="left"?Y=["left","top","bottom","right"]:X[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[I[0]];const $={top:null,right:null,bottom:null,left:null},G=[];for(let T=0;T<Y.length;T++){const h=Y[T];if(G[0]=h,X[1]&&(G[1]=X[1]),h==="top"){const R=K-_-l.arrowSize/2-l.offset;if(R>=0){$.top=R;let q=0;X[1]==="start"?q=te:X[1]==="end"?q=te+L-j:q=te+L/2-j/2;const J=ee-q-j;J<0?(q+=J,y.value=-J):y.value=0,$.left=q<0?0:q;break}}else if(h==="bottom"){const R=K+O+l.arrowSize/2+l.offset;if(R+_<=ne){$.top=R;let q=0;X[1]==="start"?q=te:X[1]==="end"?q=te+L-j:q=te+L/2-j/2;const J=ee-q-j;J<0?(q+=J,y.value=-J):y.value=0,$.left=q<0?0:q;break}}else if(h==="left"){const R=te-j-l.arrowSize/2-l.offset;if(R>=0){$.left=R;let q=0;X[1]==="start"?q=K:X[1]==="end"?q=K+O-_:q=K+O/2-_/2,$.top=q<0?0:q;break}}else if(h==="right"){const R=te+L+l.arrowSize/2+l.offset;if(R+j<=ee){$.left=R;let q=0;X[1]==="start"?q=K:X[1]==="end"?q=K+O-_:q=K+O/2-_/2,$.top=q<0?0:q;break}}}return{bestPlacement:G.join("-"),bestInsetRect:$}},b=()=>{const I=l.visible,te=l.autoFit;if(!st||I===!1)return;if(l.reference){const _=f(),W=_n(_);i.value=W.x,c.value=W.y,d.value=_.offsetWidth,m.value=_.offsetHeight}else l.referenceInset&&(i.value=l.referenceInset.left,c.value=l.referenceInset.top,d.value=l.referenceInset.right-l.referenceInset.left,m.value=l.referenceInset.bottom-l.referenceInset.top);const K=p.value.offsetWidth,L=p.value.offsetHeight,{bestPlacement:O,bestInsetRect:j}=C(l.placement,i.value,c.value,d.value,m.value,K,L,te);v.value=O,u.value=j},y=(0,t.ref)(0),F=je(()=>{b()},10),P=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{P.value=I,I?(g.value=I,setTimeout(()=>{b(),w.value=!0},0)):w.value=!1});const B=(0,t.computed)(()=>P.value&&E.value),E=(0,t.ref)(!0),V=je(I=>{const te=I[0];te&&(E.value=te.isIntersecting)},10),S=new IntersectionObserver(V);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,te],[K,L])=>{!I&&!te||(setTimeout(()=>{b()},0),l.autoFit&&(K&&(Lt.unwatch(K,F),S.unobserve(K)),I&&(Lt.watch(I,F),S.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Lt.unwatch(l.reference,F),S.unobserve(l.reference),S.disconnect())});const D=(0,t.computed)(()=>{const I={[e]:!0};return v.value.startsWith("top")?I["is-top"]=!0:v.value.startsWith("right")?I["is-right"]=!0:v.value.startsWith("bottom")?I["is-bottom"]=!0:v.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!w.value&&B.value&&(I["is-opacity"]=!0),w.value&&B.value&&(I["is-show"]=!0),B.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),z=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),A=()=>{P.value=!1,a("update:visible",!1)},Q=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:A}):null,x=()=>{let I=null;return o.title?I=(0,t.h)("div",{class:`${e}__title`},{default:o.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},k=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,v.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-start"?(I.left=`${l.arrowOffset+y.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-end"?(I.right=`${l.arrowOffset-y.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):v.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(I.left=`${l.arrowOffset+y.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(I.right=`${l.arrowOffset-y.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):v.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):v.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),H=()=>(0,t.h)("div",{class:k.value,style:M.value}),U=()=>{P.value===!1&&(g.value=!1)},Z=I=>{if(!p.value||P.value===!1)return;const{relatedTarget:te}=I;p.value.contains(te)||(P.value=!1,a("update:visible",!1))};return s({doLayout:b}),()=>{if(!g.value)return null;const I=[],te=Q();te&&I.push(te);const K=[],L=x();if(L&&K.push(L),o.default){const W=o.default();K.push(W)}const O=H();O&&K.push(O);const j={ref:p,class:D.value,style:z.value,onAnimationend:U};l.leaveHide&&(j.onMouseleave=Z);const _=(0,t.h)("div",j,{default:()=>K});return I.push(_),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:Ks,create:Ws,scope:Ys}=se("popover-dialog"),Us=Ws(js(Ks,Ys,!1)),El=Us,Gs={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function Xs(e,n,r){return{props:{...an,...Gs},emits:["click"],setup(l,{slots:a,attrs:o}){const{toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["moreText"]),i=e,c=(0,t.computed)(()=>({[i]:!0}));function d(B){return B.props||{}}function m(B){return!!d(B).disabled}function v(B){return B.children??[]}const g=(0,t.ref)(),w=(0,t.computed)(()=>g.value?.$el??null),p=(0,t.ref)(!1),f=B=>{p.value=B},C=()=>{p.value=!p.value};function b(B,E){return()=>{E||(p.value=!1,d(B)?.onClick?.())}}function y(B,E){const V=v(B),S=m(B),D=b(B,S),z=[`${i}__dropdown-item`];return S&&z.push("is-disabled"),(0,t.h)("span",{class:z,onClick:D},V)}const F=B=>{const E=l.maxDisplayCount??B.length;if(E>=B.length)return B;const V=[],S=E-1;for(let x=0;x<S;x++)V.push(B[x]);const D=(a.moreIcon&&a.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(r),z=(0,t.h)(kl,{ref:x=>g.value=x,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:C},{default:()=>u.moreText.value,mark:()=>D});V.push(z);const A=[];for(let x=S;x<B.length;x++){const k=y(B[x],x);A.push(k)}const Q=(0,t.h)(El,{placement:l.dropdownPlacement,"onUpdate:visible":f,visible:p.value,reference:w.value,"custom-class":`${i}__popover`},{default:()=>A});return V.push(Q),V},P=()=>(a.default?.()||[]).filter(B=>B.type!==Comment);return()=>{const B=F(P()),E=mt(l,an);return Object.assign(E,o??{}),E.class=c.value,(0,t.h)(zl,E,{default:()=>B})}}}}var{componentName:Zs,create:Js,scope:Qs}=se("buttons-item"),e1=Js(Xs(Zs,Qs,Ve.ArrowDown)),Tn=e1,Ge=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(r=>{typeof r=="string"&&r.indexOf("data-fox")!==0&&(n[r]=e[r])}),n},wr={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function t1(e,n,r){return{props:{...Se,...Te,...wr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=e,p=(0,t.computed)(()=>({[w]:!0,[`${w}__disabled`]:s.value,[`${w}__readonly`]:i.value})),f=k=>{g.value=k,c("update:modelValue",k),c("input",k)},C=k=>{c("change",k)};let b=he(l,"hintText"),y=(0,t.ref)(!1);const F=k=>{let M=k.target.value;v.value=!0,fe(b.value)||(y.value=!0),c("focus",M,k)},P=k=>{setTimeout(()=>{y.value&&(y.value=!1),v.value=!1},0);let M=k.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),c("blur",M,k)},B=()=>{c("clear","")},E=(0,t.ref)(!1);let V=null;const S=()=>{l.showTooltip&&E.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{E.value=!0},150))},D=()=>{V&&(clearTimeout(V),E.value=!1,V=null)},z=(0,t.computed)(()=>E.value||y.value),A=(0,t.computed)(()=>E.value?g.value:b.value),Q=(0,t.computed)(()=>zt(l.unit)>0),x=(0,t.ref)();return Ne({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()},setDisabled:k=>{o.value=k},setReadonly:k=>{u.value=k}}),()=>{const k={...Ge(a.attrs),ref:x,class:p.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:s.value,readonly:i.value,modelValue:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:C,onInput:f,onFocus:F,onBlur:P,onMouseover:S,onMouseleave:D},M={};a.slots.prepend&&(M.prepend=a.slots.prepend),a.slots.append&&(M.append=a.slots.append),a.slots.prefix&&(M.prefix=a.slots.prefix),a.slots.suffix?M.suffix=a.slots.suffix:Q.value&&(M.suffix=()=>[l.unit]);const H=[],U=(0,t.h)(N.ElInput,k,M);H.push(U);const Z={default:()=>H};Z.label=a.slots.default,Z.fixedPreTip=a.slots.fixedPreTip,Z.fixedTip=a.slots.fixedTip;const I={...Pe(l,wr),hintText:A.value,hintVisible:z.value};return l.prop&&(I.prop=`${l.prop}_item`),(0,t.h)(r,I,Z)}}}}var{componentName:l1,create:n1,scope:r1}=se("input-item"),a1=n1(t1(l1,r1,Ce)),$n=a1;function ot(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 eo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function o1(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}var i1=class{proxy;constructor(e){this.proxy=e}async load(e,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const l=He(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await l(n,r))}};function s1(){return new i1((0,t.getCurrentInstance)().proxy)}function to(e,n,r){return!(ot(e,n)!==ot(e,r)||Rt(e,n)!==Rt(e,r))}function lo(e,n,r,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(o=>{for(let s of l){const u=eo(e,s);if(Array.isArray(u)&&u.length>0){const i=lo(e,o,r,u)??[];Reflect.apply([].push,a,i)}else{let i=!1;if(r==="text")i=ot(e,s)===o;else if(r==="item")i=to(e,s,o);else{let c=Rt(e,s);c==null&&(c=ot(e,s)),i=c===o}if(i){a.push(s);break}}}}),a}function u1(e){return{text:e,value:e}}var xr={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function c1(e,n,r){return{props:{...Se,...Te,...xr},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(null),g=(0,t.ref)([]),w=(0,t.computed)(()=>g.value?g.value.map($=>ot(l,$)).join(" "):""),p=($,G,T,h=!0)=>{if(!T||T.length==0){v.value=$,h&&(c("update:modelValue",$),c("change",$));return}const R=lo(l,$,G,T);if(R===null){if(g.value===null||g.value.length===0)return;v.value=null,g.value=[],h&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let q=!0;if(R.length!==g.value.length)q=!1;else for(let J=0;J<R.length;J++){const ae=R[J],oe=g.value[J];if(!to(l,ae,oe)){q=!1;break}}if(!q){g.value=R;let J=[],ae=[],oe=[];R.forEach(Xe=>{const pt=Rt(l,Xe),et=ot(l,Xe);J.push(pt),oe.push(et),l.valueType==="text"?ae.push(et):l.valueType==="item"?ae.push(Xe):ae.push(pt)});let pe,ze,ke;ce(l.multiple)?(v.value=J,pe=(0,t.toRaw)(ae),ze=oe,ke=(0,t.toRaw)(R)):(v.value=J[0]??"",pe=(0,t.toRaw)(ae[0]??""),ze=oe[0]??"",ke=(0,t.toRaw)(R[0])),h&&(c("update:modelValue",pe),c("change",pe,ke)),c("update:text",ze)}},f=(0,t.ref)(null),C=(0,t.ref)(null),b=(0,t.computed)(()=>C.value??f.value??[]),y=Le((0,t.computed)(()=>l.appearLoad),"appearLoad",Ie.Near,$=>ce($)),F=s1(),P=async($,G)=>{if($){const T=await F.load("select",$,G);T.length>0?typeof T[0]=="string"?f.value=T.map(h=>u1(h)):f.value=T:f.value=null}};(0,t.watch)([()=>l.source,()=>l.params],([$,G])=>{C.value=null,P($,G)},{immediate:!y.value});let B=!1;const E=()=>{B||(B=!0,P(l.source,l.params))};(0,t.watch)([()=>f.value,()=>l.modelValue],([$,G])=>{if(z()&&ce(l.multiple)){Je(G,v.value)||(v.value=G);return}p(G,l.valueType,b.value,!1),c("setValue",G)}),l.source||(v.value=l.modelValue);let V=null,S=(0,t.ref)(!1);typeof l.remoteMethod=="function"&&(V=async $=>{if($==null){C.value=null;return}S.value=!0;try{const G=await l.remoteMethod($);G&&(C.value=G)}catch(G){C.value=null,console.error(G)}S.value=!1});let D=null;typeof l.filterMethod=="function"&&(D=async $=>{if($==null){C.value=null;return}S.value=!0;try{const G=await l.filterMethod($,f.value);G&&(C.value=G)}catch(G){C.value=null,console.error(G)}S.value=!1});const z=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",A=(0,t.ref)(!1),Q=e,x=(0,t.computed)(()=>({[Q]:!0})),k=$=>{l.allowCreate||z()&&ce(l.multiple)?(c("update:modelValue",$),c("change",$),c("update:text",$),v.value=$):p($,"value",b.value,!0)};let M=he(l,"hintText"),H=(0,t.ref)(!1);const U=$=>{let G=$.target.value;A.value=!0,fe(M.value)||(H.value=!0),c("focus",G,$)},Z=$=>{setTimeout(()=>{H.value&&(H.value=!1),A.value=!1},0);let G=$.target.value;l.maxLength&&G.length>Number(l.maxLength)&&(G=G.slice(0,Number(l.maxLength))),W.value||c("blur",G,$)},I=()=>{c("clear","")},te=(0,t.ref)(!1);let K=null;const L=()=>{l.showTooltip&&te.value===!1&&(K&&clearTimeout(K),K=setTimeout(()=>{te.value=!0},150))},O=()=>{K&&(clearTimeout(K),te.value=!1,K=null)},j=(0,t.computed)(()=>te.value||H.value),_=(0,t.computed)(()=>te.value?w.value:M.value),W=(0,t.ref)(!1),ee=$=>{W.value=$,c("visible-change",$),$||c("selected")},ne=$=>{c("remove-tag",$)},X=($,G)=>{const T=[];return $.forEach((h,R)=>{const q=eo(l,h);if(Array.isArray(q)&&q.length>0){const J=X(q,G),ae=ot(l,h),oe={key:`${ae}_${R}`,label:ae};T.push((0,t.h)(N.ElOptionGroup,oe,{default:()=>J}))}else{const J=Rt(l,h),ae=ot(l,h),oe=o1(l,h),pe={key:`${J}_${R}`,label:ae,disabled:oe,value:J};if(typeof G=="function")T.push((0,t.h)(N.ElOption,pe,{default:()=>G(h)}));else if(l.optionType==="item"){const ze=(0,t.h)("span",{class:{"fox-select-item__option-left":!0}},[J]),ke=(0,t.h)("span",{class:{"fox-select-item__option-right":!0}},[ae]),Xe=(0,t.h)("div",{class:{"fox-select-item__option":!0}},[ze,ke]);T.push((0,t.h)(N.ElOption,pe,{default:()=>Xe}))}else l.optionType==="value"?T.push((0,t.h)(N.ElOption,pe,{default:()=>[J]})):T.push((0,t.h)(N.ElOption,pe))}}),T},Y=(0,t.ref)();return Ne({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:$=>{o.value=$},setReadonly:$=>{u.value=$}}),()=>{const $={...Ge(a.attrs),ref:Y,class:x.value,clearable:l.clearable,multiple:l.multiple,placeholder:m.placeholder.value,disabled:s.value||i.value,modelValue:v.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:I,onChange:k,onFocus:U,onBlur:Z,onVisibleChange:ee,onRemoveTag:ne};typeof V=="function"&&($["remote-method"]=V,$.loading=S.value),typeof D=="function"&&($["filter-method"]=D,$.loading=S.value);const G={};a.slots.prefix&&(G.prefix=a.slots.prefix),a.slots.empty&&(G.empty=a.slots.empty),a.slots.options?G.default=a.slots.options:G.default=()=>X(b.value,a.slots.option);const T=[],h=(0,t.h)(N.ElSelect,$,G);T.push(h);const R={default:()=>T};R.label=a.slots.default,R.fixedPreTip=a.slots.fixedPreTip,R.fixedTip=a.slots.fixedTip;const q={...Pe(l,xr),hintText:_.value,hintVisible:j.value,onMouseover:L,onMouseleave:O};return l.prop&&(q.prop=`${l.prop}_item`),y.value&&(q["appear-listen"]=!0,q.onAppear=E),(0,t.h)(r,q,R)}}}}var{componentName:d1,create:f1,scope:m1}=se("select-item"),p1=f1(c1(d1,m1,Ce)),Bn=p1,h1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=l()})(e,(function(){"use strict";var r=1e3,l=6e4,a=36e5,o="millisecond",s="second",u="minute",i="hour",c="day",d="week",m="month",v="quarter",g="year",w="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var k=["th","st","nd","rd"],M=x%100;return"["+x+(k[(M-20)%10]||k[M]||k[0])+"]"}},y=function(x,k,M){var H=String(x);return!H||H.length>=k?x:""+Array(k+1-H.length).join(M)+x},F={s:y,z:function(x){var k=-x.utcOffset(),M=Math.abs(k),H=Math.floor(M/60),U=M%60;return(k<=0?"+":"-")+y(H,2,"0")+":"+y(U,2,"0")},m:function x(k,M){if(k.date()<M.date())return-x(M,k);var H=12*(M.year()-k.year())+(M.month()-k.month()),U=k.clone().add(H,m),Z=M-U<0,I=k.clone().add(H+(Z?-1:1),m);return+(-(H+(M-U)/(Z?U-I:I-U))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:m,y:g,w:d,d:c,D:w,h:i,m:u,s,ms:o,Q:v}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},P="en",B={};B[P]=b;var E="$isDayjsObject",V=function(x){return x instanceof A||!(!x||!x[E])},S=function x(k,M,H){var U;if(!k)return P;if(typeof k=="string"){var Z=k.toLowerCase();B[Z]&&(U=Z),M&&(B[Z]=M,U=Z);var I=k.split("-");if(!U&&I.length>1)return x(I[0])}else{var te=k.name;B[te]=k,U=te}return!H&&U&&(P=U),U||!H&&P},D=function(x,k){if(V(x))return x.clone();var M=typeof k=="object"?k:{};return M.date=x,M.args=arguments,new A(M)},z=F;z.l=S,z.i=V,z.w=function(x,k){return D(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var A=(function(){function x(M){this.$L=S(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[E]=!0}var k=x.prototype;return k.parse=function(M){this.$d=(function(H){var U=H.date,Z=H.utc;if(U===null)return new Date(NaN);if(z.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var I=U.match(f);if(I){var te=I[2]-1||0,K=(I[7]||"0").substring(0,3);return Z?new Date(Date.UTC(I[1],te,I[3]||1,I[4]||0,I[5]||0,I[6]||0,K)):new Date(I[1],te,I[3]||1,I[4]||0,I[5]||0,I[6]||0,K)}}return new Date(U)})(M),this.init()},k.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},k.$utils=function(){return z},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(M,H){var U=D(M);return this.startOf(H)<=U&&U<=this.endOf(H)},k.isAfter=function(M,H){return D(M)<this.startOf(H)},k.isBefore=function(M,H){return this.endOf(H)<D(M)},k.$g=function(M,H,U){return z.u(M)?this[H]:this.set(U,M)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(M,H){var U=this,Z=!!z.u(H)||H,I=z.p(M),te=function(ne,X){var Y=z.w(U.$u?Date.UTC(U.$y,X,ne):new Date(U.$y,X,ne),U);return Z?Y:Y.endOf(c)},K=function(ne,X){return z.w(U.toDate()[ne].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(X)),U)},L=this.$W,O=this.$M,j=this.$D,_="set"+(this.$u?"UTC":"");switch(I){case g:return Z?te(1,0):te(31,11);case m:return Z?te(1,O):te(0,O+1);case d:var W=this.$locale().weekStart||0,ee=(L<W?L+7:L)-W;return te(Z?j-ee:j+(6-ee),O);case c:case w:return K(_+"Hours",0);case i:return K(_+"Minutes",1);case u:return K(_+"Seconds",2);case s:return K(_+"Milliseconds",3);default:return this.clone()}},k.endOf=function(M){return this.startOf(M,!1)},k.$set=function(M,H){var U,Z=z.p(M),I="set"+(this.$u?"UTC":""),te=(U={},U[c]=I+"Date",U[w]=I+"Date",U[m]=I+"Month",U[g]=I+"FullYear",U[i]=I+"Hours",U[u]=I+"Minutes",U[s]=I+"Seconds",U[o]=I+"Milliseconds",U)[Z],K=Z===c?this.$D+(H-this.$W):H;if(Z===m||Z===g){var L=this.clone().set(w,1);L.$d[te](K),L.init(),this.$d=L.set(w,Math.min(this.$D,L.daysInMonth())).$d}else te&&this.$d[te](K);return this.init(),this},k.set=function(M,H){return this.clone().$set(M,H)},k.get=function(M){return this[z.p(M)]()},k.add=function(M,H){var U,Z=this;M=Number(M);var I=z.p(H),te=function(O){var j=D(Z);return z.w(j.date(j.date()+Math.round(O*M)),Z)};if(I===m)return this.set(m,this.$M+M);if(I===g)return this.set(g,this.$y+M);if(I===c)return te(1);if(I===d)return te(7);var K=(U={},U[u]=l,U[i]=a,U[s]=r,U)[I]||1,L=this.$d.getTime()+M*K;return z.w(L,this)},k.subtract=function(M,H){return this.add(-1*M,H)},k.format=function(M){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||p;var Z=M||"YYYY-MM-DDTHH:mm:ssZ",I=z.z(this),te=this.$H,K=this.$m,L=this.$M,O=U.weekdays,j=U.months,_=U.meridiem,W=function(X,Y,$,G){return X&&(X[Y]||X(H,Z))||$[Y].slice(0,G)},ee=function(X){return z.s(te%12||12,X,"0")},ne=_||function(X,Y,$){var G=X<12?"AM":"PM";return $?G.toLowerCase():G};return Z.replace(C,(function(X,Y){return Y||(function($){switch($){case"YY":return String(H.$y).slice(-2);case"YYYY":return z.s(H.$y,4,"0");case"M":return L+1;case"MM":return z.s(L+1,2,"0");case"MMM":return W(U.monthsShort,L,j,3);case"MMMM":return W(j,L);case"D":return H.$D;case"DD":return z.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return W(U.weekdaysMin,H.$W,O,2);case"ddd":return W(U.weekdaysShort,H.$W,O,3);case"dddd":return O[H.$W];case"H":return String(te);case"HH":return z.s(te,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ne(te,K,!0);case"A":return ne(te,K,!1);case"m":return String(K);case"mm":return z.s(K,2,"0");case"s":return String(H.$s);case"ss":return z.s(H.$s,2,"0");case"SSS":return z.s(H.$ms,3,"0");case"Z":return I}return null})(X)||I.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(M,H,U){var Z,I=this,te=z.p(H),K=D(M),L=(K.utcOffset()-this.utcOffset())*l,O=this-K,j=function(){return z.m(I,K)};switch(te){case g:Z=j()/12;break;case m:Z=j();break;case v:Z=j()/3;break;case d:Z=(O-L)/6048e5;break;case c:Z=(O-L)/864e5;break;case i:Z=O/a;break;case u:Z=O/l;break;case s:Z=O/r;break;default:Z=O}return U?Z:z.a(Z)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return B[this.$L]},k.locale=function(M,H){if(!M)return this.$L;var U=this.clone(),Z=S(M,H,!0);return Z&&(U.$L=Z),U},k.clone=function(){return z.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()},x})(),Q=A.prototype;return D.prototype=Q,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",c],["$M",m],["$y",g],["$D",w]].forEach((function(x){Q[x[1]]=function(k){return this.$g(k,x[0],x[1])}})),D.extend=function(x,k){return x.$i||(x(k,A,D),x.$i=!0),D},D.locale=S,D.isDayjs=V,D.unix=function(x){return D(1e3*x)},D.en=B[P],D.Ls=B,D.p={},D}))})),g1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var r={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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},c=function(f){return(f=+f)+(f>68?1900:2e3)},d=function(f){return function(C){this[f]=+C}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var b=C.match(/([+-]|\d\d)/g),y=60*b[1]+(+b[2]||0);return y===0?0:b[0]==="+"?-y:y})(f)}],v=function(f){var C=i[f];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(f,C){var b,y=i.meridiem;if(y){for(var F=1;F<=24;F+=1)if(f.indexOf(y(F,0,C))>-1){b=F>12;break}}else b=f===(C?"pm":"PM");return b},w={A:[u,function(f){this.afternoon=g(f,!1)}],a:[u,function(f){this.afternoon=g(f,!0)}],Q:[a,function(f){this.month=3*(f-1)+1}],S:[a,function(f){this.milliseconds=100*+f}],SS:[o,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[u,function(f){var C=i.ordinal;if(this.day=f.match(/\d+/)[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===f&&(this.day=b)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[u,function(f){var C=v("months"),b=(v("monthsShort")||C.map((function(y){return y.slice(0,3)}))).indexOf(f)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[u,function(f){var C=v("months").indexOf(f)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(f){this.year=c(f)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function p(f){for(var C=f,b=i&&i.formats,y=(f=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,z,A){var Q=A&&A.toUpperCase();return z||b[A]||r[A]||b[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,k,M){return k||M.slice(1)}))}))).match(l),F=y.length,P=0;P<F;P+=1){var B=y[P],E=w[B],V=E&&E[0],S=E&&E[1];y[P]=S?{regex:V,parser:S}:B.replace(/^\[|\]$/g,"")}return function(D){for(var z={},A=0,Q=0;A<F;A+=1){var x=y[A];if(typeof x=="string")Q+=x.length;else{var k=x.regex,M=x.parser,H=D.slice(Q),U=k.exec(H)[0];M.call(z,U),D=D.replace(U,"")}}return(function(Z){var I=Z.afternoon;if(I!==void 0){var te=Z.hours;I?te<12&&(Z.hours+=12):te===12&&(Z.hours=0),delete Z.afternoon}})(z),z}}return function(f,C,b){b.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(c=f.parseTwoDigitYear);var y=C.prototype,F=y.parse;y.parse=function(P){var B=P.date,E=P.utc,V=P.args;this.$u=E;var S=V[1];if(typeof S=="string"){var D=V[2]===!0,z=V[3]===!0,A=D||z,Q=V[2];z&&(Q=V[2]),i=this.$locale(),!D&&Q&&(i=b.Ls[Q]),this.$d=(function(H,U,Z,I){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*H);var te=p(U)(H),K=te.year,L=te.month,O=te.day,j=te.hours,_=te.minutes,W=te.seconds,ee=te.milliseconds,ne=te.zone,X=te.week,Y=new Date,$=O||(K||L?1:Y.getDate()),G=K||Y.getFullYear(),T=0;K&&!L||(T=L>0?L-1:Y.getMonth());var h,R=j||0,q=_||0,J=W||0,ae=ee||0;return ne?new Date(Date.UTC(G,T,$,R,q,J,ae+60*ne.offset*1e3)):Z?new Date(Date.UTC(G,T,$,R,q,J,ae)):(h=new Date(G,T,$,R,q,J,ae),X&&(h=I(h).week(X).toDate()),h)}catch{return new Date("")}})(B,S,E,b),this.init(),Q&&Q!==!0&&(this.$L=this.locale(Q).$L),A&&B!=this.format(S)&&(this.$d=new Date("")),i={}}else if(S instanceof Array)for(var x=S.length,k=1;k<=x;k+=1){V[1]=S[k-1];var M=b.apply(this,V);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}k===x&&(this.$d=new Date(""))}else F.call(this,P)}}}))})),v1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(r,l){var a=l.prototype,o=a.format;a.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}}));return o.bind(this)(d)}}}))})),y1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(r,l,a){var o=l.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,g,w,p){var f=m.name?m:m.$locale(),C=s(f[v]),b=s(f[g]),y=C||b.map((function(P){return P.slice(0,w)}));if(!p)return y;var F=f.weekStart;return y.map((function(P,B){return y[(B+(F||0))%7]}))},i=function(){return a.Ls[a.locale()]},c=function(m,v){return m.formats[v]||(function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,p,f){return p||f.slice(1)}))})(m.formats[v.toUpperCase()])},d=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},a.localeData=function(){var m=i();return{firstDayOfWeek:function(){return m.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(v){return c(m,v)},meridiem:m.meridiem,ordinal:m.ordinal}},a.months=function(){return u(i(),"months")},a.monthsShort=function(){return u(i(),"monthsShort","months",3)},a.weekdays=function(m){return u(i(),"weekdays",null,null,m)},a.weekdaysShort=function(m){return u(i(),"weekdaysShort","weekdays",3,m)},a.weekdaysMin=function(m){return u(i(),"weekdaysMin","weekdays",2,m)}}}))})),b1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var r="week",l="year";return function(a,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(l).add(1,l).date(c),m=s(this).endOf(r);if(d.isBefore(m))return 1}var v=s(this).startOf(l).date(c).startOf(r).subtract(1,"millisecond"),g=this.diff(v,r,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),S1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(r,l){l.prototype.weekYear=function(){var a=this.month(),o=this.week(),s=this.year();return o===1&&a===11?s+1:a===0&&o>=52?s-1:s}}}))})),w1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(r,l,a){l.prototype.dayOfYear=function(o){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}}))})),x1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(r,l){l.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}}))})),N1=lt(((e,n)=>{(function(r,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(r,l){l.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}}))})),Qe=nt(h1(),1),C1=nt(g1(),1),z1=nt(v1(),1),k1=nt(y1(),1),E1=nt(b1(),1),_1=nt(S1(),1),T1=nt(w1(),1),$1=nt(x1(),1),B1=nt(N1(),1);Qe.default.extend(k1.default);Qe.default.extend(z1.default);Qe.default.extend(C1.default);Qe.default.extend(E1.default);Qe.default.extend(_1.default);Qe.default.extend(T1.default);Qe.default.extend($1.default);Qe.default.extend(B1.default);var Ke={format(e,n="YYYY-MM-DD"){return(0,Qe.default)(e).format(n)},parser(e,n){return(0,Qe.default)(e,n).toDate()},getDay(e,n,r){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),r=r??"YYYY-MM-DD",this.format(l,r)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,r){let l=new Date(e+"/"+n+"/"+r).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){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,r){const l=typeof e=="string"?this.parser(e,r):e,a=typeof n=="string"?this.parser(n,r):n,o=l.getTime(),s=a.getTime();return o==s?0:o>s?1:-1},between(e,n,r,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+r)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+r)):a=new Date(new Date(n).setDate(n.getDate()+r));const o=e.getTime(),s=a.getTime(),u=n.getTime();return s>u?o>=u&&o<=s:o>=s&&o<=u},inScope4Day(e,n,r){return this.between(e,n,r,"day")},inScope4Month(e,n,r){return this.between(e,n,r,"month")},inScope4Year(e,n,r){return this.between(e,n,r,"year")}},Nr={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"}},Cr={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 V1(e,n,r){return{props:{...Se,...Te,...Nr,...Cr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=(0,t.computed)(()=>H.value&&Array.isArray(g.value)&&g.value.length==2?g.value[0]:g.value),p=(0,t.computed)(()=>H.value?"longTermKey":"normalKey"),f=Y=>{if(H.value&&l.type==="daterange"){const $=[...g.value];$[0]=Y,g.value=$}else g.value=Y;c("update:modelValue",g.value),c("change",g.value)},C=(0,t.computed)(()=>H.value&&l.type==="daterange"?"date":l.type),b=e,y=(0,t.computed)(()=>({[`${b}`]:!0,"is-long":H.value,"is-readonly":i.value,"is-disabled":s.value}));let F=he(l,"hintText"),P=(0,t.ref)(!1);const B=Y=>{let $=Y.target.value;v.value=!0,fe(F.value)||(P.value=!0),c("focus",$,Y)},E=Y=>{setTimeout(()=>{P.value&&(P.value=!1),v.value=!1},0);let $=Y.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),c("blur",$,Y)},V=()=>{c("clear","")},S=Y=>{c("calendar-change",Y)},D=(Y,$,G)=>{c("panel-change",Y,$,G)},z=Y=>{c("visible-change",Y)},A=Le((0,t.computed)(()=>l.longTermText),"longTermText",Ie.Near),Q=Le((0,t.computed)(()=>l.longTermActionLabel),"longTermActionLabel",Ie.Near),x=Le((0,t.computed)(()=>l.longTermValue),"longTermValue",Ie.Near),k=Le((0,t.computed)(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Ie.Near);let M=null;const H=(0,t.ref)(ce(l.longTerm)),U=Y=>{if(H.value=Y,c("update:longTerm",Y),Y){if(M=g.value,l.type==="daterange"){const $=[];Array.isArray(x.value)?($[0]=g.value?g.value[0]??x.value[0]:null,$[1]=x.value[1]??x.value[0]):($[0]=g.value?g.value[0]??x.value:null,$[1]=H.value),$[0]||($[0]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),$[1]||($[1]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),g.value=$}else Array.isArray(x.value)?g.value=x.value[1]??x.value[0]:g.value=x.value,g.value||(g.value=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date);c("update:modelValue",g.value)}else{if(l.type==="daterange"){const $=[];$[0]=Array.isArray(g.value)?g.value[0]:g.value,Array.isArray(M)?$[1]=M[1]:$[1]=M,$[0]||($[0]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),$[1]||($[1]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),g.value=$}else g.value=M;c("update:modelValue",g.value),setTimeout(()=>{ne()},100)}},Z=ce(l.isLongTerm);if(Z){const Y=()=>{if(H.value===!0){if(M=g.value,l.type==="daterange"){const $=[g.value[0]];Array.isArray(x.value)?$[1]=x.value[1]??x.value[0]:$[1]=H.value,$[0]||($[0]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),$[1]||($[1]=l.valueFormat?Ke.format(new Date,l.valueFormat):new Date),g.value=$}else g.value=x.value;c("update:modelValue",g.value)}else Je(x.value,g.value)&&(H.value=!0)};Y(),(0,t.watch)([()=>l.longTerm],([$])=>{H.value!==$&&Y()}),(0,t.watch)([()=>g.value],([$])=>{let G=!1;if(l.type==="daterange"&&Array.isArray($))try{let T=$[1];if(!T)return;if($[0]==null){c("update:modelValue",[]);return}typeof T!="string"&&l.valueFormat&&(T=Ke.format(T,l.valueFormat));let h=Array.isArray(x.value)?x.value[1]:x.value;(T===h||Array.isArray(k.value)&&k.value.findIndex(R=>T==R)!==-1)&&(G=!0)}catch(T){console.error(T)}H.value!==G&&(H.value=G)},{immediate:!0})}const I=(0,t.computed)(()=>({"fox-date-item__long":!0,"is-active":v.value})),te=(0,t.ref)(),K=(0,t.ref)(),L=/^\d+$/,O=(Y,$)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(Y,$):L.test(Y)&&Y.length===l.flashFillThreshold,j=(Y,$)=>{let G;if(typeof l.flashFillFormat=="function")G=l.flashFillFormat(Y,$);else{const h=l.flashFillFormat??"YYYYMMDD";G=Ke.parser(Y,h)}const T=l.valueFormat??"YYYY-MM-DD";return Ke.format(G,T)},_=Y=>Y?Y.endsWith("range"):!1,W=Y=>{if(!Y.target)return;const $=Y.target.value??"";if(O($,l.type)){const G=j($,l.type);if(_(l.type)){const T=Array.isArray(g.value)?[...g.value]:[];T[0]=G,f(T)}else f(G)}},ee=Y=>{if(!Y.target)return;const $=Y.target.value??"";if(O($,l.type)){const G=j($,l.type);if(_(l.type)){const T=Array.isArray(g.value)?[...g.value]:[];T[1]=G,f(T)}else f(G)}},ne=()=>{if(l.flashFill&&te.value&&te.value.$el)if(_(l.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",W),Y[1]&&Y[1].addEventListener("input",ee)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",W)}},X=()=>{if(l.flashFill&&te.value&&te.value.$el)if(_(l.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",W),Y[1]&&Y[1].removeEventListener("input",ee)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",W)}};return(0,t.onMounted)(ne),(0,t.onBeforeUnmount)(X),Ne({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},handleOpen:()=>{K?.value.handleOpen()},handleClose:()=>{K?.value.handleClose()},setDisabled:Y=>{o.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const Y={...a.attrs,key:p.value,type:C.value,ref:K,class:y.value,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,modelValue:w.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":f,onClear:V,onFocus:B,onBlur:E,onCalendarChange:S,onPanelChange:D,onVisibleChange:z},$={};a.slots["range-separator"]&&($["range-separator"]=a.slots["range-separator"]),a.slots.cell&&($.default=a.slots.cell);const G=[],T=(0,t.h)(N.ElDatePicker,Y,$);G.push(T);const h={default:()=>G};if(h.label=a.slots.default,h.fixedPreTip=a.slots.fixedPreTip,h.fixedTip=a.slots.fixedTip,Z){if(H.value){const q=(0,t.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),J=(0,t.h)("input",{class:["fox-date-item__long-text"],value:A.value,readonly:!0}),ae=(0,t.h)("div",{class:I.value},{default:()=>[q,J]});G.push(ae)}if(!i.value&&!s.value){const q=(0,t.h)(N.ElCheckbox,{label:Q.value||A.value,disabled:i.value||s.value,modelValue:H.value,"onUpdate:modelValue":U}),J=(0,t.h)("div",{class:{[`${b}__append`]:!0}},[q]);h.append=()=>J}}const R={...Pe(l,Nr,Cr),ref:te,class:{[`${b}__wrapper`]:!0,"has-append":Z},hintText:F.value,hintVisible:P.value};return l.prop&&(R.prop=`${l.prop}_item`),(0,t.h)(r,R,h)}}}}var{componentName:M1,create:I1,scope:L1}=se("date-item"),A1=I1(V1(M1,L1,Ce)),Vn=A1,zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function P1(e,n,r){return{props:{...Se,...Te,...zr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=e,p=(0,t.computed)(()=>({[w]:!0})),f=V=>{g.value=V,c("update:modelValue",V),c("change",V)};let C=he(l,"hintText"),b=(0,t.ref)(!1);const y=V=>{let S=V.target.value;v.value=!0,fe(C.value)||(b.value=!0),c("focus",S,V)},F=V=>{setTimeout(()=>{b.value&&(b.value=!1),v.value=!1},0);let S=V.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),c("blur",S,V)},P=()=>{c("clear","")},B=V=>{c("visible-change",V)},E=(0,t.ref)();return Ne({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:V=>{o.value=V},setReadonly:V=>{u.value=V}}),()=>{const V={...a.attrs,ref:E,class:p.value,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,modelValue:g.value,"onUpdate:modelValue":f,onClear:P,onFocus:y,onBlur:F,onVisibleChange:B},S={},D=[],z=(0,t.h)(N.ElTimePicker,V,S);D.push(z);const A={default:()=>D};A.label=a.slots.default,A.fixedPreTip=a.slots.fixedPreTip,A.fixedTip=a.slots.fixedTip;const Q={...Pe(l,zr),hintText:C.value,hintVisible:b.value};return l.prop&&(Q.prop=`${l.prop}_item`),(0,t.h)(r,Q,A)}}}}var{componentName:F1,create:R1,scope:D1}=se("time-item"),O1=R1(P1(F1,D1,Ce)),Mn=O1,kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function q1(e,n,r){return{props:{...Se,...Te,...kr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=e,p=(0,t.computed)(()=>({[w]:!0})),f=E=>{g.value=E,c("update:modelValue",E),c("change",E)};let C=he(l,"hintText"),b=(0,t.ref)(!1);const y=E=>{let V=E.target.value;v.value=!0,fe(C.value)||(b.value=!0),c("focus",V,E)},F=E=>{setTimeout(()=>{b.value&&(b.value=!1),v.value=!1},0);let V=E.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),c("blur",V,E)},P=()=>{c("clear","")},B=(0,t.ref)();return Ne({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:E=>{o.value=E},setReadonly:E=>{u.value=E}}),()=>{const E={...a.attrs,ref:B,class:p.value,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,modelValue:g.value,"onUpdate:modelValue":f,onClear:P,onFocus:y,onBlur:F},V={},S=[],D=(0,t.h)(N.ElTimeSelect,E,V);S.push(D);const z={default:()=>S};z.label=a.slots.default,z.fixedPreTip=a.slots.fixedPreTip,z.fixedTip=a.slots.fixedTip;const A={...Pe(l,kr),hintText:C.value,hintVisible:b.value};return l.prop&&(A.prop=`${l.prop}_item`),(0,t.h)(r,A,z)}}}}var{componentName:H1,create:j1,scope:K1}=se("time-select-item"),W1=j1(q1(H1,K1,Ce)),In=W1;function Er(e,n=0){let r=`${e}`,l=r.indexOf(".");if(l==-1)return r;let a=l;for(let o=r.length-1;o>=l;o--)if(r.charAt(o)!="0"){a=o;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function _r(e,n,r=20){return typeof n=="string"&&(n=_e(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Er(ha(`${e}`,`${n}`)):Er(fn(`${e}`,ga(`${n}`),20))}function Y1(e,n=-1,r=!1,l=3,a=","){return il(e,n,r,l,a)}function Tr(e,n,r,l,a=!0){if(e==="")return"";if(e=va(e),n=_e(n),n==1)return e;if(l)e=_r(e,n),r&&(e=="0"&&a?e=`${e}.`.padEnd(_e(r)+2,"0"):e=fn(e,1,_e(r)));else{let o=-1*n;e=_r(e,o)}return e}function $r(e,n){let r={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),a=Zl(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(r.message="请输入不小于 {0} 的数值".replace("{0}",n.min),r.minValid=!1)}if(n.max!=null){let l=ce(n.maxInclude),a=Zl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(r.maxValid=!1)}return r}var Br={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},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function U1(e,n,r){return{props:{...Se,...Te,...Br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),d=(0,t.ref)(!1),m=he(l,"modelValue",null,c),v=(0,t.ref)("");(0,t.watch)([()=>m.value,()=>l.rates,()=>l.precision],([k,M,H])=>{if(fe(k)){v.value="";return}const U=Tr(k,M,H,!1);v.value!==U&&(v.value=U)},{immediate:!0});const g=(0,t.computed)(()=>{let k="";return d.value&&(k=v.value),k}),{t:w}=(0,Ae.useFoxI18n)(n),p=(0,t.computed)(()=>{let k=l.placeholder??"";return!d.value&&!fe(v.value)?k=Y1(v.value,l.decimalLength,l.autoPadding,l.digits,l.separator):k=w(["placeholder",k]),k}),f=e,C=(0,t.computed)(()=>({[f]:!0,[`${f}__disabled`]:s.value,[`${f}__placeholder`]:v.value.length>0})),b=Le((0,t.computed)(()=>l.textAlign),"textAlign");(0,t.computed)(()=>d.value?{textAlign:"left"}:{textAlign:b.value??"right"});const y=(0,t.ref)(""),F=(0,t.computed)(()=>{let k=y.value;return fe(k)&&(k=l.errorTip??""),k}),P=(0,t.ref)(""),B=(0,t.ref)(!1),E=(k,M)=>{if(k=`${k}`,fe(k)){v.value="",m.value="",M.forEach(H=>{c(H,"")}),ce(l.showTip)&&B.value&&(B.value=!1);return}if(k.length>=2){let H=k;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){(0,t.triggerRef)(v);return}}if(k!="-"){if(!hn(k)){(0,t.triggerRef)(v);return}if(l.integerLength!=-1&&ka(k)>Number(l.integerLength)){(0,t.triggerRef)(v);return}if(l.decimalLength&&l.decimalLength!=-1&&Ea(k)>Number(l.decimalLength)){(0,t.triggerRef)(v);return}let H=$r(k,l);if(H.maxValid===!1){y.value=H.message,(0,t.triggerRef)(v);return}}else if(l.min!=null&&_e(l.min)>=0){(0,t.triggerRef)(v);return}P.value=k,ce(l.showTip)&&(B.value=k.length>0),v.value=k,m.value=Tr(k,l.rates,l.precision,!0),M.forEach(H=>{c(H,m.value)})},V=k=>{E(k,["update:modelValue","input"])},S=k=>{E(k,["update:modelValue","change"])},D=k=>{if(d.value=!0,ce(l.showTip)){let M=v.value;fe(M)&&(M=l.hintText),fe(M)||(P.value=M,B.value=!0)}y.value="",c("focus",m.value,k)},z=k=>{if(setTimeout(()=>{d.value=!1,ce(l.showTip)&&B.value===!0&&(B.value=!1)},0),!fe(v.value)){let M=$r(v.value,l);if(M.minValid===!1||M.maxValid===!1){y.value=M.message;return}}c("update:modelValue",m.value,k),c("blur",m.value,k)},A=()=>{c("clear","")},Q=(0,t.computed)(()=>zt(l.unit)>0),x=(0,t.ref)();return Ne({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()},setDisabled:k=>{o.value=k},setReadonly:k=>{u.value=k}}),()=>{const k={...Ge(a.attrs),ref:x,class:C.value,type:"digit",maxlength:l.maxLength,placeholder:p.value,clearable:l.clearable,disabled:s.value,readonly:i.value,modelValue:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:A,onInput:V,onChange:S,onFocus:D,onBlur:z},M={};a.slots.prepend&&(M.prepend=a.slots.prepend),a.slots.append&&(M.append=a.slots.append),a.slots.prefix&&(M.prefix=a.slots.prefix),a.slots.suffix?M.suffix=a.slots.suffix:Q.value&&(M.suffix=()=>[l.unit]);const H=[],U=(0,t.h)(N.ElInput,k,M);H.push(U);const Z={default:()=>H};Z.label=a.slots.default,Z.fixedPreTip=a.slots.fixedPreTip,Z.fixedTip=a.slots.fixedTip;const I={...Pe(l,Br),errorTip:F.value,hintText:P.value,hintVisible:B.value,hintType:"number"};return l.prop&&(I.prop=`${l.prop}_item`),(0,t.h)(r,I,Z)}}}}var{componentName:G1,create:X1,scope:Z1}=se("money-item"),J1=X1(U1(G1,Z1,Ce)),Ln=J1,Vr={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 Q1(e,n,r){return{props:{...Se,...Te,...Vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=e,p=(0,t.computed)(()=>({[w]:!0,[`${w}__append`]:V.value})),f=(0,t.computed)(()=>({[`${w}__unit`]:!0})),C=D=>{g.value=D,c("update:modelValue",D),c("input",D)},b=D=>{c("change",D)};let y=he(l,"hintText"),F=(0,t.ref)(!1);const P=D=>{let z=D.target.value;v.value=!0,fe(y.value)||(F.value=!0),c("focus",z,D)},B=D=>{setTimeout(()=>{F.value&&(F.value=!1),v.value=!1},0);let z=D.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),c("blur",z,D)},E=()=>{c("clear","")},V=(0,t.computed)(()=>zt(l.unit)>0),S=(0,t.ref)();return Ne({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},setDisabled:D=>{o.value=D},setReadonly:D=>{u.value=D}}),()=>{const D={...Ge(a.attrs),ref:S,class:p.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:s.value,readonly:i.value,modelValue:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:E,onChange:b,onInput:C,onFocus:P,onBlur:B},z={},A=[],Q=(0,t.h)(N.ElInputNumber,D,z);A.push(Q);const x={default:()=>A};x.label=a.slots.default,x.fixedPreTip=a.slots.fixedPreTip,x.fixedTip=a.slots.fixedTip;const k={...Pe(l,Vr),hintText:y.value,hintVisible:F.value};if(l.prop&&(k.prop=`${l.prop}_item`),a.slots.append)x.append=a.slots.append;else if(V.value){const M=(0,t.h)("div",{class:f.value},[l.unit]);x.append=()=>M}return(0,t.h)(r,k,x)}}}}var{componentName:eu,create:tu,scope:lu}=se("input-number-item"),nu=tu(Q1(eu,lu,Ce)),An=nu;function tt(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 ru(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}var au=class{proxy;constructor(e){this.proxy=e}async load(e,n,r,l){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r,l);const a=He(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await a(n,r,l))}};function ou(){return new au((0,t.getCurrentInstance)().proxy)}function on(e,n,r){return!(tt(e,n)!==tt(e,r)||ft(e,n)!==ft(e,r))}function no(e,n,r,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];let o=l;for(let s=0;Array.isArray(o)&&s<n.length;s++){const u=n[s];if(Array.isArray(u)){const i=no(e,u,r,l);a.push(i)}else{let i=!1;for(let c of o){if(r==="text")i=tt(e,c)===u;else if(r==="item")i=on(e,c,u);else{let d=ft(e,c);d==null&&(d=tt(e,c)),i=d===u}if(i){a.push(c),o=ru(e,c);break}}if(!i)break}}return a}function iu(e){return{text:e,value:e}}var Mr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function su(e,n,r){return{props:{...Se,...Te,...Mr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(null),g=(0,t.ref)([]),w=(0,t.computed)(()=>g.value?g.value.map(X=>Array.isArray(X)?X.map(Y=>tt(l,Y)).join(" "):tt(l,X)).join(" "):""),p=(X,Y,$,G=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(v.value===X)return;v.value=X;const q=(0,t.toRaw)(X);if(G){const J=ne?.value.getCheckedNodes();if(J)if(l.multiple){const ae=[];J.forEach(oe=>{const pe=(oe.pathNodes??[]).map(ze=>ze.data);ae.push(pe)}),c("update:pathNodes",ae)}else c("update:pathNodes",(J[0]?.pathNodes??[]).map(ae=>ae.data));c("update:modelValue",q),c("change",q)}return}const T=no(l,X,Y,$);if(T===null){if(g.value.length===0||g.value===null)return;g.value=[],v.value=null,G&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const h=T[T.length-1];if(A.value.checkStrictly!==!0&&h&&!Array.isArray(h)&&Array.isArray(h.children)&&h.children.length>0){const q=[];T.forEach(J=>{const ae=`${tt(l,J)}`;q.push(ae)}),q.length>0&&(D.value=q.join(l.separator))}else D.value=null;let R=!0;if(T.length!==g.value.length)R=!1;else for(let q=0;q<T.length;q++){const J=T[q],ae=g.value[q];if(Array.isArray(J)){if(!Array.isArray(ae)||J.length!==ae.length)R=!1;else for(let oe=0;oe<J.length;oe++)if(!on(l,J[oe],ae[oe])){R=!1;break}}else on(l,J,ae)||(R=!1);if(!R)break}if(!R){g.value=T;let q=[],J=[];T.forEach(oe=>{if(Array.isArray(oe)){let pe=[],ze=[];for(let ke of oe)pe.push(ft(l,ke)),l.valueType==="text"?ze.push(tt(l,ke)):l.valueType==="item"?ze.push(ke):ze.push(ft(l,ke));q.push(pe),J.push(ze)}else q.push(ft(l,oe)),l.valueType==="text"?J.push(tt(l,oe)):l.valueType==="item"?J.push(oe):J.push(ft(l,oe))}),v.value=q;const ae=(0,t.toRaw)(J);G&&(c("update:pathNodes",T),c("update:modelValue",ae),c("change",ae))}},f=(0,t.ref)([]),C=Le((0,t.computed)(()=>l.appearLoad),"appearLoad",Ie.Near,X=>ce(X)),b=ou(),y=async(X,Y)=>{if(X){const $=await b.load("cascader",X,Y);$.length>0&&(typeof $[0]=="string"?f.value=$.map(G=>iu(G)):f.value=$)}};(0,t.watch)([()=>l.source,()=>l.params],async([X,Y])=>{y(X,Y)},{immediate:!(C.value||l.lazy)});let F=!1;const P=()=>{F||(F=!0,y(l.source,l.params))};(0,t.watch)([()=>f.value,()=>l.modelValue],([X,Y])=>{p(Y,l.valueType,X,!1),c("setValue",Y)}),l.lazy&&p(l.modelValue,"value",[],!1);let B=null,E=(0,t.ref)(!1);typeof l.remoteMethod=="function"&&(B=async X=>{if(X!=null){E.value=!0;try{f.value=await l.remoteMethod(X)}catch(Y){console.error(Y)}E.value=!1}});const V=(0,t.ref)(!1),S=e,D=(0,t.ref)(null),z=(0,t.computed)(()=>({[S]:!0,"is-incomplete":D.value&&D.value.length>0})),A=(0,t.computed)(()=>{let X={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(X.multiple=!0),l.props&&Object.assign(X,l.props),l.lazy&&(X.lazy=!0,typeof l.lazyLoad=="function"?X.lazyLoad=l.lazyLoad:X.lazyLoad=async(Y,$)=>{let G={};l.params&&Object.assign(G,l.params),Y&&Object.assign(G,Y);const T=await b.load("cascader",l.source,G,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===Y.level){const h=Y.pathLabels??[];let R=[];h.forEach(q=>{q&&R.push(q)}),R.length>0&&(D.value=R.join(l.separator))}else D.value=null;$(T)}),X}),Q=X=>{l.allowCreate?(c("update:modelValue",X),c("change",X),v.value=X):p(X,"value",f.value,!0)};let x=he(l,"hintText"),k=(0,t.ref)(!1);const M=X=>{let Y=X.target.value;V.value=!0,fe(x.value)||(k.value=!0),c("focus",Y,X)},H=X=>{setTimeout(()=>{k.value&&(k.value=!1),V.value=!1},0);let Y=X.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),j.value||c("blur",Y,X)},U=()=>{c("clear","")},Z=(0,t.ref)(!1);let I=null;const te=()=>{l.showTooltip&&Z.value===!1&&(I&&clearTimeout(I),I=setTimeout(()=>{Z.value=!0},150))},K=()=>{I&&(clearTimeout(I),Z.value=!1,I=null)},L=(0,t.computed)(()=>Z.value||k.value),O=(0,t.computed)(()=>Z.value?w.value:x.value),j=(0,t.ref)(!1),_=X=>{j.value=X,c("visible-change",X),X||c("selected")},W=X=>{c("remove-tag",X)},ee=X=>{c("expand-change",X)},ne=(0,t.ref)();return Ne({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:X=>{o.value=X},setReadonly:X=>{u.value=X}}),()=>{const X={...a.attrs,ref:ne,class:z.value,props:A.value,clearable:l.clearable,placeholder:D.value||m.placeholder.value,disabled:s.value||i.value,options:f.value,modelValue:v.value,separator:l.separator,onClear:U,onChange:Q,onFocus:M,onBlur:H,onVisibleChange:_,onRemoveTag:W,expandChange:ee};typeof B=="function"&&(X["remote-method"]=B,X.loading=E.value);const Y={};a.slots.option&&(Y.default=a.slots.option),a.slots.empty&&(Y.empty=a.slots.empty);const $=[],G=(0,t.h)(N.ElCascader,X,Y);$.push(G);const T={default:()=>$};T.label=a.slots.default,T.fixedPreTip=a.slots.fixedPreTip,T.fixedTip=a.slots.fixedTip;const h={...Pe(l,Mr),hintText:O.value,hintVisible:L.value,onMouseover:te,onMouseleave:K};return l.prop&&(h.prop=`${l.prop}_item`),C.value&&!l.lazy&&(h["appear-listen"]=!0,h.onAppear=P),(0,t.h)(r,h,T)}}}}var{componentName:uu,create:cu,scope:du}=se("cascader-item"),fu=cu(su(uu,du,Ce)),Pn=fu,Ir={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function mu(e,n,r){return{props:{...Se,...Te,...Ir},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),{toLocaleRefs:d}=(0,Ae.useFoxI18n)(n),m=d(l,["placeholder"]),v=(0,t.ref)(!1),g=he(l,"modelValue",null,c),w=e,p=(0,t.computed)(()=>({[w]:!0})),f=S=>{g.value=S,c("update:modelValue",S),c("input",S)},C=S=>{c("change",S)},b=S=>{c("select",S)};let y=he(l,"hintText"),F=(0,t.ref)(!1);const P=S=>{let D=S.target.value;v.value=!0,fe(y.value)||(F.value=!0),c("focus",D,S)},B=S=>{setTimeout(()=>{F.value&&(F.value=!1),v.value=!1},0);let D=S.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),c("blur",D,S)},E=()=>{c("clear","")},V=(0,t.ref)();return Ne({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()},setDisabled:S=>{o.value=S},setReadonly:S=>{u.value=S}}),()=>{const S={...a.attrs,ref:V,class:p.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:s.value,readonly:i.value,modelValue:g.value,onClear:E,onChange:C,onInput:f,onFocus:P,onBlur:B,onSelect:b},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 z=[],A=(0,t.h)(N.ElAutocomplete,S,D);z.push(A);const Q={default:()=>z};Q.label=a.slots.default,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const x={...Pe(l,Ir),hintText:y.value,hintVisible:F.value};return l.prop&&(x.prop=`${l.prop}_item`),(0,t.h)(r,x,Q)}}}}var{componentName:pu,create:hu,scope:gu}=se("autocomplete-item"),vu=hu(mu(pu,gu,Ce)),Fn=vu;function yu(e,n,r,l,a){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let i=n;for(let c=0;i&&c<o.length;c++){let d=o[c],m=i.find(v=>v[l]===d);if(!m)break;s.push(m[r])}return s}if(Array.isArray(u))for(let i=0;i<n.length&&i<o.length;i++){let c=n[i],d=o[i];const m=c.find(v=>v[l]===d);if(!m)break;s.push(m[r])}else{let i=n;for(let c=0;i&&c<o.length;c++){let d=o[c],m=i.find(v=>v[l]===d);if(!m)break;s.push(m[r]),i=m[a]}}return s}var bu=class{proxy;constructor(e){this.proxy=e}async load(e,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const l=He(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await l(n,r))}};function Su(){return new bu((0,t.getCurrentInstance)().proxy)}var ro={tag:{type:[String,Object],required:!1,default:"span"},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}};function wu(e,n){return{props:{...ro},setup(r,{attrs:l,slots:a}){const o=Su(),s=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([i,c])=>{s.value=await o.load(r.sourceType,i,c)},{immediate:!0});const u=(0,t.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return r.emptyText;let i=yu(r.modelValue,s.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?r.emptyText??"":i.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${i[0]}`:i[0]:i.join(r.separator)});return()=>{const i={...l};if(a.default)return a.default({text:u.value,value:r.modelValue});const c=r.tag??"span";return typeof c=="object"?(0,t.h)(c,i,{default:()=>u.value}):(0,t.h)(c,i,[u.value])}}}}var{componentName:xu,create:Nu,scope:Cu}=se("mapping"),zu=Nu(wu(xu,Cu)),Dt=zu;function ku(e,n){let r=n.split("."),l=e;for(let a=0;a<r.length;a++){let o=r[a],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=o.substring(u+1,i);if(/^\d+$/.test(c)){let d=parseInt(c);if(s==0){let m=o.substring(0,u);l=l[m][d]}else l=l[d];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(l=l[o])}return l}function Eu(e,n){return{props:{...ro},setup(r,{attrs:l,slots:a}){return()=>{const o={default:s=>{const u=ku(s.row,s.column.property);return a.default?(0,t.h)(Dt,{...r,modelValue:u},{default:a.default}):(0,t.h)(Dt,{...r,modelValue:u})}};for(let s in a)s!=="default"&&(o[s]=a[s]);return(0,t.h)(N.ElTableColumn,{...l},o)}}}}var{componentName:_u,create:Tu,scope:$u}=se("table-mapping-column"),Bu=Tu(Eu(_u,$u)),Rn=Bu,Vu=Symbol.for("TableStateKey");function Lr(e,n){let r=n.split("."),l=e;for(let a=0;a<r.length;a++){let o=r[a],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=o.substring(u+1,i);if(/^\d+$/.test(c)){let d=parseInt(c);if(s==0){let m=o.substring(0,u);l=l[m][d]}else l=l[d];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(l=l[o])}return l}function Mu(e,n){return{props:{prop:{type:[String],require:!1}},setup(r,{attrs:l}){const a=(0,t.inject)(Vu,{});let o=null;return()=>{const s={default:u=>{const i=a.currentRow?a.currentRow.value:null;u.$index!==-1&&(o=u.row);const c=u.$index!==-1?u.row:o;let d=!1;if(c){const v=r.prop??u.column.property;v?d=Lr(c,v)===(i?Lr(i,v):null):d=Je(c,i)}const m=(0,t.h)("span",{class:{"el-radio__input":!0,"is-checked":d}},[(0,t.h)("span",{class:{"el-radio__inner":!0}})]);return(0,t.h)("label",{class:{"el-radio":!0,"is-checked":d}},[m])}};return(0,t.h)(N.ElTableColumn,{...l},s)}}}}var{componentName:Iu,create:Lu,scope:Au}=se("table-radio-column"),Pu=Lu(Mu(Iu,Au)),Dn=Pu,Fu={},Ru={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Du(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",Ru,[...n[0]||(n[0]=[(0,t.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var Ou=Ue(Fu,[["render",Du]]),{componentName:m5,create:qu,scope:p5}=se("table-setting"),Hu={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:"不固定"}},ju=qu({components:{FoxPopover:N.ElPopover,FoxCheckbox:N.ElCheckbox,FoxCheckboxGroup:N.ElCheckboxGroup,FoxButton:N.ElButton,FoxIcon:N.ElIcon,DragIcon:Ou,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...Hu},setup(e,{emit:n,attrs:r}){let l=[];const a=(0,t.ref)([]),o=(0,t.computed)(()=>a.value.filter(_=>_.label===""||_.type?!1:_.fixed===""||_.fixed===!0||_.fixed==="left")),s=(0,t.computed)(()=>a.value.filter(_=>_.label===""||_.type?!1:_.fixed==="right")),u=(0,t.computed)(()=>a.value.filter(_=>!(_.label===""||_.type||_.fixed!==void 0))),i=(0,t.computed)(()=>(o.value.length>0||s.value.length>0)&&u.value.length>0),c=(0,t.computed)(()=>o.value.length>0),d=(0,t.computed)(()=>s.value.length>0),m=_=>_.length>1,v=(_,W)=>{Array.isArray(_)&&Array.isArray(W)&&_.forEach(ne=>{W.some(X=>X.prop===ne.prop?(ne.label=X.label,!0):!1)});const ee=[];a.value=_.map((ne,X)=>(!(ne.label===""||ne.type)&&ne.visible!==!1&&ee.push(ne.prop),{...ne,sortIndex:X})),u.value.length+o.value.length+s.value.length===ee.length?b.value=!0:ee.length>0&&(y.value=!0),B.value=ee},g=_=>_?_.type?_.type:_.label?_.prop:"":"",w=(_,W)=>{if(_.length!==W.length)return!1;const ee=_.map(ne=>g(ne));for(let ne of W){const X=g(ne);if(ee.indexOf(X)===-1)return!1}return!0},p=_=>{if(!_){const W=e.tableRef.getColumnSetting(),ee=W.srcColumnPropertyList;l=ee.map((ne,X)=>({...ne,sortIndex:X})),_=W.columnPropertyList,_&&_.length>0&&w(ee,_)||(_=ee)}v(_,l)},f=()=>{e.tableRef.setColumnSetting(a.value)},C=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),b=(0,t.ref)(!1),y=(0,t.ref)(!1),F=_=>{const W=[];a.value.forEach(ee=>{_&&!(ee.label===""||ee.type)&&W.push(ee.prop),ee.visible=_}),b.value=!1,y.value=!1,u.value.length+o.value.length+s.value.length===W.length?b.value=!0:W.length>0&&(y.value=!0),B.value=W,f()},P=()=>{p(l),f()},B=(0,t.ref)([]),E=_=>{a.value.forEach(ee=>{ee.label===""||ee.type||(ee.visible=_.indexOf(ee.prop)!==-1)}),b.value=!1,y.value=!1;const W=u.value.length+o.value.length+s.value.length;_.length===W?b.value=!0:_.length>0&&(y.value=!0),f()},V=()=>{p()};(0,t.onMounted)(()=>{setTimeout(()=>{p()},50)});const S={currentRow:null,index:null,roleType:null},D=_=>_?_.dataset&&_.dataset.role==="row"?_:_.tagName.toLowerCase()!=="body"?(_=_.parentElement,D(_)):null:null,z=_=>{const W=_.currentTarget;W&&W.dataset&&(S.roleType=W.dataset.roleType,S.index=W.dataset.index)},A=_=>{S.currentRow&&(S.currentRow.classList.remove("is-dragover"),S.currentRow=null),S.index=null,S.roleType=null},Q=_=>{const W=_.currentTarget;_.relatedTarget;const ee=D(W);if(!ee)return;const ne=ee.dataset&&ee.dataset.roleType;S.roleType===ne&&(_.preventDefault(),S.currentRow&&S.currentRow!==ee&&S.currentRow.classList.remove("is-dragover"),ee.classList.add("is-dragover"),S.currentRow=ee)},x=_=>{_.preventDefault(),S.currentRow&&(S.currentRow.classList.remove("is-dragover"),S.currentRow=null)},k=_=>{const W=_.currentTarget,ee=D(W);if(!ee)return;const ne=ee.dataset&&ee.dataset.roleType;if(S.roleType!==ne)return;_.preventDefault();const X=Number(S.index),Y=Number(ee.dataset.index);if(X!==Y){if(X<Y){const $=a.value[X];a.value.splice(X,1),a.value.splice(Y,0,$)}else{const $=a.value[X];a.value.splice(X,1),a.value.splice(Y+1,0,$)}v(a.value,l),f()}},M=_=>{const W=a.value[_];W.fixed="left",f()},H=_=>{const W=a.value[_];W.fixed="right",f()},U=_=>{const W=a.value[_];W.fixed=void 0,f()},Z=new Map;let I=null;function te(_){const W=document.createRange();return W.setStart(_,0),W.setEnd(_,_.childNodes.length),W.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:b,isIndeterminate:y,handleCheckAllChange:F,handleReset:P,checkedValue:B,handleCheckChange:E,onShow:V,onDragStart:z,onDragEnd:A,onDragOver:Q,onDragLeave:x,onDrop:k,toLeftFixed:M,toRightFixed:H,toUnFixed:U,checkboxLabelStyle:C,onMouseOverForOverflowText:(_,W,ee)=>{const ne=_.currentTarget;if(ne){const X=Math.floor(ne.offsetWidth);if(Math.floor(te(ne))>X){let Y=Z.get(W);if(Y){if(Y===I)return;Ee.hide(Y)}Y=Ee.show(ne,ee,{type:"text",placement:"top",closeOnClick:!1}),Y&&(Z.set(W,Y),I=Y)}}},onMouseLeaveForOverflowText:(_,W)=>{const ee=Z.get(W);ee&&(Ee.hide(ee),ee===I&&(I=null))},onMouseOverForTip:(_,W)=>{const ee=_.currentTarget;ee&&(I&&Ee.hide(I),I=Ee.show(ee,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:_=>{I&&(Ee.hide(I),I=null)}}}}),Ku={class:"fox-table-setting"},Wu={class:"fox-table-setting__header"},Yu={class:"fox-table-setting__body"},Uu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Gu={key:0,class:"fox-table-setting__body-title"},Xu=["data-index","draggable"],Zu=["onMouseover","onMouseleave"],Ju={class:"tools-item"},Qu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},e0={key:0,class:"fox-table-setting__body-title"},t0=["data-index","draggable"],l0=["onMouseover","onMouseleave"],n0={class:"tools-item"},r0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},a0={key:0,class:"fox-table-setting__body-title"},o0=["data-index","draggable"],i0=["onMouseover","onMouseleave"],s0={class:"tools-item"};function u0(e,n,r,l,a,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),c=(0,t.resolveComponent)("RefreshLeft"),d=(0,t.resolveComponent)("FoxIcon"),m=(0,t.resolveComponent)("Download"),v=(0,t.resolveComponent)("fox-checkbox"),g=(0,t.resolveComponent)("FoxCheckboxGroup"),w=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(w,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",Ku,[(0,t.createElementVNode)("div",Wu,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",Yu,[(0,t.createVNode)(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[e.leftFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",Uu,[e.isShowLeftFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",Gu,(0,t.toDisplayString)(e.leftFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.leftFixedColumns,p=>((0,t.openBlock)(),(0,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]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:n[6]||(n[6]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:n[7]||(n[7]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:n[8]||(n[8]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:n[9]||(n[9]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.leftFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:p.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,p.prop,p.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,p.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(p.label),45,Zu)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",Ju,[(0,t.createVNode)(d,{onClick:f=>e.toUnFixed(p.sortIndex),onMouseover:n[1]||(n[1]=f=>e.onMouseOverForTip(f,e.unFixedText)),onMouseleave:n[2]||(n[2]=f=>e.onMouseLeaveForTip(f))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(c)]),_:1},8,["onClick"]),(0,t.createVNode)(d,{onClick:f=>e.toRightFixed(p.sortIndex),onMouseover:n[3]||(n[3]=f=>e.onMouseOverForTip(f,e.fixedRightText)),onMouseleave:n[4]||(n[4]=f=>e.onMouseLeaveForTip(f))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m)]),_:1},8,["onClick"])])],40,Xu))),128))])):(0,t.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",Qu,[e.isShowNotFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",e0,(0,t.toDisplayString)(e.unFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.unFixedColumns,p=>((0,t.openBlock)(),(0,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]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:n[15]||(n[15]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:n[16]||(n[16]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:n[17]||(n[17]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:n[18]||(n[18]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.unFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",value:p.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,p.prop,p.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,p.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(p.label),45,l0)]),_:2},1032,["value"]),(0,t.createElementVNode)("div",n0,[(0,t.createVNode)(d,{onClick:f=>e.toLeftFixed(p.sortIndex),onMouseover:n[10]||(n[10]=f=>e.onMouseOverForTip(f,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=f=>e.onMouseLeaveForTip(f)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m)]),_:1},8,["onClick"]),(0,t.createVNode)(d,{onClick:f=>e.toRightFixed(p.sortIndex),onMouseover:n[12]||(n[12]=f=>e.onMouseOverForTip(f,e.fixedRightText)),onMouseleave:n[13]||(n[13]=f=>e.onMouseLeaveForTip(f))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m)]),_:1},8,["onClick"])])],40,t0))),128))])):(0,t.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("div",r0,[e.isShowRightFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("div",a0,(0,t.toDisplayString)(e.rightFixedTitle),1)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.rightFixedColumns,p=>((0,t.openBlock)(),(0,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]=(...f)=>e.onDragStart&&e.onDragStart(...f)),onDragend:n[24]||(n[24]=(...f)=>e.onDragEnd&&e.onDragEnd(...f)),onDrop:n[25]||(n[25]=(...f)=>e.onDrop&&e.onDrop(...f)),onDragover:n[26]||(n[26]=(...f)=>e.onDragOver&&e.onDragOver(...f)),onDragleave:n[27]||(n[27]=(...f)=>e.onDragLeave&&e.onDragLeave(...f))},[e.isDraggble(e.rightFixedColumns)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(v,{class:"checkbox-item",label:p.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:f=>e.onMouseOverForOverflowText(f,p.prop,p.label),onMouseleave:f=>e.onMouseLeaveForOverflowText(f,p.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(p.label),45,i0)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",s0,[(0,t.createVNode)(d,{onClick:f=>e.toUnFixed(p.sortIndex),onMouseover:n[19]||(n[19]=f=>e.onMouseOverForTip(f,e.unFixedText)),onMouseleave:n[20]||(n[20]=f=>e.onMouseLeaveForTip(f))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(c)]),_:1},8,["onClick"]),(0,t.createVNode)(d,{onClick:f=>e.toLeftFixed(p.sortIndex),onMouseover:n[21]||(n[21]=f=>e.onMouseOverForTip(f,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=f=>e.onMouseLeaveForTip(f)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m)]),_:1},8,["onClick"])])],40,o0))),128))])):(0,t.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var _l=Ue(ju,[["render",u0]]),c0=class{proxy;constructor(e){this.proxy=e}async load(e,n,r,l,a,o,s){if(Array.isArray(n)){let i=(r-1)*l,c=i+l;c>n.length&&(c=n.length);const d=n.slice(i,c);return{totalSize:n.length,page:d}}if(typeof n=="function")return await Reflect.apply(n,null,[r,l,a,o,s]);const u=He(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(u,null,[n,r,l,a,o,s]))}};function d0(){return new c0((0,t.getCurrentInstance)().proxy)}var f0=class{proxy;constructor(e){this.proxy=e}async load(e){let n=null;const r=He(this.proxy,"tableSetting");return typeof r=="function"&&(n=await Reflect.apply(r,null,["load",e])),n}save(e,n){const r=He(this.proxy,"tableSetting");typeof r=="function"&&Reflect.apply(r,null,["save",e,n])}remove(e){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["remove",e])}};function ao(){return new f0((0,t.getCurrentInstance)().proxy)}var m0=Symbol.for("TableStateKey"),Ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},Pr={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},Ol={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:()=>"不固定"}},p0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function h0(e,n){let r=n.split("."),l=e;for(let a=0;a<r.length;a++){let o=r[a],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let c=o.substring(u+1,i);if(/^\d+$/.test(c)){let d=parseInt(c);if(s==0){let m=o.substring(0,u);l=l[m][d]}else l=l[d];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(l=l[o])}return l}function ql(e,n){return e.filter(r=>{for(let l in n)if(n[l]!==h0(r,l))return!1;return!0})}function g0(e,n,r){return{props:{...Se,...Te,...Ar,...Pr,...Ol,...p0},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:o,toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["loadText","noMoreText"]),{emitEvent:i,broadcast:c}=$e({componentName:e,validateHandler:{getValue(...le){return S.value}}},l.prop??a.attrs.name),d=e,m=(0,t.computed)(()=>({[d]:!0})),v=(0,t.computed)(()=>({[`${d}__setting`]:!0})),g=(0,t.computed)(()=>({[`${d}__footer`]:!0,[`${d}__footer__${l.footerAlign}`]:!0})),w=(0,t.computed)(()=>({[`${d}__pagination`]:!0,[`${d}__pagination__${l.paginationAlign}`]:!0})),p=(0,t.shallowRef)({}),f=(0,t.computed)(()=>({...p.value,...l.params??{},...l.baseParams??{}})),C=(0,t.ref)(l.infiniteLoad===!0?0:l.pageIndex),b=(0,t.ref)(l.pageSize),y=ce(l.infiniteLoad);y||((0,t.watch)(()=>l.pageIndex,le=>{C.value=le}),(0,t.watch)(()=>l.pageSize,le=>{b.value=le}),(0,t.watch)([C,b],([le,re],[ie,ue])=>{re!==ue&&(C.value=1,le=1),Q(l.data,le,re,f.value)}));const F=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);F()&&(0,t.watch)([()=>l.data,f],async([le,re],[ie,ue])=>{F()&&(le!==ie&&(z=!0),!(!Array.isArray(le)&&Je(le,ie)&&Je(re,ue))&&(y?(C.value=0,E.value=!0,S.value=[],k()):C.value===1?Q(le,C.value,b.value,re):C.value=1))},{deep:!0});const P=le=>{C.value=le,i("page-index-change",le)},B=le=>{b.value=le,i("page-size-change",le)},E=(0,t.ref)(!0),V=(0,t.ref)(0),S=(0,t.ref)(),D=d0();let z=!0;const A=Le((0,t.computed)(()=>l.appearLoad),"appearLoad",Ie.Near,le=>ce(le)),Q=async(le,re,ie,ue,Be)=>{try{if(Be===!0){if(!E.value)return!1;const ge=await D.load("table",le,re,ie,ue,z,o.value);return V.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,S.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(S.value?.length??0)>=V.value)||ge.page.length<ie?(E.value=!1,!1):!0}else{const ge=await D.load("table",le,re,ie,ue,z,o.value);return V.value=ge.totalSize,S.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),V.value=0,S.value=[]}finally{z=!1}return!1};let x=!1;const k=async()=>{if(!x){if(x=!0,!E.value){x=!1;return}C.value+=1,await Q(l.data,C.value,b.value,f.value,!0),x=!1}},M=(le={},re=!1)=>new Promise(async ie=>{p.value={...(0,t.toRaw)(le??{})},re||(C.value=l.pageIndex??1),y===!0?(C.value=0,S.value=[],E.value=!0,await k()):await Q(l.data,C.value,b.value,f.value),ie()}),H=()=>{V.value=0,S.value=[],y===!0&&(C.value=0,E.value=!0)};let U=!1;const Z=()=>{U||(U=!0,M())},I=(0,t.ref)(null);if(y===!0){let le=null;const re=()=>{I.value&&(le=new IntersectionObserver(ue=>{let Be=!1;for(let ge of ue)if(ge.intersectionRatio>0){Be=!0;break}Be&&k()}),le.observe(I.value))},ie=()=>{!le||!I.value||(le.unobserve(I.value),le=null)};(0,t.onMounted)(re),(0,t.onBeforeUnmount)(ie)}F()&&!A.value&&M();const te=(0,t.ref)(null);(0,t.provide)(m0,{currentRow:te});const K=(le,re)=>{te.value=le,i("current-change",le,re)},L=(le,re,ie)=>{i("row-click",le,re,ie),ce(l.rowClickSelectable)===!0&&we?.value.toggleRowSelection(le)},O=[],j=(le,re)=>{if(i("expand-change",le,re),ce(l.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ie=O.length;O.splice(0,ie)}else{O.forEach(ue=>{ue!==le&&we?.value.toggleRowExpansion(ue,!1)});const ie=O.length;O.splice(0,ie,le)}},_=a.attrs.id??l.prop??a.attrs.name,W=ao(),ee=(0,t.ref)([]);let ne=[];const X=()=>({srcColumnPropertyList:ne.map(le=>({...le})),columnPropertyList:ee.value}),Y=le=>{ee.value=[...le],G()},$=async()=>{const le=await W.load(_);le&&(ee.value=le)},G=()=>{W.save(_,ee.value)},T=()=>{W.remove(_)};$();const h=le=>le?le.type?le.type:le.label?le.prop:"":"",R=(le,re={})=>{for(let ie in re){const ue=re[ie];typeof ue!="function"&&(le[ie]=ue)}},q=le=>{const re=le?le():[],ie=new Map;if(ne=[],re.forEach(ue=>{const Be=ue;if(!Be.props)return;const ge=h(Be.props);ie.set(ge,Be);const ye={label:"",prop:""};R(ye,Be.props),ne.push(ye)}),ee.value.length===ne.length){const ue=[];for(let Be of ee.value){const ge=h(Be),ye=ie.get(ge);if(!ye)return re;if(Be.visible===!1)continue;const rt=ye;rt.props.fixed=Be.fixed,ue.push(rt)}return ue}return re},J=(0,t.shallowRef)(new Map),ae=({row:le,column:re,rowIndex:ie,columnIndex:ue})=>{const Be=`${ie}_${re.property}`,ge=`${ie}_${ue}`;let ye=J.value.get(Be);return ye||(ye=J.value.get(ge)),typeof ye=="string"?ye:""},oe=le=>le?re=>{const ie=[];let ue=ae(re);return ue&&ie.push(ue),ue=ue=typeof le=="function"?le(re):le,ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:ae,pe=(le=!1)=>{J.value.forEach((re,ie)=>{ze(ie,re,le)})},ze=(le,re,ie=!1)=>{const ue=`${le}_item`;ie?(c.clearPersistantMessage(),Array.isArray(re)?c.emitToChildren({name:le},"setCellClassNames",[]):c.emitToChildren({name:ue},"setCustomClassName","")):Array.isArray(re)?c.emitToChildren({name:le,cachePolicy:"Persistant",uniqueId:ue},"setCellClassNames",re):c.emitToChildren({name:ue,cachePolicy:"Persistant",uniqueId:ue},"setCustomClassName",re)},ke=(le,re,ie)=>{const ue=`${le}_${re}`;ie?(J.value.set(ue,ie),ze(ue,ie)):(J.value.delete(ue),ze(ue,"",!0)),(0,t.triggerRef)(J)},Xe=le=>{pe(!0),J.value.clear(),le.forEach(re=>{const ie=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?J.value.set(ie,re.children):typeof re.cellClassName=="string"&&J.value.set(ie,re.cellClassName)}),pe(),(0,t.triggerRef)(J)},pt=()=>{pe(),J.value.clear(),(0,t.triggerRef)(J)},et=(0,t.shallowRef)(new Map),pr=({rowIndex:le})=>{const re=`${le}`;return et.value.get(re)??""},bo=le=>le?re=>{const ie=[];let ue=pr(re);return ue&&ie.push(ue),ue=typeof le=="function"?le(re):le,ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:pr,So=(le,re)=>{const ie=`${le}`;re?et.value.set(ie,re):et.value.delete(ie),(0,t.triggerRef)(et)},wo=()=>{et.value.clear(),(0,t.triggerRef)(et)},we=(0,t.ref)();return Ne({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(le,re)=>{we?.value.toggleRowSelection(le,re)},toggleRowSelectionByProp:(le,re)=>{if(!S.value)return;const ie=ql(S.value,le);ie.length!==0&&ie.forEach(ue=>{we?.value.toggleRowSelection(ue,re)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(le,re)=>{we?.value.toggleRowExpansion(le,re)},toggleRowExpansionByProp:(le,re)=>{if(!S.value)return;const ie=ql(S.value,le);ie.length!==0&&ie.forEach(ue=>{we?.value.toggleRowExpansion(ue,re)})},setCurrentRow:le=>{we?.value.setCurrentRow(le)},setCurrentRowByProp:le=>{if(!S.value)return;const re=ql(S.value,le);re.length!==0&&we?.value.setCurrentRow(re[0])},getCurrentRow:()=>te.value,clearSort:()=>{we?.value.clearSort()},clearFilter:le=>{we?.value.clearFilter(le)},doLayout:()=>{we?.value.doLayout()},sort:(le,re)=>{we?.value.sort(le,re)},scrollTo:(le,re)=>{we?.value.scrollTo(le,re)},setScrollTop:le=>{we?.value.setScrollTop(le)},setScrollLeft:le=>{we?.value.setScrollLeft(le)},loadData:M,clearData:H,getData(){return S.value},getTotalSize(){return V.value},getPageIndex(){return C.value},getPageSize(){return b.value},getColumnSetting:X,setColumnSetting:Y,removeColumnSetting:T,setCellClassName:ke,setCellClassNames:Xe,clearCellClassName:pt,setRowClassName:So,clearRowClassName:wo}),()=>{const le={...Ge(a.attrs),onCurrentChange:K,onRowClick:L,onExpandChange:j,data:S.value,ref:we,class:m.value,"cell-class-name":oe(l.cellClassName),"row-class-name":bo(l.rowClassName)},re={};if(a.slots.default&&(re.default=()=>q(a.slots.default)),a.slots.append&&(re.append=a.slots.append),a.slots.empty&&(re.empty=a.slots.empty),y===!0){const ye=[];if(E.value){const Et=(0,t.h)(Ve.Loading,{class:`${d}__infinite-icon`});ye.push(Et);const Il=(0,t.h)("span",{class:`${d}__infinite-text`},[u.loadText.value]);ye.push(Il)}else{const Et=(0,t.h)("span",{class:`${d}__infinite-text`},[u.noMoreText.value]);ye.push(Et)}const rt=(0,t.h)("div",{ref:I,class:`${d}__infinite`},ye);re.append=()=>rt}const ie=(0,t.h)(N.ElTable,le,re),ue=[];if(ue.push(ie),!y){let ye=null;if(typeof a.slots.pagination=="function"?ye=a.slots.pagination():l.showPagination&&(ye=(0,t.h)(N.ElPagination,{class:w.value,total:V.value,pageSize:b.value,"onUpdate:pageSize":B,pageSizes:l.pageSizes,currentPage:C.value,"onUpdate:currentPage":P,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,size:l.paginationSize,background:l.paginationBackground,appendSizeTo:l.paginationAppendSizeTo,teleported:l.paginationTeleported,popperClass:l.paginationPopperClass,prevText:l.paginationpPrevText,prevIcos:l.paginationPrevIcon,nextText:l.paginationNextText,pnextIcon:l.paginationNextIcon,disabled:l.paginationDisabled})),l.showSetting){const rt=[];ye&&rt.push(ye);const Et=(0,t.h)(N.ElIcon,{class:v.value},{default:()=>(0,t.h)(Ve.Setting)}),Il=(0,t.h)(_l,{...mt(l,Ol),tableRef:{getColumnSetting:X,setColumnSetting:Y,removeColumnSetting:T}},{default:()=>Et});rt.push(Il);const xo=(0,t.h)("div",{class:g.value},rt);ue.push(xo)}else ye&&ue.push(ye)}const Be={default:()=>ue},ge={...Pe(l,Ar,Pr,Ol)};return l.prop&&(ge.prop=`${l.prop}_item`),ge.contentClass=`${d}__wrap`,ge.errorMarkClass="is-table-error",A.value&&F()&&(ge["appear-listen"]=!0,ge.onAppear=Z),(0,t.h)(r,ge,Be)}}}}var{componentName:v0,create:y0,scope:b0}=se("table-item"),S0=y0(g0(v0,b0,Ce)),On=S0;function Nt(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 w0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}var x0=class{proxy;constructor(e){this.proxy=e}async load(e,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const l=He(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await l(n,r))}};function N0(){return new x0((0,t.getCurrentInstance)().proxy)}function oo(e,n,r){return n===r?!0:!(n===null||r===null||Nt(e,n)!==Nt(e,r)||Ot(e,n)!==Ot(e,r))}function C0(e,n,r,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let o of l){let s=!1;if(r==="text")s=Nt(e,o)===n;else if(r==="item")s=oo(e,o,n);else{let u=Ot(e,o);u==null&&(u=Nt(e,o)),s=u===n}if(s){a=o;break}}return a}function z0(e){return{text:e,value:e}}function k0(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}var Fr={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 E0(e,n,r){return{inheritAttrs:!0,props:{...Se,...Te,...Fr},emits:["change","update:modelValue","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),d=(0,t.ref)(null),m=(0,t.ref)(null),v=(S,D,z,A=!0)=>{const Q=C0(l,S,D,z);if(Q===null){if(m.value===null)return;m.value=null,d.value=null,A&&(c("update:modelValue",null),c("change",null));return}if(!oo(l,Q,m.value)){d.value=S;const x=(0,t.toRaw)(Q);m.value=x;let k=null;l.valueType==="text"?k=Nt(l,x):l.valueType==="item"?k=x:k=Ot(l,x),A&&(c("update:modelValue",k),c("change",k))}},g=(0,t.ref)([]),w=Le((0,t.computed)(()=>l.appearLoad),"appearLoad",Ie.Near,S=>ce(S)),p=N0(),f=async(S,D)=>{if(S){const z=await p.load("radio",S,D);z.length>0&&(typeof z[0]=="string"?g.value=z.map(A=>z0(A)):g.value=z)}};(0,t.watch)([()=>l.source,()=>l.params],async([S,D])=>{f(S,D)},{immediate:!w.value});let C=!1;const b=()=>{C||(C=!0,f(l.source,l.params))};(0,t.watch)([()=>g.value,()=>l.modelValue],([S,D])=>{v(D,l.valueType,S,!1),c("setValue",D)});const y=e,F=(0,t.computed)(()=>({[y]:!0,[`is-${l.direction}`]:!0})),P=S=>{v(S,"value",g.value,!0)};let B=he(l,"hintText"),E=he(l,"hintVisible");const V=(S,D)=>{const z=[];return S.forEach((A,Q)=>{const x=Ot(l,A),k=Nt(l,A);let M=w0(l,A);s.value===!0&&(M=s.value),i.value===!0&&(M=i.value);const H=k0(l,A,Q)??{},U=`${x}_${Q}`,Z={...H,key:U,value:x,size:l.size,border:ce(l.border)};M&&(Z.disabled=M),l.itemType==="button"?z.push((0,t.h)(N.ElRadioButton,Z,{default:()=>[k]})):typeof D=="function"?z.push((0,t.h)(N.ElRadio,Z,{default:()=>D(A)})):z.push((0,t.h)(N.ElRadio,Z,{default:()=>[k]}))}),z};return Ne({setDisabled:S=>{o.value=S},setReadonly:S=>{u.value=S}}),()=>{const S={...Ge(a.attrs),class:F.value,disabled:s.value||i.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:P},D=[],z={};a.slots.options?z.default=a.slots.options:z.default=()=>V(g.value,a.slots.text);const A=(0,t.h)(N.ElRadioGroup,S,z);D.push(A);const Q={default:()=>D};Q.label=a.slots.default,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const x={...Pe(l,Fr),hintText:B.value,hintVisible:E.value};return l.prop&&(x.prop=`${l.prop}_item`),w.value&&(x["appear-listen"]=!0,x.onAppear=b),(0,t.h)(r,x,Q)}}}}var{componentName:_0,create:T0,scope:$0}=se("radio-item"),B0=T0(E0(_0,$0,Ce)),qn=B0;function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function St(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function V0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}var M0=class{proxy;constructor(e){this.proxy=e}async load(e,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const l=He(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await l(n,r))}};function I0(){return new M0((0,t.getCurrentInstance)().proxy)}function io(e,n,r){return n===r?!0:!(n===null||r===null||Ct(e,n)!==Ct(e,r)||St(e,n)!==St(e,r))}function L0(e,n,r,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(o=>{for(let s of l){let u=!1;if(r==="text")u=Ct(e,s)===o;else if(r==="item")u=io(e,s,o);else{let i=St(e,s);i==null&&(i=Ct(e,s)),u=i===o}if(u){a.push(s);break}}}),a}function A0(e){return{text:e,value:e}}function P0(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}var Rr={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 F0(e,n,r){return{inheritAttrs:!0,props:{...Se,...Te,...Rr},emits:["change","update:modelValue","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),d=(0,t.ref)([]),m=(0,t.ref)([]),v=(S,D,z,A=!0)=>{const Q=L0(l,S,D,z);if(Q===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],A&&(c("update:modelValue",[]),c("change",[]));return}let x=!0;if(Q.length!==m.value.length)x=!1;else for(let k=0;k<Q.length;k++){const M=Q[k],H=m.value[k];if(!io(l,M,H)){x=!1;break}}if(!x){m.value=Q;let k=[],M=[];Q.forEach(U=>{k.push(St(l,U)),l.valueType==="text"?M.push(Ct(l,U)):l.valueType==="item"?M.push(U):M.push(St(l,U))}),d.value=k;const H=(0,t.toRaw)(M);A&&(c("update:modelValue",H),c("change",H))}},g=(0,t.ref)([]),w=Le((0,t.computed)(()=>l.appearLoad),"appearLoad",Ie.Near,S=>ce(S)),p=I0(),f=async(S,D)=>{if(S){const z=await p.load("checkbox",S,D);z.length>0&&(typeof z[0]=="string"?g.value=z.map(A=>A0(A)):g.value=z)}};(0,t.watch)([()=>l.source,()=>l.params],async([S,D])=>{f(S,D)},{immediate:!w.value});let C=!1;const b=()=>{C||(C=!0,f(l.source,l.params))};(0,t.watch)([()=>g.value,()=>l.modelValue],([S,D])=>{v(D,l.valueType,S,!1),c("setValue",D)});const y=e,F=(0,t.computed)(()=>({[y]:!0,[`is-${l.direction}`]:!0})),P=S=>{v(S,"value",g.value,!0)};let B=he(l,"hintText"),E=he(l,"hintVisible");const V=(S,D)=>{const z=[];return S.forEach((A,Q)=>{const x=St(l,A),k=Ct(l,A);let M=V0(l,A);s.value===!0&&(M=s.value),i.value===!0&&(M=i.value);const H=P0(l,A,Q)??{},U=`${x}_${Q}`,Z={...H,key:U,class:l.itemClass,value:x,size:l.size,border:ce(l.border)};M&&(Z.disabled=M),l.itemType==="button"?z.push((0,t.h)(N.ElCheckboxButton,Z,{default:()=>[k]})):typeof D=="function"?z.push((0,t.h)(N.ElCheckbox,Z,{default:()=>D(A)})):z.push((0,t.h)(N.ElCheckbox,Z,{default:()=>[k]}))}),z};return Ne({setDisabled:S=>{o.value=S},setReadonly:S=>{u.value=S}}),()=>{const S={...Ge(a.attrs),class:F.value,disabled:s.value||i.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:_e(l.max),min:_e(l.min),onChange:P},D=[],z={};a.slots.options?z.default=a.slots.options:z.default=()=>V(g.value,a.slots.text);const A=(0,t.h)(N.ElCheckboxGroup,S,z);D.push(A);const Q={default:()=>D};Q.label=a.slots.default,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const x={...Pe(l,Rr),hintText:B.value,hintVisible:E.value};return l.prop&&(x.prop=`${l.prop}_item`),w.value&&(x["appear-listen"]=!0,x.onAppear=b),(0,t.h)(r,x,Q)}}}}var{componentName:R0,create:D0,scope:O0}=se("checkbox-item"),q0=D0(F0(R0,O0,Ce)),Hn=q0,Dr={modelValue:{type:[Number,String],required:!1}};function H0(e,n,r){return{props:{...Se,...Te,...Dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),d=he(l,"modelValue",C=>_e(C),c),m=e,v=(0,t.computed)(()=>({[m]:!0})),g=C=>{c("update:modelValue",C),c("change",C)};let w=he(l,"hintText"),p=(0,t.ref)(!1);const f=(0,t.ref)();return Ne({setDisabled:C=>{o.value=C},setReadonly:C=>{u.value=C}}),()=>{const C={...Ge(a.attrs),ref:f,class:v.value,readonly:i.value||s.value,modelValue:d.value,onChange:g},b={},y=[],F=(0,t.h)(N.ElRate,C,b);y.push(F);const P={default:()=>y};P.label=a.slots.default,P.fixedPreTip=a.slots.fixedPreTip,P.fixedTip=a.slots.fixedTip;const B={...Pe(l,Dr),hintText:w.value,hintVisible:p.value};return l.prop&&(B.prop=`${l.prop}_item`),(0,t.h)(r,B,P)}}}}var{componentName:j0,create:K0,scope:W0}=se("rate-item"),Y0=K0(H0(j0,W0,Ce)),jn=Y0,Or={modelValue:{type:[Boolean,String,Number],required:!1}};function U0(e,n,r){return{props:{...Se,...Te,...Or},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),d=he(l,"modelValue",null,c),m=e,v=(0,t.computed)(()=>({[m]:!0})),g=C=>{c("update:modelValue",C),c("change",C)};let w=he(l,"hintText"),p=he(l,"hintVisible");const f=(0,t.ref)();return Ne({setDisabled:C=>{o.value=C},setReadonly:C=>{u.value=C}}),()=>{const C={...Ge(a.attrs),ref:f,class:v.value,readonly:i.value,disabled:s.value,modelValue:d.value,onChange:g},b={},y=[],F=(0,t.h)(N.ElSwitch,C,b);y.push(F);const P={default:()=>y};P.label=a.slots.default,P.fixedPreTip=a.slots.fixedPreTip,P.fixedTip=a.slots.fixedTip;const B={...Pe(l,Or),hintText:w.value,hintVisible:p.value};return l.prop&&(B.prop=`${l.prop}_item`),(0,t.h)(r,B,P)}}}}var{componentName:G0,create:X0,scope:Z0}=se("switch-item"),J0=X0(U0(G0,Z0,Ce)),Kn=J0,qr={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Q0=class{proxy;constructor(e){this.proxy=e}async load(e,n,r,l,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r,l);const o=He(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await o(n,r,l))}};function ec(){return new Q0((0,t.getCurrentInstance)().proxy)}var Hr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function tc(e,n,r){return{props:{...Se,...Te,...Hr,...qr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,a){const o=(0,t.ref)(null),s=Re((0,t.computed)(()=>o.value??l.disabled)),u=(0,t.ref)(null),i=Fe((0,t.computed)(()=>u.value??l.readonly)),c=(0,t.ref)(!1),{emitEvent:d}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??a.attrs.name),m=he(l,"modelValue",null,d),v=e,g=(0,t.computed)(()=>({[v]:!0})),w=A=>{m.value=A,d("update:modelValue",A),d("change",A)};let p=he(l,"hintText"),f=(0,t.ref)(!1);const C=A=>{let Q=A.target.value;c.value=!0,fe(p.value)||(f.value=!0),d("focus",Q,A)},b=A=>{setTimeout(()=>{f.value&&(f.value=!1),c.value=!1},0);let Q=A.target.value;l.maxLength&&Q.length>Number(l.maxLength)&&(Q=Q.slice(0,Number(l.maxLength))),F.value||d("blur",Q,A)},y=()=>{d("clear","")},F=(0,t.ref)(!1),P=A=>{F.value=A,d("visible-change",A),A||d("selected")},B=(0,t.ref)([]),E=ec(),V=async(A,Q)=>{try{B.value=await E.load("treeselect",A,Q)}catch(x){console.error(x)}};(0,t.watch)([()=>l.data,()=>l.params,()=>l.lazy],([A,Q,x])=>{!A||x||V(A,Q)},{immediate:!0});let S=null;l.lazy&&(typeof l.load=="function"?S=l.load:S=async(A,Q)=>{debugger;let x={};l.params&&Object.assign(x,l.params),A&&Object.assign(x,A),Q(await E.load("treeselect",l.data,x,!0))});let D={label:l.textKey,value:l.valueKey,children:l.childrenKey,isLeaf:l.leafKey,class:l.classKey};const z=(0,t.ref)();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},setDisabled:A=>{o.value=A},setReadonly:A=>{u.value=A}}),()=>{const A={...Ge(a.attrs),ref:z,class:g.value,disabled:s.value||i.value,modelValue:m.value,"onUpdate:modelValue":w,lazy:l.lazy,props:D,onClear:y,onFocus:C,onBlur:b,onVisibleChange:P};S?A.load=S:A.data=B.value;const Q={};a.slots.option&&(Q.default=a.slots.option);const x=[],k=(0,t.h)(N.ElTreeSelect,A,Q);x.push(k);const M={default:()=>x};M.label=a.slots.default,M.fixedPreTip=a.slots.fixedPreTip,M.fixedTip=a.slots.fixedTip;const H={...Pe(l,Hr,qr),hintText:p.value,hintVisible:f.value};return l.prop&&(H.prop=`${l.prop}_item`),(0,t.h)(r,H,M)}}}}var{componentName:lc,create:nc,scope:rc}=se("tree-select-item"),ac=nc(tc(lc,rc,Ce)),Wn=ac,oc={},ic={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function sc(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",ic,[...n[0]||(n[0]=[(0,t.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var uc=Ue(oc,[["render",sc]]),{componentName:h5,create:cc,scope:g5}=se("group-setting"),dc={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:"到底部"}},fc=cc({components:{FoxPopover:N.ElPopover,FoxCheckbox:N.ElCheckbox,FoxCheckboxGroup:N.ElCheckboxGroup,FoxButton:N.ElButton,FoxIcon:N.ElIcon,DragIcon:uc,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...dc},emits:["change"],setup(e,{emit:n,attrs:r,expose:l}){let a=null;const o=(0,t.ref)([]),s=ao(),u=K=>K.length>1,i=()=>{const K=[];o.value=[...o.value].map((L,O)=>(L.visible!==!1&&K.push(L.prop),{...L,sortIndex:O})),o.value.length===K.length?p.value=!0:K.length>0&&(f.value=!0),y.value=K},c=K=>{let L=null;if(typeof K=="string")L=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const j=K.$el??K;typeof j.querySelectorAll=="function"&&(L=j.querySelectorAll(".fox-item[prop]"))}if(!L)return[];const O=[];return L.forEach(j=>{const _=j.querySelector(".label--string");let W="";_&&(W=_.textContent??"");const ee=j.getAttribute("prop")??"",ne=window.getComputedStyle(j,null).getPropertyValue("display");O.push({label:W,prop:ee,sortIndex:0,visible:ne!=="none"})}),O},d=()=>{if(!a){const K=c(e.groupRef??e.groupProp);if(K.length===0)return!1;a=K}return!0},m=async(K=!1)=>{const L=await s.load(e.groupProp),O=j=>{if(!j||!a)return;const _=a.map(W=>({...W}));Array.isArray(L)&&L.forEach(W=>{_.some(ee=>{if(ee.prop===W.prop){const ne=ee.label;return Object.assign(ee,W),ee.label=ne,!0}return!1})}),o.value=_.sort((W,ee)=>W.sortIndex-ee.sortIndex),i(),K&&g(!1)};a?O(!0):dl(d,e.initDelay,5,50,!1,O)},v=()=>{o.value=(a??[]).map(K=>({...K})),i(),g()},g=(K=!0)=>{K&&s.save(e.groupProp,o.value),n("change",o.value.map(L=>({...L})))},w=(0,t.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),p=(0,t.ref)(!1),f=(0,t.ref)(!1),C=K=>{const L=[];o.value.forEach(O=>{K&&L.push(O.prop),O.visible=K}),p.value=!1,f.value=!1,o.value.length===L.length?p.value=!0:L.length>0&&(f.value=!0),y.value=L,g()},b=()=>{v()},y=(0,t.ref)([]),F=K=>{o.value.forEach(O=>{O.visible=K.indexOf(O.prop)!==-1}),p.value=!1,f.value=!1;const L=o.value.length;K.length===L?p.value=!0:K.length>0&&(f.value=!0),g()},P=()=>{m()};(0,t.onMounted)(()=>{m(!0)});const B={currentRow:null,index:null},E=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,E(K)):null:null,V=K=>{const L=K.currentTarget;L&&L.dataset&&(B.index=L.dataset.index)},S=K=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},D=K=>{const L=K.currentTarget;K.relatedTarget;const O=E(L);O&&(K.preventDefault(),B.currentRow&&B.currentRow!==O&&B.currentRow.classList.remove("is-dragover"),O.classList.add("is-dragover"),B.currentRow=O)},z=K=>{K.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},A=K=>{const L=K.currentTarget,O=E(L);if(!O)return;K.preventDefault();const j=Number(B.index),_=Number(O.dataset.index);if(j!==_){if(j<_){const W=o.value[j];o.value.splice(j,1),o.value.splice(_,0,W)}else{const W=o.value[j];o.value.splice(j,1),o.value.splice(_+1,0,W)}i(),g()}},Q=K=>{const L=o.value[K];o.value.splice(K,1),o.value.splice(0,0,L),i(),g()},x=K=>{const L=o.value[K];o.value.splice(K,1),o.value.push(L),i(),g()};l({refresh:()=>{a=null,m(!1)}});const k=new Map;let M=null;function H(K){const L=document.createRange();return L.setStart(K,0),L.setEnd(K,K.childNodes.length),L.getBoundingClientRect().width}return{attrs:r,itemPropertyList:o,isDraggble:u,isCheckAll:p,isIndeterminate:f,handleCheckAllChange:C,handleReset:b,checkedValue:y,handleCheckChange:F,onShow:P,onDragStart:V,onDragEnd:S,onDragOver:D,onDragLeave:z,onDrop:A,checkboxLabelStyle:w,toTop:Q,toBottom:x,onMouseOverForOverflowText:(K,L,O)=>{const j=K.currentTarget;if(j){const _=Math.floor(j.offsetWidth);if(Math.floor(H(j))>_){let W=k.get(L);if(W){if(W===M)return;Ee.hide(W)}W=Ee.show(j,O,{type:"text",placement:"top",closeOnClick:!1}),k.set(L,W),M=W}}},onMouseLeaveForOverflowText:(K,L)=>{const O=k.get(L);O&&(Ee.hide(O),O===M&&(M=null))},onMouseOverForTip:(K,L)=>{const O=K.currentTarget;O&&(M&&Ee.hide(M),M=Ee.show(O,L,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:K=>{M&&(Ee.hide(M),M=null)}}}}),mc={class:"fox-group-setting"},pc={class:"fox-group-setting__header"},hc={class:"fox-group-setting__body"},gc={class:"fox-group-setting__body-list","data-role":"container"},vc=["data-index","draggable"],yc=["onMouseover","onMouseleave"],bc={class:"tools-item"};function Sc(e,n,r,l,a,o){const s=(0,t.resolveComponent)("FoxCheckbox"),u=(0,t.resolveComponent)("FoxButton"),i=(0,t.resolveComponent)("DragIcon"),c=(0,t.resolveComponent)("Download"),d=(0,t.resolveComponent)("FoxIcon"),m=(0,t.resolveComponent)("FoxCheckboxGroup"),v=(0,t.resolveComponent)("FoxPopover");return(0,t.openBlock)(),(0,t.createBlock)(v,(0,t.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",mc,[(0,t.createElementVNode)("div",pc,[(0,t.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,t.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,t.createElementVNode)("div",hc,[(0,t.createVNode)(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",gc,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.itemPropertyList,g=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:g.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":g.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:n[6]||(n[6]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:n[7]||(n[7]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:n[8]||(n[8]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:n[9]||(n[9]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.itemPropertyList)?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"icon-item"})):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(s,{class:"checkbox-item",label:g.prop},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",{onMouseover:w=>e.onMouseOverForOverflowText(w,g.prop,g.label),onMouseleave:w=>e.onMouseLeaveForOverflowText(w,g.prop),class:"checkbox-item__label",style:(0,t.normalizeStyle)(e.checkboxLabelStyle)},(0,t.toDisplayString)(g.label),45,yc)]),_:2},1032,["label"]),(0,t.createElementVNode)("div",bc,[(0,t.createVNode)(d,{onClick:w=>e.toTop(g.sortIndex),onMouseover:n[1]||(n[1]=w=>e.onMouseOverForTip(w,e.toTopText)),onMouseleave:n[2]||(n[2]=w=>e.onMouseLeaveForTip(w)),class:"is-reverse"},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(c)]),_:1},8,["onClick"]),(0,t.createVNode)(d,{onClick:w=>e.toBottom(g.sortIndex),onMouseover:n[3]||(n[3]=w=>e.onMouseOverForTip(w,e.toBottomText)),onMouseleave:n[4]||(n[4]=w=>e.onMouseLeaveForTip(w))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(c)]),_:1},8,["onClick"])])],40,vc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Yn=Ue(fc,[["render",Sc]]),wc={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},xc=class{proxy;constructor(e){this.proxy=e}async load(e,n,r,l,a){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r,l);const o=He(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await o(n,r,l))}};function Nc(){return new xc((0,t.getCurrentInstance)().proxy)}function Cc(e,n,r){return{props:{...rn,...wc},setup(l,a){const o=e,s=(0,t.computed)(()=>({[o]:!0})),u=(0,t.ref)([]),i=Nc(),c=async(y,F)=>{try{u.value=await i.load("tree",y,F)}catch(P){console.error(P)}},d=(0,t.shallowRef)({}),m=(0,t.computed)(()=>({...d.value,...l.params??{}}));(Array.isArray(l.data)?!0:l.lazy?!1:ce(l.autoLoad))&&(0,t.watch)([()=>l.data,()=>m.value],([y,F])=>{y&&c(y,F)},{immediate:!0,deep:!0});let g=null;l.lazy&&(typeof l.load=="function"?g=l.load:g=async(y,F)=>{let P={};l.params&&Object.assign(P,l.params),y&&Object.assign(P,y),F(await i.load("treeselect",l.data,P,!0))});const w={label:l.textKey,value:l.valueKey,children:l.childrenKey,isLeaf:l.leafKey,class:l.classKey,disabled:l.disabedKey,...l.props??{}},p=(y={})=>new Promise(async F=>{d.value={...(0,t.toRaw)(y??{})},await c(l.data,m.value),F()}),f=function(y,F){if(typeof l.filterNodeMethod=="function")return l.filterNodeMethod(y,F);if(!l.filterKeyword)return!0;const P=`${F[w.label]}`,B=`${y}`;return P.includes(B)},C=(0,t.ref)();(0,t.watch)(()=>l.filterKeyword,y=>{C.value.filter(y)});const b=y=>(...F)=>{const P=C.value[y];return Reflect.apply(P,C.value,[...F])};return a.expose({loadData:p,filter:b("filter"),updateKeyChildren:b("updateKeyChildren"),getCheckedNodes:b("getCheckedNodes"),setCheckedNodes:b("setCheckedNodes"),getCheckedKeys:b("getCheckedKeys"),setCheckedKeys:b("setCheckedKeys"),setChecked:b("setChecked"),getHalfCheckedNodes:b("getHalfCheckedNodes"),getHalfCheckedKeys:b("getHalfCheckedKeys"),getCurrentKey:b("getCurrentKey"),getCurrentNode:b("getCurrentNode"),setCurrentKey:b("setCurrentKey"),setCurrentNode:b("setCurrentNode"),getNode:b("getNode"),remove:b("remove"),append:b("append"),insertBefore:b("insertBefore"),insertAfter:b("insertAfter")}),()=>{const y={...Ge(a.attrs),class:s.value,lazy:l.lazy,props:w,ref:E=>C.value=E};g?y.load=g:y.data=u.value,y["filter-node-method"]=f;const F=[],P=(0,t.h)(N.ElTree,y,a.slots);F.push(P);const B={default:()=>F};return(0,t.h)(r,{...mt(l,rn)},B)}}}}var{componentName:zc,create:kc,scope:Ec}=se("tree-item"),_c=kc(Cc(zc,Ec,Cl)),Un=_c;function Tc(e,n,r,l){return{props:{...Se,...Te,placeholder:{type:String},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(a,o){const s=Re((0,t.computed)(()=>a.disabled)),u=Fe((0,t.computed)(()=>a.readonly)),{emitEvent:i}=$e({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return s.value}},a.prop??o.attrs.name),{toLocaleRefs:c}=(0,Ae.useFoxI18n)(n),d=c(a,["placeholder"]),m=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,A=>{m.value=A,i("change",A)});const v=(0,t.computed)(()=>({[`${e}`]:!0})),g=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&fe(m.value),"is-disabled":s.value,"is-readonly":u.value})),w=Le((0,t.computed)(()=>a.textAlign),"textAlign"),p=(0,t.computed)(()=>{const A={};return w.value&&(A["text-align"]=w.value),A}),f=(0,t.computed)(()=>!fe(a.modelValue)||o.slots.main?!0:!!fe(a.desc)),C=(0,t.computed)(()=>fe(m.value)?d.placeholder.value:m.value),b=(0,t.computed)(()=>!fe(a.desc)||o.slots.sub),y=(0,t.computed)(()=>({[`${e}__sub`]:!0})),F=(0,t.computed)(()=>{const A={};return w.value&&(A["text-align"]=w.value),A}),P=()=>{i("focus",m.value)},B=()=>{i("blur",m.value)},E=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":u.value})),V=(0,t.computed)(()=>zt(a.unit)>0),S=A=>{s.value==!0||u.value==!0||i("click")},D=(0,t.computed)(()=>a.icon??r),z=(0,t.computed)(()=>({action:!0}));return()=>{const A=[];if(typeof o.slots.content=="function"){const I=o.slots.content();A.push(I)}else{const I=[];if(f.value){const K={tabIndex:0,class:g.value,style:p.value,onFocus:P,onBlur:B};let L=null;o.slots.main?L=(0,t.h)("view",K,[o.slots.main(C.value)]):L=(0,t.h)("view",K,[C.value]),I.push(L)}if(b.value){const K={tabIndex:0,class:y.value,style:F.value,onFocus:P,onBlur:B};let L=null;o.slots.sub?L=(0,t.h)("view",K,[o.slots.sub(a.desc)]):L=(0,t.h)("view",K,[a.desc]),I.push(L)}const te=(0,t.h)("view",{class:v.value,onClick:S},I);A.push(te)}const Q=[],x=de(a.iconSize);let k=o.slots.icon;if(!k){const I={width:x,height:x,class:["action-icon"]};k=(0,t.h)(D.value,I)}const M=(0,t.h)("view",{class:z.value,onClick:S},{default:()=>[k]});if(Q.push(M),V.value){const I=(0,t.h)("view",{},[a.unit]);Q.push(I)}const H=(0,t.h)("view",{class:E.value},{default:()=>Q});A.push(H);const U={default:()=>A};U.label=o.slots.default,U.prepend=o.slots.prepend,U.append=o.slots.append,U.fixedPreTip=o.slots.fixedPreTip,U.fixedTip=o.slots.fixedTip;const Z={...mt(a,Te,Se)};return a.prop&&(Z.prop=`${a.prop}_item`),(0,t.h)(l,Z,U)}}}}var{componentName:$c,create:Bc,scope:Vc}=se("link-item"),Mc=Bc(Tc($c,Vc,Ve.ArrowRight,Ce)),Gn=Mc;var Ic=["aria-labelledby"],Lc=[(0,t.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Ac=(0,t.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Lc,14,Ic))}});var Pc=["aria-labelledby"],Fc=[(0,t.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Rc=(0,t.defineComponent)({__name:"Tips",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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fc,14,Pc))}});var Dc=["aria-labelledby"],Oc=[(0,t.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],qc=(0,t.defineComponent)({__name:"Success",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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Oc,14,Dc))}});var Hc=["aria-labelledby"],jc=[(0,t.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Kc=(0,t.defineComponent)({__name:"Right",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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,Hc))}});var Wc=["aria-labelledby"],Yc=[(0,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)],Uc=(0,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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yc,14,Wc))}});var Gc=["aria-labelledby"],Xc=[(0,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)],Tl=(0,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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}});var Zc=["aria-labelledby"],Jc=[(0,t.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Qc=(0,t.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Jc,14,Zc))}});var e2=["aria-labelledby"],t2=[(0,t.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],l2=(0,t.defineComponent)({__name:"Failure",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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},t2,14,e2))}});var n2=["aria-labelledby"],r2=[(0,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)],a2=(0,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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},r2,14,n2))}});var o2=["aria-labelledby"],i2=[(0,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)],s2=(0,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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},i2,14,o2))}});var u2=["aria-labelledby"],c2=[(0,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)],d2=(0,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 r=e,l=n,a=i=>{l("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,t.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,t.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{class:(0,t.normalizeClass)(s.value),style:(0,t.normalizeStyle)(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},c2,14,u2))}});var sn={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},jr=(e,n)=>n[e.textKey],$t=(e,n)=>n[e.valueKey],f2=(e,n)=>n[e.visibleKey],Kr=(e,n)=>n[e.disabledKey],m2=(e,n)=>{const r=n[e.doitKey];return ce(r)},p2=(e,n)=>{const r=n[e.numKey];return r==null?null:_e(n[r])},Wr=(e,n,r)=>{const l=e.itemOptions;return typeof l=="function"?l(n,r):l||null};function h2(e,n,r,l,a,o=!1){return{props:{...sn},emits:["update:modelValue","change","click"],setup(s,{slots:u,emit:i}){const c=(0,t.computed)(()=>{const T={};return T[`${e}`]=!0,T}),d=(0,t.computed)(()=>{const T={};return T[`${e}__titles`]=!0,T[`${s.direction}`]=!0,s.align&&(T[`${s.align}`]=!0),s.scroll===!0&&(T.scrollable=!0),s.shape&&(T[`${s.shape}`]=!0),s.showScrollArrow?(_.value===!0&&(T["has-left-scroll-arrow "]=!0),W.value===!0&&(T["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(T["has-navigation"]=!0),T}),m=(0,t.computed)(()=>({})),v=(0,t.computed)(()=>{if(!s.gutter)return 0;const T=de(s.gutter);return T<=0?0:T}),g=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,T=>{g.value!==T&&(g.value=T,Z(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),p=(0,t.computed)(()=>{const T={};return C.value||(T.display="none"),T}),f=(0,t.ref)(),C=(0,t.ref)(!1),b=()=>{y(!C.value)},y=T=>{const h=T;h?(C.value=h,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,f.value?f.value.addEventListener("transitionend",()=>{C.value=!1},{once:!0}):setTimeout(()=>{C.value=!1},0))},F=(0,t.ref)(),P=(0,t.ref)([]),B=(T,h)=>{P.value[h]=T},E=T=>h=>{B(h,T)},V=(T,h)=>{const R=F.value,q=P.value;if(!R||!q||!q[T])return;const J=q[T];let ae=0;s.direction==="vertical"?ae=J.offsetTop-(R.offsetHeight-J.offsetHeight)/2:ae=J.offsetLeft-(R.offsetWidth-J.offsetWidth)/2,S(R,ae,h?0:.3,s.direction)},S=(T,h,R,q)=>{let J=0;const ae=q==="horizontal"?T.scrollLeft:T.scrollTop,oe=R===0?1:Math.round(R*1e3/16);function pe(){q==="horizontal"?T.scrollLeft+=(h-ae)/oe:T.scrollTop+=(h-ae)/oe,++J<oe&&mn(pe)}pe()},D=(T,h)=>{const R=$t(s,T),q={};return q[`${e}__titles-item`]=!0,q.disabled=Kr(s,T),q.active=R===g.value,s.shape&&(q[`${s.shape}`]=!0),s.ellipsis&&(q.ellipsis=!0),h&&(h.class&&(q[`${h.class}`]=!0),h.disabled===!0&&(q.disabled=h.disabled)),q},z=(T,h)=>{const R={};if(v.value>0){const q=Math.abs(v.value/2);s.direction==="vertical"?(R["margin-top"]=`${q}px`,R["margin-bottom"]=`${q}px`):(R["margin-left"]=`${q}px`,R["margin-right"]=`${q}px`)}return h&&h.style&&Object.assign(R,h.style),R},A=(T,h)=>`${$t(s,T)??h}`,Q=(T,h)=>{const R=$t(s,T),q={};q[`${e}__popup-item`]=!0,q.disabled=Kr(s,T),q.active=R===g.value,s.shape&&(q[`${s.shape}`]=!0);const J=Wr(s,T,h);return J&&J.disabled===!0&&(q.disabled=J.disabled),q},x=(0,t.computed)(()=>(s.data??[]).filter(T=>f2(s,T)!==!1)),k=(T,h)=>{const R=$t(s,T);if(i("click",T,h),g.value==R)return;const q=()=>{g.value=R,s.scroll&&V(h,!1),i("update:modelValue",R),i("change",T,h)};if(typeof s.beforeChange=="function"){const J=s.beforeChange(T,h);ba(J)?J.then(ae=>{ae!==!1&&q()}).catch(()=>{q()}):J!==!1&&q()}else q()},M=(T,h)=>function(){k(T,h)},H=(T,h)=>{k(T,h),y(!1)},U=(T,h)=>function(){H(T,h)},Z=T=>{if(!Array.isArray(s.data)||!s.scroll)return;j()&&Y();const h=s.data.findIndex(R=>$t(s,R)===g.value);h!==-1&&V(h,T)},I=()=>{j()||$()};(0,t.watch)(()=>s.data,()=>{setTimeout(Z,0)}),(0,t.onMounted)(()=>{Z(!0)}),(0,t.onBeforeUnmount)(()=>{I()});const te=(T,h)=>{if(u.item)return u.item({item:T,index:h});const R=Wr(s,T,h),q=[];if(u.text){const ae=u.text({item:T,index:h});q.push(ae)}else{const ae=[];if(R?.doit===!0||m2(s,T)){const ke=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(ke)}const oe=R?.num??p2(s,T);if(oe){let ke="";const Xe=_e(oe);Xe>=100?ke="99+":ke=`${Xe}`;const pt=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[ke]);ae.push(pt)}const pe={class:`${e}__titles-item-text`};ae.push(jr(s,T));const ze=(0,t.h)("view",pe,ae);q.push(ze)}const J=(0,t.h)("view",{class:`${e}__titles-item-line`});return q.push(J),(0,t.h)("view",{ref:E(h),class:D(T,R),style:z(T,R),key:A(T,h),onClick:M(T,h)},q)},K=()=>{const T=u.default?u.default():[];if(T.length===0)for(let h=0;h<x.value.length;h++){const R=x.value[h],q=te(R,h);T.push(q)}return(0,t.h)("view",{ref:F,class:d.value,style:m.value},T)},L=()=>{let T=null;return u.navigation?T=u.navigation():T=(0,t.h)(r),(0,t.h)("view",{class:`${e}__navigation`,onClick:b},[T])},O=()=>{const T=[];for(let h=0;h<x.value.length;h++){const R=x.value[h];let q=null;u.popupItem?q=u.popupItem({item:R,index:h}):q=jr(s,R);const J=(0,t.h)("view",{class:Q(R,h),key:A(R,h),onClick:U(R,h)},[q]);T.push(J)}return(0,t.h)("view",{class:w.value,style:p.value},T)},j=()=>s.showScrollArrow&&s.direction=="horizontal",_=(0,t.ref)(!1),W=(0,t.ref)(!1),ee=T=>{const h=F.value,R=P.value;if(!(!h||!R))if(T==="left"){const q=h.scrollLeft;let J=q;for(let ae=0;ae<R.length;ae++){const oe=R[ae].offsetLeft;if(q-oe<0)break;J=oe}S(h,J,.3,"horizontal")}else{const q=h.scrollLeft;let J=q,ae=h.offsetWidth;for(let oe=R.length-1;oe>=0;oe--){const pe=R[oe].offsetLeft+R[oe].offsetWidth;if(pe-q<h.offsetWidth){J+=ae-pe;break}ae=pe}S(h,J,.3,"horizontal")}},ne=je(()=>{const T=F.value;if(!T)return;let h=T.scrollLeft>0;h!==_.value&&(_.value=h);let R=T.scrollWidth-T.scrollLeft>T.offsetWidth;R!==W.value&&(W.value=R)},50),X=T=>{ne()},Y=()=>{const T=F.value;T&&(ne(),T.addEventListener("scroll",X))},$=()=>{const T=F.value;T&&T.removeEventListener("scroll",X)},G=T=>{if(T==="left"&&_.value!==!0||T==="right"&&W.value!==!0)return null;let h=null;return T==="left"?u.leftArrow?h=u.leftArrow():h=(0,t.h)(l):u.rightArrow?h=u.rightArrow():h=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,T],onClick:()=>{ee(T)}},[h])};return()=>{const T=[],h=K();if(T.push(h),j()){const R=G("left");R&&T.push(R);const q=G("right");q&&T.push(q)}else if(s.showQuickNavigation){const R=L();T.push(R);const q=O();T.push(q)}return(0,t.h)("view",{class:c.value},T)}}}}var{create:g2,componentName:v2,scope:y2}=se("tabs-bar"),b2=g2(h2(v2,y2,Uc,Qc,Kc,!1)),$l=b2,so=Symbol("TabsStatesKey"),un={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Yr=10;function uo(e,n){return e>n&&e>Yr?"horizontal":n>e&&n>Yr?"vertical":""}function Kt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Wt(){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",r=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=uo(e.offsetX,e.offsetY))}),start:(s=>{if(l(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:r,state:e}}function S2(){const e=(0,t.ref)(0),n=(0,t.ref)(0),r=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(0),u=(0,t.ref)(0),i=(0,t.ref)(0),c=(0,t.ref)(0),d=(0,t.ref)(""),m=()=>d.value==="vertical",v=()=>d.value==="horizontal",g=()=>{s.value=0,u.value=0,i.value=0,c.value=0,d.value="",r.value=0};return{move:(f=>{if(f.touches){const C=f.touches[0];s.value=C.clientX-e.value,u.value=C.clientY-n.value,a.value=C.clientX,o.value=C.clientY}else{const C=f;s.value=C.clientX-e.value,u.value=C.clientY-n.value,a.value=C.clientX,o.value=C.clientY}i.value=Math.abs(s.value),c.value=Math.abs(u.value),l.value=Date.now()-r.value,d.value||(d.value=uo(i.value,c.value))}),start:(f=>{if(g(),f.touches){const C=f.touches[0];e.value=C.clientX,n.value=C.clientY}else{const C=f;e.value=C.clientX,n.value=C.clientY}r.value=Date.now()}),reset:g,startX:e,startY:n,startTime:r,duration:l,moveX:a,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:c,direction:d,isVertical:m,isHorizontal:v}}var w2=15,x2=300,N2=200;function C2(e,n,r=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*r}function Ur(e,n=0,r,l,a=N2){r==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var z2=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,r,l=1){this.onStart=e,this.onMove=n,this.onEnd=r,this.momentumReduceRatio=l,this.isTouch=Kt()}open(e){this.el=e;const n=Wt(),r=(l,a,o)=>{const s={delta:l,direction:a,type:o};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}r(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<x2&&Math.abs(l)>w2?(l=C2(l,a,this.momentumReduceRatio),r(l,this.direction,"end")):r(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function k2(e,n,r,l=1){return new z2(e,n,r,l)}function E2(e,n,r=!1){return{props:{...un},emits:["update:modelValue","change"],setup(l,{emit:a,slots:o}){const s=(0,t.shallowRef)([]),u={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:E=>{const V={name:E};u.current.value===E&&(V.loaded=!0),s.value.push(V),(0,t.triggerRef)(s)},remove:E=>{const V=s.value.findIndex(S=>S.name===E);V!==-1&&s.value.splice(V,1)},isLoaded:E=>{if(!l.lazy)return!0;const V=s.value.findIndex(S=>S.name===E);return V!==-1?u.current.value?s.value[V].loaded??!1:V===0:!1}};(0,t.provide)(so,u);const i=E=>{const V=s.value.findIndex(S=>S.name===E);V!==-1&&(s.value[V].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([E,V])=>{u.current.value!==E&&(u.current.value=E??"",i(E??"")),u.direction.value!==V&&(u.direction.value=V)});const c=(0,t.ref)(null),d=(0,t.ref)(null),m=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),v=(0,t.computed)(()=>{const E={};if(l.width){const V=ve(l.width);V&&(E.width=V)}if(l.height){const V=ve(l.height);V&&(E.height=V)}return E});let g=!0;const w=(0,t.computed)(()=>{const E={},V=s.value.length;if(V<=0)return E;const S=s.value.findIndex(D=>D.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(E.height=`${V*u.tabHeight.value}px`,S!==-1&&(E.transform=`translate(0, -${S*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(E.width=`${V*u.tabWidth.value}px`,S!==-1&&(E.transform=`translate(-${S*u.tabWidth.value}px, 0)`)),g&&(g=!1,E.transition="transform 0s ease"),E}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=E=>{const V=s.value.length,S=s.value.findIndex(D=>D.name===u.current.value);p.moved=0,E.direction==="vertical"?(p.min=-1*(u.tabHeight.value*(V-1)+u.tabHeight.value/4),p.max=u.tabHeight.value/4,p.start=-S*u.tabHeight.value,p.itemDistance=u.tabHeight.value):(p.min=-1*(u.tabWidth.value*(V-1)+u.tabWidth.value/4),p.max=u.tabWidth.value/4,p.start=-S*u.tabWidth.value,p.itemDistance=u.tabWidth.value)},C=E=>{const V=d.value;if(!V)return;let S=p.start+E.delta;if(S>p.max?S=p.max:S<p.min&&(S=p.min),E.type==="move")Ur(V,S,"move",E.direction,300);else if(E.type==="end"){let D=Math.floor(Math.abs(S)*1/p.itemDistance);const z=Math.abs(S)%p.itemDistance;p.start>S?z>=p.itemDistance*p.triggerAutoMoveRatio&&(D+=1):z>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(D+=1),S=-1*D*p.itemDistance,Ur(V,S,"end",E.direction,300),p.moved=S;const A=s.value[D].name;u.current.value=A??"",i(A??""),a("update:modelValue",A)}},b=()=>{},y=()=>{if(!c.value)return;const E=gl(c.value);u.tabWidth.value=E.width,u.tabHeight.value=E.height},F=La(y,250);let P=null,B=null;return(0,t.onMounted)(()=>{c.value&&(y(),window.ResizeObserver&&(B=new window.ResizeObserver(F),B.observe(c.value)),l.draggle&&(P=k2(f,C,b),P.open(d.value)))}),(0,t.onBeforeUnmount)(()=>{B&&(B.disconnect(),B=null),P&&P.close()}),()=>{const E=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:d},[o?.default?.()]);return(0,t.h)("view",{class:m.value,style:v.value,ref:c},[E])}}}}var{create:_2,componentName:T2,scope:$2}=se("tabs-container"),B2=_2(E2(T2,$2,!1)),Bl=B2,V2={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function M2(e,n,r){return{props:{...V2},setup(l,{emit:a,slots:o}){const s=(0,t.inject)(so);(0,t.onMounted)(()=>{s.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(l.paneKey)});const u=(0,t.computed)(()=>{const c={};return s.direction.value==="vertical"&&s.tabHeight.value>0?c.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(c.width=`${s.tabWidth.value}px`),c}),i=(0,t.computed)(()=>l.loaded!=null?ce(l.loaded):s.isLoaded(l.paneKey));return()=>{let c=[];if(i.value)c=o?.default?.()??[];else if(o.empty)c=o.empty();else{const d={class:`${e}__empty-icon`},m=(0,t.h)(l.emptyIcon??r,d),v=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),g=(0,t.h)("view",{class:`${e}__empty`},[m,v]);c.push(g)}return(0,t.h)("view",{class:`${e}`,style:u.value,prop:l.paneKey},c)}}}}var{create:I2,componentName:L2,scope:A2}=se("tabs-pane"),P2=I2(M2(L2,A2,Tl)),Xn=P2;function F2(e,n,r,l){return{props:{...sn,...un,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(a,{emit:o,slots:s}){const u=e,i=(0,t.computed)(()=>{const p=[`${u}`];return a.direction==="vertical"?p.push("vertical-tabbar"):p.push("horizontal-tabbar"),p}),c=(0,t.computed)(()=>{const p={};if(a.width){const f=ve(a.width);f&&(p.width=f)}if(a.height){const f=ve(a.height);f&&(p.height=f)}return p}),d=(0,t.computed)(()=>[`${u}__bar`]),m=(0,t.computed)(()=>[`${u}__container`]),v=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,p=>{v.value!==p&&(v.value=p)});const g=p=>{o("change",p)},w=p=>{v.value!==p&&(v.value=p,o("update:modelValue",p))};return()=>{const{getChildren:p}=kn(s.default),f=p(),C=[];if(Array.isArray(a.data))C.push(...a.data);else for(let V=0;V<f.length;V++){const S=f[V].props??{},D={text:S.label??"",value:S["pane-key"]??S.paneKey??""};C.push(D)}const b={};for(let V in s)V!=="default"&&(b[V]=s[V]);const y=mt(a,sn);Object.assign(y,{data:C,class:d.value,modelValue:v.value,direction:a.direction,onChange:g,"onUpdate:modelValue":w});const F=(0,t.h)(r,y,b),P={default:()=>f},B=mt(a,un);Object.assign(B,{class:m.value,modelValue:v.value,onChange:g,"onUpdate:modelValue":w});const E=(0,t.h)(l,B,P);return(0,t.h)("view",{class:i.value,style:c.value},[F,E])}}}}var{create:R2,componentName:D2,scope:O2}=se("tabs-frame"),q2=R2(F2(D2,O2,$l,Bl)),Zn=q2,H2={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:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function j2(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Gr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Xr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function K2(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Hl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Zr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Jr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function jl(e,n,r){return typeof e.itemOptions=="function"?e.itemOptions(n,r):e.itemOptions}var W2=class{proxy;constructor(e){this.proxy=e}async load(e,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[r]);const l=He(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ye(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(l,null,[n,r]))}};function Y2(){return new W2((0,t.getCurrentInstance)().proxy)}function U2(e,n,r,l){return{props:{...H2},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:o,emit:s}){const u=e,i=Y2(),c=(0,t.ref)([]),d=(0,t.computed)(()=>c.value.filter(L=>K2(a,L)!==!1)),m=(0,t.ref)(-1),v=()=>{const L=a.modelValue,O=d.value.findIndex(j=>Gr(a,j)===L);m.value!==O&&(m.value=O,a.scroll&&te(O,!1))};(0,t.watch)([()=>a.modelValue,d],()=>{v()});const g=L=>m.value===L,w=L=>{if(L<0&&L>=d.value.length)return!1;const O=d.value[L],j=(jl(a,O,L)??{}).status??Hl(a,O);return g(L)||j},p=(0,t.computed)(()=>{const L={[u]:!0};return a.mode?L[`is-${a.mode}`]=!0:a.direction&&(L[`is-${a.direction}`]=!0),a.scroll&&(L["is-scroll"]=!0),L}),f=(0,t.computed)(()=>({})),C=(L,O,j,_,W)=>{const ee={[`${u}__step`]:!0};return W&&(ee[`${W}`]=!0),ee[`${b.value}`]=!0,_&&(ee["is-doit"]=!0),L===m.value?ee["is-active"]=!0:O==="done"?ee["is-done"]=!0:O==="error"?ee["is-error"]=!0:O==="half"?ee["is-half"]=!0:j?ee["is-disabled"]=!0:ee["is-normal"]=!0,ee},b=(0,t.computed)(()=>{let L=a.align;if(!L){if(a.mode==="simple")return"start";a.direction==="vertical"?L="start":L="center"}return L}),y=(L,O={})=>{const j={...O};if(b.value==="start"&&L===d.value.length-1)j.flex="0 0 auto";else if(a.step){const _=typeof a.step=="number"||hn(a.step)?ve(a.step):a.step;a.direction==="vertical"?j.height=_:j.width=_}else j.flex="1 1 100%";return j},F=(L,O)=>{let j={};if(O<d.value.length-1){const _=O+1;w(O)&&w(_)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},P=L=>d.value.length-1===L,B=(L,O)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&O>m.value||m.value===O)return;const j=m.value,_=O;m.value=O,a.scroll&&te(O,!1);const W=Gr(a,L);s("update:modelValue",W),s("change",W,{fromIndex:j,currentIndex:_,item:L,items:d.value,clickNavigatePolicy:a.clickNavigatePolicy})},E=(0,t.ref)(!0),V=async(L,O)=>{try{const j=await i.load("stesbar",L,O);Array.isArray(j)&&(c.value=j),E.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),c.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([L,O])=>{L&&V(L,O)},{immediate:!0});const S=(L,O,j,_,W)=>{let ee=null;if(o.icon)ee=o.icon({item:L,index:O,status:_});else if(_==="done"){const ne={};a.iconSize&&(ne.width=a.iconSize,ne.height=a.iconSize),ee=(0,t.h)(a.icon??r,ne)}else ee=(0,t.h)("span",{},[j??`${O+1}`]);return(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{W||B(L,O)}},[ee])},D=(L,O,j)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:F(L,O)})]),z=()=>{let L=null;if(o.markIcon)L=o.markIcon();else{const O={};a.iconSize&&(O.width=a.markIconSize,O.height=a.markIconSize),L=(0,t.h)(a.markIcon??l,O)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[L])},A=(L,O,j,_,W)=>{const ee=[];if(!P(O)){const X=D(L,O,_);ee.push(X)}const ne=S(L,O,j,_,W);return ee.push(ne),(0,t.h)("view",{class:"fox-steps-bar__head"},ee)},Q=(L,O,j,_)=>{let W=null;return o.main?W=o.main({item:L,index:O,status:j}):W=j2(a,L),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{_||B(L,O)}},[W])},x=(L,O,j)=>{let _=null;return o.sub?(_=o.sub({item:L,index:O,status:j}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[_])):null},k=(L,O)=>{const j=jl(a,L,O)??{},_=j.status??Hl(a,L);let W=Xr(a,L);j.disabled===!0&&(W=!0),a.disabled===!0&&(W=!0);const ee=j.label??Jr(a,L),ne=[],X=S(L,O,ee,_,W);X&&ne.push(X);const Y=Q(L,O,_,W);if(Y&&ne.push(Y),!P(O)){const R=D(L,O,_);R&&ne.push(R)}const $=(0,t.h)("view",{class:"fox-steps-bar__head"},ne),G=j.class,T=j.style??{};let h=Zr(a,L);return j.doit===!0&&(h=!0),(0,t.h)("view",{ref:I(O),class:C(O,_,W,h,G),style:y(O,T)},[$])},M=(L,O)=>{const j=jl(a,L,O)??{},_=j.status??Hl(a,L);let W=Xr(a,L);j.disabled===!0&&(W=!0),a.disabled===!0&&(W=!0);const ee=j.label??Jr(a,L),ne=[],X=a.layout;for(let T of X)if(T==="head"){const h=A(L,O,ee,_,W);ne.push(h)}else if(T==="main"){const h=Q(L,O,_,W);ne.push(h)}else if(T==="sub"){const h=x(L,O,_);ne.push(h)}else if(T==="mark"){const h=z();ne.push(h)}const Y=j.class,$=j.style??{};let G=Zr(a,L);return j.doit===!0&&(G=!0),(0,t.h)("view",{ref:I(O),class:C(O,_,W,G,Y),style:y(O,$)},ne)},H=(0,t.ref)(),U=(0,t.ref)([]),Z=(L,O)=>{U.value[O]=L},I=L=>O=>{Z(O,L)},te=(L,O)=>{const j=H.value,_=U.value;if(!j||!_||!_[L])return;const W=_[L];let ee=0;a.direction==="vertical"?ee=W.offsetTop-(j.offsetHeight-W.offsetHeight)/2:ee=W.offsetLeft-(j.offsetWidth-W.offsetWidth)/2,K(j,ee,O?0:.3,a.direction)},K=(L,O,j,_)=>{let W=0;const ee=_==="horizontal"?L.scrollLeft:L.scrollTop,ne=j===0?1:Math.round(j*1e3/16);function X(){_==="horizontal"?L.scrollLeft+=(O-ee)/ne:L.scrollTop+=(O-ee)/ne,++W<ne&&mn(X)}X()};return()=>{let L=[];if(a.mode==="simple")for(let j=0;j<d.value.length;j++){const _=d.value[j],W=k(_,j);L.push(W)}else for(let j=0;j<d.value.length;j++){const _=d.value[j],W=M(_,j);L.push(W)}const O={ref:H,class:p.value,style:f.value};return L.length===0&&typeof o.default=="function"&&(L=o.default()),(0,t.h)("view",O,L)}}}}var{componentName:G2,create:X2,scope:Z2}=se("steps-bar"),J2=X2(U2(G2,Z2,s2,d2)),Jn=J2,Q2=Symbol.for("PageWrapperKey");function e3(e,n){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,l){bn(!0);const a={};(0,t.provide)(Q2,a);const o=c=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=(0,t.ref)(!0),u=c=>{s.value=c},i=(0,t.computed)(()=>{const c={};return r.height&&(c["--fox-dialog-item-body-height"]=ve(r.height)),c});return()=>{const c={...l.attrs,style:i.value,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},d=["fox-dialog-item "];r.hideHeader&&d.push("hide-header"),r.class&&d.push(r.class),c.class=d.join(" ");const m={};return typeof l.slots.default=="function"&&(m.default=l.slots.default),(0,t.h)(N.ElDialog,c,m)}}}}var{componentName:t3,create:l3,scope:n3}=se("dialog-item"),r3=l3(e3(t3,n3)),Qn=r3,Bt=0,Qr="fox-overflow-hidden",ea=()=>st?document.body:{classList:[]},a3=e=>[()=>{if(e())try{!Bt&&ea().classList.add(Qr),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&ea().classList.remove(Qr)}catch{}}],o3={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:i3,create:s3}=se("overlay"),u3=s3({props:{...o3},emits:["click","update:visible"],setup(e,{emit:n}){const[r,l]=a3(()=>e.lockScroll),a=(0,t.computed)(()=>({[i3]:!0,[e.overlayClass]:!0})),o=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?r():l()}),{classes:a,style:o,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function c3(e,n,r,l,a,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var Vl=Ue(u3,[["render",c3]]),d3={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:{}}},co=2e3,ta=co,f3=(e,n)=>({components:n,props:{...d3},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:l}){const a=(0,t.reactive)({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),o=(0,t.computed)(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),s=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${r.duration}s`,...r.style})),u=(0,t.computed)(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),i=()=>{r.zIndex!==co&&(ta=Number(r.zIndex)),l("update:visible",!0),a.zIndex=++ta,r.destroyOnClose&&(a.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),r.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+r.duration*1e3)},d=p=>{l("click-pop",p)},m=p=>{p.stopPropagation(),l("click-close-icon",p),l("update:visible",!1)},v=p=>{l("click-overlay",p),r.closeOnClickOverlay&&l("update:visible",!1)},g=p=>{l("opend",p)},w=p=>{l("closed",p)};return(0,t.watch)(()=>r.visible,p=>{r.visible?i():c()}),(0,t.watch)(()=>r.closeable,p=>{a.closed=p}),{...(0,t.toRefs)(a),popStyle:s,transitionName:u,classes:o,onClick:d,onClickCloseIcon:m,onClickOverlay:v,onOpened:g,onClosed:w}}}),{componentName:m3,create:p3}=se("popup"),h3=p3(f3(m3,{FoxOverLay:Vl,Close:a2}));function g3(e,n,r,l,a,o){const s=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var er=Ue(h3,[["render",g3]]),{create:v3}=se("toast"),y3=v3({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 r=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const a=()=>{r&&(clearTimeout(r),r=null)},o=()=>{l.mounted=!1},s=()=>{a(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),n("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,g=>{g&&s()});const i=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const g=de(e.iconSize);return(0,t.h)(e.icon,{width:g,height:g,color:e.iconColor})},d=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:o,clickCover:u,renderIcon:c,hasIcon:i,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),b3={key:1,class:"fox-toast-title"},S3=["innerHTML"];function w3(e,n,r,l,a,o){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",b3,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,S3)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var tr=Ue(y3,[["render",w3]]),cn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},vt=[],At=[],fo=e=>{if(e){const n=document.getElementById(e);At=At.filter(r=>r.id!==e),vt=vt.filter(r=>r!==e),n&&document.body.removeChild(n)}else vt.forEach(n=>{const r=document.getElementById(n);r&&document.body.removeChild(r)}),At=[],vt=[]},x3=e=>{const n=document.getElementById(e.id);if(n){const r=At.find(l=>l.id===e.id);return r?e={...cn,...r,...e}:e={...cn,...e},(0,t.render)((0,t.createVNode)(tr,e),n),kt}},Vt=e=>{e.unmount=fo;let n;if(e.id){if(n=e.id,vt.find(l=>l===e.id))return x3(e)}else n=new Date().getTime()+"";e={...cn,...e},e.id=n,vt.push(e.id),At.push(e);const r=document.createElement("div");return r.id=e.id,(0,t.render)((0,t.createVNode)(tr,e),r),document.body.appendChild(r),kt},Xt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},kt={text(e,n={}){return Xt(e),Vt({...n,type:"text",msg:e})},success(e,n={}){return Xt(e),Vt({icon:qc,...n,msg:e,type:"success"})},fail(e,n={}){return Xt(e),Vt({icon:l2,...n,msg:e,type:"fail"})},warn(e,n={}){return Xt(e),Vt({icon:Rc,...n,msg:e,type:"warn"})},loading(e,n={}){return Vt({icon:Tl,...n,msg:e,type:"loading"})},hide(e){fo(e)},install(e){e.use(tr),e.config.globalProperties.$toast=kt}},N3={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},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"}},C3=(e,n,r)=>({props:{...N3},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:o}=Fa(),{toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["placeholder"]),i=(0,t.reactive)({active:!1}),c=(0,t.computed)(()=>({background:l.background})),d=(0,t.computed)(()=>({background:l.inputBackground})),m=S=>{let D=S.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),o("update:modelValue",D,S),o("change",D,S)},v=(0,t.ref)({}),g=S=>{let D=S.target.value;i.active=!0,v.value=l.focusStyle,o("focus",D,S)},w=S=>{setTimeout(()=>{i.active=!1},0);let D=S.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),v.value={},o("blur",D,S)},p=S=>{o("update:modelValue","",S),o("change","",S),o("clear","")},f=(0,t.computed)(()=>String(l.modelValue).length>0),C=(0,t.computed)(()=>{const S={};return f.value||(S.display="none"),S}),b=()=>{o("search",l.modelValue)},y=S=>{o("keyup-input",S),S.key.toLocaleUpperCase()==="ENTER"&&b()},F=S=>{o("click-input",S)},P=S=>{o("click-left-icon",l.modelValue,S)},B=(0,t.computed)(()=>({textAlign:l.inputAlign})),E=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&E.value.focus()});const V=()=>{const S=[];if(a.leftin){const A=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:P},[a.leftin()]);S.push(A)}const D=(0,t.h)("input",{ref:E,class:[`${e}__input-inner`],style:B.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:F,onInput:m,onFocus:g,onBlur:w,onkeyup:y});S.push(D);const z=[];if(l.clearable){const A=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:C.value,onClick:p},[(0,t.h)(a?.clear?.()??l.clearIcon??r)]);z.push(A)}if(a.rightin){const A=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);z.push(A)}if(z.length>0){const A=(0,t.h)("view",{class:`${e}__input-inner-right`},z);S.push(A)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...v.value}},S)};return()=>{const S=[];if(l.label){const z=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);S.push(z)}if(a.leftout){const z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);S.push(z)}const D=V();if(S.push(D),a.rightout){const z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);S.push(z)}return(0,t.h)("view",{class:`${e}`,style:c.value},S)}}}),{componentName:z3,create:k3,scope:E3}=se("searchbar"),_3=k3(C3(z3,E3,Ve.CircleClose)),lr=_3,T3=/scroll|auto|overlay/i,mo=window;function $3(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function B3(e,n=mo){let r=e;for(;r&&r!==n&&$3(r);){const{overflowY:l}=window.getComputedStyle(r);if(T3.test(l))return r;r=r.parentNode}return n}function po(e,n=mo){const r=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(r.value=B3(e.value,n))}),r}var ho=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,V3={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function M3(e,n,r){return{props:{...V3},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:o}){const{toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["pullText","loadText","noMoreText"]),i=(0,t.ref)(),c=po(i),d=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=(0,t.computed)(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,g=()=>{let b=0,y=0,F="down";if(c.value==window){const P=ho();i.value&&(b=v(i.value)+i.value.offsetHeight-P-window.innerHeight),y=P}else{const{scrollHeight:P,clientHeight:B,scrollTop:E}=c.value;b=P-B-E,y=E}return d.beforeScrollTop>y?F="up":F="down",d.beforeScrollTop=y,a("scroll-change",y),b<=l.threshold&&F=="down"},w=()=>{ma(()=>{if(!g()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},p=()=>{c.value&&c.value.addEventListener("scroll",w,l.useCapture)},f=()=>{c.value&&c.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{p(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{f()});const C=(0,t.ref)(!1);return(0,t.onActivated)(()=>{C.value&&(C.value=!1,p())}),(0,t.onDeactivated)(()=>{C.value=!0,f()}),(0,t.watch)(()=>l.modelValue,b=>{b||(d.isInfiniting=!1)}),()=>{const b=(0,t.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),y=[];if(d.isInfiniting){let P=o?.loading?.()??null;if(!P){let E=o?.loadingIcon?.()??null;E||(E=(0,t.h)(r,{class:["fox-infinite__bottom-box__img"]}));const V=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);P=[E,V]}const B=(0,t.h)("view",{class:"fox-infinite__bottom-box"},P);y.push(B)}else if(!l.hasMore){let P=o?.finished?.()??null;P||(P=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),y.push(P))}const F=(0,t.h)("view",{class:"fox-infinite__bottom"},y);return(0,t.h)("view",{class:m.value,ref:i},[b,F])}}}}var{componentName:I3,create:L3,scope:A3}=se("infinite-loading"),P3=L3(M3(I3,A3,Tl)),nr=P3,F3={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}},R3=(e,n,r)=>({props:{...F3},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:o}){const{toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["pullingText","loosingText","loadingText"]),i=Wt(),c=(0,t.ref)(),d=po(c),m=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=(0,t.computed)(()=>({[e]:!0})),g=(0,t.computed)(()=>{switch(m.status){case"pulling":return o.pulling?"":u.pullingText.value;case"loosing":return o.loosing?"":u.loosingText.value;case"loading":return o.loading?"":u.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),p=(0,t.computed)(()=>{const E={};return l.headHeight!=50&&(E.height=ve(l.headHeight)),E}),f=E=>{const V=+(l.pullDistance||l.headHeight);let S=E;return E>V&&(E<V*2?S=(E+V)/2:S=V+E/4),Math.round(S)},C=(E,V)=>{const S=+(l.pullDistance||l.headHeight);m.distance=E,V?m.status="loading":E===0?m.status="normal":E<S?m.status="pulling":m.status="loosing",a("change",{status:m.status,distance:E})},b=()=>m.status!=="loading"&&m.status!=="complete",y=()=>d.value==window?ho()==0:d.value&&d.value.scrollTop==0,F=E=>{b()&&(y()?(i.start(E),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},P=E=>{b()&&m.moving&&(i.move(E),i.isVertical()&&i.state.deltaY>0&&m.isPullRefresh&&(E.cancelable&&E.preventDefault(),C(f(i.state.deltaY))))},B=()=>{m.moving=!1,m.isPullRefresh&&b()&&i.state.deltaY&&(m.status==="loosing"?(C(+l.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):C(0)),setTimeout(()=>{i.reset()},0)};return(0,t.watch)(()=>l.modelValue,E=>{E?C(+l.headHeight,!0):C(0)}),()=>{const E=[];let V=null;m.status==="loading"?(V=o?.loading?.()??null,V||(V=(0,t.h)(r,{class:["fox-pull-refresh-container-topbox-icon"]}))):m.status==="pulling"?V=o?.pulling?.()??null:m.status==="loosing"&&(V=o?.loosing?.()??null),V&&E.push(V);const S=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[g.value]);E.push(S);const D=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:p.value},E),z=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[D,o?.default?.()]),A={ref:c,class:v.value};return Kt()?Object.assign(A,{onTouchstart:F,onTouchmove:P,onTouchend:B}):Object.assign(A,{onMousedown:F,onMousemove:P,onMouseup:B}),(0,t.h)("div",A,[z])}}}),{componentName:D3,create:O3,scope:q3}=se("pull-refresh"),H3=O3(R3(D3,q3,Tl)),rr=H3,j3={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function K3(e,n,r){return{props:{...j3},emits:["click","update:modelValue"],setup(l,{emit:a,slots:o}){const{toLocaleRefs:s}=(0,Ae.useFoxI18n)(n),u=s(l,["collapseText","expandText"]),i=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),c=he(l,"modelValue"),d=(0,t.computed)(()=>c.value?u.expandText.value??"":u.collapseText.value??""),m=(0,t.computed)(()=>({[`${e}__text`]:!0})),v=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),g=()=>{a("update:modelValue",!c.value)};return()=>{const w=[];if(d.value){const C=(0,t.h)("span",{class:m.value},[d.value]);w.push(C)}const p={class:v.value},f=(o.icon&&o.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(r);if(f){const C=(0,t.h)("div",p,[f]);w.push(C)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("div",{class:i.value,onClick:g},w)}}}}var{componentName:W3,create:Y3,scope:U3}=se("more-button"),G3=Y3(K3(W3,U3,Ve.ArrowUp)),ar=G3;function X3(e){e.stopPropagation()}var Z3=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Kt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Wt(),r=(l,a,o,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),X3(l),r(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{r(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function J3(e,n){return new Z3(e,n)}var Q3={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},e4=(e,n,r,l=!1)=>({props:{...Q3},emits:["click"],setup(a,{slots:o,emit:s}){const u=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),i=(0,t.computed)(()=>{const b=[`${e}`];return a.customClass&&b.push(a.customClass),b}),c=(0,t.computed)(()=>{const b={};return fe(u.top)||(b.top=u.top),fe(u.right)||(b.right=u.right),fe(u.bottom)||(b.bottom=u.bottom),fe(u.left)||(b.left=u.left),fe(a.width)||(b.width=a.width),fe(a.height)||(b.height=a.height),fe(a.color)||(b.color=a.color),fe(a.background)||(b.background=a.background),fe(a.borderRadius)||(b["border-radius"]=a.borderRadius),fe(a.zIndex)||(b["z-index"]=a.zIndex),b}),d=(0,t.computed)(()=>({[`${e}__icon`]:!0})),m=()=>{s("click")},v=(0,t.ref)(null),g=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},w={x:0,y:0},C=J3(b=>{if(!v.value)return;const y=v.value;g(),u.left=y.offsetLeft,u.top=y.offsetTop,y.style.left=`${u.left}px`,y.style.top=`${u.top}px`,y.style.right=null,y.style.bottom=null,w.x=u.left,w.y=u.top},b=>{if(!v.value)return;const y=v.value;g(),u.left=w.x+b.x,u.top=w.y+b.y,y.style.left=`${u.left}px`,y.style.top=`${u.top}px`});return(0,t.onMounted)(()=>{if(a.draggable&&v.value){const b=[v.value];C.open(b)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&v.value&&C.close()}),()=>{let b=[];const y=typeof o.default=="function"?o.default():[];if(y&&y.length>0)b=y;else{const F=(0,t.h)(r,{class:d.value});b.push(F)}return(0,t.h)("view",{ref:F=>{v.value=F},class:i.value,style:c.value,onClick:m},b)}}}),{componentName:t4,create:l4,scope:n4}=se("floating-button"),r4=l4(e4(t4,n4,Ac,!1)),or=r4,De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null,a4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Kt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Wt(),r=(l,a,o,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),r(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{r(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function la(e,n){return new a4(e,n)}var na=typeof window<"u"&&typeof document<"u",v5=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function go(e){const n=Object.create(null);return(r=>n[r]||(n[r]=e(r)))}var o4=/\B([A-Z])/g,y5=go(e=>e.replace(o4,"-$1").toLowerCase()),i4=/-(\w)/g,b5=go(e=>e.replace(i4,(n,r)=>r?r.toUpperCase():"")),gt=[],ra=e=>{const n=e;n.key==="Escape"&&gt.forEach(r=>r(n))},s4=e=>{(0,t.onMounted)(()=>{gt.length===0&&document.addEventListener("keydown",ra),na&&gt.push(e)}),(0,t.onBeforeUnmount)(()=>{gt=gt.filter(n=>n!==e),gt.length===0&&na&&document.removeEventListener("keydown",ra)})},Kl="fox-focus-trap.focus-after-trapped",Wl="fox-focus-trap.focus-after-released",u4="fox-focus-trap.focusout-prevented",aa={cancelable:!0,bubbles:!1},c4={cancelable:!0,bubbles:!1},oa="foxFocusAfterTrapped",ia="foxFocusAfterReleased",d4=Symbol("foxFocusTrap"),ir=(0,t.ref)(),Ml=(0,t.ref)(0),sr=(0,t.ref)(0),Zt=0,vo=e=>{const n=[],r=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(;r.nextNode();)n.push(r.currentNode);return n},f4=(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},sa=(e,n)=>{for(const r of e)if(!f4(r,n))return r},m4=e=>{const n=vo(e);return[sa(n,e),sa(n.reverse(),e)]},p4=e=>e instanceof HTMLInputElement&&"select"in e,at=(e,n)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==r&&p4(e)&&n&&e.select()}};function ua(e,n){const r=[...e],l=e.indexOf(n);return l!==-1&&r.splice(l,1),r}var h4=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=ua(e,l),e.unshift(l)},remove:l=>{e=ua(e,l),e[0]?.resume?.()}}},g4=(e,n=!1)=>{const r=document.activeElement;for(const l of e)if(at(l,n),document.activeElement!==r)return},ca=h4(),v4=()=>Ml.value>sr.value,Jt=()=>{ir.value="pointer",Ml.value=window.performance.now()},da=()=>{ir.value="keyboard",Ml.value=window.performance.now()},y4=()=>((0,t.onMounted)(()=>{Zt===0&&(document.addEventListener("mousedown",Jt),document.addEventListener("touchstart",Jt),document.addEventListener("keydown",da)),Zt++}),(0,t.onBeforeUnmount)(()=>{Zt--,Zt<=0&&(document.removeEventListener("mousedown",Jt),document.removeEventListener("touchstart",Jt),document.removeEventListener("keydown",da))}),{focusReason:ir,lastUserFocusTimestamp:Ml,lastAutomatedFocusTimestamp:sr}),Qt=e=>new CustomEvent(u4,{...c4,detail:e}),{componentName:S5,create:b4,scope:w5}=se("focus-trap"),S4={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"}},w4=b4({props:S4,emits:[oa,ia,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:r}){const l=(0,t.ref)();let a,o;const{focusReason:s}=y4();s4(p=>{ce(e.trapped)&&!u.paused&&r("release-requested",p)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=p=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:f,altKey:C,ctrlKey:b,metaKey:y,currentTarget:F,shiftKey:P}=p,{loop:B}=e,E=f==="Tab"&&!C&&!b&&!y,V=document.activeElement;if(E&&V){const S=F,[D,z]=m4(S);if(D&&z){if(!P&&V===z){const A=Qt({focusReason:s.value});r("focusout-prevented",A),A.defaultPrevented||(p.preventDefault(),B&&at(D,!0))}else if(P&&[D,S].includes(V)){const A=Qt({focusReason:s.value});r("focusout-prevented",A),A.defaultPrevented||(p.preventDefault(),B&&at(z,!0))}}else if(V===S){const A=Qt({focusReason:s.value});r("focusout-prevented",A),A.defaultPrevented||p.preventDefault()}}};(0,t.provide)(d4,{focusTrapRef:l,onKeydown:i}),(0,t.watch)(()=>e.focusTrapEl,p=>{p&&(l.value=p)},{immediate:!0}),(0,t.watch)([l],([p],[f])=>{p&&(p.addEventListener("keydown",i),p.addEventListener("focusin",m),p.addEventListener("focusout",v)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",m),f.removeEventListener("focusout",v))});const c=p=>{r(oa,p)},d=p=>r(ia,p),m=p=>{const f=(0,t.unref)(l);if(!f)return;const C=p.target,b=p.relatedTarget,y=C&&f.contains(C);ce(e.trapped)||b&&f.contains(b)||(a=b),y&&r("focusin",p),!u.paused&&ce(e.trapped)&&(y?o=C:at(o,!0))},v=p=>{const f=(0,t.unref)(l);if(!(u.paused||!f))if(!e.escape&&ce(e.trapped)){const C=p.relatedTarget;!qe(C)&&!f.contains(C)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const b=Qt({focusReason:s.value});r("focusout-prevented",b),b.defaultPrevented||at(o,!0)}},0)}else{const C=p.target;C&&f.contains(C)||r("focusout",p)}};async function g(){await(0,t.nextTick)();const p=(0,t.unref)(l);if(p){ca.push(u);const f=p.contains(document.activeElement)?a:document.activeElement;if(a=f,!p.contains(f)){const C=new Event(Kl,aa);p.addEventListener(Kl,c),p.dispatchEvent(C),C.defaultPrevented||(0,t.nextTick)(()=>{let b=e.focusStartEl;ya(b)||(at(b),document.activeElement!==b&&(b="first")),b==="first"&&g4(vo(p),!0),(document.activeElement===f||b==="container")&&at(p)})}}}function w(){const p=(0,t.unref)(l);if(p){p.removeEventListener(Kl,c);const f=new CustomEvent(Wl,{...aa,detail:{focusReason:s.value}});p.addEventListener(Wl,d),p.dispatchEvent(f),!f.defaultPrevented&&(s.value=="keyboard"||!v4())&&at(a??document.body,!0),p.removeEventListener(Wl,c),ca.remove(u)}}return(0,t.onMounted)(()=>{ce(e.trapped)&&g(),(0,t.watch)(()=>e.trapped,p=>{ce(p)?g():w()})}),(0,t.onBeforeUnmount)(()=>{ce(e.trapped)&&w()}),()=>typeof n.default=="function"?n.default({"handle-keydown":i}):null}}),x4=w4,{componentName:N4,create:C4,scope:x5}=se("floating-window"),z4=Symbol.for("InnerPageScopeKey"),k4=Symbol.for("PageWrapperKey"),E4={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},_4=C4({inheritAttrs:!1,components:{FoxIcon:N.ElIcon,FocusTrap:x4},props:{...E4},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const r=N4,l=(0,t.ref)(e.modelValue),a=(0,t.computed)(()=>!e.teleport);(0,t.watch)(()=>e.modelValue,h=>{l.value=h});const o=(0,t.computed)(()=>l.value===!1?!1:!V.value),s=(0,t.ref)(e.left),u=(0,t.ref)(e.top),i=(0,t.ref)(e.right),c=(0,t.ref)(e.bottom),d=(0,t.computed)(()=>{const h=["fox-floating-window"];return e.customClass&&h.push(e.customClass),h}),m=(0,t.computed)(()=>{const h={};return ct(s.value)?h.left="auto":h.left=De(s.value),ct(u.value)?h.top="auto":h.top=De(u.value),ct(i.value)?h.right="auto":h.right=De(i.value),ct(c.value)?h.bottom="auto":h.bottom=De(c.value),ct(e.zIndex)||(h["z-index"]=De(e.zIndex)),ct(B.value)||(h.height=B.value),ct(E.value)||(h.width=E.value),h}),v=(0,t.computed)(()=>e.closeIcon??Ve.Close),g=(0,t.computed)(()=>e.collapseIcon??Ve.ArrowUp),w=(0,t.computed)(()=>e.collapseText??""),p=(0,t.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Ve.ArrowRight:e.expandIcon??Ve.ArrowLeft),f=(0,t.computed)(()=>e.expandText??e.title??"展开"),C=(0,t.computed)(()=>({[`${r}__collapse-text`]:!0})),b=(0,t.computed)(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),y=(0,t.ref)(),F=(0,t.ref)(null),P=(0,t.ref)(null),B=(0,t.computed)(()=>De(e.height)||""),E=(0,t.computed)(()=>De(e.width)||""),V=(0,t.ref)(ce(e.collapse)),S=(h,R=!0)=>{V.value!==h&&(V.value=h,h?L():O(),n("update:collapse",h),h&&typeof A.onHide=="function"?A.onHide():!h&&typeof A.onShow=="function"&&A.onShow())};(0,t.watch)(()=>e.collapse,h=>{S(h)});const D=()=>{z()},z=h=>{h=h??!V.value,S(h)};(0,t.provide)(z4,!0);const A={setCollapse:S,setFixedNavVisible:h=>{I.value=h}};(0,t.provide)(k4,A);const Q=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{l.value=!1}):l.value=!1},x=(0,t.ref)(null),k=(0,t.computed)(()=>!e.fixedNavTeleport),M=(0,t.computed)(()=>{const h=["fox-floating-window__fixednav"];return e.expandClass&&h.push(e.expandClass),e.collapsePosition==="left"?h.push("is-left"):e.collapsePosition==="right"&&h.push("is-right"),h}),H=(0,t.ref)(""),U=(0,t.computed)(()=>{const h={};return H.value?h.top=H.value:e.collapseTop&&(h.top=e.collapseTop),h}),Z=(0,t.ref)(V.value),I=(0,t.computed)({set:h=>{Z.value=h},get:()=>l.value===!1?!1:Z.value});let te=null;const K=()=>{typeof te=="function"&&(te(),te=null)},L=()=>{x.value&&x.value.classList.add("slide-in"),I.value=!0,te=()=>{x.value&&x.value.classList.remove("slide-in")}},O=()=>{x.value&&x.value.classList.add("slide-out"),te=()=>{x.value&&x.value.classList.remove("slide-out"),I.value=!1}},j=()=>{s.value=null,u.value=null,i.value=null,c.value=null},_={x:0,y:0},ne=la(h=>{if(!y.value)return;const R=y.value;if(j(),e.origin==="left-top")s.value=R.offsetLeft,u.value=R.offsetTop,_.x=s.value,_.y=u.value;else if(e.origin==="left-bottom"){const q=document.documentElement.clientHeight||document.body.clientHeight;s.value=R.offsetLeft,c.value=q-(R.offsetTop+R.offsetHeight),_.x=s.value,_.y=c.value}else if(e.origin==="right-bottom"){const q=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight;i.value=q-(R.offsetLeft+R.offsetWidth),c.value=J-(R.offsetTop+R.offsetHeight),_.x=i.value,_.y=c.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(R.offsetLeft+R.offsetWidth),u.value=R.offsetTop,_.x=i.value,_.y=u.value},h=>{if(!y.value)return;const R=y.value;j(),e.origin==="left-top"?(s.value=_.x+h.x,u.value=_.y+h.y,R.style.left=De(s.value),R.style.top=De(u.value)):e.origin==="left-bottom"?(s.value=_.x+h.x,c.value=_.y-h.y,R.style.left=De(s.value),R.style.bottom=De(c.value)):e.origin==="right-bottom"?(i.value=_.x-h.x,c.value=_.y-h.y,R.style.right=De(i.value),R.style.bottom=De(c.value)):(i.value=_.x-h.x,u.value=_.y+h.y,R.style.right=De(i.value),R.style.top=De(u.value))}),X={x:0,y:0},G=la(h=>{x.value&&(X.x=x.value.offsetLeft,X.y=x.value.offsetTop)},h=>{x.value&&(H.value=`${X.y+h.y}px`)}),T=()=>{y.value&&(P.value=y.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,t.onMounted)(()=>{if(e.draggable&&y.value){const h=[];F.value&&h.push(F.value),e.footerDraggable&&(T(),P.value&&h.push(P.value)),ne.open(h)}e.collapse===!0&&S(e.collapse,!1),x.value&&G.open(x.value)}),(0,t.onBeforeUnmount)(()=>{e.draggable&&F.value&&ne.close(),x.value&&G.close()}),{classes:d,styles:m,isShow:o,closeIcon:v,onClose:Q,dialogRef:y,headerRef:F,onClickToggle:D,collapseIcon:g,collapseText:w,collapseTextClasses:C,collapseIconClasses:b,expandIcon:p,expandText:f,isShowFixedNav:I,fixedNavRef:x,fixedNavClasses:M,fixedNavStyles:U,onAnimationEnd:K,teleportDisabled:a,fixedNavTeleportDisabled:k}}}),T4={ref:"headerRef",class:"fox-floating-window__header"},$4={class:"fox-floating-window__title"},B4={class:"fox-floating-window__tools"},V4={class:"fox-floating-window__body"},M4={class:"fox-floating-window__fixednav__text"};function I4(e,n,r,l,a,o){const s=(0,t.resolveComponent)("FoxIcon"),u=(0,t.resolveComponent)("FocusTrap");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,t.createVNode)(t.Transition,{name:"fox-floating-window-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"dialogRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),tabindex:"-1"},[(0,t.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",T4,[(0,t.renderSlot)(e.$slots,"header",{},()=>[(0,t.createElementVNode)("span",$4,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("div",B4,[e.showCollapse?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createElementVNode)("span",{class:(0,t.normalizeClass)(e.collapseTextClasses)},(0,t.toDisplayString)(e.collapseText),3),(0,t.createVNode)(s,{class:(0,t.normalizeClass)(e.collapseIconClasses)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,t.createCommentVNode)("",!0),e.showClose?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0)])])],512),(0,t.createElementVNode)("div",V4,[(0,t.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"fixedNavRef",class:(0,t.normalizeClass)(e.fixedNavClasses),style:(0,t.normalizeStyle)(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,t.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,t.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,t.createElementVNode)("div",M4,(0,t.toDisplayString)(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var ur=Ue(_4,[["render",I4]]);function L4(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(r,{slots:l}){const a=e,o=(0,t.computed)(()=>({[a]:!0})),s=(0,t.computed)(()=>r.icon?{[`${a}__icon`]:!0,[`${a}__icon-${r.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${r.type}`]:!0}),u=(0,t.computed)(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),i=(0,t.computed)(()=>{const d={[`${a}__text`]:!0,[`${a}__text-${r.type}`]:!0};return r.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=(0,t.computed)(()=>r.color?{color:r.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const g={class:s.value,style:u.value};d=(0,t.h)(r.icon??"div",g)}const m=(0,t.h)("div",{class:i.value,style:c.value},l.default?l.default():[]),v={class:o.value};return r.textPosition==="right"?(0,t.h)("div",v,[d,m]):(0,t.h)("div",v,[m,d])}}}}var{componentName:A4,create:P4,scope:F4}=se("indicator"),R4=P4(L4(A4,F4)),cr=R4;function D4(e){return e===window}var yo=e=>{const n=(0,t.unref)(e);if(D4(n)){const r=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:r,bottom:l,width:r,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:O4,create:q4,scope:N5}=se("tour"),H4=q4({components:{Close:Ve.Close,ElPopover:N.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 r=O4,l=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),a=(0,t.ref)({}),o=(0,t.computed)(()=>`${r}`),s=(0,t.computed)(()=>{const{offset:w,maskWidth:p,maskHeight:f}=e,{width:C,height:b,left:y,top:F}=a.value,P=e.steps[l.active].offset??w,B=[y+C/2,F+b/2],E=Number(p||C),V=Number(f||b);return{width:`${E+ +P.left+P.right}px`,height:`${V+P.top+P.bottom}px`,top:`${B[1]-V/2-+P.top}px`,left:`${B[0]-E/2-+P.left}px`}}),u=w=>{w=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,(0,t.nextTick)(()=>{l.showPopup=!0,d()}),n("change",l.active)},i=w=>w.popoverWidth??e.width,c=w=>w.location??e.location,d=()=>{const w=yo(document.querySelector(`${e.steps[l.active].target}`));a.value={x:w.left,y:w.top,top:w.top,left:w.left,width:w.width,height:w.height}},m=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&m()},g=(w,p=0)=>{w&&d(),e.steps,l.active=p,l.showTour=w,l.showPopup=w};return(0,t.onMounted)(()=>{g(e.modelValue,e.current)}),(0,t.watch)(()=>e.modelValue,w=>{g(w)}),{...(0,t.toRefs)(l),classes:o,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:c,close:m,handleClickMask:v}}}),j4={key:0,class:"fox-tour__content"},K4={key:0,class:"fox-tour__content-top"},W4={class:"fox-tour__content-inner"},Y4={class:"fox-tour__content-bottom"},U4={class:"fox-tour__content-bottom-init"},G4={class:"fox-tour__content-bottom-operate"},X4={key:1,class:"fox-tour__content fox-tour__content-tile"},Z4={class:"fox-tour__content-inner"};function J4(e,n,r,l,a,o){const s=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("fox-button"),i=(0,t.resolveComponent)("ElPopover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(c,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:(0,t.withCtx)(()=>[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",j4,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",K4,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[(0,t.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",W4,(0,t.toDisplayString)(c.content),1),(0,t.createElementVNode)("div",Y4,[(0,t.createElementVNode)("div",U4,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",G4,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextStepText),1)]),_:1})):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",X4,[(0,t.createElementVNode)("div",Z4,(0,t.toDisplayString)(c.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,t.createCommentVNode)("",!0)]))),128))],2)}var dr=Ue(H4,[["render",J4]]);function Q4(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(r,{slots:l}){return Aa(r.name,()=>r.config),qe(r.innerPageScope)||bn(r.innerPageScope),qe(r.abstractPageScope)||Da(r.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:e5,create:t5,scope:l5}=se("domain-provider"),n5=t5(Q4(e5,l5)),fr=n5,r5={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 a5(e,n){return{inheritAttrs:!1,props:r5,emits:["change"],setup(r,{slots:l,emit:a}){if(st&&window.IntersectionObserver){const o=new WeakMap;let s=new Map;const u=(v,g)=>{if(d===null){s.set(v,{visible:null,callback:g});return}o.has(v)&&d.unobserve(v),o.set(v,{visible:null,callback:g}),d.observe(v)},i=v=>{if(d===null){s.delete(v);return}o.has(v)&&(o.delete(v),d.unobserve(v))};let c=r.initialVisibleObserverSize;Ki({acquire:()=>{if(r.loadPolicy==="always")return!0;const v=c>0;return c--,v},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:u,unobserve:i});let d=null;const m=(v,g,w)=>{d=new IntersectionObserver(p=>{if(a("change",p),r.loadPolicy!=="always")for(let f of p){let C=!1;f.intersectionRatio>0&&(C=!0);const b=o.get(f.target);if(b)try{if(r.loadPolicy==="lazy"&&!C&&b.visible!==null)return;b.visible=C,b.callback(C)}catch(y){console.error(y)}}},{root:v,rootMargin:g,threshold:w}),s.forEach((p,f)=>{o.set(f,p),d?.observe(f)}),s.clear()};(0,t.watch)([()=>r.root,()=>r.disabled],([v,g])=>{if(g||!v||d)return;let w=null;typeof v=="string"?w=document.querySelector(v):w=v,w&&m(w,r.rootMargin,r.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:o5,create:i5,scope:s5}=se("rolling-provider"),u5=i5(a5(o5,s5)),mr=u5,c5=[wn,Nn,Cn,zn,En,Ce,Cl,zl,Tn,Ee,$n,Bn,Vn,Mn,In,Ln,An,Pn,Fn,Rn,Dn,_l,On,qn,Hn,jn,Kn,Wn,Yn,Un,Gn,$l,Bl,Xn,Zn,Jn,Qn,Vl,er,kt,lr,nr,rr,ar,or,ur,El,Dt,Nl,cr,kl,dr,fr,mr],d5=new vi(c5,[Si],"4.0.0");exports.AbstractPageScopeKey=Sn;exports.AutocompleteItem=Fn;exports.FoxAutocompleteItem=Fn;exports.Broadcast=gn;exports.BroadcastKey=be;exports.ButtonsItem=Tn;exports.FoxButtonsItem=Tn;exports.CascaderItem=Pn;exports.FoxCascaderItem=Pn;exports.CheckboxItem=Hn;exports.FoxCheckboxItem=Hn;exports.Content=zn;exports.FoxContent=zn;exports.DataItemsKey=ht;exports.DateItem=Vn;exports.FoxDateItem=Vn;exports.DateUtils=Ke;exports.DialogItem=Qn;exports.FoxDialogItem=Qn;exports.Domain=fl;exports.DomainKey=Oe;exports.DomainProvider=fr;exports.FoxDomainProvider=fr;exports.FloatingButton=or;exports.FoxFloatingButton=or;exports.FloatingWindow=ur;exports.FoxFloatingWindow=ur;exports.FooterBar=Cn;exports.FoxFooterBar=Cn;exports.FoxAffix=N.ElAffix;exports.FoxAlert=N.ElAlert;exports.FoxAnchor=N.ElAnchor;exports.FoxAnchorLink=N.ElAnchorLink;exports.FoxAside=N.ElAside;exports.FoxAutoResizer=N.ElAutoResizer;exports.FoxAutocomplete=N.ElAutocomplete;exports.FoxAvatar=N.ElAvatar;exports.FoxBacktop=N.ElBacktop;exports.FoxBadge=N.ElBadge;exports.FoxBreadcrumb=N.ElBreadcrumb;exports.FoxBreadcrumbItem=N.ElBreadcrumbItem;exports.FoxButton=N.ElButton;exports.FoxButtonGroup=N.ElButtonGroup;exports.FoxCalendar=N.ElCalendar;exports.FoxCard=N.ElCard;exports.FoxCarousel=N.ElCarousel;exports.FoxCarouselItem=N.ElCarouselItem;exports.FoxCascader=N.ElCascader;exports.FoxCascaderPanel=N.ElCascaderPanel;exports.FoxCheckTag=N.ElCheckTag;exports.FoxCheckbox=N.ElCheckbox;exports.FoxCheckboxButton=N.ElCheckboxButton;exports.FoxCheckboxGroup=N.ElCheckboxGroup;exports.FoxCol=N.ElCol;exports.FoxCollapse=N.ElCollapse;exports.FoxCollapseItem=N.ElCollapseItem;exports.FoxCollapseTransition=N.ElCollapseTransition;exports.FoxColorPicker=N.ElColorPicker;exports.FoxConfigProvider=N.ElConfigProvider;exports.FoxContainer=N.ElContainer;exports.FoxCountdown=N.ElCountdown;exports.FoxDatePicker=N.ElDatePicker;exports.FoxDescriptions=N.ElDescriptions;exports.FoxDescriptionsItem=N.ElDescriptionsItem;exports.FoxDialog=N.ElDialog;exports.FoxDivider=N.ElDivider;exports.FoxDrawer=N.ElDrawer;exports.FoxDropdown=N.ElDropdown;exports.FoxDropdownItem=N.ElDropdownItem;exports.FoxDropdownMenu=N.ElDropdownMenu;exports.FoxEmpty=N.ElEmpty;exports.FoxFooter=N.ElFooter;exports.FoxForm=N.ElForm;exports.FoxFormItem=N.ElFormItem;exports.FoxGroup=En;exports.Group=En;exports.FoxGroupSetting=Yn;exports.GroupSetting=Yn;exports.FoxHeader=N.ElHeader;exports.FoxHeaderBar=Nn;exports.HeaderBar=Nn;exports.FoxHintText=Ee;exports.HintText=Ee;exports.FoxIcon=N.ElIcon;exports.FoxImage=N.ElImage;exports.FoxImageViewer=N.ElImageViewer;exports.FoxIndicator=cr;exports.Indicator=cr;exports.FoxInfiniteLoading=nr;exports.InfiniteLoading=nr;exports.FoxInput=N.ElInput;exports.FoxInputItem=$n;exports.InputItem=$n;exports.FoxInputNumber=N.ElInputNumber;exports.FoxInputNumberItem=An;exports.InputNumberItem=An;exports.FoxInputTag=N.ElInputTag;exports.FoxItem=Ce;exports.Item=Ce;exports.FoxLink=N.ElLink;exports.FoxLinkItem=Gn;exports.LinkItem=Gn;exports.FoxMain=N.ElMain;exports.FoxMapping=Dt;exports.Mapping=Dt;exports.FoxMention=N.ElMention;exports.FoxMenu=N.ElMenu;exports.FoxMenuItem=N.ElMenuItem;exports.FoxMenuItemGroup=N.ElMenuItemGroup;exports.FoxMessage=N.ElMessage;exports.FoxMessageBox=N.ElMessageBox;exports.FoxMoneyItem=Ln;exports.MoneyItem=Ln;exports.FoxMoreButton=ar;exports.MoreButton=ar;exports.FoxNotification=N.ElNotification;exports.FoxOption=N.ElOption;exports.FoxOptionGroup=N.ElOptionGroup;exports.FoxOverLay=Vl;exports.OverLay=Vl;exports.FoxPage=wn;exports.Page=wn;exports.FoxPageHeader=N.ElPageHeader;exports.FoxPagination=N.ElPagination;exports.FoxPopconfirm=N.ElPopconfirm;exports.FoxPopover=N.ElPopover;exports.FoxPopoverDialog=El;exports.PopoverDialog=El;exports.FoxPopper=N.ElPopper;exports.FoxPopup=er;exports.Popup=er;exports.FoxPrice=Nl;exports.Price=Nl;exports.FoxProgress=N.ElProgress;exports.FoxPullRefresh=rr;exports.PullRefresh=rr;exports.FoxRadio=N.ElRadio;exports.FoxRadioButton=N.ElRadioButton;exports.FoxRadioGroup=N.ElRadioGroup;exports.FoxRadioItem=qn;exports.RadioItem=qn;exports.FoxRate=N.ElRate;exports.FoxRateItem=jn;exports.RateItem=jn;exports.FoxResult=N.ElResult;exports.FoxRollingProvider=mr;exports.RollingProvider=mr;exports.FoxRow=N.ElRow;exports.FoxRowItem=zl;exports.RowItem=zl;exports.FoxScrollbar=N.ElScrollbar;exports.FoxSearchBar=lr;exports.SearchBar=lr;exports.FoxSegmented=N.ElSegmented;exports.FoxSelect=N.ElSelect;exports.FoxSelectItem=Bn;exports.SelectItem=Bn;exports.FoxSelectV2=N.ElSelectV2;exports.FoxSkeleton=N.ElSkeleton;exports.FoxSkeletonItem=N.ElSkeletonItem;exports.FoxSlider=N.ElSlider;exports.FoxSlotItem=Cl;exports.SlotItem=Cl;exports.FoxSpace=N.ElSpace;exports.FoxStatistic=N.ElStatistic;exports.FoxStep=N.ElStep;exports.FoxSteps=N.ElSteps;exports.FoxStepsBar=Jn;exports.StepsBar=Jn;exports.FoxSubMenu=N.ElSubMenu;exports.FoxSwitch=N.ElSwitch;exports.FoxSwitchItem=Kn;exports.SwitchItem=Kn;exports.FoxTabPane=N.ElTabPane;exports.FoxTable=N.ElTable;exports.FoxTableColumn=N.ElTableColumn;exports.FoxTableItem=On;exports.TableItem=On;exports.FoxTableMappingColumn=Rn;exports.TableMappingColumn=Rn;exports.FoxTableRadioColumn=Dn;exports.TableRadioColumn=Dn;exports.FoxTableSetting=_l;exports.TableSetting=_l;exports.FoxTableV2=N.ElTableV2;exports.FoxTabs=N.ElTabs;exports.FoxTabsBar=$l;exports.TabsBar=$l;exports.FoxTabsContainer=Bl;exports.TabsContainer=Bl;exports.FoxTabsFrame=Zn;exports.TabsFrame=Zn;exports.FoxTabsPane=Xn;exports.TabsPane=Xn;exports.FoxTag=N.ElTag;exports.FoxText=kl;exports.Text=kl;exports.FoxTimeItem=Mn;exports.TimeItem=Mn;exports.FoxTimePicker=N.ElTimePicker;exports.FoxTimeSelect=N.ElTimeSelect;exports.FoxTimeSelectItem=In;exports.TimeSelectItem=In;exports.FoxTimeline=N.ElTimeline;exports.FoxTimelineItem=N.ElTimelineItem;exports.FoxToast=kt;exports.Toast=kt;exports.FoxTooltip=N.ElTooltip;exports.FoxTour=dr;exports.Tour=dr;exports.FoxTransfer=N.ElTransfer;exports.FoxTree=N.ElTree;exports.FoxTreeItem=Un;exports.TreeItem=Un;exports.FoxTreeSelect=N.ElTreeSelect;exports.FoxTreeSelectItem=Wn;exports.TreeSelectItem=Wn;exports.FoxTreeV2=N.ElTreeV2;exports.FoxUpload=N.ElUpload;exports.FoxWatermark=N.ElWatermark;exports.InnerPageScopeKey=yn;exports.PriorityPolicy=Ie;exports.UniqueID=Qa;exports.ValidateSchema=Ma;exports.ValidateSchemaKey=We;exports.cancelRaf=Bo;exports.clamp=Xo;exports.clearNonNumber=jo;exports.compareTo=Zl;exports.createBroadcast=ul;exports.createValidateSchema=cl;exports.debounce=je;exports.debounceRef=oi;exports.decimalLength=Ea;exports.default=d5;exports.defineBroadcast=Zo;exports.defineConfigDomain=Aa;exports.defineDataItem=Pa;exports.defineDomain=vn;exports.defineItem=$e;exports.definePageState=Ra;exports.defineSimpleItem=Fa;exports.deleteGlobalValidator=li;exports.disabledProperty=Re;exports.divide=fn;exports.excludeProps=Pe;exports.extend=wt;exports.floatData=Yo;exports.getGlobalIcons=Ya;exports.getGlobalValidateCheckEvents=$a;exports.getGlobalValidateResetEvents=Va;exports.getPageContentAreaHeight=nl;exports.getPageContentAreaWidth=rl;exports.getPageFooterAreaHeight=hl;exports.getPageHeaderAreaHeight=pl;exports.getRootDomain=yt;exports.hasSymbol=wa;exports.includeProps=mt;exports.indexOf=Ko;exports.injectAbstractPageScope=jt;exports.injectInnerPageScope=Ht;exports.integerLength=ka;exports.isArray=Mo;exports.isArrayLike=Ca;exports.isBrowser=st;exports.isDate=Ao;exports.isDisplayNone=pn;exports.isESModule=Ro;exports.isEmptyString=fe;exports.isEqual=Je;exports.isFunction=Jl;exports.isHidden=xa;exports.isMap=Io;exports.isNil=qe;exports.isNumberString=hn;exports.isObject=Ye;exports.isPlainObject=Fo;exports.isPromise=ba;exports.isRegExp=Ql;exports.isSet=Lo;exports.isString=ya;exports.isSubPage=ci;exports.isSymbol=Po;exports.isTouch=Kt;exports.isWindow=Na;exports.kebabToPascal=Ft;exports.lastIndexOf=Wo;exports.makeArray=Ho;exports.merge=za;exports.multiply=ha;exports.negate=ga;exports.nextTick=Oo;exports.numberFormat=il;exports.objectToString=Sa;exports.once=ii;exports.overrideGlobalIcons=Ei;exports.overrideGlobalValidateHandler=ei;exports.padZero=Go;exports.pascalToKebab=_a;exports.preventDefault=Uo;exports.property=Le;exports.provideAbstractPageScope=Da;exports.provideInnerPageScope=bn;exports.raf=mn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=ni;exports.setGlobalValidateHandler=Qo;exports.setGlobalValidateMessages=ai;exports.setGlobalValidateResetEvents=ri;exports.setGlobalValidator=ti;exports.throttle=La;exports.toBoolean=ce;exports.toNumber=_e;exports.toPadding=Ze;exports.toPx=de;exports.toPxDesc=ui;exports.toPxString=ve;exports.toTypeString=sl;exports.toValue=he;exports.tryTimes=dl;exports.typeOf=tl;exports.unNumberFormat=va;exports.updatePageState=en;exports.useBroadcast=Mt;exports.useDomain=ut;exports.useExpose=Ne;exports.useInnerSize=gl;exports.usePageState=ml;exports.usePosition=_n;exports.useRawTouch=Wt;exports.useRect=yo;exports.useSize=xn;exports.useSlotChildren=kn;exports.useTouch=S2;exports.valueLength=zt;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var _o=Object.create,Xr=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,To=Object.getOwnPropertyNames,$o=Object.getPrototypeOf,Bo=Object.prototype.hasOwnProperty,nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vo=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=To(t),o=0,u=n.length,s;o<u;o++)s=n[o],!Bo.call(e,s)&&s!==r&&Xr(e,s,{get:(i=>t[i]).bind(null,s),enumerable:!(a=Eo(t,s))||a.enumerable});return e},rt=(e,t,r)=>(r=e!=null?_o($o(e)):{},Vo(t||!e||!e.__esModule?Xr(r,"default",{value:e,enumerable:!0}):r,e));let l=require("vue"),ft=require("@fox-js/validator"),N=require("element-plus"),Ve=require("@element-plus/icons-vue"),Pe=require("@fox-js/i18n");var Zt=window,Mo=typeof window<"u";function Io(){return typeof Zt<"u"?Zt.requestAnimationFrame||Zt.webkitRequestAnimationFrame||function(e){Zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Lo(e){Mo?cancelAnimationFrame(e):clearTimeout(e)}var Zr=Io();function rl(e,t="0"){let r=0,a=-1;e[0]=="-"&&(r++,a=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,a=2,t=t.substring(1),t.length),e=Le(e),t=Le(t),[e,t]=dn(Le(e),Le(t)),r==1&&(a==1?e=Fl(e):t=Fl(t));let n=Jr(e,t);return r?r==2?"-"+Le(n):e.length<n.length?Le(n.substring(1)):"-"+Le(Fl(n)):Le(n)}function Fl(e){let t="",r=e.length,a=e.split(".")[1],n=a?a.length:0;for(let u=0;u<r;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let o=n>0?"0."+new Array(n).join("0")+"1":"1";return Jr(t,o)}function Le(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function dn(e,t){let r=e.split("."),a=t.split("."),n=r[0].length,o=a[0].length;return n>o?a[0]=new Array(Math.abs(n-o)+1).join("0")+(a[0]?a[0]:""):r[0]=new Array(Math.abs(n-o)+1).join("0")+(r[0]?r[0]:""),n=r[1]?r[1].length:0,o=a[1]?a[1].length:0,(n||o)&&(n>o?a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=a[0]+(a[1]?"."+a[1]:""),[e,t]}function Jr(e,t){[e,t]=dn(e,t);let r="",a=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){r="."+r;continue}let o=parseInt(e[n])+parseInt(t[n])+a;r=o%10+r,a=Math.floor(o/10)}return a?a.toString()+r:r}var ze=(function(e){return 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})({});function Rt(e,t=0,r=ze.HALF_EVEN){if(r===ze.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let a=!1;e[0]==="-"&&(a=!0,e=e.substring(1));let n=e.split("."),o=n[0],u=n[1];if(t<0){if(t=-t,o.length<=t)return"0";{let i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+u,i=Rt(e,0,r),(a?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,vr(n[1],o,a,r)?(a?"-":"")+Rl(o):(a?"-":"")+o;if(n[1]){if(n[1].length<t)return(a?"-":"")+o+"."+n[1]+new Array(t-n[1].length+1).join("0")}else return(a?"-":"")+o+"."+new Array(t+1).join("0");u=n[1].substring(0,t);let s=n[1].substring(t);return s&&vr(s,u,a,r)&&(u=Rl(u),u.length>t)?(a?"-":"")+Rl(o,parseInt(u[0]))+"."+u.substring(1):(a?"-":"")+o+"."+u}function vr(e,t,r,a){if(!e||e===new Array(e.length+1).join("0")||a===ze.DOWN||!r&&a===ze.FLOOR||r&&a===ze.CEILING)return!1;if(a===ze.UP||r&&a===ze.FLOOR||!r&&a===ze.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(a){case ze.HALF_DOWN:return!1;case ze.HALF_UP:return!0;case ze.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rl(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,a="";for(let n=r;n>=0;n--){let o=parseInt(e[n])+t;o==10?(t=1,o=0):t=0,a+=o}return t&&(a+=t),a.split("").reverse().join("")}function Gl(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=$t(e),t=$t(t);let a=0,n=0;e.indexOf(".")!=-1&&(a=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(n=t.length-t.indexOf(".")-1);let o=a+n;if(e=$t(e.replace(".","")),t=$t(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let u=t.length,s=0,i=[],f=u-1,m="";for(let c=0;c<u;c++)i[c]=e.length-1;for(let c=0;c<2*e.length;c++){let x=0;for(let C=t.length-1;C>=f&&C>=0;C--)i[C]>-1&&i[C]<e.length&&(x+=parseInt(e[i[C]--])*parseInt(t[C]));x+=s,s=Math.floor(x/10),m=x%10+m,f--}return m=$t(Ao(m,o)),r==1&&(m="-"+m),m}function Ao(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function $t(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 Xl(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let a=0;t[0]=="-"&&(t=t.substring(1),a++),e[0]=="-"&&(e=e.substring(1),a++);var n=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Le(t.replace(".","")),n>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Le(e+new Array(n+1).join("0"));else if(n>f)e=e.replace(".",""),e=Le(e+new Array(n-f+1).join("0"));else if(n<f){e=e.replace(".","");let m=e.length-f+n;e=Le(e.substring(0,m)+"."+e.substring(m))}else n==f&&(e=Le(e.replace(".","")))}let o=0,u=t.length,s="",i=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),i.indexOf(".")>-1){let f=i.length-i.indexOf(".")-1;i=i.replace(".",""),u>i.length&&(f+=u-i.length,i=i+new Array(u-i.length+1).join("0")),o=f,s="0."+new Array(f).join("0")}for(r=r+2;o<=r;){let f=0;for(;parseInt(i)>=parseInt(t);)i=rl(i,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(s+="."),o++,i=i+"0")}return(a==1?"-":"")+Le(Rt(s,r-2))}function Zl(e,t){return e=e.toString(),t=t.toString(),t=Jl(t),rl(e,t)}function Jl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function yr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),br(e),br(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let a=Zl(e,Gl(t,Rt(Xl(e,t),0,ze.FLOOR)));return r+a}function br(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Sr(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=dn(e,t),e.localeCompare(t)==0)return 0;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return e[a]>t[a]?r?-1:1:r?1:-1;return 0}var Ht=class pe{value;static RoundingModes=ze;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,a]=t.split(/[eE]/);r=Le(r);let n="";r[0]=="-"&&(n="-",r=r.substring(1)),r.indexOf(".")>=0?(a=parseInt(a)+r.indexOf("."),r=r.replace(".","")):a=parseInt(a)+r.length,r.length<a?t=n+r+new Array(a-r.length+1).join("0"):r.length>=a&&a>0?t=n+Le(r.substring(0,a))+(r.length>a?"."+r.substring(a):""):t=n+"0."+new Array(-a+1).join("0")+r}return t}constructor(t="0"){this.value=pe.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,a){if(!(r||a))r=3,a=",";else if(!(r&&a))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=pe.validate(t);let n=t.charAt(0)=="-";n&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var u="",s=o;s>0;)s<r?(r=s,s=0):s-=r,u=t.substring(s,s+r)+(s<o-r&&s>=0?a:"")+u;return(n?"-":"")+u+t.substring(o)}getPrettyValue(t,r){return pe.getPrettyValue(this.value,t,r)}static round(t,r=0,a=ze.HALF_EVEN){if(t=pe.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Rt(t,r,a)}round(t=0,r=ze.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new pe(Rt(this.value,t,r))}static floor(t){return t=pe.validate(t),t.indexOf(".")===-1?t:pe.round(t,0,ze.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,ze.FLOOR)}static ceil(t){return t=pe.validate(t),t.indexOf(".")===-1?t:pe.round(t,0,ze.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,ze.CEILING)}static add(t,r){return t=pe.validate(t),r=pe.validate(r),rl(t,r)}add(t){return new pe(rl(this.value,t.getValue()))}static subtract(t,r){return t=pe.validate(t),r=pe.validate(r),Zl(t,r)}subtract(t){return new pe(Zl(this.value,t.getValue()))}static multiply(t,r){return t=pe.validate(t),r=pe.validate(r),Gl(t,r)}multiply(t){return new pe(Gl(this.value,t.getValue()))}static divide(t,r,a){return t=pe.validate(t),r=pe.validate(r),Xl(t,r,a)}divide(t,r){return new pe(Xl(this.value,t.getValue(),r))}static modulus(t,r){return t=pe.validate(t),r=pe.validate(r),yr(t,r)}modulus(t){return new pe(yr(this.value,t.getValue()))}static compareTo(t,r){return t=pe.validate(t),r=pe.validate(r),Sr(t,r)}compareTo(t){return Sr(this.value,t.getValue())}static negate(t){return t=pe.validate(t),Jl(t)}negate(){return new pe(Jl(this.value))}};function Qr(e,t){return Ht.multiply(`${e}`,`${t}`)}function fn(e,t,r=8){return Ht.divide(`${e}`,`${t}`,r)}var I5=Ht.RoundingModes;function Ql(e,t){return e=`${e}`,t=`${t}`,Ht.compareTo(e,t)}function ea(e){return Ht.negate(e)}function dl(e,t=-1,r=!1,a=3,n=","){let o=`${e}`;if(o.length==0||o==="-")return"";let u=o.charAt(0);u=="-"?o=o.substring(1):u="";let s=o,i="",f=o.indexOf(".");f!=-1&&(s=o.substring(0,f),i=o.substring(f+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let m;if(a>0){let c="",x=s.split("").reverse();for(let C=0;C<x.length;C++)c+=x[C]+((C+1)%a==0&&C+1!=x.length?n:"");i.length==0?m=`${u}${c.split("").reverse().join("")}`:m=`${u}${c.split("").reverse().join("")}.${i}`}else i.length==0?m=`${u}${s}`:m=`${u}${s}.${i}`;return m}function ta(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let a=t.replace(/[^\d\.-]/g,"");return`${r}${a}`}var mn=Zr,Po=Array.isArray,Fo=e=>fl(e)==="[object Map]",Ro=e=>fl(e)==="[object Set]",Do=e=>e instanceof Date,en=e=>typeof e=="function",la=e=>typeof e=="string",Oo=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",na=e=>Xe(e)&&en(e.then)&&en(e.catch),ra=Object.prototype.toString,fl=e=>ra.call(e),qo=e=>fl(e)==="[object Object]",aa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ho(e){return e.__esModule||aa&&e[Symbol.toStringTag]==="Module"}var jo=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function wt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,a=e.length,n=!1;for(typeof t=="boolean"&&(n=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<a;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let u in o){let s=t[u],i=o[u];if(s!==i)if(n===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[u]=wt(n,f,i)}else i!==void 0&&(t[u]=i)}}return t}var Dl=jo?Promise.resolve():null;function Ko(e,...t){Dl!==null?t&&t.length>0?Dl.then(()=>{e(t)}):Dl.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function de(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ke(e){return typeof e=="number"?e:Number(e)}var Wo={"[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 al(e){let t=Object.prototype.toString.call(e);return e==null?String(e):Wo[t]||"object"}function oa(e){if(!e||e.nodeType!==1)return!0;let t=e;for(;t;){if(t.hidden)return!0;const r=window.getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!0;t=t.parentElement}return!1}function pn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let t=e.parentElement;for(;t;){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function ia(e){return e&&typeof e=="object"&&"setInterval"in e}function sa(e){let t=!!e&&"length"in e&&e.length,r=al(e);return r==="function"||ia(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function ua(e,t){let r=+t.length,a=0,n=e.length;for(;a<r;a++)e[n++]=t[a];return e.length=n,e}function Yo(e,t=[]){let r=t;return e!=null&&(sa(Object(e))?ua(r,typeof e=="string"?[e]:e):r.push(e)),r}function et(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=al(e);if(r!==al(t))return!1;if(r==="object"){let a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let o=0;o<a.length;o++){let u=a[o],s=e[u],i=t[u];if(!et(s,i))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],o=t[a];if(!et(n,o))return!1}return!0}return!1}var ut=typeof window<"u";function Ae(e){return e==null}function tn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null||typeof e!="string"?!1:e.length===0;function hn(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ca(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function da(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function wr(e,t,r){const a=e.indexOf(t);return a===-1?e:t==="-"&&a!==0?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(r,"")}function Uo(e,t=!0,r=!0){t?e=wr(e,".",/\./g):e=e.replace(/\./g,""),r?e=wr(e,"-",/-/g):e=e.replace(/-/,"");const a=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(a,"")}function Go(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(et(e,r))return!0}):t.indexOf(e)}function Xo(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(a=>{if(et(e,a))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function jt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...t){const r={};return t.forEach(a=>{for(const n in a)r[n]=e[n]}),r}function Fe(e,...t){const r=[];t.forEach(n=>{Reflect.apply([].push,r,Reflect.ownKeys(n))});const a={};for(const n in e)r.includes(n)||(a[n]=e[n]);return a}var Zo=(e,t,r)=>{const a=Object.assign({},e),n=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(a).forEach(o=>{n.hasOwnProperty(o)?typeof n[o]=="string"&&(a[o]=t[n[o]]):t[o]&&(a[o]=t[o])}),a):e};function Jo(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&e.stopPropagation()}var Qo=(e,t=2)=>{for(e+="";e.length<t;)e="0"+e;return e.toString()},ei=(e,t,r)=>Math.min(Math.max(e,t),r);function Dt(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function fa(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var we=Symbol.for("BroadcastKey"),gn=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,t,r){this.parent=e,this.proxy=t,this.name=r,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const t=this.children.findIndex(r=>e===r);t!==-1&&this.children.splice(t,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,t,r){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=e.uniqueId,n={matched:e,action:t,args:r};return this.persistantMessages.set(a,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(t=>{e.push(t)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,t){if(!t||t.messagingPolicy==="Once"&&t.resolved===!0)return!1;let r=!1;return!t.name||t.name==="*"||t.name==="+"||tn(t.name)&&e&&t.name.test(e)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[e]):t.name===e&&(r=!0),r}trigger(e,t,r){let a=null;const n=this.callbacks.get(t);typeof n=="function"&&(a=Reflect.apply(n,this.proxy,[...r]));const o=this.proxy??{};typeof o[t]=="function"&&(a=Reflect.apply(o[t],o,[...r])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(a)}pull(){let e=this.parent;for(;e;){const t=e.getPersistantMessages();Array.isArray(t)&&t.length>0&&t.forEach(r=>{if(this.isMatched(this.name,r.matched))try{this.trigger(r.matched,r.action,r.args)}catch(a){console.error(a)}}),e=e.parent}}emit(e,t,...r){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const o=e.resolve,u=e.uniqueId??"",s=(...i)=>{this.deletePersistantMessage(u),typeof o=="function"&&o(...i)};e.resolve=s}e.cachePolicy="None"}let a=!1;!e.name||e.name==="*"?a=!0:e.name==="+"?(a=!1,e.name="*"):tn(e.name)&&this.name&&e.name.test(this.name)?a=!0:typeof e.name=="function"?a=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(a=!0);const n=[];if(a){const o=this.callbacks.get(t);if(typeof o=="function"){const s=Reflect.apply(o,this.proxy,[...r]);s!=null&&n.push(s)}const u=this.proxy??{};if(typeof u[t]=="function"){const s=Reflect.apply(u[t],u,[...r]);s!=null&&n.push(s)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(o=>{const u=Reflect.apply(o.emit,o,[{...e},t,...r]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,n,[...u])}),n}emitToChildren(e,t,...r){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const n=e.resolve,o=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(o),typeof n=="function"&&n(...s)};e.resolve=u}e.cachePolicy="None"}const a=[];return this.children.forEach(n=>{const o=Reflect.apply(n.emit,n,[{...e},t,...r]);o!=null&&Array.isArray(o)&&Reflect.apply([].push,a,[...o])}),a}on(e,t){this.callbacks.set(e,t)}};function ml(e,t,r,a){const n=new gn(t,e,r);if(a&&typeof a=="object")for(const o in a)n.on(o,a[o]);return n}function ti(e,t,r){const a=r;if(a[we])return a[we];const n=new gn((0,l.inject)(we,null),r,e);if(t&&typeof t=="object")for(const o in t)n.on(o,t[o]);return a[we]=n,(0,l.provide)(we,n),(0,l.onUnmounted)(()=>{n.destroy(),a[we]=void 0}),n}function Lt(e=null){return e||(e=(0,l.getCurrentInstance)()?.proxy??null),e?e[we]??(0,l.inject)(we,null):(0,l.inject)(we,null)}var li=class{error(e,t){const r=t,a=t||(0,l.hasInjectionContext)()?Lt(t):null;a?a.emit({name:"*"},"setErrorTip",e):typeof r.setErrorTip=="function"&&r.setErrorTip(e)}reset(e){const t=e,r=e||(0,l.hasInjectionContext)()?Lt(e):null;r?r.emit({name:"*"},"setErrorTip",""):typeof t.setErrorTip=="function"&&t.setErrorTip("")}success(e){const t=e,r=e||(0,l.hasInjectionContext)()?Lt(e):null;r?r.emit({name:"*"},"setErrorTip",""):typeof t.setErrorTip=="function"&&t.setErrorTip("")}decorate(e,t,r){Array.isArray(e)||(e=[e]);const a=r,n=r||(0,l.hasInjectionContext)()?Lt(r):null,o=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=e.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!o&&u?n?n.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):o&&!u&&(n?n.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(r))}getValue(e){return e.modelValue}},At=new li;function ni(e){At=e}function ri(e){At?Object.assign(At,e):At=e}function ai(e,t){ft.Schema.setValidator(e,t)}function oi(e){ft.Schema.deleteValidator(e)}var ma=["blur","clear"];function ii(e){ma=e}function pa(){return ma}var ha=["focus","change","setValue"];function si(e){ha=e}function ga(){return ha}function ui(e){ft.Schema.messages(e)}function Bt(...e){const t=[];return e.forEach(r=>{r.forEach(a=>{const n=t.findIndex(o=>o.type===a.type);n!==-1&&t.splice(n,1),t.push(a)})}),t}function Jt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}var Ge=Symbol("ValidateSchemaKey"),va=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,t,r){this.parent=e,this.descriptor=t,this.proxy=r,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,l.effectScope)(!0),this.scope.run(()=>{(0,l.watchEffect)(()=>{const t=Jt(Bt(this.attrRules,this.rules)),r=[];for(let n in e){let o=e[n];if(this.hasValidator(n,!0)){if(o===!1)continue;let s={type:n};o!==null&&typeof o=="object"&&Object.assign(s,o),r.push(s);continue}let u=this.getValidator(n);if(u!==null){let s={type:n,validator:u};r.push(s)}}this.attrRules=Jt(r);const a=Bt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(a,t)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...t){const r=this.descriptor.validateHandler;if(r&&typeof r[e]=="function")return Reflect.apply(r[e],r,[...t]);const a=At;return a&&typeof a[e]=="function"?Reflect.apply(a[e],a,[...t]):null}decorate(e,t){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,t,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,t,r=!1){r?ft.Schema.setValidator(e,t):this.validators[e]=t}getValidator(e){let t=this.validators[e]??null;return t||(t=this.parent?.getValidator(e)??null),t}deleteValidator(e,t=!1){t?ft.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,t=!1){if(t)return ft.Schema.hasValidator(e);{let r=Reflect.has(this.validators,e);return!r&&this.parent!==null&&(r=this.parent.hasValidator(e,!1)),r}}setRule(e){const t=Bt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=Jt(e):this.rules=Jt([e]);const r=Bt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(r,t)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Bt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(e.length>0){const r={[`${t}`]:e},a=this.getValue(),n={[`${t}`]:a},o=new ft.Schema(r),u=this.proxy??n;return o.validate(n,{context:u}).then(s=>{if(s.pass)this.success();else{let i="error";Array.isArray(s.errors)&&s.errors.length>0&&(i=s.errors[0].message??i,s.errors=[s.errors[0]],s.errors[0].ref=u),this.error(i)}return s}).catch(s=>{const i=s.message??`${s}`;return this.error(i),s})}}return Promise.resolve({pass:!0})}};function pl(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(n){return n[a]}}}return new va(t,r,e)}var ol=Symbol.for("EventEmitterKey"),ya=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,t){let r=this.register.get(e);if(r&&Array.isArray(r)){let a=r.findIndex(n=>n===t);a!==-1&&r.splice(a,1)}}on(e,t){let r=this.register.get(e);r||(r=new Array,this.register.set(e,r)),r.push(t)}emit(e,...t){const r=this.register.get(e);r&&r.forEach(a=>{try{Reflect.apply(a,null,[e,...t])}catch(n){console.error(n.message,n)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...t])}};function Ye(e,t){let r=null;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...a])},t)}}function ba(e,t){let r=0;return function(...a){const n=new Date().getTime();n-r<t||(r=n,Reflect.apply(e,null,[...a]))}}function ci(e,t){const r=Ye((a,n)=>{e=a,n()},t);return(0,l.customRef)((a,n)=>({get(){return a(),e},set(o){r(o,n)}}))}function di(e){let t=!1;return function(...r){t||(t=!0,Reflect.apply(e,null,[...r]))}}function hl(e,t,r,a=0,n=!0,o){let u=t,s=0;if(n){const f=e();if(s++,f){typeof o=="function"&&o(!0);return}if(s>r){typeof o=="function"&&o(!1);return}}const i=()=>{const f=e();if(s++,f){typeof o=="function"&&o(!0);return}if(s>r){typeof o=="function"&&o(!1);return}u+=a,setTimeout(i,u)};setTimeout(i,u)}var je=Symbol("DomainKey"),ht=Symbol("DataItemsKey"),gl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,l.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,t=[]){for(const r in e){const a=e[r];t.length>0&&t.indexOf(a)!==-1||(this._props[r]=a)}}has(e){if(Reflect.has(this._props,e)){const t=this._props[e];if(t!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,t){this._props[e]=t}get(e,t){if(Reflect.has(this._props,e)){const r=this._props[e];if(r!=null)return r}return this.parent==null?t:this.parent.get(e,t)}getForParent(e,t){return this.parent==null?t:this.parent.get(e,t)}getForSelf(e){return this._props[e]}getAll(e){const t=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,e)){const a=r._props[e];t.push(a)}r=r._parent}return t}},fi=new gl;function yt(){return fi}function ct(e=null){return e||(e=(0,l.getCurrentInstance)()?.proxy??null),e?e[je]??(0,l.inject)(je,null):(0,l.inject)(je,null)}var Ol=Symbol("OriginalDateKey");function vn(e,t,r=[],a){const n=(0,l.getCurrentInstance)();let o=n?.proxy,u=(0,l.inject)(je,null);u===null&&(u=yt());const s=e||t.prop||t.name;let i=new gl(s);i.parent=u;const f=d=>{o[Ol]||x(d),i?.set("modelValue",d)},m=()=>i?.getForSelf("modelValue")??null,c=()=>o[Ol]??null,x=d=>{const h={};wt(!0,h,(0,l.toRaw)(d)),o[Ol]=h};(0,l.isReactive)(t)||typeof t=="function"?(0,l.watch)(t,d=>{i?.merge(d,r)},{immediate:!0}):i.merge(t,r),t.modelValue&&x(t.modelValue);const C=(d,h)=>{i?.set(d,h)},v=d=>i?.getForSelf(d)??null;if(o[je]=i,(0,l.provide)(je,i),n!==null){const d=(0,l.inject)(we,null),h=ml(o,d,s,a);i.broadcast=h,o[we]=h,(0,l.provide)(we,h),o.broadcast=(b,I,...F)=>Reflect.apply(h.emit,h,[b,I,...F]);const T=(0,l.inject)(Ge,null),S=pl(o,T,{componentName:""});i.validateSchema=S,o[Ge]=S,(0,l.provide)(Ge,S),o[ht]=new Map,o.validate=(b=!0)=>{const I=[];let F=null;const M={deep:!1};if(b===!0)F={name:"*"};else if(Array.isArray(b)&&b.length>0){const E=b;F={name:P=>P?E.indexOf(P)!==-1:!1}}else if(b!=null&&typeof b=="object"){const E=b;if(Object.assign(M,E),Array.isArray(E.include)&&E.include.length>0){const P=E.include;F={name:_=>_?P.indexOf(_)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const P=E.exclude;F={name:_=>_?P.indexOf(_)===-1:!1}}else F={name:"*"}}if(F){const E=h?.emitToChildren(F,"validate",M);E&&Reflect.apply([].push,I,E)}return I.length==1?I[0]:I.length>1?Promise.all(I).then(E=>{let P=[];return E.forEach(_=>{_.pass===!1&&Array.isArray(_.errors)&&(P=[...P,..._.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(b,I=!0,F=!1)=>{if(F===!0){Reflect.ownKeys(b).forEach(M=>{let E=String(M);const P={componentName:"",fieldName:E,pureDataValidate:!0};if(i){const _=wa(i,E,P,h,S);o[ht].set(E,_);const Y=b[E];Y&&_.validateSchema.setRule(Y)}});return}if(I){const M=Reflect.ownKeys(b);h?.emitToChildren({name:E=>M.includes(E),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",b,!1)}},o.clearValidate=(b=!0)=>{let I=null;if(b===!0)I={name:"*"};else if(Array.isArray(b)&&b.length>0){const F=b;I={name:M=>M?F.indexOf(M)!==-1:!1}}else if(b!=null&&typeof b=="object"){const F=b;if(Array.isArray(F.include)&&F.include.length>0){const M=F.include;I={name:E=>E?M.indexOf(E)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const M=F.exclude;I={name:E=>E?M.indexOf(E)===-1:!1}}else I={name:"*"}}I&&h?.emitToChildren(I,"clearValidate",!1)},o.resetFields=b=>{const I=m();if(!I)return;const F={};if(wt(!0,F,c()??{}),Array.isArray(b))b.forEach(M=>{I[M]=F[M]});else if(b&&Array.isArray(b.include))(b.include??[]).forEach(M=>{I[M]=F[M]});else if(b&&Array.isArray(b.exclude)){let M=b.exclude??[];Reflect.ownKeys(F).forEach(E=>{M.includes(E)||(I[E]=F[E])})}else Object.assign(I,F);o.clearValidate(b)},o.setModelValue=(b,I)=>{if(!I||I===s)f(b);else{const F={name:I,messagingPolicy:"Once"};h?.emitToChildren(F,"setModelValue",b)}},o.getModelValue=()=>m(),o.setDomainProperty=(b,I)=>{C(b,I)},o.getDomainProperty=b=>v(b),setTimeout(function(){h?.pull()},0)}return(0,l.onUnmounted)(function(){i?.validateSchema&&(i.validateSchema.destroy(),o[Ge]=void 0,(0,l.provide)(Ge,null)),i?.broadcast&&(i?.broadcast?.destroy(),o[we]=void 0,(0,l.provide)(we,null)),i?.destroy(),o[je]=void 0,(0,l.provide)(je,null),o[ht]&&(o[ht].clear(),o[ht]=void 0),o.broadcast=null,o.validate=null,o.setNameValidateRules=null,o.clearValidate=null,o.resetFields=null,o.setModelValue=null,o.getModelValue=null,o.setDomainProperty=null,o.getDomainProperty=null,i=null,o=null}),i}function Sa(e,t,r=[]){let a=(0,l.getCurrentInstance)()?.proxy,n=(0,l.inject)(je,null);n===null&&(n=yt());let o=new gl(e||t.prop||t.name);return o.parent=n,(0,l.isReactive)(t)||typeof t=="function"?(0,l.watch)(t,u=>{o?.merge(u,r)},{immediate:!0}):o.merge(t,r),a[je]=o,(0,l.provide)(je,o),(0,l.onUnmounted)(()=>{o?.destroy(),a[je]=void 0,(0,l.provide)(je,null),o=null,a=null}),o}function Ee(e,t,r){const a=(0,l.getCurrentInstance)()?.proxy,n=t??"";let o=ml(a,(0,l.inject)(we,null),n,r);a[we]=o,(0,l.provide)(we,o),a.broadcast=(m,c,...x)=>o?Reflect.apply(o.emit,o,[m,c,...x]):null;const u=(0,l.inject)(Ge,null);e.fieldName=e.fieldName??n;let s=pl(a,u,e);a[Ge]=s,(0,l.provide)(Ge,s),a.validate=(m=null)=>{if(!s)return Promise.resolve({pass:!0});const c=[];let x=!1,C=!1;if(Array.isArray(m)&&m.indexOf(n)!==-1)C=!0,x=!0;else if(m&&typeof m=="object"){const v=m,d=v.ignoreDisabled??!0,h=v.ignoreReadonly??!0,T=v.ignoreHidden??!0;d===!0&&e.disabled===!0||h===!0&&e.readonly===!0||T===!0&&oa(a.$el)?C=!1:(Array.isArray(v.include)&&v.include.indexOf(n)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(n),C=!0),x=v.deep??!1}else typeof m=="boolean"&&(x=m),C=!0;if(C){const v=s?.validate();c.push(v)}if(x){let v=null;const d={deep:!1};if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;v={name:T=>T?h.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(d,h),Array.isArray(h.include)&&h.include.length>0){const T=h.include;v={name:S=>S?T.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const T=h.exclude;v={name:S=>S?T.indexOf(S)===-1:!1}}else v={name:"*"}}if(v&&o){const h=o.emitToChildren(v,"validate",d);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let d=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(d=[...d,...h.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>s?.setRule(m),a.setNameValidateRules=(m,c=!1)=>{const x=m[n];x&&s?.setRule(x),c&&o&&o.emitToChildren({name:C=>Reflect.ownKeys(m).includes(C)},"setNameValidateRules",m,!1)},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&s?.clear();let c=null;if(m===!0)c={name:"*"};else if(Array.isArray(m)&&m.length>0){const x=m;c={name:C=>C?x.indexOf(C)!==-1:!1}}else if(m!=null&&typeof m=="object"){const x=m;if(Array.isArray(x.include)&&x.include.length>0){const C=x.include;c={name:v=>v?C.indexOf(v)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const C=x.exclude;c={name:v=>v?C.indexOf(v)===-1:!1}}else c={name:"*"}}c&&o&&o.emitToChildren(c,"clearValidate",!1)};let i=new ya(a);a[ol]=i;const f=Ye((m="validate")=>{s&&(m==="reset"?s.clear():s.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:pa()).forEach(m=>{i&&i.on(m,c=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ga()).forEach(m=>{i&&i.on(m,c=>{f("reset")})}),setTimeout(function(){o?.pull()},0),(0,l.onUnmounted)(()=>{o?.destroy(),a[we]=void 0,(0,l.provide)(we,null),o=null,s?.destroy(),a[Ge]=void 0,(0,l.provide)(Ge,null),s=null,i?.destroy(),a[ol]=void 0,i=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null}),{broadcast:o,validateSchema:s,emitEvent:(m,...c)=>{i&&Reflect.apply(i.emit,i,[m,...c])},onEvent:(m,c)=>{i&&Reflect.apply(i.on,i,[c])},offEvent:(m,c)=>{i&&Reflect.apply(i.off,i,[c])}}}function wa(e,t,r,a,n){const o={},u=t??"",s={getValue(){const m=e.getForSelf("modelValue");return m?m[u]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,u):!1}};r.fieldName=u,r.validateHandler={getValue(m){return s.getValue()}};let i=pl({},n,r);o.validate=(m=null)=>{if(!s.isExist())return console.warn(`validate error: field [${u}] not exist`),Promise.resolve({pass:!0});const c=[];let x=!1,C=!1;if(Array.isArray(m)&&m.indexOf(u)!==-1)C=!0,x=!0;else if(m&&typeof m=="object"){const v=m;Array.isArray(v.include)&&v.include.indexOf(u)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(u),C=!0,x=v.deep??!1}else typeof m=="boolean"&&(x=m),C=!0;if(C&&i){const v=i.validate();c.push(v)}if(x){let v=null;const d={deep:!1};if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;v={name:T=>T?h.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(d,h),Array.isArray(h.include)&&h.include.length>0){const T=h.include;v={name:S=>S?T.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const T=h.exclude;v={name:S=>S?T.indexOf(S)===-1:!1}}else v={name:"*"}}if(v&&f){const h=f.emitToChildren(v,"validate",d);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let d=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(d=[...d,...h.errors])}),d.length>0?{pass:!1,errors:d}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=m=>i?.setRule(m),o.setNameValidateRules=m=>{const c=m[u];c&&i?.setRule(c)};let f=ml(null,a,u,o);return(0,l.onUnmounted)(()=>{i=null,f=null}),{broadcast:f,validateSchema:i}}function xa(){let e=(0,l.getCurrentInstance)()?.proxy,t=new ya(e);return e[ol]=t,(0,l.onUnmounted)(()=>{t?.destroy(),e[ol]=void 0,t=null,e=null}),{emitEvent:(r,...a)=>{t&&Reflect.apply(t.emit,t,[r,...a])},onEvent:(r,a)=>{t&&Reflect.apply(t.on,t,[a])},offEvent:(r,a)=>{t&&Reflect.apply(t.off,t,[a])}}}var ye=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"",mi=ye;function fe(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let n=Number(e.substring(0,r)),o=1;if(ut){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),s=u.indexOf("px");s>0&&(o=Number(u.substring(0,s)))}return n*=o,n}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const a=Number(e);return isNaN(a)?0:a}var st="PageStateKey";function Qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function ln(e,t,r={},a=!0,n=-1,o=-1,u=0,s=0){if(e.headerHeight=fe(r.headerHeight??t.headerHeight??-1),e.headerPadding=Qe(r.headerPadding??t.headerPadding),e.footerHeight=fe(r.footerHeight??t.footerHeight??-1),e.footerPadding=Qe(r.footerPadding??t.footerPadding),e.contentPadding=Qe(r.contentPadding??t.contentPadding),a){const i=r.height??t.height;i?e.height=fe(i,o):e.height=fe(o)-fe(u,o)-fe(s,o),e.width=fe(r.width??t.width??0,n)}}function Na(e,t={}){const r={top:null,bottom:null,right:null,left:null},a={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},n=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});n&&(a.safeAreaTop=fe(n.top),a.safeAreaBottom=fe(n.bottom),a.safeAreaLeft=fe(n.left),a.safeAreaRight=fe(n.right));const o=e.get("pageLayout");if(!o)return null;ln(a,o,t,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const u=(0,l.reactive)(a),s=e.getForParent(st);s&&(a.height=il(e,s),a.width=sl(e,s),(0,l.watch)([()=>il(e,s),()=>sl(e,s)],([f,m])=>{u.height=f,u.width=m}));const i=!s;return(0,l.watch)([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([f,m,c=-1,x=-1,C=0,v=0])=>{ln(u,m,t,i,c,x,C,v)}),e.set(st,u),u}function vl(e){return e.get(st)}function yl(e,t){if(t=t??e.get(st),t&&t.headerMounted){const r=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+r}return 0}function bl(e,t){if(t=t??e.get(st),t&&t.footerMounted){const r=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+r}return 0}function il(e,t){if(t=t??e.get(st),t){if(t.contentInnerHeight)return t.contentInnerHeight;const r=yl(e,t),a=bl(e,t),n=fe(t.contentPadding.top??0),o=fe(t.contentPadding.bottom??0);return t.height-r-a-n-o}return 0}function sl(e,t){if(t=t??e.get(st),t){const r=fe(t.contentPadding.left??0),a=fe(t.contentPadding.right??0);return t.contentInnerWidth??t.width-r-a}return 0}function pi(e){return!!e.getForParent(st)}var yn=Symbol.for("InnerPageScopeKey");function bn(e){(0,l.provide)(yn,e)}function Kt(e=!1){return(0,l.inject)(yn,e)}var Sn=Symbol.for("AbstractPageScopeKey");function Ca(e){(0,l.provide)(Sn,e)}function Wt(e=!1){return(0,l.inject)(Sn,e)}var Me=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function Qt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,r=Me.Near,a){const n=ct();return n==null?e:r===Me.Parent?(0,l.computed)(()=>{const o=n.getAll(t);for(let s=o.length-1;s>=0;s--){const i=o[s];if(Qt(i,a))return i}const u=e.value;return Qt(u,a)?u:null}):(0,l.computed)(()=>{const o=e.value;if(Qt(o,a))return o;const u=n.getAll(t);for(let s=0;s<u.length;s++){const i=u[s];if(Qt(i,a))return i}return null})}function za(e){return Ie(e,"readonly",Me.Near)}function ka(e){return Ie(e,"disabled",Me.Near)}function _a(e){return Ie(e,"browse",Me.Near)}function Re(e){const t=(0,l.ref)(null),r=ka((0,l.computed)(()=>t.value??e.disabled)),a=(0,l.ref)(null);return{innerDisabled:t,disabled:r,innerReadonly:a,readonly:za((0,l.computed)(()=>a.value??e.readonly)),browse:_a((0,l.computed)(()=>e.browse))}}function ge(e,t="modelValue",r=null,a){const n=(0,l.toRef)(e,t);let o=n.value;typeof r=="function"&&(o=r(n.value));const u=(0,l.ref)(o);return(0,l.watch)(n,s=>{if(typeof r=="function"){const i=r(s);i!==u.value&&(u.value=i,a&&a("setValue",i))}else s!==u.value&&(u.value=s,a&&a("setValue",s))}),u}var Ea=new Map,ul=new Map,nn=null;function hi(e){nn=e}function Ta(e,t,r){if(r){let a=ul.get(r);a||(a=new Map,ul.set(r,a)),a.set(e,t)}else Ea.set(e,t)}function We(e,t,r){!r&&nn&&(r=nn(e)??void 0);let a=null;if(r){let n=ul.get(r);n&&(a=n.get(t))}return a||(a=Ea.get(t)),a}function gi(e,t){for(let r in e){const a=e[r];Ta(r,a,t)}}function vi(e){ul.delete(e)}function yi(){return{top:0,left:0,bottom:0,right:0}}function bi(){return ut?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Si(e,t){let r=e;if(t.componentPrefix){const a=r.indexOf("-");a!==-1?r=`${t.componentPrefix}${r.slice(a)}`:r=`${t.componentPrefix}-${r}`}return Dt(r)}var wi=class{packages;installers;_version;get version(){return this._version}constructor(e,t,r){this.packages=e,this.installers=t,this._version=r}install(e,t={}){t?.install!==!1&&(this.packages.forEach(a=>{if(a.install)e.use(a,t);else if(a.name){const n=Si(a.name,t);e.component(n,a)}}),this.installers.forEach(a=>{a(e,t)}));const r=yt();if(t.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...t},n=Ye(()=>{const o={...a};this.updateLayout(o,r)},120);new window.ResizeObserver(n).observe(window.document.body)}this.updateLayout(t,r)}updateLayout(e,t){const r=e.headerBarHeight??0,a=e.footerBarHeight??0,n=wt({},yi(),e.safeAreaInset),o=bi(),u=wt({},o.pageLayout,e.pageLayout);t=t??yt(),t.set("safeAreaInset",n),t.set("headerBarHeight",r),t.set("footerBarHeight",a),t.set("pageLayout",u),t.set("rootWidth",o.rootWidth),t.set("rootHeight",o.rootHeight);const s=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)s.indexOf(i)===-1&&t.set(i,e[i])}setScopeGetter(e){hi(e)}setAPI(e,t,r){Ta(e,t,r)}getAPI(e,t,r){return We(e,t,r)}batchSetAPI(e,t){gi(e,t)}clearScopeAPI(e){vi(e)}getRootDomain(){return yt()}},xi=[N.ElAffix,N.ElAlert,N.ElAutocomplete,N.ElAutoResizer,N.ElAvatar,N.ElBacktop,N.ElBadge,N.ElBreadcrumb,N.ElBreadcrumbItem,N.ElButton,N.ElButtonGroup,N.ElCalendar,N.ElCard,N.ElCarousel,N.ElCarouselItem,N.ElCascader,N.ElCascaderPanel,N.ElCheckTag,N.ElCheckbox,N.ElCheckboxButton,N.ElCheckboxGroup,N.ElCol,N.ElCollapse,N.ElCollapseItem,N.ElCollapseTransition,N.ElColorPicker,N.ElConfigProvider,N.ElContainer,N.ElAside,N.ElFooter,N.ElHeader,N.ElMain,N.ElDatePicker,N.ElDescriptions,N.ElDescriptionsItem,N.ElDialog,N.ElDivider,N.ElDrawer,N.ElDropdown,N.ElDropdownItem,N.ElDropdownMenu,N.ElEmpty,N.ElForm,N.ElFormItem,N.ElIcon,N.ElImage,N.ElImageViewer,N.ElInput,N.ElInputNumber,N.ElLink,N.ElMenu,N.ElSubMenu,N.ElMenuItem,N.ElMenuItemGroup,N.ElPageHeader,N.ElPagination,N.ElPopconfirm,N.ElPopover,N.ElPopper,N.ElProgress,N.ElRadio,N.ElRadioButton,N.ElRadioGroup,N.ElRate,N.ElResult,N.ElRow,N.ElScrollbar,N.ElSelect,N.ElOption,N.ElOptionGroup,N.ElSelectV2,N.ElSkeleton,N.ElSkeletonItem,N.ElSlider,N.ElSpace,N.ElSteps,N.ElStep,N.ElSwitch,N.ElTable,N.ElTableColumn,N.ElTableV2,N.ElTabs,N.ElTabPane,N.ElTag,N.ElTimePicker,N.ElTimeSelect,N.ElTimeline,N.ElTimelineItem,N.ElTooltip,N.ElTransfer,N.ElTree,N.ElTreeSelect,N.ElTreeV2,N.ElUpload,N.ElStatistic,N.ElCountdown,N.ElSegmented,N.ElAnchor,N.ElAnchorLink,N.ElWatermark,N.ElMessageBox,N.ElMessage,N.ElNotification,N.ElSplitter],Ni=[N.ElInfiniteScroll,N.ElLoading,N.ElMessage,N.ElMessageBox,N.ElNotification,N.ElPopoverDirective],Ci=(e,t={})=>{const r=t.componentPrefix??"fox";xi.forEach(a=>{if(typeof a.name=="string"){let n="";const o=fa(a.name),u=o.indexOf("-");u!==-1?n=`${r}${o.slice(u)}`:n=`${r}-${o}`,n=Dt(n),e.component(n,a)}else e.use(a)}),Ni.forEach(a=>{e.use(a)})};function se(e){const t=`fox-${e}`,r=Dt(t);return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=r,a.install=(n,o)=>{let u=a.name;o?.componentPrefix&&(u=`${o.componentPrefix}-${a.baseName}`,u=Dt(u)),n.component(u,a)},(0,l.defineComponent)(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,(0,l.defineComponent)(a)}}}function xe(e,t=null){if(t||(t=(0,l.getCurrentInstance)()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}var Ne={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Te={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],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},$a={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}},Ba={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Va=[];for(const e in Ba)Va.push(e);var zi={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}},ki={...Ne,...$a,...zi},_i=(e,t)=>({inheritAttrs:!0,props:ki,setup(r,{slots:a}){const n=Wt(!1),o=Kt(!1),u=vn(r.name,r);if(u){const c=Na(u,r);xe({getPageContentHeight:()=>il(u,c),getPageContentWidth:()=>sl(u,c),getPageHeaderHeight:()=>yl(u,c),getPageFooterHeight:()=>bl(u,c)}),c&&o&&(c.contentHeight="100%")}const s=(0,l.computed)(()=>({[e]:!0,"is-inner":o})),i=(0,l.computed)(()=>({})),f=(0,l.getCurrentInstance)(),m=(c,x=!1)=>{const C=f?.proxy;C&&typeof C.setNameValidateRules=="function"&&C.setNameValidateRules(c,!0,x)};return(0,l.watch)([()=>r.rules,()=>r.pureDataRules],([c,x],[C,v])=>{if(c&&C){const d=(0,l.toRaw)(C),h=(0,l.toRaw)(c),T=h?Reflect.ownKeys(h):[];(d?Reflect.ownKeys(d):[]).forEach(S=>{T.includes(S)||(h[S]=[])}),m(h)}if(x&&v){const d=(0,l.toRaw)(v),h=(0,l.toRaw)(x),T=h?Reflect.ownKeys(h):[];(d?Reflect.ownKeys(d):[]).forEach(S=>{T.includes(S)||(h[S]=[])}),m(h,!0)}},{deep:!0}),(0,l.onMounted)(()=>{r.rules&&m((0,l.toRaw)(r.rules)),r.pureDataRules&&m((0,l.toRaw)(r.pureDataRules),!0)}),()=>n?a?.default?.():(0,l.h)("div",{class:s.value,style:i.value},[a?.default?.()])}}),{componentName:Ei,create:Ti,scope:$i}=se("page"),Bi=Ti(_i(Ei,$i)),wn=Bi;function xn(e){const t=(0,l.unref)(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Sl(e){const t=(0,l.unref)(e),r=window.getComputedStyle(t,null),a=parseFloat(r.getPropertyValue("padding-left")),n=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("padding-top")),u=parseFloat(r.getPropertyValue("padding-bottom"));return{width:t.clientWidth-a-n,height:t.clientHeight-o-u}}var Ma={headerbar:{},radio:{},checkbox:{}};function Vi(e){Object.assign(Ma,e)}function Ia(){return Ma}var Mi=(e,t,r,a=!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:r},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(n,o){const u=Wt(!1),s=Kt(!1),i=u?null:ct(),f=i?vl(i):null;f&&(f.headerMounted=!0);const m=Ia(),c=e,x=(0,l.computed)(()=>{const w={[c]:!0,[`${c}--border`]:n.border,[`${c}--fixed`]:n.fixed};return s||(w[`${c}--safe-area-inset-top`]=n.safeAreaInsetTop),w}),C=(0,l.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${n.align}`]:!0})),v=Ae(n.height)?null:fe(n.height),d=(0,l.computed)(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(u)return w;if(i&&f){const $=Qe(n.padding??f.headerPadding);if(Object.assign(w,$),Ae(v)||(f.headerHeight=v),w.height=f.headerHeight,w.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,w.safeAreaTop>0){const k=fe($.top??0);w.top=w.safeAreaTop+k,w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)}return w}if(Ae(v)||(w.height=v),n.padding){const $=Qe(n.padding);Object.assign(w,$)}return w}),h=(0,l.ref)(null),T=()=>f&&h.value&&!pn(h.value)?(a||(f.headerAllHeight=xn(h.value).height),f.headerMounted=!0,!0):!1,S=Ye(T,120);let b=null;(0,l.onMounted)(()=>{u||f&&(hl(T,50,5,50,!0),window.ResizeObserver&&h.value&&(b=new window.ResizeObserver(S),b.observe(h.value)))}),(0,l.onUnmounted)(()=>{u||f&&(f.headerMounted=!1,b&&(b.disconnect(),b=null))});const I=(0,l.computed)(()=>{const w={};return u||(d.value.height!==null&&d.value.height!==void 0&&(w.height=`${d.value.height}px`),d.value.top!==null&&d.value.top!==void 0&&(w.paddingTop=`${d.value.top}px`),d.value.left!==null&&d.value.left!==void 0&&(w.paddingLeft=`${d.value.left}px`),d.value.right!==null&&d.value.right!==void 0&&(w.paddingRight=`${d.value.right}px`),d.value.bottom!==null&&d.value.bottom!==void 0&&(w.paddingBottom=`${d.value.bottom}px`)),w}),F=(0,l.computed)(()=>{const w=d.value?.height;return Ae(w)||w<0?!0:w>0});function M(){o.emit("back")}function E(){o.emit("click-title")}function P(){o.emit("click-right")}function _(){o.emit("click-right-text")}const Y=()=>{if(!n.leftShow)return null;const w=[];if(o.slots.left)w.push(o.slots.left());else{if(o.slots.leftIcon){const $=(0,l.h)("view",{class:"left-icon",onClick:M},[o.slots.leftIcon()]);w.push($)}else{const $=n.leftIcon??m.headerbar.Left??r,k=(0,l.h)("view",{class:"left-icon",onClick:M},[(0,l.h)($)]);w.push(k)}if(n.leftText){const $=(0,l.h)("view",{class:"left-text",onClick:M},[n.leftText]);w.push($)}}return w.length===0?null:(0,l.h)("view",{class:"fox-header-bar__left"},w)},g=()=>{if(!n.rightShow)return null;const w=[];if(o.slots.right)w.push(o.slots.right());else{if(n.rightText){const $=(0,l.h)("view",{class:"right-text",onClick:_},[n.rightText]);w.push($)}if(o.slots.rightIcon){const $=(0,l.h)("view",{class:"right-icon",onClick:P},[o.slots.rightIcon()]);w.push($)}else if(n.rightIcon){const $=(0,l.h)("view",{class:"right-icon",onClick:P},[(0,l.h)(n.rightIcon)]);w.push($)}}return w.length===0?null:(0,l.h)("view",{class:"fox-header-bar__right"},w)},A=()=>{if(!n.titleShow)return null;const w=[],$=o.slots.default?o.slots.default():null;if($)w.push($);else{if(n.title){const k=(0,l.h)("view",{class:"title-text"},[n.title]);w.push(k)}if(o.slots.titleIcon){const k=(0,l.h)("view",{class:"title-icon",onClick:E},[o.slots.titleIcon()]);w.push(k)}else if(n.titleIcon){const k=(0,l.h)("view",{class:"title-icon",onClick:E},[(0,l.h)(n.titleIcon)]);w.push(k)}}return w.length===0?null:(0,l.h)("view",{class:"fox-header-bar__title"},w)},X=()=>{const w=[],$=o.slots.bottom?o.slots.bottom():null;return $&&w.push($),w.length===0?null:(0,l.h)("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(u||!F.value)return null;const w=[];if(o.slots.all)w.push(o.slots.all());else{const $=[],k=Y();k&&$.push(k);const q=A();q&&$.push(q);const H=g();if(H&&$.push(H),$.length>0){const V=(0,l.h)("view",{class:C.value},$);w.push(V)}const R=X();R&&w.push(R)}return w.length===0?null:(0,l.h)("view",{class:x.value,style:I.value,ref:h},w)}}}),{componentName:Ii,create:Li,scope:Ai}=se("header-bar"),Pi=Li(Mi(Ii,Ai,Ve.ArrowLeft)),Nn=Pi;function Fi(e,t,r=!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(a,n){const o=Wt(!1),u=Kt(!1),s=o?null:ct(),i=s?vl(s):null,f=(0,l.computed)(()=>{const S=e,b={[S]:!0,[`${S}--${a.align}`]:!0,[`${S}--border`]:a.border,[`${S}--fixed`]:a.fixed};return u||(b[`${S}--safe-area-inset-bottom`]=a.safeAreaInsetBottom),b}),m=Ae(a.height)?null:fe(a.height),c=(0,l.computed)(()=>{const S={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return S;if(s&&i){const b=Qe(a.padding??i.footerPadding);if(Object.assign(S,b),Ae(m)||(i.footerHeight=m),S.height=i.footerHeight,S.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,S.safeAreaBottom>0){const I=fe(b.bottom??0);S.bottom=S.safeAreaBottom+I,S.height&&S.height>0&&(S.height=S.height+S.safeAreaBottom)}return S}if(Ae(m)||(S.height=m),a.padding){const b=Qe(a.padding);Object.assign(S,b)}return S}),x=(0,l.computed)(()=>{const S=c.value?.height;return Ae(S)||S<0?!0:S>0}),C=(0,l.ref)(null),v=()=>i&&C.value&&!pn(C.value)?(r||(i.footerAllHeight=xn(C.value).height),i.footerMounted=!0,!0):!1,d=Ye(v,120);let h=null;(0,l.onMounted)(()=>{o||i&&(hl(v,50,5,50,!0),window.ResizeObserver&&C.value&&(h=new window.ResizeObserver(d),h.observe(C.value)))}),(0,l.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,h&&(h.disconnect(),h=null))});const T=(0,l.computed)(()=>{const S={};return o||(c.value.height!==null&&c.value.height!==void 0&&(S.height=ye(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(S.paddingTop=ye(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(S.paddingLeft=ye(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(S.paddingRight=ye(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(S.paddingBottom=ye(c.value.bottom))),S});return()=>{if(o||!x.value)return null;const S=n.slots.default?n.slots.default():[];return(0,l.h)("view",{ref:C,class:f.value,style:T.value},S)}}}}var{componentName:Ri,create:Di,scope:Oi}=se("footer-bar"),qi=Di(Fi(Ri,Oi)),Cn=qi;function Hi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:a,attrs:n}){const o=Wt(!1),u=Kt(!1),s=o?null:ct(),i=(0,l.computed)(()=>({[e]:!0})),f=s?vl(s):null,m=(0,l.computed)(()=>{const d={};if(o)return d;if(s&&f){if(r.padding){const E=Qe(r.padding);Object.assign(f.contentPadding,E)}const h=yl(s,f),T=bl(s,f);let S="";f.contentHeight?S=`${f.contentHeight}`:S=`${f.height}px`,d.height=S;let b=fe((f&&f.contentPadding&&f.contentPadding.top)??-1);(b>=0||h>0)&&(b=b<0?0:b,d.paddingTop=`${h+b}px`);let I=fe((f&&f.contentPadding&&f.contentPadding.bottom)??-1);(I>=0||T>0)&&(I=I<0?0:I,d.paddingBottom=`${T+I}px`);const F=fe((f&&f.contentPadding&&f.contentPadding.left)??-1);F>=0&&(d.paddingLeft=`${F}px`);const M=fe((f&&f.contentPadding&&f.contentPadding.right)??-1);return M>=0&&(d.paddingRight=`${M}px`),d}if(r.padding){const h=Qe(r.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}),c=(0,l.ref)(null),x=()=>{if(f&&c.value){const d=Sl(c.value);f.contentInnerHeight=d.height,f.contentInnerWidth=d.width}},C=Ye(x,120);let v=null;return(0,l.onMounted)(()=>{u||o||(requestAnimationFrame(x),window.ResizeObserver&&c.value&&(v=new window.ResizeObserver(C),v.observe(c.value)))}),(0,l.onUnmounted)(()=>{u||o||v&&(v.disconnect(),v=null)}),()=>o?a.default?.():(0,l.h)(r.tag??"view",{...n,ref:c,class:i.value,style:m.value},a)}}}var{componentName:ji,create:Ki,scope:Wi}=se("content"),Yi=Ki(Hi(ji,Wi)),zn=Yi,xt="GroupStateKey",La=Symbol.for("GroupScopeKey");function wl(){return(0,l.inject)(La,!1)}function xl(e=!0){(0,l.provide)(La,e)}function Ui(e,t={}){Reflect.ownKeys(t).forEach(r=>{if(typeof r!="string")return;const a=t[r];Ae(a)||(e[r]=a)})}function Gi(e,t={}){const r={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ui(r,t);const a=(0,l.markRaw)({layout:(0,l.shallowRef)(r),passport:0,order:{index:0}});return e.set(xt,a),a}function ql(e,t,r=-1,a=-1,n=!1,o,u,s){const i=e.get(xt);if(!i)return;const f=e.get("groupLayout")??{};r===-1&&(r=f.column??1),a===-1&&(a=f.gutter??0),o||(o=f.minItemWidth??-1),u||(u=f.maxItemWidth??-1);const m=fe(o),c=fe(u);s||(s=f.type??"grid");const x=()=>{const C=t===""||t===-1,v=fe(t);let d=ke(r);const h=fe(a);if(!C){let b=(v-(d-1)*h)/d;for(;c!==-1&&b>c;)d++,b=(v-(d-1)*h)/d;for(;m!==-1&&d>1&&b<m;)d--,b=(v-(d-1)*h)/d}let T=!1;const S=i.layout;S.value.width=t,S.value.column!==d&&(S.value.column=d,T=!0),S.value.gutter!==h&&(S.value.gutter=h,T=!0),S.value.type!==s&&(S.value.type=s,T=!0),T&&(0,l.triggerRef)(S)};if(n)x();else{const C=++i.passport;setTimeout(()=>{C===i.passport&&x()},50)}}function Nl(e,t=!1){let r;return t?r=e.getForParent(xt):r=e.get(xt),r.layout}function Cl(e,t=!1){let r;return t?r=e.getForParent(xt):r=e.get(xt),r.order}function xr(e,t=1){if(t==="stretch")return-1;const r=ke(t);return r===-1?100:100*r/e}function zl(e,t,r=1,a=0,n){const o={};let u=0;n?u=fe(n):u=xr(t.column,r),u>0&&(o.width=`${u}%`);const s=xr(t.column,a);s>0&&(o["margin-left"]=`${s}%`);const i=fe(t.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function kl(e,t,r=1,a=0){if(r==="stretch"){const i=e.index%t.column,f=i+(t.column-i);return e.index=e.index+(f-i),{"grid-column":`${i+1} / -1`}}let n=ke(r);if(n===-1){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}if(n>t.column){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}const o=ke(a)%t.column;let u=(e.index+o)%t.column,s=u+n;return s>t.column?(u=0,s=u+n,e.index=e.index+(t.column-u)+n):e.index=e.index+o+n,o>0?{"grid-column":`${u+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var Aa=Symbol("RollingStateKey");function Xi(e){(0,l.provide)(Aa,e)}function Zi(){return(0,l.inject)(Aa,null)}function rn(e){let t=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(r.getPropertyValue("padding-top")),n=parseFloat(r.getPropertyValue("padding-bottom"));t=e.clientHeight-a-n}else t=e.offsetHeight;return t}function Ji(e){let t=rn(e);if(t<=0){const r=e.cloneNode(!0);r.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=rn(r),document.body.removeChild(r)}return t}function Qi(e,t,r){const a=typeof e=="number"?e:parseInt(e),n=typeof t=="number"?t:parseInt(t),o=typeof r=="number"?r:parseInt(r);if(a<=0)return"1fr";const u=(a-(n-1)*o)/n;return u>0?`${u}px`:"1fr"}function Pa(e){const t=[];return e.forEach(r=>{r.type===l.Fragment&&Array.isArray(r.children)?t.push(...Pa(r.children)):t.push(r)}),t}function es(e){return!(e.type===l.Comment||e.type===l.Text&&typeof e.children=="string"&&e.children.trim()==="")}function kn(e){function t(){return Pa(e?.()??[]).filter(es)}return{getChildren:t}}var ts={...Ne,...$a,...Ba};function ls(e,t,r){return{props:ts,emits:["update:collapse","header-click"],setup(a,n){const o=vn(a.prop??a.name,a,Va),u=Gi(o,{type:a.type}),s=wl();xl(!0);const i=a.rollingDisplay?Zi():null,f=(0,l.ref)(null),m=(0,l.computed)(()=>a.rollingDisplay?i&&!i.disabled:!1),c=(0,l.computed)(()=>s&&o?Nl(o,!0).value:null),x=(0,l.getCurrentInstance)(),C=(K,ee=!1)=>{const y=x?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(K,!0,ee)};(0,l.watch)([()=>a.rules,()=>a.pureDataRules],([K,ee],[y,p])=>{if(K&&y){const B=(0,l.toRaw)(y),O=(0,l.toRaw)(K),Z=O?Reflect.ownKeys(O):[];(B?Reflect.ownKeys(B):[]).forEach(le=>{Z.includes(le)||(O[le]=[])}),C(O)}if(ee&&p){const B=(0,l.toRaw)(p),O=(0,l.toRaw)(ee),Z=O?Reflect.ownKeys(O):[];(B?Reflect.ownKeys(B):[]).forEach(le=>{Z.includes(le)||(O[le]=[])}),C(O,!0)}},{deep:!0});const v=e,d=(0,l.computed)(()=>{const K={};K.height=$.value;const ee=s?Cl(o,!0):null;if(c.value&&ee){if(c.value.type==="grid"){const y=kl(ee,c.value,a.span,a.offset);Object.assign(K,y)}else if(c.value.type==="flow"){const y=zl(ee,c.value,a.span,a.offset,a.width);Object.assign(K,y)}}else a.width&&(K.width=ye(a.width));return K}),h=(0,l.computed)(()=>{const K=u.layout.value.type;return K==="grid"||K==="flow"?{[`${v}--${K}`]:!0,[`${v}--${K}-justify-${a.justify}`]:!0,[`${v}--${K}-align-${a.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${K}`]:!0,[`${v}--gutter`]:!0}}),T=(0,l.computed)(()=>{if(u.layout.value.type==="grid"){let K="";if(a.columnWidth)K=`repeat(auto-fill, ${a.columnWidth})`;else{const ee=Qi(P.value,u.layout.value.column,u.layout.value.gutter);K=`repeat(${u.layout.value.column}, ${ee})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":K}}}),S=(0,l.toRef)(a,"gutter"),b=(0,l.toRef)(a,"column"),I=(0,l.computed)(()=>s||m.value?!0:de(a.isWrap)),F=[],M=K=>{F.push(K)},E=()=>{let K=F.length;F.splice(0,K)},P=(0,l.ref)(-1),_=K=>{const ee=Sl(K).width;ee>0&&ee!==P.value&&(P.value=ee)};ql(o,P.value,b.value,S.value,!0,a.minItemWidth,a.maxItemWidth,a.type),a.autoLayout&&(0,l.watch)([P,b,S],([K,ee,y])=>{u.order.index=0,ql(o,K,ee,y,!1,a.minItemWidth,a.maxItemWidth,a.type)});const Y=(0,l.computed)(()=>k.value?a.expandText??"":a.collapseText??""),g=(0,l.computed)(()=>({[`${e}__header-collapse-text`]:!0})),A=(0,l.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!k.value,"is-collapse":k.value})),X=(0,l.ref)(),w=(0,l.ref)(),$=(0,l.computed)(()=>q.value||ye(a.height)||""),k=(0,l.ref)(!1),q=(0,l.ref)(""),H=(0,l.ref)(!1);let R=-1;const V=(K,ee=!0)=>{const y=X.value;if(y&&k.value!==K){if(R=R===-1?Ji(y):R,H.value=!0,ee)if(y.style["will-change"]="height",y.ontransitionend=function(){y.ontransitionend=null,this.style["will-change"]="auto",K||(q.value="",H.value=!1)},K){let p=0;a.collapseHeight?p=fe(a.collapseHeight):w.value&&w.value.classList.contains(`${e}__header`)&&(p=w.value.offsetHeight),q.value=`${R}px`,(0,l.nextTick)(()=>{q.value=`${p}px`})}else q.value=`${R}px`;else if(K){let p=0;a.collapseHeight?p=fe(a.collapseHeight):w.value&&w.value.classList.contains(`${e}__header`)&&(p=w.value.offsetHeight),q.value=`${p}px`}else H.value=!1,q.value=`${R}px`;k.value=K,n.emit("update:collapse",K)}};(0,l.watch)(()=>a.collapse,K=>{V(de(K))});const G=K=>{n.emit("header-click",K)},j=()=>{L()},L=K=>{K=K??!k.value,V(K)};xe({toggleCollapse:L,doLayout:()=>{F[0]&&(_(F[0]),ql(o,P.value,b.value,S.value,!0,a.minItemWidth,a.maxItemWidth,a.type))}});let W=null,z=!0;const U=K=>{if(a.rules&&C((0,l.toRaw)(a.rules)),a.pureDataRules&&C((0,l.toRaw)(a.pureDataRules),!0),!!ut&&(K&&V(de(a.collapse),!1),a.autoLayout&&Array.isArray(F)&&F.length>0)){const ee=F[0];if(_(ee),window.ResizeObserver){const y=Ye(()=>_(ee),120);W=new window.ResizeObserver(y),W.observe(ee)}}},J=()=>{W?.disconnect(),W=null},te=!m.value||i?.acquire();te&&(f.value=m.value?!0:null),(0,l.onMounted)(()=>{if(te&&(U(z),z=!1),m.value&&i){let K=null,ee=i.initialHeight;i.observe(X.value,y=>{if(y!==f.value)if(y)f.value=!0,k.value||(q.value=""),K=setTimeout(()=>{K=null,f.value!==!1&&(U(z),z=!1)},100);else{if(K!==null&&clearTimeout(K),f.value=!1,!k.value)if(z)q.value=i.initialHeight;else{let p=rn(X.value);p<=0?q.value=ee:(q.value=`${p}px`,ee=q.value)}z||J()}})}}),(0,l.onUnmounted)(()=>{W?.disconnect(),i&&i.unobserve(X.value)});const ne=(K="right")=>{const ee=[];if(Y.value){const B=(0,l.h)("span",{class:g.value},[Y.value]);ee.push(B)}const y={class:A.value},p=r(a.collapseIcon,y);return p&&ee.push(p),ee.length>0?(0,l.h)("div",{class:{[`${v}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:j},ee):null},oe=(K,ee,y,p)=>{const B={...h.value};if(ee===0&&(B[`${v}__first`]=!0),y>=p-1&&(B[`${v}__last`]=!0),I.value===!1){const O=n.attrs.class;O&&(B[`${O}`]=!0)}return(0,l.h)("div",{ref:M,key:`${ee}`,class:B,style:T.value},K)};return()=>{const K=a.prop??a.name;if(m.value&&f.value!==!0)return(0,l.h)(a.tag||"div",{ref:X,prop:K,class:{[`${v}`]:!0,"is-collapse":H.value},style:d.value},[]);u.order.index=0;const ee=[];let y=0;if(n.slots.header){const Z=(0,l.h)("div",{key:`${y++}`,ref:w,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:G},[n.slots.header()]);ee.push(Z)}else{const Z=[],le=a.collapsePosition==="left";if(le&&a.showCollapse){const re=ne("left");re&&Z.push(re)}if(a.title||n.slots.title){if(a.showMark){const re={class:{[`${v}__header-mark`]:!0}};a.markColor&&(re.style={background:a.markColor});const ce=(0,l.h)("div",re);Z.push(ce)}if(n.slots.title){const re=(0,l.h)("div",{class:{[`${v}__header-title`]:!0}},[n.slots.title()]);Z.push(re)}else if(a.title){const re=(0,l.h)("div",{class:{[`${v}__header-title`]:!0}},[a.title]);Z.push(re)}}if(n.slots.toolbar&&Z.push(n.slots.toolbar()),!le&&a.showCollapse){const re=ne("right");re&&Z.push(re)}if(Z.length>0){const re=(0,l.h)("div",{key:`${y++}`,ref:w,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:G},Z);ee.push(re)}}E();const{getChildren:p}=kn(n.slots.default),B=p(),O=u.layout.value.type;if(O==="grid"){const Z=oe(B,y++,0,B.length);ee.push(Z)}else if(O==="flow"){const Z=oe(B,y++,0,B.length);ee.push(Z)}else for(let Z=0;Z<B.length;Z++){const le=B[Z],re=oe([le],y++,Z,B.length);ee.push(re)}return I.value?(0,l.h)(a.tag||"div",{ref:X,prop:K,class:{[`${v}`]:!0,"is-collapse":H.value},style:d.value},[ee]):ee}}}}var{componentName:ns,create:rs,scope:as}=se("group"),os=(e,t)=>(e=e??Ve.ArrowUp,(0,l.h)(N.ElIcon,t,{default:()=>[(0,l.h)(e)]})),is=rs(ls(ns,as,os)),_n=is;function ss(e){return e===window}var us=/matrix\((.+)\)/,En=e=>{const t=(0,l.unref)(e);if(!t)return{x:0,y:0};if(ss(t))return{x:0,y:0};let r=0,a=0,n=t;for(;n!==null;)r+=n.offsetLeft,a+=n.offsetTop,n=n.offsetParent;let o=0,u=0,s=0,i=0;for(n=t;n!==document;){u+=n.scrollTop,o+=n.scrollLeft;const{transform:f}=window.getComputedStyle(n);if(f){const m=us.exec(f);if(m){let c=m[1].split(/\s*,\s*/);c.length==6&&(s+=Number(c[4]),i+=Number(c[5]))}}n=n.parentNode}return r-=o,a-=u,r+=s,a+=i,{x:r,y:a}},cs=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const t=this.watchedListeners.indexOf(e);t!==-1&&this.watchedListeners.splice(t,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},ds=class{monitorRegister=new WeakMap;watch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n||(n=new cs,r.addEventListener("scroll",n.listen),r===document.body&&r.addEventListener("resize",n.listen),this.monitorRegister.set(r,n)),n.add(t),r=r.parentNode}}unwatch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n&&(n.remove(t),n.size()===0&&(this.monitorRegister.delete(r),r.removeEventListener("scroll",n.listen),r===document.body&&r.removeEventListener("resize",n.listen))),r=r.parentNode}}},Pt=new ds,Fa={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:fs,create:ms}=se("price"),ps=ms({props:{...Fa},setup(e){const t=(0,l.computed)(()=>({[fs]:!0})),r=(0,l.computed)(()=>e.needSymbol?e.symbol:""),a=(0,l.computed)(()=>jt(e.price)==0?"":dl(e.price,e.decimalLength,!0,ke(e.digits),e.separator));return{classes:t,showSymbol:r,intText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(0,o)}),decimalText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(o+1)})}}}),Ze=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},hs=["innerHTML"],gs=["innerHTML"];function vs(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:(0,l.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hs)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--${e.size}`)},(0,l.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,l.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:2,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gs)):(0,l.createCommentVNode)("",!0)],2)}var _l=Ze(ps,[["render",vs]]),{componentName:Hl,create:ys}=se("hint-text"),bs=ys({components:{Price:_l},props:{...Fa,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const r=(0,l.ref)({top:null,right:null,bottom:null,left:null}),a=(0,l.ref)({x:0,y:0}),n=(0,l.ref)(0),o=(0,l.ref)(0),u=(0,l.ref)(e.placement),s=(0,l.ref)(!1),i=(0,l.ref)(null),f=(g,A,X,w,$,k)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=g.split("-");let V=[];R[0]==="top"?V=["top","bottom","right","left"]:R[0]==="bottom"?V=["bottom","top","right","left"]:R[0]==="left"?V=["left","top","bottom","right"]:R[0]==="right"&&(V=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},j=[];for(let L=0;L<V.length;L++){const D=V[L];if(j[0]=D,R[1]&&(j[1]=R[1]),D==="top"){const W=A.y-k-e.arrowSize-e.offset;if(W>=0){G.top=W;let z=0;R[1]==="start"?z=A.x:R[1]==="end"?z=A.x+X-$:z=A.x+X/2-$/2;const U=q-z-$;U<0?(z+=U,c.value=-U):c.value=0,G.left=z<0?0:z;break}}else if(D==="bottom"){const W=A.y+w+e.arrowSize+e.offset;if(W+k<=H){G.top=W;let z=0;R[1]==="start"?z=A.x:R[1]==="end"?z=A.x+X-$:z=A.x+X/2-$/2;const U=q-z-$;U<0?(z+=U,c.value=-U):c.value=0,G.left=z<0?0:z;break}}else if(D==="left"){const W=A.x-$-e.arrowSize-e.offset;if(W>=0){G.left=W;let z=0;R[1]==="start"?z=A.y:R[1]==="end"?z=A.y+w-k:z=A.y+w/2-k/2,G.top=z<0?0:z;break}}else if(D==="right"){const W=A.x+X+e.arrowSize+e.offset;if(W+$<=q){G.left=W;let z=0;R[1]==="start"?z=A.y:R[1]==="end"?z=A.y+w-k:z=A.y+w/2-k/2,G.top=z<0?0:z;break}}}return{bestPlacement:j.join("-"),bestInsetRect:G}},m=(g,A,X=10)=>{if(!ut||A===!1||!g)return;a.value=En(e.reference),n.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const w=i.value.offsetHeight,$=i.value.offsetWidth,{bestPlacement:k,bestInsetRect:q}=f(e.placement,a.value,n.value,o.value,$,w);u.value=k,r.value=q,s.value=!0},c=(0,l.ref)(0),x=Ye(()=>{m(e.message,e.visible)},10),C=(0,l.ref)(e.visible);(0,l.watch)(()=>e.visible,g=>{C.value=g});const v=(0,l.computed)(()=>C.value&&d.value),d=(0,l.ref)(!0),h=Ye(g=>{const A=g[0];A&&(d.value=A.isIntersecting)},10),T=new IntersectionObserver(h);(0,l.watch)([()=>e.message,()=>e.visible],([g,A])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),(0,l.onMounted)(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Pt.watch(e.reference,x),T.observe(e.reference)}),(0,l.onBeforeUnmount)(()=>{Pt.unwatch(e.reference,x),T.unobserve(e.reference),T.disconnect()});const S=(0,l.computed)(()=>{const g={[Hl]:!0};return u.value.startsWith("top")?g["is-top"]=!0:u.value.startsWith("right")?g["is-right"]=!0:u.value.startsWith("bottom")?g["is-bottom"]=!0:u.value.startsWith("right")&&(g["is-right"]=!0),e.size==="small"?g["is-small"]=!0:e.size==="large"&&(g["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(g[`${e.customClass}`]=!0),g}),b=(0,l.computed)(()=>{const g={};return r.value.top!==null&&(g.top=`${r.value.top}px`),r.value.right!==null&&(g.right=`${r.value.right}px`),r.value.bottom!==null&&(g.bottom=`${r.value.bottom}px`),r.value.left!==null&&(g.left=`${r.value.left}px`),e.autoFit&&(g["min-width"]=`${n.value}px`),g["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,s.value&&(g.opacity="1"),e.transition||(g.transition="none"),e.zIndex&&(g["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(g,e.customStyle),g}),I=(0,l.computed)(()=>{const g=[`${Hl}__content`];return e.customTextClass&&g.push(e.customTextClass),g}),F=(0,l.computed)(()=>{const g={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(g,e.customTextStyle),g}),M=(0,l.computed)(()=>({[`${Hl}__arrow`]:!0})),E=(0,l.computed)(()=>{const g={};return e.showArrow?(g.width=`${e.arrowSize}px`,g.height=`${e.arrowSize}px`,u.value==="top"?(g.left="50%",g.bottom=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):u.value==="top-start"?(g.left=`${e.arrowOffset+c.value}px`,g.bottom=`-${e.arrowSize}px`):u.value==="top-end"?(g.right=`${e.arrowOffset-c.value}px`,g.bottom=`-${e.arrowSize}px`):u.value==="right"?(g.left=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):u.value==="right-start"?(g.left=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):u.value==="right-end"?(g.left=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`):u.value==="bottom"?(g.left="50%",g.top=`-${e.arrowSize}px`,g.transform=" translate(-50%, 0%)"):u.value==="bottom-start"?(g.left=`${e.arrowOffset+c.value}px`,g.top=`-${e.arrowSize}px`):u.value==="bottom-end"?(g.right=`${e.arrowOffset-c.value}px`,g.top=`-${e.arrowSize}px`):u.value==="left"?(g.right=`-${e.arrowSize}px`,g.top="50%",g.transform=" translate(0%, -50%)"):u.value==="left-start"?(g.right=`-${e.arrowSize}px`,g.top=`${e.arrowOffset}px`):u.value==="left-end"&&(g.right=`-${e.arrowSize}px`,g.bottom=`-${e.arrowOffset}px`),g):{display:"none"}}),P=(0,l.computed)(()=>v.value&&e.closeOnClick),_=(0,l.computed)(()=>{const g={};return e.zIndex&&(g["z-index"]=`${e.zIndex}`),g});return{show:v,tipRef:i,classes:S,styles:b,textClasses:I,textStyles:F,arrowClasses:M,arrowStyles:E,overlayShow:P,overlayStyle:_,onClickOverlay:()=>{C.value=!1,t.emit("update:visible",!1)}}}}),Ss=["innerHTML"];function ws(e,t,r,a,n,o){const u=(0,l.resolveComponent)("Price");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[e.overlayShow?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,l.normalizeStyle)(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):(0,l.createCommentVNode)("",!0),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"tipRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.textClasses),style:(0,l.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Ss))],6),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.arrowClasses),style:(0,l.normalizeStyle)(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}var Ra=Ze(bs,[["render",ws]]),Da=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},an={},xs=new Da,bt=new Map,cl=e=>{if(e){const t=document.getElementById(e);bt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of bt.keys()){const r=document.getElementById(t);r&&r.parentNode?.removeChild(r)}bt.clear()}},Ns=e=>{e.unmount=cl;const t=document.getElementById(e.id);if(t){const r=bt.get(e.id);r?e={...an,...r,...e}:e={...an,...e},e.transition=!1,(0,l.render)((0,l.createVNode)(Ra,e),t)}return e.id},Cs=e=>{e.unmount=cl;let t=e.id??`hinttext_${xs.get()}`;e={...an,...e},e.id=t,bt.set(t,e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(Ra,e),r),document.body.appendChild(r),t},zs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},_e={show(e,t,r={},a=!0){zs(t);const n=r.id;return n&&bt.has(n)?Ns({...r,message:t,reference:e}):(a&&cl(),Cs({...r,message:t,reference:e}))},hide(e){cl(e)},install(e){e.config.globalProperties.$hintText=_e}};function ks(e,t,r,a=!1){return{inheritAttrs:!0,props:{...Ne,...Te},emits:["appear","disappear"],setup(n,o){const u=n.prop??o.attrs.name;Ee({componentName:e,validate:!1},u);const s=ct(),i=wl();xl(!1);const f=(0,l.computed)(()=>i&&s?Nl(s,!1).value:null),m=e,c=(0,l.ref)(null),x=(0,l.computed)(()=>{const p={[m]:!0,[`${m}__gutter`]:f.value&&f.value.type!=="flow",[`${m}__stretch`]:n.span==="stretch",[`${m}__input--border`]:de(n.hasBorder)};if(p[n.errorMarkClass]=!!k.value,p[n.warnMarkClass]=!!w.value,p[n.infoMarkClass]=!!A.value,typeof c.value=="function"){const B=c.value(u);p[B]=!0}else if(typeof c.value=="string"){const B=c.value;p[B]=!0}return p}),C=(0,l.ref)(null),v=(0,l.computed)(()=>{const p={};if(n.width)n.width!=="auto"&&(p.width=ye(n.width));else{const B=i&&s?Cl(s,!1):null;if(f.value&&B){if(f.value.type==="grid"){const O=kl(B,f.value,n.span,n.offset);Object.assign(p,O)}else if(f.value.type==="flow"){const O=zl(B,f.value,n.span,n.offset,n.width);Object.assign(p,O)}}}if(typeof C.value=="function"){const B=C.value(u);B&&Object.assign(p,B)}else if(C.value&&typeof C.value=="object"){const B=C.value;Object.assign(p,B)}return p}),d=(0,l.ref)(null),h=(0,l.computed)({get:()=>d.value??de(n.isRequired),set:p=>{d.value=p}}),T=()=>typeof n.label=="string"&&n.label.length>0||typeof o.slots.label=="function",S=Ie((0,l.toRef)(n,"labelPosition"),"labelPosition",Me.Near),b=(0,l.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),I=(0,l.computed)(()=>({[`${m}__main`]:!0,[`${m}__main--${b.value}`]:!0})),F=(0,l.computed)(()=>({label:!0,[`label--${b.value}`]:!0})),M=Ie((0,l.toRef)(n,"labelWidth"),"labelWidth",Me.Near),E=(0,l.computed)(()=>M&&M.value?{width:ye(M.value)}:{}),P=(0,l.computed)(()=>({"label--string":!0,"label--required":h.value})),_=(0,l.computed)(()=>({content:!0,[n.contentClass]:!0})),Y=(0,l.computed)(()=>({...n.contentStyle})),g=(0,l.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(p){h.value=p},setErrorTip(p){g.errorTip=p},setErrorIcon(p){g.errorIcon=p},setWarnTip(p){g.warnTip=p},setWarnIcon(p){g.warnIcon=p},setInfoTip(p){g.infoTip=p},setInfoIcon(p){g.infoIcon=p},setCustomClassName(p){c.value=p},setCustomStyle(p){C.value=p}});const A=(0,l.computed)(()=>n.infoTip||g.infoTip),X=(0,l.computed)(()=>n.infoIcon||g.infoIcon),w=(0,l.computed)(()=>n.warnTip||g.warnTip),$=(0,l.computed)(()=>n.warnIcon||g.warnIcon),k=(0,l.computed)(()=>n.errorTip||g.errorTip),q=(0,l.computed)(()=>n.errorIcon||g.errorIcon),H=(0,l.computed)(()=>k.value?"error":w.value?"warn":A.value?"info":""),R=()=>H.value.length>0,V=(0,l.computed)(()=>H.value==="error"?k.value:H.value==="warn"?w.value:H.value==="info"?A.value:""),G=(0,l.computed)(()=>H.value==="error"?q.value:H.value==="warn"?$.value:H.value==="info"?X.value:null),j=(0,l.computed)(()=>{const p={[`${m}__tip`]:!0,[`${m}__tip--${H.value}`]:!0,[`${m}--animate`]:!0};return H.value==="error"&&n.errorClass?p[`${n.errorClass}`]=!0:H.value==="warn"&&n.warnClass?p[`${n.warnClass}`]=!0:H.value==="info"&&n.infoClass&&(p[`${n.infoClass}`]=!0),p}),L=(0,l.computed)(()=>{const p={};return S&&S.value==="top"||!T()?p["padding-left"]="0px":M&&M.value&&(p["padding-left"]=ye(M.value)),p}),D=(0,l.ref)();let W="";(0,l.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([p,B,O,Z])=>{D.value&&(p&&!me(B)?W?r.show(D.value,B,{...Z,id:W,type:O},!0):W=r.show(D.value,B,{...Z,type:O},!0):r.hide(W))});let z=null;const U=()=>{z||!D.value||(z=new IntersectionObserver(p=>{let B=!1;for(let O of p)if(O.intersectionRatio>0){B=!0,B&&o.emit("appear",O);break}B||o.emit("disappear")}),z.observe(D.value))},J=()=>{!z||!D.value||(z.unobserve(D.value),z=null)};(0,l.watch)(()=>de(n.appearListen),p=>{p?U():J()}),(0,l.onMounted)(()=>{de(n.appearListen)&&U()}),(0,l.onUnmounted)(J);const te=()=>{if(!T())return null;const p=[],B=o.slots?.label?.()??n.label,O=(0,l.h)("div",{class:P.value},[B]);if(p.push(O),o.slots.fixedPreTip){const Z=o.slots.fixedPreTip();p.push(Z)}return(0,l.h)("div",{class:F.value,style:E.value},p)},ne=()=>{const p=[];if(o.slots.prepend){const B=o.slots.prepend();p.push(B)}if(o.slots.default){const B=o.slots.default();p.push(B)}if(o.slots.append){const B=o.slots.append();p.push(B)}if(o.slots.fixedTip){const B=(0,l.h)("div",{class:[`${m}__fixed-tip`]},[o.slots.fixedTip()]);p.push(B)}return(0,l.h)("div",{ref:D,class:_.value,style:Y.value},p)},oe=()=>{const p=G.value;return p?typeof p=="function"?(0,l.h)("div",{class:"fox-item__tip--icon"},[p()]):(0,l.h)("div",{class:"fox-item__tip--icon"},[(0,l.h)(p)]):null},K=()=>{const p=V.value;return p?typeof p=="function"?(0,l.h)("div",{class:"fox-item__tip--text"},[p()]):(0,l.h)("div",{class:"fox-item__tip--text"},[p]):null},ee=()=>{if(!R())return null;const p=[],B=oe();B&&p.push(B);const O=K();return O&&p.push(O),(0,l.h)("div",{class:j.value,style:L.value},p)},y=()=>o.slots?.hide?.()??null;return()=>{const p=[],B=[],O=te();O&&B.push(O);const Z=ne();Z&&B.push(Z);const le=(0,l.h)("div",{class:I.value},B);p.push(le);const re=ee();re&&p.push(re);const ce=y();return ce&&p.push(ce),(0,l.h)("div",{class:x.value,style:v.value,prop:n.prop},p)}}}}var{componentName:_s,create:Es,scope:Ts}=se("item"),$s=Es(ks(_s,Ts,_e,!1)),Yt=$s,Tn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Bs(e,t){return{props:{...Tn},setup(r,a){const n=ct(),o=wl();xl(!1);const u=(0,l.computed)(()=>o&&n?Nl(n,!1).value:null),s=e,i=(0,l.computed)(()=>({[s]:!0,[`${s}__gutter`]:u.value&&u.value.type!=="flow",[`${s}__stretch`]:r.span==="stretch"})),f=(0,l.computed)(()=>{const m={};if(r.width)r.width!=="auto"&&(m.width=ye(r.width));else{const c=o&&n?Cl(n,!1):null;if(u.value&&c)if(u.value.type==="grid"){const x=kl(c,u.value,r.span,r.offset);Object.assign(m,x)}else if(u.value.type==="flow"){const x=zl(c,u.value,r.span,r.offset,r.width);Object.assign(m,x)}else return r.width&&(m.width=ye(r.width)),m}return m});return()=>{const m={class:i.value,style:f.value};return a.slots&&typeof a.slots.default=="function"?(0,l.h)("div",m,a.slots.default()):(0,l.h)("div",m)}}}}var{componentName:Vs,create:Ms,scope:Is}=se("slot-item"),Ls=Ms(Bs(Vs,Is)),El=Ls,on={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function As(e,t){return{props:{...on},setup(r,a){const n=e,o=(0,l.computed)(()=>({[n]:!0,[`${n}__stretch`]:r.span==="stretch",[`${n}__${r.align}`]:!0})),u=ct(),s=wl();xl(!1);const i=(0,l.computed)(()=>{const f={};if(r.width)r.width!=="auto"&&(f.width=ye(r.width));else if(s&&u){const m=Nl(u,!1),c=Cl(u,!1);if(m.value&&c)if(m.value.type==="grid"){const x=kl(c,m.value,r.span,r.offset);Object.assign(f,x)}else if(m.value.type==="flow"){const x=zl(c,m.value,r.span,r.offset,r.width);Object.assign(f,x)}else r.width&&(f.width=ye(r.width))}return r.gutter&&(f.gap=ye(r.gutter)),f});return()=>{const f=[];if(a.slots.default){const m=a.slots.default();if(r.divide)for(let c=0;c<m.length;c++){if(c>0){const x=(0,l.h)("div",{class:{[`${n}__divide`]:!0}});f.push(x)}f.push(m[c])}else Reflect.apply([].push,f,m)}return(0,l.h)("div",{class:o.value,style:i.value},f)}}}}var{componentName:Ps,create:Fs,scope:Rs}=se("row-item"),Ds=Fs(As(Ps,Rs)),Tl=Ds;function Os(e,t){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const a=r.getBoundingClientRect().width;if(a>0){t(a);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const n=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(n)},500)}var qs={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},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Hs(e,t,r,a=!1){return{props:{...qs},emits:["click"],setup(n,o){const u=(0,l.ref)(null),s=(0,l.computed)(()=>{const b={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(b[`${e}--${n.type??"default"}`]=!0),n.size&&(b[`${e}--${n.size}`]=!0),b}),i=(0,l.computed)(()=>{const b={},I=n.textColor??n.color;return I&&(b.color=I),b}),f=(b,I)=>{let F=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const M=n.highlightFilter;b.indexOf(M)!==-1&&(I.innerHTML=b.replace(new RegExp(M,"g"),`<span>${M}</span>`),I.class["is-highlight"]=!0,F=(0,l.h)(n.tag,I))}else if(typeof n.highlightFilter=="function"){const M=n.highlightFilter(b);M&&(I.innerHTML=M,I.class["is-highlight"]=!0,F=(0,l.h)(n.tag,I))}return F},m=b=>{o.emit("click",b)};let c="";const x=()=>{const b=u.value;if(!b)return;const I=b.clientWidth;Os(b,F=>{const M=b.innerHTML??"";me(M)||F<I||(c?r?.show(b,M,{type:"text",id:c,showArrow:n.showArrow},!0):c=r?.show(b,M,{type:"text",showArrow:n.showArrow},!0)??"")})},C=()=>{c&&r?.hide(c)};let v=null;const d=b=>{v||(v=setTimeout(()=>{x(),v=null},n.showAfter??0))},h=b=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{C()},n.hideAfter??0)},T=()=>{const b=u.value;b&&(b.addEventListener("mouseover",d),b.addEventListener("mouseleave",h))},S=()=>{const b=u.value;b&&(b.removeEventListener("mouseover",d),b.removeEventListener("mouseleave",h))};return(0,l.onMounted)(()=>{!de(n.showOverflowTooltip)||!r||T()}),(0,l.onBeforeUnmount)(()=>{!de(n.showOverflowTooltip)||!r||S()}),()=>{const b={onClick:m,class:s.value,style:i.value,ref:u};let I=null;if(de(n.numberFormat)&&typeof o.slots.default=="function"){const M=o.slots.default();if(Array.isArray(M)&&M.length===1){const E=M[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const P=ke(n.digits),_=ke(n.decimalLength),Y=de(n.autoPadding);let g=`${M[0].children}`,A=g.split("").reverse().join("");A=dl(A,_,Y,P,n.separator),g=A.split("").reverse().join(""),n.highlightFilter!==void 0&&(I=f(g,b)),I||(b.innerHTML=g,I=(0,l.h)(n.tag,b))}}}else{if(n.highlightFilter!==void 0&&typeof o.slots.default=="function"){const M=o.slots.default();if(Array.isArray(M)&&M.length===1){const E=M[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const P=`${M[0].children}`;I=f(P,b),I||(b.innerHTML=P,I=(0,l.h)(n.tag,b))}}}I||(I=(0,l.h)(n.tag,b,{default:o.slots.default}))}if(!n.mark&&!o.slots.mark)return I;const F=[];if(o.slots.mark){const M={[`${e}__mark-wrap`]:!0};n.type&&(M[`${e}__mark-wrap--${n.type}`]=!0);const E={},P=n.color;P&&(E.color=P);const _=(0,l.h)("view",{onClick:m,class:M,style:E},{default:o.slots.mark});F.push(_)}else{const M={[`${e}__mark`]:!0};n.type&&(M[`${e}__mark--${n.type??"default"}`]=!0);const E={},P=n.color;P&&(E["background-color"]=P);const _=(0,l.h)("view",{onClick:m,class:M,style:E});F.push(_)}if(n.divide){const M=(0,l.h)("div",{class:{[`${e}__divide`]:!0}});F.push(M)}return F.push(I),(0,l.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},F)}}}}var{componentName:js,create:Ks,scope:Ws}=se("text"),Ys=Ks(Hs(js,Ws,_e,!1)),Nt=Ys,Us={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function Gs(e,t,r=!1){return{props:{...Us},emits:["update:visible"],setup(a,{emit:n,slots:o,expose:u}){const s=(0,l.ref)({top:null,right:null,bottom:null,left:null}),i=(0,l.ref)(0),f=(0,l.ref)(0),m=(0,l.ref)(0),c=(0,l.ref)(0),x=(0,l.ref)(a.placement),C=(0,l.ref)(!1),v=(0,l.ref)(!1),d=(0,l.ref)(null),h=()=>typeof a.reference=="string"?document.querySelector(a.reference):a.reference,T=(V,G,j,L,D,W,z,U=!0)=>{const J=document.documentElement.clientWidth||document.body.clientWidth,te=document.documentElement.clientHeight||document.body.clientHeight,ne=V.split("-");let oe=[];U?ne[0]==="top"?oe=["top","bottom","right","left"]:ne[0]==="bottom"?oe=["bottom","top","right","left"]:ne[0]==="left"?oe=["left","top","bottom","right"]:ne[0]==="right"&&(oe=["right","top","bottom","left"]):oe=[V[0]];const K={top:null,right:null,bottom:null,left:null},ee=[];for(let y=0;y<oe.length;y++){const p=oe[y];if(ee[0]=p,ne[1]&&(ee[1]=ne[1]),p==="top"){const B=j-z-a.arrowSize/2-a.offset;if(B>=0){K.top=B;let O=0;ne[1]==="start"?O=G:ne[1]==="end"?O=G+L-W:O=G+L/2-W/2;const Z=J-O-W;Z<0?(O+=Z,b.value=-Z):b.value=0,K.left=O<0?0:O;break}}else if(p==="bottom"){const B=j+D+a.arrowSize/2+a.offset;if(B+z<=te){K.top=B;let O=0;ne[1]==="start"?O=G:ne[1]==="end"?O=G+L-W:O=G+L/2-W/2;const Z=J-O-W;Z<0?(O+=Z,b.value=-Z):b.value=0,K.left=O<0?0:O;break}}else if(p==="left"){const B=G-W-a.arrowSize/2-a.offset;if(B>=0){K.left=B;let O=0;ne[1]==="start"?O=j:ne[1]==="end"?O=j+D-z:O=j+D/2-z/2,K.top=O<0?0:O;break}}else if(p==="right"){const B=G+L+a.arrowSize/2+a.offset;if(B+W<=J){K.left=B;let O=0;ne[1]==="start"?O=j:ne[1]==="end"?O=j+D-z:O=j+D/2-z/2,K.top=O<0?0:O;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:K}},S=()=>{const V=a.visible,G=a.autoFit;if(!ut||V===!1)return;if(a.reference){const z=h(),U=En(z);i.value=U.x,f.value=U.y,m.value=z.offsetWidth,c.value=z.offsetHeight}else a.referenceInset&&(i.value=a.referenceInset.left,f.value=a.referenceInset.top,m.value=a.referenceInset.right-a.referenceInset.left,c.value=a.referenceInset.bottom-a.referenceInset.top);const j=d.value.offsetWidth,L=d.value.offsetHeight,{bestPlacement:D,bestInsetRect:W}=T(a.placement,i.value,f.value,m.value,c.value,j,L,G);x.value=D,s.value=W},b=(0,l.ref)(0),I=Ye(()=>{S()},10),F=(0,l.ref)(a.visible);(0,l.watch)([()=>a.visible],([V])=>{F.value=V,V?(C.value=V,setTimeout(()=>{S(),v.value=!0},0)):v.value=!1});const M=(0,l.computed)(()=>F.value&&E.value),E=(0,l.ref)(!0),P=Ye(V=>{const G=V[0];G&&(E.value=G.isIntersecting)},10),_=new IntersectionObserver(P);(0,l.watch)([()=>a.reference,()=>a.referenceInset],([V,G],[j,L])=>{!V&&!G||(setTimeout(()=>{S()},0),a.autoFit&&(j&&(Pt.unwatch(j,I),_.unobserve(j)),V&&(Pt.watch(V,I),_.observe(V))))},{immediate:!0}),(0,l.onBeforeUnmount)(()=>{a.reference&&(Pt.unwatch(a.reference,I),_.unobserve(a.reference),_.disconnect())});const Y=(0,l.computed)(()=>{const V={[e]:!0};return x.value.startsWith("top")?V["is-top"]=!0:x.value.startsWith("right")?V["is-right"]=!0:x.value.startsWith("bottom")?V["is-bottom"]=!0:x.value.startsWith("left")&&(V["is-left"]=!0),V[`is-${a.effect}`]=!0,!v.value&&M.value&&(V["is-opacity"]=!0),v.value&&M.value&&(V["is-show"]=!0),M.value||(V["is-hide"]=!0),a.customClass&&typeof a.customClass=="string"&&(V[`${a.customClass}`]=!0),V}),g=(0,l.computed)(()=>{const V={};return s.value.top!==null&&(V.top=`${s.value.top}px`),s.value.right!==null&&(V.right=`${s.value.right}px`),s.value.bottom!==null&&(V.bottom=`${s.value.bottom}px`),s.value.left!==null&&(V.left=`${s.value.left}px`),a.width&&(V.width=a.width),a.zIndex&&(V["z-index"]=`${a.zIndex}`),a.customStyle&&typeof a.customStyle=="object"&&Object.assign(V,a.customStyle),V}),A=()=>{F.value=!1,n("update:visible",!1)},X=()=>a.showOverlay?(0,l.h)("div",{class:`${e}__overlay`,onClick:A}):null,w=()=>{let V=null;return o.title?V=(0,l.h)("div",{class:`${e}__title`},{default:o.title}):a.title&&(V=(0,l.h)("div",{class:`${e}__title`},[a.title])),V},$=(0,l.computed)(()=>({[`${e}__arrow`]:!0})),k=(0,l.computed)(()=>{const V={};return a.showArrow?(V.width=`${a.arrowSize}px`,V.height=`${a.arrowSize}px`,x.value==="top"?(V.left="50%",V.bottom="0",V.transform="translate(-50%, 50%)"):x.value==="top-start"?(V.left=`${a.arrowOffset+b.value}px`,V.bottom="0",V.transform="translate(-50%, 50%)"):x.value==="top-end"?(V.right=`${a.arrowOffset-b.value}px`,V.bottom="0",V.transform="translate(-50%, 50%)"):x.value==="right"?(V.left="0",V.top="50%",V.transform="translate(-50%, -50%)"):x.value==="right-start"?(V.left="0",V.top=`${a.arrowOffset}px`,V.transform="translate(-50%, 50%)"):x.value==="right-end"?(V.left="0",V.bottom=`-${a.arrowOffset}px`,V.transform="translate(-50%, 50%)"):x.value==="bottom"?(V.left="50%",V.top="0",V.transform="translate(-50%, -50%)"):x.value==="bottom-start"?(V.left=`${a.arrowOffset+b.value}px`,V.top="0",V.transform="translate(-50%, -50%)"):x.value==="bottom-end"?(V.right=`${a.arrowOffset-b.value}px`,V.top="0",V.transform="translate(-50%, -50%)"):x.value==="left"?(V.right="0",V.top="50%",V.transform="translate(50%, -50%)"):x.value==="left-start"?(V.right="0",V.top=`${a.arrowOffset}px`,V.transform="translate(50%, -50%)"):x.value==="left-end"&&(V.right="0",V.bottom=`-${a.arrowOffset}px`,V.transform="translate(50%, -50%)"),V):{display:"none"}}),q=()=>(0,l.h)("div",{class:$.value,style:k.value}),H=()=>{F.value===!1&&(C.value=!1)},R=V=>{if(!d.value||F.value===!1)return;const{relatedTarget:G}=V;d.value.contains(G)||(F.value=!1,n("update:visible",!1))};return u({doLayout:S}),()=>{if(!C.value)return null;const V=[],G=X();G&&V.push(G);const j=[],L=w();if(L&&j.push(L),o.default){const U=o.default();j.push(U)}const D=q();D&&j.push(D);const W={ref:d,class:Y.value,style:g.value,onAnimationend:H};a.leaveHide&&(W.onMouseleave=R);const z=(0,l.h)("div",W,{default:()=>j});return V.push(z),(0,l.h)(l.Teleport,{to:a.teleport,disabled:a.teleportDisable},{default:()=>V})}}}}var{componentName:Xs,create:Zs,scope:Js}=se("popover-dialog"),Qs=Zs(Gs(Xs,Js,!1)),$l=Qs,eu={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function tu(e,t,r){return{props:{...on,...eu},emits:["click"],setup(a,{slots:n,attrs:o}){const{toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["moreText"]),i=e,f=(0,l.computed)(()=>({[i]:!0}));function m(M){return M.props||{}}function c(M){return!!m(M).disabled}function x(M){return M.children??[]}const C=(0,l.ref)(),v=(0,l.computed)(()=>C.value?.$el??null),d=(0,l.ref)(!1),h=M=>{d.value=M},T=()=>{d.value=!d.value};function S(M,E){return()=>{E||(d.value=!1,m(M)?.onClick?.())}}function b(M,E){const P=x(M),_=c(M),Y=S(M,_),g=[`${i}__dropdown-item`];return _&&g.push("is-disabled"),(0,l.h)("span",{class:g,onClick:Y},P)}const I=M=>{const E=a.maxDisplayCount??M.length;if(E>=M.length)return M;const P=[],_=E-1;for(let w=0;w<_;w++)P.push(M[w]);const Y=(n.moreIcon&&n.moreIcon())??(a.moreIcon&&(0,l.h)(a.moreIcon))??(0,l.h)(r),g=(0,l.h)(Nt,{ref:w=>C.value=w,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:a.type,onClick:T},{default:()=>s.moreText.value,mark:()=>Y});P.push(g);const A=[];for(let w=_;w<M.length;w++){const $=b(M[w],w);A.push($)}const X=(0,l.h)($l,{placement:a.dropdownPlacement,"onUpdate:visible":h,visible:d.value,reference:v.value,"custom-class":`${i}__popover`},{default:()=>A});return P.push(X),P},F=()=>(n.default?.()||[]).filter(M=>M.type!==Comment);return()=>{const M=I(F()),E=pt(a,on);return Object.assign(E,o??{}),E.class=f.value,(0,l.h)(Tl,E,{default:()=>M})}}}}var{componentName:lu,create:nu,scope:ru}=se("buttons-item"),au=nu(tu(lu,ru,Ve.ArrowDown)),$n=au;function De(e,t={}){return(0,l.h)(Yt,e,t)}function ou(e,t,r,a,n){let o=[];Array.isArray(e)?o=e:o=[e];const u=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[n]){let i=t;for(let f=0;i&&f<o.length;f++){let m=o[f],c=i.find(x=>x[a]===m);if(!c)break;u.push(c[r])}return u}if(Array.isArray(s))for(let i=0;i<t.length&&i<o.length;i++){let f=t[i],m=o[i];const c=f.find(x=>x[a]===m);if(!c)break;u.push(c[r])}else{let i=t;for(let f=0;i&&f<o.length;f++){let m=o[f],c=i.find(x=>x[a]===m);if(!c)break;u.push(c[r]),i=c[n]}}return u}var iu=class{proxy;constructor(e){this.proxy=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=We(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function su(){return new iu((0,l.getCurrentInstance)().proxy)}var Oa={tag:{type:[String,Object],required:!1,default:"span"},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}};function uu(e,t){return{props:{...Oa},setup(r,{attrs:a,slots:n}){const o=su(),u=(0,l.ref)([]);(0,l.watch)([()=>r.source,()=>r.params],async([i,f])=>{u.value=await o.load(r.sourceType,i,f)},{immediate:!0});const s=(0,l.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return r.emptyText;let i=ou(r.modelValue,u.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?r.emptyText??"":i.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${i[0]}`:i[0]:i.join(r.separator)});return()=>{const i={...a};if(n.default)return n.default({text:s.value,value:r.modelValue});const f=r.tag??"span";return typeof f=="object"?(0,l.h)(f,i,{default:()=>s.value}):(0,l.h)(f,i,[s.value])}}}}var{componentName:cu,create:du,scope:fu}=se("mapping"),mu=du(uu(cu,fu)),Ct=mu;function Ke(e,t,r,a){const n="fox-browse-item";let o=null;r?o=(0,l.h)(Ct,{class:[`${n}__mapping`],source:r,modelValue:e,separator:a},{default:s=>(0,l.h)(Nt,{class:[`${n}__text`]},{default:()=>s.text})}):o=(0,l.h)(Nt,{class:[`${n}__text`]},{default:()=>e});const u={label:t.default,default:()=>o};return(0,l.h)(Yt,{class:[n]},u)}var Je=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(r=>{typeof r=="string"&&r.indexOf("data-fox")!==0&&(t[r]=e[r])}),t},qa={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},maxLength:{type:[String,Number]}},pu={...Ne,...Te,...qa};function hu(e,t,r,a){return{props:pu,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=e,T=(0,l.computed)(()=>({[h]:!0,[`${h}__disabled`]:s.value,[`${h}__readonly`]:f.value})),S=q=>{d.value=q,c("update:modelValue",q),c("input",q)},b=q=>{c("change",q)};let I=ge(n,"hintText"),F=(0,l.ref)(!1);const M=q=>{let H=q.target.value;v.value=!0,me(I.value)||(F.value=!0),c("focus",H,q)},E=q=>{setTimeout(()=>{F.value&&(F.value=!1),v.value=!1},0);let H=q.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),c("blur",H,q)},P=()=>{c("clear","")},_=(0,l.ref)(!1);let Y=null;const g=()=>{n.showTooltip&&_.value===!1&&(Y&&clearTimeout(Y),Y=setTimeout(()=>{_.value=!0},150))},A=()=>{Y&&(clearTimeout(Y),_.value=!1,Y=null)},X=(0,l.computed)(()=>_.value||F.value),w=(0,l.computed)(()=>_.value?d.value:I.value),$=(0,l.computed)(()=>jt(n.unit)>0),k=(0,l.ref)();return xe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},setDisabled:q=>{u.value=q},setReadonly:q=>{i.value=q}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(d.value,o.slots);const q={...Je(o.attrs),ref:k,class:T.value,placeholder:C.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:f.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:P,onChange:b,onInput:S,onFocus:M,onBlur:E,onMouseover:g,onMouseleave:A},H={};o.slots.prepend&&(H.prepend=o.slots.prepend),o.slots.append&&(H.append=o.slots.append),o.slots.prefix&&(H.prefix=o.slots.prefix),o.slots.suffix?H.suffix=o.slots.suffix:$.value&&(H.suffix=()=>[n.unit]);const R=[],V=(0,l.h)(N.ElInput,q,H);R.push(V);const G={default:()=>R};G.label=o.slots.default,G.fixedPreTip=o.slots.fixedPreTip,G.fixedTip=o.slots.fixedTip;const j={...Fe(n,qa),hintText:w.value,hintVisible:X.value};return n.prop&&(j.prop=`${n.prop}_item`),r(j,G)}}}}var{componentName:gu,create:vu,scope:yu}=se("input-item"),bu=vu(hu(gu,yu,De,Ke)),Bn=bu;function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ha(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Su(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var wu=class{proxy;constructor(e){this.proxy=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=We(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function xu(){return new wu((0,l.getCurrentInstance)().proxy)}function ja(e,t,r){return!(it(e,t)!==it(e,r)||Ot(e,t)!==Ot(e,r))}function Ka(e,t,r,a){if(a.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let u of a){const s=Ha(e,u);if(Array.isArray(s)&&s.length>0){const i=Ka(e,o,r,s)??[];Reflect.apply([].push,n,i)}else{let i=!1;if(r==="text")i=it(e,u)===o;else if(r==="item")i=ja(e,u,o);else{let f=Ot(e,u);f==null&&(f=it(e,u)),i=f===o}if(i){n.push(u);break}}}}),n}function Nu(e){return{text:e,value:e}}var Wa={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},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}},Cu={...Ne,...Te,...Wa};function zu(e,t,r,a){return{props:Cu,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(null),d=(0,l.ref)([]),h=(0,l.computed)(()=>d.value?d.value.map(y=>it(n,y)).join(" "):""),T=(y,p,B,O=!0)=>{if(!B||B.length==0){v.value=y,O&&(c("update:modelValue",y),c("change",y));return}const Z=Ka(n,y,p,B);if(Z===null){if(d.value===null||d.value.length===0)return;v.value=null,d.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let le=!0;if(Z.length!==d.value.length)le=!1;else for(let re=0;re<Z.length;re++){const ce=Z[re],he=d.value[re];if(!ja(n,ce,he)){le=!1;break}}if(!le){d.value=Z;let re=[],ce=[],he=[];Z.forEach(Ue=>{const Et=Ot(n,Ue),Xt=it(n,Ue);re.push(Et),he.push(Xt),n.valueType==="text"?ce.push(Xt):n.valueType==="item"?ce.push(Ue):ce.push(Et)});let be,$e,qe;de(n.multiple)?(v.value=re,be=(0,l.toRaw)(ce),$e=he,qe=(0,l.toRaw)(Z)):(v.value=re[0]??"",be=(0,l.toRaw)(ce[0]??""),$e=he[0]??"",qe=(0,l.toRaw)(Z[0])),O&&(c("update:modelValue",be),c("change",be,qe)),c("update:text",$e)}},S=(0,l.ref)(null),b=(0,l.ref)(null),I=(0,l.computed)(()=>{let y=b.value??S.value??[];return Array.isArray(y)&&typeof n.sourceFilter=="function"&&(y=y.filter(n.sourceFilter)),y}),F=Ie((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,y=>de(y)),M=xu(),E=async(y,p)=>{if(y){const B=await M.load("select",y,p);B.length>0?typeof B[0]=="string"?S.value=B.map(O=>Nu(O)):S.value=B:S.value=null}};(0,l.watch)([()=>n.source,()=>n.params],([y,p])=>{b.value=null,E(y,p)},{immediate:!F.value});let P=!1;const _=()=>{P||(P=!0,E(n.source,n.params))};(0,l.watch)([()=>S.value,()=>n.modelValue],([y,p])=>{if(X()&&de(n.multiple)){et(p,v.value)||(v.value=p);return}T(p,n.valueType,I.value,!1),c("setValue",p)}),n.source||(v.value=n.modelValue);let Y=null,g=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(Y=async y=>{if(y==null){b.value=null;return}g.value=!0;try{const p=await n.remoteMethod(y);p&&(b.value=p)}catch(p){b.value=null,console.error(p)}g.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async y=>{if(y==null){b.value=null;return}g.value=!0;try{const p=await n.filterMethod(y,S.value);p&&(b.value=p)}catch(p){b.value=null,console.error(p)}g.value=!1});const X=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",w=(0,l.ref)(!1),$=e,k=(0,l.computed)(()=>({[$]:!0})),q=y=>{n.allowCreate||X()&&de(n.multiple)?(c("update:modelValue",y),c("change",y),c("update:text",y),v.value=y):T(y,"value",I.value,!0)};let H=ge(n,"hintText"),R=(0,l.ref)(!1);const V=y=>{let p=y.target.value;w.value=!0,me(H.value)||(R.value=!0),c("focus",p,y)},G=y=>{setTimeout(()=>{R.value&&(R.value=!1),w.value=!1},0);const p=y.target.value;te.value||c("blur",p,y)},j=()=>{c("clear","")},L=(0,l.ref)(!1);let D=null;const W=()=>{n.showTooltip&&L.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{L.value=!0},150))},z=()=>{D&&(clearTimeout(D),L.value=!1,D=null)},U=(0,l.computed)(()=>L.value||R.value),J=(0,l.computed)(()=>L.value?h.value:H.value),te=(0,l.ref)(!1),ne=y=>{te.value=y,c("visible-change",y),y||c("selected")},oe=y=>{c("remove-tag",y)},K=(y,p)=>{const B=[];return y.forEach((O,Z)=>{const le=Ha(n,O);if(Array.isArray(le)&&le.length>0){const re=K(le,p),ce=it(n,O),he={key:`${ce}_${Z}`,label:ce};B.push((0,l.h)(N.ElOptionGroup,he,{default:()=>re}))}else{const re=Ot(n,O),ce=it(n,O),he=Su(n,O),be={key:`${re}_${Z}`,label:ce,disabled:he,value:re};if(typeof p=="function")B.push((0,l.h)(N.ElOption,be,{default:()=>p(O)}));else if(n.optionType==="item"){const $e=(0,l.h)("span",{class:{"fox-select-item__option-left":!0}},[re]),qe=(0,l.h)("span",{class:{"fox-select-item__option-right":!0}},[ce]),Ue=(0,l.h)("div",{class:{"fox-select-item__option":!0}},[$e,qe]);B.push((0,l.h)(N.ElOption,be,{default:()=>Ue}))}else n.optionType==="value"?B.push((0,l.h)(N.ElOption,be,{default:()=>[re]})):B.push((0,l.h)(N.ElOption,be))}}),B},ee=(0,l.ref)();return xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},setDisabled:y=>{u.value=y},setReadonly:y=>{i.value=y}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(v.value,o.slots,I.value);const y={...Je(o.attrs),ref:ee,class:k.value,clearable:n.clearable,multiple:n.multiple,placeholder:C.placeholder.value,disabled:s.value||f.value,modelValue:v.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:j,onChange:q,onFocus:V,onBlur:G,onVisibleChange:ne,onRemoveTag:oe};typeof Y=="function"&&(y["remote-method"]=Y,y.loading=g.value),typeof A=="function"&&(y["filter-method"]=A,y.loading=g.value);const p={};o.slots.prefix&&(p.prefix=o.slots.prefix),o.slots.empty&&(p.empty=o.slots.empty),o.slots.options?p.default=o.slots.options:p.default=()=>K(I.value,o.slots.option);const B=[],O=(0,l.h)(N.ElSelect,y,p);B.push(O);const Z={default:()=>B};Z.label=o.slots.default,Z.fixedPreTip=o.slots.fixedPreTip,Z.fixedTip=o.slots.fixedTip;const le={...Fe(n,Wa),hintText:J.value,hintVisible:U.value,onMouseover:W,onMouseleave:z};return n.prop&&(le.prop=`${n.prop}_item`),F.value&&(le["appear-listen"]=!0,le.onAppear=_),r(le,Z)}}}}var{componentName:ku,create:_u,scope:Eu}=se("select-item"),Tu=_u(zu(ku,Eu,De,Ke)),Vn=Tu,$u=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=a()})(e,(function(){"use strict";var r=1e3,a=6e4,n=36e5,o="millisecond",u="second",s="minute",i="hour",f="day",m="week",c="month",x="quarter",C="year",v="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var $=["th","st","nd","rd"],k=w%100;return"["+w+($[(k-20)%10]||$[k]||$[0])+"]"}},b=function(w,$,k){var q=String(w);return!q||q.length>=$?w:""+Array($+1-q.length).join(k)+w},I={s:b,z:function(w){var $=-w.utcOffset(),k=Math.abs($),q=Math.floor(k/60),H=k%60;return($<=0?"+":"-")+b(q,2,"0")+":"+b(H,2,"0")},m:function w($,k){if($.date()<k.date())return-w(k,$);var q=12*(k.year()-$.year())+(k.month()-$.month()),H=$.clone().add(q,c),R=k-H<0,V=$.clone().add(q+(R?-1:1),c);return+(-(q+(k-H)/(R?H-V:V-H))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:c,y:C,w:m,d:f,D:v,h:i,m:s,s:u,ms:o,Q:x}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},F="en",M={};M[F]=S;var E="$isDayjsObject",P=function(w){return w instanceof A||!(!w||!w[E])},_=function w($,k,q){var H;if(!$)return F;if(typeof $=="string"){var R=$.toLowerCase();M[R]&&(H=R),k&&(M[R]=k,H=R);var V=$.split("-");if(!H&&V.length>1)return w(V[0])}else{var G=$.name;M[G]=$,H=G}return!q&&H&&(F=H),H||!q&&F},Y=function(w,$){if(P(w))return w.clone();var k=typeof $=="object"?$:{};return k.date=w,k.args=arguments,new A(k)},g=I;g.l=_,g.i=P,g.w=function(w,$){return Y(w,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var A=(function(){function w(k){this.$L=_(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[E]=!0}var $=w.prototype;return $.parse=function(k){this.$d=(function(q){var H=q.date,R=q.utc;if(H===null)return new Date(NaN);if(g.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var V=H.match(h);if(V){var G=V[2]-1||0,j=(V[7]||"0").substring(0,3);return R?new Date(Date.UTC(V[1],G,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)):new Date(V[1],G,V[3]||1,V[4]||0,V[5]||0,V[6]||0,j)}}return new Date(H)})(k),this.init()},$.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},$.$utils=function(){return g},$.isValid=function(){return this.$d.toString()!==d},$.isSame=function(k,q){var H=Y(k);return this.startOf(q)<=H&&H<=this.endOf(q)},$.isAfter=function(k,q){return Y(k)<this.startOf(q)},$.isBefore=function(k,q){return this.endOf(q)<Y(k)},$.$g=function(k,q,H){return g.u(k)?this[q]:this.set(H,k)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(k,q){var H=this,R=!!g.u(q)||q,V=g.p(k),G=function(te,ne){var oe=g.w(H.$u?Date.UTC(H.$y,ne,te):new Date(H.$y,ne,te),H);return R?oe:oe.endOf(f)},j=function(te,ne){return g.w(H.toDate()[te].apply(H.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ne)),H)},L=this.$W,D=this.$M,W=this.$D,z="set"+(this.$u?"UTC":"");switch(V){case C:return R?G(1,0):G(31,11);case c:return R?G(1,D):G(0,D+1);case m:var U=this.$locale().weekStart||0,J=(L<U?L+7:L)-U;return G(R?W-J:W+(6-J),D);case f:case v:return j(z+"Hours",0);case i:return j(z+"Minutes",1);case s:return j(z+"Seconds",2);case u:return j(z+"Milliseconds",3);default:return this.clone()}},$.endOf=function(k){return this.startOf(k,!1)},$.$set=function(k,q){var H,R=g.p(k),V="set"+(this.$u?"UTC":""),G=(H={},H[f]=V+"Date",H[v]=V+"Date",H[c]=V+"Month",H[C]=V+"FullYear",H[i]=V+"Hours",H[s]=V+"Minutes",H[u]=V+"Seconds",H[o]=V+"Milliseconds",H)[R],j=R===f?this.$D+(q-this.$W):q;if(R===c||R===C){var L=this.clone().set(v,1);L.$d[G](j),L.init(),this.$d=L.set(v,Math.min(this.$D,L.daysInMonth())).$d}else G&&this.$d[G](j);return this.init(),this},$.set=function(k,q){return this.clone().$set(k,q)},$.get=function(k){return this[g.p(k)]()},$.add=function(k,q){var H,R=this;k=Number(k);var V=g.p(q),G=function(D){var W=Y(R);return g.w(W.date(W.date()+Math.round(D*k)),R)};if(V===c)return this.set(c,this.$M+k);if(V===C)return this.set(C,this.$y+k);if(V===f)return G(1);if(V===m)return G(7);var j=(H={},H[s]=a,H[i]=n,H[u]=r,H)[V]||1,L=this.$d.getTime()+k*j;return g.w(L,this)},$.subtract=function(k,q){return this.add(-1*k,q)},$.format=function(k){var q=this,H=this.$locale();if(!this.isValid())return H.invalidDate||d;var R=k||"YYYY-MM-DDTHH:mm:ssZ",V=g.z(this),G=this.$H,j=this.$m,L=this.$M,D=H.weekdays,W=H.months,z=H.meridiem,U=function(ne,oe,K,ee){return ne&&(ne[oe]||ne(q,R))||K[oe].slice(0,ee)},J=function(ne){return g.s(G%12||12,ne,"0")},te=z||function(ne,oe,K){var ee=ne<12?"AM":"PM";return K?ee.toLowerCase():ee};return R.replace(T,(function(ne,oe){return oe||(function(K){switch(K){case"YY":return String(q.$y).slice(-2);case"YYYY":return g.s(q.$y,4,"0");case"M":return L+1;case"MM":return g.s(L+1,2,"0");case"MMM":return U(H.monthsShort,L,W,3);case"MMMM":return U(W,L);case"D":return q.$D;case"DD":return g.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return U(H.weekdaysMin,q.$W,D,2);case"ddd":return U(H.weekdaysShort,q.$W,D,3);case"dddd":return D[q.$W];case"H":return String(G);case"HH":return g.s(G,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return te(G,j,!0);case"A":return te(G,j,!1);case"m":return String(j);case"mm":return g.s(j,2,"0");case"s":return String(q.$s);case"ss":return g.s(q.$s,2,"0");case"SSS":return g.s(q.$ms,3,"0");case"Z":return V}return null})(ne)||V.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(k,q,H){var R,V=this,G=g.p(q),j=Y(k),L=(j.utcOffset()-this.utcOffset())*a,D=this-j,W=function(){return g.m(V,j)};switch(G){case C:R=W()/12;break;case c:R=W();break;case x:R=W()/3;break;case m:R=(D-L)/6048e5;break;case f:R=(D-L)/864e5;break;case i:R=D/n;break;case s:R=D/a;break;case u:R=D/r;break;default:R=D}return H?R:g.a(R)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return M[this.$L]},$.locale=function(k,q){if(!k)return this.$L;var H=this.clone(),R=_(k,q,!0);return R&&(H.$L=R),H},$.clone=function(){return g.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()},w})(),X=A.prototype;return Y.prototype=X,[["$ms",o],["$s",u],["$m",s],["$H",i],["$W",f],["$M",c],["$y",C],["$D",v]].forEach((function(w){X[w[1]]=function($){return this.$g($,w[0],w[1])}})),Y.extend=function(w,$){return w.$i||(w($,A,Y),w.$i=!0),Y},Y.locale=_,Y.isDayjs=P,Y.unix=function(w){return Y(1e3*w)},Y.en=M[F],Y.Ls=M,Y.p={},Y}))})),Bu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=a()})(e,(function(){"use strict";var r={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,u=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},f=function(h){return(h=+h)+(h>68?1900:2e3)},m=function(h){return function(T){this[h]=+T}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(T){if(!T||T==="Z")return 0;var S=T.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b})(h)}],x=function(h){var T=i[h];return T&&(T.indexOf?T:T.s.concat(T.f))},C=function(h,T){var S,b=i.meridiem;if(b){for(var I=1;I<=24;I+=1)if(h.indexOf(b(I,0,T))>-1){S=I>12;break}}else S=h===(T?"pm":"PM");return S},v={A:[s,function(h){this.afternoon=C(h,!1)}],a:[s,function(h){this.afternoon=C(h,!0)}],Q:[n,function(h){this.month=3*(h-1)+1}],S:[n,function(h){this.milliseconds=100*+h}],SS:[o,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[u,m("seconds")],ss:[u,m("seconds")],m:[u,m("minutes")],mm:[u,m("minutes")],H:[u,m("hours")],h:[u,m("hours")],HH:[u,m("hours")],hh:[u,m("hours")],D:[u,m("day")],DD:[o,m("day")],Do:[s,function(h){var T=i.ordinal;if(this.day=h.match(/\d+/)[0],T)for(var S=1;S<=31;S+=1)T(S).replace(/\[|\]/g,"")===h&&(this.day=S)}],w:[u,m("week")],ww:[o,m("week")],M:[u,m("month")],MM:[o,m("month")],MMM:[s,function(h){var T=x("months"),S=(x("monthsShort")||T.map((function(b){return b.slice(0,3)}))).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[s,function(h){var T=x("months").indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(h){this.year=f(h)}],YYYY:[/\d{4}/,m("year")],Z:c,ZZ:c};function d(h){for(var T=h,S=i&&i.formats,b=(h=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(Y,g,A){var X=A&&A.toUpperCase();return g||S[A]||r[A]||S[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,$,k){return $||k.slice(1)}))}))).match(a),I=b.length,F=0;F<I;F+=1){var M=b[F],E=v[M],P=E&&E[0],_=E&&E[1];b[F]=_?{regex:P,parser:_}:M.replace(/^\[|\]$/g,"")}return function(Y){for(var g={},A=0,X=0;A<I;A+=1){var w=b[A];if(typeof w=="string")X+=w.length;else{var $=w.regex,k=w.parser,q=Y.slice(X),H=$.exec(q)[0];k.call(g,H),Y=Y.replace(H,"")}}return(function(R){var V=R.afternoon;if(V!==void 0){var G=R.hours;V?G<12&&(R.hours+=12):G===12&&(R.hours=0),delete R.afternoon}})(g),g}}return function(h,T,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var b=T.prototype,I=b.parse;b.parse=function(F){var M=F.date,E=F.utc,P=F.args;this.$u=E;var _=P[1];if(typeof _=="string"){var Y=P[2]===!0,g=P[3]===!0,A=Y||g,X=P[2];g&&(X=P[2]),i=this.$locale(),!Y&&X&&(i=S.Ls[X]),this.$d=(function(q,H,R,V){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*q);var G=d(H)(q),j=G.year,L=G.month,D=G.day,W=G.hours,z=G.minutes,U=G.seconds,J=G.milliseconds,te=G.zone,ne=G.week,oe=new Date,K=D||(j||L?1:oe.getDate()),ee=j||oe.getFullYear(),y=0;j&&!L||(y=L>0?L-1:oe.getMonth());var p,B=W||0,O=z||0,Z=U||0,le=J||0;return te?new Date(Date.UTC(ee,y,K,B,O,Z,le+60*te.offset*1e3)):R?new Date(Date.UTC(ee,y,K,B,O,Z,le)):(p=new Date(ee,y,K,B,O,Z,le),ne&&(p=V(p).week(ne).toDate()),p)}catch{return new Date("")}})(M,_,E,S),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),A&&M!=this.format(_)&&(this.$d=new Date("")),i={}}else if(_ instanceof Array)for(var w=_.length,$=1;$<=w;$+=1){P[1]=_[$-1];var k=S.apply(this,P);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}$===w&&(this.$d=new Date(""))}else I.call(this,F)}}}))})),Vu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=a()})(e,(function(){"use strict";return function(r,a){var n=a.prototype,o=n.format;n.format=function(u){var s=this,i=this.$locale();if(!this.isValid())return o.bind(this)(u);var f=this.$utils(),m=(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(c){switch(c){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return i.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return i.ordinal(s.week(),"W");case"w":case"ww":return f.s(s.week(),c==="w"?1:2,"0");case"W":case"WW":return f.s(s.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return f.s(String(s.$H===0?24:s.$H),c==="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 c}}));return o.bind(this)(m)}}}))})),Mu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_localeData=a()})(e,(function(){"use strict";return function(r,a,n){var o=a.prototype,u=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,x,C,v,d){var h=c.name?c:c.$locale(),T=u(h[x]),S=u(h[C]),b=T||S.map((function(F){return F.slice(0,v)}));if(!d)return b;var I=h.weekStart;return b.map((function(F,M){return b[(M+(I||0))%7]}))},i=function(){return n.Ls[n.locale()]},f=function(c,x){return c.formats[x]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,d,h){return d||h.slice(1)}))})(c.formats[x.toUpperCase()])},m=function(){var c=this;return{months:function(x){return x?x.format("MMMM"):s(c,"months")},monthsShort:function(x){return x?x.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):s(c,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return f(c.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},n.localeData=function(){var c=i();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(x){return f(c,x)},meridiem:c.meridiem,ordinal:c.ordinal}},n.months=function(){return s(i(),"months")},n.monthsShort=function(){return s(i(),"monthsShort","months",3)},n.weekdays=function(c){return s(i(),"weekdays",null,null,c)},n.weekdaysShort=function(c){return s(i(),"weekdaysShort","weekdays",3,c)},n.weekdaysMin=function(c){return s(i(),"weekdaysMin","weekdays",2,c)}}}))})),Iu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekOfYear=a()})(e,(function(){"use strict";var r="week",a="year";return function(n,o,u){var s=o.prototype;s.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=u(this).startOf(a).add(1,a).date(f),c=u(this).endOf(r);if(m.isBefore(c))return 1}var x=u(this).startOf(a).date(f).startOf(r).subtract(1,"millisecond"),C=this.diff(x,r,!0);return C<0?u(this).startOf("week").week():Math.ceil(C)},s.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),Lu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekYear=a()})(e,(function(){"use strict";return function(r,a){a.prototype.weekYear=function(){var n=this.month(),o=this.week(),u=this.year();return o===1&&n===11?u+1:n===0&&o>=52?u-1:u}}}))})),Au=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_dayOfYear=a()})(e,(function(){"use strict";return function(r,a,n){a.prototype.dayOfYear=function(o){var u=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return o==null?u:this.add(o-u,"day")}}}))})),Pu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrAfter=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}}))})),Fu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrBefore=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}}))})),tt=rt($u(),1),Ru=rt(Bu(),1),Du=rt(Vu(),1),Ou=rt(Mu(),1),qu=rt(Iu(),1),Hu=rt(Lu(),1),ju=rt(Au(),1),Ku=rt(Pu(),1),Wu=rt(Fu(),1);tt.default.extend(Ou.default);tt.default.extend(Du.default);tt.default.extend(Ru.default);tt.default.extend(qu.default);tt.default.extend(Hu.default);tt.default.extend(ju.default);tt.default.extend(Ku.default);tt.default.extend(Wu.default);var He={format(e,t="YYYY-MM-DD"){return(0,tt.default)(e).format(t)},parser(e,t){return(0,tt.default)(e,t).toDate()},getDay(e,t,r){let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),r=r??"YYYY-MM-DD",this.format(a,r)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,r){let a=new Date(e+"/"+t+"/"+r).getDay();return a==0&&(a=7),a},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){return t=t||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(t)},compare(e,t,r){const a=typeof e=="string"?this.parser(e,r):e,n=typeof t=="string"?this.parser(t,r):t,o=a.getTime(),u=n.getTime();return o==u?0:o>u?1:-1},between(e,t,r,a){let n;a==="year"?n=new Date(new Date(t).setFullYear(t.getFullYear()+r)):a==="month"?n=new Date(new Date(t).setMonth(t.getMonth()+r)):n=new Date(new Date(t).setDate(t.getDate()+r));const o=e.getTime(),u=n.getTime(),s=t.getTime();return u>s?o>=s&&o<=u:o>=u&&o<=s},inScope4Day(e,t,r){return this.between(e,t,r,"day")},inScope4Month(e,t,r){return this.between(e,t,r,"month")},inScope4Year(e,t,r){return this.between(e,t,r,"year")}},Ya={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"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},Ua={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}},Yu={...Ne,...Te,...Ya,...Ua};function Uu(e,t,r,a){return{props:Yu,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=(0,l.computed)(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),T=(0,l.computed)(()=>R.value?"longTermKey":"normalKey"),S=y=>{if(R.value&&n.type==="daterange"){const p=[...d.value];p[0]=y,d.value=p}else d.value=y;c("update:modelValue",d.value),c("change",d.value)},b=(0,l.computed)(()=>R.value&&n.type==="daterange"?"date":n.type),I=e,F=(0,l.computed)(()=>({[`${I}`]:!0,"is-long":R.value,"is-readonly":f.value,"is-disabled":s.value}));let M=ge(n,"hintText"),E=(0,l.ref)(!1);const P=y=>{let p=y.target.value;v.value=!0,me(M.value)||(E.value=!0),c("focus",p,y)},_=y=>{setTimeout(()=>{E.value&&(E.value=!1),v.value=!1},0);let p=y.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),c("blur",p,y)},Y=()=>{c("clear","")},g=y=>{c("calendar-change",y)},A=(y,p,B)=>{c("panel-change",y,p,B)},X=y=>{c("visible-change",y)},w=Ie((0,l.computed)(()=>n.longTermText),"longTermText",Me.Near),$=Ie((0,l.computed)(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),k=Ie((0,l.computed)(()=>n.longTermValue),"longTermValue",Me.Near),q=Ie((0,l.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let H=null;const R=(0,l.ref)(de(n.longTerm)),V=y=>{if(R.value=y,c("update:longTerm",y),y){if(H=d.value,n.type==="daterange"){const p=[];Array.isArray(k.value)?(p[0]=d.value?d.value[0]??k.value[0]:null,p[1]=k.value[1]??k.value[0]):(p[0]=d.value?d.value[0]??k.value:null,p[1]=R.value),p[0]||(p[0]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),d.value=p}else Array.isArray(k.value)?d.value=k.value[1]??k.value[0]:d.value=k.value,d.value||(d.value=n.valueFormat?He.format(new Date,n.valueFormat):new Date);c("update:modelValue",d.value)}else{if(n.type==="daterange"){const p=[];p[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(H)?p[1]=H[1]:p[1]=H,p[0]||(p[0]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),d.value=p}else d.value=H;c("update:modelValue",d.value),setTimeout(()=>{oe()},100)}},G=de(n.isLongTerm);if(G){const y=()=>{if(R.value===!0){if(H=d.value,n.type==="daterange"){const p=[d.value[0]];Array.isArray(k.value)?p[1]=k.value[1]??k.value[0]:p[1]=R.value,p[0]||(p[0]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),p[1]||(p[1]=n.valueFormat?He.format(new Date,n.valueFormat):new Date),d.value=p}else d.value=k.value;c("update:modelValue",d.value)}else et(k.value,d.value)&&(R.value=!0)};y(),(0,l.watch)([()=>n.longTerm],([p])=>{R.value!==p&&y()}),(0,l.watch)([()=>d.value],([p])=>{let B=!1;if(n.type==="daterange"&&Array.isArray(p))try{let O=p[1];if(!O)return;if(p[0]==null){c("update:modelValue",[]);return}typeof O!="string"&&n.valueFormat&&(O=He.format(O,n.valueFormat));let Z=Array.isArray(k.value)?k.value[1]:k.value;(O===Z||Array.isArray(q.value)&&q.value.findIndex(le=>O==le)!==-1)&&(B=!0)}catch(O){console.error(O)}R.value!==B&&(R.value=B)},{immediate:!0})}const j=(0,l.computed)(()=>({"fox-date-item__long":!0,"is-active":v.value})),L=(0,l.ref)(),D=(0,l.ref)(),W=/^\d+$/,z=(y,p)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(y,p):W.test(y)&&y.length===n.flashFillThreshold,U=(y,p)=>{let B;if(typeof n.flashFillFormat=="function")B=n.flashFillFormat(y,p);else{const Z=n.flashFillFormat??"YYYYMMDD";B=He.parser(y,Z)}const O=n.valueFormat??"YYYY-MM-DD";return He.format(B,O)},J=y=>y?y.endsWith("range"):!1,te=y=>{if(!y.target)return;const p=y.target.value??"";if(z(p,n.type)){const B=U(p,n.type);if(J(n.type)){const O=Array.isArray(d.value)?[...d.value]:[];O[0]=B,S(O)}else S(B)}},ne=y=>{if(!y.target)return;const p=y.target.value??"";if(z(p,n.type)){const B=U(p,n.type);if(J(n.type)){const O=Array.isArray(d.value)?[...d.value]:[];O[1]=B,S(O)}else S(B)}},oe=()=>{if(n.flashFill&&L.value&&L.value.$el)if(J(n.type)){const y=L.value.$el.querySelectorAll("input.el-range-input");y[0]&&y[0].addEventListener("input",te),y[1]&&y[1].addEventListener("input",ne)}else{const y=L.value.$el.querySelector("input.el-input__inner");y&&y.addEventListener("input",te)}},K=()=>{if(n.flashFill&&L.value&&L.value.$el)if(J(n.type)){const y=L.value.$el.querySelectorAll("input.el-range-input");y[0]&&y[0].removeEventListener("input",te),y[1]&&y[1].removeEventListener("input",ne)}else{const y=L.value.$el.querySelector("input.el-input__inner");y&&y.removeEventListener("input",te)}};(0,l.onMounted)(oe),(0,l.onBeforeUnmount)(K),xe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()},setDisabled:y=>{u.value=y},setReadonly:y=>{i.value=y}});const ee=(0,l.computed)(()=>{if(Ae(h.value))return"";const y=n.rangeSeparator??" - ",p=Array.isArray(h.value)?h.value:[h.value];G&&R.value&&(p[1]=w.value);const B=[];for(let Z=0;Z<p.length;Z++){const le=p[Z];if(le==="string"&&B.push(le),le instanceof Date){const re=He.format(le,n.format);B.push(re)}}const O=` ${y} `;return B.join(O)});return()=>{if(m.value==="on"&&(f.value||s.value))return a(ee.value,o.slots);const y={...o.attrs,key:T.value,type:b.value,ref:D,class:F.value,placeholder:C.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:s.value,readonly:f.value,modelValue:h.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":S,onClear:Y,onFocus:P,onBlur:_,onCalendarChange:g,onPanelChange:A,onVisibleChange:X},p={};o.slots["range-separator"]&&(p["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(p.default=o.slots.cell);const B=[],O=(0,l.h)(N.ElDatePicker,y,p);B.push(O);const Z={default:()=>B};if(Z.label=o.slots.default,Z.fixedPreTip=o.slots.fixedPreTip,Z.fixedTip=o.slots.fixedTip,G){if(R.value){const re=(0,l.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),ce=(0,l.h)("input",{class:["fox-date-item__long-text"],value:w.value,readonly:!0}),he=(0,l.h)("div",{class:j.value},{default:()=>[re,ce]});B.push(he)}if(!f.value&&!s.value){const re=(0,l.h)(N.ElCheckbox,{label:$.value||w.value,disabled:f.value||s.value,modelValue:R.value,"onUpdate:modelValue":V}),ce=(0,l.h)("div",{class:{[`${I}__append`]:!0}},[re]);Z.append=()=>ce}}const le={...Fe(n,Ya,Ua),ref:L,class:{[`${I}__wrapper`]:!0,"has-append":G},hintText:M.value,hintVisible:E.value};return n.prop&&(le.prop=`${n.prop}_item`),r(le,Z)}}}}var{componentName:Gu,create:Xu,scope:Zu}=se("date-item"),Ju=Xu(Uu(Gu,Zu,De,Ke)),Mn=Ju,Ga={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},Qu={...Ne,...Te,...Ga};function e1(e,t,r,a){return{props:Qu,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=e,T=(0,l.computed)(()=>({[h]:!0})),S=g=>{d.value=g,c("update:modelValue",g),c("change",g)};let b=ge(n,"hintText"),I=(0,l.ref)(!1);const F=g=>{let A=g.target.value;v.value=!0,me(b.value)||(I.value=!0),c("focus",A,g)},M=g=>{setTimeout(()=>{I.value&&(I.value=!1),v.value=!1},0);let A=g.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),c("blur",A,g)},E=()=>{c("clear","")},P=g=>{c("visible-change",g)},_=(0,l.ref)();xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:g=>{u.value=g},setReadonly:g=>{i.value=g}});const Y=(0,l.computed)(()=>{if(Ae(d.value))return"";const g=n.rangeSeparator??" - ",A=Array.isArray(d.value)?d.value:[d.value],X=[];for(let $=0;$<A.length;$++){const k=A[$];if(k==="string"&&X.push(k),k instanceof Date){const q=He.format(k,n.format);X.push(q)}}const w=` ${g} `;return X.join(w)});return()=>{if(m.value==="on"&&(f.value||s.value))return a(Y.value,o.slots);const g={...o.attrs,ref:_,class:T.value,placeholder:C.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:s.value,readonly:f.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:E,onFocus:F,onBlur:M,onVisibleChange:P},A={},X=[],w=(0,l.h)(N.ElTimePicker,g,A);X.push(w);const $={default:()=>X};$.label=o.slots.default,$.fixedPreTip=o.slots.fixedPreTip,$.fixedTip=o.slots.fixedTip;const k={...Fe(n,Ga),hintText:b.value,hintVisible:I.value};return n.prop&&(k.prop=`${n.prop}_item`),r(k,$)}}}}var{componentName:t1,create:l1,scope:n1}=se("time-item"),r1=l1(e1(t1,n1,De,Ke)),In=r1,Xa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},a1={...Ne,...Te,...Xa};function o1(e,t,r,a){return{props:a1,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=e,T=(0,l.computed)(()=>({[h]:!0})),S=Y=>{d.value=Y,c("update:modelValue",Y),c("change",Y)};let b=ge(n,"hintText"),I=(0,l.ref)(!1);const F=Y=>{let g=Y.target.value;v.value=!0,me(b.value)||(I.value=!0),c("focus",g,Y)},M=Y=>{setTimeout(()=>{I.value&&(I.value=!1),v.value=!1},0);let g=Y.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),c("blur",g,Y)},E=()=>{c("clear","")},P=(0,l.ref)();xe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()},setDisabled:Y=>{u.value=Y},setReadonly:Y=>{i.value=Y}});const _=(0,l.computed)(()=>{if(Ae(d.value))return"";const Y=n.rangeSeparator??" - ",g=Array.isArray(d.value)?d.value:[d.value],A=[];for(let w=0;w<g.length;w++){const $=g[w];if($==="string"&&A.push($),$ instanceof Date){const k=He.format($,n.format);A.push(k)}}const X=` ${Y} `;return A.join(X)});return()=>{if(m.value==="on"&&(f.value||s.value))return a(_.value,o.slots);const Y={...o.attrs,ref:P,class:T.value,placeholder:C.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:s.value,readonly:f.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:E,onFocus:F,onBlur:M},g={},A=[],X=(0,l.h)(N.ElTimeSelect,Y,g);A.push(X);const w={default:()=>A};w.label=o.slots.default,w.fixedPreTip=o.slots.fixedPreTip,w.fixedTip=o.slots.fixedTip;const $={...Fe(n,Xa),hintText:b.value,hintVisible:I.value};return n.prop&&($.prop=`${n.prop}_item`),r($,w)}}}}var{componentName:i1,create:s1,scope:u1}=se("time-select-item"),c1=s1(o1(i1,u1,De,Ke)),Ln=c1;function Nr(e,t=0){let r=`${e}`,a=r.indexOf(".");if(a==-1)return r;let n=a;for(let o=r.length-1;o>=a;o--)if(r.charAt(o)!="0"){n=o;break}return n-a<t?n=a+t+1:n!=a&&(n+=1),n>r.length?r=r.padEnd(n,"0"):r=r.substring(0,n),r}function Cr(e,t,r=20){return typeof t=="string"&&(t=ke(t)),t==1||t==-1?`${e}`:t==0?"0":t>0?Nr(Qr(`${e}`,`${t}`)):Nr(fn(`${e}`,ea(`${t}`),20))}function d1(e,t=-1,r=!1,a=3,n=","){return dl(e,ke(t),r,a,n)}function zr(e,t,r,a,n=!0){if(e==="")return"";if(e=ta(e),t=ke(t),t==1)return e;if(a)e=Cr(e,t),r&&(e=="0"&&n?e=`${e}.`.padEnd(ke(r)+2,"0"):e=fn(e,1,ke(r)));else{let o=-1*t;e=Cr(e,o)}return e}function kr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let a=de(t.minInclude),n=Ql(e,t.min);(a&&n==-1||!a&&(n==0||n==-1))&&(r.message="请输入不小于 {0} 的数值".replace("{0}",t.min),r.minValid=!1)}if(t.max!=null){let a=de(t.maxInclude),n=Ql(e,t.max);(a&&n==1||!a&&(n==0||n==1))&&(r.maxValid=!1)}return r}var Za={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},f1={...Ne,...Te,...Za};function m1(e,t,r,a){return{props:f1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),x=(0,l.ref)(!1),C=ge(n,"modelValue",null,c),v=(0,l.ref)("");(0,l.watch)([()=>C.value,()=>n.rates,()=>n.precision],([R,V,G])=>{if(me(R)){v.value="";return}const j=zr(R,V,G,!1);v.value!==j&&(v.value=j)},{immediate:!0});const d=(0,l.computed)(()=>{let R="";return x.value&&(R=v.value),R}),{t:h}=(0,Pe.useFoxI18n)(t),T=(0,l.computed)(()=>{let R=n.placeholder??"";return!x.value&&!me(v.value)?R=d1(v.value,n.decimalLength,n.autoPadding,n.digits,n.separator):R=h(["placeholder",R]),R}),S=e,b=(0,l.computed)(()=>({[S]:!0,[`${S}__disabled`]:s.value,[`${S}__placeholder`]:v.value.length>0})),I=Ie((0,l.computed)(()=>n.textAlign),"textAlign"),F=(0,l.computed)(()=>x.value?{textAlign:"left"}:{textAlign:I.value??"right"}),M=(0,l.ref)(""),E=(0,l.computed)(()=>{let R=M.value;return me(R)&&(R=n.errorTip??""),R}),P=(0,l.ref)(""),_=(0,l.ref)(!1),Y=(R,V)=>{if(R=`${R}`,me(R)){v.value="",C.value="",V.forEach(G=>{c(G,"")}),de(n.showTip)&&_.value&&(_.value=!1);return}if(R.length>=2){let G=R;if(G.charAt(0)=="-"&&(G=G.substring(1)),G.length>=2&&G.charAt(0)=="0"&&G.charAt(1)!="."){(0,l.triggerRef)(v);return}}if(R!="-"){if(!hn(R)){(0,l.triggerRef)(v);return}if(n.integerLength!=-1&&ca(R)>Number(n.integerLength)){(0,l.triggerRef)(v);return}if(n.decimalLength&&n.decimalLength!=-1&&da(R)>Number(n.decimalLength)){(0,l.triggerRef)(v);return}let G=kr(R,n);if(G.maxValid===!1){M.value=G.message,(0,l.triggerRef)(v);return}}else if(n.min!=null&&ke(n.min)>=0){(0,l.triggerRef)(v);return}P.value=R,de(n.showTip)&&(_.value=R.length>0),v.value=R,C.value=zr(R,n.rates,n.precision,!0),V.forEach(G=>{c(G,C.value)})},g=R=>{Y(R,["update:modelValue","input"])},A=R=>{Y(R,["update:modelValue","change"])},X=R=>{if(x.value=!0,de(n.showTip)){let V=v.value;me(V)&&(V=n.hintText),me(V)||(P.value=V,_.value=!0)}M.value="",c("focus",C.value,R)},w=R=>{if(setTimeout(()=>{x.value=!1,de(n.showTip)&&_.value===!0&&(_.value=!1)},0),!me(v.value)){let V=kr(v.value,n);if(V.minValid===!1||V.maxValid===!1){M.value=V.message;return}}c("update:modelValue",C.value,R),c("blur",C.value,R)},$=()=>{c("clear","")},k=(0,l.computed)(()=>jt(n.unit)>0),q=(0,l.ref)();xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:R=>{u.value=R},setReadonly:R=>{i.value=R}});const H=()=>C.value?T.value:C.value;return()=>{if(m.value==="on"&&(f.value||s.value))return a(H(),o.slots);const R={...Je(o.attrs),ref:q,class:b.value,style:F.value,type:"digit",maxlength:n.maxLength,placeholder:T.value,clearable:n.clearable,disabled:s.value,readonly:f.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:$,onInput:g,onChange:A,onFocus:X,onBlur:w},V={};o.slots.prepend&&(V.prepend=o.slots.prepend),o.slots.append&&(V.append=o.slots.append),o.slots.prefix&&(V.prefix=o.slots.prefix),o.slots.suffix?V.suffix=o.slots.suffix:k.value&&(V.suffix=()=>[n.unit]);const G=[],j=(0,l.h)(N.ElInput,R,V);G.push(j);const L={default:()=>G};L.label=o.slots.default,L.fixedPreTip=o.slots.fixedPreTip,L.fixedTip=o.slots.fixedTip;const D={...Fe(n,Za),errorTip:E.value,hintText:P.value,hintVisible:_.value,hintType:"number"};return n.prop&&(D.prop=`${n.prop}_item`),r(D,L)}}}}var{componentName:p1,create:h1,scope:g1}=se("money-item"),v1=h1(m1(p1,g1,De,Ke)),An=v1,Ja={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},maxLength:{type:[String,Number]}},y1={...Ne,...Te,...Ja};function b1(e,t,r,a){return{props:y1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=e,T=(0,l.computed)(()=>({[h]:!0,[`${h}__append`]:Y.value})),S=(0,l.computed)(()=>({[`${h}__unit`]:!0})),b=A=>{d.value=A,c("update:modelValue",A),c("input",A)},I=A=>{c("change",A)};let F=ge(n,"hintText"),M=(0,l.ref)(!1);const E=A=>{let X=A.target.value;v.value=!0,me(F.value)||(M.value=!0),c("focus",X,A)},P=A=>{setTimeout(()=>{M.value&&(M.value=!1),v.value=!1},0);let X=A.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),c("blur",X,A)},_=()=>{c("clear","")},Y=(0,l.computed)(()=>jt(n.unit)>0),g=(0,l.ref)();return xe({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},setDisabled:A=>{u.value=A},setReadonly:A=>{i.value=A}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(d.value,o.slots);const A={...Je(o.attrs),ref:g,class:T.value,placeholder:C.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:f.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:I,onInput:b,onFocus:E,onBlur:P},X={},w=[],$=(0,l.h)(N.ElInputNumber,A,X);w.push($);const k={default:()=>w};k.label=o.slots.default,k.fixedPreTip=o.slots.fixedPreTip,k.fixedTip=o.slots.fixedTip;const q={...Fe(n,Ja),hintText:F.value,hintVisible:M.value};if(n.prop&&(q.prop=`${n.prop}_item`),o.slots.append)k.append=o.slots.append;else if(Y.value){const H=(0,l.h)("div",{class:S.value},[n.unit]);k.append=()=>H}return r(q,k)}}}}var{componentName:S1,create:w1,scope:x1}=se("input-number-item"),N1=w1(b1(S1,x1,De,Ke)),Pn=N1;function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function mt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function C1(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}var z1=class{proxy;constructor(e){this.proxy=e}async load(e,t,r,a){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const n=We(this.proxy,e);return n===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await n(t,r,a))}};function k1(){return new z1((0,l.getCurrentInstance)().proxy)}function sn(e,t,r){return!(lt(e,t)!==lt(e,r)||mt(e,t)!==mt(e,r))}function Qa(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];let o=a;for(let u=0;Array.isArray(o)&&u<t.length;u++){const s=t[u];if(Array.isArray(s)){const i=Qa(e,s,r,a);n.push(i)}else{let i=!1;for(let f of o){if(r==="text")i=lt(e,f)===s;else if(r==="item")i=sn(e,f,s);else{let m=mt(e,f);m==null&&(m=lt(e,f)),i=m===s}if(i){n.push(f),o=C1(e,f);break}}if(!i)break}}return n}function _1(e){return{text:e,value:e}}var eo={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},allowCreate:{type:[Boolean]},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},E1={...Ne,...Te,...eo};function T1(e,t,r,a){return{props:E1,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(null),d=(0,l.ref)([]),h=(0,l.computed)(()=>d.value?d.value.map(K=>Array.isArray(K)?K.map(ee=>lt(n,ee)).join(" "):lt(n,K)).join(" "):""),T=(K,ee,y,p=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(v.value===K)return;v.value=K;const le=(0,l.toRaw)(K);if(p){const re=oe?.value.getCheckedNodes();if(re)if(n.multiple){const ce=[];re.forEach(he=>{const be=(he.pathNodes??[]).map($e=>$e.data);ce.push(be)}),c("update:pathNodes",ce)}else c("update:pathNodes",(re[0]?.pathNodes??[]).map(ce=>ce.data));c("update:modelValue",le),c("change",le)}return}const B=Qa(n,K,ee,y);if(B===null){if(d.value.length===0||d.value===null)return;d.value=[],v.value=null,p&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=B[B.length-1];if(w.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const le=[];B.forEach(re=>{const ce=`${lt(n,re)}`;le.push(ce)}),le.length>0&&(A.value=le.join(n.separator))}else A.value=null;let Z=!0;if(B.length!==d.value.length)Z=!1;else for(let le=0;le<B.length;le++){const re=B[le],ce=d.value[le];if(Array.isArray(re)){if(!Array.isArray(ce)||re.length!==ce.length)Z=!1;else for(let he=0;he<re.length;he++)if(!sn(n,re[he],ce[he])){Z=!1;break}}else sn(n,re,ce)||(Z=!1);if(!Z)break}if(!Z){d.value=B;let le=[],re=[];B.forEach(he=>{if(Array.isArray(he)){let be=[],$e=[];for(let qe of he)be.push(mt(n,qe)),n.valueType==="text"?$e.push(lt(n,qe)):n.valueType==="item"?$e.push(qe):$e.push(mt(n,qe));le.push(be),re.push($e)}else le.push(mt(n,he)),n.valueType==="text"?re.push(lt(n,he)):n.valueType==="item"?re.push(he):re.push(mt(n,he))}),v.value=le;const ce=(0,l.toRaw)(re);p&&(c("update:pathNodes",B),c("update:modelValue",ce),c("change",ce))}},S=(0,l.ref)([]),b=Ie((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,K=>de(K)),I=k1(),F=async(K,ee)=>{if(K){const y=await I.load("cascader",K,ee);y.length>0&&(typeof y[0]=="string"?S.value=y.map(p=>_1(p)):S.value=y)}};(0,l.watch)([()=>n.source,()=>n.params],async([K,ee])=>{F(K,ee)},{immediate:!(b.value||n.lazy)});let M=!1;const E=()=>{M||(M=!0,F(n.source,n.params))};(0,l.watch)([()=>S.value,()=>n.modelValue],([K,ee])=>{T(ee,n.valueType,K,!1),c("setValue",ee)}),n.lazy&&T(n.modelValue,"value",[],!1);let P=null,_=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(P=async K=>{if(K!=null){_.value=!0;try{S.value=await n.remoteMethod(K)}catch(ee){console.error(ee)}_.value=!1}});const Y=(0,l.ref)(!1),g=e,A=(0,l.ref)(null),X=(0,l.computed)(()=>({[g]:!0,"is-incomplete":A.value&&A.value.length>0})),w=(0,l.computed)(()=>{let K={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(K.multiple=!0),n.props&&Object.assign(K,n.props),n.lazy&&(K.lazy=!0,typeof n.lazyLoad=="function"?K.lazyLoad=n.lazyLoad:K.lazyLoad=async(ee,y)=>{let p={};n.params&&Object.assign(p,n.params),ee&&Object.assign(p,ee);const B=await I.load("cascader",n.source,p,!0);if(ee?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===ee.level){const O=ee.pathLabels??[];let Z=[];O.forEach(le=>{le&&Z.push(le)}),Z.length>0&&(A.value=Z.join(n.separator))}else A.value=null;y(B)}),K}),$=K=>{n.allowCreate?(c("update:modelValue",K),c("change",K),v.value=K):T(K,"value",S.value,!0)};let k=ge(n,"hintText"),q=(0,l.ref)(!1);const H=K=>{let ee=K.target.value;Y.value=!0,me(k.value)||(q.value=!0),c("focus",ee,K)},R=K=>{setTimeout(()=>{q.value&&(q.value=!1),Y.value=!1},0);let ee=K.target.value;n.maxLength&&ee.length>Number(n.maxLength)&&(ee=ee.slice(0,Number(n.maxLength))),U.value||c("blur",ee,K)},V=()=>{c("clear","")},G=(0,l.ref)(!1);let j=null;const L=()=>{n.showTooltip&&G.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{G.value=!0},150))},D=()=>{j&&(clearTimeout(j),G.value=!1,j=null)},W=(0,l.computed)(()=>G.value||q.value),z=(0,l.computed)(()=>G.value?h.value:k.value),U=(0,l.ref)(!1),J=K=>{U.value=K,c("visible-change",K),K||c("selected")},te=K=>{c("remove-tag",K)},ne=K=>{c("expand-change",K)},oe=(0,l.ref)();return xe({focus:()=>{oe?.value.focus()},blur:()=>{oe?.value.blur()},getCheckedNodes:()=>oe?.value.getCheckedNodes(),setDisabled:K=>{u.value=K},setReadonly:K=>{i.value=K}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(v.value,o.slots,S.value,n.separator);const K={...o.attrs,ref:oe,class:X.value,props:w.value,clearable:n.clearable,placeholder:A.value||C.placeholder.value,disabled:s.value||f.value,options:S.value,modelValue:v.value,separator:n.separator,onClear:V,onChange:$,onFocus:H,onBlur:R,onVisibleChange:J,onRemoveTag:te,expandChange:ne};typeof P=="function"&&(K["remote-method"]=P,K.loading=_.value);const ee={};o.slots.option&&(ee.default=o.slots.option),o.slots.empty&&(ee.empty=o.slots.empty);const y=[],p=(0,l.h)(N.ElCascader,K,ee);y.push(p);const B={default:()=>y};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const O={...Fe(n,eo),hintText:z.value,hintVisible:W.value,onMouseover:L,onMouseleave:D};return n.prop&&(O.prop=`${n.prop}_item`),b.value&&!n.lazy&&(O["appear-listen"]=!0,O.onAppear=E),r(O,B)}}}}var{componentName:$1,create:B1,scope:V1}=se("cascader-item"),M1=B1(T1($1,V1,De,Ke)),Fn=M1,to={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},I1={...Ne,...Te,...to};function L1(e,t,r,a){return{props:I1,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:x}=(0,Pe.useFoxI18n)(t),C=x(n,["placeholder"]),v=(0,l.ref)(!1),d=ge(n,"modelValue",null,c),h=e,T=(0,l.computed)(()=>({[h]:!0})),S=g=>{d.value=g,c("update:modelValue",g),c("input",g)},b=g=>{c("change",g)},I=g=>{c("select",g)};let F=ge(n,"hintText"),M=(0,l.ref)(!1);const E=g=>{let A=g.target.value;v.value=!0,me(F.value)||(M.value=!0),c("focus",A,g)},P=g=>{setTimeout(()=>{M.value&&(M.value=!1),v.value=!1},0);let A=g.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),c("blur",A,g)},_=()=>{c("clear","")},Y=(0,l.ref)();return xe({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},select:()=>{Y?.value.select()},setDisabled:g=>{u.value=g},setReadonly:g=>{i.value=g}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(d.value,o.slots);const g={...o.attrs,ref:Y,class:T.value,placeholder:C.placeholder.value,clearable:n.clearable,disabled:s.value,readonly:f.value,modelValue:d.value,onClear:_,onChange:b,onInput:S,onFocus:E,onBlur:P,onSelect:I},A={};o.slots.prepend&&(A.prepend=o.slots.prepend),o.slots.append&&(A.append=o.slots.append),o.slots.prefix&&(A.prefix=o.slots.prefix),o.slots.suffix&&(A.suffix=o.slots.suffix),o.slots.option&&(A.default=o.slots.option);const X=[],w=(0,l.h)(N.ElAutocomplete,g,A);X.push(w);const $={default:()=>X};$.label=o.slots.default,$.fixedPreTip=o.slots.fixedPreTip,$.fixedTip=o.slots.fixedTip;const k={...Fe(n,to),hintText:F.value,hintVisible:M.value};return n.prop&&(k.prop=`${n.prop}_item`),r(n,$)}}}}var{componentName:A1,create:P1,scope:F1}=se("autocomplete-item"),R1=P1(L1(A1,F1,De,Ke)),Rn=R1;function D1(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],u=0,s=o.indexOf("["),i=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&i!==-1;){let f=o.substring(s+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(u==0){let c=o.substring(0,s);a=a[c][m]}else a=a[m];u++}s=o.indexOf("[",i),i=s==-1?-1:o.indexOf("]",s)}u===0&&(a=a[o])}return a}function O1(e,t){return{props:{...Oa},setup(r,{attrs:a,slots:n}){return()=>{const o={default:u=>{const s=D1(u.row,u.column.property);return n.default?(0,l.h)(Ct,{...r,modelValue:s},{default:n.default}):(0,l.h)(Ct,{...r,modelValue:s})}};for(let u in n)u!=="default"&&(o[u]=n[u]);return(0,l.h)(N.ElTableColumn,{...a},o)}}}}var{componentName:q1,create:H1,scope:j1}=se("table-mapping-column"),K1=H1(O1(q1,j1)),Dn=K1,W1=Symbol.for("TableStateKey");function _r(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],u=0,s=o.indexOf("["),i=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&i!==-1;){let f=o.substring(s+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(u==0){let c=o.substring(0,s);a=a[c][m]}else a=a[m];u++}s=o.indexOf("[",i),i=s==-1?-1:o.indexOf("]",s)}u===0&&(a=a[o])}return a}function Y1(e,t){return{props:{prop:{type:[String],require:!1}},setup(r,{attrs:a}){const n=(0,l.inject)(W1,{});let o=null;return()=>{const u={default:s=>{const i=n.currentRow?n.currentRow.value:null;s.$index!==-1&&(o=s.row);const f=s.$index!==-1?s.row:o;let m=!1;if(f){const x=r.prop??s.column.property;x?m=_r(f,x)===(i?_r(i,x):null):m=et(f,i)}const c=(0,l.h)("span",{class:{"el-radio__input":!0,"is-checked":m}},[(0,l.h)("span",{class:{"el-radio__inner":!0}})]);return(0,l.h)("label",{class:{"el-radio":!0,"is-checked":m}},[c])}};return(0,l.h)(N.ElTableColumn,{...a},u)}}}}var{componentName:U1,create:G1,scope:X1}=se("table-radio-column"),Z1=G1(Y1(U1,X1)),On=Z1,J1={},Q1={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function e0(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",Q1,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var t0=Ze(J1,[["render",e0]]),{componentName:L5,create:l0,scope:A5}=se("table-setting"),n0={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:"不固定"}},r0=l0({components:{FoxPopover:N.ElPopover,FoxCheckbox:N.ElCheckbox,FoxCheckboxGroup:N.ElCheckboxGroup,FoxButton:N.ElButton,FoxIcon:N.ElIcon,DragIcon:t0,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...n0},setup(e,{emit:t,attrs:r}){let a=[];const n=(0,l.ref)([]),o=(0,l.computed)(()=>n.value.filter(z=>z.label===""||z.type?!1:z.fixed===""||z.fixed===!0||z.fixed==="left")),u=(0,l.computed)(()=>n.value.filter(z=>z.label===""||z.type?!1:z.fixed==="right")),s=(0,l.computed)(()=>n.value.filter(z=>!(z.label===""||z.type||z.fixed!==void 0))),i=(0,l.computed)(()=>(o.value.length>0||u.value.length>0)&&s.value.length>0),f=(0,l.computed)(()=>o.value.length>0),m=(0,l.computed)(()=>u.value.length>0),c=z=>z.length>1,x=(z,U)=>{Array.isArray(z)&&Array.isArray(U)&&z.forEach(te=>{U.some(ne=>ne.prop===te.prop?(te.label=ne.label,!0):!1)});const J=[];n.value=z.map((te,ne)=>(!(te.label===""||te.type)&&te.visible!==!1&&J.push(te.prop),{...te,sortIndex:ne})),s.value.length+o.value.length+u.value.length===J.length?S.value=!0:J.length>0&&(b.value=!0),M.value=J},C=z=>z?z.type?z.type:z.label?z.prop:"":"",v=(z,U)=>{if(z.length!==U.length)return!1;const J=z.map(te=>C(te));for(let te of U){const ne=C(te);if(J.indexOf(ne)===-1)return!1}return!0},d=z=>{if(!z){const U=e.tableRef.getColumnSetting(),J=U.srcColumnPropertyList;a=J.map((te,ne)=>({...te,sortIndex:ne})),z=U.columnPropertyList,z&&z.length>0&&v(J,z)||(z=J)}x(z,a)},h=()=>{e.tableRef.setColumnSetting(n.value)},T=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),S=(0,l.ref)(!1),b=(0,l.ref)(!1),I=z=>{const U=[];n.value.forEach(J=>{z&&!(J.label===""||J.type)&&U.push(J.prop),J.visible=z}),S.value=!1,b.value=!1,s.value.length+o.value.length+u.value.length===U.length?S.value=!0:U.length>0&&(b.value=!0),M.value=U,h()},F=()=>{d(a),h()},M=(0,l.ref)([]),E=z=>{n.value.forEach(J=>{J.label===""||J.type||(J.visible=z.indexOf(J.prop)!==-1)}),S.value=!1,b.value=!1;const U=s.value.length+o.value.length+u.value.length;z.length===U?S.value=!0:z.length>0&&(b.value=!0),h()},P=()=>{d()};(0,l.onMounted)(()=>{setTimeout(()=>{d()},50)});const _={currentRow:null,index:null,roleType:null},Y=z=>z?z.dataset&&z.dataset.role==="row"?z:z.tagName.toLowerCase()!=="body"?(z=z.parentElement,Y(z)):null:null,g=z=>{const U=z.currentTarget;U&&U.dataset&&(_.roleType=U.dataset.roleType,_.index=U.dataset.index)},A=z=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null,_.roleType=null},X=z=>{const U=z.currentTarget;z.relatedTarget;const J=Y(U);if(!J)return;const te=J.dataset&&J.dataset.roleType;_.roleType===te&&(z.preventDefault(),_.currentRow&&_.currentRow!==J&&_.currentRow.classList.remove("is-dragover"),J.classList.add("is-dragover"),_.currentRow=J)},w=z=>{z.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},$=z=>{const U=z.currentTarget,J=Y(U);if(!J)return;const te=J.dataset&&J.dataset.roleType;if(_.roleType!==te)return;z.preventDefault();const ne=Number(_.index),oe=Number(J.dataset.index);if(ne!==oe){if(ne<oe){const K=n.value[ne];n.value.splice(ne,1),n.value.splice(oe,0,K)}else{const K=n.value[ne];n.value.splice(ne,1),n.value.splice(oe+1,0,K)}x(n.value,a),h()}},k=z=>{const U=n.value[z];U.fixed="left",h()},q=z=>{const U=n.value[z];U.fixed="right",h()},H=z=>{const U=n.value[z];U.fixed=void 0,h()},R=new Map;let V=null;function G(z){const U=document.createRange();return U.setStart(z,0),U.setEnd(z,z.childNodes.length),U.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:o,rightFixedColumns:u,unFixedColumns:s,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:m,isDraggble:c,isCheckAll:S,isIndeterminate:b,handleCheckAllChange:I,handleReset:F,checkedValue:M,handleCheckChange:E,onShow:P,onDragStart:g,onDragEnd:A,onDragOver:X,onDragLeave:w,onDrop:$,toLeftFixed:k,toRightFixed:q,toUnFixed:H,checkboxLabelStyle:T,onMouseOverForOverflowText:(z,U,J)=>{const te=z.currentTarget;if(te){const ne=Math.floor(te.offsetWidth);if(Math.floor(G(te))>ne){let oe=R.get(U);if(oe){if(oe===V)return;_e.hide(oe)}oe=_e.show(te,J,{type:"text",placement:"top",closeOnClick:!1}),oe&&(R.set(U,oe),V=oe)}}},onMouseLeaveForOverflowText:(z,U)=>{const J=R.get(U);J&&(_e.hide(J),J===V&&(V=null))},onMouseOverForTip:(z,U)=>{const J=z.currentTarget;J&&(V&&_e.hide(V),V=_e.show(J,U,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:z=>{V&&(_e.hide(V),V=null)}}}}),a0={class:"fox-table-setting"},o0={class:"fox-table-setting__header"},i0={class:"fox-table-setting__body"},s0={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},u0={key:0,class:"fox-table-setting__body-title"},c0=["data-index","draggable"],d0=["onMouseover","onMouseleave"],f0={class:"tools-item"},m0={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},p0={key:0,class:"fox-table-setting__body-title"},h0=["data-index","draggable"],g0=["onMouseover","onMouseleave"],v0={class:"tools-item"},y0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},b0={key:0,class:"fox-table-setting__body-title"},S0=["data-index","draggable"],w0=["onMouseover","onMouseleave"],x0={class:"tools-item"};function N0(e,t,r,a,n,o){const u=(0,l.resolveComponent)("FoxCheckbox"),s=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),f=(0,l.resolveComponent)("RefreshLeft"),m=(0,l.resolveComponent)("FoxIcon"),c=(0,l.resolveComponent)("Download"),x=(0,l.resolveComponent)("fox-checkbox"),C=(0,l.resolveComponent)("FoxCheckboxGroup"),v=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(v,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",a0,[(0,l.createElementVNode)("div",o0,[(0,l.createVNode)(u,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=d=>e.isCheckAll=d),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(s,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",i0,[(0,l.createVNode)(C,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=d=>e.checkedValue=d),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[e.leftFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",s0,[e.isShowLeftFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",u0,(0,l.toDisplayString)(e.leftFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.leftFixedColumns,d=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(u,{class:"checkbox-item",value:d.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(d.label),45,d0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",f0,[(0,l.createVNode)(m,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(m,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"])])],40,c0))),128))])):(0,l.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",m0,[e.isShowNotFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",p0,(0,l.toDisplayString)(e.unFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unFixedColumns,d=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(u,{class:"checkbox-item",value:d.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(d.label),45,g0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",v0,[(0,l.createVNode)(m,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(m,{onClick:h=>e.toRightFixed(d.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"])])],40,h0))),128))])):(0,l.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",y0,[e.isShowRightFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",b0,(0,l.toDisplayString)(e.rightFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.rightFixedColumns,d=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:d.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":d.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(x,{class:"checkbox-item",label:d.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,d.prop,d.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,d.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(d.label),45,w0)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",x0,[(0,l.createVNode)(m,{onClick:h=>e.toUnFixed(d.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(m,{onClick:h=>e.toLeftFixed(d.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"])])],40,S0))),128))])):(0,l.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Bl=Ze(r0,[["render",N0]]),C0=class{proxy;constructor(e){this.proxy=e}async load(e,t,r,a,n,o,u){if(Array.isArray(t)){let i=(r-1)*a,f=i+a;f>t.length&&(f=t.length);const m=t.slice(i,f);return{totalSize:t.length,page:m}}if(typeof t=="function")return await Reflect.apply(t,null,[r,a,n,o,u]);const s=We(this.proxy,e);return s===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Xe(n)&&(0,l.isReactive)(n)&&(n=(0,l.toRaw)(n)),await Reflect.apply(s,null,[t,r,a,n,o,u]))}};function z0(){return new C0((0,l.getCurrentInstance)().proxy)}var k0=class{proxy;constructor(e){this.proxy=e}async load(e){let t=null;const r=We(this.proxy,"tableSetting");return typeof r=="function"&&(t=await Reflect.apply(r,null,["load",e])),t}save(e,t){const r=We(this.proxy,"tableSetting");typeof r=="function"&&Reflect.apply(r,null,["save",e,t])}remove(e){const t=We(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["remove",e])}};function lo(){return new k0((0,l.getCurrentInstance)().proxy)}var _0=Symbol.for("TableStateKey"),no={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},ro={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},un={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},E0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function T0(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],u=0,s=o.indexOf("["),i=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&i!==-1;){let f=o.substring(s+1,i);if(/^\d+$/.test(f)){let m=parseInt(f);if(u==0){let c=o.substring(0,s);a=a[c][m]}else a=a[m];u++}s=o.indexOf("[",i),i=s==-1?-1:o.indexOf("]",s)}u===0&&(a=a[o])}return a}function jl(e,t){return e.filter(r=>{for(let a in t)if(t[a]!==T0(r,a))return!1;return!0})}var $0={...Ne,...Te,...no,...ro,...un,...E0};function B0(e,t,r){return{props:$0,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(a,n){const{locale:o,toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["loadText","noMoreText"]),{emitEvent:i,broadcast:f}=Ee({componentName:e,validateHandler:{getValue(...Q){return _.value}}},a.prop??n.attrs.name),m=e,c=(0,l.computed)(()=>({[m]:!0})),x=(0,l.computed)(()=>({[`${m}__setting`]:!0})),C=(0,l.computed)(()=>({[`${m}__footer`]:!0,[`${m}__footer__${a.footerAlign}`]:!0})),v=(0,l.computed)(()=>({[`${m}__pagination`]:!0,[`${m}__pagination__${a.paginationAlign}`]:!0})),d=(0,l.shallowRef)({}),h=(0,l.computed)(()=>({...d.value,...a.params??{},...a.baseParams??{}})),T=(0,l.ref)(a.infiniteLoad===!0?0:a.pageIndex),S=(0,l.ref)(a.pageSize),b=de(a.infiniteLoad);b||((0,l.watch)(()=>a.pageIndex,Q=>{T.value=Q}),(0,l.watch)(()=>a.pageSize,Q=>{S.value=Q}),(0,l.watch)([T,S],([Q,ae],[ie,ue])=>{ae!==ue&&(T.value=1,Q=1),X(a.data,Q,ae,h.value)}));const I=()=>Array.isArray(a.data)?!0:de(a.autoLoad);I()&&(0,l.watch)([()=>a.data,h],async([Q,ae],[ie,ue])=>{I()&&(Q!==ie&&(g=!0),!(!Array.isArray(Q)&&et(Q,ie)&&et(ae,ue))&&(b?(T.value=0,E.value=!0,_.value=[],$()):T.value===1?X(Q,T.value,S.value,ae):T.value=1))},{deep:!0});const F=Q=>{T.value=Q,i("page-index-change",Q)},M=Q=>{S.value=Q,i("page-size-change",Q)},E=(0,l.ref)(!0),P=(0,l.ref)(0),_=(0,l.ref)(),Y=z0();let g=!0;const A=Ie((0,l.computed)(()=>a.appearLoad),"appearLoad",Me.Near,Q=>de(Q)),X=async(Q,ae,ie,ue,Be)=>{try{if(Be===!0){if(!E.value)return!1;const ve=await Y.load("table",Q,ae,ie,ue,g,o.value);return P.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,_.value,ve.page),setTimeout(()=>{i("loaded-data")},250),(_.value?.length??0)>=P.value)||ve.page.length<ie?(E.value=!1,!1):!0}else{const ve=await Y.load("table",Q,ae,ie,ue,g,o.value);return P.value=ve.totalSize,_.value=ve.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),P.value=0,_.value=[]}finally{g=!1}return!1};let w=!1;const $=async()=>{if(!w){if(w=!0,!E.value){w=!1;return}T.value+=1,await X(a.data,T.value,S.value,h.value,!0),w=!1}},k=(Q={},ae=!1)=>new Promise(async ie=>{d.value={...(0,l.toRaw)(Q??{})},ae||(T.value=a.pageIndex??1),b===!0?(T.value=0,_.value=[],E.value=!0,await $()):await X(a.data,T.value,S.value,h.value),ie()}),q=()=>{P.value=0,_.value=[],b===!0&&(T.value=0,E.value=!0)};let H=!1;const R=()=>{H||(H=!0,k())},V=(0,l.ref)(null);if(b===!0){let Q=null;const ae=()=>{V.value&&(Q=new IntersectionObserver(ue=>{let Be=!1;for(let ve of ue)if(ve.intersectionRatio>0){Be=!0;break}Be&&$()}),Q.observe(V.value))},ie=()=>{!Q||!V.value||(Q.unobserve(V.value),Q=null)};(0,l.onMounted)(ae),(0,l.onBeforeUnmount)(ie)}I()&&!A.value&&k();const G=(0,l.ref)(null);(0,l.provide)(_0,{currentRow:G});const j=(Q,ae)=>{G.value=Q,i("current-change",Q,ae)},L=(Q,ae,ie)=>{i("row-click",Q,ae,ie),de(a.rowClickSelectable)===!0&&Ce?.value.toggleRowSelection(Q)},D=[],W=(Q,ae)=>{if(i("expand-change",Q,ae),de(a.uniqueExpansion))if(Array.isArray(ae)&&ae.length==0){const ie=D.length;D.splice(0,ie)}else{D.forEach(ue=>{ue!==Q&&Ce?.value.toggleRowExpansion(ue,!1)});const ie=D.length;D.splice(0,ie,Q)}},z=n.attrs.id??a.prop??n.attrs.name,U=lo(),J=(0,l.ref)([]);let te=[];const ne=()=>({srcColumnPropertyList:te.map(Q=>({...Q})),columnPropertyList:J.value}),oe=Q=>{J.value=[...Q],ee()},K=async()=>{const Q=await U.load(z);Q&&(J.value=Q)},ee=()=>{U.save(z,J.value)},y=()=>{U.remove(z)};K();const p=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",B=(Q,ae={})=>{for(let ie in ae){const ue=ae[ie];typeof ue!="function"&&(Q[ie]=ue)}},O=Q=>{const ae=Q?Q():[],ie=new Map;if(te=[],ae.forEach(ue=>{const Be=ue;if(!Be.props)return;const ve=p(Be.props);ie.set(ve,Be);const Se={label:"",prop:""};B(Se,Be.props),te.push(Se)}),J.value.length===te.length){const ue=[];for(let Be of J.value){const ve=p(Be),Se=ie.get(ve);if(!Se)return ae;if(Be.visible===!1)continue;const at=Se;at.props.fixed=Be.fixed,ue.push(at)}return ue}return ae},Z=(0,l.shallowRef)(new Map),le=({row:Q,column:ae,rowIndex:ie,columnIndex:ue})=>{const Be=`${ie}_${ae.property}`,ve=`${ie}_${ue}`;let Se=Z.value.get(Be);return Se||(Se=Z.value.get(ve)),typeof Se=="string"?Se:""},re=Q=>Q?ae=>{const ie=[];let ue=le(ae);return ue&&ie.push(ue),ue=ue=typeof Q=="function"?Q(ae):Q,ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:le,ce=(Q=!1)=>{Z.value.forEach((ae,ie)=>{he(ie,ae,Q)})},he=(Q,ae,ie=!1)=>{const ue=`${Q}_item`;ie?(f.clearPersistantMessage(),Array.isArray(ae)?f.emitToChildren({name:Q},"setCellClassNames",[]):f.emitToChildren({name:ue},"setCustomClassName","")):Array.isArray(ae)?f.emitToChildren({name:Q,cachePolicy:"Persistant",uniqueId:ue},"setCellClassNames",ae):f.emitToChildren({name:ue,cachePolicy:"Persistant",uniqueId:ue},"setCustomClassName",ae)},be=(Q,ae,ie)=>{const ue=`${Q}_${ae}`;ie?(Z.value.set(ue,ie),he(ue,ie)):(Z.value.delete(ue),he(ue,"",!0)),(0,l.triggerRef)(Z)},$e=Q=>{ce(!0),Z.value.clear(),Q.forEach(ae=>{const ie=`${ae.rowIndex}_${ae.column}`;Array.isArray(ae.children)?Z.value.set(ie,ae.children):typeof ae.cellClassName=="string"&&Z.value.set(ie,ae.cellClassName)}),ce(),(0,l.triggerRef)(Z)},qe=()=>{ce(),Z.value.clear(),(0,l.triggerRef)(Z)},Ue=(0,l.shallowRef)(new Map),Et=({rowIndex:Q})=>{const ae=`${Q}`;return Ue.value.get(ae)??""},Xt=Q=>Q?ae=>{const ie=[];let ue=Et(ae);return ue&&ie.push(ue),ue=typeof Q=="function"?Q(ae):Q,ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:Et,Co=(Q,ae)=>{const ie=`${Q}`;ae?Ue.value.set(ie,ae):Ue.value.delete(ie),(0,l.triggerRef)(Ue)},zo=()=>{Ue.value.clear(),(0,l.triggerRef)(Ue)},Ce=(0,l.ref)();return xe({clearSelection:()=>Ce?.value.clearSelection(),getSelectionRows:()=>Ce?.value.getSelectionRows(),toggleRowSelection:(Q,ae)=>{Ce?.value.toggleRowSelection(Q,ae)},toggleRowSelectionByProp:(Q,ae)=>{if(!_.value)return;const ie=jl(_.value,Q);ie.length!==0&&ie.forEach(ue=>{Ce?.value.toggleRowSelection(ue,ae)})},toggleAllSelection:()=>{Ce?.value.toggleAllSelection()},toggleRowExpansion:(Q,ae)=>{Ce?.value.toggleRowExpansion(Q,ae)},toggleRowExpansionByProp:(Q,ae)=>{if(!_.value)return;const ie=jl(_.value,Q);ie.length!==0&&ie.forEach(ue=>{Ce?.value.toggleRowExpansion(ue,ae)})},setCurrentRow:Q=>{Ce?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!_.value)return;const ae=jl(_.value,Q);ae.length!==0&&Ce?.value.setCurrentRow(ae[0])},getCurrentRow:()=>G.value,clearSort:()=>{Ce?.value.clearSort()},clearFilter:Q=>{Ce?.value.clearFilter(Q)},doLayout:()=>{Ce?.value.doLayout()},sort:(Q,ae)=>{Ce?.value.sort(Q,ae)},scrollTo:(Q,ae)=>{Ce?.value.scrollTo(Q,ae)},setScrollTop:Q=>{Ce?.value.setScrollTop(Q)},setScrollLeft:Q=>{Ce?.value.setScrollLeft(Q)},loadData:k,clearData:q,getData(){return _.value},getTotalSize(){return P.value},getPageIndex(){return T.value},getPageSize(){return S.value},getColumnSetting:ne,setColumnSetting:oe,removeColumnSetting:y,setCellClassName:be,setCellClassNames:$e,clearCellClassName:qe,setRowClassName:Co,clearRowClassName:zo}),()=>{const Q={...Je(n.attrs),onCurrentChange:j,onRowClick:L,onExpandChange:W,data:_.value,ref:Ce,class:c.value,"cell-class-name":re(a.cellClassName),"row-class-name":Xt(a.rowClassName)},ae={};if(n.slots.default&&(ae.default=()=>O(n.slots.default)),n.slots.append&&(ae.append=n.slots.append),n.slots.empty&&(ae.empty=n.slots.empty),b===!0){const Se=[];if(E.value){const Tt=(0,l.h)(Ve.Loading,{class:`${m}__infinite-icon`});Se.push(Tt);const Pl=(0,l.h)("span",{class:`${m}__infinite-text`},[s.loadText.value]);Se.push(Pl)}else{const Tt=(0,l.h)("span",{class:`${m}__infinite-text`},[s.noMoreText.value]);Se.push(Tt)}const at=(0,l.h)("div",{ref:V,class:`${m}__infinite`},Se);ae.append=()=>at}const ie=(0,l.h)(N.ElTable,Q,ae),ue=[];if(ue.push(ie),!b){let Se=null;if(typeof n.slots.pagination=="function"?Se=n.slots.pagination():a.showPagination&&(Se=(0,l.h)(N.ElPagination,{class:v.value,total:P.value,pageSize:S.value,"onUpdate:pageSize":M,pageSizes:a.pageSizes,currentPage:T.value,"onUpdate:currentPage":F,hideOnSinglePage:a.hideOnSinglePage,layout:a.paginationLayout,size:a.paginationSize,background:a.paginationBackground,appendSizeTo:a.paginationAppendSizeTo,teleported:a.paginationTeleported,popperClass:a.paginationPopperClass,prevText:a.paginationpPrevText,prevIcos:a.paginationPrevIcon,nextText:a.paginationNextText,pnextIcon:a.paginationNextIcon,disabled:a.paginationDisabled})),a.showSetting){const at=[];Se&&at.push(Se);const Tt=(0,l.h)(N.ElIcon,{class:x.value},{default:()=>(0,l.h)(Ve.Setting)}),Pl=(0,l.h)(Bl,{...pt(a,un),tableRef:{getColumnSetting:ne,setColumnSetting:oe,removeColumnSetting:y}},{default:()=>Tt});at.push(Pl);const ko=(0,l.h)("div",{class:C.value},at);ue.push(ko)}else Se&&ue.push(Se)}const Be={default:()=>ue},ve={...Fe(a,no,ro,un)};return a.prop&&(ve.prop=`${a.prop}_item`),ve.contentClass=`${m}__wrap`,ve.errorMarkClass="is-table-error",A.value&&I()&&(ve["appear-listen"]=!0,ve.onAppear=R),r(ve,Be)}}}}var{componentName:V0,create:M0,scope:I0}=se("table-item"),L0=M0(B0(V0,I0,De)),qn=L0;function zt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function qt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function A0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var P0=class{proxy;constructor(e){this.proxy=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=We(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function F0(){return new P0((0,l.getCurrentInstance)().proxy)}function ao(e,t,r){return t===r?!0:!(t===null||r===null||zt(e,t)!==zt(e,r)||qt(e,t)!==qt(e,r))}function R0(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;let n=null;for(let o of a){let u=!1;if(r==="text")u=zt(e,o)===t;else if(r==="item")u=ao(e,o,t);else{let s=qt(e,o);s==null&&(s=zt(e,o)),u=s===t}if(u){n=o;break}}return n}function D0(e){return{text:e,value:e}}function O0(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var oo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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}},q0={...Ne,...Te,...oo};function H0(e,t,r,a){return{inheritAttrs:!0,props:q0,emits:["change","update:modelValue","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),x=(0,l.ref)(null),C=(0,l.ref)(null),v=(g,A,X,w=!0)=>{const $=R0(n,g,A,X);if($===null){if(C.value===null)return;C.value=null,x.value=null,w&&(c("update:modelValue",null),c("change",null));return}if(!ao(n,$,C.value)){x.value=g;const k=(0,l.toRaw)($);C.value=k;let q=null;n.valueType==="text"?q=zt(n,k):n.valueType==="item"?q=k:q=qt(n,k),w&&(c("update:modelValue",q),c("change",q))}},d=(0,l.ref)([]),h=Ie((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,g=>de(g)),T=F0(),S=async(g,A)=>{if(g){const X=await T.load("radio",g,A);X.length>0&&(typeof X[0]=="string"?d.value=X.map(w=>D0(w)):d.value=X)}};(0,l.watch)([()=>n.source,()=>n.params],async([g,A])=>{S(g,A)},{immediate:!h.value});let b=!1;const I=()=>{b||(b=!0,S(n.source,n.params))};(0,l.watch)([()=>d.value,()=>n.modelValue],([g,A])=>{v(A,n.valueType,g,!1),c("setValue",A)});const F=e,M=(0,l.computed)(()=>({[F]:!0,[`is-${n.direction}`]:!0})),E=g=>{v(g,"value",d.value,!0)};let P=ge(n,"hintText"),_=ge(n,"hintVisible");const Y=(g,A)=>{typeof n.sourceFilter=="function"&&(g=g.filter(n.sourceFilter));const X=[];return g.forEach((w,$)=>{const k=qt(n,w),q=zt(n,w);let H=A0(n,w);s.value===!0&&(H=s.value),f.value===!0&&(H=f.value);const R=O0(n,w,$)??{},V=`${k}_${$}`,G={...R,key:V,value:k,size:n.size,border:de(n.border)};H&&(G.disabled=H),n.itemType==="button"?X.push((0,l.h)(N.ElRadioButton,G,{default:()=>[q]})):typeof A=="function"?X.push((0,l.h)(N.ElRadio,G,{default:()=>A(w)})):X.push((0,l.h)(N.ElRadio,G,{default:()=>[q]}))}),X};return xe({setDisabled:g=>{u.value=g},setReadonly:g=>{i.value=g}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(x.value,o.slots,d.value);const g={...Je(o.attrs),class:M.value,disabled:s.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,onChange:E},A=[],X={};o.slots.options?X.default=o.slots.options:X.default=()=>Y(d.value,o.slots.text);const w=(0,l.h)(N.ElRadioGroup,g,X);A.push(w);const $={default:()=>A};$.label=o.slots.default,$.fixedPreTip=o.slots.fixedPreTip,$.fixedTip=o.slots.fixedTip;const k={...Fe(n,oo),hintText:P.value,hintVisible:_.value};return n.prop&&(k.prop=`${n.prop}_item`),h.value&&(k["appear-listen"]=!0,k.onAppear=I),r(k,$)}}}}var{componentName:j0,create:K0,scope:W0}=se("radio-item"),Y0=K0(H0(j0,W0,De,Ke)),Hn=Y0;function kt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function U0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var G0=class{proxy;constructor(e){this.proxy=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=We(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function X0(){return new G0((0,l.getCurrentInstance)().proxy)}function io(e,t,r){return t===r?!0:!(t===null||r===null||kt(e,t)!==kt(e,r)||St(e,t)!==St(e,r))}function Z0(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let u of a){let s=!1;if(r==="text")s=kt(e,u)===o;else if(r==="item")s=io(e,u,o);else{let i=St(e,u);i==null&&(i=kt(e,u)),s=i===o}if(s){n.push(u);break}}}),n}function J0(e){return{text:e,value:e}}function Q0(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var so={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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},separator:{type:[String],required:!1,default:", "}},ec={...Ne,...Te,...so};function tc(e,t,r,a){return{inheritAttrs:!0,props:ec,emits:["change","update:modelValue","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),x=(0,l.ref)([]),C=(0,l.ref)([]),v=(g,A,X,w=!0)=>{const $=Z0(n,g,A,X);if($===null){if(C.value===null||C.value.length===0)return;x.value=[],C.value=[],w&&(c("update:modelValue",[]),c("change",[]));return}let k=!0;if($.length!==C.value.length)k=!1;else for(let q=0;q<$.length;q++){const H=$[q],R=C.value[q];if(!io(n,H,R)){k=!1;break}}if(!k){C.value=$;let q=[],H=[];$.forEach(V=>{q.push(St(n,V)),n.valueType==="text"?H.push(kt(n,V)):n.valueType==="item"?H.push(V):H.push(St(n,V))}),x.value=q;const R=(0,l.toRaw)(H);w&&(c("update:modelValue",R),c("change",R))}},d=(0,l.ref)([]),h=Ie((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,g=>de(g)),T=X0(),S=async(g,A)=>{if(g){const X=await T.load("checkbox",g,A);X.length>0&&(typeof X[0]=="string"?d.value=X.map(w=>J0(w)):d.value=X)}};(0,l.watch)([()=>n.source,()=>n.params],async([g,A])=>{S(g,A)},{immediate:!h.value});let b=!1;const I=()=>{b||(b=!0,S(n.source,n.params))};(0,l.watch)([()=>d.value,()=>n.modelValue],([g,A])=>{v(A,n.valueType,g,!1),c("setValue",A)});const F=e,M=(0,l.computed)(()=>({[F]:!0,[`is-${n.direction}`]:!0})),E=g=>{v(g,"value",d.value,!0)};let P=ge(n,"hintText"),_=ge(n,"hintVisible");const Y=(g,A)=>{typeof n.sourceFilter=="function"&&(g=g.filter(n.sourceFilter));const X=[];return g.forEach((w,$)=>{const k=St(n,w),q=kt(n,w);let H=U0(n,w);s.value===!0&&(H=s.value),f.value===!0&&(H=f.value);const R=Q0(n,w,$)??{},V=`${k}_${$}`,G={...R,key:V,value:k,size:n.size,border:de(n.border)};H&&(G.disabled=H),n.itemType==="button"?X.push((0,l.h)(N.ElCheckboxButton,G,{default:()=>[q]})):typeof A=="function"?X.push((0,l.h)(N.ElCheckbox,G,{default:()=>A(w)})):X.push((0,l.h)(N.ElCheckbox,G,{default:()=>[q]}))}),X};return xe({setDisabled:g=>{u.value=g},setReadonly:g=>{i.value=g}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(x.value,o.slots,d.value,n.separator);const g={...Je(o.attrs),class:M.value,disabled:s.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,max:ke(n.max),min:ke(n.min),onChange:E},A=[],X={};o.slots.options?X.default=o.slots.options:X.default=()=>Y(d.value,o.slots.text);const w=(0,l.h)(N.ElCheckboxGroup,g,X);A.push(w);const $={default:()=>A};$.label=o.slots.default,$.fixedPreTip=o.slots.fixedPreTip,$.fixedTip=o.slots.fixedTip;const k={...Fe(n,so),hintText:P.value,hintVisible:_.value};return n.prop&&(k.prop=`${n.prop}_item`),h.value&&(k["appear-listen"]=!0,k.onAppear=I),r(k,$)}}}}var{componentName:lc,create:nc,scope:rc}=se("checkbox-item"),ac=nc(tc(lc,rc,De,Ke)),jn=ac,uo={modelValue:{type:[Number,String],required:!1}},oc={...Ne,...Te,...uo};function ic(e,t,r,a){return{props:oc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),x=ge(n,"modelValue",b=>ke(b),c),C=e,v=(0,l.computed)(()=>({[C]:!0})),d=b=>{c("update:modelValue",b),c("change",b)};let h=ge(n,"hintText"),T=(0,l.ref)(!1);const S=(0,l.ref)();return xe({setDisabled:b=>{u.value=b},setReadonly:b=>{i.value=b}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(x.value,o.slots);const b={...Je(o.attrs),ref:S,class:v.value,readonly:f.value||s.value,modelValue:x.value,onChange:d},I={},F=[],M=(0,l.h)(N.ElRate,b,I);F.push(M);const E={default:()=>F};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const P={...Fe(n,uo),hintText:h.value,hintVisible:T.value};return n.prop&&(P.prop=`${n.prop}_item`),r(P,E)}}}}var{componentName:sc,create:uc,scope:cc}=se("rate-item"),dc=uc(ic(sc,cc,De,Ke)),Kn=dc,co={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}};({...Ne,...Te,...co});function fc(e,t,r,a){return{props:{},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),{emitEvent:c}=Ee({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,I=>{x.value!==I&&(x.value=I)});const C=e,v=(0,l.computed)(()=>({[C]:!0})),d=I=>{x.value=I,c("update:modelValue",I),c("change",I)};let h=ge(n,"hintText"),T=ge(n,"hintVisible");const S=(0,l.ref)();xe({setDisabled:I=>{u.value=I},setReadonly:I=>{i.value=I}});const b=(0,l.computed)(()=>{let I=`${x.value}`;return n.inactiveText&&x.value===n.inactiveValue?I=n.inactiveText:n.activeText&&x.value===n.activeValue&&(I=n.activeText),I});return()=>{if(m.value==="on"&&(f.value||s.value))return a(b.value,o.slots);const I={...Je(o.attrs),ref:S,class:v.value,readonly:f.value,disabled:s.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,modelValue:x.value,"onUpdate:modelValue":d},F={},M=[],E=(0,l.h)(N.ElSwitch,I,F);M.push(E);const P={default:()=>M};P.label=o.slots.default,P.fixedPreTip=o.slots.fixedPreTip,P.fixedTip=o.slots.fixedTip;const _={...Fe(n,co),hintText:h.value,hintVisible:T.value};return n.prop&&(_.prop=`${n.prop}_item`),r(_,P)}}}}var{componentName:mc,create:pc,scope:hc}=se("switch-item"),gc=pc(fc(mc,hc,De,Ke)),Wn=gc,fo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},vc=class{proxy;constructor(e){this.proxy=e}async load(e,t,r,a,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=We(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function yc(){return new vc((0,l.getCurrentInstance)().proxy)}var mo={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},bc={...Ne,...Te,...mo,...fo};function Sc(e,t,r,a){return{props:bc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{innerDisabled:u,disabled:s,innerReadonly:i,readonly:f,browse:m}=Re(n),c=(0,l.ref)(!1),{emitEvent:x}=Ee({componentName:e,get readonly(){return f.value},get disabled(){return s.value}},n.prop??o.attrs.name),C=ge(n,"modelValue",null,x),v=e,d=(0,l.computed)(()=>({[v]:!0})),h=w=>{C.value=w,x("update:modelValue",w),x("change",w)};let T=ge(n,"hintText"),S=(0,l.ref)(!1);const b=w=>{let $=w.target.value;c.value=!0,me(T.value)||(S.value=!0),x("focus",$,w)},I=w=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let $=w.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),M.value||x("blur",$,w)},F=()=>{x("clear","")},M=(0,l.ref)(!1),E=w=>{M.value=w,x("visible-change",w),w||x("selected")},P=(0,l.ref)([]),_=yc(),Y=async(w,$)=>{try{P.value=await _.load("treeselect",w,$)}catch(k){console.error(k)}};(0,l.watch)([()=>n.data,()=>n.params,()=>n.lazy],([w,$,k])=>{!w||k||Y(w,$)},{immediate:!0});let g=null;n.lazy&&(typeof n.load=="function"?g=n.load:g=async(w,$)=>{debugger;let k={};n.params&&Object.assign(k,n.params),w&&Object.assign(k,w),$(await _.load("treeselect",n.data,k,!0))});let A={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const X=(0,l.ref)();return xe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},setDisabled:w=>{u.value=w},setReadonly:w=>{i.value=w}}),()=>{if(m.value==="on"&&(f.value||s.value))return a(C.value,o.slots);const w={...Je(o.attrs),ref:X,class:d.value,disabled:s.value||f.value,modelValue:C.value,"onUpdate:modelValue":h,lazy:n.lazy,props:A,onClear:F,onFocus:b,onBlur:I,onVisibleChange:E};g?w.load=g:w.data=P.value;const $={};o.slots.option&&($.default=o.slots.option);const k=[],q=(0,l.h)(N.ElTreeSelect,w,$);k.push(q);const H={default:()=>k};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const R={...Fe(n,mo,fo),hintText:T.value,hintVisible:S.value};return n.prop&&(R.prop=`${n.prop}_item`),r(R,H)}}}}var{componentName:wc,create:xc,scope:Nc}=se("tree-select-item"),Cc=xc(Sc(wc,Nc,De,Ke)),Yn=Cc,zc={},kc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function _c(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",kc,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var Ec=Ze(zc,[["render",_c]]),{componentName:P5,create:Tc,scope:F5}=se("group-setting"),$c={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:"到底部"}},Bc=Tc({components:{FoxPopover:N.ElPopover,FoxCheckbox:N.ElCheckbox,FoxCheckboxGroup:N.ElCheckboxGroup,FoxButton:N.ElButton,FoxIcon:N.ElIcon,DragIcon:Ec,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...$c},emits:["change"],setup(e,{emit:t,attrs:r,expose:a}){let n=null;const o=(0,l.ref)([]),u=lo(),s=j=>j.length>1,i=()=>{const j=[];o.value=[...o.value].map((L,D)=>(L.visible!==!1&&j.push(L.prop),{...L,sortIndex:D})),o.value.length===j.length?d.value=!0:j.length>0&&(h.value=!0),b.value=j},f=j=>{let L=null;if(typeof j=="string")L=document.querySelectorAll(`.fox-group[prop="${j}"] > div > .fox-item[prop]`);else if(j&&typeof j=="object"){const W=j.$el??j;typeof W.querySelectorAll=="function"&&(L=W.querySelectorAll(".fox-item[prop]"))}if(!L)return[];const D=[];return L.forEach(W=>{const z=W.querySelector(".label--string");let U="";z&&(U=z.textContent??"");const J=W.getAttribute("prop")??"",te=window.getComputedStyle(W,null).getPropertyValue("display");D.push({label:U,prop:J,sortIndex:0,visible:te!=="none"})}),D},m=()=>{if(!n){const j=f(e.groupRef??e.groupProp);if(j.length===0)return!1;n=j}return!0},c=async(j=!1)=>{const L=await u.load(e.groupProp),D=W=>{if(!W||!n)return;const z=n.map(U=>({...U}));Array.isArray(L)&&L.forEach(U=>{z.some(J=>{if(J.prop===U.prop){const te=J.label;return Object.assign(J,U),J.label=te,!0}return!1})}),o.value=z.sort((U,J)=>U.sortIndex-J.sortIndex),i(),j&&C(!1)};n?D(!0):hl(m,e.initDelay,5,50,!1,D)},x=()=>{o.value=(n??[]).map(j=>({...j})),i(),C()},C=(j=!0)=>{j&&u.save(e.groupProp,o.value),t("change",o.value.map(L=>({...L})))},v=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),d=(0,l.ref)(!1),h=(0,l.ref)(!1),T=j=>{const L=[];o.value.forEach(D=>{j&&L.push(D.prop),D.visible=j}),d.value=!1,h.value=!1,o.value.length===L.length?d.value=!0:L.length>0&&(h.value=!0),b.value=L,C()},S=()=>{x()},b=(0,l.ref)([]),I=j=>{o.value.forEach(D=>{D.visible=j.indexOf(D.prop)!==-1}),d.value=!1,h.value=!1;const L=o.value.length;j.length===L?d.value=!0:j.length>0&&(h.value=!0),C()},F=()=>{c()};(0,l.onMounted)(()=>{c(!0)});const M={currentRow:null,index:null},E=j=>j?j.dataset&&j.dataset.role==="row"?j:j.tagName.toLowerCase()!=="body"?(j=j.parentElement,E(j)):null:null,P=j=>{const L=j.currentTarget;L&&L.dataset&&(M.index=L.dataset.index)},_=j=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},Y=j=>{const L=j.currentTarget;j.relatedTarget;const D=E(L);D&&(j.preventDefault(),M.currentRow&&M.currentRow!==D&&M.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),M.currentRow=D)},g=j=>{j.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},A=j=>{const L=j.currentTarget,D=E(L);if(!D)return;j.preventDefault();const W=Number(M.index),z=Number(D.dataset.index);if(W!==z){if(W<z){const U=o.value[W];o.value.splice(W,1),o.value.splice(z,0,U)}else{const U=o.value[W];o.value.splice(W,1),o.value.splice(z+1,0,U)}i(),C()}},X=j=>{const L=o.value[j];o.value.splice(j,1),o.value.splice(0,0,L),i(),C()},w=j=>{const L=o.value[j];o.value.splice(j,1),o.value.push(L),i(),C()};a({refresh:()=>{n=null,c(!1)}});const $=new Map;let k=null;function q(j){const L=document.createRange();return L.setStart(j,0),L.setEnd(j,j.childNodes.length),L.getBoundingClientRect().width}return{attrs:r,itemPropertyList:o,isDraggble:s,isCheckAll:d,isIndeterminate:h,handleCheckAllChange:T,handleReset:S,checkedValue:b,handleCheckChange:I,onShow:F,onDragStart:P,onDragEnd:_,onDragOver:Y,onDragLeave:g,onDrop:A,checkboxLabelStyle:v,toTop:X,toBottom:w,onMouseOverForOverflowText:(j,L,D)=>{const W=j.currentTarget;if(W){const z=Math.floor(W.offsetWidth);if(Math.floor(q(W))>z){let U=$.get(L);if(U){if(U===k)return;_e.hide(U)}U=_e.show(W,D,{type:"text",placement:"top",closeOnClick:!1}),$.set(L,U),k=U}}},onMouseLeaveForOverflowText:(j,L)=>{const D=$.get(L);D&&(_e.hide(D),D===k&&(k=null))},onMouseOverForTip:(j,L)=>{const D=j.currentTarget;D&&(k&&_e.hide(k),k=_e.show(D,L,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:j=>{k&&(_e.hide(k),k=null)}}}}),Vc={class:"fox-group-setting"},Mc={class:"fox-group-setting__header"},Ic={class:"fox-group-setting__body"},Lc={class:"fox-group-setting__body-list","data-role":"container"},Ac=["data-index","draggable"],Pc=["onMouseover","onMouseleave"],Fc={class:"tools-item"};function Rc(e,t,r,a,n,o){const u=(0,l.resolveComponent)("FoxCheckbox"),s=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),f=(0,l.resolveComponent)("Download"),m=(0,l.resolveComponent)("FoxIcon"),c=(0,l.resolveComponent)("FoxCheckboxGroup"),x=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(x,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Vc,[(0,l.createElementVNode)("div",Mc,[(0,l.createVNode)(u,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=C=>e.isCheckAll=C),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(s,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",Ic,[(0,l.createVNode)(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=C=>e.checkedValue=C),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Lc,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.itemPropertyList,C=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:C.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":C.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[6]||(t[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[7]||(t[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[8]||(t[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[9]||(t[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.itemPropertyList)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(u,{class:"checkbox-item",label:C.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,C.prop,C.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,C.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(C.label),45,Pc)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",Fc,[(0,l.createVNode)(m,{onClick:v=>e.toTop(C.sortIndex),onMouseover:t[1]||(t[1]=v=>e.onMouseOverForTip(v,e.toTopText)),onMouseleave:t[2]||(t[2]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(m,{onClick:v=>e.toBottom(C.sortIndex),onMouseover:t[3]||(t[3]=v=>e.onMouseOverForTip(v,e.toBottomText)),onMouseleave:t[4]||(t[4]=v=>e.onMouseLeaveForTip(v))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"])])],40,Ac))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Un=Ze(Bc,[["render",Rc]]),Dc={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Oc=class{proxy;constructor(e){this.proxy=e}async load(e,t,r,a,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=We(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function qc(){return new Oc((0,l.getCurrentInstance)().proxy)}var Hc={...Tn,...Dc};function jc(e,t,r){return{props:Hc,setup(a,n){const o=e,u=(0,l.computed)(()=>({[o]:!0})),s=(0,l.ref)([]),i=qc(),f=async(b,I)=>{try{s.value=await i.load("tree",b,I)}catch(F){console.error(F)}},m=(0,l.shallowRef)({}),c=(0,l.computed)(()=>({...m.value,...a.params??{}}));(Array.isArray(a.data)?!0:a.lazy?!1:de(a.autoLoad))&&(0,l.watch)([()=>a.data,()=>c.value],([b,I])=>{b&&f(b,I)},{immediate:!0,deep:!0});let C=null;a.lazy&&(typeof a.load=="function"?C=a.load:C=async(b,I)=>{let F={};a.params&&Object.assign(F,a.params),b&&Object.assign(F,b),I(await i.load("treeselect",a.data,F,!0))});const v={label:a.textKey,value:a.valueKey,children:a.childrenKey,isLeaf:a.leafKey,class:a.classKey,disabled:a.disabledKey,...a.props??{}},d=(b={})=>new Promise(async I=>{m.value={...(0,l.toRaw)(b??{})},await f(a.data,c.value),I()}),h=function(b,I){if(typeof a.filterNodeMethod=="function")return a.filterNodeMethod(b,I);if(!a.filterKeyword)return!0;const F=`${I[v.label]}`,M=`${b}`;return F.includes(M)},T=(0,l.ref)();(0,l.watch)(()=>a.filterKeyword,b=>{T.value.filter(b)});const S=b=>(...I)=>{const F=T.value[b];return Reflect.apply(F,T.value,[...I])};return n.expose({loadData:d,filter:S("filter"),updateKeyChildren:S("updateKeyChildren"),getCheckedNodes:S("getCheckedNodes"),setCheckedNodes:S("setCheckedNodes"),getCheckedKeys:S("getCheckedKeys"),setCheckedKeys:S("setCheckedKeys"),setChecked:S("setChecked"),getHalfCheckedNodes:S("getHalfCheckedNodes"),getHalfCheckedKeys:S("getHalfCheckedKeys"),getCurrentKey:S("getCurrentKey"),getCurrentNode:S("getCurrentNode"),setCurrentKey:S("setCurrentKey"),setCurrentNode:S("setCurrentNode"),getNode:S("getNode"),remove:S("remove"),append:S("append"),insertBefore:S("insertBefore"),insertAfter:S("insertAfter")}),()=>{const b={...Je(n.attrs),class:u.value,lazy:a.lazy,props:v,ref:E=>T.value=E};C?b.load=C:b.data=s.value,b["filter-node-method"]=h;const I=[],F=(0,l.h)(N.ElTree,b,n.slots);I.push(F);const M={default:()=>I};return(0,l.h)(r,{...pt(a,Tn)},M)}}}}var{componentName:Kc,create:Wc,scope:Yc}=se("tree-item"),Uc=Wc(jc(Kc,Yc,El)),Gn=Uc,Gc={...Ne,...Te,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1}};function Xc(e,t,r,a){return{props:Gc,emits:["click","focus","blur","change"],setup(n,o){const{disabled:u,readonly:s}=Re(n),{emitEvent:i}=Ee({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value}},n.prop??o.attrs.name),{toLocaleRefs:f}=(0,Pe.useFoxI18n)(t),m=f(n,["placeholder"]),c=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,g=>{c.value=g,i("change",g)});const x=(0,l.computed)(()=>({[`${e}`]:!0})),C=(0,l.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&me(c.value),"is-disabled":u.value,"is-readonly":s.value})),v=Ie((0,l.computed)(()=>n.textAlign),"textAlign"),d=(0,l.computed)(()=>{const g={};return v.value&&(g["text-align"]=v.value),g}),h=(0,l.computed)(()=>!me(n.modelValue)||o.slots.main?!0:!!me(n.desc)),T=(0,l.computed)(()=>me(c.value)?m.placeholder.value:c.value),S=(0,l.computed)(()=>!me(n.desc)||o.slots.sub),b=(0,l.computed)(()=>({[`${e}__sub`]:!0})),I=(0,l.computed)(()=>{const g={};return v.value&&(g["text-align"]=v.value),g}),F=()=>{i("focus",c.value)},M=()=>{i("blur",c.value)},E=(0,l.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":s.value})),P=g=>{u.value==!0||s.value==!0||i("click")},_=(0,l.computed)(()=>n.icon??r),Y=(0,l.computed)(()=>({action:!0}));return()=>{const g=[];if(typeof o.slots.content=="function"){const R=o.slots.content();g.push(R)}else{const R=[];if(h.value){const G={tabIndex:0,class:C.value,style:d.value,onFocus:F,onBlur:M};let j=null;o.slots.main?j=(0,l.h)("view",G,[o.slots.main(T.value)]):j=(0,l.h)("view",G,[T.value]),R.push(j)}if(S.value){const G={tabIndex:0,class:b.value,style:I.value,onFocus:F,onBlur:M};let j=null;o.slots.sub?j=(0,l.h)("view",G,[o.slots.sub(n.desc)]):j=(0,l.h)("view",G,[n.desc]),R.push(j)}const V=(0,l.h)("view",{class:x.value,onClick:P},R);g.push(V)}const A=[],X=fe(n.iconSize);let w=o.slots.icon;if(!w){const R={width:X,height:X,class:["action-icon"]};w=(0,l.h)(_.value,R)}const $=(0,l.h)("view",{class:Y.value,onClick:P},{default:()=>[w]});A.push($);const k=(0,l.h)("view",{class:E.value},{default:()=>A});g.push(k);const q={default:()=>g};q.label=o.slots.default,q.prepend=o.slots.prepend,q.append=o.slots.append,q.fixedPreTip=o.slots.fixedPreTip,q.fixedTip=o.slots.fixedTip;const H={...pt(n,Te,Ne)};return n.prop&&(H.prop=`${n.prop}_item`),a(H,q)}}}}var{componentName:Zc,create:Jc,scope:Qc}=se("link-item"),e2=Jc(Xc(Zc,Qc,Ve.ArrowRight,De)),Xn=e2;var t2=["aria-labelledby"],l2=[(0,l.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],n2=(0,l.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},l2,14,t2))}});var r2=["aria-labelledby"],a2=[(0,l.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],o2=(0,l.defineComponent)({__name:"Tips",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},a2,14,r2))}});var i2=["aria-labelledby"],s2=[(0,l.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],u2=(0,l.defineComponent)({__name:"Success",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},s2,14,i2))}});var c2=["aria-labelledby"],d2=[(0,l.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],f2=(0,l.defineComponent)({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},d2,14,c2))}});var m2=["aria-labelledby"],p2=[(0,l.createElementVNode)("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],h2=(0,l.defineComponent)({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},p2,14,m2))}});var g2=["aria-labelledby"],v2=[(0,l.createElementVNode)("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Vl=(0,l.defineComponent)({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},v2,14,g2))}});var y2=["aria-labelledby"],b2=[(0,l.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],S2=(0,l.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},b2,14,y2))}});var w2=["aria-labelledby"],x2=[(0,l.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],N2=(0,l.defineComponent)({__name:"Failure",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},x2,14,w2))}});var C2=["aria-labelledby"],z2=[(0,l.createElementVNode)("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],k2=(0,l.defineComponent)({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},z2,14,C2))}});var _2=["aria-labelledby"],E2=[(0,l.createElementVNode)("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],T2=(0,l.defineComponent)({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},E2,14,_2))}});var $2=["aria-labelledby"],B2=[(0,l.createElementVNode)("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1)],V2=(0,l.defineComponent)({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},u=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),s=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(u.value),style:(0,l.normalizeStyle)(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},B2,14,$2))}});var Zn={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Er=(e,t)=>t[e.textKey],Vt=(e,t)=>t[e.valueKey],M2=(e,t)=>t[e.visibleKey],Tr=(e,t)=>t[e.disabledKey],I2=(e,t)=>{const r=t[e.doitKey];return de(r)},L2=(e,t)=>{const r=t[e.numKey];return r==null?null:ke(t[r])},$r=(e,t,r)=>{const a=e.itemOptions;return typeof a=="function"?a(t,r):a||null};function A2(e,t,r,a,n,o=!1){return{props:Zn,emits:["update:modelValue","change","click"],setup(u,{slots:s,emit:i}){const f=(0,l.computed)(()=>{const y={};return y[`${e}`]=!0,y}),m=(0,l.computed)(()=>{const y={};return y[`${e}__titles`]=!0,y[`${u.direction}`]=!0,u.align&&(y[`${u.align}`]=!0),u.scroll===!0&&(y.scrollable=!0),u.shape&&(y[`${u.shape}`]=!0),u.showScrollArrow?(z.value===!0&&(y["has-left-scroll-arrow "]=!0),U.value===!0&&(y["has-right-scroll-arrow "]=!0)):u.showQuickNavigation&&(y["has-navigation"]=!0),y}),c=(0,l.computed)(()=>({})),x=(0,l.computed)(()=>{if(!u.gutter)return 0;const y=fe(u.gutter);return y<=0?0:y}),C=(0,l.ref)(u.modelValue);(0,l.watch)(()=>u.modelValue,y=>{C.value!==y&&(C.value=y,R(!1))});const v=(0,l.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=(0,l.computed)(()=>{const y={};return T.value||(y.display="none"),y}),h=(0,l.ref)(),T=(0,l.ref)(!1),S=()=>{b(!T.value)},b=y=>{const p=y;p?(T.value=p,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{T.value=!1},{once:!0}):setTimeout(()=>{T.value=!1},0))},I=(0,l.ref)(),F=(0,l.ref)([]),M=(y,p)=>{F.value[p]=y},E=y=>p=>{M(p,y)},P=(y,p)=>{const B=I.value,O=F.value;if(!B||!O||!O[y])return;const Z=O[y];let le=0;u.direction==="vertical"?le=Z.offsetTop-(B.offsetHeight-Z.offsetHeight)/2:le=Z.offsetLeft-(B.offsetWidth-Z.offsetWidth)/2,_(B,le,p?0:.3,u.direction)},_=(y,p,B,O)=>{let Z=0;const le=O==="horizontal"?y.scrollLeft:y.scrollTop,re=B===0?1:Math.round(B*1e3/16);function ce(){O==="horizontal"?y.scrollLeft+=(p-le)/re:y.scrollTop+=(p-le)/re,++Z<re&&mn(ce)}ce()},Y=(y,p)=>{const B=Vt(u,y),O={};return O[`${e}__titles-item`]=!0,O.disabled=Tr(u,y),O.active=B===C.value,u.shape&&(O[`${u.shape}`]=!0),u.ellipsis&&(O.ellipsis=!0),p&&(p.class&&(O[`${p.class}`]=!0),p.disabled===!0&&(O.disabled=p.disabled)),O},g=(y,p)=>{const B={};if(x.value>0){const O=Math.abs(x.value/2);u.direction==="vertical"?(B["margin-top"]=`${O}px`,B["margin-bottom"]=`${O}px`):(B["margin-left"]=`${O}px`,B["margin-right"]=`${O}px`)}return p&&p.style&&Object.assign(B,p.style),B},A=(y,p)=>`${Vt(u,y)??p}`,X=(y,p)=>{const B=Vt(u,y),O={};O[`${e}__popup-item`]=!0,O.disabled=Tr(u,y),O.active=B===C.value,u.shape&&(O[`${u.shape}`]=!0);const Z=$r(u,y,p);return Z&&Z.disabled===!0&&(O.disabled=Z.disabled),O},w=(0,l.computed)(()=>(u.data??[]).filter(y=>M2(u,y)!==!1)),$=(y,p)=>{const B=Vt(u,y);if(i("click",y,p),C.value==B)return;const O=()=>{C.value=B,u.scroll&&P(p,!1),i("update:modelValue",B),i("change",y,p)};if(typeof u.beforeChange=="function"){const Z=u.beforeChange(y,p);na(Z)?Z.then(le=>{le!==!1&&O()}).catch(()=>{O()}):Z!==!1&&O()}else O()},k=(y,p)=>function(){$(y,p)},q=(y,p)=>{$(y,p),b(!1)},H=(y,p)=>function(){q(y,p)},R=y=>{if(!Array.isArray(u.data)||!u.scroll)return;W()&&oe();const p=u.data.findIndex(B=>Vt(u,B)===C.value);p!==-1&&P(p,y)},V=()=>{W()||K()};(0,l.watch)(()=>u.data,()=>{setTimeout(R,0)}),(0,l.onMounted)(()=>{R(!0)}),(0,l.onBeforeUnmount)(()=>{V()});const G=(y,p)=>{if(s.item)return s.item({item:y,index:p});const B=$r(u,y,p),O=[];if(s.text){const le=s.text({item:y,index:p});O.push(le)}else{const le=[];if(B?.doit===!0||I2(u,y)){const be=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});le.push(be)}const re=B?.num??L2(u,y);if(re){let be="";const $e=ke(re);$e>=100?be="99+":be=`${$e}`;const qe=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[be]);le.push(qe)}const ce={class:`${e}__titles-item-text`};le.push(Er(u,y));const he=(0,l.h)("view",ce,le);O.push(he)}const Z=(0,l.h)("view",{class:`${e}__titles-item-line`});return O.push(Z),(0,l.h)("view",{ref:E(p),class:Y(y,B),style:g(y,B),key:A(y,p),onClick:k(y,p)},O)},j=()=>{const y=s.default?s.default():[];if(y.length===0)for(let p=0;p<w.value.length;p++){const B=w.value[p],O=G(B,p);y.push(O)}return(0,l.h)("view",{ref:I,class:m.value,style:c.value},y)},L=()=>{let y=null;return s.navigation?y=s.navigation():y=(0,l.h)(r),(0,l.h)("view",{class:`${e}__navigation`,onClick:S},[y])},D=()=>{const y=[];for(let p=0;p<w.value.length;p++){const B=w.value[p];let O=null;s.popupItem?O=s.popupItem({item:B,index:p}):O=Er(u,B);const Z=(0,l.h)("view",{class:X(B,p),key:A(B,p),onClick:H(B,p)},[O]);y.push(Z)}return(0,l.h)("view",{class:v.value,style:d.value},y)},W=()=>u.showScrollArrow&&u.direction=="horizontal",z=(0,l.ref)(!1),U=(0,l.ref)(!1),J=y=>{const p=I.value,B=F.value;if(!(!p||!B))if(y==="left"){const O=p.scrollLeft;let Z=O;for(let le=0;le<B.length;le++){const re=B[le].offsetLeft;if(O-re<0)break;Z=re}_(p,Z,.3,"horizontal")}else{const O=p.scrollLeft;let Z=O,le=p.offsetWidth;for(let re=B.length-1;re>=0;re--){const ce=B[re].offsetLeft+B[re].offsetWidth;if(ce-O<p.offsetWidth){Z+=le-ce;break}le=ce}_(p,Z,.3,"horizontal")}},te=Ye(()=>{const y=I.value;if(!y)return;let p=y.scrollLeft>0;p!==z.value&&(z.value=p);let B=y.scrollWidth-y.scrollLeft>y.offsetWidth;B!==U.value&&(U.value=B)},50),ne=y=>{te()},oe=()=>{const y=I.value;y&&(te(),y.addEventListener("scroll",ne))},K=()=>{const y=I.value;y&&y.removeEventListener("scroll",ne)},ee=y=>{if(y==="left"&&z.value!==!0||y==="right"&&U.value!==!0)return null;let p=null;return y==="left"?s.leftArrow?p=s.leftArrow():p=(0,l.h)(a):s.rightArrow?p=s.rightArrow():p=(0,l.h)(n),(0,l.h)("view",{class:[`${e}__scroll-arrow`,y],onClick:()=>{J(y)}},[p])};return()=>{const y=[],p=j();if(y.push(p),W()){const B=ee("left");B&&y.push(B);const O=ee("right");O&&y.push(O)}else if(u.showQuickNavigation){const B=L();y.push(B);const O=D();y.push(O)}return(0,l.h)("view",{class:f.value},y)}}}}var{create:P2,componentName:F2,scope:R2}=se("tabs-bar"),D2=P2(A2(F2,R2,h2,S2,f2,!1)),Ml=D2,po=Symbol("TabsStatesKey"),Jn={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},Br=10;function ho(e,t){return e>t&&e>Br?"horizontal":t>e&&t>Br?"vertical":""}function Ut(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Gt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",r=()=>e.direction==="horizontal",a=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(u=>{if(u.touches){const s=u.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else{const s=u;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=ho(e.offsetX,e.offsetY))}),start:(u=>{if(a(),u.touches){const s=u.touches[0];e.startX=s.clientX,e.startY=s.clientY}else{const s=u;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()}),reset:a,isVertical:t,isHorizontal:r,state:e}}function O2(){const e=(0,l.ref)(0),t=(0,l.ref)(0),r=(0,l.ref)(0),a=(0,l.ref)(0),n=(0,l.ref)(0),o=(0,l.ref)(0),u=(0,l.ref)(0),s=(0,l.ref)(0),i=(0,l.ref)(0),f=(0,l.ref)(0),m=(0,l.ref)(""),c=()=>m.value==="vertical",x=()=>m.value==="horizontal",C=()=>{u.value=0,s.value=0,i.value=0,f.value=0,m.value="",r.value=0};return{move:(h=>{if(h.touches){const T=h.touches[0];u.value=T.clientX-e.value,s.value=T.clientY-t.value,n.value=T.clientX,o.value=T.clientY}else{const T=h;u.value=T.clientX-e.value,s.value=T.clientY-t.value,n.value=T.clientX,o.value=T.clientY}i.value=Math.abs(u.value),f.value=Math.abs(s.value),a.value=Date.now()-r.value,m.value||(m.value=ho(i.value,f.value))}),start:(h=>{if(C(),h.touches){const T=h.touches[0];e.value=T.clientX,t.value=T.clientY}else{const T=h;e.value=T.clientX,t.value=T.clientY}r.value=Date.now()}),reset:C,startX:e,startY:t,startTime:r,duration:a,moveX:n,moveY:o,deltaX:u,deltaY:s,offsetX:i,offsetY:f,direction:m,isVertical:c,isHorizontal:x}}var q2=15,H2=300,j2=200;function K2(e,t,r=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*r}function Vr(e,t=0,r,a,n=j2){r==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",a==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}var W2=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,t,r,a=1){this.onStart=e,this.onMove=t,this.onEnd=r,this.momentumReduceRatio=a,this.isTouch=Ut()}open(e){this.el=e;const t=Gt(),r=(a,n,o)=>{const u={delta:a,direction:n,type:o};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;t.start(a),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=a=>{if(!this.moving)return;t.move(a);let n=0;if(this.direction==="horizontal"){if(t.isVertical())return;n=t.state.deltaX}else{if(t.isHorizontal())return;n=t.state.deltaY}r(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let a=0;if(this.direction==="horizontal"){if(t.isVertical()){this.moving=!1;return}a=t.state.deltaX}else{if(t.isHorizontal()){this.moving=!1;return}a=t.state.deltaY}const n=t.state.duration;n<H2&&Math.abs(a)>q2?(a=K2(a,n,this.momentumReduceRatio),r(a,this.direction,"end")):r(a,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Y2(e,t,r,a=1){return new W2(e,t,r,a)}function U2(e,t,r=!1){return{props:Jn,emits:["update:modelValue","change"],setup(a,{emit:n,slots:o}){const u=(0,l.shallowRef)([]),s={current:(0,l.ref)(a.modelValue??""),direction:(0,l.ref)(a.direction),transition:a.transition,tabWidth:(0,l.ref)(-1),tabHeight:(0,l.ref)(-1),add:E=>{const P={name:E};s.current.value===E&&(P.loaded=!0),u.value.push(P),(0,l.triggerRef)(u)},remove:E=>{const P=u.value.findIndex(_=>_.name===E);P!==-1&&u.value.splice(P,1)},isLoaded:E=>{if(!a.lazy)return!0;const P=u.value.findIndex(_=>_.name===E);return P!==-1?s.current.value?u.value[P].loaded??!1:P===0:!1}};(0,l.provide)(po,s);const i=E=>{const P=u.value.findIndex(_=>_.name===E);P!==-1&&(u.value[P].loaded=!0,(0,l.triggerRef)(u))};(0,l.watch)([()=>a.modelValue,()=>a.direction],([E,P])=>{s.current.value!==E&&(s.current.value=E??"",i(E??"")),s.direction.value!==P&&(s.direction.value=P)});const f=(0,l.ref)(null),m=(0,l.ref)(null),c=(0,l.computed)(()=>({[e]:!0,[`${a.direction}`]:!0})),x=(0,l.computed)(()=>{const E={};if(a.width){const P=ye(a.width);P&&(E.width=P)}if(a.height){const P=ye(a.height);P&&(E.height=P)}return E});let C=!0;const v=(0,l.computed)(()=>{const E={};if(a.transition===!1)return E;const P=u.value.length;if(P<=0)return E;const _=u.value.findIndex(Y=>Y.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(E.height=`${P*s.tabHeight.value}px`,_!==-1&&(E.transform=`translate(0, -${_*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(E.width=`${P*s.tabWidth.value}px`,_!==-1&&(E.transform=`translate(-${_*s.tabWidth.value}px, 0)`)),C&&(C=!1,E.transition="transform 0s ease"),E}),d={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=E=>{const P=u.value.length,_=u.value.findIndex(Y=>Y.name===s.current.value);d.moved=0,E.direction==="vertical"?(d.min=-1*(s.tabHeight.value*(P-1)+s.tabHeight.value/4),d.max=s.tabHeight.value/4,d.start=-_*s.tabHeight.value,d.itemDistance=s.tabHeight.value):(d.min=-1*(s.tabWidth.value*(P-1)+s.tabWidth.value/4),d.max=s.tabWidth.value/4,d.start=-_*s.tabWidth.value,d.itemDistance=s.tabWidth.value)},T=E=>{const P=m.value;if(!P)return;let _=d.start+E.delta;if(_>d.max?_=d.max:_<d.min&&(_=d.min),E.type==="move")Vr(P,_,"move",E.direction,300);else if(E.type==="end"){let Y=Math.floor(Math.abs(_)*1/d.itemDistance);const g=Math.abs(_)%d.itemDistance;d.start>_?g>=d.itemDistance*d.triggerAutoMoveRatio&&(Y+=1):g>d.itemDistance-d.itemDistance*d.triggerAutoMoveRatio&&(Y+=1),_=-1*Y*d.itemDistance,Vr(P,_,"end",E.direction,300),d.moved=_;const A=u.value[Y].name;s.current.value=A??"",i(A??""),n("update:modelValue",A)}},S=()=>{},b=()=>{if(!f.value)return;const E=Sl(f.value);s.tabWidth.value=E.width,s.tabHeight.value=E.height},I=ba(b,250);let F=null,M=null;return(0,l.onMounted)(()=>{a.transition!==!1&&f.value&&(b(),window.ResizeObserver&&(M=new window.ResizeObserver(I),M.observe(f.value)),a.draggle&&(F=Y2(h,T,S),F.open(m.value)))}),(0,l.onBeforeUnmount)(()=>{M&&(M.disconnect(),M=null),F&&F.close()}),xe({doLayout(){b()}}),()=>{const E=(0,l.h)("view",{class:`${e}__panes`,style:v.value,ref:m},[o?.default?.()]);return(0,l.h)("view",{class:c.value,style:x.value,ref:f},[E])}}}}var{create:G2,componentName:X2,scope:Z2}=se("tabs-container"),J2=G2(U2(X2,Z2,!1)),Il=J2,Q2={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function e3(e,t,r){return{props:Q2,setup(a,{emit:n,slots:o}){const u=(0,l.inject)(po);(0,l.onMounted)(()=>{u.add(a.paneKey)}),(0,l.onBeforeUnmount)(()=>{u.remove(a.paneKey)});const s=(0,l.computed)(()=>{const m=[e];return u.direction.value==="vertical"?m.push("is-vertical"):m.push("is-horizontal"),u.transition===!1?m.push("is-no-transition"):m.push("is-transition"),m}),i=(0,l.computed)(()=>{const m={};return u.transition===!1?(u.current.value!==a.paneKey&&(m.display="none"),m):(u.direction.value==="vertical"&&u.tabHeight.value>0?m.height=`${u.tabHeight.value}px`:u.tabWidth.value>0&&(m.width=`${u.tabWidth.value}px`),m)}),f=(0,l.computed)(()=>a.loaded!=null?de(a.loaded):u.isLoaded(a.paneKey));return()=>{let m=[];if(f.value)m=o?.default?.()??[];else if(o.empty)m=o.empty();else{const c={class:`${e}__empty-icon`},x=(0,l.h)(a.emptyIcon??r,c),C=(0,l.h)("view",{class:`${e}__empty-text`},[a.emptyText??"Loading"]),v=(0,l.h)("view",{class:`${e}__empty`},[x,C]);m.push(v)}return(0,l.h)("view",{class:s.value,style:i.value,prop:a.paneKey},m)}}}}var{create:t3,componentName:l3,scope:n3}=se("tabs-pane"),r3=t3(e3(l3,n3,Vl)),Qn=r3,a3={...Zn,...Jn,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function o3(e,t,r,a){return{props:a3,emits:["update:modelValue","change"],setup(n,{emit:o,slots:u}){const s=e,i=(0,l.computed)(()=>{const d=[`${s}`];return n.direction==="vertical"?d.push("vertical-tabbar"):d.push("horizontal-tabbar"),d}),f=(0,l.computed)(()=>{const d={};if(n.width){const h=ye(n.width);h&&(d.width=h)}if(n.height){const h=ye(n.height);h&&(d.height=h)}return d}),m=(0,l.computed)(()=>[`${s}__bar`]),c=(0,l.computed)(()=>[`${s}__container`]),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,d=>{x.value!==d&&(x.value=d)});const C=d=>{o("change",d)},v=d=>{x.value!==d&&(x.value=d,o("update:modelValue",d))};return()=>{const{getChildren:d}=kn(u.default),h=d(),T=[];if(Array.isArray(n.data))T.push(...n.data);else for(let P=0;P<h.length;P++){const _=h[P].props??{},Y={text:_.label??"",value:_["pane-key"]??_.paneKey??""};T.push(Y)}const S={};for(let P in u)P!=="default"&&(S[P]=u[P]);const b=pt(n,Zn);Object.assign(b,{data:T,class:m.value,modelValue:x.value,direction:n.direction,onChange:C,"onUpdate:modelValue":v});const I=(0,l.h)(r,b,S),F={default:()=>h},M=pt(n,Jn);Object.assign(M,{class:c.value,modelValue:x.value,onChange:C,"onUpdate:modelValue":v});const E=(0,l.h)(a,M,F);return(0,l.h)("view",{class:i.value,style:f.value},[I,E])}}}}var{create:i3,componentName:s3,scope:u3}=se("tabs-frame"),c3=i3(o3(s3,u3,Ml,Il)),er=c3,d3={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:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function f3(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Mr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function m3(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Kl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Lr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Ar(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Wl(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var p3=class{proxy;constructor(e){this.proxy=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await Reflect.apply(t,null,[r]);const a=We(this.proxy,e);return a===null?(console.error(`${e} component not found api function`),[]):(Xe(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await Reflect.apply(a,null,[t,r]))}};function h3(){return new p3((0,l.getCurrentInstance)().proxy)}function g3(e,t,r,a){return{props:{...d3},emits:["update:modelValue","change","loaded-data"],setup(n,{slots:o,emit:u}){const s=e,i=h3(),f=(0,l.ref)([]),m=(0,l.computed)(()=>f.value.filter(L=>m3(n,L)!==!1)),c=(0,l.ref)(-1),x=()=>{const L=n.modelValue,D=m.value.findIndex(W=>Mr(n,W)===L);c.value!==D&&(c.value=D,n.scroll&&G(D,!1))};(0,l.watch)([()=>n.modelValue,m],()=>{x()});const C=L=>c.value===L,v=L=>{if(L<0&&L>=m.value.length)return!1;const D=m.value[L],W=(Wl(n,D,L)??{}).status??Kl(n,D);return C(L)||W},d=(0,l.computed)(()=>{const L={[s]:!0};return n.mode?L[`is-${n.mode}`]=!0:n.direction&&(L[`is-${n.direction}`]=!0),n.scroll&&(L["is-scroll"]=!0),L}),h=(0,l.computed)(()=>({})),T=(L,D,W,z,U)=>{const J={[`${s}__step`]:!0};return U&&(J[`${U}`]=!0),J[`${S.value}`]=!0,z&&(J["is-doit"]=!0),L===c.value?J["is-active"]=!0:D==="done"?J["is-done"]=!0:D==="error"?J["is-error"]=!0:D==="half"?J["is-half"]=!0:W?J["is-disabled"]=!0:J["is-normal"]=!0,J},S=(0,l.computed)(()=>{let L=n.align;if(!L){if(n.mode==="simple")return"start";n.direction==="vertical"?L="start":L="center"}return L}),b=(L,D={})=>{const W={...D};if(S.value==="start"&&L===m.value.length-1)W.flex="0 0 auto";else if(n.step){const z=typeof n.step=="number"||hn(n.step)?ye(n.step):n.step;n.direction==="vertical"?W.height=z:W.width=z}else W.flex="1 1 100%";return W},I=(L,D)=>{let W={};if(D<m.value.length-1){const z=D+1;v(D)&&v(z)?n.direction==="vertical"?W.height="100%":W.width="100%":W.opacity="0"}return W},F=L=>m.value.length-1===L,M=(L,D)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&D>c.value||c.value===D)return;const W=c.value,z=D;c.value=D,n.scroll&&G(D,!1);const U=Mr(n,L);u("update:modelValue",U),u("change",U,{fromIndex:W,currentIndex:z,item:L,items:m.value,clickNavigatePolicy:n.clickNavigatePolicy})},E=(0,l.ref)(!0),P=async(L,D)=>{try{const W=await i.load("stesbar",L,D);Array.isArray(W)&&(f.value=W),E.value=!1}catch(W){console.error("[FoxUI] Load StepsBar Data Fail",W),f.value=[]}setTimeout(()=>{u("loaded-data")},250)};(0,l.watch)([()=>n.data,()=>n.params],async([L,D])=>{L&&P(L,D)},{immediate:!0});const _=(L,D,W,z,U)=>{let J=null;if(o.icon)J=o.icon({item:L,index:D,status:z});else if(z==="done"){const te={};n.iconSize&&(te.width=n.iconSize,te.height=n.iconSize),J=(0,l.h)(n.icon??r,te)}else J=(0,l.h)("span",{},[W??`${D+1}`]);return(0,l.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{U||M(L,D)}},[J])},Y=(L,D,W)=>(0,l.h)("view",{class:"fox-steps-bar__line"},[(0,l.h)("i",{class:"fox-steps-bar__line-inner",style:I(L,D)})]),g=()=>{let L=null;if(o.markIcon)L=o.markIcon();else{const D={};n.iconSize&&(D.width=n.markIconSize,D.height=n.markIconSize),L=(0,l.h)(n.markIcon??a,D)}return(0,l.h)("view",{class:"fox-steps-bar__mark"},[L])},A=(L,D,W,z,U)=>{const J=[];if(!F(D)){const ne=Y(L,D,z);J.push(ne)}const te=_(L,D,W,z,U);return J.push(te),(0,l.h)("view",{class:"fox-steps-bar__head"},J)},X=(L,D,W,z)=>{let U=null;return o.main?U=o.main({item:L,index:D,status:W}):U=f3(n,L),(0,l.h)("view",{class:"fox-steps-bar__main",onClick:()=>{z||M(L,D)}},[U])},w=(L,D,W)=>{let z=null;return o.sub?(z=o.sub({item:L,index:D,status:W}),(0,l.h)("view",{class:"fox-steps-bar__sub"},[z])):null},$=(L,D)=>{const W=Wl(n,L,D)??{},z=W.status??Kl(n,L);let U=Ir(n,L);W.disabled===!0&&(U=!0),n.disabled===!0&&(U=!0);const J=W.label??Ar(n,L),te=[],ne=_(L,D,J,z,U);ne&&te.push(ne);const oe=X(L,D,z,U);if(oe&&te.push(oe),!F(D)){const B=Y(L,D,z);B&&te.push(B)}const K=(0,l.h)("view",{class:"fox-steps-bar__head"},te),ee=W.class,y=W.style??{};let p=Lr(n,L);return W.doit===!0&&(p=!0),(0,l.h)("view",{ref:V(D),class:T(D,z,U,p,ee),style:b(D,y)},[K])},k=(L,D)=>{const W=Wl(n,L,D)??{},z=W.status??Kl(n,L);let U=Ir(n,L);W.disabled===!0&&(U=!0),n.disabled===!0&&(U=!0);const J=W.label??Ar(n,L),te=[],ne=n.layout;for(let y of ne)if(y==="head"){const p=A(L,D,J,z,U);te.push(p)}else if(y==="main"){const p=X(L,D,z,U);te.push(p)}else if(y==="sub"){const p=w(L,D,z);te.push(p)}else if(y==="mark"){const p=g();te.push(p)}const oe=W.class,K=W.style??{};let ee=Lr(n,L);return W.doit===!0&&(ee=!0),(0,l.h)("view",{ref:V(D),class:T(D,z,U,ee,oe),style:b(D,K)},te)},q=(0,l.ref)(),H=(0,l.ref)([]),R=(L,D)=>{H.value[D]=L},V=L=>D=>{R(D,L)},G=(L,D)=>{const W=q.value,z=H.value;if(!W||!z||!z[L])return;const U=z[L];let J=0;n.direction==="vertical"?J=U.offsetTop-(W.offsetHeight-U.offsetHeight)/2:J=U.offsetLeft-(W.offsetWidth-U.offsetWidth)/2,j(W,J,D?0:.3,n.direction)},j=(L,D,W,z)=>{let U=0;const J=z==="horizontal"?L.scrollLeft:L.scrollTop,te=W===0?1:Math.round(W*1e3/16);function ne(){z==="horizontal"?L.scrollLeft+=(D-J)/te:L.scrollTop+=(D-J)/te,++U<te&&mn(ne)}ne()};return()=>{let L=[];if(n.mode==="simple")for(let W=0;W<m.value.length;W++){const z=m.value[W],U=$(z,W);L.push(U)}else for(let W=0;W<m.value.length;W++){const z=m.value[W],U=k(z,W);L.push(U)}const D={ref:q,class:d.value,style:h.value};return L.length===0&&typeof o.default=="function"&&(L=o.default()),(0,l.h)("view",D,L)}}}}var{componentName:v3,create:y3,scope:b3}=se("steps-bar"),S3=y3(g3(v3,b3,T2,V2)),tr=S3,w3=Symbol.for("PageWrapperKey");function x3(e,t){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,a){bn(!0);const n={};(0,l.provide)(w3,n);const o=f=>{typeof n.beforeClose=="function"&&n.beforeClose()},u=(0,l.ref)(!0),s=f=>{u.value=f},i=(0,l.computed)(()=>{const f={};return r.height&&(f["--fox-dialog-item-body-height"]=ye(r.height)),f});return()=>{const f={...a.attrs,style:i.value,title:r.title,draggable:r.draggable,modelValue:u.value,"onUpdate:modelValue":s,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},m=["fox-dialog-item "];r.hideHeader&&m.push("hide-header"),r.class&&m.push(r.class),f.class=m.join(" ");const c={};return typeof a.slots.default=="function"&&(c.default=a.slots.default),(0,l.h)(N.ElDialog,f,c)}}}}var{componentName:N3,create:C3,scope:z3}=se("dialog-item"),k3=C3(x3(N3,z3)),lr=k3,Mt=0,Pr="fox-overflow-hidden",Fr=()=>ut?document.body:{classList:[]},_3=e=>[()=>{if(e())try{!Mt&&Fr().classList.add(Pr),Mt++}catch{}},()=>{if(e()&&Mt)try{Mt--,!Mt&&Fr().classList.remove(Pr)}catch{}}],E3={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:T3,create:$3}=se("overlay"),B3=$3({props:{...E3},emits:["click","update:visible"],setup(e,{emit:t}){const[r,a]=_3(()=>e.lockScroll),n=(0,l.computed)(()=>({[T3]:!0,[e.overlayClass]:!0})),o=(0,l.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,l.watch)(()=>e.visible,s=>{s?r():a()}),{classes:n,style:o,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function V3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"overlay-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),onClick:t[0]||(t[0]=(0,l.withModifiers)((...u)=>e.onClick&&e.onClick(...u),["stop"])),style:(0,l.normalizeStyle)(e.style)},[(0,l.renderSlot)(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}var Ll=Ze(B3,[["render",V3]]),M3={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:{}}},go=2e3,Rr=go,I3=(e,t)=>({components:t,props:{...M3},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:a}){const n=(0,l.reactive)({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),o=(0,l.computed)(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),u=(0,l.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${r.duration}s`,...r.style})),s=(0,l.computed)(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),i=()=>{r.zIndex!==go&&(Rr=Number(r.zIndex)),a("update:visible",!0),n.zIndex=++Rr,r.destroyOnClose&&(n.showSlot=!0),a("open")},f=()=>{a("update:visible",!1),a("close"),r.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+r.duration*1e3)},m=d=>{a("click-pop",d)},c=d=>{d.stopPropagation(),a("click-close-icon",d),a("update:visible",!1)},x=d=>{a("click-overlay",d),r.closeOnClickOverlay&&a("update:visible",!1)},C=d=>{a("opend",d)},v=d=>{a("closed",d)};return(0,l.watch)(()=>r.visible,d=>{r.visible?i():f()}),(0,l.watch)(()=>r.closeable,d=>{n.closed=d}),{...(0,l.toRefs)(n),popStyle:u,transitionName:s,classes:o,onClick:m,onClickCloseIcon:c,onClickOverlay:x,onOpened:C,onClosed:v}}}),{componentName:L3,create:A3}=se("popup"),P3=A3(I3(L3,{FoxOverLay:Ll,Close:k2}));function F3(e,t,r,a,n,o){const u=(0,l.resolveComponent)("FoxOverLay"),s=(0,l.resolveComponent)("Close");return(0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,l.openBlock)(),(0,l.createBlock)(u,(0,l.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.popStyle),onClick:t[1]||(t[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("",!0),e.closed?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,l.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,l.renderSlot)(e.$slots,"close-icon",{},()=>[(0,l.createVNode)(s)])],2)):(0,l.createCommentVNode)("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var nr=Ze(P3,[["render",F3]]),{create:R3}=se("toast"),D3=R3({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let r=null;const a=(0,l.reactive)({mounted:!1});(0,l.onMounted)(()=>{a.mounted=!0});const n=()=>{r&&(clearTimeout(r),r=null)},o=()=>{a.mounted=!1},u=()=>{n(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},s=()=>{e.closeOnClickOverlay&&(o(),t("close"))};e.duration&&u(),(0,l.watch)(()=>e.duration,C=>{C&&u()});const i=(0,l.computed)(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const C=fe(e.iconSize);return(0,l.h)(e.icon,{width:C,height:C,color:e.iconColor})},m=(0,l.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=(0,l.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:a,hide:o,clickCover:s,renderIcon:f,hasIcon:i,toastBodyClass:m,toastIconWrapperClass:c,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),O3={key:1,class:"fox-toast-title"},q3=["innerHTML"];function H3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.toastBodyClass),style:(0,l.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...u)=>e.clickCover&&e.clickCover(...u))},[(0,l.createElementVNode)("view",{class:"fox-toast-inner",style:(0,l.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(e.toastIconWrapperClass)},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.renderIcon())))],2)):(0,l.createCommentVNode)("",!0),e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",O3,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,q3)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var rr=Ze(D3,[["render",H3]]),cn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},vt=[],Ft=[],vo=e=>{if(e){const t=document.getElementById(e);Ft=Ft.filter(r=>r.id!==e),vt=vt.filter(r=>r!==e),t&&document.body.removeChild(t)}else vt.forEach(t=>{const r=document.getElementById(t);r&&document.body.removeChild(r)}),Ft=[],vt=[]},j3=e=>{const t=document.getElementById(e.id);if(t){const r=Ft.find(a=>a.id===e.id);return r?e={...cn,...r,...e}:e={...cn,...e},(0,l.render)((0,l.createVNode)(rr,e),t),_t}},It=e=>{e.unmount=vo;let t;if(e.id){if(t=e.id,vt.find(a=>a===e.id))return j3(e)}else t=new Date().getTime()+"";e={...cn,...e},e.id=t,vt.push(e.id),Ft.push(e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(rr,e),r),document.body.appendChild(r),_t},el=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},_t={text(e,t={}){return el(e),It({...t,type:"text",msg:e})},success(e,t={}){return el(e),It({icon:u2,...t,msg:e,type:"success"})},fail(e,t={}){return el(e),It({icon:N2,...t,msg:e,type:"fail"})},warn(e,t={}){return el(e),It({icon:o2,...t,msg:e,type:"warn"})},loading(e,t={}){return It({icon:Vl,...t,msg:e,type:"loading"})},hide(e){vo(e)},install(e){e.use(rr),e.config.globalProperties.$toast=_t}},K3={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},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"}},W3=(e,t,r)=>({props:{...K3},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(a,{slots:n}){const{emitEvent:o}=xa(),{toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["placeholder"]),i=(0,l.reactive)({active:!1}),f=(0,l.computed)(()=>({background:a.background})),m=(0,l.computed)(()=>({background:a.inputBackground})),c=_=>{let Y=_.target.value;a.maxLength&&Y.length>Number(a.maxLength)&&(Y=Y.slice(0,Number(a.maxLength))),o("update:modelValue",Y,_),o("change",Y,_)},x=(0,l.ref)({}),C=_=>{let Y=_.target.value;i.active=!0,x.value=a.focusStyle,o("focus",Y,_)},v=_=>{setTimeout(()=>{i.active=!1},0);let Y=_.target.value;a.maxLength&&Y.length>Number(a.maxLength)&&(Y=Y.slice(0,Number(a.maxLength))),x.value={},o("blur",Y,_)},d=_=>{o("update:modelValue","",_),o("change","",_),o("clear","")},h=(0,l.computed)(()=>String(a.modelValue).length>0),T=(0,l.computed)(()=>{const _={};return h.value||(_.display="none"),_}),S=()=>{o("search",a.modelValue)},b=_=>{o("keyup-input",_),_.key.toLocaleUpperCase()==="ENTER"&&S()},I=_=>{o("click-input",_)},F=_=>{o("click-left-icon",a.modelValue,_)},M=(0,l.computed)(()=>({textAlign:a.inputAlign})),E=(0,l.ref)(null);(0,l.onMounted)(()=>{a.autofocus&&E.value.focus()});const P=()=>{const _=[];if(n.leftin){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:F},[n.leftin()]);_.push(A)}const Y=(0,l.h)("input",{ref:E,class:[`${e}__input-inner`],style:M.value,type:a.inputType,maxlengt:a.maxLength,placeholder:s.placeholder.value,value:a.modelValue,disabled:a.disabled,readonly:a.readonly,onClick:I,onInput:c,onFocus:C,onBlur:v,onkeyup:b});_.push(Y);const g=[];if(a.clearable){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:d},[(0,l.h)(n?.clear?.()??a.clearIcon??r)]);g.push(A)}if(n.rightin){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[n.rightin()]);g.push(A)}if(g.length>0){const A=(0,l.h)("view",{class:`${e}__input-inner-right`},g);_.push(A)}return(0,l.h)("view",{class:[`${e}__search-input`,`${a.shape}`],style:{...m.value,...x.value}},_)};return()=>{const _=[];if(a.label){const g=(0,l.h)("span",{class:`${e}__search-label`},[a.label]);_.push(g)}if(n.leftout){const g=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[n.leftout()]);_.push(g)}const Y=P();if(_.push(Y),n.rightout){const g=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[n.rightout()]);_.push(g)}return(0,l.h)("view",{class:`${e}`,style:f.value},_)}}}),{componentName:Y3,create:U3,scope:G3}=se("searchbar"),X3=U3(W3(Y3,G3,Ve.CircleClose)),ar=X3,Z3=/scroll|auto|overlay/i,yo=window;function J3(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Q3(e,t=yo){let r=e;for(;r&&r!==t&&J3(r);){const{overflowY:a}=window.getComputedStyle(r);if(Z3.test(a))return r;r=r.parentNode}return t}function bo(e,t=yo){const r=(0,l.ref)();return(0,l.onMounted)(()=>{e.value&&(r.value=Q3(e.value,t))}),r}var So=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,e4={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function t4(e,t,r){return{props:{...e4},emits:["scroll-change","load-more","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["pullText","loadText","noMoreText"]),i=(0,l.ref)(),f=bo(i),m=(0,l.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,l.computed)(()=>({[e]:!0})),x=S=>S?S.offsetTop+x(S.offsetParent):0,C=()=>{let S=0,b=0,I="down";if(f.value==window){const F=So();i.value&&(S=x(i.value)+i.value.offsetHeight-F-window.innerHeight),b=F}else{const{scrollHeight:F,clientHeight:M,scrollTop:E}=f.value;S=F-M-E,b=E}return m.beforeScrollTop>b?I="up":I="down",m.beforeScrollTop=b,n("scroll-change",b),S<=a.threshold&&I=="down"},v=()=>{Zr(()=>{if(!C()||!a.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,n("update:modelValue",!0),(0,l.nextTick)(()=>n("load-more"))})},d=()=>{f.value&&f.value.addEventListener("scroll",v,a.useCapture)},h=()=>{f.value&&f.value.removeEventListener("scroll",v,a.useCapture)};(0,l.onMounted)(()=>{d(),a.immediate&&v()}),(0,l.onUnmounted)(()=>{h()});const T=(0,l.ref)(!1);return(0,l.onActivated)(()=>{T.value&&(T.value=!1,d())}),(0,l.onDeactivated)(()=>{T.value=!0,h()}),(0,l.watch)(()=>a.modelValue,S=>{S||(m.isInfiniting=!1)}),()=>{const S=(0,l.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),b=[];if(m.isInfiniting){let F=o?.loading?.()??null;if(!F){let E=o?.loadingIcon?.()??null;E||(E=(0,l.h)(r,{class:["fox-infinite__bottom-box__img"]}));const P=(0,l.h)("view",{class:"fox-infinite__bottom-box__text"},[s.loadText.value]);F=[E,P]}const M=(0,l.h)("view",{class:"fox-infinite__bottom-box"},F);b.push(M)}else if(!a.hasMore){let F=o?.finished?.()??null;F||(F=(0,l.h)("view",{class:"fox-infinite__bottom-tips"},[s.noMoreText.value]),b.push(F))}const I=(0,l.h)("view",{class:"fox-infinite__bottom"},b);return(0,l.h)("view",{class:c.value,ref:i},[S,I])}}}}var{componentName:l4,create:n4,scope:r4}=se("infinite-loading"),a4=n4(t4(l4,r4,Vl)),or=a4,o4={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}},i4=(e,t,r)=>({props:{...o4},emits:["change","refresh","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["pullingText","loosingText","loadingText"]),i=Gt(),f=(0,l.ref)(),m=bo(f),c=(0,l.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),x=(0,l.computed)(()=>({[e]:!0})),C=(0,l.computed)(()=>{switch(c.status){case"pulling":return o.pulling?"":s.pullingText.value;case"loosing":return o.loosing?"":s.loosingText.value;case"loading":return o.loading?"":s.loadingText.value;default:return""}}),v=(0,l.computed)(()=>({transitionDuration:`${a.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),d=(0,l.computed)(()=>{const E={};return a.headHeight!=50&&(E.height=ye(a.headHeight)),E}),h=E=>{const P=+(a.pullDistance||a.headHeight);let _=E;return E>P&&(E<P*2?_=(E+P)/2:_=P+E/4),Math.round(_)},T=(E,P)=>{const _=+(a.pullDistance||a.headHeight);c.distance=E,P?c.status="loading":E===0?c.status="normal":E<_?c.status="pulling":c.status="loosing",n("change",{status:c.status,distance:E})},S=()=>c.status!=="loading"&&c.status!=="complete",b=()=>m.value==window?So()==0:m.value&&m.value.scrollTop==0,I=E=>{S()&&(b()?(i.start(E),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},F=E=>{S()&&c.moving&&(i.move(E),i.isVertical()&&i.state.deltaY>0&&c.isPullRefresh&&(E.cancelable&&E.preventDefault(),T(h(i.state.deltaY))))},M=()=>{c.moving=!1,c.isPullRefresh&&S()&&i.state.deltaY&&(c.status==="loosing"?(T(+a.headHeight,!0),n("update:modelValue",!0),(0,l.nextTick)(()=>n("refresh"))):T(0)),setTimeout(()=>{i.reset()},0)};return(0,l.watch)(()=>a.modelValue,E=>{E?T(+a.headHeight,!0):T(0)}),()=>{const E=[];let P=null;c.status==="loading"?(P=o?.loading?.()??null,P||(P=(0,l.h)(r,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?P=o?.pulling?.()??null:c.status==="loosing"&&(P=o?.loosing?.()??null),P&&E.push(P);const _=(0,l.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[C.value]);E.push(_);const Y=(0,l.h)("div",{class:["fox-pull-refresh-container-topbox"],style:d.value},E),g=(0,l.h)("div",{class:"fox-pull-refresh-container",style:v.value},[Y,o?.default?.()]),A={ref:f,class:x.value};return Ut()?Object.assign(A,{onTouchstart:I,onTouchmove:F,onTouchend:M}):Object.assign(A,{onMousedown:I,onMousemove:F,onMouseup:M}),(0,l.h)("div",A,[g])}}}),{componentName:s4,create:u4,scope:c4}=se("pull-refresh"),d4=u4(i4(s4,c4,Vl)),ir=d4,f4={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function m4(e,t,r){return{props:{...f4},emits:["click","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:u}=(0,Pe.useFoxI18n)(t),s=u(a,["collapseText","expandText"]),i=(0,l.computed)(()=>{const v={[`${e}`]:!0};return a.disabled?v[`${e}--disabled`]=!0:v[`${e}--${a.type}`]=!0,v}),f=ge(a,"modelValue"),m=(0,l.computed)(()=>f.value?s.expandText.value??"":s.collapseText.value??""),c=(0,l.computed)(()=>({[`${e}__text`]:!0})),x=(0,l.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),C=()=>{n("update:modelValue",!f.value)};return()=>{const v=[];if(m.value){const T=(0,l.h)("span",{class:c.value},[m.value]);v.push(T)}const d={class:x.value},h=(o.icon&&o.icon())??(a.icon&&(0,l.h)(a.icon))??(0,l.h)(r);if(h){const T=(0,l.h)("div",d,[h]);v.push(T)}return a.textPosition==="right"&&v.reverse(),(0,l.h)("div",{class:i.value,onClick:C},v)}}}}var{componentName:p4,create:h4,scope:g4}=se("more-button"),v4=h4(m4(p4,g4,Ve.ArrowUp)),sr=v4;function y4(e){e.stopPropagation()}var b4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Ut()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Gt(),r=(a,n,o,u)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.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&&(t.move(a),y4(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.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(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function S4(e,t){return new b4(e,t)}var w4={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},x4=(e,t,r,a=!1)=>({props:{...w4},emits:["click"],setup(n,{slots:o,emit:u}){const s=(0,l.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left}),i=(0,l.computed)(()=>{const S=[`${e}`];return n.customClass&&S.push(n.customClass),S}),f=(0,l.computed)(()=>{const S={};return me(s.top)||(S.top=s.top),me(s.right)||(S.right=s.right),me(s.bottom)||(S.bottom=s.bottom),me(s.left)||(S.left=s.left),me(n.width)||(S.width=n.width),me(n.height)||(S.height=n.height),me(n.color)||(S.color=n.color),me(n.background)||(S.background=n.background),me(n.borderRadius)||(S["border-radius"]=n.borderRadius),me(n.zIndex)||(S["z-index"]=n.zIndex),S}),m=(0,l.computed)(()=>({[`${e}__icon`]:!0})),c=()=>{u("click")},x=(0,l.ref)(null),C=()=>{s.top=null,s.right=null,s.bottom=null,s.left=null},v={x:0,y:0},T=S4(S=>{if(!x.value)return;const b=x.value;C(),s.left=b.offsetLeft,s.top=b.offsetTop,b.style.left=`${s.left}px`,b.style.top=`${s.top}px`,b.style.right=null,b.style.bottom=null,v.x=s.left,v.y=s.top},S=>{if(!x.value)return;const b=x.value;C(),s.left=v.x+S.x,s.top=v.y+S.y,b.style.left=`${s.left}px`,b.style.top=`${s.top}px`});return(0,l.onMounted)(()=>{if(n.draggable&&x.value){const S=[x.value];T.open(S)}}),(0,l.onBeforeUnmount)(()=>{n.draggable&&x.value&&T.close()}),()=>{let S=[];const b=typeof o.default=="function"?o.default():[];if(b&&b.length>0)S=b;else{const I=(0,l.h)(r,{class:m.value});S.push(I)}return(0,l.h)("view",{ref:I=>{x.value=I},class:i.value,style:f.value,onClick:c},S)}}}),{componentName:N4,create:C4,scope:z4}=se("floating-button"),k4=C4(x4(N4,z4,n2,!1)),ur=k4,Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null,_4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Ut()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Gt(),r=(a,n,o,u)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.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&&(t.move(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.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(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Dr(e,t){return new _4(e,t)}var Or=typeof window<"u"&&typeof document<"u",R5=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function wo(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var E4=/\B([A-Z])/g,D5=wo(e=>e.replace(E4,"-$1").toLowerCase()),T4=/-(\w)/g,O5=wo(e=>e.replace(T4,(t,r)=>r?r.toUpperCase():"")),gt=[],qr=e=>{const t=e;t.key==="Escape"&&gt.forEach(r=>r(t))},$4=e=>{(0,l.onMounted)(()=>{gt.length===0&&document.addEventListener("keydown",qr),Or&&gt.push(e)}),(0,l.onBeforeUnmount)(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Or&&document.removeEventListener("keydown",qr)})},Yl="fox-focus-trap.focus-after-trapped",Ul="fox-focus-trap.focus-after-released",B4="fox-focus-trap.focusout-prevented",Hr={cancelable:!0,bubbles:!1},V4={cancelable:!0,bubbles:!1},jr="foxFocusAfterTrapped",Kr="foxFocusAfterReleased",M4=Symbol("foxFocusTrap"),cr=(0,l.ref)(),Al=(0,l.ref)(0),dr=(0,l.ref)(0),tl=0,xo=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},I4=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Wr=(e,t)=>{for(const r of e)if(!I4(r,t))return r},L4=e=>{const t=xo(e);return[Wr(t,e),Wr(t.reverse(),e)]},A4=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),dr.value=window.performance.now(),e!==r&&A4(e)&&t&&e.select()}};function Yr(e,t){const r=[...e],a=e.indexOf(t);return a!==-1&&r.splice(a,1),r}var P4=()=>{let e=[];return{push:a=>{const n=e[0];n&&a!==n&&n.pause(),e=Yr(e,a),e.unshift(a)},remove:a=>{e=Yr(e,a),e[0]?.resume?.()}}},F4=(e,t=!1)=>{const r=document.activeElement;for(const a of e)if(ot(a,t),document.activeElement!==r)return},Ur=P4(),R4=()=>Al.value>dr.value,ll=()=>{cr.value="pointer",Al.value=window.performance.now()},Gr=()=>{cr.value="keyboard",Al.value=window.performance.now()},D4=()=>((0,l.onMounted)(()=>{tl===0&&(document.addEventListener("mousedown",ll),document.addEventListener("touchstart",ll),document.addEventListener("keydown",Gr)),tl++}),(0,l.onBeforeUnmount)(()=>{tl--,tl<=0&&(document.removeEventListener("mousedown",ll),document.removeEventListener("touchstart",ll),document.removeEventListener("keydown",Gr))}),{focusReason:cr,lastUserFocusTimestamp:Al,lastAutomatedFocusTimestamp:dr}),nl=e=>new CustomEvent(B4,{...V4,detail:e}),{componentName:q5,create:O4,scope:H5}=se("focus-trap"),q4={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"}},H4=O4({props:q4,emits:[jr,Kr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:r}){const a=(0,l.ref)();let n,o;const{focusReason:u}=D4();$4(d=>{de(e.trapped)&&!s.paused&&r("release-requested",d)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=d=>{if(!e.loop&&!de(e.trapped)||s.paused)return;const{key:h,altKey:T,ctrlKey:S,metaKey:b,currentTarget:I,shiftKey:F}=d,{loop:M}=e,E=h==="Tab"&&!T&&!S&&!b,P=document.activeElement;if(E&&P){const _=I,[Y,g]=L4(_);if(Y&&g){if(!F&&P===g){const A=nl({focusReason:u.value});r("focusout-prevented",A),A.defaultPrevented||(d.preventDefault(),M&&ot(Y,!0))}else if(F&&[Y,_].includes(P)){const A=nl({focusReason:u.value});r("focusout-prevented",A),A.defaultPrevented||(d.preventDefault(),M&&ot(g,!0))}}else if(P===_){const A=nl({focusReason:u.value});r("focusout-prevented",A),A.defaultPrevented||d.preventDefault()}}};(0,l.provide)(M4,{focusTrapRef:a,onKeydown:i}),(0,l.watch)(()=>e.focusTrapEl,d=>{d&&(a.value=d)},{immediate:!0}),(0,l.watch)([a],([d],[h])=>{d&&(d.addEventListener("keydown",i),d.addEventListener("focusin",c),d.addEventListener("focusout",x)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",c),h.removeEventListener("focusout",x))});const f=d=>{r(jr,d)},m=d=>r(Kr,d),c=d=>{const h=(0,l.unref)(a);if(!h)return;const T=d.target,S=d.relatedTarget,b=T&&h.contains(T);de(e.trapped)||S&&h.contains(S)||(n=S),b&&r("focusin",d),!s.paused&&de(e.trapped)&&(b?o=T:ot(o,!0))},x=d=>{const h=(0,l.unref)(a);if(!(s.paused||!h))if(!e.escape&&de(e.trapped)){const T=d.relatedTarget;!Ae(T)&&!h.contains(T)&&setTimeout(()=>{if(!s.paused&&de(e.trapped)){const S=nl({focusReason:u.value});r("focusout-prevented",S),S.defaultPrevented||ot(o,!0)}},0)}else{const T=d.target;T&&h.contains(T)||r("focusout",d)}};async function C(){await(0,l.nextTick)();const d=(0,l.unref)(a);if(d){Ur.push(s);const h=d.contains(document.activeElement)?n:document.activeElement;if(n=h,!d.contains(h)){const T=new Event(Yl,Hr);d.addEventListener(Yl,f),d.dispatchEvent(T),T.defaultPrevented||(0,l.nextTick)(()=>{let S=e.focusStartEl;la(S)||(ot(S),document.activeElement!==S&&(S="first")),S==="first"&&F4(xo(d),!0),(document.activeElement===h||S==="container")&&ot(d)})}}}function v(){const d=(0,l.unref)(a);if(d){d.removeEventListener(Yl,f);const h=new CustomEvent(Ul,{...Hr,detail:{focusReason:u.value}});d.addEventListener(Ul,m),d.dispatchEvent(h),!h.defaultPrevented&&(u.value=="keyboard"||!R4())&&ot(n??document.body,!0),d.removeEventListener(Ul,f),Ur.remove(s)}}return(0,l.onMounted)(()=>{de(e.trapped)&&C(),(0,l.watch)(()=>e.trapped,d=>{de(d)?C():v()})}),(0,l.onBeforeUnmount)(()=>{de(e.trapped)&&v()}),()=>typeof t.default=="function"?t.default({"handle-keydown":i}):null}}),j4=H4,{componentName:K4,create:W4,scope:j5}=se("floating-window"),Y4=Symbol.for("InnerPageScopeKey"),U4=Symbol.for("PageWrapperKey"),G4={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},X4=W4({inheritAttrs:!1,components:{FoxIcon:N.ElIcon,FocusTrap:j4},props:{...G4},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const r=K4,a=(0,l.ref)(e.modelValue),n=(0,l.computed)(()=>!e.teleport);(0,l.watch)(()=>e.modelValue,p=>{a.value=p});const o=(0,l.computed)(()=>a.value===!1?!1:!P.value),u=(0,l.ref)(e.left),s=(0,l.ref)(e.top),i=(0,l.ref)(e.right),f=(0,l.ref)(e.bottom),m=(0,l.computed)(()=>{const p=["fox-floating-window"];return e.customClass&&p.push(e.customClass),p}),c=(0,l.computed)(()=>{const p={};return dt(u.value)?p.left="auto":p.left=Oe(u.value),dt(s.value)?p.top="auto":p.top=Oe(s.value),dt(i.value)?p.right="auto":p.right=Oe(i.value),dt(f.value)?p.bottom="auto":p.bottom=Oe(f.value),dt(e.zIndex)||(p["z-index"]=Oe(e.zIndex)),dt(M.value)||(p.height=M.value),dt(E.value)||(p.width=E.value),p}),x=(0,l.computed)(()=>e.closeIcon??Ve.Close),C=(0,l.computed)(()=>e.collapseIcon??Ve.ArrowUp),v=(0,l.computed)(()=>e.collapseText??""),d=(0,l.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Ve.ArrowRight:e.expandIcon??Ve.ArrowLeft),h=(0,l.computed)(()=>e.expandText??e.title??"展开"),T=(0,l.computed)(()=>({[`${r}__collapse-text`]:!0})),S=(0,l.computed)(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),b=(0,l.ref)(),I=(0,l.ref)(null),F=(0,l.ref)(null),M=(0,l.computed)(()=>Oe(e.height)||""),E=(0,l.computed)(()=>Oe(e.width)||""),P=(0,l.ref)(de(e.collapse)),_=(p,B=!0)=>{P.value!==p&&(P.value=p,p?L():D(),t("update:collapse",p),p&&typeof A.onHide=="function"?A.onHide():!p&&typeof A.onShow=="function"&&A.onShow())};(0,l.watch)(()=>e.collapse,p=>{_(p)});const Y=()=>{g()},g=p=>{p=p??!P.value,_(p)};(0,l.provide)(Y4,!0);const A={setCollapse:_,setFixedNavVisible:p=>{V.value=p}};(0,l.provide)(U4,A);const X=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{a.value=!1}):a.value=!1},w=(0,l.ref)(null),$=(0,l.computed)(()=>!e.fixedNavTeleport),k=(0,l.computed)(()=>{const p=["fox-floating-window__fixednav"];return e.expandClass&&p.push(e.expandClass),e.collapsePosition==="left"?p.push("is-left"):e.collapsePosition==="right"&&p.push("is-right"),p}),q=(0,l.ref)(""),H=(0,l.computed)(()=>{const p={};return q.value?p.top=q.value:e.collapseTop&&(p.top=e.collapseTop),p}),R=(0,l.ref)(P.value),V=(0,l.computed)({set:p=>{R.value=p},get:()=>a.value===!1?!1:R.value});let G=null;const j=()=>{typeof G=="function"&&(G(),G=null)},L=()=>{w.value&&w.value.classList.add("slide-in"),V.value=!0,G=()=>{w.value&&w.value.classList.remove("slide-in")}},D=()=>{w.value&&w.value.classList.add("slide-out"),G=()=>{w.value&&w.value.classList.remove("slide-out"),V.value=!1}},W=()=>{u.value=null,s.value=null,i.value=null,f.value=null},z={x:0,y:0},te=Dr(p=>{if(!b.value)return;const B=b.value;if(W(),e.origin==="left-top")u.value=B.offsetLeft,s.value=B.offsetTop,z.x=u.value,z.y=s.value;else if(e.origin==="left-bottom"){const O=document.documentElement.clientHeight||document.body.clientHeight;u.value=B.offsetLeft,f.value=O-(B.offsetTop+B.offsetHeight),z.x=u.value,z.y=f.value}else if(e.origin==="right-bottom"){const O=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight;i.value=O-(B.offsetLeft+B.offsetWidth),f.value=Z-(B.offsetTop+B.offsetHeight),z.x=i.value,z.y=f.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(B.offsetLeft+B.offsetWidth),s.value=B.offsetTop,z.x=i.value,z.y=s.value},p=>{if(!b.value)return;const B=b.value;W(),e.origin==="left-top"?(u.value=z.x+p.x,s.value=z.y+p.y,B.style.left=Oe(u.value),B.style.top=Oe(s.value)):e.origin==="left-bottom"?(u.value=z.x+p.x,f.value=z.y-p.y,B.style.left=Oe(u.value),B.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(i.value=z.x-p.x,f.value=z.y-p.y,B.style.right=Oe(i.value),B.style.bottom=Oe(f.value)):(i.value=z.x-p.x,s.value=z.y+p.y,B.style.right=Oe(i.value),B.style.top=Oe(s.value))}),ne={x:0,y:0},ee=Dr(p=>{w.value&&(ne.x=w.value.offsetLeft,ne.y=w.value.offsetTop)},p=>{w.value&&(q.value=`${ne.y+p.y}px`)}),y=()=>{b.value&&(F.value=b.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,l.onMounted)(()=>{if(e.draggable&&b.value){const p=[];I.value&&p.push(I.value),e.footerDraggable&&(y(),F.value&&p.push(F.value)),te.open(p)}e.collapse===!0&&_(e.collapse,!1),w.value&&ee.open(w.value)}),(0,l.onBeforeUnmount)(()=>{e.draggable&&I.value&&te.close(),w.value&&ee.close()}),{classes:m,styles:c,isShow:o,closeIcon:x,onClose:X,dialogRef:b,headerRef:I,onClickToggle:Y,collapseIcon:C,collapseText:v,collapseTextClasses:T,collapseIconClasses:S,expandIcon:d,expandText:h,isShowFixedNav:V,fixedNavRef:w,fixedNavClasses:k,fixedNavStyles:H,onAnimationEnd:j,teleportDisabled:n,fixedNavTeleportDisabled:$}}}),Z4={ref:"headerRef",class:"fox-floating-window__header"},J4={class:"fox-floating-window__title"},Q4={class:"fox-floating-window__tools"},e5={class:"fox-floating-window__body"},t5={class:"fox-floating-window__fixednav__text"};function l5(e,t,r,a,n,o){const u=(0,l.resolveComponent)("FoxIcon"),s=(0,l.resolveComponent)("FocusTrap");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,l.createVNode)(l.Transition,{name:"fox-floating-window-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"dialogRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles),tabindex:"-1"},[(0,l.createVNode)(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Z4,[(0,l.renderSlot)(e.$slots,"header",{},()=>[(0,l.createElementVNode)("span",J4,(0,l.toDisplayString)(e.title),1),(0,l.createElementVNode)("div",Q4,[e.showCollapse?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.collapseTextClasses)},(0,l.toDisplayString)(e.collapseText),3),(0,l.createVNode)(u,{class:(0,l.normalizeClass)(e.collapseIconClasses)},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,l.createCommentVNode)("",!0),e.showClose?((0,l.openBlock)(),(0,l.createBlock)(u,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0)])])],512),(0,l.createElementVNode)("div",e5,[(0,l.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"fixedNavRef",class:(0,l.normalizeClass)(e.fixedNavClasses),style:(0,l.normalizeStyle)(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,l.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createVNode)(u,{class:"fox-floating-window__fixednav__icon"},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,l.createElementVNode)("div",t5,(0,l.toDisplayString)(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var fr=Ze(X4,[["render",l5]]);function n5(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(r,{slots:a}){const n=e,o=(0,l.computed)(()=>({[n]:!0})),u=(0,l.computed)(()=>r.icon?{[`${n}__icon`]:!0,[`${n}__icon-${r.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${r.type}`]:!0}),s=(0,l.computed)(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),i=(0,l.computed)(()=>{const m={[`${n}__text`]:!0,[`${n}__text-${r.type}`]:!0};return r.textPosition==="left"?m["is-left"]=!0:m["is-right"]=!0,m}),f=(0,l.computed)(()=>r.color?{color:r.color}:null);return()=>{let m=null;if(a.mark)m=a.mark()[0];else{const C={class:u.value,style:s.value};m=(0,l.h)(r.icon??"div",C)}const c=(0,l.h)("div",{class:i.value,style:f.value},a.default?a.default():[]),x={class:o.value};return r.textPosition==="right"?(0,l.h)("div",x,[m,c]):(0,l.h)("div",x,[c,m])}}}}var{componentName:r5,create:a5,scope:o5}=se("indicator"),i5=a5(n5(r5,o5)),mr=i5;function s5(e){return e===window}var No=e=>{const t=(0,l.unref)(e);if(s5(t)){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:u5,create:c5,scope:K5}=se("tour"),d5=c5({components:{Close:Ve.Close,ElPopover:N.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const r=u5,a=(0,l.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,l.ref)({}),o=(0,l.computed)(()=>`${r}`),u=(0,l.computed)(()=>{const{offset:v,maskWidth:d,maskHeight:h}=e,{width:T,height:S,left:b,top:I}=n.value,F=e.steps[a.active].offset??v,M=[b+T/2,I+S/2],E=Number(d||T),P=Number(h||S);return{width:`${E+ +F.left+F.right}px`,height:`${P+F.top+F.bottom}px`,top:`${M[1]-P/2-+F.top}px`,left:`${M[0]-E/2-+F.left}px`}}),s=v=>{v=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,l.nextTick)(()=>{a.showPopup=!0,m()}),t("change",a.active)},i=v=>v.popoverWidth??e.width,f=v=>v.location??e.location,m=()=>{const v=No(document.querySelector(`${e.steps[a.active].target}`));n.value={x:v.left,y:v.top,top:v.top,left:v.left,width:v.width,height:v.height}},c=()=>{a.showTour=!1,a.showPopup=!1,t("close",a.active),t("update:modelValue",!1)},x=()=>{e.closeOnClickOverlay&&c()},C=(v,d=0)=>{v&&m(),e.steps,a.active=d,a.showTour=v,a.showPopup=v};return(0,l.onMounted)(()=>{C(e.modelValue,e.current)}),(0,l.watch)(()=>e.modelValue,v=>{C(v)}),{...(0,l.toRefs)(a),classes:o,maskStyle:u,changeStep:s,popoverWidth:i,popoverLocation:f,close:c,handleClickMask:x}}}),f5={key:0,class:"fox-tour__content"},m5={key:0,class:"fox-tour__content-top"},p5={class:"fox-tour__content-inner"},h5={class:"fox-tour__content-bottom"},g5={class:"fox-tour__content-bottom-init"},v5={class:"fox-tour__content-bottom-operate"},y5={key:1,class:"fox-tour__content fox-tour__content-tile"},b5={class:"fox-tour__content-inner"};function S5(e,t,r,a,n,o){const u=(0,l.resolveComponent)("Close"),s=(0,l.resolveComponent)("fox-button"),i=(0,l.resolveComponent)("ElPopover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.classes)},[(0,l.withDirectives)((0,l.createElementVNode)("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.steps,(f,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:m,style:{height:"0"}},[m==e.active?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:(0,l.withCtx)(()=>[e.showTour?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,l.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,l.createCommentVNode)("",!0)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,l.openBlock)(),(0,l.createElementBlock)("div",f5,[e.showTitleBar?((0,l.openBlock)(),(0,l.createElementBlock)("div",m5,[(0,l.createElementVNode)("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[(0,l.createVNode)(u,{class:"fox-tour__content-top-close"})])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",p5,(0,l.toDisplayString)(f.content),1),(0,l.createElementVNode)("div",h5,[(0,l.createElementVNode)("div",g5,(0,l.toDisplayString)(e.active+1)+"/"+(0,l.toDisplayString)(e.steps.length),1),(0,l.createElementVNode)("div",v5,[(0,l.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.prevStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.nextStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)])])])])):(0,l.createCommentVNode)("",!0),e.type=="tile"?((0,l.openBlock)(),(0,l.createElementBlock)("div",y5,[(0,l.createElementVNode)("div",b5,(0,l.toDisplayString)(f.content),1)])):(0,l.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,l.createCommentVNode)("",!0)]))),128))],2)}var pr=Ze(d5,[["render",S5]]);function w5(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(r,{slots:a}){return Sa(r.name,()=>r.config),Ae(r.innerPageScope)||bn(r.innerPageScope),Ae(r.abstractPageScope)||Ca(r.abstractPageScope),()=>typeof a.default=="function"?a.default():null}}}var{componentName:x5,create:N5,scope:C5}=se("domain-provider"),z5=N5(w5(x5,C5)),hr=z5,k5={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 _5(e,t){return{inheritAttrs:!1,props:k5,emits:["change"],setup(r,{slots:a,emit:n}){if(ut&&window.IntersectionObserver){const o=new WeakMap;let u=new Map;const s=(x,C)=>{if(m===null){u.set(x,{visible:null,callback:C});return}o.has(x)&&m.unobserve(x),o.set(x,{visible:null,callback:C}),m.observe(x)},i=x=>{if(m===null){u.delete(x);return}o.has(x)&&(o.delete(x),m.unobserve(x))};let f=r.initialVisibleObserverSize;Xi({acquire:()=>{if(r.loadPolicy==="always")return!0;const x=f>0;return f--,x},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const c=(x,C,v)=>{m=new IntersectionObserver(d=>{if(n("change",d),r.loadPolicy!=="always")for(let h of d){let T=!1;h.intersectionRatio>0&&(T=!0);const S=o.get(h.target);if(S)try{if(r.loadPolicy==="lazy"&&!T&&S.visible!==null)return;S.visible=T,S.callback(T)}catch(b){console.error(b)}}},{root:x,rootMargin:C,threshold:v}),u.forEach((d,h)=>{o.set(h,d),m?.observe(h)}),u.clear()};(0,l.watch)([()=>r.root,()=>r.disabled],([x,C])=>{if(C||!x||m)return;let v=null;typeof x=="string"?v=document.querySelector(x):v=x,v&&c(v,r.rootMargin,r.threshold)},{immediate:!0}),(0,l.onUnmounted)(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof a.default=="function"?a.default():null}}}var{componentName:E5,create:T5,scope:$5}=se("rolling-provider"),B5=T5(_5(E5,$5)),gr=B5,V5=[wn,Nn,Cn,zn,_n,Yt,El,Tl,$n,_e,Bn,Vn,Mn,In,Ln,An,Pn,Fn,Rn,Dn,On,Bl,qn,Hn,jn,Kn,Wn,Yn,Un,Gn,Xn,Ml,Il,Qn,er,tr,lr,Ll,nr,_t,ar,or,ir,sr,ur,fr,$l,Ct,_l,mr,Nt,pr,hr,gr],M5=new wi(V5,[Ci],"4.0.0");exports.AbstractPageScopeKey=Sn;exports.AutocompleteItem=Rn;exports.FoxAutocompleteItem=Rn;exports.Broadcast=gn;exports.BroadcastKey=we;exports.ButtonsItem=$n;exports.FoxButtonsItem=$n;exports.CascaderItem=Fn;exports.FoxCascaderItem=Fn;exports.CheckboxItem=jn;exports.FoxCheckboxItem=jn;exports.Content=zn;exports.FoxContent=zn;exports.DataItemsKey=ht;exports.DateItem=Mn;exports.FoxDateItem=Mn;exports.DateUtils=He;exports.DialogItem=lr;exports.FoxDialogItem=lr;exports.Domain=gl;exports.DomainKey=je;exports.DomainProvider=hr;exports.FoxDomainProvider=hr;exports.FloatingButton=ur;exports.FoxFloatingButton=ur;exports.FloatingWindow=fr;exports.FoxFloatingWindow=fr;exports.FooterBar=Cn;exports.FoxFooterBar=Cn;exports.FoxAffix=N.ElAffix;exports.FoxAlert=N.ElAlert;exports.FoxAnchor=N.ElAnchor;exports.FoxAnchorLink=N.ElAnchorLink;exports.FoxAside=N.ElAside;exports.FoxAutoResizer=N.ElAutoResizer;exports.FoxAutocomplete=N.ElAutocomplete;exports.FoxAvatar=N.ElAvatar;exports.FoxBacktop=N.ElBacktop;exports.FoxBadge=N.ElBadge;exports.FoxBreadcrumb=N.ElBreadcrumb;exports.FoxBreadcrumbItem=N.ElBreadcrumbItem;exports.FoxButton=N.ElButton;exports.FoxButtonGroup=N.ElButtonGroup;exports.FoxCalendar=N.ElCalendar;exports.FoxCard=N.ElCard;exports.FoxCarousel=N.ElCarousel;exports.FoxCarouselItem=N.ElCarouselItem;exports.FoxCascader=N.ElCascader;exports.FoxCascaderPanel=N.ElCascaderPanel;exports.FoxCheckTag=N.ElCheckTag;exports.FoxCheckbox=N.ElCheckbox;exports.FoxCheckboxButton=N.ElCheckboxButton;exports.FoxCheckboxGroup=N.ElCheckboxGroup;exports.FoxCol=N.ElCol;exports.FoxCollapse=N.ElCollapse;exports.FoxCollapseItem=N.ElCollapseItem;exports.FoxCollapseTransition=N.ElCollapseTransition;exports.FoxColorPicker=N.ElColorPicker;exports.FoxConfigProvider=N.ElConfigProvider;exports.FoxContainer=N.ElContainer;exports.FoxCountdown=N.ElCountdown;exports.FoxDatePicker=N.ElDatePicker;exports.FoxDescriptions=N.ElDescriptions;exports.FoxDescriptionsItem=N.ElDescriptionsItem;exports.FoxDialog=N.ElDialog;exports.FoxDivider=N.ElDivider;exports.FoxDrawer=N.ElDrawer;exports.FoxDropdown=N.ElDropdown;exports.FoxDropdownItem=N.ElDropdownItem;exports.FoxDropdownMenu=N.ElDropdownMenu;exports.FoxEmpty=N.ElEmpty;exports.FoxFooter=N.ElFooter;exports.FoxForm=N.ElForm;exports.FoxFormItem=N.ElFormItem;exports.FoxGroup=_n;exports.Group=_n;exports.FoxGroupSetting=Un;exports.GroupSetting=Un;exports.FoxHeader=N.ElHeader;exports.FoxHeaderBar=Nn;exports.HeaderBar=Nn;exports.FoxHintText=_e;exports.HintText=_e;exports.FoxIcon=N.ElIcon;exports.FoxImage=N.ElImage;exports.FoxImageViewer=N.ElImageViewer;exports.FoxIndicator=mr;exports.Indicator=mr;exports.FoxInfiniteLoading=or;exports.InfiniteLoading=or;exports.FoxInput=N.ElInput;exports.FoxInputItem=Bn;exports.InputItem=Bn;exports.FoxInputNumber=N.ElInputNumber;exports.FoxInputNumberItem=Pn;exports.InputNumberItem=Pn;exports.FoxInputTag=N.ElInputTag;exports.FoxItem=Yt;exports.Item=Yt;exports.FoxLink=N.ElLink;exports.FoxLinkItem=Xn;exports.LinkItem=Xn;exports.FoxMain=N.ElMain;exports.FoxMapping=Ct;exports.Mapping=Ct;exports.FoxMention=N.ElMention;exports.FoxMenu=N.ElMenu;exports.FoxMenuItem=N.ElMenuItem;exports.FoxMenuItemGroup=N.ElMenuItemGroup;exports.FoxMessage=N.ElMessage;exports.FoxMessageBox=N.ElMessageBox;exports.FoxMoneyItem=An;exports.MoneyItem=An;exports.FoxMoreButton=sr;exports.MoreButton=sr;exports.FoxNotification=N.ElNotification;exports.FoxOption=N.ElOption;exports.FoxOptionGroup=N.ElOptionGroup;exports.FoxOverLay=Ll;exports.OverLay=Ll;exports.FoxPage=wn;exports.Page=wn;exports.FoxPageHeader=N.ElPageHeader;exports.FoxPagination=N.ElPagination;exports.FoxPopconfirm=N.ElPopconfirm;exports.FoxPopover=N.ElPopover;exports.FoxPopoverDialog=$l;exports.PopoverDialog=$l;exports.FoxPopper=N.ElPopper;exports.FoxPopup=nr;exports.Popup=nr;exports.FoxPrice=_l;exports.Price=_l;exports.FoxProgress=N.ElProgress;exports.FoxPullRefresh=ir;exports.PullRefresh=ir;exports.FoxRadio=N.ElRadio;exports.FoxRadioButton=N.ElRadioButton;exports.FoxRadioGroup=N.ElRadioGroup;exports.FoxRadioItem=Hn;exports.RadioItem=Hn;exports.FoxRate=N.ElRate;exports.FoxRateItem=Kn;exports.RateItem=Kn;exports.FoxResult=N.ElResult;exports.FoxRollingProvider=gr;exports.RollingProvider=gr;exports.FoxRow=N.ElRow;exports.FoxRowItem=Tl;exports.RowItem=Tl;exports.FoxScrollbar=N.ElScrollbar;exports.FoxSearchBar=ar;exports.SearchBar=ar;exports.FoxSegmented=N.ElSegmented;exports.FoxSelect=N.ElSelect;exports.FoxSelectItem=Vn;exports.SelectItem=Vn;exports.FoxSelectV2=N.ElSelectV2;exports.FoxSkeleton=N.ElSkeleton;exports.FoxSkeletonItem=N.ElSkeletonItem;exports.FoxSlider=N.ElSlider;exports.FoxSlotItem=El;exports.SlotItem=El;exports.FoxSpace=N.ElSpace;exports.FoxStatistic=N.ElStatistic;exports.FoxStep=N.ElStep;exports.FoxSteps=N.ElSteps;exports.FoxStepsBar=tr;exports.StepsBar=tr;exports.FoxSubMenu=N.ElSubMenu;exports.FoxSwitch=N.ElSwitch;exports.FoxSwitchItem=Wn;exports.SwitchItem=Wn;exports.FoxTabPane=N.ElTabPane;exports.FoxTable=N.ElTable;exports.FoxTableColumn=N.ElTableColumn;exports.FoxTableItem=qn;exports.TableItem=qn;exports.FoxTableMappingColumn=Dn;exports.TableMappingColumn=Dn;exports.FoxTableRadioColumn=On;exports.TableRadioColumn=On;exports.FoxTableSetting=Bl;exports.TableSetting=Bl;exports.FoxTableV2=N.ElTableV2;exports.FoxTabs=N.ElTabs;exports.FoxTabsBar=Ml;exports.TabsBar=Ml;exports.FoxTabsContainer=Il;exports.TabsContainer=Il;exports.FoxTabsFrame=er;exports.TabsFrame=er;exports.FoxTabsPane=Qn;exports.TabsPane=Qn;exports.FoxTag=N.ElTag;exports.FoxText=Nt;exports.Text=Nt;exports.FoxTimeItem=In;exports.TimeItem=In;exports.FoxTimePicker=N.ElTimePicker;exports.FoxTimeSelect=N.ElTimeSelect;exports.FoxTimeSelectItem=Ln;exports.TimeSelectItem=Ln;exports.FoxTimeline=N.ElTimeline;exports.FoxTimelineItem=N.ElTimelineItem;exports.FoxToast=_t;exports.Toast=_t;exports.FoxTooltip=N.ElTooltip;exports.FoxTour=pr;exports.Tour=pr;exports.FoxTransfer=N.ElTransfer;exports.FoxTree=N.ElTree;exports.FoxTreeItem=Gn;exports.TreeItem=Gn;exports.FoxTreeSelect=N.ElTreeSelect;exports.FoxTreeSelectItem=Yn;exports.TreeSelectItem=Yn;exports.FoxTreeV2=N.ElTreeV2;exports.FoxUpload=N.ElUpload;exports.FoxWatermark=N.ElWatermark;exports.InnerPageScopeKey=yn;exports.PriorityPolicy=Me;exports.UniqueID=Da;exports.ValidateSchema=va;exports.ValidateSchemaKey=Ge;exports.browseProperty=_a;exports.cancelRaf=Lo;exports.clamp=ei;exports.clearNonNumber=Uo;exports.compareTo=Ql;exports.createBroadcast=ml;exports.createValidateSchema=pl;exports.debounce=Ye;exports.debounceRef=ci;exports.decimalLength=da;exports.default=M5;exports.defineBroadcast=ti;exports.defineConfigDomain=Sa;exports.defineDataItem=wa;exports.defineDomain=vn;exports.defineDomainItemProperty=Re;exports.defineItem=Ee;exports.definePageState=Na;exports.defineSimpleItem=xa;exports.deleteGlobalValidator=oi;exports.disabledProperty=ka;exports.divide=fn;exports.excludeProps=Fe;exports.extend=wt;exports.floatData=Zo;exports.getGlobalIcons=Ia;exports.getGlobalValidateCheckEvents=pa;exports.getGlobalValidateResetEvents=ga;exports.getPageContentAreaHeight=il;exports.getPageContentAreaWidth=sl;exports.getPageFooterAreaHeight=bl;exports.getPageHeaderAreaHeight=yl;exports.getRootDomain=yt;exports.hasSymbol=aa;exports.includeProps=pt;exports.indexOf=Go;exports.injectAbstractPageScope=Wt;exports.injectInnerPageScope=Kt;exports.integerLength=ca;exports.isArray=Po;exports.isArrayLike=sa;exports.isBrowser=ut;exports.isDate=Do;exports.isDisplayNone=pn;exports.isESModule=Ho;exports.isEmptyString=me;exports.isEqual=et;exports.isFunction=en;exports.isHidden=oa;exports.isMap=Fo;exports.isNil=Ae;exports.isNumberString=hn;exports.isObject=Xe;exports.isPlainObject=qo;exports.isPromise=na;exports.isRegExp=tn;exports.isSet=Ro;exports.isString=la;exports.isSubPage=pi;exports.isSymbol=Oo;exports.isTouch=Ut;exports.isWindow=ia;exports.kebabToPascal=Dt;exports.lastIndexOf=Xo;exports.makeArray=Yo;exports.merge=ua;exports.multiply=Qr;exports.negate=ea;exports.nextTick=Ko;exports.numberFormat=dl;exports.objectToString=ra;exports.once=di;exports.overrideGlobalIcons=Vi;exports.overrideGlobalValidateHandler=ri;exports.padZero=Qo;exports.pascalToKebab=fa;exports.preventDefault=Jo;exports.property=Ie;exports.provideAbstractPageScope=Ca;exports.provideInnerPageScope=bn;exports.raf=mn;exports.readonlyProperty=za;exports.setGlobalValidateCheckEvents=ii;exports.setGlobalValidateHandler=ni;exports.setGlobalValidateMessages=ui;exports.setGlobalValidateResetEvents=si;exports.setGlobalValidator=ai;exports.throttle=ba;exports.toBoolean=de;exports.toNumber=ke;exports.toPadding=Qe;exports.toPx=fe;exports.toPxDesc=mi;exports.toPxString=ye;exports.toTypeString=fl;exports.toValue=ge;exports.tryTimes=hl;exports.typeOf=al;exports.unNumberFormat=ta;exports.updatePageState=ln;exports.useBroadcast=Lt;exports.useDomain=ct;exports.useExpose=xe;exports.useInnerSize=Sl;exports.usePageState=vl;exports.usePosition=En;exports.useRawTouch=Gt;exports.useRect=No;exports.useSize=xn;exports.useSlotChildren=kn;exports.useTouch=O2;exports.valueLength=jt;