@fox-js/foxui-pc 4.0.1-11 → 4.0.1-110
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 +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +11960 -4290
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +699 -313
- package/package.json +16 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-
|
|
5
|
-
*/function Ye(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=ne(e),t=ne(t),[e,t]=ht(ne(e),ne(t)),r==1&&(n==1?e=dt(e):t=dt(t));let l=Bt(e,t);return r?r==2?"-"+ne(l):e.length<l.length?ne(l.substring(1)):"-"+ne(dt(l)):ne(l)}function dt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return Bt(t,o)}function ne(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 ht(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Bt(e,t){[e,t]=ht(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var X=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(X||{});function Be(e,t=0,r=X.HALF_EVEN){if(r===X.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),o=l[0],s=l[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)+s,i=Be(e,0,r),(n?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,Ft(l[1],o,n,r)?(n?"-":"")+gt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let u=l[1].substring(t);return u&&Ft(u,s,n,r)&&(s=gt(s),s.length>t)?(n?"-":"")+gt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function Ft(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===X.DOWN||!r&&n===X.FLOOR||r&&n===X.CEILING)return!1;if(n===X.UP||r&&n===X.FLOOR||!r&&n===X.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case X.HALF_DOWN:return!1;case X.HALF_UP:return!0;case X.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function mt(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=Fe(e),t=Fe(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Fe(e.replace(".","")),t=Fe(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let s=t.length,u=0,i=[],c=s-1,f="";for(let g=0;g<s;g++)i[g]=e.length-1;for(let g=0;g<2*e.length;g++){let O=0;for(let R=t.length-1;R>=c&&R>=0;R--)i[R]>-1&&i[R]<e.length&&(O+=parseInt(e[i[R]--])*parseInt(t[R]));O+=u,u=Math.floor(O/10),f=O%10+f,c--}return f=Fe(Nr(f,o)),r==1&&(f="-"+f),f}function Nr(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 Fe(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 yt(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 n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=ne(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=ne(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=ne(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=ne(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=ne(e.replace(".","")))}let o=0,s=t.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(t);)i=Ye(i,"-"+t),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(n==1?"-":"")+ne(Be(u,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ye(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Lt(e),Lt(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=pt(e,mt(t,Be(yt(e,t),0,X.FLOOR)));return r+n}function Lt(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _t(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]=ht(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class K{value;static RoundingModes=X;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,n]=t.split(/[eE]/);r=ne(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=l+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=l+ne(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=K.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=K.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=X.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Be(t,r,n)}round(t=0,r=X.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(Be(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,X.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,X.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,X.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,X.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ye(t,r)}add(t){return new K(Ye(this.value,t.getValue()))}static subtract(t,r){return t=K.validate(t),r=K.validate(r),pt(t,r)}subtract(t){return new K(pt(this.value,t.getValue()))}static multiply(t,r){return t=K.validate(t),r=K.validate(r),mt(t,r)}multiply(t){return new K(mt(this.value,t.getValue()))}static divide(t,r,n){return t=K.validate(t),r=K.validate(r),yt(t,r,n)}divide(t,r){return new K(yt(this.value,t.getValue(),r))}static modulus(t,r){return t=K.validate(t),r=K.validate(r),Pt(t,r)}modulus(t){return new K(Pt(this.value,t.getValue()))}static compareTo(t,r){return t=K.validate(t),r=K.validate(r),_t(t,r)}compareTo(t){return _t(this.value,t.getValue())}static negate(t){return t=K.validate(t),bt(t)}negate(){return new K(bt(this.value))}}function Ht(e,t){return K.multiply(`${e}`,`${t}`)}function St(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function wt(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function Kt(e){return K.negate(e)}function $t(e,t=-1,r=!1,n=3,l=","){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)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let f;if(n>0){let g="",O=u.split("").reverse();for(let R=0;R<O.length;R++)g+=O[R]+((R+1)%n==0&&R+1!=O.length?l:"");i.length==0?f=`${s}${g.split("").reverse().join("")}`:f=`${s}${g.split("").reverse().join("")}.${i}`}else i.length==0?f=`${s}${u}`:f=`${s}${u}.${i}`;return f}function zt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Pe=typeof window<"u",Vr=Pe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const J=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Yt(e){return J(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),J(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Wt(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 Ut(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 Xt(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function Ir(e,t=!0,r=!0){t?e=Xt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Xt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function xr(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function Ar(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Le(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Rr(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function le(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const n={};for(const l in e)r.includes(l)||(n[l]=e[l]);return n}const jr=(e,t,r)=>{const n=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},Q=Symbol("BroadcastKey");class vt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Gt(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(r);if(typeof s=="function"){const i=Reflect.apply(s,this.proxy,[...n]);i!=null&&o.push(i)}const u=this.proxy??{};if(typeof u[r]=="function"){const i=Reflect.apply(u[r],u,[...n]);i!=null&&o.push(i)}}return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),o}emitToChildren(t,r,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,r){this.callbacks.set(t,r)}}function We(e,t,r,n){const l=new vt(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function kr(e,t,r){const n=r;if(n[Q])return n[Q];const l=a.inject(Q,null),o=new vt(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[Q]=o,a.provide(Q,o),a.onUnmounted(()=>{o.destroy(),n[Q]=void 0}),o}function _e(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[Q]??a.inject(Q,null):a.inject(Q,null)}class Dr{error(t,r){const n=r,l=_e(r);l?l.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=_e(n),s=r.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),u=t.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&u?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Zt=new Dr;function Mr(e){Zt=e}function qr(e,t){Oe.default.setValidator(e,t)}function Br(e){Oe.default.deleteValidator(e)}let Jt=["blur","clear"];function Fr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Pr(e){en=e}function tn(){return en}function Lr(e){Oe.default.messages(e)}function He(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ue(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ye=Symbol("ValidateSchemaKey");class nn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;!t||(this.scope=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=Ue(He(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let i={type:o};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let u=this.getValidator(o);if(u!==null){let i={type:o,validator:u};n.push(i)}}this.attrRules=Ue(n);const l=He(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const l=Zt;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Oe.default.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Oe.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Oe.default.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=He(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ue(t):this.rules=Ue([t]);const n=He(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=He(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},u=new Oe.default(l),i=this.proxy??s;return u.validate(s,{context:i}).then(f=>{if(f.pass)this.success();else{let g="error";Array.isArray(f.errors)&&f.errors.length>0&&(g=f.errors[0].message??g,f.errors=[f.errors[0]],f.errors[0].ref=i),this.error(g)}return f}).catch(f=>{const g=f.message??`${f}`;return this.error(g),f})}}return Promise.resolve({pass:!0})}}function Xe(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new nn(t,r,e)}const rn=Symbol("EventEmitterKey");class _r{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===r);l!==-1&&n.splice(l,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function Hr(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function Et(e,t){let r,n=null;return function(...l){n=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const be=Symbol("DomainKey"),xe=Symbol("DataItemsKey");class Ct{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=a.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const l=t[n];r.length>0&&r.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];r.push(l)}n=n._parent}return r}}const Kr=new Ct;function Ke(){return Kr}function Se(e=null){e||(e=a.getCurrentInstance());const t=e?.proxy;return t?t[be]??a.inject(be,null):a.inject(be,null)}const Ot=Symbol("OriginalDateKey");function Tt(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(be,null);s===null&&(s=Ke());const u=e||t.prop||t.name,i=new Ct(u);i.parent=s;const c=v=>{o[Ot]||O(v),i.set("modelValue",v)},f=()=>i.getForSelf("modelValue")??null,g=()=>o[Ot]??null,O=v=>{const A={};_.extend(!0,A,a.toRaw(v)),o[Ot]=A};a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),t.modelValue&&O(t.modelValue),o[be]=i,a.provide(be,i);let R=null,T=null;if(l!==null){const v=a.inject(Q,null);R=We(o,v,u,n),i.broadcast=R,o[Q]=R,a.provide(Q,R),o.broadcast=(C,D,...V)=>Reflect.apply(R.emit,R,[C,D,...V]);const A=a.inject(ye,null);T=Xe(o,A,{componentName:""}),i.validateSchema=T,o[ye]=T,a.provide(ye,T),o[xe]=new Map,o.validate=(C=!0)=>{const D=[];let V=null;if(C===!0)V={name:"*"};else if(Array.isArray(C)&&C.length>0){const b=C;V={name:p=>p?b.indexOf(p)!==-1:!1}}else if(C!=null&&typeof C=="object"){const b=C;if(Array.isArray(b.include)&&b.include.length>0){const p=b.include;V={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const p=b.exclude;V={name:$=>$?p.indexOf($)===-1:!1}}}if(V){const b=R?.emitToChildren(V,"validate",!1);b&&Reflect.apply([].push,D,b)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(b=>{let p=[];return b.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(p=[...p,...$.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(C,D=!0)=>{if(D){const V=Reflect.ownKeys(C),b=[...V],p={name:$=>{const m=V.includes($);if(m){const w=b.findIndex(j=>$===j);w!==-1&&b.splice(w,1)}return m}};R?.emitToChildren(p,"setNameValidateRules",C,!1),b.length>0&&b.forEach($=>{let m=String($);const j=an(i,m,{componentName:"",fieldName:m,pureDataValidate:!0},R,T);o[xe].set(m,j);const S=C[m];S&&j.validateSchema.setRule(S)})}},o.clearValidate=(C=!0)=>{let D=null;if(C===!0)D={name:"*"};else if(Array.isArray(C)&&C.length>0){const V=C;D={name:b=>b?V.indexOf(b)!==-1:!1}}else if(C!=null&&typeof C=="object"){const V=C;if(Array.isArray(V.include)&&V.include.length>0){const b=V.include;D={name:p=>p?b.indexOf(p)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const b=V.exclude;D={name:p=>p?b.indexOf(p)===-1:!1}}}D&&R?.emitToChildren(D,"clearValidate",!1)},o.resetFields=C=>{const D=f();if(!D)return;const V={};if(_.extend(!0,V,g()??{}),Array.isArray(C))C.forEach(b=>{D[b]=V[b]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(p=>{D[p]=V[p]});else if(C&&Array.isArray(C.exclude)){let b=C.exclude??[];Reflect.ownKeys(V).forEach(p=>{b.includes(p)||(D[p]=V[p])})}else Object.assign(D,V);o.clearValidate(C)},o.setModelValue=(C,D)=>{!D||D===u?c(C):R?.emitToChildren({name:D},"setModelValue",C)},o.getModelValue=()=>f()}return a.onUnmounted(()=>{i.destroy(),o[be]=void 0,o[xe]&&(o[xe].clear(),o[xe]=void 0),R!==null&&(R.destroy(),o[Q]=void 0),T!==null&&(T.destroy(),o[ye]=void 0)}),i}function re(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(Q,null),u=We(l,s,o,r);l[Q]=u,a.provide(Q,u),l.broadcast=(T,v,...A)=>Reflect.apply(u.emit,u,[T,v,...A]);const i=a.inject(ye,null);e.fieldName=e.fieldName??o;const c=Xe(l,i,e);l[ye]=c,a.provide(ye,c),l.validate=(T=null)=>{const v=[];if(!Array.isArray(T)||T.indexOf(o)!==-1){const C=c?.validate();v.push(C)}let A=null;if(T===!0)A={name:"*"};else if(Array.isArray(T)&&T.length>0){const C=T;A={name:D=>D?C.indexOf(D)!==-1:!1}}else if(T!=null&&typeof T=="object"){const C=T;if(Array.isArray(C.include)&&C.include.length>0){const D=C.include;A={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const D=C.exclude;A={name:V=>V?D.indexOf(V)===-1:!1}}}if(A){const C=u.emitToChildren(A,"validate",!1);Reflect.apply([].push,v,C)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(C=>{let D=[];return C.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(D=[...D,...V.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=T=>c?.setRule(T),l.setNameValidateRules=(T,v=!1)=>{const A=T[o];if(A&&c?.setRule(A),v){const C={name:D=>Reflect.ownKeys(T).includes(D)};u.emitToChildren(C,"setNameValidateRules",T,!1)}},l.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(t??"")!==-1)&&c?.clear();let v=null;if(T===!0)v={name:"*"};else if(Array.isArray(T)&&T.length>0){const A=T;v={name:C=>C?A.indexOf(C)!==-1:!1}}else if(T!=null&&typeof T=="object"){const A=T;if(Array.isArray(A.include)&&A.include.length>0){const C=A.include;v={name:D=>D?C.indexOf(D)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const C=A.exclude;v={name:D=>D?C.indexOf(D)===-1:!1}}}v&&u.emitToChildren(v,"clearValidate",!1)};const f=new _r(l);l[rn]=f;const g=Et((T="validate")=>{T==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(T=>{f.on(T,v=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(T=>{f.on(T,v=>{g("reset")})}),a.onUnmounted(()=>{u.destroy(),l[Q]=void 0,c.destroy(),l[ye]=void 0,f.destroy(),l[rn]=void 0}),{broadcast:u,validateSchema:c,emitEvent:(T,...v)=>{Reflect.apply(f.emit,f,[T,...v])},onEvent:(T,v)=>{Reflect.apply(f.on,f,[v])},offEvent:(T,v)=>{Reflect.apply(f.off,f,[v])}}}function an(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(c){const f=e.getForSelf("modelValue");return f?f[s]:null}};const u=Xe({},l,r);o.validate=(c=null)=>{const f=[];if(!Array.isArray(c)||c.indexOf(s)!==-1){const O=u?.validate();f.push(O)}let g=null;if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const O=c;g={name:R=>R?O.indexOf(R)!==-1:!1}}else if(c!=null&&typeof c=="object"){const O=c;if(Array.isArray(O.include)&&O.include.length>0){const R=O.include;g={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const R=O.exclude;g={name:T=>T?R.indexOf(T)===-1:!1}}}if(g){const O=i.emitToChildren(g,"validate",!1);Reflect.apply([].push,f,O)}return f.length==1?f[0]:f.length>1?Promise.all(f).then(O=>{let R=[];return O.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(R=[...R,...T.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=c=>u?.setRule(c),o.setNameValidateRules=c=>{const f=c[s];f&&u?.setRule(f)};const i=We(null,n,s,o);return{broadcast:i,validateSchema:u}}const z=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Z(e,t)}px`:"";function Z(e,t=-1){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 l=Number(e.substring(0,r)),o=1;if(Pe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const we="PageStateKey";function ge(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Z(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Z(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Z(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Z(e.right))),t}function Nt(e,t,r={},n=!0,l=-1,o=-1,s=0,u=0){e.headerHeight=Z(r.headerHeight??t.headerHeight),e.headerPadding=ge(r.headerPadding??t.headerPadding),e.footerHeight=Z(r.footerHeight??t.footerHeight),e.footerPadding=ge(r.footerPadding??t.footerPadding),e.contentPadding=ge(r.contentPadding??t.contentPadding),n&&(e.height=Z(r.height??t.height,o)-Z(s,o)-Z(u,o),e.width=Z(r.width??t.width,l))}function ln(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=Z(l.top),n.safeAreaBottom=Z(l.bottom),n.safeAreaLeft=Z(l.left),n.safeAreaRight=Z(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Nt(n,o,t,!0,s,u,i,c);const f=a.reactive(n),g=e.getForParent(we);g&&(n.height=et(e,g),n.width=tt(e,g),a.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{f.height=et(e,g),f.width=tt(e,g)}));const O=!g;return a.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([R,T=-1,v=-1,A=0,C=0])=>{Nt(f,R,t,O,T,v,A,C)}),e.set(we,f),f}function Ze(e){return e.get(we)}function Je(e,t){return t=t??e.get(we),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Qe(e,t){return t=t??e.get(we),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function et(e,t){if(t=t??e.get(we),t){const r=Je(e,t),n=Qe(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function tt(e,t){return t=t??e.get(we),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function zr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Gr(e){return!!e.getForParent(we)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Vt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ae(e,t,r=1,n){const l=Se();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(Vt(i,n))return i}const s=e.value;return Vt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Vt(o,n)?o:l?.get(t)})}function ue(e){return Ae(e,"readonly",0,function(r){return _.toBoolean(r)})}function ce(e){return Ae(e,"disabled",0,function(r){return _.toBoolean(r)})}function U(e,t="modelValue",r){const n=a.toRef(e,t);let l=n.value;typeof r=="function"&&(l=r(n.value));const o=a.ref(l);return a.watch(n,s=>{if(typeof r=="function"){const u=r(s);u!==o.value&&(o.value=u)}else s!==o.value&&(o.value=s)}),o}const on=new Map,rt=new Map;let It=null;function Yr(e){It=e}function sn(e,t,r){if(r){let n=rt.get(r);n||(n=new Map,rt.set(r,n)),n.set(e,t)}else on.set(e,t)}function Te(e,t,r){!r&&It&&(r=It(e)??void 0);let n=null;if(r){let l=rt.get(r);l&&(n=l.get(t))}return n||(n=on.get(t)),n}function Wr(e,t){for(let r in e){const n=e[r];sn(r,n,t)}}function Ur(e){rt.delete(e)}function Xr(){return{top:0,left:0,bottom:0,right:0}}function Zr(){if(Pe){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class Jr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=Ke();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Et(()=>{const u={...r},i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=i,u.height=c,this.initPageLayout(u,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const n=_.extend({},Xr(),t.safeAreaInset),l=_.extend({},Zr(),t.pageLayout);r=r??Ke(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",l),r.set("rootWidth",l.width),r.set("rootHeight",l.height)}setScopeGetter(t){Yr(t)}setAPI(t,r,n){sn(t,r,n)}getAPI(t,r,n){return Te(t,r,n)}batchSetAPI(t,r){Wr(t,r)}clearScopeAPI(t){Ur(t)}getRootDomain(){return Ke()}}const Qr=[h.ElAffix,h.ElAlert,h.ElAutocomplete,h.ElAutoResizer,h.ElAvatar,h.ElBacktop,h.ElBadge,h.ElBreadcrumb,h.ElBreadcrumbItem,h.ElButton,h.ElButtonGroup,h.ElCalendar,h.ElCard,h.ElCarousel,h.ElCarouselItem,h.ElCascader,h.ElCascaderPanel,h.ElCheckTag,h.ElCheckbox,h.ElCheckboxButton,h.ElCheckboxGroup,h.ElCol,h.ElCollapse,h.ElCollapseItem,h.ElCollapseTransition,h.ElColorPicker,h.ElConfigProvider,h.ElContainer,h.ElAside,h.ElFooter,h.ElHeader,h.ElMain,h.ElDatePicker,h.ElDescriptions,h.ElDescriptionsItem,h.ElDialog,h.ElDivider,h.ElDrawer,h.ElDropdown,h.ElDropdownItem,h.ElDropdownMenu,h.ElEmpty,h.ElForm,h.ElFormItem,h.ElIcon,h.ElImage,h.ElImageViewer,h.ElInput,h.ElInputNumber,h.ElLink,h.ElMenu,h.ElSubMenu,h.ElMenuItem,h.ElMenuItemGroup,h.ElPageHeader,h.ElPagination,h.ElPopconfirm,h.ElPopover,h.ElPopper,h.ElProgress,h.ElRadio,h.ElRadioButton,h.ElRadioGroup,h.ElRate,h.ElResult,h.ElRow,h.ElScrollbar,h.ElSelect,h.ElOption,h.ElOptionGroup,h.ElSelectV2,h.ElSkeleton,h.ElSkeletonItem,h.ElSlider,h.ElSpace,h.ElSteps,h.ElStep,h.ElSwitch,h.ElTable,h.ElTableColumn,h.ElTableV2,h.ElTabs,h.ElTabPane,h.ElTag,h.ElTimePicker,h.ElTimeSelect,h.ElTimeline,h.ElTimelineItem,h.ElTooltip,h.ElTransfer,h.ElTree,h.ElTreeSelect,h.ElTreeV2,h.ElUpload],ea=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],ta=e=>{Qr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),ea.forEach(t=>{e.use(t)})};function G(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},a.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,a.defineComponent(r)}}}const te={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},oe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},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:{}},hasBorder:{type:Boolean,default:!0}},un={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},cn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0}},fn=[];for(const e in cn)fn.push(e);function ie(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const na=Symbol.for("InnerPageScopeKey"),ra=(e,t)=>({inheritAttrs:!0,props:{...te,...un,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(r,n){const l=Tt(r.name,r);if(l){const c=ln(l,r);ie({getPageContentHeight:()=>et(l,c),getPageContentWidth:()=>tt(l,c),getPageHeaderHeight:()=>Je(l,c),getPageFooterHeight:()=>Qe(l,c)});const f=a.inject(na,!1);c&&f&&(c.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),u=a.getCurrentInstance(),i=c=>{const f=u?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(c,!0)};return a.watch(()=>r.rules,(c,f)=>{if(!c&&!f)return;const g=a.toRaw(f),O=a.toRaw(c),R=O?Reflect.ownKeys(O):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{R.includes(v)||(O[v]=[])}),i(O)},{deep:!0}),a.onMounted(()=>{if(r.rules){const c=a.toRaw(r.rules);i(c)}}),{classes:o,styles:s}}}),{componentName:aa,create:la,scope:ei}=G("page"),oa=la(ra(aa));function ia(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Ne=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},dn=Ne(oa,[["render",ia]]),sa=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const l=Se(),o=l?Ze(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?Z(r.height):null,i=a.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const w=ge(r.padding??o.footerPadding);return Object.assign(m,w),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(w.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const w=ge(r.padding);Object.assign(m,w)}return m});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const c=a.computed(()=>{const m={};return i.value.height!==null&&i.value.height!==void 0&&(m.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(m.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(m.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(m.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(m.paddingBottom=`${i.value.bottom}px`),m}),f=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),g=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),O=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),R=a.computed(()=>!(i.value.height!==null&&i.value.height!==void 0&&i.value.height<=0)),T=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),v=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),A=a.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),C=a.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=a.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function V(){n.emit("back")}function b(){n.emit("click-title")}function p(){n.emit("click-right")}function $(){n.emit("click-right-text")}return{classes:s,styles:c,mHeaderShow:R,leftStyles:f,rightStyles:g,mLeftShow:O,mTitleShow:T,mRightShow:v,mLeftIcon:A,mTitleIcon:C,mRightIcon:D,handleLeft:V,handleCenter:b,handleRight:p,handleRightText:$}}}),{componentName:ua,create:ca,scope:ti}=G("header-bar"),fa=ca(sa(ua)),da={key:1,class:"fox-header-bar__title"};function ha(e,t,r,n,l,o){const s=a.resolveComponent("fox-ext-icon");return e.mHeaderShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:a.normalizeStyle(e.leftStyles)},[a.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(a.openBlock(),a.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):a.createCommentVNode("",!0),e.leftText?(a.openBlock(),a.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",da,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.titleIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),e.mRightShow?(a.openBlock(),a.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:a.normalizeStyle(e.rightStyles)},[a.renderSlot(e.$slots,"right",{},()=>[e.rightText?(a.openBlock(),a.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},a.toDisplayString(e.rightText),1)):a.createCommentVNode("",!0),e.rightIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0)])],6)):a.createCommentVNode("",!0)}const hn=Ne(fa,[["render",ha]]);function ga(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=Se(),o=l?Ze(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const f=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[f]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?Z(r.height):null,i=a.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const g=ge(r.padding??o.footerPadding);return Object.assign(f,g),u&&(o.footerHeight=u),f.height=o.footerHeight,f.safeAreaBottom=o.safeAreaBottom,f.safeAreaBottom&&(f.height=f.height+o.safeAreaBottom,f.bottom=f.safeAreaBottom+(g.bottom??0)),f}if(u&&(f.height=u),r.padding){const g=ge(r.padding);Object.assign(f,g)}return f});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const c=a.computed(()=>{const f={};return i.value.height!==null&&i.value.height!==void 0&&(f.height=z(i.value.height)),i.value.top!==null&&i.value.top!==void 0&&(f.paddingTop=z(i.value.top)),i.value.left!==null&&i.value.left!==void 0&&(f.paddingLeft=z(i.value.left)),i.value.right!==null&&i.value.right!==void 0&&(f.paddingRight=z(i.value.right)),i.value.bottom!==null&&i.value.bottom!==void 0&&(f.paddingBottom=z(i.value.bottom)),f});return{classes:s,styles:c}}}}const{componentName:ma,create:ya,scope:ni}=G("footer-bar"),pa=ya(ga(ma));function ba(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const gn=Ne(pa,[["render",ba]]);function Sa(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Se(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const u=Ze(n);if(u){if(r.padding){const g=ge(r.padding);Object.assign(u.contentPadding,g)}const i=Je(n,u),c=Qe(n,u);let f="";if(u.contentHeight?f=`${u.contentHeight}`:f=`${u.height}px`,u.contentPadding,s.height=f,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||i>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;s.paddingTop=`${i+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||c>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;s.paddingBottom=`${c+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(s.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(s.paddingRight=`${u.contentPadding.right}px`),s}}if(r.padding){const u=ge(r.padding);u.left!==null&&u.left!==void 0&&(s.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(s.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(s.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(s.paddingBottom=`${u.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:wa,create:$a,scope:ri}=G("content"),va=$a(Sa(wa));function Ea(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const mn=Ne(va,[["render",Ea]]),at="GroupStateKey",yn=Symbol.for("GroupScopeKey");function lt(){return a.inject(yn,!1)}function ot(e=!0){a.provide(yn,e)}function Ca(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0});return e.set(at,o),o}function pn(e,t,r=-1,n=-1,l=!1){const o=e.get(at);if(!o)return;const s=e.get("groupLayout")??{};r===-1&&(r=s.column??1),n===-1&&(n=s.gutter??0);const u=s.minItemWidth??-1,i=()=>{const c=t===""||t===-1,f=Z(t);let g=_.toNumber(r);const O=Z(n);if(!c){let v=(f-(g-1)*O)/g;for(;u!==-1&&g>1&&v<u;)g--,v=(f-(g-1)*O)/g}let R=!1;const T=o.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,R=!0),T.value.gutter!==O&&(T.value.gutter=O,R=!0),R&&a.triggerRef(T)};if(l)i();else{const c=++o.passport;setTimeout(()=>{c===o.passport&&i()},50)}}function it(e,t=!1){let r;return t?r=e.getForParent(at):r=e.get(at),r.layout}function $e(e,t=1){return t==="stretch"?-1:(t=_.toNumber(t),t===-1?100:100*t/e)}function Oa(e){return e===window}const st=e=>{const t=a.unref(e);if(Oa(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ze=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Ta=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},Na=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=_.toNumber(e.props.offset);return t<0?0:t},Va=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},Ia=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=_.toNumber(e.props.foxSubItemCount);return t<0?1:t};function xa(e,t){return{props:{...te,...un,...cn},setup(r,n){const l=Tt(r.name,r,fn),o=Ca(l,{type:r.type}),s=lt();ot(!0);const u=a.getCurrentInstance(),i=b=>{const p=u?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(b,!0)};a.watch(()=>r.rules,(b,p)=>{if(!b&&!p)return;const $=a.toRaw(p),m=a.toRaw(b),w=m?Reflect.ownKeys(m):[];($?Reflect.ownKeys($):[]).forEach(S=>{w.includes(S)||(m[S]=[])}),i(m)},{deep:!0}),a.onMounted(()=>{if(r.rules){const b=a.toRaw(r.rules);i(b)}});const c=e,f=a.computed(()=>{const b={};if(s&&l){const p=it(l,!0);if(p.value.type!=="flex")return{};if(r.width){const w=z(r.width);b.width=w}else{const w=$e(p.value.column,r.span);w>0&&(b.width=`${w}%`)}if(r.height){const w=z(r.height);b.height=w}const $=$e(p.value.column,r.offset);$>0&&(b["margin-left"]=`${$}%`);const m=p.value.gutter/2;m>0&&(b["padding-left"]=`${m}px`,b["padding-right"]=`${m}px`)}else{if(r.width){const p=z(r.width);b.width=p}if(r.height){const p=z(r.height);b.height=p}}return b}),g=a.computed(()=>r.type==="flex"?{[`${ze("",r.type)}`]:!0,[`${ze("justify",r.justify)}`]:!0,[`${ze("align",r.align)}`]:!0,[`${ze("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:{[`${ze("",r.type)}`]:!0,[`${c}__gutter`]:!0}),O=a.toRef(r,"title"),R=a.toRef(r,"gutter"),T=a.toRef(r,"column"),v=a.computed(()=>s?!0:r.isWrap),A=a.ref([]),C=b=>{A.value.push(b)},D=a.ref(-1);if(pn(l,D.value,T.value,R.value,!0),r.autoLayout){a.watch([D,T,R],([p,$,m])=>{pn(l,p,$,m,!1)});let b=null;a.onMounted(()=>{if(Pe&&A.value&&A.value.length>0){const p=A.value[0];D.value=st(p).width,window.ResizeObserver&&(b=new window.ResizeObserver(()=>{const $=st(p).width;$>0&&$!==D.value&&(D.value=$)}),b.observe(p))}}),a.onUnmounted(()=>{b?.disconnect()})}const V=(b,p,$,m)=>{const w={...g.value};return p===0&&(w[`${c}__first`]=!0),$>=m-1&&(w[`${c}__last`]=!0),a.h("div",{ref:C,key:`${p}`,class:w},b)};return()=>{const b=[];let p=0;if(n.slots.title){const j={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},S=a.h("div",j,[n.slots.title()]);b.push(S)}else if(O.value){const j={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},S=[];if(r.showMark){const x=a.h("div",{class:{[`${c}__title-mark`]:!0}});S.push(x)}const M=a.h("div",{class:{[`${c}__title-text`]:!0}},[O.value]);S.push(M);const F=a.h("div",j,S);b.push(F)}const $=n.slots.default?n.slots.default():[];let m=[],w=0;if(r.type==="flex"){for(let j=0;j<$.length;j++){const S=$[j];if(Va(S)==="fragment"){let E=Ia(S);E>o.layout.value.column?E=o.layout.value.column:E<=0&&(E=1);const N=w+E;if(N>o.layout.value.column){const I=V([...m],p++,j-1,$.length);b.push(I),w=E,m=[S]}else m.push(S),w=N;continue}const F=Ta(S),x=Na(S);if(F==="stretch"){if(w<o.layout.value.column){m.push(S);const E=V([...m],p++,j,$.length);b.push(E)}else{const E=V([...m],p++,j-1,$.length);b.push(E);const N=V([S],p++,j,$.length);b.push(N)}w=0,m=[];continue}let k=_.toNumber(F);if(k===-1){if(m.length>0){const N=V([...m],p++,j-1,$.length);b.push(N)}const E=V([S],p++,j,$.length);b.push(E),w=0,m=[];continue}k>o.layout.value.column?k=o.layout.value.column:k<=0&&(k=1);const y=w+k+x;if(y>o.layout.value.column){const E=V([...m],p++,j-1,$.length);b.push(E),w=k+x,m=[S]}else m.push(S),w=y}if(m.length>0){const j=V([...m],p++,$.length,$.length);b.push(j)}}else for(let j=0;j<$.length;j++){const S=$[j],M=V([S],p++,j,$.length);b.push(M)}return v.value?a.h("div",{class:{[`${c}`]:!0},style:f.value},[b]):b}}}}const{componentName:Aa,create:Ra,scope:ai}=G("group"),bn=Ra(xa(Aa)),Sn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ja,create:ka}=G("price"),Da=ka({props:{...Sn},setup(e){const t=a.computed(()=>({[ja]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>Le(e.price)==0?"":$t(e.price,e.decimalLength,!0,_.toNumber(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(u+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Ma=["innerHTML"],qa=["innerHTML"];function Ba(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("view",{class:a.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ma)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--${e.size}`)},a.toDisplayString(e.intText),3),e.decimalText.length!=0?(a.openBlock(),a.createElementBlock("view",{key:1,class:a.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--decimal-${e.size}`)},a.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(a.openBlock(),a.createElementBlock("view",{key:2,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qa)):a.createCommentVNode("",!0)],2)}const ut=Ne(Da,[["render",Ba]]),{componentName:xt,create:Fa}=G("hint-text"),Pa=Fa({components:{[ut.name]:ut},props:{...Sn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=a.computed(()=>({[xt]:!0})),o=a.computed(()=>({left:z(e.startPoint.x),top:z(e.startPoint.y-e.height-10-4),height:z(e.height),width:z(e.width)})),s=a.computed(()=>({[`${xt}__content`]:!0})),u=a.computed(()=>({})),i=a.computed(()=>({[`${xt}__arrow`]:!0})),c=a.computed(()=>({top:z(e.height)}));return{classes:l,styles:o,textClasses:s,textStyles:u,arrowClasses:i,arrowStyles:c}}}),La={key:1,class:"text"};function _a(e,t,r,n,l,o){const s=a.resolveComponent("fox-price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.textClasses),style:a.normalizeStyle(e.textStyles)},[e.type=="number"?(a.openBlock(),a.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",La,a.toDisplayString(e.message),1))],6),a.createElementVNode("div",{class:a.normalizeClass(e.arrowClasses),style:a.normalizeStyle(e.arrowStyles)},null,6)],6),[[a.vShow,e.visible]])]),_:1})}const ct=Ne(Pa,[["render",_a]]);class wn{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function Ha(e){return e===window}const $n=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Ha(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)r+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0;for(l=t;l!==document;)s+=l.scrollTop,o+=l.scrollLeft,l=l.parentNode;return r-=o,n-=s,{x:r,y:n}},At={},Ka=new wn,Re=new Map,Rt=e=>{if(e){const t=document.getElementById(e);Re.delete(e),t&&document.body.removeChild(t)}else{for(const t of Re.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Re.clear()}},za=e=>{const t=document.getElementById(e.id);if(t){const r=Re.get(e.id);r?e={...At,...r,...e}:e={...At,...e};const n=a.createVNode(ct,e);return a.render(n,t),e.id}},Ga=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return za(e)}else t=`hinttext_${Ka.get()}`;e={...At,...e},e.id=t,Re.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(ct,e);return a.render(n,r),document.body.appendChild(r),t},Ya=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),Ya(t);const l=$n(e),o={x:l.x,y:l.y},s=r.width??st(e).width;return Ga({...r,message:t,startPoint:o,width:s})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:vn,create:Wa}=G("item"),Ua=Wa({inheritAttrs:!0,props:{...te,...oe},setup(e,t){re({componentName:vn,validate:!1},e.prop??e.name);const r=Se(),n=lt();ot(!1);const l=vn,o=a.computed(()=>({[l]:!0,[`${l}__gutter`]:!0,[`${l}__stretch`]:e.span==="stretch",[`${l}__input--border`]:e.hasBorder,"is-error":!!w.value,"is-warn":!!$.value,"is-info":!!b.value})),s=a.computed(()=>{const I={};if(n&&r){const q=it(r,!1);if(q.value.type!=="flex")return e.width&&(I.width=z(e.width)),I;if(e.width)I.width=z(e.width);else{const L=$e(q.value.column,e.span);L>0&&(I.width=`${L}%`)}const B=$e(q.value.column,e.offset);B>0&&(I["margin-left"]=`${B}%`);const P=q.value.gutter/2;P>0&&(I["padding-left"]=`${P}px`,I["padding-right"]=`${P}px`)}else e.width&&(I.width=z(e.width));return I}),u=a.ref(null),i=a.computed({get:()=>u.value??_.toBoolean(e.isRequired),set:I=>{u.value=I}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=Ae(a.toRef(e,"labelPosition"),"labelPosition",nt.Near),g=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),O=a.computed(()=>({[`${l}__main`]:!0,[`${l}__main--${g.value}`]:!0})),R=a.computed(()=>({label:!0,[`label--${g.value}`]:!0})),T=Ae(a.toRef(e,"labelWidth"),"labelWidth",nt.Near),v=a.computed(()=>T&&T.value?{width:z(T.value)}:{}),A=a.computed(()=>({["label--string"]:!0,["label--required"]:i.value})),C=a.computed(()=>({content:!0,[e.contentClass]:!0})),D=a.computed(()=>({...e.contentStyle})),V=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ie({setRequired(I){i.value=I},setErrorTip(I){V.errorTip=I},setErrorIcon(I){V.errorIcon=I},setWarnTip(I){V.warnTip=I},setWarnIcon(I){V.warnIcon=I},setInfoTip(I){V.infoTip=I},setInfoIcon(I){V.infoIcon=I}});const b=a.computed(()=>e.infoTip||V.infoTip),p=a.computed(()=>e.infoIcon||V.infoIcon),$=a.computed(()=>e.warnTip||V.warnTip),m=a.computed(()=>e.warnIcon||V.warnIcon),w=a.computed(()=>e.errorTip||V.errorTip),j=a.computed(()=>e.errorIcon||V.errorIcon),S=a.computed(()=>w.value?"error":$.value?"warn":b.value?"info":""),M=a.computed(()=>S.value.length>0),F=a.computed(()=>S.value==="error"?w.value:S.value==="warn"?$.value:S.value==="info"?b.value:""),x=a.computed(()=>S.value==="error"?j.value:S.value==="warn"?m.value:S.value==="info"?p.value:null),k=a.computed(()=>{let I={[`${l}__tip`]:!0,[`${l}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?I[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?I[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(I[`${e.infoClass}`]=!0),I}),y=a.computed(()=>{let I={};return f&&f.value==="top"?I["padding-left"]="0px":T&&T.value&&(I["padding-left"]=z(T.value)),I}),E=a.ref();let N="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([I,q,B,P])=>{!E.value||(I&&!J(q)?N?ft.show(E.value,q,{...P,id:N,type:B}):N=ft.show(E.value,q,{...P,type:B}):ft.hide(N))}),{classes:o,styles:s,mainClasses:O,hasLabel:c,labelClasses:R,labelStyles:v,labelStringClasses:A,contentClasses:C,contentStyles:D,contentRef:E,hasTip:M,mTip:F,mIcon:x,tipClasses:k,tipStyles:y}}}),Xa={key:0,class:"fox-item__tip-icon"},Za={class:"fox-item__tip-text"};function Ja(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.mainClasses)},[e.hasLabel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.labelClasses),style:a.normalizeStyle(e.labelStyles)},[a.createElementVNode("div",{class:a.normalizeClass(e.labelStringClasses)},[a.renderSlot(e.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])],2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref:"contentRef",class:a.normalizeClass(e.contentClasses),style:a.normalizeStyle(e.contentStyles)},[a.renderSlot(e.$slots,"prepend"),a.renderSlot(e.$slots,"default"),a.renderSlot(e.$slots,"append")],6)],2),a.createVNode(a.Transition,{name:"fox-item__animate"},{default:a.withCtx(()=>[e.hasTip?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.tipClasses),style:a.normalizeStyle(e.tipStyles)},[e.mIcon?(a.openBlock(),a.createElementBlock("div",Xa,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Za,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const ae=Ne(Ua,[["render",Ja]]);function Qa(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch"})),s=Se(),u=lt();ot(!1);const i=a.computed(()=>{const c={};if(u&&s){const f=it(s,!1);if(f.value.type!=="flex")return r.width&&(c.width=z(r.width)),c;if(r.width)c.width=z(r.width);else{const R=$e(f.value.column,r.span);R>0&&(c.width=`${R}%`)}const g=$e(f.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const O=f.value.gutter/2;O>0&&(c["padding-left"]=`${O}px`,c["padding-right"]=`${O}px`)}else r.width&&(c.width=z(r.width));return c});return()=>{const c={class:o.value,style:i.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:el,create:tl,scope:li}=G("slot-item"),En=tl(Qa(el));function nl(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),s=Se(),u=lt();ot(!1);const i=a.computed(()=>{const f={};if(u&&s){const g=it(s,!1);if(g.value.type!=="flex")return r.width&&(f.width=z(r.width)),f;if(r.width)f.width=z(r.width);else{const T=$e(g.value.column,r.span);T>0&&(f.width=`${T}%`)}const O=$e(g.value.column,r.offset);O>0&&(f["margin-left"]=`${O}%`);const R=g.value.gutter/2;R>0&&(f["padding-left"]=`${R}px`,f["padding-right"]=`${R}px`)}else r.width&&(f.width=z(r.width));return f}),c=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const f=[];if(n.slots.default){const T=n.slots.default();if(r.divide)for(let v=0;v<T.length;v++){if(v>0){const A=a.h("div",{class:{[`${l}__divide`]:!0}});f.push(A)}f.push(T[v])}else Reflect.apply([].push,f,T)}const g={class:c.value},O=a.h("div",g,f),R={class:o.value,style:i.value};return a.h("div",R,[O])}}}}const{componentName:rl,create:al,scope:oi}=G("row-item"),Cn=al(nl(rl)),On={modelValue:{type:[String,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}};function ll(e,t,r){return{props:{...te,...oe,...On},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=m=>{g.value=m,o("update:modelValue",m),o("input",m)},v=m=>{o("change",m)};let A=U(n,"hintText"),C=a.ref(!1);const D=m=>{let j=m.target.value;i.value=!0,J(A.value)||(C.value=!0),o("focus",j,m)},V=m=>{setTimeout(()=>{C.value&&(C.value=!1),i.value=!1},0);let j=m.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),o("blur",j,m)},b=()=>{o("clear","")},p=a.computed(()=>Le(n.unit)>0),$=a.ref();return ie({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const w={...l.attrs,ref:$,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:b,onChange:v,onInput:T,onFocus:D,onBlur:V},j={};l.slots.prepend&&(j.prepend=l.slots.prepend),l.slots.append&&(j.append=l.slots.append),l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.suffix?j.suffix=l.slots.suffix:p.value&&(j.suffix=()=>[n.unit]);const S=[],M=a.h(h.ElInput,w,j);S.push(M);const F={default:()=>S};if(l.slots.default){const E=l.slots.default();F.label=()=>E}const k={...le(n,On),hintText:A.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,k,F)}}}}const{componentName:ol,create:il,scope:sl}=G("input-item"),Tn=il(ll(ol,sl,ae));function Ve(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Nn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class ul{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function cl(){const e=a.getCurrentInstance();return new ul(e.proxy)}function Vn(e,t,r){const n=Ve(e,t),l=Ve(e,r);if(n!==l)return!1;const o=je(e,t),s=je(e,r);return o===s}function In(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const u=Nn(e,s);if(Array.isArray(u)&&u.length>0){const i=In(e,o,r,u)??[];Reflect.apply([].push,l,i)}else{let i=!1;if(r==="text")i=Ve(e,s)===o;else if(r==="item")i=Vn(e,s,o);else{let c=je(e,s);c==null&&(c=Ve(e,s)),i=c===o}if(i){l.push(s);break}}}}),l}function fl(e){return{text:e,value:e}}const xn={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function dl(e,t,r){return{props:{...te,...oe,...xn},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),c=a.ref([]),f=(y,E,N,I=!0)=>{const q=In(n,y,E,N);if(q===null){if(c.value===null||c.value.length===0)return;i.value=null,c.value=[],I&&(o("update:modelValue",null),o("change",null));return}let B=!0;if(q.length!==c.value.length)B=!1;else for(let P=0;P<q.length;P++){const L=q[P],H=c.value[P];if(!Vn(n,L,H)){B=!1;break}}if(!B){c.value=q;let P=[],L=[];q.forEach(Y=>{P.push(je(n,Y)),n.valueType==="text"?L.push(Ve(n,Y)):n.valueType==="item"?L.push(Y):L.push(je(n,Y))});let H;n.multiple?(i.value=P,H=a.toRaw(L)):(i.value=P[0]??"",H=a.toRaw(L[0]??"")),I&&(o("update:modelValue",H),o("change",H))}},g=a.ref([]),O=cl();a.watch([()=>n.source,()=>n.params],async([y,E])=>{if(y){const N=await O.load("select",y,E);if(N.length>0)if(typeof N[0]=="string"){let B=N.map(P=>fl(P));g.value=B}else g.value=N}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([y,E])=>{f(E,n.valueType,y,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async y=>{if(y!=null){T.value=!0;try{const E=await n.remoteMethod(y);g.value=E}catch(E){console.error(E)}T.value=!1}});const v=a.ref(!1),A=ce(a.computed(()=>n.disabled)),C=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=y=>{n.allowCreate?(o("update:modelValue",y),o("change",y),i.value=y):f(y,"value",g.value,!0)};let p=U(n,"hintText"),$=a.ref(!1);const m=y=>{let N=y.target.value;v.value=!0,J(p.value)||($.value=!0),o("focus",N,y)},w=y=>{setTimeout(()=>{$.value&&($.value=!1),v.value=!1},0);let N=y.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),S.value?setTimeout(()=>{o("blur",N,y)},50):o("blur",N,y)},j=()=>{o("clear","")},S=a.ref(!1),M=y=>{S.value=y,o("visible-change",y)},F=y=>{o("remove-tag",y)},x=(y,E)=>{const N=[];return y.forEach((I,q)=>{const B=Nn(n,I);if(Array.isArray(B)&&B.length>0){const P=x(B,E),L=Ve(n,I),Y={key:`${L}_${q}`,label:L};N.push(a.h(h.ElOptionGroup,Y,{default:()=>P}))}else{const P=je(n,I),L=Ve(n,I),H=_.toBoolean(I.disabled),W={key:`${P}_${q}`,label:L,disabled:H,value:P};typeof E=="function"?N.push(a.h(h.ElOption,W,{default:E})):N.push(a.h(h.ElOption,W))}}),N},k=a.ref();return ie({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const E={...l.attrs,ref:k,class:V.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:A.value||C.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:j,onChange:b,onFocus:m,onBlur:w,onVisibleChange:M,onRemoveTag:F};typeof R=="function"&&(E["remote-method"]=R,E.loading=T.value);const N={};l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.empty&&(N.empty=l.slots.empty),N.default=()=>x(g.value,l.slots.option);const I=[],q=a.h(h.ElSelect,E,N);I.push(q);const B={default:()=>I};if(l.slots.default){const Y=l.slots.default();B.label=()=>Y}const L={...le(n,xn),hintText:p.value,hintVisible:$.value,prop:`${n.prop??n.name}_item`};return a.h(r,L,B)}}}}const{componentName:hl,create:gl,scope:ml}=G("select-item"),An=gl(dl(hl,ml,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yl(e,t,r){return{props:{...te,...oe,...Rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=w=>{g.value=w,o("update:modelValue",w),o("change",w)};let v=U(n,"hintText"),A=a.ref(!1);const C=w=>{let S=w.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",S,w)},D=w=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let S=w.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,w)},V=()=>{o("clear","")},b=w=>{o("calendar-change",w)},p=(w,j,S)=>{o("panel-change",w,j,S)},$=w=>{o("visible-change",w)},m=a.ref();return ie({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const j={...l.attrs,ref:m,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D,onCalendarChange:b,onPanelChange:p,onVisibleChange:$},S={};l.slots["range-separator"]&&(S["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(S.default=l.slots.cell);const M=[],F=a.h(h.ElDatePicker,j,S);M.push(F);const x={default:()=>M};if(l.slots.default){const N=l.slots.default();x.label=()=>N}const y={...le(n,Rn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,y,x)}}}}const{componentName:pl,create:bl,scope:Sl}=G("date-item"),jn=bl(yl(pl,Sl,ae)),kn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function wl(e,t,r){return{props:{...te,...oe,...kn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=$=>{g.value=$,o("update:modelValue",$),o("change",$)};let v=U(n,"hintText"),A=a.ref(!1);const C=$=>{let w=$.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",w,$)},D=$=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let w=$.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,$)},V=()=>{o("clear","")},b=$=>{o("visible-change",$)},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const m={...l.attrs,ref:p,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D,onVisibleChange:b},w={},j=[],S=a.h(h.ElTimePicker,m,w);j.push(S);const M={default:()=>j};if(l.slots.default){const y=l.slots.default();M.label=()=>y}const x={...le(n,kn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,x,M)}}}}const{componentName:$l,create:vl,scope:El}=G("time-item"),Dn=vl(wl($l,El,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Cl(e,t,r){return{props:{...te,...oe,...Mn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=p=>{g.value=p,o("update:modelValue",p),o("change",p)};let v=U(n,"hintText"),A=a.ref(!1);const C=p=>{let m=p.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",m,p)},D=p=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let m=p.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,p)},V=()=>{o("clear","")},b=a.ref();return ie({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()}}),()=>{const $={...l.attrs,ref:b,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D},m={},w=[],j=a.h(h.ElTimeSelect,$,m);w.push(j);const S={default:()=>w};if(l.slots.default){const k=l.slots.default();S.label=()=>k}const F={...le(n,Mn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,F,S)}}}}const{componentName:Ol,create:Tl,scope:Nl}=G("time-select-item"),qn=Tl(Cl(Ol,Nl,ae));function Bn(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let l=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function Fn(e,t,r=20){if(typeof t=="string"&&(t=_.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ht(`${e}`,`${t}`);return Bn(n)}else{let n=St(`${e}`,Kt(`${t}`),20);return Bn(n)}}function Vl(e,t=-1,r=!1,n=3,l=","){return $t(e,t,r,n,l)}function Pn(e,t,r,n,l=!0){if(e=="")return"";if(e=zt(e),t=_.toNumber(t),t==1)return e;if(n)e=Fn(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(_.toNumber(r)+2,"0"):e=St(e,1,_.toNumber(r)));else{let o=-1*t;e=Fn(e,o)}return e}function Ln(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=_.toBoolean(t.minInclude),l=wt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=_.toBoolean(t.maxInclude),l=wt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const _n={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Il(e,t,r){return{props:{...te,...oe,..._n},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref(!1),u=ce(a.computed(()=>n.disabled)),i=ue(a.computed(()=>n.readonly)),c=U(n,"modelValue"),f=a.ref("");a.watch([()=>c.value,()=>n.rates,()=>n.precision],([x,k,y])=>{if(J(x))return"";const E=Pn(x,k,y,!1);f.value!==E&&(f.value=E)},{immediate:!0});const g=a.computed(()=>{let x="";return s.value&&(x=f.value),x}),{t:O}=he.useFoxI18n(t),R=a.computed(()=>{let x=n.placeholder??"";return!s.value&&!J(f.value)?x=Vl(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):x=O(["placeholder",x]),x}),T=e,v=a.computed(()=>({[T]:!0,[`${T}__disabled`]:u.value,[`${T}__placeholder`]:f.value.length>0})),A=Ae(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>s.value?{textAlign:"left"}:{textAlign:A.value??"right"});const C=a.ref(""),D=a.computed(()=>{let x=C.value;return J(x)&&(x=n.errorTip??""),x}),V=a.ref(""),b=a.ref(!1),p=(x,k)=>{if(x=`${x}`,J(x)){f.value="",c.value="",k.forEach(y=>{o(y,"")}),_.toBoolean(n.showTip)&&b.value&&(b.value=!1);return}if(x.length>=2){let y=x;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){a.triggerRef(f);return}}if(x!="-"){if(!Yt(x)){a.triggerRef(f);return}if(n.integerLength!=-1&&Wt(x)>Number(n.integerLength)){a.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(x)>Number(n.decimalLength)){a.triggerRef(f);return}let y=Ln(x,n);if(y.maxValid===!1){C.value=y.message,a.triggerRef(f);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(f);return}V.value=x,_.toBoolean(n.showTip)&&(b.value=x.length>0),f.value=x,c.value=Pn(x,n.rates,n.precision,!0),k.forEach(y=>{o(y,c.value)})},$=x=>{p(x,["update:modelValue","input"])},m=x=>{p(x,["update:modelValue","change"])},w=x=>{if(s.value=!0,_.toBoolean(n.showTip)){let k=f.value;J(k)&&(k=n.hintText),J(k)||(V.value=k,b.value=!0)}C.value="",o("focus",c.value,x)},j=x=>{if(setTimeout(()=>{s.value=!1,_.toBoolean(n.showTip)&&b.value===!0&&(b.value=!1)},0),!J(f.value)){let k=Ln(f.value,n);if(k.minValid===!1||k.maxValid){C.value=k.message;return}}o("update:modelValue",c.value,x),o("blur",c.value,x)},S=()=>{o("clear","")},M=a.computed(()=>Le(n.unit)>0),F=a.ref();return ie({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const k={...l.attrs,ref:F,class:v.value,type:"digit",maxlength:n.maxLength,placeholder:R.value,clearable:n.clearable,disabled:u.value,readonly:i.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:S,onInput:$,onChange:m,onFocus:w,onBlur:j},y={};l.slots.prepend&&(y.prepend=l.slots.prepend),l.slots.append&&(y.append=l.slots.append),l.slots.prefix&&(y.prefix=l.slots.prefix),l.slots.suffix?y.suffix=l.slots.suffix:M.value&&(y.suffix=()=>[n.unit]);const E=[],N=a.h(h.ElInput,k,y);E.push(N);const I={default:()=>E};if(l.slots.default){const L=l.slots.default();I.label=()=>L}const B={...le(n,_n),errorTip:D.value,hintText:V.value,hintVisible:b.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,B,I)}}}}const{componentName:xl,create:Al,scope:Rl}=G("money-item"),Hn=Al(Il(xl,Rl,ae)),Kn={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 jl(e,t,r){return{props:{...te,...oe,...Kn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0,[`${O}__append`]:$.value})),T=a.computed(()=>({[`${O}__unit`]:!0})),v=w=>{g.value=w,o("update:modelValue",w),o("input",w)},A=w=>{o("change",w)};let C=U(n,"hintText"),D=a.ref(!1);const V=w=>{let S=w.target.value;i.value=!0,J(C.value)||(D.value=!0),o("focus",S,w)},b=w=>{setTimeout(()=>{D.value&&(D.value=!1),i.value=!1},0);let S=w.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,w)},p=()=>{o("clear","")},$=a.computed(()=>Le(n.unit)>0),m=a.ref();return ie({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const j={...l.attrs,ref:m,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:p,onChange:A,onInput:v,onFocus:V,onBlur:b},S={},M=[],F=a.h(h.ElInputNumber,j,S);M.push(F);const x={default:()=>M};if(l.slots.default){const N=l.slots.default();x.label=()=>N}const y={...le(n,Kn),hintText:C.value,hintVisible:D.value,prop:`${n.prop}_item`};if(l.slots.append)x.append=l.slots.append;else if($.value){const N={class:T.value},I=a.h("div",N,[n.unit]);x.append=()=>I}return a.h(r,y,x)}}}}const{componentName:kl,create:Dl,scope:Ml}=G("input-number-item"),zn=Dl(jl(kl,Ml,ae));function ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ie(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ql(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Bl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Fl(){const e=a.getCurrentInstance();return new Bl(e.proxy)}function jt(e,t,r){const n=ke(e,t),l=ke(e,r);if(n!==l)return!1;const o=Ie(e,t),s=Ie(e,r);return o===s}function Gn(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const i=Gn(e,u,r,n);l.push(i)}else{let i=!1;for(let c of o){if(r==="text")i=ke(e,c)===u;else if(r==="item")i=jt(e,c,u);else{let f=Ie(e,c);f==null&&(f=ke(e,c)),i=f===u}if(i){l.push(c),o=ql(e,c);break}}if(!i)break}}return l}function Pl(e){return{text:e,value:e}}const Yn={modelValue:{type:[Array,String],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}};function Ll(e,t,r){return{props:{...te,...oe,...Yn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),c=a.ref([]),f=(E,N,I,q=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===E)return;i.value=E;const L=a.toRaw(E);q&&(o("update:modelValue",L),o("change",L))}const B=Gn(n,E,N,I);if(B===null){if(c.value.length===0||c.value===null)return;c.value=[],i.value=null,q&&(o("update:modelValue",null),o("change",null));return}let P=!0;if(B.length!==c.value.length)P=!1;else for(let L=0;L<B.length;L++){const H=B[L],Y=c.value[L];if(Array.isArray(H)){if(!Array.isArray(Y)||H.length!==Y.length)P=!1;else for(let W=0;W<H.length;W++)if(!jt(n,H[W],Y[W])){P=!1;break}}else jt(n,H,Y)||(P=!1);if(!P)break}if(!P){c.value=B;let L=[],H=[];B.forEach(W=>{if(Array.isArray(W)){let me=[],fe=[];for(let se of W)me.push(Ie(n,se)),n.valueType==="text"?fe.push(ke(n,se)):n.valueType==="item"?fe.push(se):fe.push(Ie(n,se));L.push(me),H.push(fe)}else L.push(Ie(n,W)),n.valueType==="text"?H.push(ke(n,W)):n.valueType==="item"?H.push(W):H.push(Ie(n,W))}),i.value=L;const Y=a.toRaw(H);q&&(o("update:modelValue",Y),o("change",Y))}},g=a.ref([]),O=Fl();a.watch([()=>n.source,()=>n.params],async([E,N])=>{if(E){const I=await O.load("cascader",E,N);if(I.length>0)if(typeof I[0]=="string"){let P=I.map(L=>Pl(L));g.value=P}else g.value=I}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([E,N])=>{f(N,n.valueType,E,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async E=>{if(E!=null){T.value=!0;try{const N=await n.remoteMethod(E);g.value=N}catch(N){console.error(N)}T.value=!1}});const v=a.ref(!1),A=ce(a.computed(()=>n.disabled)),C=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=a.computed(()=>{let E={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(E.multiple=!0),n.props&&Object.assign(E,n.props),E}),p=E=>{n.allowCreate?(o("update:modelValue",E),o("change",E),i.value=E):f(E,"value",g.value,!0)};let $=U(n,"hintText"),m=a.ref(!1);const w=E=>{let I=E.target.value;v.value=!0,J($.value)||(m.value=!0),o("focus",I,E)},j=E=>{setTimeout(()=>{m.value&&(m.value=!1),v.value=!1},0);let I=E.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),M.value?setTimeout(()=>{o("blur",I,E)},50):o("blur",I,E)},S=()=>{o("clear","")},M=a.ref(!1),F=E=>{M.value=E,o("visible-change",E)},x=E=>{o("remove-tag",E)},k=E=>{o("expand-change",E)},y=a.ref();return ie({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},getCheckedNodes:()=>y?.value.getCheckedNodes()}),()=>{const N={...l.attrs,ref:y,class:V.value,props:b.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:A.value||C.value,options:g.value,modelValue:i.value,onClear:S,onChange:p,onFocus:w,onBlur:j,onVisibleChange:F,onRemoveTag:x,expandChange:k};typeof R=="function"&&(N["remote-method"]=R,N.loading=T.value);const I={};l.slots.option&&(I.default=l.slots.option),l.slots.empty&&(I.empty=l.slots.empty);const q=[],B=a.h(h.ElCascader,N,I);q.push(B);const P={default:()=>q};if(l.slots.default){const W=l.slots.default();P.label=()=>W}const H={...le(n,Yn),hintText:$.value,hintVisible:m.value,prop:`${n.prop??n.name}_item`};return a.h(r,H,P)}}}}const{componentName:_l,create:Hl,scope:Kl}=G("cascader-item"),Wn=Hl(Ll(_l,Kl,ae)),Un={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function zl(e,t,r){return{props:{...te,...oe,...Un},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=$=>{g.value=$,o("update:modelValue",$),o("input",$)},v=$=>{o("change",$)};let A=U(n,"hintText"),C=a.ref(!1);const D=$=>{let w=$.target.value;i.value=!0,J(A.value)||(C.value=!0),o("focus",w,$)},V=$=>{setTimeout(()=>{C.value&&(C.value=!1),i.value=!1},0);let w=$.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,$)},b=()=>{o("clear","")},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const m={...l.attrs,ref:p,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,onClear:b,onChange:v,onInput:T,onFocus:D,onBlur:V},w={};l.slots.prepend&&(w.prepend=l.slots.prepend),l.slots.append&&(w.append=l.slots.append),l.slots.prefix&&(w.prefix=l.slots.prefix),l.slots.suffix&&(w.suffix=l.slots.suffix),l.slots.option&&(w.default=l.slots.option);const j=[],S=a.h(h.ElAutocomplete,m,w);j.push(S);const M={default:()=>j};if(l.slots.default){const y=l.slots.default();M.label=()=>y}const x={...le(n,Un),hintText:A.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,x,M)}}}}const{componentName:Gl,create:Yl,scope:Wl}=G("autocomplete-item"),Xn=Yl(zl(Gl,Wl,ae));function Ul(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let c=t[i],f=o[i];const g=c.find(O=>O[n]===f);if(!g)break;s.push(g[r])}else{let i=t;for(let c=0;i&&c<o.length;c++){let f=o[c],g=i.find(O=>O[n]===f);if(!g)break;s.push(g[r]),i=g[l]}}return s}class Xl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Zl(){const e=a.getCurrentInstance();return new Xl(e.proxy)}const Zn={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Jl(e,t){return{props:{...Zn},setup(r,{attrs:n}){const l=Zl(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([i,c])=>{o.value=await l.load(r.sourceType,i,c)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let i=Ul(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?"":i.length===1?i[0]:i.join(r.separator)}),u=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const i={...n};return r.resolveTag?a.h(u,i,{default:()=>s.value}):a.h(u,i,s.value)}}}}const{componentName:ii,create:Ql,scope:si}=G("mapping"),kt=Ql(Jl());function eo(e,t){return{props:{...Zn},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=o.row[o.column.property];return a.h(kt,{...r,modelValue:s})}};return a.h(h.ElTableColumn,{...n},l)}}}}const{componentName:ui,create:to,scope:ci}=G("table-mapping-column"),Jn=to(eo());class no{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,u){if(Array.isArray(r)){let c=(n-1)*l,f=c+l;f>r.length&&(f=r.length);const g=r.slice(c,f);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,u]);const i=Te(this.proxy,t);return i===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_.isObject(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(i,null,[r,n,l,o,s,u]))}}function ro(){const e=a.getCurrentInstance();return new no(e.proxy)}const Qn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},er={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function ao(e,t,r){return{inheritAttrs:!1,props:{...te,...oe,...Qn,...er},emits:["change","page-size-change","page-index-change","current-change"],setup(n,l){const{locale:o}=he.useFoxI18n(t),{emitEvent:s}=re({componentName:e},n.prop??n.name),u=e,i=a.computed(()=>({[u]:!0})),c=a.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),f=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,M=>{f.value=M});const g=M=>{f.value=M,s("page-index-change",M)},O=a.ref(n.pageSize);a.watch(()=>n.pageSize,M=>{O.value=M});const R=M=>{O.value=M,s("page-size-change",M)},T=a.shallowRef({}),v=a.computed(()=>({...T.value,...n.params??{},...n.baseParams??{}})),A=a.ref(0),C=a.ref(),D=ro();let V=!0;const b=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),p=async(M,F,x,k)=>{try{const y=await D.load("table",M,F,x,k,V,o.value);A.value=y.totalSize,C.value=y.page}catch(y){console.error("[FoxUI] Load Table Data Fail",y),A.value=0,C.value=[]}V=!1};a.watch([f,O],([M,F],[x,k])=>{F!==k&&(f.value=1,M=1),p(n.data,M,F,v.value)}),a.watch([()=>n.data,v],([M,F],[x,k])=>{!b()||(M!==x&&(V=!0),p(M,f.value,O.value,F))});const $=(M={})=>{T.value=a.toRaw(M??{}),a.triggerRef(T),a.nextTick(()=>{p(n.data,f.value,O.value,v.value)})},m=()=>{A.value=0,C.value=[]};b()&&$();let w=null;const j=(M,F)=>{w=M,s("current-change",M,F)},S=a.ref();return ie({clearSelection:()=>S?.value.clearSelection(),getSelectionRows:()=>S?.value.getSelectionRows(),toggleRowSelection:(M,F)=>{S?.value.toggleRowSelection(M,F)},toggleAllSelection:()=>{S?.value.toggleAllSelection()},toggleRowExpansion:(M,F)=>{S?.value.toggleRowExpansion(M,F)},setCurrentRow:M=>{S?.value.setCurrentRow(M)},getCurrentRow:()=>w,clearSort:()=>{S?.value.clearSort()},clearFilter:M=>{S?.value.clearFilter(M)},doLayout:()=>{S?.value.doLayout()},sort:(M,F)=>{S?.value.sort(M,F)},scrollTo:(M,F)=>{S?.value.scrollTo(M,F)},setScrollTop:M=>{S?.value.setScrollTop(M)},setScrollLeft:M=>{S?.value.setScrollLeft(M)},loadData:$,clearData:m}),()=>{const F={...l.attrs,onCurrentChange:j,data:C.value,ref:S,class:i.value},x={};l.slots.default&&(x.default=l.slots.default),l.slots.append&&(x.append=l.slots.append),l.slots.empty&&(x.empty=l.slots.empty);const k=[],y=a.h(h.ElTable,F,x);if(k.push(y),typeof l.slots.pagination=="function"){const B=l.slots.pagination();k.push(B)}else if(n.paginationVisible){const B={class:c.value,total:A.value,pageSize:O.value,["onUpdate:pageSize"]:R,pageSizes:n.pageSizes,currentPage:f.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},P=a.h(h.ElPagination,B);k.push(P)}const E={default:()=>k},I={...le(n,Qn,er),prop:`${n.prop}_item`};return I.contentClass=`${u}__wrap`,a.h(r,I,E)}}}}const{componentName:lo,create:oo,scope:io}=G("table-item"),tr=oo(ao(lo,io,ae));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class so{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function uo(){const e=a.getCurrentInstance();return new so(e.proxy)}function nr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),l=De(e,r);if(n!==l)return!1;const o=Ge(e,t),s=Ge(e,r);return o===s}function co(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(r==="text")s=De(e,o)===t;else if(r==="item")s=nr(e,o,t);else{let u=Ge(e,o);u==null&&(u=De(e,o)),s=u===t}if(s){l=o;break}}return l}function fo(e){return{text:e,value:e}}const rr={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"},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"},itemClass:{type:[String],required:!1}};function ho(e,t,r){return{inheritAttrs:!0,props:{...te,...oe,...rr},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref(null),u=a.ref(null),i=(V,b,p,$=!0)=>{const m=co(n,V,b,p);if(m===null){if(u.value===null)return;u.value=null,s.value=null,$&&(o("update:modelValue",null),o("change",null));return}if(!nr(n,m,u.value)){s.value=V;const j=a.toRaw(m);u.value=j;let S=null;n.valueType==="text"?S=De(n,j):n.valueType==="item"?S=j:S=Ge(n,j),$&&(o("update:modelValue",S),o("change",S))}},c=a.ref([]),f=uo();a.watch([()=>n.source,()=>n.params],async([V,b])=>{if(V){const p=await f.load("radio",V,b);if(p.length>0)if(typeof p[0]=="string"){let w=p.map(j=>fo(j));c.value=w}else c.value=p}},{immediate:!0}),a.watch([()=>c.value,()=>n.modelValue],([V,b])=>{i(b,n.valueType,V,!1)});const g=ce(a.computed(()=>n.disabled)),O=ue(a.computed(()=>n.readonly)),R=e,T=a.computed(()=>({[R]:!0})),v=V=>{i(V,"value",c.value,!0)};let A=U(n,"hintText"),C=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,$)=>{const m=Ge(n,p),w=De(n,p),j=_.toBoolean(p.disabled),M={key:`${m}_${$}`,class:n.itemClass,label:m,disabled:j,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElRadioButton,M,{default:()=>[w]})):b.push(a.h(h.ElRadio,M,{default:()=>[w]}))}),b};return()=>{const b={...l.attrs,class:T.value,disabled:g.value||O.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,onChange:v},p=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>D(c.value);const m=a.h(h.ElRadioGroup,b,$);p.push(m);const w={default:()=>p};if(l.slots.default){const F=l.slots.default();w.label=()=>F}const S={...le(n,rr),hintText:A.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return a.h(r,S,w)}}}}const{componentName:go,create:mo,scope:yo}=G("radio-item"),ar=mo(ho(go,yo,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class po{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function bo(){const e=a.getCurrentInstance();return new po(e.proxy)}function lr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Me(e,t),l=Me(e,r);if(n!==l)return!1;const o=qe(e,t),s=qe(e,r);return o===s}function So(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let u=!1;if(r==="text")u=Me(e,s)===o;else if(r==="item")u=lr(e,s,o);else{let i=qe(e,s);i==null&&(i=Me(e,s)),u=i===o}if(u){l.push(s);break}}}),l}function wo(e){return{text:e,value:e}}const or={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"},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"},itemClass:{type:[String],required:!1}};function $o(e,t,r){return{inheritAttrs:!1,props:{...te,...oe,...or},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref([]),u=a.ref([]),i=(V,b,p,$=!0)=>{const m=So(n,V,b,p);if(m===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],$&&(o("update:modelValue",[]),o("change",[]));return}let w=!0;if(m.length!==u.value.length)w=!1;else for(let j=0;j<m.length;j++){const S=m[j],M=u.value[j];if(!lr(n,S,M)){w=!1;break}}if(!w){u.value=m;let j=[],S=[];m.forEach(F=>{j.push(qe(n,F)),n.valueType==="text"?S.push(Me(n,F)):n.valueType==="item"?S.push(F):S.push(qe(n,F))}),s.value=j;const M=a.toRaw(S);$&&(o("update:modelValue",M),o("change",M))}},c=a.ref([]),f=bo();a.watch([()=>n.source,()=>n.params],async([V,b])=>{if(V){const p=await f.load("checkbox",V,b);if(p.length>0)if(typeof p[0]=="string"){let w=p.map(j=>wo(j));c.value=w}else c.value=p}},{immediate:!0}),a.watch([()=>c.value,()=>n.modelValue],([V,b])=>{i(b,n.valueType,V,!1)});const g=ce(a.computed(()=>n.disabled)),O=ue(a.computed(()=>n.readonly)),R=e,T=a.computed(()=>({[R]:!0})),v=V=>{i(V,"value",c.value,!0)};let A=U(n,"hintText"),C=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,$)=>{const m=qe(n,p),w=Me(n,p),j=_.toBoolean(p.disabled),M={key:`${m}_${$}`,class:n.itemClass,label:m,disabled:j,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElCheckboxButton,M,{default:()=>[w]})):b.push(a.h(h.ElCheckbox,M,{default:()=>[w]}))}),b};return()=>{const b={...l.attrs,class:T.value,disabled:g.value||O.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,max:_.toNumber(n.max),min:_.toNumber(n.min),onChange:v},p=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>D(c.value);const m=a.h(h.ElCheckboxGroup,b,$);p.push(m);const w={default:()=>p};if(l.slots.default){const F=l.slots.default();w.label=()=>F}const S={...le(n,or),hintText:A.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return a.h(r,S,w)}}}}const{componentName:vo,create:Eo,scope:Co}=G("checkbox-item"),ir=Eo($o(vo,Co,ae)),sr={modelValue:{type:[Number,String],required:!1}};function Oo(e,t,r){return{props:{...te,...oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=ce(a.computed(()=>n.disabled)),u=ue(a.computed(()=>n.readonly)),i=U(n,"modelValue",v=>_.toNumber(v)),c=e,f=a.computed(()=>({[c]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let O=U(n,"hintText"),R=a.ref(!1);const T=a.ref();return ie({}),()=>{const A={...l.attrs,ref:T,class:f.value,readonly:u.value||s.value,modelValue:i.value,onChange:g},C={},D=[],V=a.h(h.ElRate,A,C);D.push(V);const b={default:()=>D};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const $={...le(n,sr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,$,b)}}}}const{componentName:To,create:No,scope:Vo}=G("rate-item"),ur=No(Oo(To,Vo,ae)),cr={modelValue:{type:[Boolean,String,Number],required:!1}};function Io(e,t,r){return{props:{...te,...oe,...cr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=ce(a.computed(()=>n.disabled)),u=ue(a.computed(()=>n.readonly)),i=U(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let O=U(n,"hintText"),R=U(n,"hintVisible");const T=a.ref();return ie({}),()=>{const A={...l.attrs,ref:T,class:f.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:g},C={},D=[],V=a.h(h.ElSwitch,A,C);D.push(V);const b={default:()=>D};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const $={...le(n,cr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,$,b)}}}}const{componentName:xo,create:Ao,scope:Ro}=G("switch-item"),fr=Ao(Io(xo,Ro,ae)),jo=Symbol.for("InnerPageScopeKey"),ko=Symbol.for("DialogItemStateKey");function Do(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){a.provide(jo,!0);const l={};a.provide(ko,l);const o=i=>{typeof l.beforeClose=="function"&&l.beforeClose(i)},s=a.ref(!0),u=i=>{s.value=i};return()=>{const c={...n.attrs,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},f={};if(typeof n.slots.default=="function"){const g=n.slots.default();f.default=()=>g}return a.h(h.ElDialog,c,f)}}}}const{componentName:fi,create:Mo,scope:di}=G("dialog-item"),dr=Mo(Do()),{componentName:hr,create:qo}=G("ext-icon"),gr=qo({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=o=>{t("click",o)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const o=l.value;return a.h(o?"img":e.tag,{class:o?`${hr}__img`:`${e.fontClassName} ${hr} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:z(e.size),width:z(e.size),height:z(e.size)},onClick:n,src:o?e.name:""},r.default?.())}}});function Bo(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const l=e,o=a.computed(()=>({[l]:!0})),s=a.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),u=a.computed(()=>r.color?{background:r.color}:null),i=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),c=a.computed(()=>r.color?{color:r.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const v={class:s.value,style:u.value};f=a.h("div",v)}const g={class:i.value,style:c.value},O=n.default?n.default():[],R=a.h("div",g,O),T={class:o.value};return a.h("div",T,[f,R])}}}}const{componentName:Fo,create:Po,scope:hi}=G("indicator"),mr=Po(Bo(Fo));var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",i="hour",c="day",f="week",g="month",O="quarter",R="year",T="date",v="Invalid Date",A=/^(\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,D={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("_")},V=function(x,k,y){var E=String(x);return!E||E.length>=k?x:""+Array(k+1-E.length).join(y)+x},b={s:V,z:function(x){var k=-x.utcOffset(),y=Math.abs(k),E=Math.floor(y/60),N=y%60;return(k<=0?"+":"-")+V(E,2,"0")+":"+V(N,2,"0")},m:function x(k,y){if(k.date()<y.date())return-x(y,k);var E=12*(y.year()-k.year())+(y.month()-k.month()),N=k.clone().add(E,g),I=y-N<0,q=k.clone().add(E+(I?-1:1),g);return+(-(E+(y-N)/(I?N-q:q-N))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:g,y:R,w:f,d:c,D:T,h:i,m:u,s,ms:o,Q:O}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},p="en",$={};$[p]=D;var m=function(x){return x instanceof M},w=function x(k,y,E){var N;if(!k)return p;if(typeof k=="string"){var I=k.toLowerCase();$[I]&&(N=I),y&&($[I]=y,N=I);var q=k.split("-");if(!N&&q.length>1)return x(q[0])}else{var B=k.name;$[B]=k,N=B}return!E&&N&&(p=N),N||!E&&p},j=function(x,k){if(m(x))return x.clone();var y=typeof k=="object"?k:{};return y.date=x,y.args=arguments,new M(y)},S=b;S.l=w,S.i=m,S.w=function(x,k){return j(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function x(y){this.$L=w(y.locale,null,!0),this.parse(y)}var k=x.prototype;return k.parse=function(y){this.$d=function(E){var N=E.date,I=E.utc;if(N===null)return new Date(NaN);if(S.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var q=N.match(A);if(q){var B=q[2]-1||0,P=(q[7]||"0").substring(0,3);return I?new Date(Date.UTC(q[1],B,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)):new Date(q[1],B,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)}}return new Date(N)}(y),this.$x=y.x||{},this.init()},k.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},k.$utils=function(){return S},k.isValid=function(){return this.$d.toString()!==v},k.isSame=function(y,E){var N=j(y);return this.startOf(E)<=N&&N<=this.endOf(E)},k.isAfter=function(y,E){return j(y)<this.startOf(E)},k.isBefore=function(y,E){return this.endOf(E)<j(y)},k.$g=function(y,E,N){return S.u(y)?this[E]:this.set(N,y)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(y,E){var N=this,I=!!S.u(E)||E,q=S.p(y),B=function(se,ee){var de=S.w(N.$u?Date.UTC(N.$y,ee,se):new Date(N.$y,ee,se),N);return I?de:de.endOf(c)},P=function(se,ee){return S.w(N.toDate()[se].apply(N.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ee)),N)},L=this.$W,H=this.$M,Y=this.$D,W="set"+(this.$u?"UTC":"");switch(q){case R:return I?B(1,0):B(31,11);case g:return I?B(1,H):B(0,H+1);case f:var me=this.$locale().weekStart||0,fe=(L<me?L+7:L)-me;return B(I?Y-fe:Y+(6-fe),H);case c:case T:return P(W+"Hours",0);case i:return P(W+"Minutes",1);case u:return P(W+"Seconds",2);case s:return P(W+"Milliseconds",3);default:return this.clone()}},k.endOf=function(y){return this.startOf(y,!1)},k.$set=function(y,E){var N,I=S.p(y),q="set"+(this.$u?"UTC":""),B=(N={},N[c]=q+"Date",N[T]=q+"Date",N[g]=q+"Month",N[R]=q+"FullYear",N[i]=q+"Hours",N[u]=q+"Minutes",N[s]=q+"Seconds",N[o]=q+"Milliseconds",N)[I],P=I===c?this.$D+(E-this.$W):E;if(I===g||I===R){var L=this.clone().set(T,1);L.$d[B](P),L.init(),this.$d=L.set(T,Math.min(this.$D,L.daysInMonth())).$d}else B&&this.$d[B](P);return this.init(),this},k.set=function(y,E){return this.clone().$set(y,E)},k.get=function(y){return this[S.p(y)]()},k.add=function(y,E){var N,I=this;y=Number(y);var q=S.p(E),B=function(H){var Y=j(I);return S.w(Y.date(Y.date()+Math.round(H*y)),I)};if(q===g)return this.set(g,this.$M+y);if(q===R)return this.set(R,this.$y+y);if(q===c)return B(1);if(q===f)return B(7);var P=(N={},N[u]=n,N[i]=l,N[s]=r,N)[q]||1,L=this.$d.getTime()+y*P;return S.w(L,this)},k.subtract=function(y,E){return this.add(-1*y,E)},k.format=function(y){var E=this,N=this.$locale();if(!this.isValid())return N.invalidDate||v;var I=y||"YYYY-MM-DDTHH:mm:ssZ",q=S.z(this),B=this.$H,P=this.$m,L=this.$M,H=N.weekdays,Y=N.months,W=function(ee,de,Ee,Ce){return ee&&(ee[de]||ee(E,I))||Ee[de].slice(0,Ce)},me=function(ee){return S.s(B%12||12,ee,"0")},fe=N.meridiem||function(ee,de,Ee){var Ce=ee<12?"AM":"PM";return Ee?Ce.toLowerCase():Ce},se={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:S.s(L+1,2,"0"),MMM:W(N.monthsShort,L,Y,3),MMMM:W(Y,L),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:W(N.weekdaysMin,this.$W,H,2),ddd:W(N.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(B),HH:S.s(B,2,"0"),h:me(1),hh:me(2),a:fe(B,P,!0),A:fe(B,P,!1),m:String(P),mm:S.s(P,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:q};return I.replace(C,function(ee,de){return de||se[ee]||q.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(y,E,N){var I,q=S.p(E),B=j(y),P=(B.utcOffset()-this.utcOffset())*n,L=this-B,H=S.m(this,B);return H=(I={},I[R]=H/12,I[g]=H,I[O]=H/3,I[f]=(L-P)/6048e5,I[c]=(L-P)/864e5,I[i]=L/l,I[u]=L/n,I[s]=L/r,I)[q]||L,N?H:S.a(H)},k.daysInMonth=function(){return this.endOf(g).$D},k.$locale=function(){return $[this.$L]},k.locale=function(y,E){if(!y)return this.$L;var N=this.clone(),I=w(y,E,!0);return I&&(N.$L=I),N},k.clone=function(){return S.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}(),F=M.prototype;return j.prototype=F,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",c],["$M",g],["$y",R],["$D",T]].forEach(function(x){F[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),j.extend=function(x,k){return x.$i||(x(k,M,j),x.$i=!0),j},j.locale=w,j.isDayjs=m,j.unix=function(x){return j(1e3*x)},j.en=$[p],j.Ls=$,j.p={},j})})(yr);const ve=yr.exports;var pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},i=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(A){this[v]=+A}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(A){if(!A||A==="Z")return 0;var C=A.match(/([+-]|\d\d)/g),D=60*C[1]+(+C[2]||0);return D===0?0:C[0]==="+"?-D:D}(v)}],g=function(v){var A=u[v];return A&&(A.indexOf?A:A.s.concat(A.f))},O=function(v,A){var C,D=u.meridiem;if(D){for(var V=1;V<=24;V+=1)if(v.indexOf(D(V,0,A))>-1){C=V>12;break}}else C=v===(A?"pm":"PM");return C},R={A:[s,function(v){this.afternoon=O(v,!1)}],a:[s,function(v){this.afternoon=O(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[l,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[l,c("day")],Do:[s,function(v){var A=u.ordinal,C=v.match(/\d+/);if(this.day=C[0],A)for(var D=1;D<=31;D+=1)A(D).replace(/\[|\]/g,"")===v&&(this.day=D)}],M:[o,c("month")],MM:[l,c("month")],MMM:[s,function(v){var A=g("months"),C=(g("monthsShort")||A.map(function(D){return D.slice(0,3)})).indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[s,function(v){var A=g("months").indexOf(v)+1;if(A<1)throw new Error;this.month=A%12||A}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(v){this.year=i(v)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function T(v){var A,C;A=v,C=u&&u.formats;for(var D=(v=A.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,S,M){var F=M&&M.toUpperCase();return S||C[M]||r[M]||C[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,k,y){return k||y.slice(1)})})).match(n),V=D.length,b=0;b<V;b+=1){var p=D[b],$=R[p],m=$&&$[0],w=$&&$[1];D[b]=w?{regex:m,parser:w}:p.replace(/^\[|\]$/g,"")}return function(j){for(var S={},M=0,F=0;M<V;M+=1){var x=D[M];if(typeof x=="string")F+=x.length;else{var k=x.regex,y=x.parser,E=j.slice(F),N=k.exec(E)[0];y.call(S,N),j=j.replace(N,"")}}return function(I){var q=I.afternoon;if(q!==void 0){var B=I.hours;q?B<12&&(I.hours+=12):B===12&&(I.hours=0),delete I.afternoon}}(S),S}}return function(v,A,C){C.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(i=v.parseTwoDigitYear);var D=A.prototype,V=D.parse;D.parse=function(b){var p=b.date,$=b.utc,m=b.args;this.$u=$;var w=m[1];if(typeof w=="string"){var j=m[2]===!0,S=m[3]===!0,M=j||S,F=m[2];S&&(F=m[2]),u=this.$locale(),!j&&F&&(u=C.Ls[F]),this.$d=function(E,N,I){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*E);var q=T(N)(E),B=q.year,P=q.month,L=q.day,H=q.hours,Y=q.minutes,W=q.seconds,me=q.milliseconds,fe=q.zone,se=new Date,ee=L||(B||P?1:se.getDate()),de=B||se.getFullYear(),Ee=0;B&&!P||(Ee=P>0?P-1:se.getMonth());var Ce=H||0,Dt=Y||0,Mt=W||0,qt=me||0;return fe?new Date(Date.UTC(de,Ee,ee,Ce,Dt,Mt,qt+60*fe.offset*1e3)):I?new Date(Date.UTC(de,Ee,ee,Ce,Dt,Mt,qt)):new Date(de,Ee,ee,Ce,Dt,Mt,qt)}catch{return new Date("")}}(p,w,$),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),M&&p!=this.format(w)&&(this.$d=new Date("")),u={}}else if(w instanceof Array)for(var x=w.length,k=1;k<=x;k+=1){m[1]=w[k-1];var y=C.apply(this,m);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}k===x&&(this.$d=new Date(""))}else V.call(this,b)}}})})(pr);const Lo=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(u){var i=["th","st","nd","rd"],c=u%100;return"["+u+(i[(c-20)%10]||i[c]||i[0])+"]"},o.format=function(u){var i=this,c=this.$locale();if(!this.isValid())return s.bind(this)(u);var f=this.$utils(),g=(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(O){switch(O){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return f.s(i.week(),O==="w"?1:2,"0");case"W":case"WW":return f.s(i.isoWeek(),O==="W"?1:2,"0");case"k":case"kk":return f.s(String(i.$H===0?24:i.$H),O==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return O}});return s.bind(this)(g)}}})})(br);const _o=br.exports;var Sr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,O,R,T,v){var A=g.name?g:g.$locale(),C=s(A[O]),D=s(A[R]),V=C||D.map(function(p){return p.slice(0,T)});if(!v)return V;var b=A.weekStart;return V.map(function(p,$){return V[($+(b||0))%7]})},i=function(){return l.Ls[l.locale()]},c=function(g,O){return g.formats[O]||function(R){return R.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,v,A){return v||A.slice(1)})}(g.formats[O.toUpperCase()])},f=function(){var g=this;return{months:function(O){return O?O.format("MMMM"):u(g,"months")},monthsShort:function(O){return O?O.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(O){return O?O.format("dddd"):u(g,"weekdays")},weekdaysMin:function(O){return O?O.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(O){return O?O.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(O){return c(g.$locale(),O)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var g=i();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(O){return c(g,O)},meridiem:g.meridiem,ordinal:g.ordinal}},l.months=function(){return u(i(),"months")},l.monthsShort=function(){return u(i(),"monthsShort","months",3)},l.weekdays=function(g){return u(i(),"weekdays",null,null,g)},l.weekdaysShort=function(g){return u(i(),"weekdaysShort","weekdays",3,g)},l.weekdaysMin=function(g){return u(i(),"weekdaysMin","weekdays",2,g)}}})})(Sr);const Ho=Sr.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r="week",n="year";return function(l,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 f=s(this).startOf(n).add(1,n).date(c),g=s(this).endOf(r);if(f.isBefore(g))return 1}var O=s(this).startOf(n).date(c).startOf(r).subtract(1,"millisecond"),R=this.diff(O,r,!0);return R<0?s(this).startOf("week").week():Math.ceil(R)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})(wr);const Ko=wr.exports;var $r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})($r);const zo=$r.exports;var vr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(vr);const Go=vr.exports;var Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Er);const Yo=Er.exports;var Cr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Cr);const Wo=Cr.exports;ve.extend(Ho),ve.extend(_o),ve.extend(Lo),ve.extend(Ko),ve.extend(zo),ve.extend(Go),ve.extend(Yo),ve.extend(Wo);const Or=10;function Uo(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function Xo(){const e=a.ref(0),t=a.ref(0),r=a.ref(0),n=a.ref(0),l=a.ref(0),o=a.ref(0),s=a.ref(0),u=a.ref(0),i=a.ref(0),c=a.ref(0),f=a.ref(""),g=()=>f.value==="vertical",O=()=>f.value==="horizontal",R=()=>{s.value=0,u.value=0,i.value=0,c.value=0,f.value="",r.value=0};return{move:A=>{const C=A.touches[0];s.value=C.clientX-e.value,u.value=C.clientY-t.value,l.value=C.clientX,o.value=C.clientY,i.value=Math.abs(s.value),c.value=Math.abs(u.value),n.value=Date.now()-r.value,f.value||(f.value=Uo(i.value,c.value))},start:A=>{R(),e.value=A.touches[0].clientX,t.value=A.touches[0].clientY,r.value=Date.now()},reset:R,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:c,direction:f,isVertical:g,isHorizontal:O}}const Zo=[dn,hn,gn,mn,bn,ae,En,Cn,ct,Tn,An,jn,Dn,qn,Hn,zn,Wn,Xn,Jn,tr,ar,ir,ur,fr,dr,kt,ut,gr,mr],Jo=new Jr(Zo,[ta],"4.0.0");Object.defineProperty(d,"clone",{enumerable:!0,get:()=>_.clone}),Object.defineProperty(d,"extend",{enumerable:!0,get:()=>_.extend}),Object.defineProperty(d,"isArray",{enumerable:!0,get:()=>_.isArray}),Object.defineProperty(d,"isDate",{enumerable:!0,get:()=>_.isDate}),Object.defineProperty(d,"isESModule",{enumerable:!0,get:()=>_.isESModule}),Object.defineProperty(d,"isEqual",{enumerable:!0,get:()=>_.isEqual}),Object.defineProperty(d,"isFunction",{enumerable:!0,get:()=>_.isFunction}),Object.defineProperty(d,"isMap",{enumerable:!0,get:()=>_.isMap}),Object.defineProperty(d,"isObject",{enumerable:!0,get:()=>_.isObject}),Object.defineProperty(d,"isPlainObject",{enumerable:!0,get:()=>_.isPlainObject}),Object.defineProperty(d,"isPromise",{enumerable:!0,get:()=>_.isPromise}),Object.defineProperty(d,"isSet",{enumerable:!0,get:()=>_.isSet}),Object.defineProperty(d,"isString",{enumerable:!0,get:()=>_.isString}),Object.defineProperty(d,"isSymbol",{enumerable:!0,get:()=>_.isSymbol}),Object.defineProperty(d,"toBoolean",{enumerable:!0,get:()=>_.toBoolean}),Object.defineProperty(d,"toNumber",{enumerable:!0,get:()=>_.toNumber}),Object.defineProperty(d,"toTypeString",{enumerable:!0,get:()=>_.toTypeString}),Object.defineProperty(d,"FoxAffix",{enumerable:!0,get:()=>h.ElAffix}),Object.defineProperty(d,"FoxAlert",{enumerable:!0,get:()=>h.ElAlert}),Object.defineProperty(d,"FoxAside",{enumerable:!0,get:()=>h.ElAside}),Object.defineProperty(d,"FoxAutoResizer",{enumerable:!0,get:()=>h.ElAutoResizer}),Object.defineProperty(d,"FoxAutocomplete",{enumerable:!0,get:()=>h.ElAutocomplete}),Object.defineProperty(d,"FoxAvatar",{enumerable:!0,get:()=>h.ElAvatar}),Object.defineProperty(d,"FoxBacktop",{enumerable:!0,get:()=>h.ElBacktop}),Object.defineProperty(d,"FoxBadge",{enumerable:!0,get:()=>h.ElBadge}),Object.defineProperty(d,"FoxBreadcrumb",{enumerable:!0,get:()=>h.ElBreadcrumb}),Object.defineProperty(d,"FoxBreadcrumbItem",{enumerable:!0,get:()=>h.ElBreadcrumbItem}),Object.defineProperty(d,"FoxButton",{enumerable:!0,get:()=>h.ElButton}),Object.defineProperty(d,"FoxButtonGroup",{enumerable:!0,get:()=>h.ElButtonGroup}),Object.defineProperty(d,"FoxCalendar",{enumerable:!0,get:()=>h.ElCalendar}),Object.defineProperty(d,"FoxCard",{enumerable:!0,get:()=>h.ElCard}),Object.defineProperty(d,"FoxCarousel",{enumerable:!0,get:()=>h.ElCarousel}),Object.defineProperty(d,"FoxCarouselItem",{enumerable:!0,get:()=>h.ElCarouselItem}),Object.defineProperty(d,"FoxCascader",{enumerable:!0,get:()=>h.ElCascader}),Object.defineProperty(d,"FoxCascaderPanel",{enumerable:!0,get:()=>h.ElCascaderPanel}),Object.defineProperty(d,"FoxCheckTag",{enumerable:!0,get:()=>h.ElCheckTag}),Object.defineProperty(d,"FoxCheckbox",{enumerable:!0,get:()=>h.ElCheckbox}),Object.defineProperty(d,"FoxCheckboxButton",{enumerable:!0,get:()=>h.ElCheckboxButton}),Object.defineProperty(d,"FoxCheckboxGroup",{enumerable:!0,get:()=>h.ElCheckboxGroup}),Object.defineProperty(d,"FoxCol",{enumerable:!0,get:()=>h.ElCol}),Object.defineProperty(d,"FoxCollapse",{enumerable:!0,get:()=>h.ElCollapse}),Object.defineProperty(d,"FoxCollapseItem",{enumerable:!0,get:()=>h.ElCollapseItem}),Object.defineProperty(d,"FoxCollapseTransition",{enumerable:!0,get:()=>h.ElCollapseTransition}),Object.defineProperty(d,"FoxColorPicker",{enumerable:!0,get:()=>h.ElColorPicker}),Object.defineProperty(d,"FoxConfigProvider",{enumerable:!0,get:()=>h.ElConfigProvider}),Object.defineProperty(d,"FoxContainer",{enumerable:!0,get:()=>h.ElContainer}),Object.defineProperty(d,"FoxDatePicker",{enumerable:!0,get:()=>h.ElDatePicker}),Object.defineProperty(d,"FoxDescriptions",{enumerable:!0,get:()=>h.ElDescriptions}),Object.defineProperty(d,"FoxDescriptionsItem",{enumerable:!0,get:()=>h.ElDescriptionsItem}),Object.defineProperty(d,"FoxDialog",{enumerable:!0,get:()=>h.ElDialog}),Object.defineProperty(d,"FoxDivider",{enumerable:!0,get:()=>h.ElDivider}),Object.defineProperty(d,"FoxDrawer",{enumerable:!0,get:()=>h.ElDrawer}),Object.defineProperty(d,"FoxDropdown",{enumerable:!0,get:()=>h.ElDropdown}),Object.defineProperty(d,"FoxDropdownItem",{enumerable:!0,get:()=>h.ElDropdownItem}),Object.defineProperty(d,"FoxDropdownMenu",{enumerable:!0,get:()=>h.ElDropdownMenu}),Object.defineProperty(d,"FoxEmpty",{enumerable:!0,get:()=>h.ElEmpty}),Object.defineProperty(d,"FoxFooter",{enumerable:!0,get:()=>h.ElFooter}),Object.defineProperty(d,"FoxForm",{enumerable:!0,get:()=>h.ElForm}),Object.defineProperty(d,"FoxFormItem",{enumerable:!0,get:()=>h.ElFormItem}),Object.defineProperty(d,"FoxHeader",{enumerable:!0,get:()=>h.ElHeader}),Object.defineProperty(d,"FoxIcon",{enumerable:!0,get:()=>h.ElIcon}),Object.defineProperty(d,"FoxImage",{enumerable:!0,get:()=>h.ElImage}),Object.defineProperty(d,"FoxImageViewer",{enumerable:!0,get:()=>h.ElImageViewer}),Object.defineProperty(d,"FoxInput",{enumerable:!0,get:()=>h.ElInput}),Object.defineProperty(d,"FoxInputNumber",{enumerable:!0,get:()=>h.ElInputNumber}),Object.defineProperty(d,"FoxLink",{enumerable:!0,get:()=>h.ElLink}),Object.defineProperty(d,"FoxMain",{enumerable:!0,get:()=>h.ElMain}),Object.defineProperty(d,"FoxMenu",{enumerable:!0,get:()=>h.ElMenu}),Object.defineProperty(d,"FoxMenuItem",{enumerable:!0,get:()=>h.ElMenuItem}),Object.defineProperty(d,"FoxMenuItemGroup",{enumerable:!0,get:()=>h.ElMenuItemGroup}),Object.defineProperty(d,"FoxOption",{enumerable:!0,get:()=>h.ElOption}),Object.defineProperty(d,"FoxOptionGroup",{enumerable:!0,get:()=>h.ElOptionGroup}),Object.defineProperty(d,"FoxPageHeader",{enumerable:!0,get:()=>h.ElPageHeader}),Object.defineProperty(d,"FoxPagination",{enumerable:!0,get:()=>h.ElPagination}),Object.defineProperty(d,"FoxPopconfirm",{enumerable:!0,get:()=>h.ElPopconfirm}),Object.defineProperty(d,"FoxPopover",{enumerable:!0,get:()=>h.ElPopover}),Object.defineProperty(d,"FoxPopper",{enumerable:!0,get:()=>h.ElPopper}),Object.defineProperty(d,"FoxProgress",{enumerable:!0,get:()=>h.ElProgress}),Object.defineProperty(d,"FoxRadio",{enumerable:!0,get:()=>h.ElRadio}),Object.defineProperty(d,"FoxRadioButton",{enumerable:!0,get:()=>h.ElRadioButton}),Object.defineProperty(d,"FoxRadioGroup",{enumerable:!0,get:()=>h.ElRadioGroup}),Object.defineProperty(d,"FoxRate",{enumerable:!0,get:()=>h.ElRate}),Object.defineProperty(d,"FoxResult",{enumerable:!0,get:()=>h.ElResult}),Object.defineProperty(d,"FoxRow",{enumerable:!0,get:()=>h.ElRow}),Object.defineProperty(d,"FoxScrollbar",{enumerable:!0,get:()=>h.ElScrollbar}),Object.defineProperty(d,"FoxSelect",{enumerable:!0,get:()=>h.ElSelect}),Object.defineProperty(d,"FoxSelectV2",{enumerable:!0,get:()=>h.ElSelectV2}),Object.defineProperty(d,"FoxSkeleton",{enumerable:!0,get:()=>h.ElSkeleton}),Object.defineProperty(d,"FoxSkeletonItem",{enumerable:!0,get:()=>h.ElSkeletonItem}),Object.defineProperty(d,"FoxSlider",{enumerable:!0,get:()=>h.ElSlider}),Object.defineProperty(d,"FoxSpace",{enumerable:!0,get:()=>h.ElSpace}),Object.defineProperty(d,"FoxStep",{enumerable:!0,get:()=>h.ElStep}),Object.defineProperty(d,"FoxSteps",{enumerable:!0,get:()=>h.ElSteps}),Object.defineProperty(d,"FoxSubMenu",{enumerable:!0,get:()=>h.ElSubMenu}),Object.defineProperty(d,"FoxSwitch",{enumerable:!0,get:()=>h.ElSwitch}),Object.defineProperty(d,"FoxTabPane",{enumerable:!0,get:()=>h.ElTabPane}),Object.defineProperty(d,"FoxTable",{enumerable:!0,get:()=>h.ElTable}),Object.defineProperty(d,"FoxTableColumn",{enumerable:!0,get:()=>h.ElTableColumn}),Object.defineProperty(d,"FoxTableV2",{enumerable:!0,get:()=>h.ElTableV2}),Object.defineProperty(d,"FoxTabs",{enumerable:!0,get:()=>h.ElTabs}),Object.defineProperty(d,"FoxTag",{enumerable:!0,get:()=>h.ElTag}),Object.defineProperty(d,"FoxTimePicker",{enumerable:!0,get:()=>h.ElTimePicker}),Object.defineProperty(d,"FoxTimeSelect",{enumerable:!0,get:()=>h.ElTimeSelect}),Object.defineProperty(d,"FoxTimeline",{enumerable:!0,get:()=>h.ElTimeline}),Object.defineProperty(d,"FoxTimelineItem",{enumerable:!0,get:()=>h.ElTimelineItem}),Object.defineProperty(d,"FoxTooltip",{enumerable:!0,get:()=>h.ElTooltip}),Object.defineProperty(d,"FoxTransfer",{enumerable:!0,get:()=>h.ElTransfer}),Object.defineProperty(d,"FoxTree",{enumerable:!0,get:()=>h.ElTree}),Object.defineProperty(d,"FoxTreeSelect",{enumerable:!0,get:()=>h.ElTreeSelect}),Object.defineProperty(d,"FoxTreeV2",{enumerable:!0,get:()=>h.ElTreeV2}),Object.defineProperty(d,"FoxUpload",{enumerable:!0,get:()=>h.ElUpload}),d.AutocompleteItem=Xn,d.Broadcast=vt,d.BroadcastKey=Q,d.CascaderItem=Wn,d.CheckboxItem=ir,d.Content=mn,d.DataItemsKey=xe,d.DateItem=jn,d.DialogItem=dr,d.Domain=Ct,d.DomainKey=be,d.ExtIcon=gr,d.FooterBar=gn,d.Group=bn,d.HeaderBar=hn,d.HintText=ct,d.Indicator=mr,d.InputItem=Tn,d.InputNumberItem=zn,d.Item=ae,d.Mapping=kt,d.MoneyItem=Hn,d.Page=dn,d.Price=ut,d.PriorityPolicy=nt,d.RadioItem=ar,d.RateItem=ur,d.RowItem=Cn,d.SelectItem=An,d.SlotItem=En,d.SwitchItem=fr,d.TableItem=tr,d.TableMappingColumn=Jn,d.TimeItem=Dn,d.TimeSelectItem=qn,d.UniqueID=wn,d.ValidateSchema=nn,d.ValidateSchemaKey=ye,d.clearNonNumber=Ir,d.compareTo=wt,d.createBroadcast=We,d.createValidateSchema=Xe,d.debounce=Hr,d.decimalLength=Ut,d.default=Jo,d.defineBroadcast=kr,d.defineDataItem=an,d.defineDomain=Tt,d.defineItem=re,d.definePageState=ln,d.deleteGlobalValidator=Br,d.disabledProperty=ce,d.divide=St,d.excludeProps=le,d.floatData=jr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=Ke,d.includeProps=Rr,d.indexOf=xr,d.integerLength=Wt,d.isBrowser=Pe,d.isEmptyString=J,d.isInnerPage=zr,d.isNumberString=Yt,d.isRegExp=Gt,d.isSubPage=Gr,d.lastIndexOf=Ar,d.multiply=Ht,d.negate=Kt,d.numberFormat=$t,d.property=Ae,d.raf=Vr,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=Fr,d.setGlobalValidateHandler=Mr,d.setGlobalValidateMessages=Lr,d.setGlobalValidateResetEvents=Pr,d.setGlobalValidator=qr,d.throttle=Et,d.toPadding=ge,d.toPx=Z,d.toPxDesc=z,d.toValue=U,d.unNumberFormat=zt,d.updatePageState=Nt,d.useBroadcast=_e,d.useDomain=Se,d.useExpose=ie,d.usePageState=Ze,d.usePosition=$n,d.useRect=st,d.useTouch=Xo,d.valueLength=Le,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(p,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],o):(p=typeof globalThis<"u"?globalThis:p||self,o(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,o,Qe,y,Te,De){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Apr 01 2024 10:56:41 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Vt=window,Hr=typeof window<"u";function Kr(){return typeof Vt<"u"?Vt.requestAnimationFrame||Vt.webkitRequestAnimationFrame||function(e){Vt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wr(e){Hr?cancelAnimationFrame(e):clearTimeout(e)}const Bo=Kr();/*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function Ft(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=un($e(e),$e(t)),l==1&&(n==1?e=sn(e):t=sn(t));let r=_o(e,t);return l?l==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(sn(r)):$e(r)}function sn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return _o(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function un(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function _o(e,t){[e,t]=un(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function mt(e,t=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=mt(e,0,l),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,qo(r[1],a,n,l)?(n?"-":"")+cn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&qo(s,i,n,l)&&(i=cn(i),i.length>t)?(n?"-":"")+cn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function qo(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function cn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=pt(e),t=pt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=pt(e.replace(".","")),t=pt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(b+=parseInt(e[u[E]--])*parseInt(t[E]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=pt(Yr(f,a)),l==1&&(f="-"+f),f}function Yr(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 pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function dn(e,t,l=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 n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(l=l+2;a<=l;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Ft(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(s,l-2))}function hn(e,t){return e=e.toString(),t=t.toString(),t=gn(t),Ft(e,t)}function gn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Po(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),jo(e),jo(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=hn(e,fn(t,mt(dn(e,t),0,me.FLOOR)));return l+n}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function zo(e,t){let l=!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),l=!0),[e,t]=un(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?l?-1:1:l?1:-1;return 0}class ce{value;static RoundingModes=me;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[l,n]=t.split(/[eE]/);l=$e(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+$e(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<l?(l=s,s=0):s-=l,i=t.substring(s,s+l)+(s<a-l&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return ce.getPrettyValue(this.value,t,l)}static round(t,l=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return mt(t,l,n)}round(t=0,l=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,l))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,l){return t=ce.validate(t),l=ce.validate(l),Ft(t,l)}add(t){return new ce(Ft(this.value,t.getValue()))}static subtract(t,l){return t=ce.validate(t),l=ce.validate(l),hn(t,l)}subtract(t){return new ce(hn(this.value,t.getValue()))}static multiply(t,l){return t=ce.validate(t),l=ce.validate(l),fn(t,l)}multiply(t){return new ce(fn(this.value,t.getValue()))}static divide(t,l,n){return t=ce.validate(t),l=ce.validate(l),dn(t,l,n)}divide(t,l){return new ce(dn(this.value,t.getValue(),l))}static modulus(t,l){return t=ce.validate(t),l=ce.validate(l),Po(t,l)}modulus(t){return new ce(Po(this.value,t.getValue()))}static compareTo(t,l){return t=ce.validate(t),l=ce.validate(l),zo(t,l)}compareTo(t){return zo(this.value,t.getValue())}static negate(t){return t=ce.validate(t),gn(t)}negate(){return new ce(gn(this.value))}}function Ho(e,t){return ce.multiply(`${e}`,`${t}`)}function mn(e,t,l=8){return ce.divide(`${e}`,`${t}`,l)}function pn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Ko(e){return ce.negate(e)}function Dt(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):l&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let E=0;E<b.length;E++)c+=b[E]+((E+1)%n==0&&E+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Wo(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const yn=Bo,Gr=Array.isArray,Ur=e=>At(e)==="[object Map]",Xr=e=>At(e)==="[object Set]",Zr=e=>e instanceof Date,bn=e=>typeof e=="function",Yo=e=>typeof e=="string",Jr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Go=e=>ze(e)&&bn(e.then)&&bn(e.catch),Uo=Object.prototype.toString,At=e=>Uo.call(e),vn=e=>At(e)==="[object Object]",Xo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Qr(e){return e.__esModule||Xo&&e[Symbol.toStringTag]==="Module"}const ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function wn(e,t,l=!1){if(!l)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Sn=ea?Promise.resolve():null;function ta(e,...t){Sn!==null?t&&t.length>0?Sn.then(()=>{e(t)}):Sn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ye(e){return typeof e=="number"?e:Number(e)}const na={"[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 Rt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):na[l]||"object"}function Zo(e){return e&&typeof e=="object"&&"setInterval"in e}function Lt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Jo(e){let t=!!e&&"length"in e&&e.length,l=Rt(e);return l==="function"||Zo(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Qo(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let l=t;return e!=null&&(Jo(Object(e))?Qo(l,typeof e=="string"?[e]:e):l.push(e)),l}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Rt(e),n=Rt(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function xn(e){return e==null}function el(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function tl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function nl(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 l=t.indexOf(".");return l==-1?t.length:l}function ol(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function ll(e,t,l){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function la(e,t=!0,l=!0){t?e=ll(e,".",/\./g):e=e.replace(/\./g,""),l?e=ll(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(He(e,l))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(He(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function yt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function Ce(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ia=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Tn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,l,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):el(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,l,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Mt(e,t,l,n){const r=new Tn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function sa(e,t,l){const n=l;if(n[be])return n[be];const r=o.inject(be,null),a=new Tn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,o.provide(be,a),o.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[be]??o.inject(be,null):o.inject(be,null)}const nt=e=>e.default??e;class ua{error(t,l){const n=l,r=bt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let al=new ua;function ca(e){al=e}function fa(e,t){nt(Qe).setValidator(e,t)}function da(e){nt(Qe).deleteValidator(e)}let il=["blur","clear"];function ha(e){il=e}function sl(){return il}let ul=["focus","change"];function ga(e){ul=e}function cl(){return ul}function ma(e){nt(Qe).messages(e)}function vt(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Bt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class fl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const l=Bt(vt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Bt(n);const r=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=al;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,l,n=!1){n?nt(Qe).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=vt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Bt(t):this.rules=Bt([t]);const n=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=vt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function _t(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new fl(t,l,e)}const dl=Symbol.for("EventEmitterKey");class pa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function wt(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function hl(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function ya(e,t){const l=wt((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function ba(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function qt(e,t,l,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class Pt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const va=new Pt;function it(){return va}function We(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Le]??o.inject(Le,null):o.inject(Le,null)}const $n=Symbol("OriginalDateKey");function Cn(e,t,l=[],n){const r=o.getCurrentInstance(),a=r?.proxy;let i=o.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new Pt(s);u.parent=i;const d=h=>{a[$n]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[$n]??null,b=h=>{const m={};et(!0,m,o.toRaw(h)),a[$n]=m};o.isReactive(t)||typeof t=="function"?o.watch(t,h=>{u.merge(h,l)},{immediate:!0}):u.merge(t,l),t.modelValue&&b(t.modelValue),a[Le]=u,o.provide(Le,u);let E=null,g=null;if(r!==null){const h=o.inject(be,null);E=Mt(a,h,s,n),u.broadcast=E,a[be]=E,o.provide(be,E),a.broadcast=($,w,...I)=>Reflect.apply(E.emit,E,[$,w,...I]);const m=o.inject(Ke,null);g=_t(a,m,{componentName:""}),u.validateSchema=g,a[Ke]=g,o.provide(Ke,g),a[at]=new Map,a.validate=($=!0)=>{const w=[];let I=null;const z={deep:!1};if($===!0)I={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;I={name:R=>R?B.indexOf(R)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(z.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const R=B.include;I={name:L=>L?R.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const R=B.exclude;I={name:L=>L?R.indexOf(L)===-1:!1}}else I={name:"*"}}if(I){const B=E?.emitToChildren(I,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let R=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(R=[...R,...L.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,I=!1)=>{if(I===!0){Reflect.ownKeys($).forEach(B=>{let R=String(B);const _=pl(u,R,{componentName:"",fieldName:R,pureDataValidate:!0},E,g);a[at].set(R,_);const C=$[R];C&&_.validateSchema.setRule(C)});return}if(w){const z=Reflect.ownKeys($),B={name:R=>z.includes(R)};E?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const I=$;w={name:z=>z?I.indexOf(z)!==-1:!1}}else if($!=null&&typeof $=="object"){const I=$;if(Array.isArray(I.include)&&I.include.length>0){const z=I.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const z=I.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&E?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const I={};if(et(!0,I,c()??{}),Array.isArray($))$.forEach(z=>{w[z]=I[z]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=I[B]});else if($&&Array.isArray($.exclude)){let z=$.exclude??[];Reflect.ownKeys(I).forEach(B=>{z.includes(B)||(w[B]=I[B])})}else Object.assign(w,I);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):E?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return o.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),E!==null&&(E.destroy(),a[be]=void 0),g!==null&&(g.destroy(),a[Ke]=void 0)}),u}function gl(e,t,l=[]){const r=o.getCurrentInstance()?.proxy;let a=o.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new Pt(i);return s.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,u=>{s.merge(u,l)},{immediate:!0}):s.merge(t,l),r[Le]=s,o.provide(Le,s),o.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function ml(e,t,l){const r=We(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function Se(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(be,null),s=Mt(r,i,a,l);r[be]=s,o.provide(be,s),r.broadcast=(g,h,...m)=>Reflect.apply(s.emit,s,[g,h,...m]);const u=o.inject(Ke,null);e.fieldName=e.fieldName??a;const d=_t(r,u,e);r[Ke]=d,o.provide(Ke,d),ml(r,d,a),r.validate=(g=null)=>{const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Lt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=d?.validate();h.push(w)}if(m){let w=null;const I={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const z=g;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const z=g;if(I.ignoreHidden=z.ignoreHidden,Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:R=>R?B.indexOf(R)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:R=>R?B.indexOf(R)===-1:!1}}else w={name:"*"}}if(w){const z=s.emitToChildren(w,"validate",I);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let I=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(I=[...I,...z.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&d?.setRule(m),h){const $={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new pa(r);r[dl]=f;const c=wt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sl()).forEach(g=>{f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cl()).forEach(g=>{f.on(g,h=>{c("reset")})}),o.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[dl]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...h)=>{Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{Reflect.apply(f.off,f,[h])}}}function pl(e,t,l,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return s.getValue()}};const u=_t({},r,l);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,E=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)E=!0,b=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),E=!0,b=g.deep??!1}else typeof f=="boolean"&&(b=f),E=!0;if(E){const g=u?.validate();c.push(g)}if(b){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const m=f;g={name:$=>$?m.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const m=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,m)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Mt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(e,t=-1){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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="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 Nn(e,t,l={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(l.headerHeight??t.headerHeight??-1),e.headerPadding=qe(l.headerPadding??t.headerPadding),e.footerHeight=fe(l.footerHeight??t.footerHeight??-1),e.footerPadding=qe(l.footerPadding??t.footerPadding),e.contentPadding=qe(l.contentPadding??t.contentPadding),n){const u=l.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(l.width??t.width??0,r)}}function yl(e,t={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Nn(n,a,t,!0,i,s,u,d);const f=o.reactive(n),c=e.getForParent(Xe);c&&(n.height=zt(e,c),n.width=Ht(e,c),o.watch([()=>zt(e,c),()=>Ht(e,c)],([E,g])=>{f.height=E,f.width=g}));const b=!c;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,g,h=-1,m=-1,$=0,w=0])=>{Nn(f,g,t,b,h,m,$,w)}),e.set(Xe,f),f}function jt(e){return e.get(Xe)}function St(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function xt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function zt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=St(e,t),n=xt(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ht(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function wa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function Sa(e){return!!e.getForParent(Xe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function En(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,l=1,n){const r=We();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(En(u,n))return u}const i=e.value;return En(i,n)?i:null}):o.computed(()=>{const a=e.value;return En(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(l){return se(l)})}function Oe(e){return ke(e,"disabled",0,function(l){return se(l)})}function de(e,t="modelValue",l){const n=o.toRef(e,t);let r=n.value;typeof l=="function"&&(r=l(n.value));const a=o.ref(r);return o.watch(n,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const bl=new Map,Kt=new Map;let kn=null;function xa(e){kn=e}function vl(e,t,l){if(l){let n=Kt.get(l);n||(n=new Map,Kt.set(l,n)),n.set(e,t)}else bl.set(e,t)}function Be(e,t,l){!l&&kn&&(l=kn(e)??void 0);let n=null;if(l){let r=Kt.get(l);r&&(n=r.get(t))}return n||(n=bl.get(t)),n}function Ta(e,t){for(let l in e){const n=e[l];vl(l,n,t)}}function $a(e){Kt.delete(e)}function Ca(){return{top:0,left:0,bottom:0,right:0}}function Na(e=0,t=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:n-fe(e,n)-fe(t,n)};return{rootWidth:l,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ea{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hl(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Ca(),t.safeAreaInset),i=Na(n,r),s=et({},i.pageLayout,t.pageLayout);l=l??it(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){xa(t)}setAPI(t,l,n){vl(t,l,n)}getAPI(t,l,n){return Be(t,l,n)}batchSetAPI(t,l){Ta(t,l)}clearScopeAPI(t){$a(t)}getRootDomain(){return it()}}const ka=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Ia=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Oa=e=>{ka.forEach(t=>{let l=t.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,t)):e.use(t)}),Ia.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={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}},wl={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}},Sl={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},xl=[];for(const e in Sl)xl.push(e);const Va=Symbol.for("InnerPageScopeKey"),Fa={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}},Da=(e,t)=>({inheritAttrs:!0,props:{...ve,...wl,...Fa},setup(l,{slots:n}){const r=Cn(l.name,l),a=o.inject(Va,!1);if(r){const f=yl(r,l);xe({getPageContentHeight:()=>zt(r,f),getPageContentWidth:()=>Ht(r,f),getPageHeaderHeight:()=>St(r,f),getPageFooterHeight:()=>xt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),s=o.computed(()=>({})),u=o.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,c],[b,E])=>{if(f&&b){const g=o.toRaw(b),h=o.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h)}if(c&&E){const g=o.toRaw(E),h=o.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);d(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return o.h("div",f,[n?.default?.()])}}}),{componentName:Aa,create:Ra,scope:mh}=ie("page"),In=Ra(Da(Aa));function Wt(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function On(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const La=(e,t,l,n=!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:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?jt(i):null;s&&(s.headerMounted=!0);const u=e,d=o.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=o.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(k,T),c&&(s.headerHeight=c),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(T.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const T=qe(r.padding);Object.assign(k,T)}return k}),E=o.ref(null),g=()=>{if(s&&E.value&&!Lt(E.value)){if(!n){const k=Wt(E.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;o.onMounted(()=>{s&&(qt(g,50,5,50,!0),window.ResizeObserver&&E.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(E.value)))}),o.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=o.computed(()=>{const k={};return b.value.height!==null&&b.value.height!==void 0&&(k.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(k.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(k.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(k.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(k.paddingBottom=`${b.value.bottom}px`),k}),$=o.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function I(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const R=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(T)}else if(r.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[o.h(r.leftIcon)]);k.push(T)}if(r.leftText){const T=o.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const T=o.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(T)}if(a.slots.rightIcon){const T=o.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(T)}else if(r.rightIcon){const T=o.h("view",{class:"right-icon",onClick:z},[o.h(r.rightIcon)]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!r.titleShow)return null;const k=[],T=a.slots.default?a.slots.default():null;if(T)k.push(T);else{if(r.title){const H=o.h("view",{class:"title-text"},[r.title]);k.push(H)}if(a.slots.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);k.push(H)}else if(r.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[o.h(r.titleIcon)]);k.push(H)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__title"},k)},C=()=>{const k=[],T=a.slots.bottom?a.slots.bottom():null;return T&&k.push(T),k.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const H=[],N=R();N&&H.push(N);const O=_();O&&H.push(O);const A=L();if(A&&H.push(A),H.length>0){const W=o.h("view",{class:f.value},H);k.push(W)}const U=C();U&&k.push(U)}if(k.length===0)return null;const T={class:d.value,style:m.value,ref:E};return o.h("view",T,k)}}}),{componentName:Ma,create:Ba,scope:_a}=ie("header-bar"),Vn=Ba(La(Ma,_a,Te.ArrowLeft));function qa(e,t,l=!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(n,r){const a=We(),i=a?jt(a):null,s=o.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?fe(n.height):null,d=o.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=qe(n.padding);Object.assign(g,h)}return g}),f=o.ref(null),c=()=>{if(i&&f.value&&!Lt(f.value)){if(!l){const g=Wt(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let b=null;o.onMounted(()=>{i&&(qt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const E=o.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Ne(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:E.value};return o.h("view",h,g)}}}}const{componentName:Pa,create:ja,scope:ph}=ie("footer-bar"),Fn=ja(qa(Pa));function za(e,t){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=We(),r=o.computed(()=>({[e]:!0})),a=n?jt(n):null,i=o.computed(()=>{const d={};if(n&&a){if(l.padding){const E=qe(l.padding);Object.assign(a.contentPadding,E)}const f=St(n,a),c=xt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const E=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+E}px`}if(a.contentPadding.bottom||c>0){const E=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+E}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(l.padding){const f=qe(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=o.ref(null),u=()=>{if(a&&s.value){const d=On(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return o.onMounted(()=>{u()}),n&&a&&o.watch([()=>St(n),()=>xt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ha,create:Ka,scope:yh}=ie("content"),Wa=Ka(za(Ha));function Ya(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("div",{ref:"contentRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Dn=Me(Wa,[["render",Ya]]),st="GroupStateKey",Tl=Symbol.for("GroupScopeKey");function Yt(){return o.inject(Tl,!1)}function Gt(e=!0){o.provide(Tl,e)}function Ga(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];xn(r)||(e[n]=r)})}function Ua(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ga(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function An(e,t,l=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const E=t===""||t===-1,g=fe(t);let h=ye(l);const m=fe(n);if(!E){let I=(g-(h-1)*m)/h;for(;c!==-1&&I>c;)h++,I=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&I<f;)h--,I=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&o.triggerRef(w)};if(r)b();else{const E=++u.passport;setTimeout(()=>{E===u.passport&&b()},50)}}function Ut(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.layout}function Xt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.order}function $l(e,t=1){if(t==="stretch")return-1;const l=ye(t);return l===-1?100:100*l/e}function Zt(e,t,l=1,n=0,r){const a={};let i=0;r?i=fe(r):i=$l(t.column,l),i>0&&(a.width=`${i}%`);const s=$l(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Jt(e,t,l=1,n=0){if(l==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ye(l);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ye(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Cl=Symbol("RollingStateKey");function Xa(e){o.provide(Cl,e)}function Za(){return o.inject(Cl,null)}function Rn(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function Ja(e){let t=Rn(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=Rn(l),document.body.removeChild(l)}return t}function Qa(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const ei={...ve,...wl,...Sl};function ti(e,t,l){return{props:ei,emits:["update:collapse"],setup(n,r){const a=Cn(n.name,n,xl),i=Ua(a,{type:n.type}),s=Yt();Gt(!0);const u=n.rollingDisplay?Za():null,d=o.ref(null),f=o.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=o.computed(()=>s&&a?Ut(a,!0).value:null),b=o.getCurrentInstance(),E=(q,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(q,!0,Y)};o.watch([()=>n.rules,()=>n.pureDataRules],([q,Y],[Q,ne])=>{if(q&&Q){const S=o.toRaw(Q),G=o.toRaw(q),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G)}if(Y&&ne){const S=o.toRaw(ne),G=o.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G,!0)}},{deep:!0});const g=e,h=o.computed(()=>{const q={};q.height=A.value;const Y=s?Xt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=Jt(Y,c.value,n.span,n.offset);Object.assign(q,Q)}else if(c.value.type==="flow"){const Q=Zt(Y,c.value,n.span,n.offset,n.width);Object.assign(q,Q)}}else if(n.width){const Q=Ne(n.width);q.width=Q}return q}),m=o.computed(()=>{const q=i.layout.value.type;return q==="grid"||q==="flow"?{[`${g}--${q}`]:!0,[`${g}--${q}-justify-${n.justify}`]:!0,[`${g}--${q}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${q}`]:!0,[`${g}--gutter`]:!0}}),$=o.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=Qa(_.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=o.toRef(n,"gutter"),I=o.toRef(n,"column"),z=o.computed(()=>s||f.value?!0:se(n.isWrap)),B=[],R=q=>{B.push(q)},L=()=>{let q=B.length;B.splice(0,q)},_=o.ref(-1),C=q=>{const Y=On(q).width;Y>0&&Y!==_.value&&(_.value=Y)};An(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([_,I,w],([q,Y,Q])=>{i.order.index=0,An(a,q,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=o.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),N=o.ref(),O=o.ref(),A=o.computed(()=>W.value||Ne(n.height)||""),U=o.ref(!1),W=o.ref(""),J=o.ref(!1);let Z=-1;const ee=(q,Y=!0)=>{const Q=N.value;if(Q&&U.value!==q){if(Z=Z===-1?Ja(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",q||(W.value="",J.value=!1)},q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,o.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=q,r.emit("update:collapse",q)}};o.watch(()=>n.collapse,q=>{ee(q)});const re=()=>{F()},F=q=>{q=q??!U.value,ee(q)};xe({toggleCollapse:F,doLayout:()=>{B[0]&&(C(B[0]),An(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,V=!0;const v=q=>{if(n.rules){const Y=o.toRaw(n.rules);E(Y)}if(n.pureDataRules){const Y=o.toRaw(n.pureDataRules);E(Y,!0)}if(tt&&(q&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const Y=B[0];C(Y),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{C(Y)}),D.observe(Y))}},K=()=>{D?.disconnect(),D=null},P=!f.value||u?.acquire();P&&(d.value=f.value?!0:null),o.onMounted(()=>{if(P&&(v(V),V=!1),f.value&&u){let q=null,Y=u.initialHeight;u.observe(N.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),q=setTimeout(()=>{q=null,d.value!==!1&&(v(V),V=!1)},100);else{if(q!==null&&clearTimeout(q),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=Rn(N.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),o.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(N.value)});const j=(q="right")=>{const Y=[];if(k.value){const S={class:T.value},G=o.h("span",S,[k.value]);Y.push(G)}const Q={class:H.value},ne=l(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?o.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:re},Y):null},M=(q,Y,Q,ne)=>{const S={...m.value};return Y===0&&(S[`${g}__first`]=!0),Q>=ne-1&&(S[`${g}__last`]=!0),o.h("div",{ref:R,key:`${Y}`,class:S,style:$.value},q)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const q=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},G=o.h("div",S,[r.slots.header()]);q.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=j("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${g}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const le=o.h("div",te);S.push(le)}if(r.slots.title){const te=o.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=o.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=j("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},le=o.h("div",te,S);q.push(le)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=M(Q,Y++,0,Q.length);q.push(S)}else if(ne==="flow"){const S=M(Q,Y++,0,Q.length);q.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=M([G],Y++,S,Q.length);q.push(te)}if(z.value){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[q])}else return q}}}}const{componentName:ni,create:oi,scope:li}=ie("group"),Ln=oi(ti(ni,li,(e,t)=>(e=e??Te.ArrowUp,o.h(y.ElIcon,t,{default:()=>[o.h(e)]}))));function ri(e){return e===window}const ai=/matrix\((.+)\)/,Nl=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(ri(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ai.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return l-=a,n-=i,l+=s,n+=u,{x:l,y:n}};class ii{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class si{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new ii,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const El=new si,kl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ui,create:ci}=ie("price"),fi=ci({props:{...kl},setup(e){const t=o.computed(()=>({[ui]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>yt(e.price)==0?"":Dt(e.price,e.decimalLength,!0,ye(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),di=["innerHTML"],hi=["innerHTML"];function gi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,di)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hi)):o.createCommentVNode("",!0)],2)}const Qt=Me(fi,[["render",gi]]),{componentName:Mn,create:mi}=ie("hint-text"),pi=mi({components:{Price:Qt},props:{...kl,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 l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),s=o.ref(!1),u=o.ref(null),d=(T,H,N,O,A,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},F=[];for(let x=0;x<ee.length;x++){const D=ee[x];if(F[0]=D,Z[1]&&(F[1]=Z[1]),D==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-A:v=H.x+N/2-A/2;const K=W-v-A;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(D==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-A:v=H.x+N/2-A/2;const K=W-v-A;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(D==="left"){const V=H.x-A-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(D==="right"){const V=H.x+N+e.arrowSize+e.offset;if(V+A<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:F.join("-"),bestInsetRect:re}},f=(T,H,N=10)=>{if(!tt||H===!1||!T)return;n.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,A=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,A,O);i.value=U,l.value=W,s.value=!0},c=o.ref(0),b=wt(()=>{f(e.message,e.visible)},10),E=o.ref(e.visible);o.watch(()=>e.visible,T=>{E.value=T});const g=o.computed(()=>E.value&&h.value),h=o.ref(!0),m=wt(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(m);o.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),El.watch(e.reference,b),$.observe(e.reference)}),o.onBeforeMount(()=>{El.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=o.computed(()=>{const T={[Mn]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),I=o.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),z=o.computed(()=>{const T=[`${Mn}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),B=o.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),R=o.computed(()=>({[`${Mn}__arrow`]:!0})),L=o.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),_=o.computed(()=>g.value&&e.closeOnClick),C=o.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:g,tipRef:u,classes:w,styles:I,textClasses:z,textStyles:B,arrowClasses:R,arrowStyles:L,overlayShow:_,overlayStyle:C,onClickOverlay:()=>{E.value=!1,t.emit("update:visible",!1)}}}}),yi=["innerHTML"];function bi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,yi))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Tt=Me(pi,[["render",bi]]);class Il{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Bn={},vi=new Il,ut=new Map,en=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}ut.clear()}},wi=e=>{e.unmount=en;const t=document.getElementById(e.id);if(t){const l=ut.get(e.id);l?e={...Bn,...l,...e}:e={...Bn,...e},e.transition=!1;const n=o.createVNode(Tt,e);return o.render(n,t),e.id}},Si=e=>{e.unmount=en;let t=e.id??`hinttext_${vi.get()}`;e={...Bn,...e},e.id=t,ut.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Tt,e);return o.render(n,l),document.body.appendChild(l),t},xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,l={},n=!0){xi(t);const r=l.id;return r&&ut.has(r)?wi({...l,message:t,reference:e}):(n&&en(),Si({...l,message:t,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ti(e,t,l,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Yt();Gt(!1);const d=o.computed(()=>u&&s?Ut(s,!1).value:null),f=e,c=o.ref(null),b=o.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),E=o.ref(null),g=o.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Xt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=Jt(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Zt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof E.value=="function"){const G=E.value(i);G&&Object.assign(S,G)}else if(E.value&&typeof E.value=="object"){const G=E.value;Object.assign(S,G)}return S}),h=o.ref(null),m=o.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(o.toRef(r,"labelPosition"),"labelPosition",Ae.Near),I=o.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${I.value}`]:!0})),B=o.computed(()=>({label:!0,[`label--${I.value}`]:!0})),R=ke(o.toRef(r,"labelWidth"),"labelWidth",Ae.Near),L=o.computed(()=>R&&R.value?{width:Ne(R.value)}:{}),_=o.computed(()=>({"label--string":!0,"label--required":m.value})),C=o.computed(()=>({content:!0,[r.contentClass]:!0})),k=o.computed(()=>({...r.contentStyle})),T=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){m.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){E.value=S}});const H=o.computed(()=>r.infoTip||T.infoTip),N=o.computed(()=>r.infoIcon||T.infoIcon),O=o.computed(()=>r.warnTip||T.warnTip),A=o.computed(()=>r.warnIcon||T.warnIcon),U=o.computed(()=>r.errorTip||T.errorTip),W=o.computed(()=>r.errorIcon||T.errorIcon),J=o.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=o.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=o.computed(()=>J.value==="error"?W.value:J.value==="warn"?A.value:J.value==="info"?N.value:null),F=o.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=o.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":R&&R.value&&(S["padding-left"]=Ne(R.value)),S}),D=o.ref();let V="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,le])=>{D.value&&(S&&!ge(G)?V?l.show(D.value,G,{...le,id:V,type:te},!0):V=l.show(D.value,G,{...le,type:te},!0):l.hide(V))});let v=null;const K=()=>{v||!D.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(D.value))},P=()=>{!v||!D.value||(v.unobserve(D.value),v=null)};o.watch(()=>se(r.appearListen),S=>{S?K():P()}),o.onMounted(()=>{se(r.appearListen)&&K()}),o.onUnmounted(P);const j=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:_.value},le=o.h("div",te,[G]);if(S.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();S.push(oe)}const X={class:B.value,style:L.value};return o.h("div",X,S)},M=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=o.h("div",te,[a.slots.fixedTip()]);S.push(le)}const G={ref:D,class:C.value,style:k.value};return o.h("div",G,S)},q=()=>{const S=re.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--icon"},[S()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--text"},[S()]):o.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=q();G&&S.push(G);const te=Y();te&&S.push(te);const le={class:F.value,style:x.value};return o.h("div",le,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=j();te&&G.push(te);const le=M();le&&G.push(le);const X={class:z.value},oe=o.h("div",X,G);S.push(oe);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const pe={class:b.value,style:g.value,prop:r.prop};return o.h("div",pe,S)}}}}const{componentName:$i,create:Ci,scope:Ni}=ie("item"),we=Ci(Ti($i,Ni,Ve,!1));function Ei(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const r=We(),a=Yt();Gt(!1);const i=o.computed(()=>a&&r?Ut(r,!1).value:null),s=e,u=o.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),d=o.computed(()=>{const f={},c=a&&r?Xt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=Jt(c,i.value,l.span,l.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Zt(c,i.value,l.span,l.offset,l.width);Object.assign(f,b)}else return l.width&&(f.width=Ne(l.width)),f;else l.width&&(f.width=Ne(l.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",f,n.slots.default()):o.h("div",f)}}}}const{componentName:ki,create:Ii,scope:vh}=ie("slot-item"),_n=Ii(Ei(ki));function Oi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=We(),s=Yt();Gt(!1);const u=o.computed(()=>{const d={};if(s&&i){const f=Ut(i,!1),c=Xt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=Jt(c,f.value,l.span,l.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Zt(c,f.value,l.span,l.offset,l.width);Object.assign(d,b)}else l.width&&(d.width=Ne(l.width))}else l.width&&(d.width=Ne(l.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(l.divide)for(let b=0;b<c.length;b++){if(b>0){const E=o.h("div",{class:{[`${r}__divide`]:!0}});d.push(E)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return o.h("div",f,d)}}}}const{componentName:Vi,create:Fi,scope:wh}=ie("row-item"),qn=Fi(Oi(Vi)),Pe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Ol={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 Di(e,t,l){return{props:{...ve,...Ee,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),g=N=>{c.value=N,s("update:modelValue",N),s("input",N)},h=N=>{s("change",N)};let m=de(n,"hintText"),$=o.ref(!1);const w=N=>{let A=N.target.value;f.value=!0,ge(m.value)||($.value=!0),s("focus",A,N)},I=N=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let A=N.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,N)},z=()=>{s("clear","")},B=o.ref(!1);let R=null;const L=()=>{n.showTooltip&&B.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{B.value=!0},150))},_=()=>{R&&(clearTimeout(R),B.value=!1,R=null)},C=o.computed(()=>B.value||$.value),k=o.computed(()=>B.value?c.value:m.value),T=o.computed(()=>yt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:g,onFocus:w,onBlur:I,onMouseover:L,onMouseleave:_},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:T.value&&(A.suffix=()=>[n.unit]);const U=[],W=o.h(y.ElInput,O,A);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Ol),hintText:k.value,hintVisible:C.value,prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ai,create:Ri,scope:Li}=ie("input-item"),Pn=Ri(Di(Ai,Li,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function $t(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Mi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bi=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function _i(){const e=o.getCurrentInstance();return new Bi(e.proxy)}function Fl(e,t,l){const n=Ze(e,t),r=Ze(e,l);if(n!==r)return!1;const a=$t(e,t),i=$t(e,l);return a===i}function Dl(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Vl(e,i);if(Array.isArray(s)&&s.length>0){const u=Dl(e,a,l,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(l==="text")u=Ze(e,i)===a;else if(l==="item")u=Fl(e,i,a);else{let d=$t(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function qi(e){return{text:e,value:e}}const Al={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Pi(e,t,l){return{props:{...ve,...Ee,...Al},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(q=>Ze(n,q)).join(" "):""),E=(M,q,Y,Q=!0)=>{const ne=Dl(n,M,q,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],le=c.value[G];if(!Fl(n,te,le)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],le=[];ne.forEach(ue=>{const pe=$t(n,ue),he=Ze(n,ue);G.push(pe),le.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(pe)});let X,oe,ae;se(n.multiple)?(f.value=G,X=o.toRaw(te),oe=le,ae=o.toRaw(ne)):(f.value=G[0]??"",X=o.toRaw(te[0]??""),oe=le[0]??"",ae=o.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",oe)}},g=o.ref(null),h=o.ref(null),m=o.computed(()=>h.value??g.value??[]),$=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,M=>se(M)),w=_i(),I=async(M,q)=>{if(M){const Y=await w.load("select",M,q);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>qi(G));g.value=S}else g.value=Y;else g.value=null}};o.watch([()=>n.source,()=>n.params],([M,q])=>{h.value=null,I(M,q)},{immediate:!$.value});let z=!1;const B=()=>{z||(z=!0,I(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([M,q])=>{if(C()&&se(n.multiple)){He(q,f.value)||(f.value=q);return}E(q,n.valueType,m.value,!1)});let R=null,L=o.ref(!1);typeof n.remoteMethod=="function"&&(R=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const q=await n.remoteMethod(M);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});let _=null;typeof n.filterMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const q=await n.filterMethod(M,g.value);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});const C=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=o.ref(!1),T=e,H=o.computed(()=>({[T]:!0})),N=M=>{n.allowCreate||C()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):E(M,"value",m.value,!0)};let O=de(n,"hintText"),A=o.ref(!1);const U=M=>{let Y=M.target.value;k.value=!0,ge(O.value)||(A.value=!0),s("focus",Y,M)},W=M=>{setTimeout(()=>{A.value&&(A.value=!1),k.value=!1},0);let Y=M.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,M)},J=()=>{s("clear","")},Z=o.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},F=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=o.computed(()=>Z.value||A.value),D=o.computed(()=>Z.value?b.value:O.value),V=o.ref(!1),v=M=>{V.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,q)=>{const Y=[];return M.forEach((Q,ne)=>{const S=Vl(n,Q);if(Array.isArray(S)&&S.length>0){const G=P(S,q),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(o.h(y.ElOptionGroup,X,{default:()=>G}))}else{const G=$t(n,Q),te=Ze(n,Q),le=Mi(n,Q),oe={key:`${G}_${ne}`,label:te,disabled:le,value:G};if(typeof q=="function")Y.push(o.h(y.ElOption,oe,{default:()=>q(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=o.h("span",ae,[G]),pe={class:{"fox-select-item__option-right":!0}},he=o.h("span",pe,[te]),gt=o.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(o.h(y.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?Y.push(o.h(y.ElOption,oe,{default:()=>[G]})):Y.push(o.h(y.ElOption,oe))}}),Y},j=o.ref();return xe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const q={...Pe(r.attrs),ref:j,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:N,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof R=="function"&&(q["remote-method"]=R,q.loading=L.value),typeof _=="function"&&(q["filter-method"]=_,q.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>P(m.value,r.slots.option);const Q=[],ne=o.h(y.ElSelect,q,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Al),hintText:D.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:F};return $.value&&(te["appear-listen"]=!0,te.onAppear=B),o.h(l,te,S)}}}}const{componentName:ji,create:zi,scope:Hi}=ie("select-item"),jn=zi(Pi(ji,Hi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",E="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,w={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("_")},I=function(N,O,A){var U=String(N);return!U||U.length>=O?N:""+Array(O+1-U.length).join(A)+N},z={s:I,z:function(N){var O=-N.utcOffset(),A=Math.abs(O),U=Math.floor(A/60),W=A%60;return(O<=0?"+":"-")+I(U,2,"0")+":"+I(W,2,"0")},m:function N(O,A){if(O.date()<A.date())return-N(A,O);var U=12*(A.year()-O.year())+(A.month()-O.month()),W=O.clone().add(U,c),J=A-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(A-W)/(J?W-Z:Z-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:c,y:E,w:f,d,D:g,h:u,m:s,s:i,ms:a,Q:b}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},B="en",R={};R[B]=w;var L=function(N){return N instanceof T},_=function N(O,A,U){var W;if(!O)return B;if(typeof O=="string"){var J=O.toLowerCase();R[J]&&(W=J),A&&(R[J]=A,W=J);var Z=O.split("-");if(!W&&Z.length>1)return N(Z[0])}else{var ee=O.name;R[ee]=O,W=ee}return!U&&W&&(B=W),W||!U&&B},C=function(N,O){if(L(N))return N.clone();var A=typeof O=="object"?O:{};return A.date=N,A.args=arguments,new T(A)},k=z;k.l=_,k.i=L,k.w=function(N,O){return C(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function N(A){this.$L=_(A.locale,null,!0),this.parse(A)}var O=N.prototype;return O.parse=function(A){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(k.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(m);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(A),this.$x=A.x||{},this.init()},O.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(A,U){var W=C(A);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(A,U){return C(A)<this.startOf(U)},O.isBefore=function(A,U){return this.endOf(U)<C(A)},O.$g=function(A,U,W){return k.u(A)?this[U]:this.set(W,A)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(A,U){var W=this,J=!!k.u(U)||U,Z=k.p(A),ee=function(P,j){var M=k.w(W.$u?Date.UTC(W.$y,j,P):new Date(W.$y,j,P),W);return J?M:M.endOf(d)},re=function(P,j){return k.w(W.toDate()[P].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(j)),W)},F=this.$W,x=this.$M,D=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case E:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(F<v?F+7:F)-v;return ee(J?D-K:D+(6-K),x);case d:case g:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(A){return this.startOf(A,!1)},O.$set=function(A,U){var W,J=k.p(A),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[g]=Z+"Date",W[c]=Z+"Month",W[E]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===E){var F=this.clone().set(g,1);F.$d[ee](re),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(A,U){return this.clone().$set(A,U)},O.get=function(A){return this[k.p(A)]()},O.add=function(A,U){var W,J=this;A=Number(A);var Z=k.p(U),ee=function(x){var D=C(J);return k.w(D.date(D.date()+Math.round(x*A)),J)};if(Z===c)return this.set(c,this.$M+A);if(Z===E)return this.set(E,this.$y+A);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=l,W)[Z]||1,F=this.$d.getTime()+A*re;return k.w(F,this)},O.subtract=function(A,U){return this.add(-1*A,U)},O.format=function(A){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=A||"YYYY-MM-DDTHH:mm:ssZ",Z=k.z(this),ee=this.$H,re=this.$m,F=this.$M,x=W.weekdays,D=W.months,V=function(j,M,q,Y){return j&&(j[M]||j(U,J))||q[M].slice(0,Y)},v=function(j){return k.s(ee%12||12,j,"0")},K=W.meridiem||function(j,M,q){var Y=j<12?"AM":"PM";return q?Y.toLowerCase():Y},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:k.s(F+1,2,"0"),MMM:V(W.monthsShort,F,D,3),MMMM:V(D,F),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:k.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:k.s(re,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z};return J.replace($,function(j,M){return M||P[j]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(A,U,W){var J,Z=k.p(U),ee=C(A),re=(ee.utcOffset()-this.utcOffset())*n,F=this-ee,x=k.m(this,ee);return x=(J={},J[E]=x/12,J[c]=x,J[b]=x/3,J[f]=(F-re)/6048e5,J[d]=(F-re)/864e5,J[u]=F/r,J[s]=F/n,J[i]=F/l,J)[Z]||F,W?x:k.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return R[this.$L]},O.locale=function(A,U){if(!A)return this.$L;var W=this.clone(),J=_(A,U,!0);return J&&(W.$L=J),W},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),H=T.prototype;return C.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",E],["$D",g]].forEach(function(N){H[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),C.extend=function(N,O){return N.$i||(N(O,T,C),N.$i=!0),C},C.locale=_,C.isDayjs=L,C.unix=function(N){return C(1e3*N)},C.en=R[B],C.Ls=R,C.p={},C})})(Rl);var Ki=Rl.exports;const je=Ge(Ki);var Ll={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(m){this[h]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},b=function(h,m){var $,w=s.meridiem;if(w){for(var I=1;I<=24;I+=1)if(h.indexOf(w(I,0,m))>-1){$=I>12;break}}else $=h===(m?"pm":"PM");return $},E={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var m=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var m=c("months"),$=(c("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var m=c("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var m,$;m=h,$=s&&s.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,k,T){var H=T&&T.toUpperCase();return k||$[T]||l[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,O,A){return O||A.slice(1)})})).match(n),I=w.length,z=0;z<I;z+=1){var B=w[z],R=E[B],L=R&&R[0],_=R&&R[1];w[z]=_?{regex:L,parser:_}:B.replace(/^\[|\]$/g,"")}return function(C){for(var k={},T=0,H=0;T<I;T+=1){var N=w[T];if(typeof N=="string")H+=N.length;else{var O=N.regex,A=N.parser,U=C.slice(H),W=O.exec(U)[0];A.call(k,W),C=C.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,I=w.parse;w.parse=function(z){var B=z.date,R=z.utc,L=z.args;this.$u=R;var _=L[1];if(typeof _=="string"){var C=L[2]===!0,k=L[3]===!0,T=C||k,H=L[2];k&&(H=L[2]),s=this.$locale(),!C&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=g(W)(U),ee=Z.year,re=Z.month,F=Z.day,x=Z.hours,D=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,P=new Date,j=F||(ee||re?1:P.getDate()),M=ee||P.getFullYear(),q=0;ee&&!re||(q=re>0?re-1:P.getMonth());var Y=x||0,Q=D||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(M,q,j,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(M,q,j,Y,Q,ne,S)):new Date(M,q,j,Y,Q,ne,S)}catch{return new Date("")}}(B,_,R),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&B!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var N=_.length,O=1;O<=N;O+=1){L[1]=_[O-1];var A=$.apply(this,L);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}O===N&&(this.$d=new Date(""))}else I.call(this,z)}}})})(Ll);var Wi=Ll.exports;const Yi=Ge(Wi);var Ml={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(Ml);var Gi=Ml.exports;const Ui=Ge(Gi);var Bl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,E,g,h){var m=c.name?c:c.$locale(),$=i(m[b]),w=i(m[E]),I=$||w.map(function(B){return B.slice(0,g)});if(!h)return I;var z=m.weekStart;return I.map(function(B,R){return I[(R+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(Bl);var Xi=Bl.exports;const Zi=Ge(Xi);var _l={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(l);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),E=this.diff(b,l,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(_l);var Ji=_l.exports;const Qi=Ge(Ji);var ql={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(ql);var es=ql.exports;const ts=Ge(es);var Pl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Pl);var ns=Pl.exports;const os=Ge(ns);var jl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(jl);var ls=jl.exports;const rs=Ge(ls);var zl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(zl);var as=zl.exports;const is=Ge(as);je.extend(Zi),je.extend(Ui),je.extend(Yi),je.extend(Qi),je.extend(ts),je.extend(os),je.extend(rs),je.extend(is);const Re={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t){e=e||0;let l=t??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Hl={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"}},Kl={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 ss(e,t,l){return{props:{...ve,...Ee,...Hl,...Kl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=o.computed(()=>A.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),E=o.computed(()=>A.value?"longTermKey":"normalKey"),g=j=>{if(A.value&&n.type==="daterange"){const M=[...c.value];M[0]=j,c.value=M}else c.value=j;s("update:modelValue",c.value),s("change",c.value)},h=o.computed(()=>A.value&&n.type==="daterange"?"date":n.type),m=e,$=o.computed(()=>({[`${m}`]:!0,"is-long":A.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),I=o.ref(!1);const z=j=>{let q=j.target.value;f.value=!0,ge(w.value)||(I.value=!0),s("focus",q,j)},B=j=>{setTimeout(()=>{I.value&&(I.value=!1),f.value=!1},0);let q=j.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),s("blur",q,j)},R=()=>{s("clear","")},L=j=>{s("calendar-change",j)},_=(j,M,q)=>{s("panel-change",j,M,q)},C=j=>{s("visible-change",j)},k=ke(o.computed(()=>n.longTermText),"longTermText",Ae.Near),T=ke(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),H=ke(o.computed(()=>n.longTermValue),"longTermValue",Ae.Near),N=ke(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let O=null;const A=o.ref(se(n.longTerm)),U=j=>{if(A.value=j,s("update:longTerm",j),j){if(O=c.value,n.type==="daterange"){const M=[];Array.isArray(H.value)?(M[0]=c.value?c.value[0]??H.value[0]:null,M[1]=H.value[1]??H.value[0]):(M[0]=c.value?c.value[0]??H.value:null,M[1]=A.value),M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const j=()=>{if(A.value===!0){if(O=c.value,n.type==="daterange"){const M=[c.value[0]];Array.isArray(H.value)?M[1]=H.value[1]??H.value[0]:M[1]=A.value,M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(A.value=!0)};j(),o.watch([()=>n.longTerm],([M])=>{A.value!==M&&j()}),o.watch([()=>c.value],([M])=>{let q=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Y=M[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Re.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(N.value)&&N.value.findIndex(S=>Y==S)!==-1)&&(q=!0)}catch(Y){console.error(Y)}A.value!==q&&(A.value=q)},{immediate:!0})}const J=o.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=o.ref(),ee=o.ref(),re=/^\d+$/,F=(j,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(j,M):re.test(j)&&j.length===n.flashFillThreshold,x=(j,M)=>{let q;if(typeof n.flashFillFormat=="function")q=n.flashFillFormat(j,M);else{const Q=n.flashFillFormat??"YYYYMMDD";q=Re.parser(j,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Re.format(q,Y)},D=j=>j?j.endsWith("range"):!1,V=j=>{if(!j.target)return;const M=j.target.value??"";if(F(M,n.type)){const q=x(M,n.type);if(D(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=q,g(Y)}else g(q)}},v=j=>{if(!j.target)return;const M=j.target.value??"";if(F(M,n.type)){const q=x(M,n.type);if(D(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=q,g(Y)}else g(q)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(D(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].addEventListener("input",V),j[1]&&j[1].addEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.addEventListener("input",V)}},P=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(D(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].removeEventListener("input",V),j[1]&&j[1].removeEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.removeEventListener("input",V)}};return o.onMounted(K),o.onBeforeUnmount(P),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const M={...r.attrs,key:E.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:R,onFocus:z,onBlur:B,onCalendarChange:L,onPanelChange:_,onVisibleChange:C},q={};r.slots["range-separator"]&&(q["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(q.default=r.slots.cell);const Y=[],Q=o.h(y.ElDatePicker,M,q);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(A.value){const le=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=o.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),oe={class:J.value},ae=o.h("div",oe,{default:()=>[le,X]});Y.push(ae)}if(!i.value&&!a.value){const le={label:T.value||k.value,disabled:i.value||a.value,modelValue:A.value,"onUpdate:modelValue":U},X=o.h(y.ElCheckbox,le),oe=o.h("div",{class:{[`${m}__append`]:!0}},[X]);ne.append=()=>oe}}const G={...Ce(n,Hl,Kl),ref:Z,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:I.value,prop:`${n.prop}_item`};return o.h(l,G,ne)}}}}const{componentName:us,create:cs,scope:fs}=ie("date-item"),zn=cs(ss(us,fs,we)),Wl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ds(e,t,l){return{props:{...ve,...Ee,...Wl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=R=>{c.value=R,s("update:modelValue",R),s("change",R)};let h=de(n,"hintText"),m=o.ref(!1);const $=R=>{let _=R.target.value;f.value=!0,ge(h.value)||(m.value=!0),s("focus",_,R)},w=R=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let _=R.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),s("blur",_,R)},I=()=>{s("clear","")},z=R=>{s("visible-change",R)},B=o.ref();return xe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:I,onFocus:$,onBlur:w,onVisibleChange:z},_={},C=[],k=o.h(y.ElTimePicker,L,_);C.push(k);const T={default:()=>C};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const N={...Ce(n,Wl),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,N,T)}}}}const{componentName:hs,create:gs,scope:ms}=ie("time-item"),Hn=gs(ds(hs,ms,we)),Yl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,l){return{props:{...ve,...Ee,...Yl},emits:["change","update:modelValue","blur","focus","clear"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=B=>{c.value=B,s("update:modelValue",B),s("change",B)};let h=de(n,"hintText"),m=o.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,ge(h.value)||(m.value=!0),s("focus",L,B)},w=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,B)},I=()=>{s("clear","")},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const R={...r.attrs,ref:z,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:I,onFocus:$,onBlur:w},L={},_=[],C=o.h(y.ElTimeSelect,R,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,Yl),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-select-item"),Kn=bs(ps(ys,vs,we));function Gl(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function Ul(e,t,l=20){if(typeof t=="string"&&(t=ye(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ho(`${e}`,`${t}`);return Gl(n)}else{let n=mn(`${e}`,Ko(`${t}`),20);return Gl(n)}}function ws(e,t=-1,l=!1,n=3,r=","){return Dt(e,t,l,n,r)}function Xl(e,t,l,n,r=!0){if(e=="")return"";if(e=Wo(e),t=ye(t),t==1)return e;if(n)e=Ul(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(ye(l)+2,"0"):e=mn(e,1,ye(l)));else{let a=-1*t;e=Ul(e,a)}return e}function Zl(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=pn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=pn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const Jl={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ss(e,t,l){return{props:{...ve,...Ee,...Jl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref(!1),d=de(n,"modelValue"),f=o.ref("");o.watch([()=>d.value,()=>n.rates,()=>n.precision],([N,O,A])=>{if(ge(N)){f.value="";return}const U=Xl(N,O,A,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=o.computed(()=>{let N="";return u.value&&(N=f.value),N}),{t:b}=De.useFoxI18n(t),E=o.computed(()=>{let N=n.placeholder??"";return!u.value&&!ge(f.value)?N=ws(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=b(["placeholder",N]),N}),g=e,h=o.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=ke(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=o.ref(""),w=o.computed(()=>{let N=$.value;return ge(N)&&(N=n.errorTip??""),N}),I=o.ref(""),z=o.ref(!1),B=(N,O)=>{if(N=`${N}`,ge(N)){f.value="",d.value="",O.forEach(A=>{s(A,"")}),se(n.showTip)&&z.value&&(z.value=!1);return}if(N.length>=2){let A=N;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){o.triggerRef(f);return}}if(N!="-"){if(!tl(N)){o.triggerRef(f);return}if(n.integerLength!=-1&&nl(N)>Number(n.integerLength)){o.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ol(N)>Number(n.decimalLength)){o.triggerRef(f);return}let A=Zl(N,n);if(A.maxValid===!1){$.value=A.message,o.triggerRef(f);return}}else if(n.min!=null&&ye(n.min)>=0){o.triggerRef(f);return}I.value=N,se(n.showTip)&&(z.value=N.length>0),f.value=N,d.value=Xl(N,n.rates,n.precision,!0),O.forEach(A=>{s(A,d.value)})},R=N=>{B(N,["update:modelValue","input"])},L=N=>{B(N,["update:modelValue","change"])},_=N=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(I.value=O,z.value=!0)}$.value="",s("focus",d.value,N)},C=N=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&z.value===!0&&(z.value=!1)},0),!ge(f.value)){let O=Zl(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,N),s("blur",d.value,N)},k=()=>{s("clear","")},T=o.computed(()=>yt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:R,onChange:L,onFocus:_,onBlur:C},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:T.value&&(A.suffix=()=>[n.unit]);const U=[],W=o.h(y.ElInput,O,A);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Jl),errorTip:w.value,hintText:I.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:xs,create:Ts,scope:$s}=ie("money-item"),Wn=Ts(Ss(xs,$s,we)),Ql={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 Cs(e,t,l){return{props:{...ve,...Ee,...Ql},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__append`]:R.value})),g=o.computed(()=>({[`${b}__unit`]:!0})),h=_=>{c.value=_,s("update:modelValue",_),s("input",_)},m=_=>{s("change",_)};let $=de(n,"hintText"),w=o.ref(!1);const I=_=>{let k=_.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",k,_)},z=_=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,_)},B=()=>{s("clear","")},R=o.computed(()=>yt(n.unit)>0),L=o.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const C={...Pe(r.attrs),ref:L,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:m,onInput:h,onFocus:I,onBlur:z},k={},T=[],H=o.h(y.ElInputNumber,C,k);T.push(H);const N={default:()=>T};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const A={...Ce(n,Ql),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)N.append=r.slots.append;else if(R.value){const W={class:g.value},J=o.h("div",W,[n.unit]);N.append=()=>J}return o.h(l,A,N)}}}}const{componentName:Ns,create:Es,scope:ks}=ie("input-number-item"),Yn=Es(Cs(Ns,ks,we));function Ue(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 Is(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Os=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function Vs(){const e=o.getCurrentInstance();return new Os(e.proxy)}function Gn(e,t,l){const n=Ue(e,t),r=Ue(e,l);if(n!==r)return!1;const a=ot(e,t),i=ot(e,l);return a===i}function er(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=er(e,s,l,n);r.push(u)}else{let u=!1;for(let d of a){if(l==="text")u=Ue(e,d)===s;else if(l==="item")u=Gn(e,d,s);else{let f=ot(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Is(e,d);break}}if(!u)break}}return r}function Fs(e){return{text:e,value:e}}const tr={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ds(e,t,l){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(j=>Array.isArray(j)?j.map(q=>Ue(n,q)).join(" "):Ue(n,j)).join(" "):""),E=(P,j,M,q=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const S=o.toRaw(P);if(q){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);te.push(oe)}),s("update:pathNodes",te)}else{const le=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",le)}s("update:modelValue",S),s("change",S)}return}const Y=er(n,P,j,M);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,q&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(k.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(C.value=S.join(n.separator))}else C.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let le=0;le<G.length;le++)if(!Gn(n,G[le],te[le])){ne=!1;break}}else Gn(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(ot(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(ot(n,ae));S.push(X),G.push(oe)}else S.push(ot(n,le)),n.valueType==="text"?G.push(Ue(n,le)):n.valueType==="item"?G.push(le):G.push(ot(n,le))}),f.value=S;const te=o.toRaw(G);q&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},g=o.ref([]),h=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,P=>se(P)),m=Vs(),$=async(P,j)=>{if(P){const M=await m.load("cascader",P,j);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>Fs(ne));g.value=Q}else g.value=M}};o.watch([()=>n.source,()=>n.params],async([P,j])=>{$(P,j)},{immediate:!(h.value||n.lazy)});let w=!1;const I=()=>{w||(w=!0,$(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([P,j])=>{E(j,n.valueType,P,!1)}),n.lazy&&E(n.modelValue,"value",[],!1);let z=null,B=o.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const j=await n.remoteMethod(P);g.value=j}catch(j){console.error(j)}B.value=!1}});const R=o.ref(!1),L=e,_=o.computed(()=>({[L]:!0})),C=o.ref(null),k=o.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,P.lazyLoad=async(j,M)=>{const q=await m.load("cascader",n.source,j,!0);if(j?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===j.level){const Y=j.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(C.value=Q.join(n.separator))}else C.value=null;M(q)}),P}),T=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),f.value=P):E(P,"value",g.value,!0)};let H=de(n,"hintText"),N=o.ref(!1);const O=P=>{let M=P.target.value;R.value=!0,ge(H.value)||(N.value=!0),s("focus",M,P)},A=P=>{setTimeout(()=>{N.value&&(N.value=!1),R.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),x.value||s("blur",M,P)},U=()=>{s("clear","")},W=o.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=o.computed(()=>W.value||N.value),F=o.computed(()=>W.value?b.value:H.value),x=o.ref(!1),D=P=>{x.value=P,s("visible-change",P),P||s("selected")},V=P=>{s("remove-tag",P)},v=P=>{s("expand-change",P)},K=o.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const j={...r.attrs,ref:K,class:_.value,props:k.value,clearable:n.clearable,placeholder:C.value||d.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:A,onVisibleChange:D,onRemoveTag:V,expandChange:v};typeof z=="function"&&(j["remote-method"]=z,j.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const q=[],Y=o.h(y.ElCascader,j,M);q.push(Y);const Q={default:()=>q};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,tr),hintText:F.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=I),o.h(l,S,Q)}}}}const{componentName:As,create:Rs,scope:Ls}=ie("cascader-item"),Un=Rs(Ds(As,Ls,we)),nr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ms(e,t,l){return{props:{...ve,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},m=L=>{s("select",L)};let $=de(n,"hintText"),w=o.ref(!1);const I=L=>{let C=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",C,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let C=L.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),s("blur",C,L)},B=()=>{s("clear","")},R=o.ref();return xe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()}}),()=>{const _={...r.attrs,ref:R,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:I,onBlur:z,onSelect:m},C={};r.slots.prepend&&(C.prepend=r.slots.prepend),r.slots.append&&(C.append=r.slots.append),r.slots.prefix&&(C.prefix=r.slots.prefix),r.slots.suffix&&(C.suffix=r.slots.suffix),r.slots.option&&(C.default=r.slots.option);const k=[],T=o.h(y.ElAutocomplete,_,C);k.push(T);const H={default:()=>k};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return o.h(l,O,H)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("autocomplete-item"),Xn=_s(Ms(Bs,qs,we));function Ps(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[l])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l]),u=c[r]}}return i}let js=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function zs(){const e=o.getCurrentInstance();return new js(e.proxy)}const or={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Hs(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){const a=zs(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([d,f])=>{i.value=await a.load(l.sourceType,d,f)},{immediate:!0});const s=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Ps(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)}),u=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},s.value):o.h(u,d,{default:()=>s.value}):o.h(u,d,s.value)}}}}const{componentName:Sh,create:Ks,scope:xh}=ie("mapping"),Ct=Ks(Hs());function Ws(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Ys(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Ws(i.row,i.column.property);return r.default?o.h(Ct,{...l,modelValue:s},{default:r.default}):o.h(Ct,{...l,modelValue:s})}};return o.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Th,create:Gs,scope:$h}=ie("table-mapping-column"),Zn=Gs(Ys()),Us=Symbol.for("TableStateKey");function lr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Xs(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Us,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=lr(s.row,s.column.property),d=a?lr(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=o.h("span",c,[o.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":f}};return o.h("label",E,[b])}};return o.h(y.ElTableColumn,{...n},i)}}}}const{componentName:Ch,create:Zs,scope:Nh}=ie("table-radio-column"),Jn=Zs(Xs()),Js={},Qs={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"},eu=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function tu(e,t){return o.openBlock(),o.createElementBlock("svg",Qs,eu)}const nu=Me(Js,[["render",tu]]),{componentName:kh,create:ou,scope:Ih}=ie("table-setting"),lu={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:"不固定"}},ru=ou({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:nu,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...lu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=o.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=o.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(q=>q.prop===M.prop?(M.label=q.label,!0):!1)});const P=[];r.value=v.map((M,q)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:q})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(I.value=!0),R.value=P},E=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,K)=>{if(v.length!==K.length)return!1;const P=v.map(j=>E(j));for(let j of K){const M=E(j);if(P.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((j,M)=>({...j,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&g(P,v)||(v=P)}b(v,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=o.ref(!1),I=o.ref(!1),z=v=>{const K=[];r.value.forEach(j=>{v&&!(j.label===""||j.type)&&K.push(j.prop),j.visible=v}),w.value=!1,I.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(I.value=!0),R.value=K,m()},B=()=>{h(n),m()},R=o.ref([]),L=v=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const j=v.indexOf(P.prop)!==-1;P.visible=j}),w.value=!1,I.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(I.value=!0),m()},_=()=>{h()};o.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(C.roleType=K.dataset.roleType,C.index=K.dataset.index)},H=v=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},N=v=>{const K=v.currentTarget;v.relatedTarget;const P=k(K);if(!P)return;const j=P.dataset&&P.dataset.roleType;C.roleType===j&&(v.preventDefault(),C.currentRow&&C.currentRow!==P&&C.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),C.currentRow=P)},O=v=>{v.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},A=v=>{const K=v.currentTarget,P=k(K);if(!P)return;const j=P.dataset&&P.dataset.roleType;if(C.roleType!==j)return;v.preventDefault();const M=Number(C.index),q=Number(P.dataset.index);if(M!==q){if(M<q){const Y=r.value[M];r.value.splice(M,1),r.value.splice(q,0,Y)}else{const Y=r.value[M];r.value.splice(M,1),r.value.splice(q+1,0,Y)}b(r.value,n),m()}},U=v=>{const K=r.value[v];K.fixed="left",m()},W=v=>{const K=r.value[v];K.fixed="right",m()},J=v=>{const K=r.value[v];K.fixed=void 0,m()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:I,handleCheckAllChange:z,handleReset:B,checkedValue:R,handleCheckChange:L,onShow:_,onDragStart:T,onDragEnd:H,onDragOver:N,onDragLeave:O,onDrop:A,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,P)=>{const j=v.currentTarget;if(j){const M=Math.floor(j.offsetWidth);if(Math.floor(re(j))>M){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(j,P,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const P=Z.get(K);P&&(Ve.hide(P),P===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const P=v.currentTarget;P&&(ee&&Ve.hide(ee),ee=Ve.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),au={class:"fox-table-setting"},iu={class:"fox-table-setting__header"},su={class:"fox-table-setting__body"},uu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},cu={key:0,class:"fox-table-setting__body-title"},fu=["data-index","draggable"],du=["onMouseover","onMouseleave"],hu={class:"tools-item"},gu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},mu={key:0,class:"fox-table-setting__body-title"},pu=["data-index","draggable"],yu=["onMouseover","onMouseleave"],bu={class:"tools-item"},vu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},wu={key:0,class:"fox-table-setting__body-title"},Su=["data-index","draggable"],xu=["onMouseover","onMouseleave"],Tu={class:"tools-item"};function $u(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("Download"),b=o.resolveComponent("fox-checkbox"),E=o.resolveComponent("FoxCheckboxGroup"),g=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(g,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",au,[o.createElementVNode("div",iu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",su,[o.createVNode(E,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",uu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",cu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,du)]),_:2},1032,["label"]),o.createElementVNode("div",hu,[o.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,fu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",gu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",mu,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,yu)]),_:2},1032,["label"]),o.createElementVNode("div",bu,[o.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,pu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",vu,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",wu,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(b,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,xu)]),_:2},1032,["label"]),o.createElementVNode("div",Tu,[o.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,Su))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const tn=Me(ru,[["render",$u]]);let Cu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,s){if(Array.isArray(l)){let d=(n-1)*r,f=d+r;f>l.length&&(f=l.length);const c=l.slice(d,f);return{totalSize:l.length,page:c}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(u,null,[l,n,r,a,i,s]))}};function Nu(){const e=o.getCurrentInstance();return new Cu(e.proxy)}class Eu{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function rr(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const ku=Symbol.for("TableStateKey"),ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},ir={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Qn={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:"不固定"}},Iu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ou(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function eo(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ou(n,r);if(a!==i)return!1}return!0})}function Vu(e,t,l){return{inheritAttrs:!1,props:{...ve,...Ee,...ar,...ir,...Qn,...Iu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=De.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return R.value}}},n.prop??r.attrs.name),s=e,u=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),f=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=o.shallowRef({}),E=o.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),g=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),m=se(n.infiniteLoad);m||(o.watch(()=>n.pageIndex,X=>{g.value=X}),o.watch(()=>n.pageSize,X=>{h.value=X}),o.watch([g,h],([X,oe],[ae,ue])=>{oe!==ue&&(g.value=1,X=1),k(n.data,X,oe,E.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&o.watch([()=>n.data,E],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(_=!0),!(!Array.isArray(X)&&He(X,ae)&&He(oe,ue))&&(m?(g.value=0,z.value=!0,R.value=[],H()):g.value===1?k(X,g.value,h.value,oe):g.value=1))},{deep:!0});const w=X=>{g.value=X,i("page-index-change",X)},I=X=>{h.value=X,i("page-size-change",X)},z=o.ref(!0),B=o.ref(0),R=o.ref(),L=Nu();let _=!0;const C=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,X=>se(X)),k=async(X,oe,ae,ue,pe)=>{_=!1;try{if(pe===!0){if(!z.value)return!1;const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,R.value,he.page),setTimeout(()=>{i("loaded-data")},250),(R.value?.length??0)>=B.value)||he.page.length<ae?(z.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,R.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),B.value=0,R.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!z.value){T=!1;return}g.value+=1,await k(n.data,g.value,h.value,E.value,!0),T=!1}},N=(X={},oe=!1)=>new Promise(async ae=>{b.value=o.toRaw(X??{}),oe||(g.value=n.pageIndex??1),m===!0?(g.value=0,R.value=[],z.value=!0,await H()):await k(n.data,g.value,h.value,E.value),ae()}),O=()=>{B.value=0,R.value=[],m===!0&&(g.value=0,z.value=!0)};let A=!1;const U=()=>{A||(A=!0,N())},W=o.ref(null);if(m===!0){let X=null;const oe=()=>{W.value&&(X=new IntersectionObserver(ue=>{let pe=!1;for(let he of ue)if(he.intersectionRatio>0){pe=!0;break}pe&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};o.onMounted(oe),o.onBeforeUnmount(ae)}$()&&!C.value&&N();const J=o.ref(null);o.provide(ku,{currentRow:J});const Z=(X,oe)=>{J.value=X,i("current-change",X,oe)},ee=(X,oe,ae)=>{i("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],F=(X,oe)=>{if(i("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,D=rr(),V=o.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:V.value}),P=X=>{V.value=[...X],M()},j=async()=>{const X=await D.load(x);X&&(V.value=X)},M=()=>{D.save(x,V.value)},q=()=>{D.remove(x)};j();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=o.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const pe=Y(ue.props);oe.set(pe,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const pe=Y(ue),he=oe.get(pe);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=o.shallowRef(new Map),S=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?oe=>{const ae=[];let ue=S(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),o.triggerRef(ne)},le=o.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!R.value)return;const ae=eo(R.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!R.value)return;const ae=eo(R.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!R.value)return;const oe=eo(R.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:N,clearData:O,getData(){return R.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:P,removeColumnSetting:q,setCellClassName:te}),()=>{const oe={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:F,data:R.value,ref:le,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=()=>r.slots.append),r.slots.empty&&(ae.empty=()=>r.slots.empty),m===!0){const _e=[];if(z.value){const Ot=o.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Ot);const Mo=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Mo)}else{const Ot=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Ot)}const rt={ref:W,class:`${s}__infinite`},Lo=o.h("div",rt,_e);ae.append=()=>Lo}const ue=o.h(y.ElTable,oe,ae),pe=[];if(pe.push(ue),!m){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":I,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=o.h(y.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Lo=o.h(y.ElIcon,{class:d.value},{default:()=>o.h(Te.Setting)}),Ot=rl(n,Qn),Mo=o.h(tn,{...Ot,tableRef:{getColumnSetting:K,setColumnSetting:P,removeColumnSetting:q}},{default:()=>Lo});rt.push(Mo);const gh=o.h("div",{class:f.value},rt);pe.push(gh)}else _e&&pe.push(_e)}const he={default:()=>pe},It={...Ce(n,ar,ir,Qn),prop:`${n.prop}_item`};return It.contentClass=`${s}__wrap`,It.errorMarkClass="is-table-error",C.value&&$()&&(It["appear-listen"]=!0,It.onAppear=U),o.h(l,It,he)}}}}const{componentName:Fu,create:Du,scope:Au}=ie("table-item"),to=Du(Vu(Fu,Au,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ru(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Mu(){const e=o.getCurrentInstance();return new Lu(e.proxy)}function sr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ct(e,t),r=ct(e,l);if(n!==r)return!1;const a=Nt(e,t),i=Nt(e,l);return a===i}function Bu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=ct(e,a)===t;else if(l==="item")i=sr(e,a,t);else{let s=Nt(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function _u(e){return{text:e,value:e}}function qu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const ur={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Pu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...ur},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref(null),d=o.ref(null),f=(L,_,C,k=!0)=>{const T=Bu(n,L,_,C);if(T===null){if(d.value===null)return;d.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!sr(n,T,d.value)){u.value=L;const N=o.toRaw(T);d.value=N;let O=null;n.valueType==="text"?O=ct(n,N):n.valueType==="item"?O=N:O=Nt(n,N),k&&(s("update:modelValue",O),s("change",O))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,L=>se(L)),E=Mu(),g=async(L,_)=>{if(L){const C=await E.load("radio",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>_u(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{g(L,_)},{immediate:!b.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let z=de(n,"hintText"),B=de(n,"hintVisible");const R=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=Nt(n,k),N=ct(n,k);let O=Ru(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const A=qu(n,k,T)??{},U=`${H}_${T}`,W={...A,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(y.ElRadioButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(y.ElRadio,W,{default:()=>_(k)})):C.push(o.h(y.ElRadio,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>R(c.value,r.slots.text);const T=o.h(y.ElRadioGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,ur),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=m),o.h(l,O,H)}}}}const{componentName:ju,create:zu,scope:Hu}=ie("radio-item"),no=zu(Pu(ju,Hu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ku(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Wu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Yu(){const e=o.getCurrentInstance();return new Wu(e.proxy)}function cr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ft(e,t),r=ft(e,l);if(n!==r)return!1;const a=dt(e,t),i=dt(e,l);return a===i}function Gu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=cr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Uu(e){return{text:e,value:e}}function Xu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const fr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Zu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref([]),d=o.ref([]),f=(L,_,C,k=!0)=>{const T=Gu(n,L,_,C);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let N=0;N<T.length;N++){const O=T[N],A=d.value[N];if(!cr(n,O,A)){H=!1;break}}if(!H){d.value=T;let N=[],O=[];T.forEach(U=>{N.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=N;const A=o.toRaw(O);k&&(s("update:modelValue",A),s("change",A))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,L=>se(L)),E=Yu(),g=async(L,_)=>{if(L){const C=await E.load("checkbox",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>Uu(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{g(L,_)},{immediate:!b.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let z=de(n,"hintText"),B=de(n,"hintVisible");const R=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=dt(n,k),N=ft(n,k);let O=Ku(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const A=Xu(n,k,T)??{},U=`${H}_${T}`,W={...A,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(y.ElCheckboxButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(y.ElCheckbox,W,{default:()=>_(k)})):C.push(o.h(y.ElCheckbox,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ye(n.max),min:ye(n.min),onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>R(c.value,r.slots.text);const T=o.h(y.ElCheckboxGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=m),o.h(l,O,H)}}}}const{componentName:Ju,create:Qu,scope:ec}=ie("checkbox-item"),oo=Qu(Zu(Ju,ec,we)),dr={modelValue:{type:[Number,String],required:!1}};function tc(e,t,l){return{props:{...ve,...Ee,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>ye(h)),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=o.ref(!1);const g=o.ref();return xe({}),()=>{const m={...Pe(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(y.ElRate,m,$);w.push(I);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const R={...Ce(n,dr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,R,z)}}}}const{componentName:nc,create:oc,scope:lc}=ie("rate-item"),lo=oc(tc(nc,lc,we)),hr={modelValue:{type:[Boolean,String,Number],required:!1}};function rc(e,t,l){return{props:{...ve,...Ee,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=de(n,"modelValue"),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=de(n,"hintVisible");const g=o.ref();return xe({}),()=>{const m={...Pe(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(y.ElSwitch,m,$);w.push(I);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const R={...Ce(n,hr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,R,z)}}}}const{componentName:ac,create:ic,scope:sc}=ie("switch-item"),ro=ic(rc(ac,sc,we)),gr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function uc(e,t,l){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),s=o.ref(!1),{emitEvent:u}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),d=de(n,"modelValue"),f=e,c=o.computed(()=>({[f]:!0})),b=B=>{u("update:modelValue",B),u("change",B)};let E=de(n,"hintText"),g=o.ref(!1);const h=B=>{let L=B.target.value;s.value=!0,ge(E.value)||(g.value=!0),u("focus",L,B)},m=B=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=o.ref(!1),I=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const R={...Pe(r.attrs),ref:z,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:m,onVisibleChange:I},L={};r.slots.option&&(L.default=r.slots.option);const _=[],C=o.h(y.ElTreeSelect,R,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,gr),hintText:E.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:cc,create:fc,scope:dc}=ie("tree-select-item"),ao=fc(uc(cc,dc,we)),hc={},gc={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"},mc=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function pc(e,t){return o.openBlock(),o.createElementBlock("svg",gc,mc)}const yc=Me(hc,[["render",pc]]),{componentName:Vh,create:bc,scope:Fh}=ie("group-setting"),vc={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:"到底部"}},wc=bc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:yc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...vc},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=rr(),s=F=>F.length>1,u=()=>{const F=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&F.push(V.prop),{...V,sortIndex:v})),a.value.length===F.length?h.value=!0:F.length>0&&(m.value=!0),I.value=F},d=F=>{let x=null;if(typeof F=="string")x=document.querySelectorAll(`.fox-group[prop="${F}"] > div > .fox-item[prop]`);else if(F&&typeof F=="object"){const V=F.$el??F;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const D=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const P=V.getAttribute("prop")??"",M=window.getComputedStyle(V,null).getPropertyValue("display");D.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),D},f=()=>{if(!r){const F=d(e.groupRef??e.groupProp);if(F.length===0)return!1;r=F}return!0},c=async(F=!1)=>{const x=await i.load(e.groupProp),D=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(P=>{if(P.prop===K.prop){const j=P.label;return Object.assign(P,K),P.label=j,!0}return!1})}),a.value=v.sort((K,P)=>K.sortIndex-P.sortIndex),u(),F&&E(!1)};r?D(!0):qt(f,e.initDelay,5,50,!1,D)},b=()=>{const F=r??[];a.value=F.map(x=>({...x})),u(),E()},E=(F=!0)=>{F&&i.save(e.groupProp,a.value);const x=a.value.map(D=>({...D}));t("change",x)},g=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=o.ref(!1),m=o.ref(!1),$=F=>{const x=[];a.value.forEach(V=>{F&&x.push(V.prop),V.visible=F}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),I.value=x,E()},w=()=>{b()},I=o.ref([]),z=F=>{a.value.forEach(D=>{const V=F.indexOf(D.prop)!==-1;D.visible=V}),h.value=!1,m.value=!1;const x=a.value.length;F.length===x?h.value=!0:F.length>0&&(m.value=!0),E()},B=()=>{c()};o.onMounted(()=>{c(!0)});const R={currentRow:null,index:null},L=F=>F?F.dataset&&F.dataset.role==="row"?F:F.tagName.toLowerCase()!=="body"?(F=F.parentElement,L(F)):null:null,_=F=>{const x=F.currentTarget;x&&x.dataset&&(R.index=x.dataset.index)},C=F=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null},k=F=>{const x=F.currentTarget;F.relatedTarget;const D=L(x);D&&(F.preventDefault(),R.currentRow&&R.currentRow!==D&&R.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),R.currentRow=D)},T=F=>{F.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},H=F=>{const x=F.currentTarget,D=L(x);if(!D)return;F.preventDefault();const V=Number(R.index),v=Number(D.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),E()}},N=F=>{const x=a.value[F];a.value.splice(F,1),a.value.splice(0,0,x),u(),E()},O=F=>{const x=a.value[F];a.value.splice(F,1),a.value.push(x),u(),E()};n({refresh:()=>{r=null,c(!1)}});const A=new Map;let U=null;function W(F){const x=document.createRange();return x.setStart(F,0),x.setEnd(F,F.childNodes.length),x.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:I,handleCheckChange:z,onShow:B,onDragStart:_,onDragEnd:C,onDragOver:k,onDragLeave:T,onDrop:H,checkboxLabelStyle:g,toTop:N,toBottom:O,onMouseOverForOverflowText:(F,x,D)=>{const V=F.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let P=A.get(x);if(P){if(P===U)return;Ve.hide(P)}P=Ve.show(V,D,{type:"text",placement:"top",closeOnClick:!1}),A.set(x,P),U=P}}},onMouseLeaveForOverflowText:(F,x)=>{const D=A.get(x);D&&(Ve.hide(D),D===U&&(U=null))},onMouseOverForTip:(F,x)=>{const D=F.currentTarget;D&&(U&&Ve.hide(U),U=Ve.show(D,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:F=>{U&&(Ve.hide(U),U=null)}}}}),Sc={class:"fox-group-setting"},xc={class:"fox-group-setting__header"},Tc={class:"fox-group-setting__body"},$c={class:"fox-group-setting__body-list","data-role":"container"},Cc=["data-index","draggable"],Nc=["onMouseover","onMouseleave"],Ec={class:"tools-item"};function kc(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",Sc,[o.createElementVNode("div",xc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=E=>e.isCheckAll=E),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Tc,[o.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=E=>e.checkedValue=E),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",$c,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,E=>(o.openBlock(),o.createElementBlock("div",{key:E.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":E.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:E.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,E.prop,E.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,E.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(E.label),45,Nc)]),_:2},1032,["label"]),o.createElementVNode("div",Ec,[o.createVNode(f,{onClick:g=>e.toTop(E.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toBottom(E.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"])])],40,Cc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const io=Me(wc,[["render",kc]]),Ic=["aria-labelledby"],Oc=o.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),Vc=[Oc],Fc=o.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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vc,14,Ic))}}),Dc=["aria-labelledby"],Ac=o.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Rc=[Ac],so=o.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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rc,14,Dc))}}),Lc=["aria-labelledby"],Mc=o.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),Bc=[Mc],_c=o.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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Lc))}}),qc=["aria-labelledby"],Pc=o.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),jc=[Pc],zc=o.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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=o.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=o.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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},mr=(e,t)=>t[e.textKey],Et=(e,t)=>t[e.valueKey],Uc=(e,t)=>t[e.visibleKey],pr=(e,t)=>t[e.disabledKey],Xc=(e,t)=>{const l=t[e.doitKey];return se(l)},Zc=(e,t)=>{const l=t[e.numKey];return l==null?null:ye(t[l])},yr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function Jc(e,t,l,n=!1){return{props:{...Gc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=o.computed(()=>{const F={};return F[`${e}`]=!0,F}),u=o.computed(()=>{const F={};return F[`${e}__titles`]=!0,F[`${r.direction}`]=!0,r.align==="left"&&(F.left=!0),r.scroll===!0&&(F.scrollable=!0),r.shape&&(F[`${r.shape}`]=!0),F}),d=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const F=fe(r.gutter);return F<=0?0:F}),c=o.ref(r.modelValue);o.watch(()=>r.modelValue,F=>{c.value!==F&&(c.value=F,W(!1))});const b=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),E=o.computed(()=>{const F={};return h.value||(F.display="none"),F}),g=o.ref(),h=o.ref(!1),m=()=>{const F=!h.value;$(F)},$=F=>{const x=F;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=o.ref(),I=o.ref([]),z=(F,x)=>{I.value[x]=F},B=F=>x=>{z(x,F)},R=(F,x)=>{const D=w.value,V=I.value;if(!D||!V||!V[F])return;const v=V[F];let K=0;r.direction==="vertical"?K=v.offsetTop-(D.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(D.offsetWidth-v.offsetWidth)/2,L(D,K,x?0:.3,r.direction)},L=(F,x,D,V)=>{let v=0;const K=V==="horizontal"?F.scrollLeft:F.scrollTop,P=D===0?1:Math.round(D*1e3/16);function j(){V==="horizontal"?F.scrollLeft+=(x-K)/P:F.scrollTop+=(x-K)/P,++v<P&&yn(j)}j()},_=(F,x)=>{const D=Et(r,F),V={};return V[`${e}__titles-item`]=!0,V.disabled=pr(r,F),V.active=D===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},C=(F,x)=>{const D={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(D["margin-top"]=`${V}px`,D["margin-bottom"]=`${V}px`):(D["margin-left"]=`${V}px`,D["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(D,x.style),D},k=(F,x)=>`${Et(r,F)??x}`,T=(F,x)=>{const D=Et(r,F),V={};V[`${e}__popup-item`]=!0,V.disabled=pr(r,F),V.active=D===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=yr(r,F,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=o.computed(()=>(r.data??[]).filter(x=>Uc(r,x)!==!1)),N=(F,x)=>{const D=Et(r,F);if(c.value==D)return;const V=()=>{c.value=D,r.scroll&&R(x,!1),i("update:modelValue",D),i("change",F,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(F,x);Go(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(F,x)=>function(){N(F,x)},A=(F,x)=>{N(F,x),$(!1)},U=(F,x)=>function(){A(F,x)},W=F=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(D=>Et(r,D)===c.value);x!==-1&&R(x,F)};o.watch(()=>r.data,()=>{setTimeout(W,0)}),o.onMounted(()=>{W(!0)});const J=(F,x)=>{if(a.item)return a.item({item:F,index:x});const D=yr(r,F,x),V=[];if(a.text){const j=a.text({item:F,index:x});V.push(j)}else{const j=[];if(D?.doit===!0||Xc(r,F)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=o.h("view",Q);j.push(ne)}const M=D?.num??Zc(r,F);if(M){let Q="";const ne=ye(M);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=o.h("view",S,[Q]);j.push(G)}const q={class:`${e}__titles-item-text`};j.push(mr(r,F));const Y=o.h("view",q,j);V.push(Y)}const v={class:`${e}__titles-item-line`},K=o.h("view",v);V.push(K);const P={ref:B(x),class:_(F,D),style:C(F,D),key:k(F,x),onClick:O(F,x)};return o.h("view",P,V)},Z=()=>{const F=a.default?a.default():[];if(F.length===0)for(let D=0;D<H.value.length;D++){const V=H.value[D],v=J(V,D);F.push(v)}const x={ref:w,class:u.value,style:d.value};return o.h("view",x,F)},ee=()=>{let F=null;a.navigation?F=a.navigation():F=o.h(l);const x={class:`${e}__navigation`,onClick:m};return o.h("view",x,[F])},re=()=>{const F=[];for(let D=0;D<H.value.length;D++){const V=H.value[D];let v=null;a.popupItem?v=a.popupItem({item:V,index:D}):v=mr(r,V);const K={class:T(V,D),key:k(V,D),onClick:U(V,D)},P=o.h("view",K,[v]);F.push(P)}const x={class:b.value,style:E.value};return o.h("view",x,F)};return()=>{const F=[],x=Z();if(F.push(x),r.showQuickNavigation){const V=ee();F.push(V);const v=re();F.push(v)}const D={class:s.value};return o.h("view",D,F)}}}}const{create:Qc,componentName:ef,scope:tf}=ie("tabs-bar"),uo=Qc(Jc(ef,tf,Fc,!1)),br=Symbol("TabsStatesKey"),nf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function of(e,t,l=!1){return{props:{...nf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),s={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),o.triggerRef(i)},remove:h=>{const m=i.value.findIndex($=>$.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex($=>$.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};o.provide(br,s);const u=h=>{const m=i.value.findIndex($=>$.name===h);m!==-1&&(i.value[m].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const d=o.ref(null),f=o.ref(null),c=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const E=o.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const $=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease;"),h});let g=null;return o.onMounted(()=>{if(!d.value)return;const h=()=>{const m=Wt(d.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),o.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:E.value,ref:f},m=o.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return o.h("view",$,[m])}}}}const{create:lf,componentName:rf,scope:af}=ie("tabs-container"),co=lf(of(rf,af,!1)),sf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function uf(e,t,l){return{props:{...sf},setup(n,{emit:r,slots:a}){const i=o.inject(br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=o.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=o.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??l,E=o.h(b,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=o.h("view",g,[h]),$={class:`${e}__empty`},w=o.h("view",$,[E,m]);d.push(w)}const f={class:`${e}`,style:s.value};return o.h("view",f,d)}}}}const{create:cf,componentName:ff,scope:df}=ie("tabs-pane"),fo=cf(uf(ff,df,so)),hf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function gf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function mf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function ho(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Sr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function xr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function go(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class pf{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function yf(){const e=o.getCurrentInstance();return new pf(e.proxy)}function bf(e,t,l,n){return{props:{...hf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=yf(),d=o.ref([]),f=o.computed(()=>d.value.filter(x=>mf(r,x)!==!1)),c=o.ref(-1),b=()=>{const x=r.modelValue,D=f.value.findIndex(V=>vr(r,V)===x);c.value!==D&&(c.value=D,r.scroll&&re(D,!1))};o.watch([()=>r.modelValue,f],()=>{b()});const E=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const D=f.value[x],v=(go(r,D,x)??{}).status??ho(r,D);return E(x)||v},h=o.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=o.computed(()=>({})),$=(x,D,V,v,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,v&&(P["is-doit"]=!0),x===c.value?P["is-active"]=!0:D==="done"?P["is-done"]=!0:D==="error"?P["is-error"]=!0:D==="half"?P["is-half"]=!0:V?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=o.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),I=(x,D={})=>{const V={...D};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},z=(x,D)=>{let V={};if(D<f.value.length-1){const v=D+1;g(D)&&g(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},B=x=>f.value.length-1===x,R=(x,D)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&D>c.value||c.value===D)return;const V=c.value,v=D;c.value=D,r.scroll&&re(D,!1);const K=vr(r,x);i("update:modelValue",K);const P={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},L=o.ref(!0),_=async(x,D)=>{try{const V=await u.load("stesbar",x,D);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([x,D])=>{x&&_(x,D)},{immediate:!0});const C=(x,D,V,v,K)=>{let P=null;if(a.icon)P=a.icon({item:x,index:D,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const q=r.icon??l;P=o.h(q,M)}else{const M=V??`${D+1}`;P=o.h("span",{},[M])}const j={class:"fox-steps-bar__icon",onClick:()=>{K||R(x,D)}};return o.h("view",j,[P])},k=(x,D,V)=>{const v=o.h("i",{class:"fox-steps-bar__line-inner",style:z(x,D)});return o.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=o.h(v,V)}return o.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,D,V,v,K)=>{const P=[];if(!B(D)){const q=k(x,D);P.push(q)}const j=C(x,D,V,v,K);P.push(j);const M={class:"fox-steps-bar__head"};return o.h("view",M,P)},N=(x,D,V,v)=>{let K=null;a.main?K=a.main({item:x,index:D,status:V}):K=gf(r,x);const P={class:"fox-steps-bar__main",onClick:()=>{v||R(x,D)}};return o.h("view",P,[K])},O=(x,D,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:D,status:V});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[v])}return null},A=(x,D)=>{const V=go(r,x,D)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=V.label??xr(r,x),j=[],M=C(x,D,P,v,K);M&&j.push(M);const q=N(x,D,v,K);if(q&&j.push(q),!B(D)){const te=k(x,D);te&&j.push(te)}const Y=o.h("view",{class:"fox-steps-bar__head"},j),Q=V.class,ne=V.style??{};let S=Sr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(D),class:$(D,v,K,S,Q),style:I(D,ne)};return o.h("view",G,[Y])},U=(x,D)=>{const V=go(r,x,D)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=V.label??xr(r,x),j=[],M=r.layout;for(let S of M)if(S==="head"){const G=H(x,D,P,v,K);j.push(G)}else if(S==="main"){const G=N(x,D,v,K);j.push(G)}else if(S==="sub"){const G=O(x,D,v);j.push(G)}else if(S==="mark"){const G=T();j.push(G)}const q=V.class,Y=V.style??{};let Q=Sr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(D),class:$(D,v,K,Q,q),style:I(D,Y)};return o.h("view",ne,j)},W=o.ref(),J=o.ref([]),Z=(x,D)=>{J.value[D]=x},ee=x=>D=>{Z(D,x)},re=(x,D)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let P=0;r.direction==="vertical"?P=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,F(V,P,D?0:.3,r.direction)},F=(x,D,V,v)=>{let K=0;const P=v==="horizontal"?x.scrollLeft:x.scrollTop,j=V===0?1:Math.round(V*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(D-P)/j:x.scrollTop+=(D-P)/j,++K<j&&yn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=A(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const D={ref:W,class:h.value,style:m.value};return o.h("view",D,x)}}}}const{componentName:vf,create:wf,scope:Sf}=ie("steps-bar"),mo=wf(bf(vf,Sf,zc,Yc)),xf=Symbol.for("InnerPageScopeKey"),Tf=Symbol.for("PageWrapperKey");function $f(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(l,n){o.provide(xf,!0);const r={};o.provide(Tf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return o.h(y.ElDialog,d,f)}}}}const{componentName:Dh,create:Cf,scope:Ah}=ie("dialog-item"),po=Cf($f());let kt=0;const Tr="fox-overflow-hidden",$r=()=>tt?document.body:{classList:[]},Nf=e=>[()=>{if(e())try{!kt&&$r().classList.add(Tr),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&$r().classList.remove(Tr)}catch{}}],Ef={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:kf,create:If}=ie("overlay"),Of=If({props:{...Ef},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=Nf(()=>e.lockScroll),r=o.computed(()=>({[kf]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,s=>{s?l():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Vf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const nn=Me(Of,[["render",Vf]]),Ff={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:{}}},Cr=2e3;let Nr=Cr;const Df=(e,t)=>({components:t,props:{...Ff},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex!==Cr&&(Nr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Nr,l.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),l.closeOnClickOverlay&&n("update:visible",!1)},E=h=>{n("opend",h)},g=h=>{n("closed",h)};return o.watch(()=>l.visible,h=>{l.visible?u():d()}),o.watch(()=>l.closeable,h=>{r.closed=h}),{...o.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:E,onClosed:g}}}),{componentName:Af,create:Rf}=ie("popup"),Lf=Rf(Df(Af,{FoxOverLay:nn,Close:_c}));function Mf(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),s=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.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"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(s)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const yo=Me(Lf,[["render",Mf]]),{create:Bf}=ie("toast"),_f=Bf({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 l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,E=>{E&&i()});const u=o.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=fe(e.iconSize);return o.h(e.icon,{width:E,height:E,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),qf={key:1,class:"fox-toast-title"},Pf=["innerHTML"];function jf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",qf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Pf)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const bo=Me(_f,[["render",jf]]),zf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Hf=(e,t,l)=>({props:{...zf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["placeholder"]),u=o.reactive({active:!1}),d=o.computed(()=>({background:n.background})),f=o.computed(()=>({background:n.inputBackground})),c=C=>{let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),r("update:modelValue",T,C),r("change",T,C)},b=o.ref({}),E=C=>{let T=C.target.value;u.active=!0,b.value=n.focusStyle,r("focus",T,C)},g=C=>{setTimeout(()=>{u.active=!1},0);let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},r("blur",T,C)},h=C=>{r("update:modelValue","",C),r("change","",C),r("clear","")},m=o.computed(()=>String(n.modelValue).length>0),$=o.computed(()=>{const C={};return m.value||(C.display="none"),C}),w=()=>{r("search",n.modelValue)},I=C=>{r("keyup-input",C),C.key.toLocaleUpperCase()==="ENTER"&&w()},z=C=>{r("click-input",C)},B=C=>{r("click-left-icon",n.modelValue,C)},R=o.computed(()=>({textAlign:n.inputAlign})),L=o.ref(null);o.onMounted(()=>{n.autofocus&&L.value.focus()});const _=()=>{const C=[];if(a.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},A=o.h("view",O,[a.leftin()]);C.push(A)}const k={ref:L,class:[`${e}__input-inner`],style:R.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:c,onFocus:E,onBlur:g,onkeyup:I},T=o.h("input",k);C.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},A=a?.clear?.()??n.clearIcon??l,U=o.h("view",O,[o.h(A)]);H.push(U)}if(a.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},A=o.h("view",O,[a.rightin()]);H.push(A)}if(H.length>0){const O={class:`${e}__input-inner-right`},A=o.h("view",O,H);C.push(A)}const N={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return o.h("view",N,C)};return()=>{const C=[];if(n.label){const H={class:`${e}__search-label`},N=o.h("span",H,[n.label]);C.push(N)}if(a.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},N=o.h("view",H,[a.leftout()]);C.push(N)}const k=_();if(C.push(k),a.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},N=o.h("view",H,[a.rightout()]);C.push(N)}const T={class:`${e}`,style:d.value};return o.h("view",T,C)}}}),{componentName:Kf,create:Wf,scope:Yf}=ie("searchbar"),vo=Wf(Hf(Kf,Yf,Te.CircleClose)),Gf=/scroll|auto|overlay/i,Er=window;function Uf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Xf(e,t=Er){let l=e;for(;l&&l!==t&&Uf(l);){const{overflowY:n}=window.getComputedStyle(l);if(Gf.test(n))return l;l=l.parentNode}return t}function kr(e,t=Er){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Xf(e.value,t))}),l}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Zf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Jf(e,t,l){return{props:{...Zf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=o.ref(),d=kr(u),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=o.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,E=()=>{let w=0,I=0,z="down";if(d.value==window){const B=Ir();u.value&&(w=b(u.value)+u.value.offsetHeight-B-window.innerHeight),I=B}else{const{scrollHeight:B,clientHeight:R,scrollTop:L}=d.value;w=B-R-L,I=L}return f.beforeScrollTop>I?z="up":z="down",f.beforeScrollTop=I,r("scroll-change",I),w<=n.threshold&&z=="down"},g=()=>{Bo(()=>{if(!E()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},m=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};o.onMounted(()=>{h(),n.immediate&&g()}),o.onUnmounted(()=>{m()});const $=o.ref(!1);return o.onActivated(()=>{$.value&&($.value=!1,h())}),o.onDeactivated(()=>{$.value=!0,m()}),o.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},I=o.h("view",w,[a?.default?.()]),z=[];if(f.isInfiniting){let _=a?.loading?.()??null;if(!_){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=o.h(l,O)}const H={class:"fox-infinite__bottom-box__text"},N=o.h("view",H,[s.loadText.value]);_=[T,N]}const C={class:"fox-infinite__bottom-box"},k=o.h("view",C,_);z.push(k)}else if(!n.hasMore){let _=a?.finished?.()??null;if(!_){const C={class:"fox-infinite__bottom-tips"};_=o.h("view",C,[s.loadMoreText.value]),z.push(_)}}const B={class:"fox-infinite__bottom"},R=o.h("view",B,z),L={class:c.value,ref:u};return o.h("view",L,[I,R])}}}}const{componentName:Qf,create:ed,scope:td}=ie("infinite-loading"),wo=ed(Jf(Qf,td,so)),Or=10;function Vr(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function So(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xo(){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",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=i;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=Vr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function nd(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),s=o.ref(0),u=o.ref(0),d=o.ref(0),f=o.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",E=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",l.value=0};return{move:m=>{if(m.touches){const I=m.touches[0];i.value=I.clientX-e.value,s.value=I.clientY-t.value,r.value=I.clientX,a.value=I.clientY}else{const w=m;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-l.value,f.value||(f.value=Vr(u.value,d.value))},start:m=>{if(E(),m.touches){const I=m.touches[0];e.value=I.clientX,t.value=I.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}l.value=Date.now()},reset:E,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const od={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}},ld=(e,t,l)=>({props:{...od},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=xo(),d=o.ref(),f=kr(d),c=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=o.computed(()=>({[e]:!0})),E=o.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=o.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),m=L=>{const _=+(n.pullDistance||n.headHeight);let C=L;return L>_&&(L<_*2?C=(L+_)/2:C=_+L/4),Math.round(C)},$=(L,_)=>{const C=+(n.pullDistance||n.headHeight);c.distance=L,_?c.status="loading":L===0?c.status="normal":L<C?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",I=()=>f.value==window?Ir()==0:f.value&&f.value.scrollTop==0,z=L=>{w()&&(I()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},R=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return o.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let _=null;if(c.status==="loading"){if(_=a?.loading?.()??null,!_){const U={class:["fox-pull-refresh-container-topbox-icon"]};_=o.h(l,U)}}else c.status==="pulling"?_=a?.pulling?.()??null:c.status==="loosing"&&(_=a?.loosing?.()??null);_&&L.push(_);const C={class:["fox-pull-refresh-container-topbox-text"]},k=o.h("dive",C,[E.value]);L.push(k);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=o.h("div",T,L),N={class:"fox-pull-refresh-container",style:g.value},O=o.h("div",N,[H,a?.default?.()]),A={ref:d,class:b.value};return So()?Object.assign(A,{onTouchstart:z,onTouchmove:B,onTouchend:R}):Object.assign(A,{onMousedown:z,onMousemove:B,onMouseup:R}),o.h("div",A,[O])}}}),{componentName:rd,create:ad,scope:id}=ie("pull-refresh"),To=ad(ld(rd,id,so));function sd(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(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=o.h(l.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],E=o.h("div",c,b),g={class:a.value};return l.textPosition==="right"?o.h("div",g,[f,E]):o.h("div",g,[E,f])}}}}const{componentName:ud,create:cd,scope:Rh}=ie("indicator"),$o=cd(sd(ud));function fd(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const dd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function hd(e,t,l,n=!1){return{props:{...dd},emits:["click"],setup(r,a){const i=o.ref(null),s=o.computed(()=>{const I={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(I[`${e}--${r.type??"default"}`]=!0),r.size&&(I[`${e}--${r.size}`]=!0),I}),u=o.computed(()=>{const I={},z=r.textColor??r.color;return z&&(I.color=z),I}),d=(I,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const R=r.highlightFilter;if(I.indexOf(R)!==-1){const _=I.replace(new RegExp(R,"g"),`<span>${R}</span>`);z.innerHTML=_,z.class["is-highlight"]=!0,B=o.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const R=r.highlightFilter(I);R&&(z.innerHTML=R,z.class["is-highlight"]=!0,B=o.h(r.tag,z))}return B},f=I=>{a.emit("click",I)};let c="";const b=()=>{const I=i.value;if(!I)return;const z=I.clientWidth;fd(I,B=>{const R=I.innerHTML??"";ge(R)||B<z||(c?l?.show(I,R,{type:"text",id:c,showArrow:r.showArrow},!0):c=l?.show(I,R,{type:"text",showArrow:r.showArrow},!0)??"")})},E=()=>{c&&l?.hide(c)};let g=null;const h=I=>{g||(g=setTimeout(()=>{b(),g=null},r.showAfter??0))},m=I=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{E()},r.hideAfter??0)},$=()=>{const I=i.value;I&&(I.addEventListener("mouseover",h),I.addEventListener("mouseleave",m))},w=()=>{const I=i.value;I&&(I.removeEventListener("mouseover",h),I.removeEventListener("mouseleave",m))};return o.onMounted(()=>{!se(r.showOverflowTooltip)||!l||$()}),o.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!l||w()}),()=>{const I={onClick:f,class:s.value,style:u.value,ref:i};let z=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=ye(r.digits),T=ye(r.decimalLength),H=se(r.autoPadding);let N=`${_[0].children}`,O=N.split("").reverse().join("");O=Dt(O,T,H,k,r.separator),N=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=d(N,I)),z||(I.innerHTML=N,z=o.h(r.tag,I))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=`${_[0].children}`;z=d(k,I),z||(I.innerHTML=k,z=o.h(r.tag,I))}}}z||(z=o.h(r.tag,I,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let R=null;if(r.icon){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};R=o.h("view",T,o.h(r.icon))}else if(a.slots.mark){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};R=o.h("view",T,{default:a.slots.mark})}else{const _={[`${e}__mark`]:!0};r.type&&(_[`${e}__mark--${r.type??"default"}`]=!0);const C={},k=r.color;k&&(C["background-color"]=k);const T={class:_,style:C};R=o.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",L,[R,z])}}}}const{componentName:gd,create:md,scope:pd}=ie("text"),Co=md(hd(gd,pd,Ve,!1)),yd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Te.ArrowUp}};function bd(e,t,l){return{props:{...yd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=o.computed(()=>({[`${e}__text`]:!0})),d=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},m=o.h("span",h,[s.value]);c.push(m)}const b={class:d.value},E=l(n.icon,b);return E&&c.push(E),o.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:vd,create:wd,scope:Sd}=ie("more-button"),No=wd(bd(vd,Sd,(e,t)=>(e=e??Te.ArrowUp,o.h(y.ElIcon,t,{default:()=>[o.h(e)]}))));function xd(e){return e===window}const Fr=e=>{const t=o.unref(e);if(xd(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Td,create:$d,scope:Mh}=ie("tour"),Cd=$d({components:{Close:Te.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const l=Td,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:I,top:z}=r.value,B=e.steps[n.active].offset??g,R=[I+$/2,z+w/2],L=Number(h||$),_=Number(m||w);return{width:`${L+ +B.left+B.right}px`,height:`${_+B.top+B.bottom}px`,top:`${R[1]-_/2-+B.top}px`,left:`${R[0]-L/2-+B.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Fr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},E=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return o.onMounted(()=>{E(e.modelValue,e.current)}),o.watch(()=>e.modelValue,g=>{E(g)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Nd={key:0,class:"fox-tour__content"},Ed={key:0,class:"fox-tour__content-top"},kd={class:"fox-tour__content-inner"},Id={class:"fox-tour__content-bottom"},Od={class:"fox-tour__content-bottom-init"},Vd={class:"fox-tour__content-bottom-operate"},Fd={key:1,class:"fox-tour__content fox-tour__content-tile"},Dd={class:"fox-tour__content-inner"};function Ad(e,t,l,n,r,a){const i=o.resolveComponent("Close"),s=o.resolveComponent("fox-button"),u=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Nd,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Ed,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kd,o.toDisplayString(d.content),1),o.createElementVNode("div",Id,[o.createElementVNode("div",Od,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Vd,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Fd,[o.createElementVNode("div",Dd,o.toDisplayString(d.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Eo=Me(Cd,[["render",Ad]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class Rd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=So()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=xo(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Dr(e,t){return new Rd(e,t)}var Ar;const ko=typeof window<"u";ko&&((Ar=window?.navigator)!=null&&Ar.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Rr=e=>{const t=e;t.key==="Escape"&&ht.forEach(l=>l(t))},Ld=e=>{o.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Rr),ko&&ht.push(e)}),o.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&ko&&document.removeEventListener("keydown",Rr)})},Io="fox-focus-trap.focus-after-trapped",Oo="fox-focus-trap.focus-after-released",Md="fox-focus-trap.focusout-prevented",Lr={cancelable:!0,bubbles:!1},Bd={cancelable:!0,bubbles:!1},Mr="foxFocusAfterTrapped",Br="foxFocusAfterReleased",_d=Symbol("foxFocusTrap"),Vo=o.ref(),on=o.ref(0),Fo=o.ref(0);let ln=0;const _r=e=>{const t=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)t.push(l.currentNode);return t},qd=(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},qr=(e,t)=>{for(const l of e)if(!qd(l,t))return l},Pd=e=>{const t=_r(e),l=qr(t,e),n=qr(t.reverse(),e);return[l,n]},jd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&jd(e)&&t&&e.select()}};function Pr(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Pr(e,n),e.unshift(n)},remove:n=>{e=Pr(e,n),e[0]?.resume?.()}}},Hd=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==l)return},jr=zd(),Kd=()=>on.value>Fo.value,rn=()=>{Vo.value="pointer",on.value=window.performance.now()},zr=()=>{Vo.value="keyboard",on.value=window.performance.now()},Wd=()=>(o.onMounted(()=>{ln===0&&(document.addEventListener("mousedown",rn),document.addEventListener("touchstart",rn),document.addEventListener("keydown",zr)),ln++}),o.onBeforeUnmount(()=>{ln--,ln<=0&&(document.removeEventListener("mousedown",rn),document.removeEventListener("touchstart",rn),document.removeEventListener("keydown",zr))}),{focusReason:Vo,lastUserFocusTimestamp:on,lastAutomatedFocusTimestamp:Fo}),an=e=>new CustomEvent(Md,{...Bd,detail:e}),{componentName:Bh,create:Yd,scope:_h}=ie("focus-trap"),Gd=Yd({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Mr,Br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wd();Ld(h=>{se(e.trapped)&&!s.paused&&l("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:I,currentTarget:z,shiftKey:B}=h,{loop:R}=e,L=m==="Tab"&&!$&&!w&&!I,_=document.activeElement;if(L&&_){const C=z,[k,T]=Pd(C);if(k&&T){if(!B&&_===T){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),R&&Je(k,!0))}else if(B&&[k,C].includes(_)){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),R&&Je(T,!0))}}else if(_===C){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||h.preventDefault()}}};o.provide(_d,{focusTrapRef:n,onKeydown:u}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",c),m.removeEventListener("focusout",b))});const d=h=>{l(Mr,h)},f=h=>l(Br,h),c=h=>{const m=o.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,I=$&&m.contains($);se(e.trapped)||w&&m.contains(w)||(r=w),I&&l("focusin",h),!s.paused&&se(e.trapped)&&(I?a=$:Je(a,!0))},b=h=>{const m=o.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!xn($)&&!m.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=an({focusReason:i.value});l("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||l("focusout",h)}};async function E(){await o.nextTick();const h=o.unref(n);if(h){jr.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Io,Lr);h.addEventListener(Io,d),h.dispatchEvent(w),w.defaultPrevented||o.nextTick(()=>{let I=e.focusStartEl;Yo(I)||(Je(I),document.activeElement!==I&&(I="first")),I==="first"&&Hd(_r(h),!0),(document.activeElement===m||I==="container")&&Je(h)})}}}function g(){const h=o.unref(n);if(h){h.removeEventListener(Io,d);const m=new CustomEvent(Oo,{...Lr,detail:{focusReason:i.value}});h.addEventListener(Oo,f),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Kd())&&Je(r??document.body,!0),h.removeEventListener(Oo,d),jr.remove(s)}}return o.onMounted(()=>{se(e.trapped)&&E(),o.watch(()=>e.trapped,h=>{se(h)?E():g()})}),o.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Ud,create:Xd,scope:Ph}=ie("floating-window"),Zd=Symbol.for("InnerPageScopeKey"),Jd=Symbol.for("PageWrapperKey"),Qd={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},eh=Xd({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Gd},props:{...Qd},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Ud,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,S=>{n.value=S});const a=o.computed(()=>n.value===!1?!1:!_.value),i=o.ref(e.left),s=o.ref(e.top),u=o.ref(e.right),d=o.ref(e.bottom),f=o.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=o.computed(()=>{const S={};return lt(i.value)?S.left="auto":S.left=Fe(i.value),lt(s.value)?S.top="auto":S.top=Fe(s.value),lt(u.value)?S.right="auto":S.right=Fe(u.value),lt(d.value)?S.bottom="auto":S.bottom=Fe(d.value),lt(e.zIndex)||(S["z-index"]=Fe(e.zIndex)),lt(R.value)||(S.height=R.value),lt(L.value)||(S.width=L.value),S}),b=o.computed(()=>e.closeIcon??Te.Close),E=o.computed(()=>e.collapseIcon??Te.ArrowUp),g=o.computed(()=>e.collapseText??""),h=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),m=o.computed(()=>e.expandText??e.title??"展开"),$=o.computed(()=>({[`${l}__collapse-text`]:!0})),w=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),I=o.ref(),z=o.ref(null),B=o.ref(null),R=o.computed(()=>Fe(e.height)||""),L=o.computed(()=>Fe(e.width)||""),_=o.ref(se(e.collapse)),C=(S,G=!0)=>{_.value!==S&&(_.value=S,S?x():D(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};o.watch(()=>e.collapse,S=>{C(S)});const k=()=>{T()},T=S=>{S=S??!_.value,C(S)};o.provide(Zd,!0);const H={setCollapse:C,setFixedNavVisible:S=>{ee.value=S}};o.provide(Jd,H);const N=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=o.ref(null),A=o.computed(()=>!e.fixedNavTeleport),U=o.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=o.ref(""),J=o.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=o.ref(_.value),ee=o.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const F=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},D=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},j=Dr(S=>{if(!I.value)return;const G=I.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=le-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!I.value)return;const G=I.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=Fe(i.value),G.style.top=Fe(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=Fe(i.value),G.style.bottom=Fe(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=Fe(u.value),G.style.bottom=Fe(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=Fe(u.value),G.style.top=Fe(s.value))}),M={x:0,y:0},Q=Dr(S=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=M.y+S.y;W.value=`${G}px`}),ne=()=>{if(I.value){const S=I.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=S}};return o.onMounted(()=>{if(e.draggable&&I.value){const S=[];z.value&&S.push(z.value),e.footerDraggable&&(ne(),B.value&&S.push(B.value)),j.open(S)}e.collapse===!0&&C(e.collapse,!1),O.value&&Q.open(O.value)}),o.onBeforeUnmount(()=>{e.draggable&&z.value&&j.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:N,dialogRef:I,headerRef:z,onClickToggle:k,collapseIcon:E,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:F,teleportDisabled:r,fixedNavTeleportDisabled:A}}}),th={ref:"headerRef",class:"fox-floating-window__header"},nh={class:"fox-floating-window__title"},oh={class:"fox-floating-window__tools"},lh={class:"fox-floating-window__body"},rh={class:"fox-floating-window__fixednav__text"};function ah(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),s=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",th,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",nh,o.toDisplayString(e.title),1),o.createElementVNode("div",oh,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",lh,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",rh,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Do=Me(eh,[["render",ah]]);function ih(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return gl(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:jh,create:sh,scope:zh}=ie("domain-provider"),Ao=sh(ih()),uh={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 ch(e,t){return{inheritAttrs:!1,props:uh,setup(l,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,E)=>{if(f===null){a.set(b,{visible:null,callback:E});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:E}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=l.initialVisibleObserverSize;Xa({acquire:()=>{const b=u>0;return u--,b},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,E,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(l.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(I){console.error(I)}}},{root:b,rootMargin:E,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([b,E])=>{if(E||!b||f)return;let g=null;typeof b=="string"?g=document.querySelector(b):g=b,g&&c(g,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:fh,scope:Kh}=ie("rolling-provider"),Ro=fh(ch()),dh=[In,Vn,Fn,Dn,Ln,we,_n,qn,Tt,Pn,jn,zn,Hn,Kn,Wn,Yn,Un,Xn,Zn,Jn,tn,to,no,oo,lo,ro,ao,io,uo,co,fo,mo,po,nn,yo,bo,vo,wo,To,Ct,Qt,$o,Co,No,Eo,Do,Ao,Ro],hh=new Ea(dh,[Oa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),p.AutocompleteItem=Xn,p.Broadcast=Tn,p.BroadcastKey=be,p.CascaderItem=Un,p.CheckboxItem=oo,p.Content=Dn,p.DataItemsKey=at,p.DateItem=zn,p.DateUtils=Re,p.DialogItem=po,p.Domain=Pt,p.DomainKey=Le,p.DomainProvider=Ao,p.FloatingWindow=Do,p.FooterBar=Fn,p.FoxAutocompleteItem=Xn,p.FoxCascaderItem=Un,p.FoxCheckboxItem=oo,p.FoxContent=Dn,p.FoxDateItem=zn,p.FoxDialogItem=po,p.FoxDomainProvider=Ao,p.FoxFloatingWindow=Do,p.FoxFooterBar=Fn,p.FoxGroup=Ln,p.FoxGroupSetting=io,p.FoxHeaderBar=Vn,p.FoxHintText=Tt,p.FoxIndicator=$o,p.FoxInfiniteLoading=wo,p.FoxInputItem=Pn,p.FoxInputNumberItem=Yn,p.FoxItem=we,p.FoxMapping=Ct,p.FoxMoneyItem=Wn,p.FoxMoreButton=No,p.FoxOverLay=nn,p.FoxPage=In,p.FoxPopup=yo,p.FoxPrice=Qt,p.FoxPullRefresh=To,p.FoxRadioItem=no,p.FoxRateItem=lo,p.FoxRollingProvider=Ro,p.FoxRowItem=qn,p.FoxSearchBar=vo,p.FoxSelectItem=jn,p.FoxSlotItem=_n,p.FoxStepsBar=mo,p.FoxSwitchItem=ro,p.FoxTableItem=to,p.FoxTableMappingColumn=Zn,p.FoxTableRadioColumn=Jn,p.FoxTableSetting=tn,p.FoxTabsBar=uo,p.FoxTabsContainer=co,p.FoxTabsPane=fo,p.FoxText=Co,p.FoxTimeItem=Hn,p.FoxTimeSelectItem=Kn,p.FoxToast=bo,p.FoxTour=Eo,p.FoxTreeSelectItem=ao,p.Group=Ln,p.GroupSetting=io,p.HeaderBar=Vn,p.HintText=Tt,p.Indicator=$o,p.InfiniteLoading=wo,p.InputItem=Pn,p.InputNumberItem=Yn,p.Item=we,p.Mapping=Ct,p.MoneyItem=Wn,p.MoreButton=No,p.OverLay=nn,p.Page=In,p.Popup=yo,p.Price=Qt,p.PriorityPolicy=Ae,p.PullRefresh=To,p.RadioItem=no,p.RateItem=lo,p.RollingProvider=Ro,p.RowItem=qn,p.SearchBar=vo,p.SelectItem=jn,p.SlotItem=_n,p.StepsBar=mo,p.SwitchItem=ro,p.TableItem=to,p.TableMappingColumn=Zn,p.TableRadioColumn=Jn,p.TableSetting=tn,p.TabsBar=uo,p.TabsContainer=co,p.TabsPane=fo,p.Text=Co,p.TimeItem=Hn,p.TimeSelectItem=Kn,p.Toast=bo,p.Tour=Eo,p.TreeSelectItem=ao,p.UniqueID=Il,p.ValidateSchema=fl,p.ValidateSchemaKey=Ke,p.cancelRaf=Wr,p.clearNonNumber=la,p.clone=wn,p.compareTo=pn,p.createBroadcast=Mt,p.createValidateSchema=_t,p.debounce=wt,p.debounceRef=ya,p.decimalLength=ol,p.default=hh,p.defineBroadcast=sa,p.defineConfigDomain=gl,p.defineDataItem=pl,p.defineDomain=Cn,p.defineItem=Se,p.definePageState=yl,p.deleteGlobalValidator=da,p.disabledProperty=Oe,p.divide=mn,p.excludeProps=Ce,p.extend=et,p.floatData=ia,p.getGlobalValidateCheckEvents=sl,p.getGlobalValidateResetEvents=cl,p.getPageContentAreaHeight=zt,p.getPageContentAreaWidth=Ht,p.getPageFooterAreaHeight=xt,p.getPageHeaderAreaHeight=St,p.getRootDomain=it,p.hasSymbol=Xo,p.includeProps=rl,p.indexOf=ra,p.installRules=ml,p.integerLength=nl,p.isArray=Gr,p.isArrayLike=Jo,p.isBrowser=tt,p.isDate=Zr,p.isESModule=Qr,p.isEmptyString=ge,p.isEqual=He,p.isFunction=bn,p.isHidden=Lt,p.isInnerPage=wa,p.isMap=Ur,p.isNil=xn,p.isNumberString=tl,p.isObject=ze,p.isPlainObject=vn,p.isPromise=Go,p.isRegExp=el,p.isSet=Xr,p.isString=Yo,p.isSubPage=Sa,p.isSymbol=Jr,p.isTouch=So,p.isWindow=Zo,p.lastIndexOf=aa,p.makeArray=oa,p.merge=Qo,p.multiply=Ho,p.negate=Ko,p.nextTick=ta,p.numberFormat=Dt,p.objectToString=Uo,p.once=ba,p.property=ke,p.raf=yn,p.readonlyProperty=Ie,p.setGlobalValidateCheckEvents=ha,p.setGlobalValidateHandler=ca,p.setGlobalValidateMessages=ma,p.setGlobalValidateResetEvents=ga,p.setGlobalValidator=fa,p.throttle=hl,p.toBoolean=se,p.toNumber=ye,p.toPadding=qe,p.toPx=fe,p.toPxDesc=Ne,p.toTypeString=At,p.toValue=de,p.tryTimes=qt,p.typeOf=Rt,p.unNumberFormat=Wo,p.updatePageState=Nn,p.useBroadcast=bt,p.useDomain=We,p.useExpose=xe,p.useInnerSize=On,p.usePageState=jt,p.usePosition=Nl,p.useRawTouch=xo,p.useRect=Fr,p.useSize=Wt,p.useTouch=nd,p.valueLength=yt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|