@dazhicheng/utils 1.3.18 → 1.3.20

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.
@@ -13,12 +13,28 @@ export interface ExtendedAxiosRequestConfig extends AxiosRequestConfig {
13
13
  showSuccessMessage?: boolean;
14
14
  hideLoading?: boolean;
15
15
  }
16
+ /**
17
+ * 将 OpenAPI 常见的「整包响应」类型解成运行时实际返回的 `data` 载荷类型。
18
+ * TtHttp 成功时返回 `res.data.data`(axios 的 body 里的 `data` 字段),因此泛型传 `ResponseResultX` 时应得到 `X` 里的 `data`。
19
+ * 若 T 本身没有 `data` 字段(例如直接传业务 DTO),则 T 原样返回。
20
+ *
21
+ * 注意:
22
+ * - 不能用 `T extends { data?: infer D }` 单独判断:会对任意对象成立并把 D 推断成 unknown。
23
+ * - `{ [key: string]: any }` 这类索引签名对象的 `keyof` 含 `string`,用 `string extends keyof T` 识别:此类按「不解包」处理(与 `request.post<Api.Common.Data>` 等用法兼容)。
24
+ * - 显式字段的 `ResponseResult*`(keyof 为若干字面量联合)则解包出 `data`。
25
+ */
26
+ export type UnwrapApiResponse<T> = string extends keyof T ? T : T extends {
27
+ data?: infer D;
28
+ } ? D : T extends {
29
+ data: infer D;
30
+ } ? D : T;
16
31
  export interface TtHttpReturnType {
17
- get<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<T>;
18
- post<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<T>;
19
- put<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<T>;
20
- del<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<T>;
21
- request<T>(config: ExtendedAxiosRequestConfig): Promise<T>;
32
+ get<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<UnwrapApiResponse<T>>;
33
+ post<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<UnwrapApiResponse<T>>;
34
+ put<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<UnwrapApiResponse<T>>;
35
+ del<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<UnwrapApiResponse<T>>;
36
+ patch<T>(config: Omit<ExtendedAxiosRequestConfig, "method">): Promise<UnwrapApiResponse<T>>;
37
+ request<T>(config: ExtendedAxiosRequestConfig): Promise<UnwrapApiResponse<T>>;
22
38
  logOut: () => void;
23
39
  setBaseUrl: (url: string) => void;
24
40
  }
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import t from"axios";import{ElMessage as n,ElLoading as e}from"element-plus";import{nextTick as r,computed as i}from"vue";import o from"dayjs";import{twMerge as u}from"tailwind-merge";import{clsx as a}from"clsx";import{klona as c}from"klona/full";import s from"dayjs/plugin/utc";import f from"dayjs/plugin/timezone";import{createDefu as l}from"defu";export{createDefu as createMerge,defuFn as mergFn,defu as merge}from"defu";import d from"decimal.js";import{encrypt as h,decrypt as p}from"crypto-js/aes";import g,{parse as m}from"crypto-js/enc-utf8";import v from"crypto-js/mode-ecb";import y from"crypto-js/pad-pkcs7";import{cloneDeep as w}from"lodash-es";function b(t){return t.charAt(0).toUpperCase()+t.slice(1)}function E(t){return t.trim()}function S(t){return t.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}const N=(t,n)=>{try{const e=new Blob([t.data],{type:n}),r=document.createElement("a"),i=(window.URL||window.webkitURL).createObjectURL(e);r.href=i;let o=((t.headers["content-disposition"]||"").split("=")||[]).at(-1)||"";o=o?decodeURI(o.replace(/"/g,"")):"";const u=o?.split("''");o=u.at(-1)||"",r.download=o,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i)}catch(t){console.log(t)}};var O,D;!function(t){t[t.success=200]="success",t[t.success1=0]="success1",t[t.error=400]="error",t[t.unauthorized=401]="unauthorized",t[t.forbidden=403]="forbidden",t[t.notFound=404]="notFound",t[t.methodNotAllowed=405]="methodNotAllowed",t[t.requestTimeout=408]="requestTimeout",t[t.internalServerError=500]="internalServerError",t[t.notImplemented=501]="notImplemented",t[t.badGateway=502]="badGateway",t[t.serviceUnavailable=503]="serviceUnavailable",t[t.gatewayTimeout=504]="gatewayTimeout",t[t.httpVersionNotSupported=505]="httpVersionNotSupported",t[t.NEED_REFRESH_TOKEN=1001]="NEED_REFRESH_TOKEN",t[t.API_NO_AUTH=1002]="API_NO_AUTH",t[t.INVALID_TOKEN=1005]="INVALID_TOKEN"}(O||(O={})),function(t){t.badGateway="网关错误,请稍后重试",t.forbidden="禁止访问该资源",t.gatewayTimeout="网关超时,请稍后重试",t.internalServerError="服务器内部错误,请稍后重试",t.methodNotAllowed="请求方法不允许",t.networkError="网络连接异常,请检查网络连接",t.notFound="请求的资源不存在",t.requestCancelled="请求已取消",t.requestConfigError="请求配置错误",t.requestFailed="请求失败",t.requestTimeout="请求超时,请稍后重试",t.serviceUnavailable="服务暂时不可用,请稍后重试",t.unauthorized="未授权访问,请重新登录"}(D||(D={}));class x extends Error{code;data;timestamp;url;method;constructor(t,n,e){super(t),this.name="HttpError",this.code=n,this.data=e?.data,this.timestamp=(new Date).toISOString(),this.url=e?.url||"",this.method=e?.method||""}toLogData(){return{code:this.code,message:this.message,data:this.data,timestamp:this.timestamp,url:this.url||"",method:this.method||"",stack:this.stack||""}}}function T(t){if("ERR_CANCELED"===t.code)throw console.warn("Request cancelled:",t.message),new x(D.requestCancelled,O.error);const n=t.response?.status,e=t.response?.data?.msg||t.message,r=t.config;if(!t.response)throw new x(D.networkError,O.error,{url:r?.url||"",method:r?.method?.toUpperCase()||""});const i=n?(o=n,{[O.unauthorized]:D.unauthorized,[O.forbidden]:D.forbidden,[O.notFound]:D.notFound,[O.methodNotAllowed]:D.methodNotAllowed,[O.requestTimeout]:D.requestTimeout,[O.internalServerError]:D.internalServerError,[O.badGateway]:D.badGateway,[O.serviceUnavailable]:D.serviceUnavailable,[O.gatewayTimeout]:D.gatewayTimeout}[o]||D.internalServerError):e||D.requestFailed;var o;throw new x(i,n||O.error,{data:t.response.data,url:r?.url||"",method:r?.method?.toUpperCase()||""})}function j(t,e=!0){e&&n.error(t.message),console.error("[HTTP Error]",t.toLogData())}const A=()=>document.documentElement.classList.contains("dark")?"rgba(7, 7, 7, 0.85)":"rgba(255, 255, 255, 0.5)",M={lock:!0,get background(){return A()},svg:'\n <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <style>\n .spinner {\n transform-origin: 20px 20px;\n animation: rotate 1.6s linear infinite;\n }\n .dot {\n fill: var(--theme-color);\n animation: fade 1.6s infinite;\n }\n .dot:nth-child(1) { animation-delay: 0s; }\n .dot:nth-child(2) { animation-delay: 0.5s; }\n .dot:nth-child(3) { animation-delay: 1s; }\n .dot:nth-child(4) { animation-delay: 1.5s; }\n @keyframes rotate {\n 100% { transform: rotate(360deg); }\n }\n @keyframes fade {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n </style>\n <g class="spinner">\n <circle class="dot" cx="20" cy="8" r="4"/>\n <circle class="dot" cx="32" cy="20" r="4"/>\n <circle class="dot" cx="20" cy="32" r="4"/>\n <circle class="dot" cx="8" cy="20" r="4"/>\n </g>\n </svg>\n',svgViewBox:"0 0 40 40",customClass:"art-loading-fix"};let k=null;const I={showLoading(){if(!k){const t={...M,background:A()};k=e.service(t)}return()=>this.hideLoading()},hideLoading(){k&&(k.close(),k=null)}};function C(e){const{router:i,useUserStore:o,VITE_API_URL:u,VITE_WITH_CREDENTIALS:a}=e;let c=!1;const s=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"];let f=0;function l(){setTimeout(()=>{f--,0===f&&c&&r(()=>{I.hideLoading(),c=!1})},0)}let d=!1,h=null;const p=t.create({timeout:6e4,baseURL:"/"+u,withCredentials:"true"===a,validateStatus:t=>t>=200&&t<300,transformResponse:[(t,n)=>{const e=n["content-type"];if(e?.includes("application/json"))try{return JSON.parse(t)}catch{return t}return t}]});function g(t,n){return new x(t,n)}function m(t){const n=g(t||D.unauthorized,O.unauthorized);if(!d)throw d=!0,y(),h=setTimeout(v,3e3),j(n,!0),n;throw n}function v(){d=!1,h&&clearTimeout(h),h=null}p.interceptors.request.use(t=>{const{accessToken:n,info:e}=o();return n&&(t.headers.set("Authorization",n),t.headers.set("token",n),t.headers.set("x-userid-header",e.userId),t.headers.set("x-permission-code-header",i.currentRoute.value.meta.permissionOnlyCode)),t.hideLoading||0!==f||(c=!0,I.showLoading()),f++,!t.data||t.data instanceof FormData||t.headers["Content-Type"]||(t.headers.set("Content-Type","application/json"),t.data=JSON.stringify(t.data)),t},t=>(j(g(D.requestConfigError,O.error)),Promise.reject(t))),p.interceptors.response.use(t=>{l();const n=t.headers["content-type"];if(n?.includes("application/json")){const{code:n,msg:e}=t.data;if([O.success,O.success1].includes(n))return t;throw[O.unauthorized,O.INVALID_TOKEN].includes(n)&&m(e),g(e||D.requestFailed,n)}if(s.includes(n))return N(t,n),t},t=>(l(),t.response?.status===O.unauthorized&&m(),Promise.reject(T(t))));const y=()=>{setTimeout(()=>{o().logOut()},500)};async function w(t,e=0){try{return await async function(t){["POST","PUT"].includes(t.method?.toUpperCase()||"")&&t.params&&!t.data&&(t.data=t.params,t.params=void 0);try{const e=await p.request(t);return t.showSuccessMessage&&e.data.msg&&function(t,e=!0){e&&n.success(t)}(e.data.msg),e.data.data}catch(n){const e=[O.unauthorized,O.NEED_REFRESH_TOKEN].includes(n.code);if(n instanceof x&&!e){j(n,!1!==t.showErrorMessage)}return Promise.reject(n)}}(t)}catch(n){if(n instanceof x&&[O.NEED_REFRESH_TOKEN].includes(n.code)&&!t.url?.includes("/iam/user/refreshToken"))return await o().refreshTokenFunc(),await b(1e3),w(t,e-1);if(e>0&&n instanceof x&&(r=n.code,[O.requestTimeout,O.internalServerError,O.badGateway,O.serviceUnavailable,O.gatewayTimeout].includes(r)))return await b(1e3),w(t,e-1);throw n}var r}function b(t){return new Promise(n=>setTimeout(n,t))}const E={get:t=>w({...t,method:"GET"}),post:t=>w({...t,method:"POST"}),put:t=>w({...t,method:"PUT"}),del:t=>w({...t,method:"DELETE"}),request:t=>w(t)};return{...E,logOut:y,setBaseUrl:t=>{p.defaults.baseURL=t}}}function P(t,n){if(t.install=e=>{for(const r of[t,...Object.values(n??{})]){const t=r.name;t&&e.component(t,r)}},n)for(const[e,r]of Object.entries(n))t[e]=r;return t}const F=Object.prototype.toString;function R(t,n){return F.call(t)===`[object ${n}]`}function W(t){return void 0!==t}function _(t){return!W(t)}function U(t){return null===t}function $(t){return _(t)||U(t)}function z(t){return!$(t)&&(t instanceof Promise||R(t,"Object"))}function H(t){return!!$(t)||(G(t)||B(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:!!z(t)&&0===Object.keys(t).length)}function L(t){return!!H(t)||(0===t||!!B(t)&&("0"===t||"undefined"===t||"null"===t))}function K(t){return R(t,"Date")}function q(t){return R(t,"Number")&&t==t}function Z(t){return R(t,"Promise")&&z(t)&&Y(t.then)&&Y(t.catch)}function B(t){return R(t,"String")}function Y(t){return"function"==typeof t}function J(t){return R(t,"Boolean")}function V(t){return R(t,"RegExp")}function G(t){return t&&Array.isArray(t)}function Q(t){return"undefined"!=typeof window&&R(t,"Window")}function X(t){return"undefined"!=typeof Element&&t instanceof Element}function tt(t){return R(t,"Map")}const nt="undefined"==typeof window,et=!nt;function rt(t){return/(?:^https?:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*(?:#\w*)?$/.test(t)}function it(t){return!!B(t)&&!Number.isNaN(Number(t))}function ot(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function ut(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function at(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function ct(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function st(t){return!t||t===U(t)||t===_(t)||!1===t||t===Number.isNaN(t)||!(!G(t)||0!==t.length)}function ft(t){return!st(t)}function lt(){const t=navigator.userAgent;return t.includes("Android")||t.includes("Linux")?"Android":t.includes("iPhone")?"iPhone":t.includes("iPad")?"iPad":t.includes("Windows Phone")?"Windows Phone":t}function dt(){const t=navigator.userAgent;return function(t){const n=t.includes("Opera");return t.includes("compatible")&&t.includes("MSIE")&&!n}(t)?function(t){const n=/MSIE (\d+\.\d+);/,e=t.match(n),r=e?Number.parseFloat(e[1]||"0"):0;return 7===r?"IE7":8===r?"IE8":9===r?"IE9":10===r?"IE10":"IE7以下"}(t):function(t){return t.includes("Trident")&&t.includes("rv:11.0")}(t)?"IE11":function(t){const n=t.includes("compatible")&&t.includes("MSIE");return t.includes("Edge")&&!n}(t)?"Edge":function(t){return t.includes("Firefox")}(t)?"FF":function(t){return t.includes("Opera")}(t)?"Opera":function(t){return t.includes("Safari")&&!t.includes("Chrome")}(t)?"Safari":function(t){return t.includes("Chrome")&&t.includes("Safari")}(t)?"Chrome":""}function ht(){return"iPhone"===lt()}function pt(){return"Android"===lt()}function gt(){const t=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];let e=!0;for(let r=0;r<n.length;r++){const i=n[r];if(i&&t.indexOf(i)>0){e=!1;break}}return e}function mt(t){return/^(?:https?:|mailto:|tel:|\/\/)/.test(t)}function vt(t){if("string"==typeof t)try{const n=JSON.parse(t);return!("object"!=typeof n||!n)}catch(t){return console.error(`error:${t}`),!1}return!1}function yt(t){return o.isDayjs(t)}function wt(t){if("string"==typeof t)return t.trim();if("function"==typeof t){return(t.name||"").replace(/^bound\s+/i,"")}return""}function bt(...t){return t.filter(t=>null!=t&&""!==t).join("-")}function Et(t){return t?t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/[\s_]+/g,"-").replace(/[^\w\u4E00-\u9FA5-]+/g,"-").toLowerCase().replace(/^-+|-+$/g,"").replace(/-+/g,"-"):""}function St(t,n=3){if(!t||0===t.length)return"form";const e=t.filter(t=>null!=t&&""!==t).slice(0,n);return 0===e.length?"form":e.join("-")}function Nt(t){return t?Et(t):""}function Ot(t){if(!t)return!1;return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t)}var Dt={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};function xt(t,n,e){if(t)if(t.forEach)t.forEach(n,e);else for(var r=0,i=t.length;r<i;r++)n.call(e,t[r],r,t)}var Tt=Object.prototype.toString;function jt(t){return function(n){return"[object "+t+"]"===Tt.call(n)}}var At=Array.isArray||jt("Array");function Mt(t,n){return!(!t||!t.hasOwnProperty)&&t.hasOwnProperty(n)}function kt(t,n,e){if(t)for(var r in t)Mt(t,r)&&n.call(e,t[r],r,t)}function It(t,n,e){return t?(At(t)?xt:kt)(t,n,e):t}function Ct(t){return function(n){return typeof n===t}}var Pt=Ct("function");function Ft(t,n){var e=Object[t];return function(t){var r=[];if(t){if(e)return e(t);It(t,n>1?function(n){r.push([""+n,t[n]])}:function(){r.push(arguments[n])})}return r}}var Rt=Ft("keys",1);function Wt(t,n){var e=t.__proto__.constructor;return n?new e(n):new e}function _t(t,n){return n?Ut(t,n):t}function Ut(t,n){if(t)switch(Tt.call(t)){case"[object Object]":var e=Object.create(Object.getPrototypeOf(t));return kt(t,function(t,r){e[r]=_t(t,n)}),e;case"[object Date]":case"[object RegExp]":return Wt(t,t.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return xt(t,function(t){r.push(_t(t,n))}),r;case"[object Set]":var i=Wt(t);return i.forEach(function(t){i.add(_t(t,n))}),i;case"[object Map]":var o=Wt(t);return o.forEach(function(t,e){o.set(e,_t(t,n))}),o}return t}function $t(t,n){return t?Ut(t,n):t}var zt=Object.assign;function Ht(t,n,e){for(var r,i=n.length,o=1;o<i;o++)r=n[o],xt(Rt(n[o]),e?function(n){t[n]=$t(r[n],e)}:function(n){t[n]=r[n]});return t}var Lt=function(t){if(t){var n=arguments;if(!0!==t)return zt?zt.apply(Object,n):Ht(t,n);if(n.length>1)return Ht(t=At(t[1])?[]:{},n,!0)}return t},Kt=function(){};function qt(t){return Lt(Dt,t)}var Zt="4.0.0";function Bt(t,n,e){for(var r=t.length-1;r>=0;r--)n.call(e,t[r],r,t)}function Yt(t,n,e){Bt(Rt(t),function(r){n.call(e,t[r],r,t)})}function Jt(t){return null===t}function Vt(t,n){return function(e){return Jt(e)?n:e[t]}}function Gt(t){return!!t&&t.constructor===Object}function Qt(t){return"__proto__"!==t&&"constructor"!==t}function Xt(t,n){return Gt(t)&&Gt(n)||At(t)&&At(n)?(It(n,function(e,r){Qt(r)&&(t[r]=Pt(n)?e:Xt(t[r],e))}),t):n}Kt.VERSION=Zt,Kt.version=Zt,Kt.mixin=function(){xt(arguments,function(t){It(t,function(t,n){Kt[n]=Pt(t)?function(){var n=t.apply(Kt.$context,arguments);return Kt.$context=null,n}:t})})},Kt.setup=qt,Kt.setConfig=qt,Kt.getConfig=function(){return Dt};function tn(t,n,e){var r=[];if(t&&arguments.length>1){if(t.map)return t.map(n,e);It(t,function(){r.push(n.apply(e,arguments))})}return r}function nn(t,n,e,r,i){return function(o,u,a){if(o&&u){if(t&&o[t])return o[t](u,a);if(n&&At(o)){for(var c=0,s=o.length;c<s;c++)if(!!u.call(a,o[c],c,o)===r)return[!0,!1,c,o[c]][e]}else for(var f in o)if(Mt(o,f)&&!!u.call(a,o[f],f,o)===r)return[!0,!1,f,o[f]][e]}return i}}var en=nn("some",1,0,!0,!1),rn=nn("every",1,1,!1,!0);function on(t,n){if(t){if(t.includes)return t.includes(n);for(var e in t)if(Mt(t,e)&&n===t[e])return!0}return!1}function un(t,n){var e,r=0;if(At(t)&&At(n)){for(e=n.length;r<e;r++)if(!on(t,n[r]))return!1;return!0}return on(t,n)}function an(t,n,e){var r=[];if(n){Pt(n)||(n=Vt(n));var i,o={};It(t,function(u,a){i=n.call(e,u,a,t),o[i]||(o[i]=1,r.push(u))})}else It(t,function(t){on(r,t)||r.push(t)});return r}function cn(t){return tn(t,function(t){return t})}var sn="undefined",fn=Ct(sn);function ln(t){return Jt(t)||fn(t)}var dn=/(.+)?\[(\d+)\]$/;function hn(t){return t?t.splice&&t.join?t:(""+t).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}function pn(t,n,e){if(ln(t))return e;var r=function(t,n){if(t){var e,r,i,o=0;if(t[n]||Mt(t,n))return t[n];if(i=(r=hn(n)).length)for(e=t;o<i;o++)if(ln(e=gn(e,r[o])))return o===i-1?e:void 0;return e}}(t,n);return fn(r)?e:r}function gn(t,n){var e=n?n.match(dn):"";return e?e[1]?t[e[1]]?t[e[1]][e[2]]:void 0:t[e[2]]:t[n]}function mn(t,n){return fn(t)?1:Jt(t)?fn(n)?-1:1:t&&t.localeCompare?t.localeCompare(n):t>n?1:-1}function vn(t,n,e){return function(r,i){var o=r[t],u=i[t];return o===u?e?e(r,i):0:"desc"===n.order?mn(u,o):mn(o,u)}}function yn(t,n,e){if(t){if(ln(n))return cn(t).sort(mn);for(var r,i=tn(t,function(t){return{data:t}}),o=function(t,n,e,r){var i=[];return xt(e=At(e)?e:[e],function(e,o){if(e){var u,a=e;At(e)?(a=e[0],u=e[1]):Gt(e)&&(a=e.field,u=e.order),i.push({field:a,order:u||"asc"}),xt(n,Pt(a)?function(n,e){n[o]=a.call(r,n.data,e,t)}:function(t){t[o]=a?pn(t.data,a):t.data})}}),i}(t,i,n,e),u=o.length-1;u>=0;)r=vn(u,o[u],r),u--;return r&&(i=i.sort(r)),tn(i,Vt("data"))}return[]}var wn=yn;function bn(t,n){return t>=n?t:(t|=0)+Math.round(Math.random()*((n||9)-t))}var En=Ft("values",0);function Sn(t){for(var n,e=[],r=En(t),i=r.length-1;i>=0;i--)n=i>0?bn(0,i):0,e.push(r[n]),r.splice(n,1);return e}function Nn(t){return function(n){if(n){var e=t(n&&n.replace?n.replace(/,/g,""):n);if(!isNaN(e))return e}return 0}}var On=Nn(parseFloat);function Dn(t,n,e){var r=[],i=arguments.length;if(t){if(n=i>=2?On(n):0,e=i>=3?On(e):t.length,t.slice)return t.slice(n,e);for(;n<e;n++)r.push(t[n])}return r}var xn=nn("",0,2,!0),Tn=nn("find",1,3,!0);function jn(t,n){return tn(t,Vt(n))}function An(t){return function(n,e){var r,i;return n&&n.length?(xt(n,function(o,u){e&&(o=Pt(e)?e(o,u,n):pn(o,e)),ln(o)||!ln(r)&&!t(r,o)||(i=u,r=o)}),n[i]):r}}var Mn=An(function(t,n){return t<n});function kn(t){var n,e,r,i=[];if(t&&t.length)for(n=0,r=(e=Mn(t,function(t){return t?t.length:0}))?e.length:0;n<r;n++)i.push(jn(t,n));return i}function In(t,n){var e=[];return xt(t,function(t){e=e.concat(At(t)?n?In(t,n):t:[t])}),e}function Cn(t,n){return(console[t]||console.log)(n)}function Pn(t,n){try{delete t[n]}catch(e){t[n]=void 0}}function Fn(t,n,e){return t?(At(t)?Bt:Yt)(t,n,e):t}var Rn=Ct("object");function Wn(t,n,e){if(t){var r,i=arguments.length>1&&(Jt(n)||!Rn(n)),o=i?e:n;if(Gt(t))kt(t,i?function(e,r){t[r]=n}:function(n,e){Pn(t,e)}),o&&Lt(t,o);else if(At(t)){if(i)for(r=t.length;r>0;)r--,t[r]=n;else t.length=0;o&&t.push.apply(t,o)}}return t}function _n(t,n,e){if(t){if(!ln(n)){var r=[],i=[];return Pt(n)||(o=n,n=function(t,n){return n===o}),It(t,function(t,i,o){n.call(e,t,i,o)&&r.push(i)}),At(t)?Fn(r,function(n,e){i.push(t[n]),t.splice(n,1)}):(i={},xt(r,function(n){i[n]=t[n],Pn(t,n)})),i}return Wn(t)}var o;return t}function Un(t,n,e,r){var i=r.key,o=r.parentKey,u=r.children,a=r.data,c=r.updated,s=r.clear;return xt(e,function(e){var f=e[u];a&&(e=e[a]),!1!==c&&(e[o]=n?n[i]:null),t.push(e),f&&f.length&&Un(t,e,f,r),s&&delete e[u]}),t}function $n(t){return function(n,e,r,i){var o=r||{},u=o.children||"children";return t(null,n,e,i,[],[],u,o)}}var zn=$n(function t(n,e,r,i,o,u,a,c){var s,f,l,d,h,p;if(e)for(f=0,l=e.length;f<l;f++){if(s=e[f],d=o.concat([""+f]),h=u.concat([s]),r.call(i,s,f,e,d,n,h))return{index:f,item:s,path:d,items:e,parent:n,nodes:h};if(a&&s&&(p=t(s,s[a],r,i,d.concat([a]),h,a)))return p}});var Hn=$n(function t(n,e,r,i,o,u,a,c){var s,f;It(e,function(c,l){s=o.concat([""+l]),f=u.concat([c]),r.call(i,c,l,e,s,n,f),c&&a&&(s.push(a),t(c,c[a],r,i,s,f,a))})});var Ln=$n(function t(n,e,r,i,o,u,a,c){var s,f,l,d=c.mapChildren||a;return tn(e,function(h,p){return s=o.concat([""+p]),f=u.concat([h]),(l=r.call(i,h,p,e,s,n,f))&&h&&a&&h[a]&&(l[d]=t(h,h[a],r,i,s,f,a,c)),l})});function Kn(t,n,e,r,i,o,u,a,c){var s,f,l,d,h,p=[],g=c.original,m=c.data,v=c.mapChildren||a,y=c.isEvery;return xt(e,function(w,b){s=o.concat([""+b]),f=u.concat([w]),d=t&&!y||r.call(i,w,b,e,s,n,f),h=a&&w[a],d||h?(g?l=w:(l=Lt({},w),m&&(l[m]=w)),l[v]=Kn(d,w,w[a],r,i,s,f,a,c),(d||l[v].length)&&p.push(l)):d&&p.push(l)}),p}var qn=$n(function(t,n,e,r,i,o,u,a){return Kn(0,t,n,e,r,i,o,u,a)});function Zn(t,n){if(t.indexOf)return t.indexOf(n);for(var e=0,r=t.length;e<r;e++)if(n===t[e])return e}function Bn(t,n){if(t.lastIndexOf)return t.lastIndexOf(n);for(var e=t.length-1;e>=0;e--)if(n===t[e])return e;return-1}var Yn=Ct("number");var Jn=Ct("string"),Vn=jt("Date"),Gn=parseInt;function Qn(t){return Date.UTC(t.y,t.M||0,t.d||1,t.H||0,t.m||0,t.s||0,t.S||0)}function Xn(t){return t.getTime()}function te(t){return"(\\d{"+t+"})"}function ne(t){return isNaN(t)?t:Gn(t)}for(var ee=te(2),re=te("1,2"),ie=te("1,7"),oe=te("3,4"),ue=".{1}",ae=ue+re,ce="(([zZ])|([-+]\\d{2}:?\\d{2}))",se=[oe,ae,ae,ae,ae,ae,ue+ie,ce],fe=[],le=se.length-1;le>=0;le--){for(var de="",he=0;he<le+1;he++)de+=se[he];fe.push(new RegExp("^"+de+"$"))}var pe=[["yyyy",oe],["yy",ee],["MM",ee],["M",re],["dd",ee],["d",re],["HH",ee],["H",re],["mm",ee],["m",re],["ss",ee],["s",re],["SSS",te(3)],["S",ie],["Z",ce]],ge={},me=["\\[([^\\]]+)\\]"];for(he=0;he<pe.length;he++){var ve=pe[he];ge[ve[0]]=ve[1]+"?",me.push(ve[0])}var ye=new RegExp(me.join("|"),"g"),we={};function be(t,n){if(t){var e=Vn(t);if(e||!n&&/^[0-9]{11,15}$/.test(t))return new Date(e?Xn(t):Gn(t));if(Jn(t)){var r=n?function(t,n){var e=we[n];if(!e){var r=[],i=n.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(ye,function(t,n){var e=t.charAt(0);return"["===e?n:(r.push(e),ge[t])});e=we[n]={_i:r,_r:new RegExp(i)}}var o={},u=t.match(e._r);if(u){for(var a=e._i,c=1,s=u.length;c<s;c++)o[a[c-1]]=u[c];return o}return o}(t,n):function(t){for(var n,e={},r=0,i=fe.length;r<i;r++)if(n=t.match(fe[r])){e.y=n[1],e.M=n[2],e.d=n[3],e.H=n[4],e.m=n[5],e.s=n[6],e.S=n[7],e.Z=n[8];break}return e}(t);if(r.y)return r.M&&(r.M=ne(r.M)-1),r.S&&(r.S=(i=ne(r.S.substring(0,3)))<10?100*i:i<100?10*i:i),r.Z?function(t){if(/^[zZ]/.test(t.Z))return new Date(Qn(t));var n=t.Z.match(/([-+])(\d{2}):?(\d{2})/);return n?new Date(Qn(t)-("-"===n[1]?-1:1)*Gn(n[2])*36e5+6e4*Gn(n[3])):new Date("")}(r):new Date(r.y,r.M||0,r.d||1,r.H||0,r.m||0,r.s||0,r.S||0)}}var i;return new Date("")}function Ee(){return new Date}function Se(t){var n,e=t?be(t):Ee();return!!Vn(e)&&((n=e.getFullYear())%4==0&&(n%100!=0||n%400==0))}function Ne(t,n){return function(e,r){if(e){if(e[t])return e[t](r);if(Jn(e)||At(e))return n(e,r);for(var i in e)if(Mt(e,i)&&r===e[i])return i}return-1}}var Oe=Ne("indexOf",Zn),De=Ne("lastIndexOf",Bn);function xe(t){var n=0;return Jn(t)||At(t)?t.length:(It(t,function(){n++}),n)}var Te=function(t){return!Jt(t)&&!isNaN(t)&&!At(t)&&t%1==0};var je=Ct("boolean"),Ae=jt("RegExp"),Me=jt("Error");function ke(t){for(var n in t)return!1;return!0}var Ie=typeof Symbol!==sn;function Ce(t){return Ie&&Symbol.isSymbol?Symbol.isSymbol(t):"symbol"==typeof t}var Pe=jt("Arguments");var Fe=typeof document===sn?0:document;var Re=typeof window===sn?0:window;var We=typeof FormData!==sn;var _e=typeof Map!==sn;var Ue=typeof WeakMap!==sn;var $e=typeof Set!==sn;var ze=typeof WeakSet!==sn;function He(t){return function(n,e,r){if(n&&Pt(e)){if(At(n)||Jn(n))return t(n,e,r);for(var i in n)if(Mt(n,i)&&e.call(r,n[i],i,n))return i}return-1}}var Le=He(function(t,n,e){for(var r=0,i=t.length;r<i;r++)if(n.call(e,t[r],r,t))return r;return-1});function Ke(t,n,e,r,i,o,u){if(t===n)return!0;if(t&&n&&!Yn(t)&&!Yn(n)&&!Jn(t)&&!Jn(n)){if(Ae(t))return e(""+t,""+n,i,o,u);if(Vn(t)||je(t))return e(+t,+n,i,o,u);var a,c,s,f=At(t),l=At(n);if(f||l?f&&l:t.constructor===n.constructor)return c=Rt(t),s=Rt(n),r&&(a=r(t,n,i)),c.length===s.length&&(fn(a)?rn(c,function(i,o){return i===s[o]&&Ke(t[i],n[s[o]],e,r,f||l?o:i,t,n)}):!!a)}return e(t,n,i,o,u)}function qe(t,n){return t===n}function Ze(t,n){return Ke(t,n,qe)}var Be=He(function(t,n,e){for(var r=t.length-1;r>=0;r--)if(n.call(e,t[r],r,t))return r;return-1});var Ye=Ft("entries",2);function Je(t,n){return function(e,r){var i,o,u={},a=[],c=this,s=arguments,f=s.length;if(!Pt(r)){for(o=1;o<f;o++)i=s[o],a.push.apply(a,At(i)?i:[i]);r=0}return It(e,function(i,o){((r?r.call(c,i,o,e):Le(a,function(t){return t===o})>-1)?t:n)&&(u[o]=i)}),u}}var Ve=Je(1,0),Ge=Je(0,1);var Qe=/(.+)?\[(\d+)\]$/;function Xe(t,n,e,r,i){if(!t[n]){var o,u,a=n?n.match(Qe):null;if(e)u=i;else{var c=r?r.match(Qe):null;u=c&&!c[1]?new Array(Gn(c[2])+1):{}}return a?a[1]?(o=Gn(a[2]),t[a[1]]?e?t[a[1]][o]=u:t[a[1]][o]?u=t[a[1]][o]:t[a[1]][o]=u:(t[a[1]]=new Array(o+1),t[a[1]][o]=u)):t[a[2]]=u:t[n]=u,u}return e&&(t[n]=i),t[n]}function tr(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function nr(t,n,e){var r,i={};return t&&(n&&Rn(n)?n=function(t){return function(){return ke(t)}}(n):Pt(n)||(n=Vt(n)),It(t,function(o,u){r=n?n.call(e,o,u,t):o,i[r]?i[r].push(o):i[r]=[o]})),i}function er(t,n,e){var r,i,o=[],u=arguments;if(u.length<2&&(n=u[0],t=0),i=n|0,(r=t|0)<n)for(e=e|0||1;r<i;r+=e)o.push(r);return o}var rr=An(function(t,n){return t>n});function ir(t){return(t.split(".")[1]||"").length}function or(t,n){if(t.repeat)return t.repeat(n);var e=isNaN(n)?[]:new Array(Gn(n));return e.join(t)+(e.length>0?t:"")}function ur(t,n){return t.substring(0,n)+"."+t.substring(n,t.length)}function ar(t){var n=""+t,e=n.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(e){var r=t<0?"-":"",i=e[3]||"",o=e[5]||"",u=e[6]||"",a=e[7],c=e[8],s=c-u.length,f=c-i.length,l=c-o.length;return"+"===a?i?r+i+or("0",c):s>0?r+o+u+or("0",s):r+o+ur(u,c):i?f>0?r+"0."+or("0",Math.abs(f))+i:r+ur(i,f):l>0?r+"0."+or("0",Math.abs(l))+o+u:r+ur(o,l)+u}return n}function cr(t,n){var e=ar(t),r=ar(n);return parseInt(e.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,ir(e)+ir(r))}function sr(t){return function(n,e){var r=On(n),i=r;if(r){e|=0;var o=ar(r).split("."),u=o[0],a=o[1]||"",c=a.substring(0,e+1),s=u+(c?"."+c:"");if(e>=a.length)return On(s);if(s=r,e>0){var f=Math.pow(10,e);i=Math[t](cr(s,f))/f}else i=Math[t](s)}return i}}var fr=sr("round"),lr=sr("ceil"),dr=sr("floor");function hr(t){return Yn(t)?ar(t):""+(ln(t)?"":t)}function pr(t,n){var e=hr(fr(t,n|=0)).split("."),r=e[0],i=e[1]||"",o=n-i.length;return n?o>0?r+"."+i+or("0",o):r+ur(i,Math.abs(o)):r}var gr=Nn(Gn);function mr(t,n){return cr(On(t),On(n))}function vr(t,n){var e=ar(t),r=ar(n),i=Math.pow(10,Math.max(ir(e),ir(r)));return(mr(t,i)+mr(n,i))/i}function yr(t,n){var e=ar(t),r=ar(n),i=ir(e),o=ir(r)-i,u=o<0,a=Math.pow(10,u?Math.abs(o):o);return mr(e.replace(".","")/r.replace(".",""),u?1/a:a)}function wr(t,n,e){var r=0;return It(t&&t.length>2&&At(t)?t.sort():t,n?Pt(n)?function(){r=vr(r,n.apply(e,arguments))}:function(t){r=vr(r,pn(t,n))}:function(t){r=vr(r,t)}),r}var br="first",Er="last";function Sr(t){return t.getFullYear()}var Nr=864e5;function Or(t){return t.getMonth()}function Dr(t){return Vn(t)&&!isNaN(Xn(t))}function xr(t,n,e){var r=n&&!isNaN(n)?n:0;if(Dr(t=be(t))){if(e===br)return new Date(Sr(t),Or(t)+r,1);if(e===Er)return new Date(Xn(xr(t,r+1,br))-1);if(Yn(e)&&t.setDate(e),r){var i=t.getDate();if(t.setMonth(Or(t)+r),i!==t.getDate())return t.setDate(1),new Date(Xn(t)-Nr)}}return t}function Tr(t,n,e){var r;if(Dr(t=be(t))&&(n&&(r=n&&!isNaN(n)?n:0,t.setFullYear(Sr(t)+r)),e||!isNaN(e))){if(e===br)return new Date(Sr(t),0,1);if(e===Er)return t.setMonth(11),xr(t,0,Er);t.setMonth(e)}return t}var jr=6048e5;function Ar(t,n,e,r){if(Dr(t=be(t))){var i=Yn(e),o=Yn(r),u=Xn(t);if(i||o){var a=o?r:Dt.firstDayOfWeek,c=t.getDay(),s=i?e:c;if(c!==s){var f=0;a>c?f=-(7-a+c):a<c&&(f=a-c),u+=s>a?((0===s?7:s)-a+f)*Nr:s<a?(7-a+s+f)*Nr:f*Nr}}return n&&!isNaN(n)&&(u+=n*jr),new Date(u)}return t}function Mr(t,n,e){if(Dr(t=be(t))&&!isNaN(n)){if(t.setDate(t.getDate()+Gn(n)),e===br)return new Date(Sr(t),Or(t),t.getDate());if(e===Er)return new Date(Xn(Mr(t,1,br))-1)}return t}function kr(t){return t.toUpperCase()}var Ir=tn(er(0,7),function(t){return[(t+1)%7,(t+2)%7,(t+3)%7]});function Cr(t,n){var e=new Date(t).getDay();return on(Ir[n],e)}function Pr(t,n){return function(e,r){var i=Yn(r)?r:Dt.firstDayOfWeek,o=be(e);if(Dr(o)){var u,a=Ar(o,0,i,i),c=t(a),s=Xn(c),f=Xn(a),l=f+5184e5,d=new Date(l),h=Ar(c,0,i,i),p=Xn(h);if(f===p)return 1;if(n(a,d))for(u=Xn(t(d));u<l;u+=Nr)if(Cr(u,i))return 1;var g=p+5184e5,m=new Date(l),v=1;if(n(h,m))for(v=0,u=s;u<g;u+=Nr)if(Cr(u,i)){v++;break}return Math.floor((f-p)/jr)+v}return NaN}}var Fr=Pr(function(t){return new Date(t.getFullYear(),0,1)},function(t,n){return t.getFullYear()!==n.getFullYear()});function Rr(t){return Xn(function(t){return new Date(Sr(t),Or(t),t.getDate())}(t))}function Wr(t){return Dr(t=be(t))?Math.floor((Rr(t)-Rr(Tr(t,0,br)))/Nr)+1:NaN}function _r(t,n,e){var r=hr(t);return n|=0,e=fn(e)?" ":""+e,r.padStart?r.padStart(n,e):n>r.length?((n-=r.length)>e.length&&(e+=or(e,n/e.length)),e.slice(0,n)+r):r}function Ur(t,n,e,r){var i=n[e];return i?Pt(i)?i(r,e,t):i[r]:r}var $r=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function zr(t,n,e){if(t){if(Dr(t=be(t))){var r=e||{},i=n||Dt.parseDateFormat||Dt.formatString,o=t.getHours(),u=o<12?"am":"pm",a=Lt({},Dt.parseDateRules||Dt.formatStringMatchs,r.formats),c=function(n,e){return(""+Sr(t)).substring(4-e)},s=function(n,e){return _r(Or(t)+1,e,"0")},f=function(n,e){return _r(t.getDate(),e,"0")},l=function(t,n){return _r(o,n,"0")},d=function(t,n){return _r(o<=12?o:o-12,n,"0")},h=function(n,e){return _r(t.getMinutes(),e,"0")},p=function(n,e){return _r(t.getSeconds(),e,"0")},g=function(n,e){return _r(t.getMilliseconds(),e,"0")},m=function(n,e){var r=t.getTimezoneOffset()/60*-1;return Ur(t,a,n,(r>=0?"+":"-")+_r(r,2,"0")+(1===e?":":"")+"00")},v=function(n,e){return _r(Ur(t,a,n,Fr(t,ln(r.firstDay)?Dt.firstDayOfWeek:r.firstDay)),e,"0")},y=function(n,e){return _r(Ur(t,a,n,Wr(t)),e,"0")},w={yyyy:c,yy:c,MM:s,M:s,dd:f,d:f,HH:l,H:l,hh:d,h:d,mm:h,m:h,ss:p,s:p,SSS:g,S:g,ZZ:m,Z:m,WW:v,W:v,DDD:y,D:y,a:function(n){return Ur(t,a,n,u)},A:function(n){return Ur(t,a,n,kr(u))},e:function(n){return Ur(t,a,n,t.getDay())},E:function(n){return Ur(t,a,n,t.getDay())},q:function(n){return Ur(t,a,n,Math.floor((Or(t)+3)/3))}};return i.replace($r,function(t,n){return n||(w[t]?w[t](t,t.length):t)})}return"Invalid Date"}return""}var Hr=Date.now||function(){return Xn(Ee())};var Lr=Pr(function(t){return new Date(t.getFullYear(),t.getMonth(),1)},function(t,n){return t.getMonth()!==n.getMonth()});var Kr=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function qr(t){return t&&t.trimRight?t.trimRight():hr(t).replace(/[\s\uFEFF\xA0]+$/g,"")}function Zr(t){return t&&t.trimLeft?t.trimLeft():hr(t).replace(/^[\s\uFEFF\xA0]+/g,"")}function Br(t){return t&&t.trim?t.trim():qr(Zr(t))}var Yr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};function Jr(t){var n=new RegExp("(?:"+Rt(t).join("|")+")","g");return function(e){return hr(e).replace(n,function(n){return t[n]})}}var Vr=Jr(Yr),Gr={};It(Yr,function(t,n){Gr[Yr[n]]=n});var Qr=Jr(Gr);function Xr(t,n,e){return t.substring(n,e)}function ti(t){return t.toLowerCase()}var ni={};var ei={};function ri(t,n,e){return hr(t).replace((e||Dt).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(t,e){return pn(n,Br(e))})}var ii=decodeURIComponent;function oi(t){var n,e={};return t&&Jn(t)&&xt(t.split("&"),function(t){n=t.split("="),e[ii(n[0])]=ii(n[1]||"")}),e}var ui=encodeURIComponent;function ai(t,n,e){var r,i=[];return It(t,function(t,o){r=At(t),Gt(t)||r?i=i.concat(ai(t,n+"["+o+"]",r)):i.push(ui(n+"["+(e?"":o)+"]")+"="+ui(Jt(t)?"":t))}),i}var ci=typeof location===sn?0:location;function si(){return ci?ci.origin||ci.protocol+"//"+ci.host:""}function fi(t){return oi(t.split("?")[1]||"")}function li(t){var n,e,r,i,o=""+t;return 0===o.indexOf("//")?o=(ci?ci.protocol:"")+o:0===o.indexOf("/")&&(o=si()+o),r=o.replace(/#.*/,"").match(/(\?.*)/),(i={href:o,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""}).path=o.replace(/^([a-z0-9.+-]*:)\/\//,function(t,n){return i.protocol=n,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(t,n,r){return e=r||"",i.port=e.replace(":",""),i.hostname=n,i.host=n+e,"/"}).replace(/(#.*)/,function(t,n){return i.hash=n.length>1?n:"",""}),n=i.hash.match(/#((.*)\?|(.*))/),i.pathname=i.path.replace(/(\?|#.*).*/,""),i.origin=i.protocol+"//"+i.host,i.hashKey=n&&(n[2]||n[1])||"",i.hashQuery=fi(i.hash),i.searchQuery=fi(i.search),i}function di(t,n){var e=parseFloat(n),r=Ee(),i=Xn(r);switch(t){case"y":return Xn(Tr(r,e));case"M":return Xn(xr(r,e));case"d":return Xn(Mr(r,e));case"h":case"H":return i+60*e*60*1e3;case"m":return i+60*e*1e3;case"s":return i+1e3*e}return i}function hi(t){return(Vn(t)?t:new Date(t)).toUTCString()}function pi(t,n,e){if(Fe){var r,i,o,u,a,c,s=[],f=arguments;return At(t)?s=t:f.length>1?s=[Lt({name:t,value:n},e)]:Rn(t)&&(s=[t]),s.length>0?(xt(s,function(t){r=Lt({},Dt.cookies,t),o=[],r.name&&(i=r.expires,o.push(ui(r.name)+"="+ui(Rn(r.value)?JSON.stringify(r.value):r.value)),i&&(i=isNaN(i)?i.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(t,n,e){return hi(di(e,n))}):/^[0-9]{11,13}$/.test(i)||Vn(i)?hi(i):hi(di("d",i)),r.expires=i),xt(["expires","path","domain","secure"],function(t){fn(r[t])||o.push(r[t]&&"secure"===t?t:t+"="+r[t])})),Fe.cookie=o.join("; ")}),!0):(u={},(a=Fe.cookie)&&xt(a.split("; "),function(t){c=t.indexOf("="),u[ii(t.substring(0,c))]=ii(t.substring(c+1)||"")}),1===f.length?u[t]:u)}return!1}function gi(t){return pi(t)}function mi(t,n,e){return pi(t,n,e),pi}function vi(t,n){pi(t,"",Lt({expires:-1},Dt.cookies,n))}function yi(){return Rt(pi())}function wi(t){try{var n="__xe_t";return t.setItem(n,1),t.removeItem(n),!0}catch(t){return!1}}function bi(t){return navigator.userAgent.indexOf(t)>-1}Lt(pi,{has:function(t){return on(yi(),t)},set:mi,setItem:mi,get:gi,getItem:gi,remove:vi,removeItem:vi,keys:yi,getJSON:function(){return pi()}}),Lt(Kt,{assign:Lt,objectEach:kt,lastObjectEach:Yt,objectMap:function(t,n,e){var r={};if(t){if(!n)return t;Pt(n)||(n=Vt(n)),It(t,function(i,o){r[o]=n.call(e,i,o,t)})}return r},merge:function(t){t||(t={});for(var n,e=arguments,r=e.length,i=1;i<r;i++)(n=e[i])&&Xt(t,n);return t},uniq:an,union:function(){for(var t=arguments,n=[],e=0,r=t.length;e<r;e++)n=n.concat(cn(t[e]));return an(n)},sortBy:wn,orderBy:yn,shuffle:Sn,sample:function(t,n){var e=Sn(t);return arguments.length<=1?e[0]:(n<e.length&&(e.length=n||0),e)},some:en,every:rn,slice:Dn,filter:function(t,n,e){var r=[];if(t&&n){if(t.filter)return t.filter(n,e);It(t,function(i,o){n.call(e,i,o,t)&&r.push(i)})}return r},find:Tn,findLast:function(t,n,e){if(t){At(t)||(t=En(t));for(var r=t.length-1;r>=0;r--)if(n.call(e,t[r],r,t))return t[r]}},findKey:xn,includes:on,arrayIndexOf:Zn,arrayLastIndexOf:Bn,map:tn,reduce:function(t,n,e){if(t){var r,i,o=0,u=e,a=arguments.length>2,c=Rt(t);if(t.length&&t.reduce)return i=function(){return n.apply(null,arguments)},a?t.reduce(i,u):t.reduce(i);for(a&&(o=1,u=t[c[0]]),r=c.length;o<r;o++)u=n.call(null,u,t[c[o]],o,t);return u}},copyWithin:function(t,n,e,r){if(At(t)&&t.copyWithin)return t.copyWithin(n,e,r);var i,o,u=n|0,a=e|0,c=t.length,s=arguments.length>3?r|0:c;if(u<c&&(u=u>=0?u:c+u)>=0&&(a=a>=0?a:c+a)<(s=s>=0?s:c+s))for(i=0,o=t.slice(a,s);u<c&&!(o.length<=i);u++)t[u]=o[i++];return t},chunk:function(t,n){var e,r=[],i=n|0||1;if(At(t))if(i>=0&&t.length>i)for(e=0;e<t.length;)r.push(t.slice(e,e+i)),e+=i;else r=t.length?[t]:t;return r},zip:function(){return kn(arguments)},unzip:kn,zipObject:function(t,n){var e={};return n=n||[],It(En(t),function(t,r){e[t]=n[r]}),e},flatten:function(t,n){return At(t)?In(t,n):[]},toArray:cn,includeArrays:un,pluck:jn,invoke:function(t,n){for(var e,r=arguments,i=[],o=[],u=2,a=r.length;u<a;u++)i.push(r[u]);if(At(n)){for(a=n.length-1,u=0;u<a;u++)o.push(n[u]);n=n[a]}return tn(t,function(t){if(o.length&&(t=function(t,n){for(var e=0,r=n.length;t&&e<r;)t=t[n[e++]];return r&&t?t:0}(t,o)),(e=t[n]||n)&&e.apply)return e.apply(t,i)})},arrayEach:xt,lastArrayEach:Bt,toArrayTree:function(t,n){var e,r,i,o=Lt({},Dt.treeOptions,n),u=o.strict,a=o.key,c=o.parentKey,s=o.children,f=o.mapChildren,l=o.sortKey,d=o.reverse,h=o.data,p=[],g={},m={};return l&&(t=yn($t(t),l),d&&(t=t.reverse())),It(t,function(t){e=t[a],m[e]&&Cn("warn","Duplicate primary key="+e),m[e]=!0}),It(t,function(t){e=t[a],h?(r={})[h]=t:r=t,i=t[c],g[e]=g[e]||[],r[a]=e,r[c]=i,e===i&&(i=null,Cn("warn","Error infinite Loop. key="+e+" parentKey="+e)),g[i]=g[i]||[],g[i].push(r),r[s]=g[e],f&&(r[f]=g[e]),(!u||u&&ln(i))&&(m[i]||p.push(r))}),u&&function(t,n){It(t,function(t){t[n]&&!t[n].length&&_n(t,n)})}(t,s),p},toTreeArray:function(t,n){return Un([],null,t,Lt({},Dt.treeOptions,n))},findTree:zn,eachTree:Hn,mapTree:Ln,filterTree:function(t,n,e,r){var i=[];return t&&n&&Hn(t,function(t,e,o,u,a,c){n.call(r,t,e,o,u,a,c)&&i.push(t)},e),i},searchTree:qn,hasOwnProp:Mt,eqNull:ln,isNaN:function(t){return Yn(t)&&isNaN(t)},isFinite:function(t){return Yn(t)&&isFinite(t)},isUndefined:fn,isArray:At,isFloat:function(t){return!(Jt(t)||isNaN(t)||At(t)||Te(t))},isInteger:Te,isFunction:Pt,isBoolean:je,isString:Jn,isNumber:Yn,isRegExp:Ae,isObject:Rn,isPlainObject:Gt,isDate:Vn,isError:Me,isTypeError:function(t){return!!t&&t.constructor===TypeError},isEmpty:ke,isNull:Jt,isSymbol:Ce,isArguments:Pe,isElement:function(t){return!!(t&&Jn(t.nodeName)&&Yn(t.nodeType))},isDocument:function(t){return!(!t||!Fe||9!==t.nodeType)},isWindow:function(t){return!(!Re||!t||t!==t.window)},isFormData:function(t){return We&&t instanceof FormData},isMap:function(t){return _e&&t instanceof Map},isWeakMap:function(t){return Ue&&t instanceof WeakMap},isSet:function(t){return $e&&t instanceof Set},isWeakSet:function(t){return ze&&t instanceof WeakSet},isLeapYear:Se,isMatch:function(t,n){var e=Rt(t),r=Rt(n);return!r.length||(un(e,r)?en(r,function(r){return Le(e,function(e){return e===r&&Ze(t[e],n[r])})>-1}):Ze(t,n))},isEqual:Ze,isEqualWith:function(t,n,e){return Pt(e)?Ke(t,n,function(t,n,r,i,o){var u=e(t,n,r,i,o);return fn(u)?qe(t,n):!!u},e):Ke(t,n,qe)},getType:function(t){return Jt(t)?"null":Ce(t)?"symbol":Vn(t)?"date":At(t)?"array":Ae(t)?"regexp":Me(t)?"error":typeof t},uniqueId:function(t){return""+(ln(t)?"":t)+Dt.keyId++},getSize:xe,indexOf:Oe,lastIndexOf:De,findIndexOf:Le,findLastIndexOf:Be,toStringJSON:function(t){if(Gt(t))return t;if(Jn(t))try{return JSON.parse(t)}catch(t){}return{}},toJSONString:function(t){return ln(t)?"":JSON.stringify(t)},keys:Rt,values:En,entries:Ye,pick:Ve,omit:Ge,first:function(t){return En(t)[0]},last:function(t){var n=En(t);return n[n.length-1]},each:It,forOf:function(t,n,e){if(t)if(At(t))for(var r=0,i=t.length;r<i&&!1!==n.call(e,t[r],r,t);r++);else for(var o in t)if(Mt(t,o)&&!1===n.call(e,t[o],o,t))break},lastForOf:function(t,n,e){var r,i;if(t)if(At(t))for(r=t.length-1;r>=0&&!1!==n.call(e,t[r],r,t);r--);else for(r=(i=Mt(t)).length-1;r>=0&&!1!==n.call(e,t[i[r]],i[r],t);r--);},lastEach:Fn,has:function(t,n){if(t){if(Mt(t,n))return!0;var e,r,i,o,u,a,c=hn(n),s=0,f=c.length;for(u=t;s<f&&(a=!1,(o=(e=c[s])?e.match(dn):"")?(r=o[1],i=o[2],r?u[r]&&Mt(u[r],i)&&(a=!0,u=u[r][i]):Mt(u,i)&&(a=!0,u=u[i])):Mt(u,e)&&(a=!0,u=u[e]),a);s++)if(s===f-1)return!0}return!1},get:pn,set:function(t,n,e){if(t&&Qt(n))if(!t[n]&&!Mt(t,n)||tr(n)){for(var r=t,i=hn(n),o=i.length,u=0;u<o;u++)if(!tr(i[u])){var a=u===o-1;r=Xe(r,i[u],a,a?null:i[u+1],e)}}else t[n]=e;return t},groupBy:nr,countBy:function(t,n,e){var r=nr(t,n,e||this);return kt(r,function(t,n){r[n]=t.length}),r},clone:$t,clear:Wn,remove:_n,range:er,destructuring:function(t,n){if(t&&n){var e=Lt.apply(this,[{}].concat(Dn(arguments,1))),r=Rt(e);xt(Rt(t),function(n){on(r,n)&&(t[n]=e[n])})}return t},random:bn,min:rr,max:Mn,commafy:function(t,n){var e,r,i,o,u,a=Lt({},Dt.commafyOptions,n),c=a.digits;return Yn(t)?(e=(a.ceil?lr:a.floor?dr:fr)(t,c),o=(r=ar(c?pr(e,c):e).split("."))[0],u=r[1],(i=o&&e<0)&&(o=o.substring(1,o.length))):o=(r=(e=hr(t).replace(/,/g,""))?[e]:[])[0],r.length?(i?"-":"")+o.replace(new RegExp("(?=(?!(\\b))(.{"+(a.spaceNumber||3)+"})+$)","g"),a.separator||",")+(u?"."+u:""):e},round:fr,ceil:lr,floor:dr,toFixed:pr,toNumber:On,toNumberString:ar,toInteger:gr,add:function(t,n){return vr(On(t),On(n))},subtract:function(t,n){var e=On(t),r=On(n),i=ar(e),o=ar(r),u=ir(i),a=ir(o),c=Math.pow(10,Math.max(u,a));return parseFloat(pr((e*c-r*c)/c,u>=a?u:a))},multiply:mr,divide:function(t,n){return yr(On(t),On(n))},sum:wr,mean:function(t,n,e){return yr(wr(t,n,e),xe(t))},now:Hr,timestamp:function(t,n){if(t){var e=be(t,n);return Vn(e)?Xn(e):e}return Hr()},isValidDate:Dr,isDateSame:function(t,n,e){return!(!t||!n)&&("Invalid Date"!==(t=zr(t,e))&&t===zr(n,e))},toStringDate:be,toDateString:zr,getWhatYear:Tr,getWhatQuarter:function(t,n,e){var r,i=n&&!isNaN(n)?3*n:0;return Dr(t=be(t))?(r=3*(function(t){var n=t.getMonth();return n<3?1:n<6?2:n<9?3:4}(t)-1),t.setMonth(r),xr(t,i,e)):t},getWhatMonth:xr,getWhatWeek:Ar,getWhatDay:Mr,getWhatHours:function t(n,e,r){if(Dr(n=be(n))&&!isNaN(e)){if(n.setHours(n.getHours()+Gn(e)),r===br)return new Date(Sr(n),Or(n),n.getDate(),n.getHours());if(r===Er)return new Date(Xn(t(n,1,br))-1)}return n},getWhatMinutes:function t(n,e,r){if(Dr(n=be(n))&&!isNaN(e)){if(n.setMinutes(n.getMinutes()+Gn(e)),r===br)return new Date(Sr(n),Or(n),n.getDate(),n.getHours(),n.getMinutes());if(r===Er)return new Date(Xn(t(n,1,br))-1)}return n},getWhatSeconds:function t(n,e,r){if(Dr(n=be(n))&&!isNaN(e)){if(n.setSeconds(n.getSeconds()+Gn(e)),r===br)return new Date(Sr(n),Or(n),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());if(r===Er)return new Date(Xn(t(n,1,br))-1)}return n},getYearDay:Wr,getYearWeek:Fr,getMonthWeek:Lr,getDayOfYear:function(t,n){return Dr(t=be(t))?Se(Tr(t,n))?366:365:NaN},getDayOfMonth:function(t,n){return Dr(t=be(t))?Math.floor((Xn(xr(t,n,Er))-Xn(xr(t,n,br)))/Nr)+1:NaN},getDateDiff:function(t,n){var e,r,i,o,u,a,c={done:!1,status:!1,time:0};if(t=be(t),n=n?be(n):Ee(),Dr(t)&&Dr(n)&&(e=Xn(t))<(r=Xn(n)))for(o=c.time=r-e,c.done=!0,c.status=!0,a=0,u=Kr.length;a<u;a++)o>=(i=Kr[a])[1]?a===u-1?c[i[0]]=o||0:(c[i[0]]=Math.floor(o/i[1]),o-=c[i[0]]*i[1]):c[i[0]]=0;return c},trim:Br,trimLeft:Zr,trimRight:qr,escape:Vr,unescape:Qr,camelCase:function(t){if(t=hr(t),ni[t])return ni[t];var n=t.length,e=t.replace(/([-]+)/g,function(t,e,r){return r&&r+e.length<n?"-":""});return n=e.length,e=e.replace(/([A-Z]+)/g,function(t,e,r){var i=e.length;return e=ti(e),r?i>2&&r+i<n?kr(Xr(e,0,1))+Xr(e,1,i-1)+kr(Xr(e,i-1,i)):kr(Xr(e,0,1))+Xr(e,1,i):i>1&&r+i<n?Xr(e,0,i-1)+kr(Xr(e,i-1,i)):e}).replace(/(-[a-zA-Z])/g,function(t,n){return kr(Xr(n,1,n.length))}),ni[t]=e,e},kebabCase:function(t){if(t=hr(t),ei[t])return ei[t];if(/^[A-Z]+$/.test(t))return ti(t);var n=t.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(t,n,e,r){var i=e.length;return i>1?n+"-"+ti(Xr(e,0,i-1))+"-"+ti(Xr(e,i-1,i))+r:ti(n+"-"+e+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(t,n,e){var r=n.length;return ti(Xr(n,0,r-1)+"-"+Xr(n,r-1,r)+(e||""))}).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,function(t,n,e,r,i){var o=e.length;return o>1&&(n&&(n+="-"),r)?(n||"")+ti(Xr(e,0,o-1))+"-"+ti(Xr(e,o-1,o))+r:(n||"")+(i?"-":"")+ti(e)+(r||"")});return n=n.replace(/([-]+)/g,function(t,e,r){return r&&r+e.length<n.length?"-":""}),ei[t]=n,n},repeat:function(t,n){return or(hr(t),n)},padStart:_r,padEnd:function(t,n,e){var r=hr(t);return n|=0,e=fn(e)?" ":""+e,r.padEnd?r.padEnd(n,e):n>r.length?((n-=r.length)>e.length&&(e+=or(e,n/e.length)),r+e.slice(0,n)):r},startsWith:function(t,n,e){var r=hr(t);return 0===(1===arguments.length?r:r.substring(e)).indexOf(n)},endsWith:function(t,n,e){var r=hr(t),i=arguments.length;return i>1&&(i>2?r.substring(0,e).indexOf(n)===e-1:r.indexOf(n)===r.length-1)},template:ri,toFormatString:function(t,n){return ri(t,n,{tmplRE:/\{([.\w[\]\s]+)\}/g})},toString:hr,toValueString:hr,noop:function(){},property:Vt,bind:function(t,n){var e=Dn(arguments,2);return function(){return t.apply(n,Dn(arguments).concat(e))}},once:function(t,n){var e=!1,r=null,i=Dn(arguments,2);return function(){return e||(r=t.apply(n,Dn(arguments).concat(i)),e=!0),r}},after:function(t,n,e){var r=0,i=[];return function(){var o=arguments;++r<=t&&i.push(o[0]),r>=t&&n.apply(e,[i].concat(Dn(o)))}},before:function(t,n,e){var r=0,i=[];return e=e||this,function(){var o=arguments;++r<t&&(i.push(o[0]),n.apply(e,[i].concat(Dn(o))))}},throttle:function(t,n,e){var r=null,i=null,o=!1,u=null,a=Lt({leading:!0,trailing:!0},e),c=a.leading,s=a.trailing,f=function(){r=null,i=null},l=function(){o=!0,t.apply(i,r),u=setTimeout(d,n),f()},d=function(){u=null,o||!0!==s?f():l()},h=function(){r=arguments,i=this,o=!1,null!==u||!0!==c?!0===s&&(u=setTimeout(d,n)):l()};return h.cancel=function(){var t=null!==u;return t&&clearTimeout(u),f(),u=null,o=!1,t},h},debounce:function(t,n,e){var r=null,i=null,o="boolean"==typeof e?{leading:e,trailing:!e}:Lt({leading:!1,trailing:!0},e),u=!1,a=null,c=o.leading,s=o.trailing,f=function(){r=null,i=null},l=function(){u=!0,t.apply(i,r),f()},d=function(){!0===c&&(a=null),u||!0!==s?f():l()},h=function(){u=!1,r=arguments,i=this,null===a?!0===c&&l():clearTimeout(a),a=setTimeout(d,n)};return h.cancel=function(){var t=null!==a;return t&&clearTimeout(a),f(),a=null,u=!1,t},h},delay:function(t,n){var e=Dn(arguments,2),r=this;return setTimeout(function(){t.apply(r,e)},n)},unserialize:oi,serialize:function(t){var n,e=[];return It(t,function(t,r){fn(t)||(n=At(t),Gt(t)||n?e=e.concat(ai(t,r,n)):e.push(ui(r)+"="+ui(Jt(t)?"":t)))}),e.join("&").replace(/%20/g,"+")},parseUrl:li,getBaseURL:function(){if(ci){var t=ci.pathname,n=De(t,"/")+1;return si()+(n===t.length?t:t.substring(0,n))}return""},locat:function(){return ci?li(ci.href):{}},browse:function(){var t,n,e,r=!1,i=!1,o=!1,u={isNode:!1,isMobile:r,isPC:!1,isDoc:!!Fe};if(Re||typeof process===sn){e=bi("Edge"),n=bi("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),u.isDoc&&(t=Fe.body||Fe.documentElement,xt(["webkit","khtml","moz","ms","o"],function(n){u["-"+n]=!!t[n+"MatchesSelector"]}));try{i=wi(Re.localStorage)}catch(t){}try{o=wi(Re.sessionStorage)}catch(t){}Lt(u,{edge:e,firefox:bi("Firefox"),msie:!e&&u["-ms"],safari:!n&&!e&&bi("Safari"),isMobile:r,isPC:!r,isLocalStorage:i,isSessionStorage:o})}else u.isNode=!0;return u},cookie:pi});let Ei=!1;function Si(t){if(!t)return null;const n=localStorage.getItem(t);if(!n)return null;try{return JSON.parse(n,(t,n)=>{if(n&&"string"==typeof n){const t=function(){return n.replace("TT_FUNCTION","")};return n.includes("TT_FUNCTION")?t():n}return n})}catch{return n}}function Ni(t,n="12",e="Microsoft YaHei,Arial,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue','Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'"){let r=0;const i=document.createElement("canvas").getContext("2d");return i&&(i.font=`${n} ${e}`,r=i.measureText(t).width),r}function Oi(t,n,e){const r=e?.excludeAll||[],i=e?.exclude||[];return r.includes("Id")||r.push("Id"),r.includes("rowId")||r.push("rowId"),Object.fromEntries(Object.entries(t).reduce((t,[o,u])=>(r.includes(o)||i.includes(o)||(u&&z(u)?Di(e,n,u,o,t):u&&G(u)?xi(e,n,u,o,t):Ti(e,n,u,o,t)),t),[]))}function Di(t,n,e,r,i){const o=Oi(e,n[r]||{},{excludeAll:t?.excludeAll,...t});Object.keys(o).length&&i.push([r,o])}function xi(t,n,e,r,i){const o=[],u=(t||{})[r]?.key;if(n[r]){const i=e?.length>=n[r]?.length?e:n[r],a=e?.length<n[r]?.length?e:n[r];u?i.forEach(n=>{const e=a.find(t=>t[u]===n[u]);if(e){const i=Oi(n,e,{excludeAll:t?.excludeAll,...t[r]});Object.keys(i).length&&o.push({[u]:e[u],...i})}else o.push(n)}):i.forEach((n,e)=>{const r=a[e];if(z(n)&&!z(r)||G(n)&&!G(r)||typeof n!=typeof r||!r)o.push(n);else if(z(n)||G(n)){const e=Oi(n,r,{excludeAll:t?.excludeAll});Object.keys(e).length&&o.push({...e})}else n!==r&&o.push(n)})}else o.push(...e);o.length&&i.push([r,o])}function Ti(t,n,e,r,i){const o=t?.notNullToFalse||[];if("string"==typeof e&&"number"==typeof n[r]||"number"==typeof e&&"string"==typeof n[r])Number(e)!==Number(n[r])&&i.push([r,e]);else if([void 0,null,""].includes(e))[void 0,null,""].includes(n[r])||i.push([r,e]);else if(e!==n[r]){if(!1===e&&[void 0,null,""].includes(n[r])&&!o.includes(r))return;i.push([r,e])}}function ji(t={},n={}){let e;for(e in n)t[e]=z(t[e])?ji(t[e],n[e]):t[e]=n[e];return t}function Ai(t,n="px"){return Kt.isNumber(t)||/^\d+$/.test(`${t}`)?`${t}${n}`:`${t||""}`}function Mi(t,n,e){return i({get:()=>new Proxy(t[n],{set:(t,r,i)=>(e(`update:${n}`,{...t,[r]:i}),!0)}),set(t){e(`update:${n}`,t)}})}function ki(t){const n=Object.getPrototypeOf(t);if(!n||n===Object.prototype)return t;const e=Object.getOwnPropertyNames(n);for(const n of e){const e=t[n];"constructor"!==n&&"function"==typeof e&&(t[n]=e.bind(t))}return t}function Ii(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(t=>Ii(t));const n={};return Object.keys(t).forEach(e=>{n[e]=Ii(t[e])}),n}function Ci(t,n="id",e="parentId",r="children"){const i=new Map,o=[];return t.forEach(t=>{i.set(t[n],{...t,[r]:[]})}),t.forEach(t=>{const u=i.get(t[n]);if(t[e]){const n=i.get(t[e]);n&&n[r].push(u)}else o.push(u)}),o}function Pi(...t){for(const n of t)if(null!=n)return n}function Fi(...t){return u(a(t))}function Ri(){const t=new Event("resize");window.dispatchEvent(t)}function Wi(t,n,e="prop",r="content"){t.forEach(t=>{Object.prototype.hasOwnProperty.call(t,e)&&(G(r)?r.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=n[t[e]])}):Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=n[t[e]]))})}const _i=function(t,n="YYYY-MM-DD HH:mm:ss",e="Asia/Shanghai"){return""===t||null==t||0===t||"0"===t?"":o(t).isValid()?(Ei||(o.extend(s),o.extend(f),Ei=!0),o(t).tz(e).format(n)):""};function Ui(t){return c(t)}function $i(t,n){return t?n&&0!==n.length?n.reduce((t,n)=>(delete t[n],t),{...t}):t:{}}function zi(t,n=200,e={}){const{leading:r=!1,trailing:i=!0,maxWait:o}=e;let u,a,c,s,f,l=0;function d(n){const e=s;return s=void 0,l=n,f=t(...e),f}function h(){void 0!==u&&(window.clearTimeout(u),u=void 0),void 0!==a&&(window.clearTimeout(a),a=void 0)}function p(){h(),l=0,s=void 0,c=void 0,f=void 0}function g(t){if(void 0===c)return!0;const e=t-c;return e>=n||e<0||void 0!==o&&t-l>=o}function m(){const t=Date.now();if(g(t))return void function(t){u=void 0,i&&void 0!==s?d(t):s=void 0}(t);const e=function(t){const e=t-l,r=n-(t-c);return void 0!==o?Math.min(r,o-e):r}(t);u=e>0?window.setTimeout(m,e):void 0}function v(){const t=Date.now();h(),void 0!==s&&d(t)}const y=(...t)=>{const e=Date.now(),i=g(e);if(s=t||[],c=e,i){if(void 0===u)return function(t){return l=t,h(),u=window.setTimeout(m,n),void 0!==o&&(a=window.setTimeout(v,o)),r?d(t):f}(e);if(void 0!==o)return h(),u=window.setTimeout(m,n),a=window.setTimeout(v,o),r?d(e):f}return void 0===u&&(u=window.setTimeout(m,n),void 0!==o&&(a=window.setTimeout(v,o))),f};return y.isPending=()=>void 0!==u||void 0!==a,y.cancel=()=>{p()},y.flush=(...n)=>{if(!y.isPending())return n.length>0?t(...n):f;const e=void 0!==s?s:n;return p(),t(...e)},y}function Hi(t,...n){let e=[];const r=n[n.length-1];return n.length>0&&Array.isArray(r)&&r.every(t=>["string","number","symbol"].includes(typeof t))&&(e=n.pop()),l((t,n,r)=>e.includes(n)||Array.isArray(t[n])&&Array.isArray(r)?(t[n]=r,!0):void 0)(t,...n)}function Li(...t){let n=new d(t[0]);for(let e=1;e<t.length;e++)n=n.add(new d(t[e]));return n.toNumber()}function Ki(...t){let n=new d(t[0]);for(let e=1;e<t.length;e++)n=n.sub(new d(t[e]));return n.toNumber()}function qi(...t){let n=new d(t[0]);for(let e=1;e<t.length;e++)n=n.mul(new d(t[e]));return n.toNumber()}function Zi(...t){let n=new d(t[0]);for(let e=1;e<t.length;e++)n=n.div(new d(t[e]));return n.toNumber()}function Bi(...t){return t.reduce((t,n)=>Vi(t).add(n).toNumber(),0)}function Yi(t,n){return t.reduce((t,e)=>Vi(t).add(n(e)).toNumber(),0)}function Ji(t,n,e){const r={},i=e;return t.forEach(t=>{const e=n(t);if(e){const n=i(t);r[e]=Vi(r[e]||0).add(n).toNumber()}}),r}function Vi(t){const n=Number(t)||0===t,e=Number.isNaN(Number(t)),r=new d(t);if(n&&!e)return r;console.error("请输入合理数字!");return new d(Number.NaN)}class Gi{condition=!1;promiseResolvers=null;isConditionTrue(){return this.condition}reset(){this.condition=!1,this.clearPromises()}setConditionFalse(){this.condition=!1,this.promiseResolvers&&(this.promiseResolvers.reject(),this.clearPromises())}setConditionTrue(){this.condition=!0,this.promiseResolvers&&(this.promiseResolvers.resolve(),this.clearPromises())}waitForCondition(){if(this.condition)return Promise.resolve();const{promise:t,resolve:n,reject:e}=Promise.withResolvers();return this.promiseResolvers={resolve:n,reject:e},t}clearPromises(){this.promiseResolvers=null}}class Qi{condition=!1;rejectCondition=null;resolveCondition=null;isConditionTrue(){return this.condition}reset(){this.condition=!1,this.clearPromises()}setConditionFalse(){this.condition=!1,this.rejectCondition&&(this.rejectCondition(),this.clearPromises())}setConditionTrue(){this.condition=!0,this.resolveCondition&&(this.resolveCondition(),this.clearPromises())}waitForCondition(){return new Promise((t,n)=>{this.condition?t():(this.resolveCondition=t,this.rejectCondition=n)})}clearPromises(){this.resolveCondition=null,this.rejectCondition=null}}const Xi=!0,to=25200,no={key:"_11111000001111@",iv:"@11111000001111_"};class eo{key;iv;constructor(t={}){const{key:n,iv:e}=t;n&&(this.key=m?.(n)),e&&(this.iv=m?.(e))}get getOptions(){return{mode:v,padding:y,iv:this.iv}}encryptByAES(t){return h(t,this.key,this.getOptions).toString()}decryptByAES(t){return p(t,this.key,this.getOptions).toString(g)}}function ro({prefixKey:t="",storage:n=sessionStorage,key:e=no.key,iv:r=no.iv,timeout:i=null,hasEncrypt:o=!0}={}){if(o&&[e.length,r.length].some(t=>16!==t))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const u=new eo({key:e,iv:r});return new class{storage;prefixKey;encryption;hasEncrypt;constructor(){this.storage=n,this.prefixKey=t,this.encryption=u,this.hasEncrypt=o}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,n,e=i){const r=JSON.stringify({value:n,time:Date.now(),expire:$(e)?null:(new Date).getTime()+1e3*e}),o=this.hasEncrypt?this.encryption.encryptByAES(r):r;this.storage.setItem(this.getKey(t),o)}get(t,n=null){const e=this.storage.getItem(this.getKey(t));if(!e)return n;try{const n=this.hasEncrypt?this.encryption.decryptByAES(e):e,r=JSON.parse(n),{value:i,expire:o}=r;if($(o)||o>=(new Date).getTime())return i;this.remove(t)}catch(t){return console.error(`get erroe:${t}`),n}}remove(t){this.storage.removeItem(this.getKey(t))}getKeysWithPrefix(t){const n=[];for(let e=0;e<this.storage.length;e++){const r=this.storage.key(e);r&&r.startsWith(t)&&n.push(r)}return n}getKeysWithPrefixExcluding(t,n){const e=[];for(let r=0;r<this.storage.length;r++){const i=this.storage.key(r);i&&i.startsWith(t)&&!n.has(i)&&e.push(i)}return e}removeKeys(t){t.forEach(t=>{this.storage.removeItem(t)})}clear(t){const n=(this.prefixKey||"").toUpperCase();if(!t)return void this.removeKeys(this.getKeysWithPrefix(n));const{keys:e,exclude:r}=t;if(e&&e.length>0)e.forEach(t=>{this.remove(t)});else{if(r&&r.length>0){const t=new Set(r.map(t=>this.getKey(t)));return void this.removeKeys(this.getKeysWithPrefixExcluding(n,t))}this.removeKeys(this.getKeysWithPrefix(n))}}}}function io(t=sessionStorage,n={}){return ro(function(t,n={}){return{hasEncrypt:Xi,storage:t,prefixKey:"tt-admin",...n}}(t,n))}function oo(t={}){return io(sessionStorage,{...t,timeout:to})}function uo(t={}){return io(localStorage,{...t,timeout:to})}function ao(t,n,e,r){if(!t)return!1;const i=t.split(".").map(Number);if(i.length<2)return!1;if(i[0]>n)return!0;if(i[0]<n)return!1;if(i[1]>e)return!0;if(i[1]<e)return!1;if(void 0!==r){return(i[2]||0)>=r}return!0}function co(t,n,e){const r=w(t);return n?e?.forEach(t=>{const n=r[t];Array.isArray(n)&&(r[t]=r[t].join(","))}):Object.entries(r).forEach(([t,n])=>{Array.isArray(n)&&!e?.includes(t)&&(r[t]=n.join(","))}),r}function so(t,n,e){const r=w(t);return n?e?.forEach(t=>{const n=r[t];"string"==typeof n&&(r[t]=""===n?[]:n.split(","))}):Object.entries(r).forEach(([t,n])=>{"string"!=typeof n||e?.includes(t)||(r[t]=""===n?[]:n.split(","))}),r}export{to as DEFAULT_CACHE_TIME,Gi as StateHandler,Qi as StateHandlerOld,C as TtHttp,Li as add,Wi as arrGive,Ci as arrayToTree,ki as bindMethods,no as cacheCipher,Vi as calc,Ni as calcWordsWidth,b as capitalize,ao as checkVersion,Fi as clnm,Ui as cloneDeep,Ji as clsSumTotalBy,ro as create,uo as createLocalStorage,oo as createSessionStorage,io as createStorage,_i as dateFormat,zi as debounce,Ii as deepCopy,ji as deepMerge,Zi as divide,N as downloadFile,Xi as enableStorageEncryption,Nt as extractIdFromTitle,wt as extractResourceFromApi,co as formatFormData,St as generateFormName,bt as generateTestId,dt as getBrowserType,lt as getDeviceType,Oi as getDifference,Pi as getFirstNonNullOrUndefined,Si as getStorage,R as is,pt as isAndroid,G as isArray,J as isBoolean,et as isClient,K as isDate,yt as isDayjsObject,W as isDef,X as isElement,H as isEmpty,L as isEmptyZero,ut as isError,mt as isExternal,st as isFalse,Y as isFunction,ht as isIos,vt as isJson,tt as isMap,U as isNull,$ as isNullOrUnDef,q as isNumber,z as isObject,gt as isPC,ot as isPrimitive,Z as isPromise,V as isRegExp,nt as isServer,ct as isSet,B as isString,it as isStringNumber,at as isSymbol,ft as isTrue,_ as isUndefined,rt as isUrl,Ot as isValidTestId,Q as isWindow,S as kebabToCamelCase,Hi as mergeWithArrayOverride,qi as multiply,$i as omit,so as revertFormatFormData,xi as setDifferenceArr,Ti as setDifferenceField,Di as setDifferenceObj,Ki as subtract,Bi as sumTotal,Yi as sumTotalBy,Ai as toCssUnit,Et as toKebabCase,Ri as triggerWindowResize,E as trim,Mi as useVModel,P as withInstall};
1
+ import t from"axios";import{ElMessage as e,ElLoading as n}from"element-plus";import{nextTick as r,computed as o}from"vue";import i from"dayjs";import{twMerge as u}from"tailwind-merge";import{clsx as a}from"clsx";import{klona as c}from"klona/full";import s from"dayjs/plugin/utc";import f from"dayjs/plugin/timezone";import{createDefu as l}from"defu";export{createDefu as createMerge,defuFn as mergFn,defu as merge}from"defu";import p from"decimal.js";import{encrypt as h,decrypt as d}from"crypto-js/aes";import g,{parse as v}from"crypto-js/enc-utf8";import y from"crypto-js/mode-ecb";import m from"crypto-js/pad-pkcs7";function b(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t){return t.trim()}function j(t){return t.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():"")}const O=(t,e)=>{try{const n=new Blob([t.data],{type:e}),r=document.createElement("a"),o=(window.URL||window.webkitURL).createObjectURL(n);r.href=o;let i=((t.headers["content-disposition"]||"").split("=")||[]).at(-1)||"";i=i?decodeURI(i.replace(/"/g,"")):"";const u=i?.split("''");i=u.at(-1)||"",r.download=i,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o)}catch(t){console.log(t)}};var E,S;!function(t){t[t.success=200]="success",t[t.success1=0]="success1",t[t.error=400]="error",t[t.unauthorized=401]="unauthorized",t[t.forbidden=403]="forbidden",t[t.notFound=404]="notFound",t[t.methodNotAllowed=405]="methodNotAllowed",t[t.requestTimeout=408]="requestTimeout",t[t.internalServerError=500]="internalServerError",t[t.notImplemented=501]="notImplemented",t[t.badGateway=502]="badGateway",t[t.serviceUnavailable=503]="serviceUnavailable",t[t.gatewayTimeout=504]="gatewayTimeout",t[t.httpVersionNotSupported=505]="httpVersionNotSupported",t[t.NEED_REFRESH_TOKEN=1001]="NEED_REFRESH_TOKEN",t[t.API_NO_AUTH=1002]="API_NO_AUTH",t[t.INVALID_TOKEN=1005]="INVALID_TOKEN"}(E||(E={})),function(t){t.badGateway="网关错误,请稍后重试",t.forbidden="禁止访问该资源",t.gatewayTimeout="网关超时,请稍后重试",t.internalServerError="服务器内部错误,请稍后重试",t.methodNotAllowed="请求方法不允许",t.networkError="网络连接异常,请检查网络连接",t.notFound="请求的资源不存在",t.requestCancelled="请求已取消",t.requestConfigError="请求配置错误",t.requestFailed="请求失败",t.requestTimeout="请求超时,请稍后重试",t.serviceUnavailable="服务暂时不可用,请稍后重试",t.unauthorized="未授权访问,请重新登录"}(S||(S={}));class _ extends Error{code;data;timestamp;url;method;constructor(t,e,n){super(t),this.name="HttpError",this.code=e,this.data=n?.data,this.timestamp=(new Date).toISOString(),this.url=n?.url||"",this.method=n?.method||""}toLogData(){return{code:this.code,message:this.message,data:this.data,timestamp:this.timestamp,url:this.url||"",method:this.method||"",stack:this.stack||""}}}function N(t){if("ERR_CANCELED"===t.code)throw console.warn("Request cancelled:",t.message),new _(S.requestCancelled,E.error);const e=t.response?.status,n=t.response?.data?.msg||t.message,r=t.config;if(!t.response)throw new _(S.networkError,E.error,{url:r?.url||"",method:r?.method?.toUpperCase()||""});const o=e?(i=e,{[E.unauthorized]:S.unauthorized,[E.forbidden]:S.forbidden,[E.notFound]:S.notFound,[E.methodNotAllowed]:S.methodNotAllowed,[E.requestTimeout]:S.requestTimeout,[E.internalServerError]:S.internalServerError,[E.badGateway]:S.badGateway,[E.serviceUnavailable]:S.serviceUnavailable,[E.gatewayTimeout]:S.gatewayTimeout}[i]||S.internalServerError):n||S.requestFailed;var i;throw new _(o,e||E.error,{data:t.response.data,url:r?.url||"",method:r?.method?.toUpperCase()||""})}function x(t,n=!0){n&&e.error(t.message),console.error("[HTTP Error]",t.toLogData())}const A=()=>document.documentElement.classList.contains("dark")?"rgba(7, 7, 7, 0.85)":"rgba(255, 255, 255, 0.5)",D={lock:!0,get background(){return A()},svg:'\n <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <style>\n .spinner {\n transform-origin: 20px 20px;\n animation: rotate 1.6s linear infinite;\n }\n .dot {\n fill: var(--theme-color);\n animation: fade 1.6s infinite;\n }\n .dot:nth-child(1) { animation-delay: 0s; }\n .dot:nth-child(2) { animation-delay: 0.5s; }\n .dot:nth-child(3) { animation-delay: 1s; }\n .dot:nth-child(4) { animation-delay: 1.5s; }\n @keyframes rotate {\n 100% { transform: rotate(360deg); }\n }\n @keyframes fade {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n </style>\n <g class="spinner">\n <circle class="dot" cx="20" cy="8" r="4"/>\n <circle class="dot" cx="32" cy="20" r="4"/>\n <circle class="dot" cx="20" cy="32" r="4"/>\n <circle class="dot" cx="8" cy="20" r="4"/>\n </g>\n </svg>\n',svgViewBox:"0 0 40 40",customClass:"art-loading-fix"};let T=null;const M={showLoading(){if(!T){const t={...D,background:A()};T=n.service(t)}return()=>this.hideLoading()},hideLoading(){T&&(T.close(),T=null)}};function k(n){const{router:o,useUserStore:i,VITE_API_URL:u,VITE_WITH_CREDENTIALS:a}=n;let c=!1;const s=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"];let f=0;function l(){setTimeout(()=>{f--,0===f&&c&&r(()=>{M.hideLoading(),c=!1})},0)}let p=!1,h=null;const d=t.create({timeout:6e4,baseURL:"/"+u,withCredentials:"true"===a,validateStatus:t=>t>=200&&t<300,transformResponse:[(t,e)=>{const n=e["content-type"];if(n?.includes("application/json"))try{return JSON.parse(t)}catch{return t}return t}]});function g(t,e){return new _(t,e)}function v(t){const e=g(t||S.unauthorized,E.unauthorized);if(!p)throw p=!0,m(),h=setTimeout(y,3e3),x(e,!0),e;throw e}function y(){p=!1,h&&clearTimeout(h),h=null}d.interceptors.request.use(t=>{const{accessToken:e,info:n}=i();return e&&(t.headers.set("Authorization",e),t.headers.set("token",e),t.headers.set("x-userid-header",n.userId),t.headers.set("x-permission-code-header",o.currentRoute.value.meta.permissionOnlyCode)),t.hideLoading||0!==f||(c=!0,M.showLoading()),f++,!t.data||t.data instanceof FormData||t.headers["Content-Type"]||(t.headers.set("Content-Type","application/json"),t.data=JSON.stringify(t.data)),t},t=>(x(g(S.requestConfigError,E.error)),Promise.reject(t))),d.interceptors.response.use(t=>{l();const e=t.headers["content-type"];if(e?.includes("application/json")){const{code:e,msg:n}=t.data;if([E.success,E.success1].includes(e))return t;throw[E.unauthorized,E.INVALID_TOKEN].includes(e)&&v(n),g(n||S.requestFailed,e)}if(s.includes(e))return O(t,e),t},t=>(l(),t.response?.status===E.unauthorized&&v(),Promise.reject(N(t))));const m=()=>{setTimeout(()=>{i().logOut()},500)};async function b(t,n=0){try{return await async function(t){["POST","PUT"].includes(t.method?.toUpperCase()||"")&&t.params&&!t.data&&(t.data=t.params,t.params=void 0);try{const n=await d.request(t);return t.showSuccessMessage&&n.data.msg&&function(t,n=!0){n&&e.success(t)}(n.data.msg),n.data.data}catch(e){const n=[E.unauthorized,E.NEED_REFRESH_TOKEN].includes(e.code);if(e instanceof _&&!n){x(e,!1!==t.showErrorMessage)}return Promise.reject(e)}}(t)}catch(e){if(e instanceof _&&[E.NEED_REFRESH_TOKEN].includes(e.code)&&!t.url?.includes("/iam/user/refreshToken"))return await i().refreshTokenFunc(),await w(1e3),b(t,n-1);if(n>0&&e instanceof _&&(r=e.code,[E.requestTimeout,E.internalServerError,E.badGateway,E.serviceUnavailable,E.gatewayTimeout].includes(r)))return await w(1e3),b(t,n-1);throw e}var r}function w(t){return new Promise(e=>setTimeout(e,t))}const j={get:t=>b({...t,method:"GET"}),post:t=>b({...t,method:"POST"}),put:t=>b({...t,method:"PUT"}),del:t=>b({...t,method:"DELETE"}),patch:t=>b({...t,method:"PATCH"}),request:t=>b(t)};return{...j,logOut:m,setBaseUrl:t=>{d.defaults.baseURL=t}}}function I(t,e){if(t.install=n=>{for(const r of[t,...Object.values(e??{})]){const t=r.name;t&&n.component(t,r)}},e)for(const[n,r]of Object.entries(e))t[n]=r;return t}const P=Object.prototype.toString;function F(t,e){return P.call(t)===`[object ${e}]`}function C(t){return void 0!==t}function z(t){return!C(t)}function R(t){return null===t}function U(t){return z(t)||R(t)}function W(t){return!U(t)&&(t instanceof Promise||F(t,"Object"))}function $(t){return!!U(t)||(J(t)||q(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:!!W(t)&&0===Object.keys(t).length)}function L(t){return!!$(t)||(0===t||!!q(t)&&("0"===t||"undefined"===t||"null"===t))}function H(t){return F(t,"Date")}function K(t){return F(t,"Number")&&t==t}function B(t){return F(t,"Promise")&&W(t)&&Z(t.then)&&Z(t.catch)}function q(t){return F(t,"String")}function Z(t){return"function"==typeof t}function V(t){return F(t,"Boolean")}function Y(t){return F(t,"RegExp")}function J(t){return t&&Array.isArray(t)}function G(t){return"undefined"!=typeof window&&F(t,"Window")}function Q(t){return"undefined"!=typeof Element&&t instanceof Element}function X(t){return F(t,"Map")}const tt="undefined"==typeof window,et=!tt;function nt(t){return/(?:^https?:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*(?:#\w*)?$/.test(t)}function rt(t){return!!q(t)&&!Number.isNaN(Number(t))}function ot(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function it(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function ut(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function at(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function ct(t){return!t||t===R(t)||t===z(t)||!1===t||t===Number.isNaN(t)||!(!J(t)||0!==t.length)}function st(t){return!ct(t)}function ft(){const t=navigator.userAgent;return t.includes("Android")||t.includes("Linux")?"Android":t.includes("iPhone")?"iPhone":t.includes("iPad")?"iPad":t.includes("Windows Phone")?"Windows Phone":t}function lt(){const t=navigator.userAgent;return function(t){const e=t.includes("Opera");return t.includes("compatible")&&t.includes("MSIE")&&!e}(t)?function(t){const e=/MSIE (\d+\.\d+);/,n=t.match(e),r=n?Number.parseFloat(n[1]||"0"):0;return 7===r?"IE7":8===r?"IE8":9===r?"IE9":10===r?"IE10":"IE7以下"}(t):function(t){return t.includes("Trident")&&t.includes("rv:11.0")}(t)?"IE11":function(t){const e=t.includes("compatible")&&t.includes("MSIE");return t.includes("Edge")&&!e}(t)?"Edge":function(t){return t.includes("Firefox")}(t)?"FF":function(t){return t.includes("Opera")}(t)?"Opera":function(t){return t.includes("Safari")&&!t.includes("Chrome")}(t)?"Safari":function(t){return t.includes("Chrome")&&t.includes("Safari")}(t)?"Chrome":""}function pt(){return"iPhone"===ft()}function ht(){return"Android"===ft()}function dt(){const t=navigator.userAgent,e=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];let n=!0;for(let r=0;r<e.length;r++){const o=e[r];if(o&&t.indexOf(o)>0){n=!1;break}}return n}function gt(t){return/^(?:https?:|mailto:|tel:|\/\/)/.test(t)}function vt(t){if("string"==typeof t)try{const e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return console.error(`error:${t}`),!1}return!1}function yt(t){return i.isDayjs(t)}function mt(t){if("string"==typeof t)return t.trim();if("function"==typeof t){return(t.name||"").replace(/^bound\s+/i,"")}return""}function bt(...t){return t.filter(t=>null!=t&&""!==t).join("-")}function wt(t){return t?t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/[\s_]+/g,"-").replace(/[^\w\u4E00-\u9FA5-]+/g,"-").toLowerCase().replace(/^-+|-+$/g,"").replace(/-+/g,"-"):""}function jt(t,e=3){if(!t||0===t.length)return"form";const n=t.filter(t=>null!=t&&""!==t).slice(0,e);return 0===n.length?"form":n.join("-")}function Ot(t){return t?wt(t):""}function Et(t){if(!t)return!1;return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t)}var St={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};function _t(t,e,n){if(t)if(t.forEach)t.forEach(e,n);else for(var r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)}var Nt=Object.prototype.toString;function xt(t){return function(e){return"[object "+t+"]"===Nt.call(e)}}var At=Array.isArray||xt("Array");function Dt(t,e){return!(!t||!t.hasOwnProperty)&&t.hasOwnProperty(e)}function Tt(t,e,n){if(t)for(var r in t)Dt(t,r)&&e.call(n,t[r],r,t)}function Mt(t,e,n){return t?(At(t)?_t:Tt)(t,e,n):t}function kt(t){return function(e){return typeof e===t}}var It=kt("function");function Pt(t,e){var n=Object[t];return function(t){var r=[];if(t){if(n)return n(t);Mt(t,e>1?function(e){r.push([""+e,t[e]])}:function(){r.push(arguments[e])})}return r}}var Ft=Pt("keys",1);function Ct(t,e){var n=t.__proto__.constructor;return e?new n(e):new n}function zt(t,e){return e?Rt(t,e):t}function Rt(t,e){if(t)switch(Nt.call(t)){case"[object Object]":var n=Object.create(Object.getPrototypeOf(t));return Tt(t,function(t,r){n[r]=zt(t,e)}),n;case"[object Date]":case"[object RegExp]":return Ct(t,t.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return _t(t,function(t){r.push(zt(t,e))}),r;case"[object Set]":var o=Ct(t);return o.forEach(function(t){o.add(zt(t,e))}),o;case"[object Map]":var i=Ct(t);return i.forEach(function(t,n){i.set(n,zt(t,e))}),i}return t}function Ut(t,e){return t?Rt(t,e):t}var Wt=Object.assign;function $t(t,e,n){for(var r,o=e.length,i=1;i<o;i++)r=e[i],_t(Ft(e[i]),n?function(e){t[e]=Ut(r[e],n)}:function(e){t[e]=r[e]});return t}var Lt=function(t){if(t){var e=arguments;if(!0!==t)return Wt?Wt.apply(Object,e):$t(t,e);if(e.length>1)return $t(t=At(t[1])?[]:{},e,!0)}return t},Ht=function(){};function Kt(t){return Lt(St,t)}var Bt="4.0.0";function qt(t,e,n){for(var r=t.length-1;r>=0;r--)e.call(n,t[r],r,t)}function Zt(t,e,n){qt(Ft(t),function(r){e.call(n,t[r],r,t)})}function Vt(t){return null===t}function Yt(t,e){return function(n){return Vt(n)?e:n[t]}}function Jt(t){return!!t&&t.constructor===Object}function Gt(t){return"__proto__"!==t&&"constructor"!==t}function Qt(t,e){return Jt(t)&&Jt(e)||At(t)&&At(e)?(Mt(e,function(n,r){Gt(r)&&(t[r]=It(e)?n:Qt(t[r],n))}),t):e}Ht.VERSION=Bt,Ht.version=Bt,Ht.mixin=function(){_t(arguments,function(t){Mt(t,function(t,e){Ht[e]=It(t)?function(){var e=t.apply(Ht.$context,arguments);return Ht.$context=null,e}:t})})},Ht.setup=Kt,Ht.setConfig=Kt,Ht.getConfig=function(){return St};function Xt(t,e,n){var r=[];if(t&&arguments.length>1){if(t.map)return t.map(e,n);Mt(t,function(){r.push(e.apply(n,arguments))})}return r}function te(t,e,n,r,o){return function(i,u,a){if(i&&u){if(t&&i[t])return i[t](u,a);if(e&&At(i)){for(var c=0,s=i.length;c<s;c++)if(!!u.call(a,i[c],c,i)===r)return[!0,!1,c,i[c]][n]}else for(var f in i)if(Dt(i,f)&&!!u.call(a,i[f],f,i)===r)return[!0,!1,f,i[f]][n]}return o}}var ee=te("some",1,0,!0,!1),ne=te("every",1,1,!1,!0);function re(t,e){if(t){if(t.includes)return t.includes(e);for(var n in t)if(Dt(t,n)&&e===t[n])return!0}return!1}function oe(t,e){var n,r=0;if(At(t)&&At(e)){for(n=e.length;r<n;r++)if(!re(t,e[r]))return!1;return!0}return re(t,e)}function ie(t,e,n){var r=[];if(e){It(e)||(e=Yt(e));var o,i={};Mt(t,function(u,a){o=e.call(n,u,a,t),i[o]||(i[o]=1,r.push(u))})}else Mt(t,function(t){re(r,t)||r.push(t)});return r}function ue(t){return Xt(t,function(t){return t})}var ae="undefined",ce=kt(ae);function se(t){return Vt(t)||ce(t)}var fe=/(.+)?\[(\d+)\]$/;function le(t){return t?t.splice&&t.join?t:(""+t).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}function pe(t,e,n){if(se(t))return n;var r=function(t,e){if(t){var n,r,o,i=0;if(t[e]||Dt(t,e))return t[e];if(o=(r=le(e)).length)for(n=t;i<o;i++)if(se(n=he(n,r[i])))return i===o-1?n:void 0;return n}}(t,e);return ce(r)?n:r}function he(t,e){var n=e?e.match(fe):"";return n?n[1]?t[n[1]]?t[n[1]][n[2]]:void 0:t[n[2]]:t[e]}function de(t,e){return ce(t)?1:Vt(t)?ce(e)?-1:1:t&&t.localeCompare?t.localeCompare(e):t>e?1:-1}function ge(t,e,n){return function(r,o){var i=r[t],u=o[t];return i===u?n?n(r,o):0:"desc"===e.order?de(u,i):de(i,u)}}function ve(t,e,n){if(t){if(se(e))return ue(t).sort(de);for(var r,o=Xt(t,function(t){return{data:t}}),i=function(t,e,n,r){var o=[];return _t(n=At(n)?n:[n],function(n,i){if(n){var u,a=n;At(n)?(a=n[0],u=n[1]):Jt(n)&&(a=n.field,u=n.order),o.push({field:a,order:u||"asc"}),_t(e,It(a)?function(e,n){e[i]=a.call(r,e.data,n,t)}:function(t){t[i]=a?pe(t.data,a):t.data})}}),o}(t,o,e,n),u=i.length-1;u>=0;)r=ge(u,i[u],r),u--;return r&&(o=o.sort(r)),Xt(o,Yt("data"))}return[]}var ye=ve;function me(t,e){return t>=e?t:(t|=0)+Math.round(Math.random()*((e||9)-t))}var be=Pt("values",0);function we(t){for(var e,n=[],r=be(t),o=r.length-1;o>=0;o--)e=o>0?me(0,o):0,n.push(r[e]),r.splice(e,1);return n}function je(t){return function(e){if(e){var n=t(e&&e.replace?e.replace(/,/g,""):e);if(!isNaN(n))return n}return 0}}var Oe=je(parseFloat);function Ee(t,e,n){var r=[],o=arguments.length;if(t){if(e=o>=2?Oe(e):0,n=o>=3?Oe(n):t.length,t.slice)return t.slice(e,n);for(;e<n;e++)r.push(t[e])}return r}var Se=te("",0,2,!0),_e=te("find",1,3,!0);function Ne(t,e){return Xt(t,Yt(e))}function xe(t){return function(e,n){var r,o;return e&&e.length?(_t(e,function(i,u){n&&(i=It(n)?n(i,u,e):pe(i,n)),se(i)||!se(r)&&!t(r,i)||(o=u,r=i)}),e[o]):r}}var Ae=xe(function(t,e){return t<e});function De(t){var e,n,r,o=[];if(t&&t.length)for(e=0,r=(n=Ae(t,function(t){return t?t.length:0}))?n.length:0;e<r;e++)o.push(Ne(t,e));return o}function Te(t,e){var n=[];return _t(t,function(t){n=n.concat(At(t)?e?Te(t,e):t:[t])}),n}function Me(t,e){return(console[t]||console.log)(e)}function ke(t,e){try{delete t[e]}catch(n){t[e]=void 0}}function Ie(t,e,n){return t?(At(t)?qt:Zt)(t,e,n):t}var Pe=kt("object");function Fe(t,e,n){if(t){var r,o=arguments.length>1&&(Vt(e)||!Pe(e)),i=o?n:e;if(Jt(t))Tt(t,o?function(n,r){t[r]=e}:function(e,n){ke(t,n)}),i&&Lt(t,i);else if(At(t)){if(o)for(r=t.length;r>0;)r--,t[r]=e;else t.length=0;i&&t.push.apply(t,i)}}return t}function Ce(t,e,n){if(t){if(!se(e)){var r=[],o=[];return It(e)||(i=e,e=function(t,e){return e===i}),Mt(t,function(t,o,i){e.call(n,t,o,i)&&r.push(o)}),At(t)?Ie(r,function(e,n){o.push(t[e]),t.splice(e,1)}):(o={},_t(r,function(e){o[e]=t[e],ke(t,e)})),o}return Fe(t)}var i;return t}function ze(t,e,n,r){var o=r.key,i=r.parentKey,u=r.children,a=r.data,c=r.updated,s=r.clear;return _t(n,function(n){var f=n[u];a&&(n=n[a]),!1!==c&&(n[i]=e?e[o]:null),t.push(n),f&&f.length&&ze(t,n,f,r),s&&delete n[u]}),t}function Re(t){return function(e,n,r,o){var i=r||{},u=i.children||"children";return t(null,e,n,o,[],[],u,i)}}var Ue=Re(function t(e,n,r,o,i,u,a,c){var s,f,l,p,h,d;if(n)for(f=0,l=n.length;f<l;f++){if(s=n[f],p=i.concat([""+f]),h=u.concat([s]),r.call(o,s,f,n,p,e,h))return{index:f,item:s,path:p,items:n,parent:e,nodes:h};if(a&&s&&(d=t(s,s[a],r,o,p.concat([a]),h,a)))return d}});var We=Re(function t(e,n,r,o,i,u,a,c){var s,f;Mt(n,function(c,l){s=i.concat([""+l]),f=u.concat([c]),r.call(o,c,l,n,s,e,f),c&&a&&(s.push(a),t(c,c[a],r,o,s,f,a))})});var $e=Re(function t(e,n,r,o,i,u,a,c){var s,f,l,p=c.mapChildren||a;return Xt(n,function(h,d){return s=i.concat([""+d]),f=u.concat([h]),(l=r.call(o,h,d,n,s,e,f))&&h&&a&&h[a]&&(l[p]=t(h,h[a],r,o,s,f,a,c)),l})});function Le(t,e,n,r,o,i,u,a,c){var s,f,l,p,h,d=[],g=c.original,v=c.data,y=c.mapChildren||a,m=c.isEvery;return _t(n,function(b,w){s=i.concat([""+w]),f=u.concat([b]),p=t&&!m||r.call(o,b,w,n,s,e,f),h=a&&b[a],p||h?(g?l=b:(l=Lt({},b),v&&(l[v]=b)),l[y]=Le(p,b,b[a],r,o,s,f,a,c),(p||l[y].length)&&d.push(l)):p&&d.push(l)}),d}var He=Re(function(t,e,n,r,o,i,u,a){return Le(0,t,e,n,r,o,i,u,a)});function Ke(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(e===t[n])return n}function Be(t,e){if(t.lastIndexOf)return t.lastIndexOf(e);for(var n=t.length-1;n>=0;n--)if(e===t[n])return n;return-1}var qe=kt("number");var Ze=kt("string"),Ve=xt("Date"),Ye=parseInt;function Je(t){return Date.UTC(t.y,t.M||0,t.d||1,t.H||0,t.m||0,t.s||0,t.S||0)}function Ge(t){return t.getTime()}function Qe(t){return"(\\d{"+t+"})"}function Xe(t){return isNaN(t)?t:Ye(t)}for(var tn=Qe(2),en=Qe("1,2"),nn=Qe("1,7"),rn=Qe("3,4"),on=".{1}",un=on+en,an="(([zZ])|([-+]\\d{2}:?\\d{2}))",cn=[rn,un,un,un,un,un,on+nn,an],sn=[],fn=cn.length-1;fn>=0;fn--){for(var ln="",pn=0;pn<fn+1;pn++)ln+=cn[pn];sn.push(new RegExp("^"+ln+"$"))}var hn=[["yyyy",rn],["yy",tn],["MM",tn],["M",en],["dd",tn],["d",en],["HH",tn],["H",en],["mm",tn],["m",en],["ss",tn],["s",en],["SSS",Qe(3)],["S",nn],["Z",an]],dn={},gn=["\\[([^\\]]+)\\]"];for(pn=0;pn<hn.length;pn++){var vn=hn[pn];dn[vn[0]]=vn[1]+"?",gn.push(vn[0])}var yn=new RegExp(gn.join("|"),"g"),mn={};function bn(t,e){if(t){var n=Ve(t);if(n||!e&&/^[0-9]{11,15}$/.test(t))return new Date(n?Ge(t):Ye(t));if(Ze(t)){var r=e?function(t,e){var n=mn[e];if(!n){var r=[],o=e.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(yn,function(t,e){var n=t.charAt(0);return"["===n?e:(r.push(n),dn[t])});n=mn[e]={_i:r,_r:new RegExp(o)}}var i={},u=t.match(n._r);if(u){for(var a=n._i,c=1,s=u.length;c<s;c++)i[a[c-1]]=u[c];return i}return i}(t,e):function(t){for(var e,n={},r=0,o=sn.length;r<o;r++)if(e=t.match(sn[r])){n.y=e[1],n.M=e[2],n.d=e[3],n.H=e[4],n.m=e[5],n.s=e[6],n.S=e[7],n.Z=e[8];break}return n}(t);if(r.y)return r.M&&(r.M=Xe(r.M)-1),r.S&&(r.S=(o=Xe(r.S.substring(0,3)))<10?100*o:o<100?10*o:o),r.Z?function(t){if(/^[zZ]/.test(t.Z))return new Date(Je(t));var e=t.Z.match(/([-+])(\d{2}):?(\d{2})/);return e?new Date(Je(t)-("-"===e[1]?-1:1)*Ye(e[2])*36e5+6e4*Ye(e[3])):new Date("")}(r):new Date(r.y,r.M||0,r.d||1,r.H||0,r.m||0,r.s||0,r.S||0)}}var o;return new Date("")}function wn(){return new Date}function jn(t){var e,n=t?bn(t):wn();return!!Ve(n)&&((e=n.getFullYear())%4==0&&(e%100!=0||e%400==0))}function On(t,e){return function(n,r){if(n){if(n[t])return n[t](r);if(Ze(n)||At(n))return e(n,r);for(var o in n)if(Dt(n,o)&&r===n[o])return o}return-1}}var En=On("indexOf",Ke),Sn=On("lastIndexOf",Be);function _n(t){var e=0;return Ze(t)||At(t)?t.length:(Mt(t,function(){e++}),e)}var Nn=function(t){return!Vt(t)&&!isNaN(t)&&!At(t)&&t%1==0};var xn=kt("boolean"),An=xt("RegExp"),Dn=xt("Error");function Tn(t){for(var e in t)return!1;return!0}var Mn=typeof Symbol!==ae;function kn(t){return Mn&&Symbol.isSymbol?Symbol.isSymbol(t):"symbol"==typeof t}var In=xt("Arguments");var Pn=typeof document===ae?0:document;var Fn=typeof window===ae?0:window;var Cn=typeof FormData!==ae;var zn=typeof Map!==ae;var Rn=typeof WeakMap!==ae;var Un=typeof Set!==ae;var Wn=typeof WeakSet!==ae;function $n(t){return function(e,n,r){if(e&&It(n)){if(At(e)||Ze(e))return t(e,n,r);for(var o in e)if(Dt(e,o)&&n.call(r,e[o],o,e))return o}return-1}}var Ln=$n(function(t,e,n){for(var r=0,o=t.length;r<o;r++)if(e.call(n,t[r],r,t))return r;return-1});function Hn(t,e,n,r,o,i,u){if(t===e)return!0;if(t&&e&&!qe(t)&&!qe(e)&&!Ze(t)&&!Ze(e)){if(An(t))return n(""+t,""+e,o,i,u);if(Ve(t)||xn(t))return n(+t,+e,o,i,u);var a,c,s,f=At(t),l=At(e);if(f||l?f&&l:t.constructor===e.constructor)return c=Ft(t),s=Ft(e),r&&(a=r(t,e,o)),c.length===s.length&&(ce(a)?ne(c,function(o,i){return o===s[i]&&Hn(t[o],e[s[i]],n,r,f||l?i:o,t,e)}):!!a)}return n(t,e,o,i,u)}function Kn(t,e){return t===e}function Bn(t,e){return Hn(t,e,Kn)}var qn=$n(function(t,e,n){for(var r=t.length-1;r>=0;r--)if(e.call(n,t[r],r,t))return r;return-1});var Zn=Pt("entries",2);function Vn(t,e){return function(n,r){var o,i,u={},a=[],c=this,s=arguments,f=s.length;if(!It(r)){for(i=1;i<f;i++)o=s[i],a.push.apply(a,At(o)?o:[o]);r=0}return Mt(n,function(o,i){((r?r.call(c,o,i,n):Ln(a,function(t){return t===i})>-1)?t:e)&&(u[i]=o)}),u}}var Yn=Vn(1,0),Jn=Vn(0,1);var Gn=/(.+)?\[(\d+)\]$/;function Qn(t,e,n,r,o){if(!t[e]){var i,u,a=e?e.match(Gn):null;if(n)u=o;else{var c=r?r.match(Gn):null;u=c&&!c[1]?new Array(Ye(c[2])+1):{}}return a?a[1]?(i=Ye(a[2]),t[a[1]]?n?t[a[1]][i]=u:t[a[1]][i]?u=t[a[1]][i]:t[a[1]][i]=u:(t[a[1]]=new Array(i+1),t[a[1]][i]=u)):t[a[2]]=u:t[e]=u,u}return n&&(t[e]=o),t[e]}function Xn(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function tr(t,e,n){var r,o={};return t&&(e&&Pe(e)?e=function(t){return function(){return Tn(t)}}(e):It(e)||(e=Yt(e)),Mt(t,function(i,u){r=e?e.call(n,i,u,t):i,o[r]?o[r].push(i):o[r]=[i]})),o}function er(t,e,n){var r,o,i=[],u=arguments;if(u.length<2&&(e=u[0],t=0),o=e|0,(r=t|0)<e)for(n=n|0||1;r<o;r+=n)i.push(r);return i}var nr=xe(function(t,e){return t>e});function rr(t){return(t.split(".")[1]||"").length}function or(t,e){if(t.repeat)return t.repeat(e);var n=isNaN(e)?[]:new Array(Ye(e));return n.join(t)+(n.length>0?t:"")}function ir(t,e){return t.substring(0,e)+"."+t.substring(e,t.length)}function ur(t){var e=""+t,n=e.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(n){var r=t<0?"-":"",o=n[3]||"",i=n[5]||"",u=n[6]||"",a=n[7],c=n[8],s=c-u.length,f=c-o.length,l=c-i.length;return"+"===a?o?r+o+or("0",c):s>0?r+i+u+or("0",s):r+i+ir(u,c):o?f>0?r+"0."+or("0",Math.abs(f))+o:r+ir(o,f):l>0?r+"0."+or("0",Math.abs(l))+i+u:r+ir(i,l)+u}return e}function ar(t,e){var n=ur(t),r=ur(e);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,rr(n)+rr(r))}function cr(t){return function(e,n){var r=Oe(e),o=r;if(r){n|=0;var i=ur(r).split("."),u=i[0],a=i[1]||"",c=a.substring(0,n+1),s=u+(c?"."+c:"");if(n>=a.length)return Oe(s);if(s=r,n>0){var f=Math.pow(10,n);o=Math[t](ar(s,f))/f}else o=Math[t](s)}return o}}var sr=cr("round"),fr=cr("ceil"),lr=cr("floor");function pr(t){return qe(t)?ur(t):""+(se(t)?"":t)}function hr(t,e){var n=pr(sr(t,e|=0)).split("."),r=n[0],o=n[1]||"",i=e-o.length;return e?i>0?r+"."+o+or("0",i):r+ir(o,Math.abs(i)):r}var dr=je(Ye);function gr(t,e){return ar(Oe(t),Oe(e))}function vr(t,e){var n=ur(t),r=ur(e),o=Math.pow(10,Math.max(rr(n),rr(r)));return(gr(t,o)+gr(e,o))/o}function yr(t,e){var n=ur(t),r=ur(e),o=rr(n),i=rr(r)-o,u=i<0,a=Math.pow(10,u?Math.abs(i):i);return gr(n.replace(".","")/r.replace(".",""),u?1/a:a)}function mr(t,e,n){var r=0;return Mt(t&&t.length>2&&At(t)?t.sort():t,e?It(e)?function(){r=vr(r,e.apply(n,arguments))}:function(t){r=vr(r,pe(t,e))}:function(t){r=vr(r,t)}),r}var br="first",wr="last";function jr(t){return t.getFullYear()}var Or=864e5;function Er(t){return t.getMonth()}function Sr(t){return Ve(t)&&!isNaN(Ge(t))}function _r(t,e,n){var r=e&&!isNaN(e)?e:0;if(Sr(t=bn(t))){if(n===br)return new Date(jr(t),Er(t)+r,1);if(n===wr)return new Date(Ge(_r(t,r+1,br))-1);if(qe(n)&&t.setDate(n),r){var o=t.getDate();if(t.setMonth(Er(t)+r),o!==t.getDate())return t.setDate(1),new Date(Ge(t)-Or)}}return t}function Nr(t,e,n){var r;if(Sr(t=bn(t))&&(e&&(r=e&&!isNaN(e)?e:0,t.setFullYear(jr(t)+r)),n||!isNaN(n))){if(n===br)return new Date(jr(t),0,1);if(n===wr)return t.setMonth(11),_r(t,0,wr);t.setMonth(n)}return t}var xr=6048e5;function Ar(t,e,n,r){if(Sr(t=bn(t))){var o=qe(n),i=qe(r),u=Ge(t);if(o||i){var a=i?r:St.firstDayOfWeek,c=t.getDay(),s=o?n:c;if(c!==s){var f=0;a>c?f=-(7-a+c):a<c&&(f=a-c),u+=s>a?((0===s?7:s)-a+f)*Or:s<a?(7-a+s+f)*Or:f*Or}}return e&&!isNaN(e)&&(u+=e*xr),new Date(u)}return t}function Dr(t,e,n){if(Sr(t=bn(t))&&!isNaN(e)){if(t.setDate(t.getDate()+Ye(e)),n===br)return new Date(jr(t),Er(t),t.getDate());if(n===wr)return new Date(Ge(Dr(t,1,br))-1)}return t}function Tr(t){return t.toUpperCase()}var Mr=Xt(er(0,7),function(t){return[(t+1)%7,(t+2)%7,(t+3)%7]});function kr(t,e){var n=new Date(t).getDay();return re(Mr[e],n)}function Ir(t,e){return function(n,r){var o=qe(r)?r:St.firstDayOfWeek,i=bn(n);if(Sr(i)){var u,a=Ar(i,0,o,o),c=t(a),s=Ge(c),f=Ge(a),l=f+5184e5,p=new Date(l),h=Ar(c,0,o,o),d=Ge(h);if(f===d)return 1;if(e(a,p))for(u=Ge(t(p));u<l;u+=Or)if(kr(u,o))return 1;var g=d+5184e5,v=new Date(l),y=1;if(e(h,v))for(y=0,u=s;u<g;u+=Or)if(kr(u,o)){y++;break}return Math.floor((f-d)/xr)+y}return NaN}}var Pr=Ir(function(t){return new Date(t.getFullYear(),0,1)},function(t,e){return t.getFullYear()!==e.getFullYear()});function Fr(t){return Ge(function(t){return new Date(jr(t),Er(t),t.getDate())}(t))}function Cr(t){return Sr(t=bn(t))?Math.floor((Fr(t)-Fr(Nr(t,0,br)))/Or)+1:NaN}function zr(t,e,n){var r=pr(t);return e|=0,n=ce(n)?" ":""+n,r.padStart?r.padStart(e,n):e>r.length?((e-=r.length)>n.length&&(n+=or(n,e/n.length)),n.slice(0,e)+r):r}function Rr(t,e,n,r){var o=e[n];return o?It(o)?o(r,n,t):o[r]:r}var Ur=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function Wr(t,e,n){if(t){if(Sr(t=bn(t))){var r=n||{},o=e||St.parseDateFormat||St.formatString,i=t.getHours(),u=i<12?"am":"pm",a=Lt({},St.parseDateRules||St.formatStringMatchs,r.formats),c=function(e,n){return(""+jr(t)).substring(4-n)},s=function(e,n){return zr(Er(t)+1,n,"0")},f=function(e,n){return zr(t.getDate(),n,"0")},l=function(t,e){return zr(i,e,"0")},p=function(t,e){return zr(i<=12?i:i-12,e,"0")},h=function(e,n){return zr(t.getMinutes(),n,"0")},d=function(e,n){return zr(t.getSeconds(),n,"0")},g=function(e,n){return zr(t.getMilliseconds(),n,"0")},v=function(e,n){var r=t.getTimezoneOffset()/60*-1;return Rr(t,a,e,(r>=0?"+":"-")+zr(r,2,"0")+(1===n?":":"")+"00")},y=function(e,n){return zr(Rr(t,a,e,Pr(t,se(r.firstDay)?St.firstDayOfWeek:r.firstDay)),n,"0")},m=function(e,n){return zr(Rr(t,a,e,Cr(t)),n,"0")},b={yyyy:c,yy:c,MM:s,M:s,dd:f,d:f,HH:l,H:l,hh:p,h:p,mm:h,m:h,ss:d,s:d,SSS:g,S:g,ZZ:v,Z:v,WW:y,W:y,DDD:m,D:m,a:function(e){return Rr(t,a,e,u)},A:function(e){return Rr(t,a,e,Tr(u))},e:function(e){return Rr(t,a,e,t.getDay())},E:function(e){return Rr(t,a,e,t.getDay())},q:function(e){return Rr(t,a,e,Math.floor((Er(t)+3)/3))}};return o.replace(Ur,function(t,e){return e||(b[t]?b[t](t,t.length):t)})}return"Invalid Date"}return""}var $r=Date.now||function(){return Ge(wn())};var Lr=Ir(function(t){return new Date(t.getFullYear(),t.getMonth(),1)},function(t,e){return t.getMonth()!==e.getMonth()});var Hr=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function Kr(t){return t&&t.trimRight?t.trimRight():pr(t).replace(/[\s\uFEFF\xA0]+$/g,"")}function Br(t){return t&&t.trimLeft?t.trimLeft():pr(t).replace(/^[\s\uFEFF\xA0]+/g,"")}function qr(t){return t&&t.trim?t.trim():Kr(Br(t))}var Zr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};function Vr(t){var e=new RegExp("(?:"+Ft(t).join("|")+")","g");return function(n){return pr(n).replace(e,function(e){return t[e]})}}var Yr=Vr(Zr),Jr={};Mt(Zr,function(t,e){Jr[Zr[e]]=e});var Gr=Vr(Jr);function Qr(t,e,n){return t.substring(e,n)}function Xr(t){return t.toLowerCase()}var to={};var eo={};function no(t,e,n){return pr(t).replace((n||St).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(t,n){return pe(e,qr(n))})}var ro=decodeURIComponent;function oo(t){var e,n={};return t&&Ze(t)&&_t(t.split("&"),function(t){e=t.split("="),n[ro(e[0])]=ro(e[1]||"")}),n}var io=encodeURIComponent;function uo(t,e,n){var r,o=[];return Mt(t,function(t,i){r=At(t),Jt(t)||r?o=o.concat(uo(t,e+"["+i+"]",r)):o.push(io(e+"["+(n?"":i)+"]")+"="+io(Vt(t)?"":t))}),o}var ao=typeof location===ae?0:location;function co(){return ao?ao.origin||ao.protocol+"//"+ao.host:""}function so(t){return oo(t.split("?")[1]||"")}function fo(t){var e,n,r,o,i=""+t;return 0===i.indexOf("//")?i=(ao?ao.protocol:"")+i:0===i.indexOf("/")&&(i=co()+i),r=i.replace(/#.*/,"").match(/(\?.*)/),(o={href:i,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""}).path=i.replace(/^([a-z0-9.+-]*:)\/\//,function(t,e){return o.protocol=e,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(t,e,r){return n=r||"",o.port=n.replace(":",""),o.hostname=e,o.host=e+n,"/"}).replace(/(#.*)/,function(t,e){return o.hash=e.length>1?e:"",""}),e=o.hash.match(/#((.*)\?|(.*))/),o.pathname=o.path.replace(/(\?|#.*).*/,""),o.origin=o.protocol+"//"+o.host,o.hashKey=e&&(e[2]||e[1])||"",o.hashQuery=so(o.hash),o.searchQuery=so(o.search),o}function lo(t,e){var n=parseFloat(e),r=wn(),o=Ge(r);switch(t){case"y":return Ge(Nr(r,n));case"M":return Ge(_r(r,n));case"d":return Ge(Dr(r,n));case"h":case"H":return o+60*n*60*1e3;case"m":return o+60*n*1e3;case"s":return o+1e3*n}return o}function po(t){return(Ve(t)?t:new Date(t)).toUTCString()}function ho(t,e,n){if(Pn){var r,o,i,u,a,c,s=[],f=arguments;return At(t)?s=t:f.length>1?s=[Lt({name:t,value:e},n)]:Pe(t)&&(s=[t]),s.length>0?(_t(s,function(t){r=Lt({},St.cookies,t),i=[],r.name&&(o=r.expires,i.push(io(r.name)+"="+io(Pe(r.value)?JSON.stringify(r.value):r.value)),o&&(o=isNaN(o)?o.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(t,e,n){return po(lo(n,e))}):/^[0-9]{11,13}$/.test(o)||Ve(o)?po(o):po(lo("d",o)),r.expires=o),_t(["expires","path","domain","secure"],function(t){ce(r[t])||i.push(r[t]&&"secure"===t?t:t+"="+r[t])})),Pn.cookie=i.join("; ")}),!0):(u={},(a=Pn.cookie)&&_t(a.split("; "),function(t){c=t.indexOf("="),u[ro(t.substring(0,c))]=ro(t.substring(c+1)||"")}),1===f.length?u[t]:u)}return!1}function go(t){return ho(t)}function vo(t,e,n){return ho(t,e,n),ho}function yo(t,e){ho(t,"",Lt({expires:-1},St.cookies,e))}function mo(){return Ft(ho())}function bo(t){try{var e="__xe_t";return t.setItem(e,1),t.removeItem(e),!0}catch(t){return!1}}function wo(t){return navigator.userAgent.indexOf(t)>-1}Lt(ho,{has:function(t){return re(mo(),t)},set:vo,setItem:vo,get:go,getItem:go,remove:yo,removeItem:yo,keys:mo,getJSON:function(){return ho()}}),Lt(Ht,{assign:Lt,objectEach:Tt,lastObjectEach:Zt,objectMap:function(t,e,n){var r={};if(t){if(!e)return t;It(e)||(e=Yt(e)),Mt(t,function(o,i){r[i]=e.call(n,o,i,t)})}return r},merge:function(t){t||(t={});for(var e,n=arguments,r=n.length,o=1;o<r;o++)(e=n[o])&&Qt(t,e);return t},uniq:ie,union:function(){for(var t=arguments,e=[],n=0,r=t.length;n<r;n++)e=e.concat(ue(t[n]));return ie(e)},sortBy:ye,orderBy:ve,shuffle:we,sample:function(t,e){var n=we(t);return arguments.length<=1?n[0]:(e<n.length&&(n.length=e||0),n)},some:ee,every:ne,slice:Ee,filter:function(t,e,n){var r=[];if(t&&e){if(t.filter)return t.filter(e,n);Mt(t,function(o,i){e.call(n,o,i,t)&&r.push(o)})}return r},find:_e,findLast:function(t,e,n){if(t){At(t)||(t=be(t));for(var r=t.length-1;r>=0;r--)if(e.call(n,t[r],r,t))return t[r]}},findKey:Se,includes:re,arrayIndexOf:Ke,arrayLastIndexOf:Be,map:Xt,reduce:function(t,e,n){if(t){var r,o,i=0,u=n,a=arguments.length>2,c=Ft(t);if(t.length&&t.reduce)return o=function(){return e.apply(null,arguments)},a?t.reduce(o,u):t.reduce(o);for(a&&(i=1,u=t[c[0]]),r=c.length;i<r;i++)u=e.call(null,u,t[c[i]],i,t);return u}},copyWithin:function(t,e,n,r){if(At(t)&&t.copyWithin)return t.copyWithin(e,n,r);var o,i,u=e|0,a=n|0,c=t.length,s=arguments.length>3?r|0:c;if(u<c&&(u=u>=0?u:c+u)>=0&&(a=a>=0?a:c+a)<(s=s>=0?s:c+s))for(o=0,i=t.slice(a,s);u<c&&!(i.length<=o);u++)t[u]=i[o++];return t},chunk:function(t,e){var n,r=[],o=e|0||1;if(At(t))if(o>=0&&t.length>o)for(n=0;n<t.length;)r.push(t.slice(n,n+o)),n+=o;else r=t.length?[t]:t;return r},zip:function(){return De(arguments)},unzip:De,zipObject:function(t,e){var n={};return e=e||[],Mt(be(t),function(t,r){n[t]=e[r]}),n},flatten:function(t,e){return At(t)?Te(t,e):[]},toArray:ue,includeArrays:oe,pluck:Ne,invoke:function(t,e){for(var n,r=arguments,o=[],i=[],u=2,a=r.length;u<a;u++)o.push(r[u]);if(At(e)){for(a=e.length-1,u=0;u<a;u++)i.push(e[u]);e=e[a]}return Xt(t,function(t){if(i.length&&(t=function(t,e){for(var n=0,r=e.length;t&&n<r;)t=t[e[n++]];return r&&t?t:0}(t,i)),(n=t[e]||e)&&n.apply)return n.apply(t,o)})},arrayEach:_t,lastArrayEach:qt,toArrayTree:function(t,e){var n,r,o,i=Lt({},St.treeOptions,e),u=i.strict,a=i.key,c=i.parentKey,s=i.children,f=i.mapChildren,l=i.sortKey,p=i.reverse,h=i.data,d=[],g={},v={};return l&&(t=ve(Ut(t),l),p&&(t=t.reverse())),Mt(t,function(t){n=t[a],v[n]&&Me("warn","Duplicate primary key="+n),v[n]=!0}),Mt(t,function(t){n=t[a],h?(r={})[h]=t:r=t,o=t[c],g[n]=g[n]||[],r[a]=n,r[c]=o,n===o&&(o=null,Me("warn","Error infinite Loop. key="+n+" parentKey="+n)),g[o]=g[o]||[],g[o].push(r),r[s]=g[n],f&&(r[f]=g[n]),(!u||u&&se(o))&&(v[o]||d.push(r))}),u&&function(t,e){Mt(t,function(t){t[e]&&!t[e].length&&Ce(t,e)})}(t,s),d},toTreeArray:function(t,e){return ze([],null,t,Lt({},St.treeOptions,e))},findTree:Ue,eachTree:We,mapTree:$e,filterTree:function(t,e,n,r){var o=[];return t&&e&&We(t,function(t,n,i,u,a,c){e.call(r,t,n,i,u,a,c)&&o.push(t)},n),o},searchTree:He,hasOwnProp:Dt,eqNull:se,isNaN:function(t){return qe(t)&&isNaN(t)},isFinite:function(t){return qe(t)&&isFinite(t)},isUndefined:ce,isArray:At,isFloat:function(t){return!(Vt(t)||isNaN(t)||At(t)||Nn(t))},isInteger:Nn,isFunction:It,isBoolean:xn,isString:Ze,isNumber:qe,isRegExp:An,isObject:Pe,isPlainObject:Jt,isDate:Ve,isError:Dn,isTypeError:function(t){return!!t&&t.constructor===TypeError},isEmpty:Tn,isNull:Vt,isSymbol:kn,isArguments:In,isElement:function(t){return!!(t&&Ze(t.nodeName)&&qe(t.nodeType))},isDocument:function(t){return!(!t||!Pn||9!==t.nodeType)},isWindow:function(t){return!(!Fn||!t||t!==t.window)},isFormData:function(t){return Cn&&t instanceof FormData},isMap:function(t){return zn&&t instanceof Map},isWeakMap:function(t){return Rn&&t instanceof WeakMap},isSet:function(t){return Un&&t instanceof Set},isWeakSet:function(t){return Wn&&t instanceof WeakSet},isLeapYear:jn,isMatch:function(t,e){var n=Ft(t),r=Ft(e);return!r.length||(oe(n,r)?ee(r,function(r){return Ln(n,function(n){return n===r&&Bn(t[n],e[r])})>-1}):Bn(t,e))},isEqual:Bn,isEqualWith:function(t,e,n){return It(n)?Hn(t,e,function(t,e,r,o,i){var u=n(t,e,r,o,i);return ce(u)?Kn(t,e):!!u},n):Hn(t,e,Kn)},getType:function(t){return Vt(t)?"null":kn(t)?"symbol":Ve(t)?"date":At(t)?"array":An(t)?"regexp":Dn(t)?"error":typeof t},uniqueId:function(t){return""+(se(t)?"":t)+St.keyId++},getSize:_n,indexOf:En,lastIndexOf:Sn,findIndexOf:Ln,findLastIndexOf:qn,toStringJSON:function(t){if(Jt(t))return t;if(Ze(t))try{return JSON.parse(t)}catch(t){}return{}},toJSONString:function(t){return se(t)?"":JSON.stringify(t)},keys:Ft,values:be,entries:Zn,pick:Yn,omit:Jn,first:function(t){return be(t)[0]},last:function(t){var e=be(t);return e[e.length-1]},each:Mt,forOf:function(t,e,n){if(t)if(At(t))for(var r=0,o=t.length;r<o&&!1!==e.call(n,t[r],r,t);r++);else for(var i in t)if(Dt(t,i)&&!1===e.call(n,t[i],i,t))break},lastForOf:function(t,e,n){var r,o;if(t)if(At(t))for(r=t.length-1;r>=0&&!1!==e.call(n,t[r],r,t);r--);else for(r=(o=Dt(t)).length-1;r>=0&&!1!==e.call(n,t[o[r]],o[r],t);r--);},lastEach:Ie,has:function(t,e){if(t){if(Dt(t,e))return!0;var n,r,o,i,u,a,c=le(e),s=0,f=c.length;for(u=t;s<f&&(a=!1,(i=(n=c[s])?n.match(fe):"")?(r=i[1],o=i[2],r?u[r]&&Dt(u[r],o)&&(a=!0,u=u[r][o]):Dt(u,o)&&(a=!0,u=u[o])):Dt(u,n)&&(a=!0,u=u[n]),a);s++)if(s===f-1)return!0}return!1},get:pe,set:function(t,e,n){if(t&&Gt(e))if(!t[e]&&!Dt(t,e)||Xn(e)){for(var r=t,o=le(e),i=o.length,u=0;u<i;u++)if(!Xn(o[u])){var a=u===i-1;r=Qn(r,o[u],a,a?null:o[u+1],n)}}else t[e]=n;return t},groupBy:tr,countBy:function(t,e,n){var r=tr(t,e,n||this);return Tt(r,function(t,e){r[e]=t.length}),r},clone:Ut,clear:Fe,remove:Ce,range:er,destructuring:function(t,e){if(t&&e){var n=Lt.apply(this,[{}].concat(Ee(arguments,1))),r=Ft(n);_t(Ft(t),function(e){re(r,e)&&(t[e]=n[e])})}return t},random:me,min:nr,max:Ae,commafy:function(t,e){var n,r,o,i,u,a=Lt({},St.commafyOptions,e),c=a.digits;return qe(t)?(n=(a.ceil?fr:a.floor?lr:sr)(t,c),i=(r=ur(c?hr(n,c):n).split("."))[0],u=r[1],(o=i&&n<0)&&(i=i.substring(1,i.length))):i=(r=(n=pr(t).replace(/,/g,""))?[n]:[])[0],r.length?(o?"-":"")+i.replace(new RegExp("(?=(?!(\\b))(.{"+(a.spaceNumber||3)+"})+$)","g"),a.separator||",")+(u?"."+u:""):n},round:sr,ceil:fr,floor:lr,toFixed:hr,toNumber:Oe,toNumberString:ur,toInteger:dr,add:function(t,e){return vr(Oe(t),Oe(e))},subtract:function(t,e){var n=Oe(t),r=Oe(e),o=ur(n),i=ur(r),u=rr(o),a=rr(i),c=Math.pow(10,Math.max(u,a));return parseFloat(hr((n*c-r*c)/c,u>=a?u:a))},multiply:gr,divide:function(t,e){return yr(Oe(t),Oe(e))},sum:mr,mean:function(t,e,n){return yr(mr(t,e,n),_n(t))},now:$r,timestamp:function(t,e){if(t){var n=bn(t,e);return Ve(n)?Ge(n):n}return $r()},isValidDate:Sr,isDateSame:function(t,e,n){return!(!t||!e)&&("Invalid Date"!==(t=Wr(t,n))&&t===Wr(e,n))},toStringDate:bn,toDateString:Wr,getWhatYear:Nr,getWhatQuarter:function(t,e,n){var r,o=e&&!isNaN(e)?3*e:0;return Sr(t=bn(t))?(r=3*(function(t){var e=t.getMonth();return e<3?1:e<6?2:e<9?3:4}(t)-1),t.setMonth(r),_r(t,o,n)):t},getWhatMonth:_r,getWhatWeek:Ar,getWhatDay:Dr,getWhatHours:function t(e,n,r){if(Sr(e=bn(e))&&!isNaN(n)){if(e.setHours(e.getHours()+Ye(n)),r===br)return new Date(jr(e),Er(e),e.getDate(),e.getHours());if(r===wr)return new Date(Ge(t(e,1,br))-1)}return e},getWhatMinutes:function t(e,n,r){if(Sr(e=bn(e))&&!isNaN(n)){if(e.setMinutes(e.getMinutes()+Ye(n)),r===br)return new Date(jr(e),Er(e),e.getDate(),e.getHours(),e.getMinutes());if(r===wr)return new Date(Ge(t(e,1,br))-1)}return e},getWhatSeconds:function t(e,n,r){if(Sr(e=bn(e))&&!isNaN(n)){if(e.setSeconds(e.getSeconds()+Ye(n)),r===br)return new Date(jr(e),Er(e),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());if(r===wr)return new Date(Ge(t(e,1,br))-1)}return e},getYearDay:Cr,getYearWeek:Pr,getMonthWeek:Lr,getDayOfYear:function(t,e){return Sr(t=bn(t))?jn(Nr(t,e))?366:365:NaN},getDayOfMonth:function(t,e){return Sr(t=bn(t))?Math.floor((Ge(_r(t,e,wr))-Ge(_r(t,e,br)))/Or)+1:NaN},getDateDiff:function(t,e){var n,r,o,i,u,a,c={done:!1,status:!1,time:0};if(t=bn(t),e=e?bn(e):wn(),Sr(t)&&Sr(e)&&(n=Ge(t))<(r=Ge(e)))for(i=c.time=r-n,c.done=!0,c.status=!0,a=0,u=Hr.length;a<u;a++)i>=(o=Hr[a])[1]?a===u-1?c[o[0]]=i||0:(c[o[0]]=Math.floor(i/o[1]),i-=c[o[0]]*o[1]):c[o[0]]=0;return c},trim:qr,trimLeft:Br,trimRight:Kr,escape:Yr,unescape:Gr,camelCase:function(t){if(t=pr(t),to[t])return to[t];var e=t.length,n=t.replace(/([-]+)/g,function(t,n,r){return r&&r+n.length<e?"-":""});return e=n.length,n=n.replace(/([A-Z]+)/g,function(t,n,r){var o=n.length;return n=Xr(n),r?o>2&&r+o<e?Tr(Qr(n,0,1))+Qr(n,1,o-1)+Tr(Qr(n,o-1,o)):Tr(Qr(n,0,1))+Qr(n,1,o):o>1&&r+o<e?Qr(n,0,o-1)+Tr(Qr(n,o-1,o)):n}).replace(/(-[a-zA-Z])/g,function(t,e){return Tr(Qr(e,1,e.length))}),to[t]=n,n},kebabCase:function(t){if(t=pr(t),eo[t])return eo[t];if(/^[A-Z]+$/.test(t))return Xr(t);var e=t.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(t,e,n,r){var o=n.length;return o>1?e+"-"+Xr(Qr(n,0,o-1))+"-"+Xr(Qr(n,o-1,o))+r:Xr(e+"-"+n+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(t,e,n){var r=e.length;return Xr(Qr(e,0,r-1)+"-"+Qr(e,r-1,r)+(n||""))}).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,function(t,e,n,r,o){var i=n.length;return i>1&&(e&&(e+="-"),r)?(e||"")+Xr(Qr(n,0,i-1))+"-"+Xr(Qr(n,i-1,i))+r:(e||"")+(o?"-":"")+Xr(n)+(r||"")});return e=e.replace(/([-]+)/g,function(t,n,r){return r&&r+n.length<e.length?"-":""}),eo[t]=e,e},repeat:function(t,e){return or(pr(t),e)},padStart:zr,padEnd:function(t,e,n){var r=pr(t);return e|=0,n=ce(n)?" ":""+n,r.padEnd?r.padEnd(e,n):e>r.length?((e-=r.length)>n.length&&(n+=or(n,e/n.length)),r+n.slice(0,e)):r},startsWith:function(t,e,n){var r=pr(t);return 0===(1===arguments.length?r:r.substring(n)).indexOf(e)},endsWith:function(t,e,n){var r=pr(t),o=arguments.length;return o>1&&(o>2?r.substring(0,n).indexOf(e)===n-1:r.indexOf(e)===r.length-1)},template:no,toFormatString:function(t,e){return no(t,e,{tmplRE:/\{([.\w[\]\s]+)\}/g})},toString:pr,toValueString:pr,noop:function(){},property:Yt,bind:function(t,e){var n=Ee(arguments,2);return function(){return t.apply(e,Ee(arguments).concat(n))}},once:function(t,e){var n=!1,r=null,o=Ee(arguments,2);return function(){return n||(r=t.apply(e,Ee(arguments).concat(o)),n=!0),r}},after:function(t,e,n){var r=0,o=[];return function(){var i=arguments;++r<=t&&o.push(i[0]),r>=t&&e.apply(n,[o].concat(Ee(i)))}},before:function(t,e,n){var r=0,o=[];return n=n||this,function(){var i=arguments;++r<t&&(o.push(i[0]),e.apply(n,[o].concat(Ee(i))))}},throttle:function(t,e,n){var r=null,o=null,i=!1,u=null,a=Lt({leading:!0,trailing:!0},n),c=a.leading,s=a.trailing,f=function(){r=null,o=null},l=function(){i=!0,t.apply(o,r),u=setTimeout(p,e),f()},p=function(){u=null,i||!0!==s?f():l()},h=function(){r=arguments,o=this,i=!1,null!==u||!0!==c?!0===s&&(u=setTimeout(p,e)):l()};return h.cancel=function(){var t=null!==u;return t&&clearTimeout(u),f(),u=null,i=!1,t},h},debounce:function(t,e,n){var r=null,o=null,i="boolean"==typeof n?{leading:n,trailing:!n}:Lt({leading:!1,trailing:!0},n),u=!1,a=null,c=i.leading,s=i.trailing,f=function(){r=null,o=null},l=function(){u=!0,t.apply(o,r),f()},p=function(){!0===c&&(a=null),u||!0!==s?f():l()},h=function(){u=!1,r=arguments,o=this,null===a?!0===c&&l():clearTimeout(a),a=setTimeout(p,e)};return h.cancel=function(){var t=null!==a;return t&&clearTimeout(a),f(),a=null,u=!1,t},h},delay:function(t,e){var n=Ee(arguments,2),r=this;return setTimeout(function(){t.apply(r,n)},e)},unserialize:oo,serialize:function(t){var e,n=[];return Mt(t,function(t,r){ce(t)||(e=At(t),Jt(t)||e?n=n.concat(uo(t,r,e)):n.push(io(r)+"="+io(Vt(t)?"":t)))}),n.join("&").replace(/%20/g,"+")},parseUrl:fo,getBaseURL:function(){if(ao){var t=ao.pathname,e=Sn(t,"/")+1;return co()+(e===t.length?t:t.substring(0,e))}return""},locat:function(){return ao?fo(ao.href):{}},browse:function(){var t,e,n,r=!1,o=!1,i=!1,u={isNode:!1,isMobile:r,isPC:!1,isDoc:!!Pn};if(Fn||typeof process===ae){n=wo("Edge"),e=wo("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),u.isDoc&&(t=Pn.body||Pn.documentElement,_t(["webkit","khtml","moz","ms","o"],function(e){u["-"+e]=!!t[e+"MatchesSelector"]}));try{o=bo(Fn.localStorage)}catch(t){}try{i=bo(Fn.sessionStorage)}catch(t){}Lt(u,{edge:n,firefox:wo("Firefox"),msie:!n&&u["-ms"],safari:!e&&!n&&wo("Safari"),isMobile:r,isPC:!r,isLocalStorage:o,isSessionStorage:i})}else u.isNode=!0;return u},cookie:ho});let jo=!1;function Oo(t){if(!t)return null;const e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e,(t,e)=>{if(e&&"string"==typeof e){const t=function(){return e.replace("TT_FUNCTION","")};return e.includes("TT_FUNCTION")?t():e}return e})}catch{return e}}function Eo(t,e="12",n="Microsoft YaHei,Arial,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue','Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'"){let r=0;const o=document.createElement("canvas").getContext("2d");return o&&(o.font=`${e} ${n}`,r=o.measureText(t).width),r}function So(t,e,n){const r=n?.excludeAll||[],o=n?.exclude||[];return r.includes("Id")||r.push("Id"),r.includes("rowId")||r.push("rowId"),Object.fromEntries(Object.entries(t).reduce((t,[i,u])=>(r.includes(i)||o.includes(i)||(u&&W(u)?_o(n,e,u,i,t):u&&J(u)?No(n,e,u,i,t):xo(n,e,u,i,t)),t),[]))}function _o(t,e,n,r,o){const i=So(n,e[r]||{},{excludeAll:t?.excludeAll,...t});Object.keys(i).length&&o.push([r,i])}function No(t,e,n,r,o){const i=[],u=(t||{})[r]?.key;if(e[r]){const o=n?.length>=e[r]?.length?n:e[r],a=n?.length<e[r]?.length?n:e[r];u?o.forEach(e=>{const n=a.find(t=>t[u]===e[u]);if(n){const o=So(e,n,{excludeAll:t?.excludeAll,...t[r]});Object.keys(o).length&&i.push({[u]:n[u],...o})}else i.push(e)}):o.forEach((e,n)=>{const r=a[n];if(W(e)&&!W(r)||J(e)&&!J(r)||typeof e!=typeof r||!r)i.push(e);else if(W(e)||J(e)){const n=So(e,r,{excludeAll:t?.excludeAll});Object.keys(n).length&&i.push({...n})}else e!==r&&i.push(e)})}else i.push(...n);i.length&&o.push([r,i])}function xo(t,e,n,r,o){const i=t?.notNullToFalse||[];if("string"==typeof n&&"number"==typeof e[r]||"number"==typeof n&&"string"==typeof e[r])Number(n)!==Number(e[r])&&o.push([r,n]);else if([void 0,null,""].includes(n))[void 0,null,""].includes(e[r])||o.push([r,n]);else if(n!==e[r]){if(!1===n&&[void 0,null,""].includes(e[r])&&!i.includes(r))return;o.push([r,n])}}function Ao(t={},e={}){let n;for(n in e)t[n]=W(t[n])?Ao(t[n],e[n]):t[n]=e[n];return t}function Do(t,e="px"){return Ht.isNumber(t)||/^\d+$/.test(`${t}`)?`${t}${e}`:`${t||""}`}function To(t,e,n){return o({get:()=>new Proxy(t[e],{set:(t,r,o)=>(n(`update:${e}`,{...t,[r]:o}),!0)}),set(t){n(`update:${e}`,t)}})}function Mo(t){const e=Object.getPrototypeOf(t);if(!e||e===Object.prototype)return t;const n=Object.getOwnPropertyNames(e);for(const e of n){const n=t[e];"constructor"!==e&&"function"==typeof n&&(t[e]=n.bind(t))}return t}function ko(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(t=>ko(t));const e={};return Object.keys(t).forEach(n=>{e[n]=ko(t[n])}),e}function Io(t,e="id",n="parentId",r="children"){const o=new Map,i=[];return t.forEach(t=>{o.set(t[e],{...t,[r]:[]})}),t.forEach(t=>{const u=o.get(t[e]);if(t[n]){const e=o.get(t[n]);e&&e[r].push(u)}else i.push(u)}),i}function Po(...t){for(const e of t)if(null!=e)return e}function Fo(...t){return u(a(t))}function Co(){const t=new Event("resize");window.dispatchEvent(t)}function zo(t,e,n="prop",r="content"){t.forEach(t=>{Object.prototype.hasOwnProperty.call(t,n)&&(J(r)?r.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e[t[n]])}):Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e[t[n]]))})}const Ro=function(t,e="YYYY-MM-DD HH:mm:ss",n="Asia/Shanghai"){return""===t||null==t||0===t||"0"===t?"":i(t).isValid()?(jo||(i.extend(s),i.extend(f),jo=!0),i(t).tz(n).format(e)):""};function Uo(t){return c(t)}function Wo(t,e){return t?e&&0!==e.length?e.reduce((t,e)=>(delete t[e],t),{...t}):t:{}}function $o(t,e=200,n={}){const{leading:r=!1,trailing:o=!0,maxWait:i}=n;let u,a,c,s,f,l=0;function p(e){const n=s;return s=void 0,l=e,f=t(...n),f}function h(){void 0!==u&&(window.clearTimeout(u),u=void 0),void 0!==a&&(window.clearTimeout(a),a=void 0)}function d(){h(),l=0,s=void 0,c=void 0,f=void 0}function g(t){if(void 0===c)return!0;const n=t-c;return n>=e||n<0||void 0!==i&&t-l>=i}function v(){const t=Date.now();if(g(t))return void function(t){u=void 0,o&&void 0!==s?p(t):s=void 0}(t);const n=function(t){const n=t-l,r=e-(t-c);return void 0!==i?Math.min(r,i-n):r}(t);u=n>0?window.setTimeout(v,n):void 0}function y(){const t=Date.now();h(),void 0!==s&&p(t)}const m=(...t)=>{const n=Date.now(),o=g(n);if(s=t||[],c=n,o){if(void 0===u)return function(t){return l=t,h(),u=window.setTimeout(v,e),void 0!==i&&(a=window.setTimeout(y,i)),r?p(t):f}(n);if(void 0!==i)return h(),u=window.setTimeout(v,e),a=window.setTimeout(y,i),r?p(n):f}return void 0===u&&(u=window.setTimeout(v,e),void 0!==i&&(a=window.setTimeout(y,i))),f};return m.isPending=()=>void 0!==u||void 0!==a,m.cancel=()=>{d()},m.flush=(...e)=>{if(!m.isPending())return e.length>0?t(...e):f;const n=void 0!==s?s:e;return d(),t(...n)},m}function Lo(t,...e){let n=[];const r=e[e.length-1];return e.length>0&&Array.isArray(r)&&r.every(t=>["string","number","symbol"].includes(typeof t))&&(n=e.pop()),l((t,e,r)=>n.includes(e)||Array.isArray(t[e])&&Array.isArray(r)?(t[e]=r,!0):void 0)(t,...e)}function Ho(...t){let e=new p(t[0]);for(let n=1;n<t.length;n++)e=e.add(new p(t[n]));return e.toNumber()}function Ko(...t){let e=new p(t[0]);for(let n=1;n<t.length;n++)e=e.sub(new p(t[n]));return e.toNumber()}function Bo(...t){let e=new p(t[0]);for(let n=1;n<t.length;n++)e=e.mul(new p(t[n]));return e.toNumber()}function qo(...t){let e=new p(t[0]);for(let n=1;n<t.length;n++)e=e.div(new p(t[n]));return e.toNumber()}function Zo(...t){return t.reduce((t,e)=>Jo(t).add(e).toNumber(),0)}function Vo(t,e){return t.reduce((t,n)=>Jo(t).add(e(n)).toNumber(),0)}function Yo(t,e,n){const r={},o=n;return t.forEach(t=>{const n=e(t);if(n){const e=o(t);r[n]=Jo(r[n]||0).add(e).toNumber()}}),r}function Jo(t){const e=Number(t)||0===t,n=Number.isNaN(Number(t)),r=new p(t);if(e&&!n)return r;console.error("请输入合理数字!");return new p(Number.NaN)}class Go{condition=!1;promiseResolvers=null;isConditionTrue(){return this.condition}reset(){this.condition=!1,this.clearPromises()}setConditionFalse(){this.condition=!1,this.promiseResolvers&&(this.promiseResolvers.reject(),this.clearPromises())}setConditionTrue(){this.condition=!0,this.promiseResolvers&&(this.promiseResolvers.resolve(),this.clearPromises())}waitForCondition(){if(this.condition)return Promise.resolve();const{promise:t,resolve:e,reject:n}=Promise.withResolvers();return this.promiseResolvers={resolve:e,reject:n},t}clearPromises(){this.promiseResolvers=null}}class Qo{condition=!1;rejectCondition=null;resolveCondition=null;isConditionTrue(){return this.condition}reset(){this.condition=!1,this.clearPromises()}setConditionFalse(){this.condition=!1,this.rejectCondition&&(this.rejectCondition(),this.clearPromises())}setConditionTrue(){this.condition=!0,this.resolveCondition&&(this.resolveCondition(),this.clearPromises())}waitForCondition(){return new Promise((t,e)=>{this.condition?t():(this.resolveCondition=t,this.rejectCondition=e)})}clearPromises(){this.resolveCondition=null,this.rejectCondition=null}}const Xo=!0,ti=25200,ei={key:"_11111000001111@",iv:"@11111000001111_"};class ni{key;iv;constructor(t={}){const{key:e,iv:n}=t;e&&(this.key=v?.(e)),n&&(this.iv=v?.(n))}get getOptions(){return{mode:y,padding:m,iv:this.iv}}encryptByAES(t){return h(t,this.key,this.getOptions).toString()}decryptByAES(t){return d(t,this.key,this.getOptions).toString(g)}}function ri({prefixKey:t="",storage:e=sessionStorage,key:n=ei.key,iv:r=ei.iv,timeout:o=null,hasEncrypt:i=!0}={}){if(i&&[n.length,r.length].some(t=>16!==t))throw new Error("When hasEncrypt is true, the key or iv must be 16 bits!");const u=new ni({key:n,iv:r});return new class{storage;prefixKey;encryption;hasEncrypt;constructor(){this.storage=e,this.prefixKey=t,this.encryption=u,this.hasEncrypt=i}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,e,n=o){const r=JSON.stringify({value:e,time:Date.now(),expire:U(n)?null:(new Date).getTime()+1e3*n}),i=this.hasEncrypt?this.encryption.encryptByAES(r):r;this.storage.setItem(this.getKey(t),i)}get(t,e=null){const n=this.storage.getItem(this.getKey(t));if(!n)return e;try{const e=this.hasEncrypt?this.encryption.decryptByAES(n):n,r=JSON.parse(e),{value:o,expire:i}=r;if(U(i)||i>=(new Date).getTime())return o;this.remove(t)}catch(t){return console.error(`get erroe:${t}`),e}}remove(t){this.storage.removeItem(this.getKey(t))}getKeysWithPrefix(t){const e=[];for(let n=0;n<this.storage.length;n++){const r=this.storage.key(n);r&&r.startsWith(t)&&e.push(r)}return e}getKeysWithPrefixExcluding(t,e){const n=[];for(let r=0;r<this.storage.length;r++){const o=this.storage.key(r);o&&o.startsWith(t)&&!e.has(o)&&n.push(o)}return n}removeKeys(t){t.forEach(t=>{this.storage.removeItem(t)})}clear(t){const e=(this.prefixKey||"").toUpperCase();if(!t)return void this.removeKeys(this.getKeysWithPrefix(e));const{keys:n,exclude:r}=t;if(n&&n.length>0)n.forEach(t=>{this.remove(t)});else{if(r&&r.length>0){const t=new Set(r.map(t=>this.getKey(t)));return void this.removeKeys(this.getKeysWithPrefixExcluding(e,t))}this.removeKeys(this.getKeysWithPrefix(e))}}}}function oi(t=sessionStorage,e={}){return ri(function(t,e={}){return{hasEncrypt:Xo,storage:t,prefixKey:"tt-admin",...e}}(t,e))}function ii(t={}){return oi(sessionStorage,{...t,timeout:ti})}function ui(t={}){return oi(localStorage,{...t,timeout:ti})}function ai(t,e,n,r){if(!t)return!1;const o=t.split(".").map(Number);if(o.length<2)return!1;if(o[0]>e)return!0;if(o[0]<e)return!1;if(o[1]>n)return!0;if(o[1]<n)return!1;if(void 0!==r){return(o[2]||0)>=r}return!0}var ci="object"==typeof global&&global&&global.Object===Object&&global,si="object"==typeof self&&self&&self.Object===Object&&self,fi=ci||si||Function("return this")(),li=fi.Symbol,pi=Object.prototype,hi=pi.hasOwnProperty,di=pi.toString,gi=li?li.toStringTag:void 0;var vi=Object.prototype.toString;var yi=li?li.toStringTag:void 0;function mi(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":yi&&yi in Object(t)?function(t){var e=hi.call(t,gi),n=t[gi];try{t[gi]=void 0;var r=!0}catch(t){}var o=di.call(t);return r&&(e?t[gi]=n:delete t[gi]),o}(t):function(t){return vi.call(t)}(t)}function bi(t){return null!=t&&"object"==typeof t}var wi=Array.isArray;function ji(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Oi(t){if(!ji(t))return!1;var e=mi(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Ei,Si=fi["__core-js_shared__"],_i=(Ei=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||""))?"Symbol(src)_1."+Ei:"";var Ni=Function.prototype.toString;function xi(t){if(null!=t){try{return Ni.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Ai=/^\[object .+?Constructor\]$/,Di=Function.prototype,Ti=Object.prototype,Mi=Di.toString,ki=Ti.hasOwnProperty,Ii=RegExp("^"+Mi.call(ki).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pi(t){return!(!ji(t)||(e=t,_i&&_i in e))&&(Oi(t)?Ii:Ai).test(xi(t));var e}function Fi(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Pi(n)?n:void 0}var Ci=Fi(fi,"WeakMap"),zi=Object.create,Ri=function(){function t(){}return function(e){if(!ji(e))return{};if(zi)return zi(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Ui=function(){try{var t=Fi(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Wi=/^(?:0|[1-9]\d*)$/;function $i(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Wi.test(t))&&t>-1&&t%1==0&&t<e}function Li(t,e){return t===e||t!=t&&e!=e}var Hi=Object.prototype.hasOwnProperty;function Ki(t,e,n){var r=t[e];Hi.call(t,e)&&Li(r,n)&&(void 0!==n||e in t)||function(t,e,n){"__proto__"==e&&Ui?Ui(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}(t,e,n)}function Bi(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var qi=Object.prototype;function Zi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||qi)}function Vi(t){return bi(t)&&"[object Arguments]"==mi(t)}var Yi=Object.prototype,Ji=Yi.hasOwnProperty,Gi=Yi.propertyIsEnumerable,Qi=Vi(function(){return arguments}())?Vi:function(t){return bi(t)&&Ji.call(t,"callee")&&!Gi.call(t,"callee")};var Xi="object"==typeof exports&&exports&&!exports.nodeType&&exports,tu=Xi&&"object"==typeof module&&module&&!module.nodeType&&module,eu=tu&&tu.exports===Xi?fi.Buffer:void 0,nu=(eu?eu.isBuffer:void 0)||function(){return!1},ru={};function ou(t){return function(e){return t(e)}}ru["[object Float32Array]"]=ru["[object Float64Array]"]=ru["[object Int8Array]"]=ru["[object Int16Array]"]=ru["[object Int32Array]"]=ru["[object Uint8Array]"]=ru["[object Uint8ClampedArray]"]=ru["[object Uint16Array]"]=ru["[object Uint32Array]"]=!0,ru["[object Arguments]"]=ru["[object Array]"]=ru["[object ArrayBuffer]"]=ru["[object Boolean]"]=ru["[object DataView]"]=ru["[object Date]"]=ru["[object Error]"]=ru["[object Function]"]=ru["[object Map]"]=ru["[object Number]"]=ru["[object Object]"]=ru["[object RegExp]"]=ru["[object Set]"]=ru["[object String]"]=ru["[object WeakMap]"]=!1;var iu="object"==typeof exports&&exports&&!exports.nodeType&&exports,uu=iu&&"object"==typeof module&&module&&!module.nodeType&&module,au=uu&&uu.exports===iu&&ci.process,cu=function(){try{var t=uu&&uu.require&&uu.require("util").types;return t||au&&au.binding&&au.binding("util")}catch(t){}}(),su=cu&&cu.isTypedArray,fu=su?ou(su):function(t){return bi(t)&&Bi(t.length)&&!!ru[mi(t)]},lu=Object.prototype.hasOwnProperty;function pu(t,e){var n=wi(t),r=!n&&Qi(t),o=!n&&!r&&nu(t),i=!n&&!r&&!o&&fu(t),u=n||r||o||i,a=u?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var s in t)!lu.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||$i(s,c))||a.push(s);return a}function hu(t,e){return function(n){return t(e(n))}}var du=hu(Object.keys,Object),gu=Object.prototype.hasOwnProperty;function vu(t){return null!=(e=t)&&Bi(e.length)&&!Oi(e)?pu(t):function(t){if(!Zi(t))return du(t);var e=[];for(var n in Object(t))gu.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t);var e}var yu=Fi(Object,"create");var mu=Object.prototype.hasOwnProperty;var bu=Object.prototype.hasOwnProperty;function wu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ju(t,e){for(var n=t.length;n--;)if(Li(t[n][0],e))return n;return-1}wu.prototype.clear=function(){this.__data__=yu?yu(null):{},this.size=0},wu.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},wu.prototype.get=function(t){var e=this.__data__;if(yu){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mu.call(e,t)?e[t]:void 0},wu.prototype.has=function(t){var e=this.__data__;return yu?void 0!==e[t]:bu.call(e,t)},wu.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yu&&void 0===e?"__lodash_hash_undefined__":e,this};var Ou=Array.prototype.splice;function Eu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Eu.prototype.clear=function(){this.__data__=[],this.size=0},Eu.prototype.delete=function(t){var e=this.__data__,n=ju(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ou.call(e,n,1),--this.size,!0)},Eu.prototype.get=function(t){var e=this.__data__,n=ju(e,t);return n<0?void 0:e[n][1]},Eu.prototype.has=function(t){return ju(this.__data__,t)>-1},Eu.prototype.set=function(t,e){var n=this.__data__,r=ju(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Su=Fi(fi,"Map");function _u(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Nu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Nu.prototype.clear=function(){this.size=0,this.__data__={hash:new wu,map:new(Su||Eu),string:new wu}},Nu.prototype.delete=function(t){var e=_u(this,t).delete(t);return this.size-=e?1:0,e},Nu.prototype.get=function(t){return _u(this,t).get(t)},Nu.prototype.has=function(t){return _u(this,t).has(t)},Nu.prototype.set=function(t,e){var n=_u(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var xu=hu(Object.getPrototypeOf,Object);function Au(t){var e=this.__data__=new Eu(t);this.size=e.size}Au.prototype.clear=function(){this.__data__=new Eu,this.size=0},Au.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Au.prototype.get=function(t){return this.__data__.get(t)},Au.prototype.has=function(t){return this.__data__.has(t)},Au.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Eu){var r=n.__data__;if(!Su||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Nu(r)}return n.set(t,e),this.size=n.size,this};var Du="object"==typeof exports&&exports&&!exports.nodeType&&exports,Tu=Du&&"object"==typeof module&&module&&!module.nodeType&&module,Mu=Tu&&Tu.exports===Du?fi.Buffer:void 0;Mu&&Mu.allocUnsafe;var ku=Object.prototype.propertyIsEnumerable,Iu=Object.getOwnPropertySymbols,Pu=Iu?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}(Iu(t),function(e){return ku.call(t,e)}))}:function(){return[]};function Fu(t){return function(t,e,n){var r=e(t);return wi(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,vu,Pu)}var Cu=Fi(fi,"DataView"),zu=Fi(fi,"Promise"),Ru=Fi(fi,"Set"),Uu="[object Map]",Wu="[object Promise]",$u="[object Set]",Lu="[object WeakMap]",Hu="[object DataView]",Ku=xi(Cu),Bu=xi(Su),qu=xi(zu),Zu=xi(Ru),Vu=xi(Ci),Yu=mi;(Cu&&Yu(new Cu(new ArrayBuffer(1)))!=Hu||Su&&Yu(new Su)!=Uu||zu&&Yu(zu.resolve())!=Wu||Ru&&Yu(new Ru)!=$u||Ci&&Yu(new Ci)!=Lu)&&(Yu=function(t){var e=mi(t),n="[object Object]"==e?t.constructor:void 0,r=n?xi(n):"";if(r)switch(r){case Ku:return Hu;case Bu:return Uu;case qu:return Wu;case Zu:return $u;case Vu:return Lu}return e});var Ju=Object.prototype.hasOwnProperty;var Gu=fi.Uint8Array;function Qu(t){var e=new t.constructor(t.byteLength);return new Gu(e).set(new Gu(t)),e}var Xu=/\w*$/;var ta=li?li.prototype:void 0,ea=ta?ta.valueOf:void 0;function na(t,e,n){var r,o,i,u,a,c=t.constructor;switch(e){case"[object ArrayBuffer]":return Qu(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return a=Qu((u=t).buffer),new u.constructor(a,u.byteOffset,u.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var e=Qu(t.buffer);return new t.constructor(e,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return(i=new(o=t).constructor(o.source,Xu.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=t,ea?Object(ea.call(r)):{}}}var ra=cu&&cu.isMap,oa=ra?ou(ra):function(t){return bi(t)&&"[object Map]"==Yu(t)};var ia=cu&&cu.isSet,ua=ia?ou(ia):function(t){return bi(t)&&"[object Set]"==Yu(t)},aa="[object Arguments]",ca="[object Function]",sa="[object Object]",fa={};function la(t,e,n,r,o,i){var u;if(void 0!==u)return u;if(!ji(t))return t;var a=wi(t);if(a)u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ju.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t);else{var c=Yu(t),s=c==ca||"[object GeneratorFunction]"==c;if(nu(t))return t.slice();if(c==sa||c==aa||s&&!o)u=s?{}:function(t){return"function"!=typeof t.constructor||Zi(t)?{}:Ri(xu(t))}(t);else{if(!fa[c])return o?t:{};u=na(t,c)}}i||(i=new Au);var f=i.get(t);if(f)return f;i.set(t,u),ua(t)?t.forEach(function(r){u.add(la(r,e,n,r,t,i))}):oa(t)&&t.forEach(function(r,o){u.set(o,la(r,e,n,o,t,i))});var l=a?void 0:Fu(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(l||t,function(r,o){l&&(r=t[o=r]),Ki(u,o,la(r,e,n,o,t,i))}),u}fa[aa]=fa["[object Array]"]=fa["[object ArrayBuffer]"]=fa["[object DataView]"]=fa["[object Boolean]"]=fa["[object Date]"]=fa["[object Float32Array]"]=fa["[object Float64Array]"]=fa["[object Int8Array]"]=fa["[object Int16Array]"]=fa["[object Int32Array]"]=fa["[object Map]"]=fa["[object Number]"]=fa[sa]=fa["[object RegExp]"]=fa["[object Set]"]=fa["[object String]"]=fa["[object Symbol]"]=fa["[object Uint8Array]"]=fa["[object Uint8ClampedArray]"]=fa["[object Uint16Array]"]=fa["[object Uint32Array]"]=!0,fa["[object Error]"]=fa[ca]=fa["[object WeakMap]"]=!1;function pa(t){return la(t,5)}function ha(t,e,n){const r=pa(t);return e?n?.forEach(t=>{const e=r[t];Array.isArray(e)&&(r[t]=r[t].join(","))}):Object.entries(r).forEach(([t,e])=>{Array.isArray(e)&&!n?.includes(t)&&(r[t]=e.join(","))}),r}function da(t,e,n){const r=pa(t);return e?n?.forEach(t=>{const e=r[t];"string"==typeof e&&(r[t]=""===e?[]:e.split(","))}):Object.entries(r).forEach(([t,e])=>{"string"!=typeof e||n?.includes(t)||(r[t]=""===e?[]:e.split(","))}),r}export{ti as DEFAULT_CACHE_TIME,Go as StateHandler,Qo as StateHandlerOld,k as TtHttp,Ho as add,zo as arrGive,Io as arrayToTree,Mo as bindMethods,ei as cacheCipher,Jo as calc,Eo as calcWordsWidth,b as capitalize,ai as checkVersion,Fo as clnm,Uo as cloneDeep,Yo as clsSumTotalBy,ri as create,ui as createLocalStorage,ii as createSessionStorage,oi as createStorage,Ro as dateFormat,$o as debounce,ko as deepCopy,Ao as deepMerge,qo as divide,O as downloadFile,Xo as enableStorageEncryption,Ot as extractIdFromTitle,mt as extractResourceFromApi,ha as formatFormData,jt as generateFormName,bt as generateTestId,lt as getBrowserType,ft as getDeviceType,So as getDifference,Po as getFirstNonNullOrUndefined,Oo as getStorage,F as is,ht as isAndroid,J as isArray,V as isBoolean,et as isClient,H as isDate,yt as isDayjsObject,C as isDef,Q as isElement,$ as isEmpty,L as isEmptyZero,it as isError,gt as isExternal,ct as isFalse,Z as isFunction,pt as isIos,vt as isJson,X as isMap,R as isNull,U as isNullOrUnDef,K as isNumber,W as isObject,dt as isPC,ot as isPrimitive,B as isPromise,Y as isRegExp,tt as isServer,at as isSet,q as isString,rt as isStringNumber,ut as isSymbol,st as isTrue,z as isUndefined,nt as isUrl,Et as isValidTestId,G as isWindow,j as kebabToCamelCase,Lo as mergeWithArrayOverride,Bo as multiply,Wo as omit,da as revertFormatFormData,No as setDifferenceArr,xo as setDifferenceField,_o as setDifferenceObj,Ko as subtract,Zo as sumTotal,Vo as sumTotalBy,Do as toCssUnit,wt as toKebabCase,Co as triggerWindowResize,w as trim,To as useVModel,I as withInstall};
2
2
  //# sourceMappingURL=index.esm.js.map