@dazhicheng/utils 1.3.66 → 1.3.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calc.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/calc.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"axios";import{ElMessage as e,ElLoading as n}from"element-plus";import r from"dayjs";import{nextTick as o,computed as i}from"vue";import u from"numeral";import{twMerge as a}from"tailwind-merge";import{clsx as c}from"clsx";import{klona as s}from"klona/full";import f from"dayjs/plugin/utc";import l from"dayjs/plugin/timezone";import{createDefu as d}from"defu";export{createDefu as createMerge,defuFn as mergFn,defu as merge}from"defu";import h from"decimal.js";import{encrypt as p,decrypt as g}from"crypto-js/aes";import m,{parse as y}from"crypto-js/enc-utf8";import v from"crypto-js/mode-ecb";import w from"crypto-js/pad-pkcs7";import{cloneDeep as b}from"lodash-es";function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}function E(t){return t.trim()}function N(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 A,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"}(A||(A={})),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,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 j(t){if("ERR_CANCELED"===t.code)throw console.warn("Request cancelled:",t.message),new x(D.requestCancelled,A.error);const e=t.response?.status,n=t.response?.data?.msg||t.message,r=t.config;if(!t.response)throw new x(D.networkError,A.error,{url:r?.url||"",method:r?.method?.toUpperCase()||""});const o=e?(i=e,{[A.unauthorized]:D.unauthorized,[A.forbidden]:D.forbidden,[A.notFound]:D.notFound,[A.methodNotAllowed]:D.methodNotAllowed,[A.requestTimeout]:D.requestTimeout,[A.internalServerError]:D.internalServerError,[A.badGateway]:D.badGateway,[A.serviceUnavailable]:D.serviceUnavailable,[A.gatewayTimeout]:D.gatewayTimeout}[i]||D.internalServerError):n||D.requestFailed;var i;throw new x(o,e||A.error,{data:t.response.data,url:r?.url||"",method:r?.method?.toUpperCase()||""})}function M(t,n=!0){n&&e.error(t.message),console.error("[HTTP Error]",t.toLogData())}const T=Object.prototype.toString;function k(t,e){return T.call(t)===`[object ${e}]`}function C(t){return void 0!==t}function P(t){return!C(t)}function I(t){return null===t}function R(t){return P(t)||I(t)}function F(t){return!R(t)&&(t instanceof Promise||k(t,"Object"))}function $(t){return!!R(t)||(B(t)||U(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:!!F(t)&&0===Object.keys(t).length)}function _(t){return!!$(t)||(0===t||!!U(t)&&("0"===t||"undefined"===t||"null"===t))}function W(t){return k(t,"Date")}function H(t){return k(t,"Number")&&t==t}function L(t){return k(t,"Promise")&&F(t)&&z(t.then)&&z(t.catch)}function U(t){return k(t,"String")}function z(t){return"function"==typeof t}function K(t){return k(t,"Boolean")}function q(t){return k(t,"RegExp")}function B(t){return Array.isArray(t)}function Y(t){return"undefined"!=typeof window&&k(t,"Window")}function Z(t){return"undefined"!=typeof Element&&t instanceof Element}function V(t){return k(t,"Map")}const J="undefined"==typeof window,G=!J;function Q(t){return/(?:^https?:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*(?:#\w*)?$/.test(t)}function X(t){return!!U(t)&&!Number.isNaN(Number(t))}function tt(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function et(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function nt(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function rt(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function ot(t){return!t||t===I(t)||t===P(t)||!1===t||t===Number.isNaN(t)||!(!B(t)||0!==t.length)}function it(t){return!ot(t)}function ut(){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 at(){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 ct(){return"iPhone"===ut()}function st(){return"Android"===ut()}function ft(){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 lt(t){return/^(?:https?:|mailto:|tel:|\/\/)/.test(t)}function dt(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 ht(t){return r.isDayjs(t)}function pt(t){return k(t,"FormData")}const gt="tt-loading-mask",mt="tt-modal-overlay",yt=new Map;let vt=null,wt=!1,bt=!1;const St=()=>document.documentElement.classList.contains("dark")?"rgba(7, 7, 7, 0.85)":"rgba(255, 255, 255, 0.5)",Et={lock:!0,get background(){return St()},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:gt};function Nt(t){return!!t.isConnected&&t.getClientRects().length>0}function Ot(t){if(!t.isConnected)return!1;return(t.clientHeight||t.getBoundingClientRect().height)>=48}function At(){const t=document.querySelectorAll("micro-app-body");for(const e of Array.from(t)){const t=e;if(!Nt(t))continue;const n=t.querySelector("#app");if(n)return n}const e=document.querySelector("micro-app-body");return e?e.querySelector("#app"):null}function Dt(){const t=[At(),document.querySelector("#app-content"),document.querySelector("#app")];for(const e of t)if(e&&Nt(e)&&Ot(e))return e;return null}function xt(){return function(){if("undefined"==typeof document)return!1;const t=document.querySelectorAll(`.${mt}`);for(const e of Array.from(t))if(e instanceof HTMLElement&&"1"!==e.dataset.ttModalSuspended&&"none"!==e.style.display&&Nt(e))return!0;return!1}()||!Dt()}function jt(t){return t instanceof HTMLElement&&(!!t.classList.contains(mt)||!!t.querySelector(`.${mt}`))}function Mt(){if(wt)return;if("undefined"==typeof MutationObserver)return;if("undefined"==typeof document||!document.body)return;wt=!0;new MutationObserver(t=>{t.some(t=>{for(const e of Array.from(t.addedNodes))if(jt(e))return!0;for(const e of Array.from(t.removedNodes))if(jt(e))return!0;return!1})&&(bt||(bt=!0,o(()=>{bt=!1,Rt.sync()})))}).observe(document.body,{childList:!0,subtree:!0})}function Tt(t){if(t.instance){try{t.instance.close()}catch{}t.instance=null,t.target=null}else t.target=null}function kt(t){if(!t.instance)return!1;const e=!t.target;if(xt()!==e)return!1;if(e)return function(){const t=document.body.querySelector(`.el-loading-mask.${gt}.is-fullscreen`);return!(!t||!t.isConnected)}();if(!Nt(t.target)||!Ot(t.target))return!1;const n=t.target.querySelector(`.el-loading-mask.${gt}`);return!(!n||!n.isConnected)}function Ct(t,e){if(It()!==t)return void Tt(e);if(e.instance&&kt(e))return;Tt(e);const r=xt()?null:Dt(),o={...Et,background:St(),...r?{target:r,fullscreen:!1}:{fullscreen:!0}};e.instance=n.service(o),e.target=r}function Pt(t){for(const[e,n]of yt)e!==t&&Tt(n)}function It(t){const e="undefined"!=typeof window&&window.__MICRO_APP_NAME__||"host";let n=t;return n||(n=vt?.currentRoute?.value?vt.currentRoute.value.fullPath:"undefined"!=typeof window?window.location.pathname+window.location.search+window.location.hash:"/"),`${e}::${n}`}const Rt={getPageKey:It,bindRouter(t){t&&vt!==t&&(vt=t,Mt(),t.afterEach(()=>{o(()=>Rt.sync())}))},showLoading(t){const e=t||It(),n=function(t){let e=yt.get(t);return e||(e={count:0,instance:null,target:null},yt.set(t,e)),e}(e);return n.count+=1,Mt(),Pt(It()),Ct(e,n),()=>this.hideLoading(e)},hideLoading(t){const e=t||It(),n=yt.get(e);n&&(n.count=Math.max(0,n.count-1),0===n.count&&(Tt(n),yt.delete(e)))},sync(t){const e=t||It();Pt(e);const n=yt.get(e);n&&n.count>0&&Ct(e,n)}};function Ft(n){const{router:r,useUserStore:i,VITE_API_URL:u,VITE_WITH_CREDENTIALS:a}=n;Rt.bindRouter(r);const c=new Set;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","application/sql"].map(t=>t.toLowerCase()),f=new Map;function l(t){t&&setTimeout(()=>{const e=(f.get(t)||1)-1;e<=0?(f.delete(t),function(t){t&&c.has(t)&&(c.delete(t),o(()=>{Rt.hideLoading(t)}))}(t)):f.set(t,e)},0)}let d=!1,h=null;const p=t.create({timeout:6e5,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="start"){if("string"!=typeof t||!t.trim())return"string"==typeof t?t.trim():t;const n=t.trim();if(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(n))return n;const r="end"===e?"59":"00";return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(n)?`${n}:${r}`:/^\d{4}-\d{2}-\d{2} \d{2}$/.test(n)?`${n}:${r}:${r}`:/^\d{4}-\d{2}-\d{2}$/.test(n)?"end"===e?`${n} 23:59:59`:`${n} 00:00:00`:n}function m(t){if("string"==typeof t)return t.trim();if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>m(t));const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n.includes("DtRange")&&Array.isArray(r)&&2===r.length?e[n]={startDate:m(r[0]),endDate:m(r[1])}:n.includes("TmRange")&&Array.isArray(r)&&2===r.length?e[n]={startTime:g(r[0],"start"),endTime:g(r[1],"end")}:e[n]="startTime"===n?g(r,"start"):"endTime"===n?g(r,"end"):m(r)}return e}function y(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>y(t));const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n.includes("DtRange")&&"object"==typeof r&&null!==r&&"startDate"in r&&"endDate"in r?e[n]=[r.startDate,r.endDate]:n.includes("TmRange")&&"object"==typeof r&&null!==r&&"startTime"in r&&"endTime"in r?e[n]=[r.startTime,r.endTime]:e[n]=y(r)}return e}function v(t,e){return new x(t,e)}function w(t){const e=v(t||D.unauthorized,A.unauthorized);if(!d)throw d=!0,S(),h=setTimeout(b,3e3),M(e,!0),e;throw e}function b(){d=!1,h&&clearTimeout(h),h=null}p.interceptors.request.use(t=>{const{accessToken:e,info:n}=i();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",r.currentRoute.value.meta.permissionOnlyCode),t.headers.set("a-path-code",r.currentRoute.value.path));const o=It();t.__loadingPageKey=o;const u=f.get(o)||0;return t.hideLoading||0!==u||function(t){c.add(t),Rt.showLoading(t)}(o),f.set(o,u+1),t.params&&(t.params=m(t.params)),!t.data||pt(t.data)||t.headers["Content-Type"]||(t.data=m(t.data),t.headers.set("Content-Type","application/json"),t.data=JSON.stringify(t.data)),t},t=>(M(v(D.requestConfigError,A.error)),Promise.reject(t))),p.interceptors.response.use(async t=>{l(t.config?.__loadingPageKey),await async function(t){const e=t.data;if(!(e instanceof Blob))return;const n=String(t.headers["content-type"]||""),r=e.type||"";if(n.includes("application/json")||r.includes("application/json"))try{const n=await e.text();t.data=JSON.parse(n)}catch{throw v(D.requestFailed,A.error)}}(t);const e=t.data.type??t.headers["content-type"];if(e?.includes("application/json")){t.data&&(t.data=y(t.data));const{code:e,msg:n}=t.data;if([A.success,A.success1].includes(e))return t;throw[A.unauthorized,A.INVALID_TOKEN].includes(e)&&w(n),v(n||D.requestFailed,e)}if(s.includes(e?.toLowerCase()))return O(t,e),t},t=>(l(t.config?.__loadingPageKey),t.response?.status===A.unauthorized&&w(),Promise.reject(j(t))));const S=()=>{setTimeout(()=>{i().logOut()},500)};let E=null;async function N(t,n=0){try{return await async function(t){["POST","PUT","PATCH"].includes(t.method?.toUpperCase()||"")&&t.params&&!t.data&&(t.data=t.params,t.params=void 0);try{const n=await p.request(t);return t.showSuccessMessage&&n.data?.msg&&function(t,n=!0){n&&e.success(t)}(n.data?.msg||"操作成功"),t.responseAllData?n:n.data.data}catch(e){const n=[A.unauthorized,A.NEED_REFRESH_TOKEN].includes(e.code);if(e instanceof x&&!n){M(e,!1!==t.showErrorMessage)}return Promise.reject(e)}}(t)}catch(e){if(e instanceof x&&e.code===A.NEED_REFRESH_TOKEN&&!t.url?.includes("/iam/user/refreshToken")&&!t.__retriedAfterRefresh)return t.__retriedAfterRefresh=!0,await(E||(E=(async()=>{await i().refreshTokenFunc(),await T(1e3)})().finally(()=>{E=null})),E),N(t,n);if(n>0&&e instanceof x&&(r=e.code,[A.requestTimeout,A.internalServerError,A.badGateway,A.serviceUnavailable,A.gatewayTimeout].includes(r)))return await T(1e3),N(t,n-1);throw e}var r}function T(t){return new Promise(e=>setTimeout(e,t))}const k={get:t=>N({...t,method:"GET"}),post:t=>N({...t,method:"POST"}),put:t=>N({...t,method:"PUT"}),del:t=>N({...t,method:"DELETE"}),patch:t=>N({...t,method:"PATCH"}),request:t=>N(t)};return{...k,logOut:S,setBaseUrl:t=>{p.defaults.baseURL=t}}}function $t(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 _t="0,0.00";function Wt(t,e=_t){return t?u(t).format(e):"0.00"}function Ht(t,e=_t){return t?u(t).format(e):"0.00"}function Lt(t){return t?u(u(t).format(_t)).value():0}function Ut(t,e){if(R(t)||""===t)return"";let n=Number.parseFloat(t.toString());if(Number.isNaN(n))return"";n=Math.round(n*10**e)/10**e;let r=n.toString(),o=r.indexOf(".");for(o<0&&(o=r.length,r+=".");r.length<=o+e;)r+="0";return r}function zt(t,e=2){if(R(t)||0===t)return"0 Bytes";const n=Math.floor(Math.log(t)/Math.log(1e3));return`${Number.parseFloat((t/1e3**n).toFixed(e))} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}`}function Kt(t,e="period"){if(!t)return"";const n=(H(t)?t.toString():t).replace(/[-.]/g,""),r=n.slice(0,4),o=n.slice(4,6);return"period"===e?`${r}年${o}期`:` ${o}/${r}`}function qt(t,e="YYYY-MM-DD HH:mm:ss"){return R(t)?"--":r(t).isValid()?r(t).format(e):"--"}function Bt(t,e="YYYY-MM-DD",n=!1){return R(t)?"--":n?t?r(+t).format(e):"--":r(t).isValid()?r(t).format(e):"--"}function Yt(t){if("string"==typeof t)return t.trim();if("function"==typeof t){return(t.name||"").replace(/^bound\s+/i,"")}return""}function Zt(...t){return t.filter(t=>null!=t&&""!==t).join("-")}function Vt(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 Gt(t){return t?Vt(t):""}function Qt(t){if(!t)return!1;return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t)}var Xt={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};function te(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 ee=Object.prototype.toString;function ne(t){return function(e){return"[object "+t+"]"===ee.call(e)}}var re=Array.isArray||ne("Array");function oe(t,e){return!(!t||!t.hasOwnProperty)&&t.hasOwnProperty(e)}function ie(t,e,n){if(t)for(var r in t)oe(t,r)&&e.call(n,t[r],r,t)}function ue(t,e,n){return t?(re(t)?te:ie)(t,e,n):t}function ae(t){return function(e){return typeof e===t}}var ce=ae("function");function se(t,e){var n=Object[t];return function(t){var r=[];if(t){if(n)return n(t);ue(t,e>1?function(e){r.push([""+e,t[e]])}:function(){r.push(arguments[e])})}return r}}var fe=se("keys",1);function le(t,e){var n=t.__proto__.constructor;return e?new n(e):new n}function de(t,e){return e?he(t,e):t}function he(t,e){if(t)switch(ee.call(t)){case"[object Object]":var n=Object.create(Object.getPrototypeOf(t));return ie(t,function(t,r){n[r]=de(t,e)}),n;case"[object Date]":case"[object RegExp]":return le(t,t.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return te(t,function(t){r.push(de(t,e))}),r;case"[object Set]":var o=le(t);return o.forEach(function(t){o.add(de(t,e))}),o;case"[object Map]":var i=le(t);return i.forEach(function(t,n){i.set(n,de(t,e))}),i}return t}function pe(t,e){return t?he(t,e):t}var ge=Object.assign;function me(t,e,n){for(var r,o=e.length,i=1;i<o;i++)r=e[i],te(fe(e[i]),n?function(e){t[e]=pe(r[e],n)}:function(e){t[e]=r[e]});return t}var ye=function(t){if(t){var e=arguments;if(!0!==t)return ge?ge.apply(Object,e):me(t,e);if(e.length>1)return me(t=re(t[1])?[]:{},e,!0)}return t},ve=function(){};function we(t){return ye(Xt,t)}var be="4.0.0";function Se(t,e,n){for(var r=t.length-1;r>=0;r--)e.call(n,t[r],r,t)}function Ee(t,e,n){Se(fe(t),function(r){e.call(n,t[r],r,t)})}function Ne(t){return null===t}function Oe(t,e){return function(n){return Ne(n)?e:n[t]}}function Ae(t){return!!t&&t.constructor===Object}function De(t){return"__proto__"!==t&&"constructor"!==t}function xe(t,e){return Ae(t)&&Ae(e)||re(t)&&re(e)?(ue(e,function(n,r){De(r)&&(t[r]=ce(e)?n:xe(t[r],n))}),t):e}ve.VERSION=be,ve.version=be,ve.mixin=function(){te(arguments,function(t){ue(t,function(t,e){ve[e]=ce(t)?function(){var e=t.apply(ve.$context,arguments);return ve.$context=null,e}:t})})},ve.setup=we,ve.setConfig=we,ve.getConfig=function(){return Xt};function je(t,e,n){var r=[];if(t&&arguments.length>1){if(t.map)return t.map(e,n);ue(t,function(){r.push(e.apply(n,arguments))})}return r}function Me(t,e,n,r,o){return function(i,u,a){if(i&&u){if(t&&i[t])return i[t](u,a);if(e&&re(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(oe(i,f)&&!!u.call(a,i[f],f,i)===r)return[!0,!1,f,i[f]][n]}return o}}var Te=Me("some",1,0,!0,!1),ke=Me("every",1,1,!1,!0);function Ce(t,e){if(t){if(t.includes)return t.includes(e);for(var n in t)if(oe(t,n)&&e===t[n])return!0}return!1}function Pe(t,e){var n,r=0;if(re(t)&&re(e)){for(n=e.length;r<n;r++)if(!Ce(t,e[r]))return!1;return!0}return Ce(t,e)}function Ie(t,e,n){var r=[];if(e){ce(e)||(e=Oe(e));var o,i={};ue(t,function(u,a){o=e.call(n,u,a,t),i[o]||(i[o]=1,r.push(u))})}else ue(t,function(t){Ce(r,t)||r.push(t)});return r}function Re(t){return je(t,function(t){return t})}var Fe="undefined",$e=ae(Fe);function _e(t){return Ne(t)||$e(t)}var We=/(.+)?\[(\d+)\]$/;function He(t){return t?t.splice&&t.join?t:(""+t).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}function Le(t,e,n){if(_e(t))return n;var r=function(t,e){if(t){var n,r,o,i=0;if(t[e]||oe(t,e))return t[e];if(o=(r=He(e)).length)for(n=t;i<o;i++)if(_e(n=Ue(n,r[i])))return i===o-1?n:void 0;return n}}(t,e);return $e(r)?n:r}function Ue(t,e){var n=e?e.match(We):"";return n?n[1]?t[n[1]]?t[n[1]][n[2]]:void 0:t[n[2]]:t[e]}function ze(t,e){return $e(t)?1:Ne(t)?$e(e)?-1:1:t&&t.localeCompare?t.localeCompare(e):t>e?1:-1}function Ke(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?ze(u,i):ze(i,u)}}function qe(t,e,n){if(t){if(_e(e))return Re(t).sort(ze);for(var r,o=je(t,function(t){return{data:t}}),i=function(t,e,n,r){var o=[];return te(n=re(n)?n:[n],function(n,i){if(n){var u,a=n;re(n)?(a=n[0],u=n[1]):Ae(n)&&(a=n.field,u=n.order),o.push({field:a,order:u||"asc"}),te(e,ce(a)?function(e,n){e[i]=a.call(r,e.data,n,t)}:function(t){t[i]=a?Le(t.data,a):t.data})}}),o}(t,o,e,n),u=i.length-1;u>=0;)r=Ke(u,i[u],r),u--;return r&&(o=o.sort(r)),je(o,Oe("data"))}return[]}var Be=qe;function Ye(t,e){return t>=e?t:(t|=0)+Math.round(Math.random()*((e||9)-t))}var Ze=se("values",0);function Ve(t){for(var e,n=[],r=Ze(t),o=r.length-1;o>=0;o--)e=o>0?Ye(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 Ge=Je(parseFloat);function Qe(t,e,n){var r=[],o=arguments.length;if(t){if(e=o>=2?Ge(e):0,n=o>=3?Ge(n):t.length,t.slice)return t.slice(e,n);for(;e<n;e++)r.push(t[e])}return r}var Xe=Me("",0,2,!0),tn=Me("find",1,3,!0);function en(t,e){return je(t,Oe(e))}function nn(t){return function(e,n){var r,o;return e&&e.length?(te(e,function(i,u){n&&(i=ce(n)?n(i,u,e):Le(i,n)),_e(i)||!_e(r)&&!t(r,i)||(o=u,r=i)}),e[o]):r}}var rn=nn(function(t,e){return t<e});function on(t){var e,n,r,o=[];if(t&&t.length)for(e=0,r=(n=rn(t,function(t){return t?t.length:0}))?n.length:0;e<r;e++)o.push(en(t,e));return o}function un(t,e){var n=[];return te(t,function(t){n=n.concat(re(t)?e?un(t,e):t:[t])}),n}function an(t,e){return(console[t]||console.log)(e)}function cn(t,e){try{delete t[e]}catch(n){t[e]=void 0}}function sn(t,e,n){return t?(re(t)?Se:Ee)(t,e,n):t}var fn=ae("object");function ln(t,e,n){if(t){var r,o=arguments.length>1&&(Ne(e)||!fn(e)),i=o?n:e;if(Ae(t))ie(t,o?function(n,r){t[r]=e}:function(e,n){cn(t,n)}),i&&ye(t,i);else if(re(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 dn(t,e,n){if(t){if(!_e(e)){var r=[],o=[];return ce(e)||(i=e,e=function(t,e){return e===i}),ue(t,function(t,o,i){e.call(n,t,o,i)&&r.push(o)}),re(t)?sn(r,function(e,n){o.push(t[e]),t.splice(e,1)}):(o={},te(r,function(e){o[e]=t[e],cn(t,e)})),o}return ln(t)}var i;return t}function hn(t,e,n,r){var o=r.key,i=r.parentKey,u=r.children,a=r.data,c=r.updated,s=r.clear;return te(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&&hn(t,n,f,r),s&&delete n[u]}),t}function pn(t){return function(e,n,r,o){var i=r||{},u=i.children||"children";return t(null,e,n,o,[],[],u,i)}}var gn=pn(function t(e,n,r,o,i,u,a,c){var s,f,l,d,h,p;if(n)for(f=0,l=n.length;f<l;f++){if(s=n[f],d=i.concat([""+f]),h=u.concat([s]),r.call(o,s,f,n,d,e,h))return{index:f,item:s,path:d,items:n,parent:e,nodes:h};if(a&&s&&(p=t(s,s[a],r,o,d.concat([a]),h,a)))return p}});var mn=pn(function t(e,n,r,o,i,u,a,c){var s,f;ue(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 yn=pn(function t(e,n,r,o,i,u,a,c){var s,f,l,d=c.mapChildren||a;return je(n,function(h,p){return s=i.concat([""+p]),f=u.concat([h]),(l=r.call(o,h,p,n,s,e,f))&&h&&a&&h[a]&&(l[d]=t(h,h[a],r,o,s,f,a,c)),l})});function vn(t,e,n,r,o,i,u,a,c){var s,f,l,d,h,p=[],g=c.original,m=c.data,y=c.mapChildren||a,v=c.isEvery;return te(n,function(w,b){s=i.concat([""+b]),f=u.concat([w]),d=t&&!v||r.call(o,w,b,n,s,e,f),h=a&&w[a],d||h?(g?l=w:(l=ye({},w),m&&(l[m]=w)),l[y]=vn(d,w,w[a],r,o,s,f,a,c),(d||l[y].length)&&p.push(l)):d&&p.push(l)}),p}var wn=pn(function(t,e,n,r,o,i,u,a){return vn(0,t,e,n,r,o,i,u,a)});function bn(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 Sn(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 En=ae("number");var Nn=ae("string"),On=ne("Date"),An=parseInt;function Dn(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 jn(t){return"(\\d{"+t+"})"}function Mn(t){return isNaN(t)?t:An(t)}for(var Tn=jn(2),kn=jn("1,2"),Cn=jn("1,7"),Pn=jn("3,4"),In=".{1}",Rn=In+kn,Fn="(([zZ])|([-+]\\d{2}:?\\d{2}))",$n=[Pn,Rn,Rn,Rn,Rn,Rn,In+Cn,Fn],_n=[],Wn=$n.length-1;Wn>=0;Wn--){for(var Hn="",Ln=0;Ln<Wn+1;Ln++)Hn+=$n[Ln];_n.push(new RegExp("^"+Hn+"$"))}var Un=[["yyyy",Pn],["yy",Tn],["MM",Tn],["M",kn],["dd",Tn],["d",kn],["HH",Tn],["H",kn],["mm",Tn],["m",kn],["ss",Tn],["s",kn],["SSS",jn(3)],["S",Cn],["Z",Fn]],zn={},Kn=["\\[([^\\]]+)\\]"];for(Ln=0;Ln<Un.length;Ln++){var qn=Un[Ln];zn[qn[0]]=qn[1]+"?",Kn.push(qn[0])}var Bn=new RegExp(Kn.join("|"),"g"),Yn={};function Zn(t,e){if(t){var n=On(t);if(n||!e&&/^[0-9]{11,15}$/.test(t))return new Date(n?xn(t):An(t));if(Nn(t)){var r=e?function(t,e){var n=Yn[e];if(!n){var r=[],o=e.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(Bn,function(t,e){var n=t.charAt(0);return"["===n?e:(r.push(n),zn[t])});n=Yn[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=_n.length;r<o;r++)if(e=t.match(_n[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=Mn(r.M)-1),r.S&&(r.S=(o=Mn(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(Dn(t));var e=t.Z.match(/([-+])(\d{2}):?(\d{2})/);return e?new Date(Dn(t)-("-"===e[1]?-1:1)*An(e[2])*36e5+6e4*An(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 Vn(){return new Date}function Jn(t){var e,n=t?Zn(t):Vn();return!!On(n)&&((e=n.getFullYear())%4==0&&(e%100!=0||e%400==0))}function Gn(t,e){return function(n,r){if(n){if(n[t])return n[t](r);if(Nn(n)||re(n))return e(n,r);for(var o in n)if(oe(n,o)&&r===n[o])return o}return-1}}var Qn=Gn("indexOf",bn),Xn=Gn("lastIndexOf",Sn);function tr(t){var e=0;return Nn(t)||re(t)?t.length:(ue(t,function(){e++}),e)}var er=function(t){return!Ne(t)&&!isNaN(t)&&!re(t)&&t%1==0};var nr=ae("boolean"),rr=ne("RegExp"),or=ne("Error");function ir(t){for(var e in t)return!1;return!0}var ur=typeof Symbol!==Fe;function ar(t){return ur&&Symbol.isSymbol?Symbol.isSymbol(t):"symbol"==typeof t}var cr=ne("Arguments");var sr=typeof document===Fe?0:document;var fr=typeof window===Fe?0:window;var lr=typeof FormData!==Fe;var dr=typeof Map!==Fe;var hr=typeof WeakMap!==Fe;var pr=typeof Set!==Fe;var gr=typeof WeakSet!==Fe;function mr(t){return function(e,n,r){if(e&&ce(n)){if(re(e)||Nn(e))return t(e,n,r);for(var o in e)if(oe(e,o)&&n.call(r,e[o],o,e))return o}return-1}}var yr=mr(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 vr(t,e,n,r,o,i,u){if(t===e)return!0;if(t&&e&&!En(t)&&!En(e)&&!Nn(t)&&!Nn(e)){if(rr(t))return n(""+t,""+e,o,i,u);if(On(t)||nr(t))return n(+t,+e,o,i,u);var a,c,s,f=re(t),l=re(e);if(f||l?f&&l:t.constructor===e.constructor)return c=fe(t),s=fe(e),r&&(a=r(t,e,o)),c.length===s.length&&($e(a)?ke(c,function(o,i){return o===s[i]&&vr(t[o],e[s[i]],n,r,f||l?i:o,t,e)}):!!a)}return n(t,e,o,i,u)}function wr(t,e){return t===e}function br(t,e){return vr(t,e,wr)}var Sr=mr(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 Er=se("entries",2);function Nr(t,e){return function(n,r){var o,i,u={},a=[],c=this,s=arguments,f=s.length;if(!ce(r)){for(i=1;i<f;i++)o=s[i],a.push.apply(a,re(o)?o:[o]);r=0}return ue(n,function(o,i){((r?r.call(c,o,i,n):yr(a,function(t){return t===i})>-1)?t:e)&&(u[i]=o)}),u}}var Or=Nr(1,0),Ar=Nr(0,1);var Dr=/(.+)?\[(\d+)\]$/;function xr(t,e,n,r,o){if(!t[e]){var i,u,a=e?e.match(Dr):null;if(n)u=o;else{var c=r?r.match(Dr):null;u=c&&!c[1]?new Array(An(c[2])+1):{}}return a?a[1]?(i=An(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 jr(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function Mr(t,e,n){var r,o={};return t&&(e&&fn(e)?e=function(t){return function(){return ir(t)}}(e):ce(e)||(e=Oe(e)),ue(t,function(i,u){r=e?e.call(n,i,u,t):i,o[r]?o[r].push(i):o[r]=[i]})),o}function Tr(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 kr=nn(function(t,e){return t>e});function Cr(t){return(t.split(".")[1]||"").length}function Pr(t,e){if(t.repeat)return t.repeat(e);var n=isNaN(e)?[]:new Array(An(e));return n.join(t)+(n.length>0?t:"")}function Ir(t,e){return t.substring(0,e)+"."+t.substring(e,t.length)}function Rr(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+Pr("0",c):s>0?r+i+u+Pr("0",s):r+i+Ir(u,c):o?f>0?r+"0."+Pr("0",Math.abs(f))+o:r+Ir(o,f):l>0?r+"0."+Pr("0",Math.abs(l))+i+u:r+Ir(i,l)+u}return e}function Fr(t,e){var n=Rr(t),r=Rr(e);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,Cr(n)+Cr(r))}function $r(t){return function(e,n){var r=Ge(e),o=r;if(r){n|=0;var i=Rr(r).split("."),u=i[0],a=i[1]||"",c=a.substring(0,n+1),s=u+(c?"."+c:"");if(n>=a.length)return Ge(s);if(s=r,n>0){var f=Math.pow(10,n);o=Math[t](Fr(s,f))/f}else o=Math[t](s)}return o}}var _r=$r("round"),Wr=$r("ceil"),Hr=$r("floor");function Lr(t){return En(t)?Rr(t):""+(_e(t)?"":t)}function Ur(t,e){var n=Lr(_r(t,e|=0)).split("."),r=n[0],o=n[1]||"",i=e-o.length;return e?i>0?r+"."+o+Pr("0",i):r+Ir(o,Math.abs(i)):r}var zr=Je(An);function Kr(t,e){return Fr(Ge(t),Ge(e))}function qr(t,e){var n=Rr(t),r=Rr(e),o=Math.pow(10,Math.max(Cr(n),Cr(r)));return(Kr(t,o)+Kr(e,o))/o}function Br(t,e){var n=Rr(t),r=Rr(e),o=Cr(n),i=Cr(r)-o,u=i<0,a=Math.pow(10,u?Math.abs(i):i);return Kr(n.replace(".","")/r.replace(".",""),u?1/a:a)}function Yr(t,e,n){var r=0;return ue(t&&t.length>2&&re(t)?t.sort():t,e?ce(e)?function(){r=qr(r,e.apply(n,arguments))}:function(t){r=qr(r,Le(t,e))}:function(t){r=qr(r,t)}),r}var Zr="first",Vr="last";function Jr(t){return t.getFullYear()}var Gr=864e5;function Qr(t){return t.getMonth()}function Xr(t){return On(t)&&!isNaN(xn(t))}function to(t,e,n){var r=e&&!isNaN(e)?e:0;if(Xr(t=Zn(t))){if(n===Zr)return new Date(Jr(t),Qr(t)+r,1);if(n===Vr)return new Date(xn(to(t,r+1,Zr))-1);if(En(n)&&t.setDate(n),r){var o=t.getDate();if(t.setMonth(Qr(t)+r),o!==t.getDate())return t.setDate(1),new Date(xn(t)-Gr)}}return t}function eo(t,e,n){var r;if(Xr(t=Zn(t))&&(e&&(r=e&&!isNaN(e)?e:0,t.setFullYear(Jr(t)+r)),n||!isNaN(n))){if(n===Zr)return new Date(Jr(t),0,1);if(n===Vr)return t.setMonth(11),to(t,0,Vr);t.setMonth(n)}return t}var no=6048e5;function ro(t,e,n,r){if(Xr(t=Zn(t))){var o=En(n),i=En(r),u=xn(t);if(o||i){var a=i?r:Xt.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)*Gr:s<a?(7-a+s+f)*Gr:f*Gr}}return e&&!isNaN(e)&&(u+=e*no),new Date(u)}return t}function oo(t,e,n){if(Xr(t=Zn(t))&&!isNaN(e)){if(t.setDate(t.getDate()+An(e)),n===Zr)return new Date(Jr(t),Qr(t),t.getDate());if(n===Vr)return new Date(xn(oo(t,1,Zr))-1)}return t}function io(t){return t.toUpperCase()}var uo=je(Tr(0,7),function(t){return[(t+1)%7,(t+2)%7,(t+3)%7]});function ao(t,e){var n=new Date(t).getDay();return Ce(uo[e],n)}function co(t,e){return function(n,r){var o=En(r)?r:Xt.firstDayOfWeek,i=Zn(n);if(Xr(i)){var u,a=ro(i,0,o,o),c=t(a),s=xn(c),f=xn(a),l=f+5184e5,d=new Date(l),h=ro(c,0,o,o),p=xn(h);if(f===p)return 1;if(e(a,d))for(u=xn(t(d));u<l;u+=Gr)if(ao(u,o))return 1;var g=p+5184e5,m=new Date(l),y=1;if(e(h,m))for(y=0,u=s;u<g;u+=Gr)if(ao(u,o)){y++;break}return Math.floor((f-p)/no)+y}return NaN}}var so=co(function(t){return new Date(t.getFullYear(),0,1)},function(t,e){return t.getFullYear()!==e.getFullYear()});function fo(t){return xn(function(t){return new Date(Jr(t),Qr(t),t.getDate())}(t))}function lo(t){return Xr(t=Zn(t))?Math.floor((fo(t)-fo(eo(t,0,Zr)))/Gr)+1:NaN}function ho(t,e,n){var r=Lr(t);return e|=0,n=$e(n)?" ":""+n,r.padStart?r.padStart(e,n):e>r.length?((e-=r.length)>n.length&&(n+=Pr(n,e/n.length)),n.slice(0,e)+r):r}function po(t,e,n,r){var o=e[n];return o?ce(o)?o(r,n,t):o[r]:r}var go=/\[([^\]]+)]|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 mo(t,e,n){if(t){if(Xr(t=Zn(t))){var r=n||{},o=e||Xt.parseDateFormat||Xt.formatString,i=t.getHours(),u=i<12?"am":"pm",a=ye({},Xt.parseDateRules||Xt.formatStringMatchs,r.formats),c=function(e,n){return(""+Jr(t)).substring(4-n)},s=function(e,n){return ho(Qr(t)+1,n,"0")},f=function(e,n){return ho(t.getDate(),n,"0")},l=function(t,e){return ho(i,e,"0")},d=function(t,e){return ho(i<=12?i:i-12,e,"0")},h=function(e,n){return ho(t.getMinutes(),n,"0")},p=function(e,n){return ho(t.getSeconds(),n,"0")},g=function(e,n){return ho(t.getMilliseconds(),n,"0")},m=function(e,n){var r=t.getTimezoneOffset()/60*-1;return po(t,a,e,(r>=0?"+":"-")+ho(r,2,"0")+(1===n?":":"")+"00")},y=function(e,n){return ho(po(t,a,e,so(t,_e(r.firstDay)?Xt.firstDayOfWeek:r.firstDay)),n,"0")},v=function(e,n){return ho(po(t,a,e,lo(t)),n,"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:y,W:y,DDD:v,D:v,a:function(e){return po(t,a,e,u)},A:function(e){return po(t,a,e,io(u))},e:function(e){return po(t,a,e,t.getDay())},E:function(e){return po(t,a,e,t.getDay())},q:function(e){return po(t,a,e,Math.floor((Qr(t)+3)/3))}};return o.replace(go,function(t,e){return e||(w[t]?w[t](t,t.length):t)})}return"Invalid Date"}return""}var yo=Date.now||function(){return xn(Vn())};var vo=co(function(t){return new Date(t.getFullYear(),t.getMonth(),1)},function(t,e){return t.getMonth()!==e.getMonth()});var wo=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function bo(t){return t&&t.trimRight?t.trimRight():Lr(t).replace(/[\s\uFEFF\xA0]+$/g,"")}function So(t){return t&&t.trimLeft?t.trimLeft():Lr(t).replace(/^[\s\uFEFF\xA0]+/g,"")}function Eo(t){return t&&t.trim?t.trim():bo(So(t))}var No={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};function Oo(t){var e=new RegExp("(?:"+fe(t).join("|")+")","g");return function(n){return Lr(n).replace(e,function(e){return t[e]})}}var Ao=Oo(No),Do={};ue(No,function(t,e){Do[No[e]]=e});var xo=Oo(Do);function jo(t,e,n){return t.substring(e,n)}function Mo(t){return t.toLowerCase()}var To={};var ko={};function Co(t,e,n){return Lr(t).replace((n||Xt).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(t,n){return Le(e,Eo(n))})}var Po=decodeURIComponent;function Io(t){var e,n={};return t&&Nn(t)&&te(t.split("&"),function(t){e=t.split("="),n[Po(e[0])]=Po(e[1]||"")}),n}var Ro=encodeURIComponent;function Fo(t,e,n){var r,o=[];return ue(t,function(t,i){r=re(t),Ae(t)||r?o=o.concat(Fo(t,e+"["+i+"]",r)):o.push(Ro(e+"["+(n?"":i)+"]")+"="+Ro(Ne(t)?"":t))}),o}var $o=typeof location===Fe?0:location;function _o(){return $o?$o.origin||$o.protocol+"//"+$o.host:""}function Wo(t){return Io(t.split("?")[1]||"")}function Ho(t){var e,n,r,o,i=""+t;return 0===i.indexOf("//")?i=($o?$o.protocol:"")+i:0===i.indexOf("/")&&(i=_o()+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=Wo(o.hash),o.searchQuery=Wo(o.search),o}function Lo(t,e){var n=parseFloat(e),r=Vn(),o=xn(r);switch(t){case"y":return xn(eo(r,n));case"M":return xn(to(r,n));case"d":return xn(oo(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 Uo(t){return(On(t)?t:new Date(t)).toUTCString()}function zo(t,e,n){if(sr){var r,o,i,u,a,c,s=[],f=arguments;return re(t)?s=t:f.length>1?s=[ye({name:t,value:e},n)]:fn(t)&&(s=[t]),s.length>0?(te(s,function(t){r=ye({},Xt.cookies,t),i=[],r.name&&(o=r.expires,i.push(Ro(r.name)+"="+Ro(fn(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 Uo(Lo(n,e))}):/^[0-9]{11,13}$/.test(o)||On(o)?Uo(o):Uo(Lo("d",o)),r.expires=o),te(["expires","path","domain","secure"],function(t){$e(r[t])||i.push(r[t]&&"secure"===t?t:t+"="+r[t])})),sr.cookie=i.join("; ")}),!0):(u={},(a=sr.cookie)&&te(a.split("; "),function(t){c=t.indexOf("="),u[Po(t.substring(0,c))]=Po(t.substring(c+1)||"")}),1===f.length?u[t]:u)}return!1}function Ko(t){return zo(t)}function qo(t,e,n){return zo(t,e,n),zo}function Bo(t,e){zo(t,"",ye({expires:-1},Xt.cookies,e))}function Yo(){return fe(zo())}function Zo(t){try{var e="__xe_t";return t.setItem(e,1),t.removeItem(e),!0}catch(t){return!1}}function Vo(t){return navigator.userAgent.indexOf(t)>-1}ye(zo,{has:function(t){return Ce(Yo(),t)},set:qo,setItem:qo,get:Ko,getItem:Ko,remove:Bo,removeItem:Bo,keys:Yo,getJSON:function(){return zo()}}),ye(ve,{assign:ye,objectEach:ie,lastObjectEach:Ee,objectMap:function(t,e,n){var r={};if(t){if(!e)return t;ce(e)||(e=Oe(e)),ue(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])&&xe(t,e);return t},uniq:Ie,union:function(){for(var t=arguments,e=[],n=0,r=t.length;n<r;n++)e=e.concat(Re(t[n]));return Ie(e)},sortBy:Be,orderBy:qe,shuffle:Ve,sample:function(t,e){var n=Ve(t);return arguments.length<=1?n[0]:(e<n.length&&(n.length=e||0),n)},some:Te,every:ke,slice:Qe,filter:function(t,e,n){var r=[];if(t&&e){if(t.filter)return t.filter(e,n);ue(t,function(o,i){e.call(n,o,i,t)&&r.push(o)})}return r},find:tn,findLast:function(t,e,n){if(t){re(t)||(t=Ze(t));for(var r=t.length-1;r>=0;r--)if(e.call(n,t[r],r,t))return t[r]}},findKey:Xe,includes:Ce,arrayIndexOf:bn,arrayLastIndexOf:Sn,map:je,reduce:function(t,e,n){if(t){var r,o,i=0,u=n,a=arguments.length>2,c=fe(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(re(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(re(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 on(arguments)},unzip:on,zipObject:function(t,e){var n={};return e=e||[],ue(Ze(t),function(t,r){n[t]=e[r]}),n},flatten:function(t,e){return re(t)?un(t,e):[]},toArray:Re,includeArrays:Pe,pluck:en,invoke:function(t,e){for(var n,r=arguments,o=[],i=[],u=2,a=r.length;u<a;u++)o.push(r[u]);if(re(e)){for(a=e.length-1,u=0;u<a;u++)i.push(e[u]);e=e[a]}return je(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:te,lastArrayEach:Se,toArrayTree:function(t,e){var n,r,o,i=ye({},Xt.treeOptions,e),u=i.strict,a=i.key,c=i.parentKey,s=i.children,f=i.mapChildren,l=i.sortKey,d=i.reverse,h=i.data,p=[],g={},m={};return l&&(t=qe(pe(t),l),d&&(t=t.reverse())),ue(t,function(t){n=t[a],m[n]&&an("warn","Duplicate primary key="+n),m[n]=!0}),ue(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,an("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&&_e(o))&&(m[o]||p.push(r))}),u&&function(t,e){ue(t,function(t){t[e]&&!t[e].length&&dn(t,e)})}(t,s),p},toTreeArray:function(t,e){return hn([],null,t,ye({},Xt.treeOptions,e))},findTree:gn,eachTree:mn,mapTree:yn,filterTree:function(t,e,n,r){var o=[];return t&&e&&mn(t,function(t,n,i,u,a,c){e.call(r,t,n,i,u,a,c)&&o.push(t)},n),o},searchTree:wn,hasOwnProp:oe,eqNull:_e,isNaN:function(t){return En(t)&&isNaN(t)},isFinite:function(t){return En(t)&&isFinite(t)},isUndefined:$e,isArray:re,isFloat:function(t){return!(Ne(t)||isNaN(t)||re(t)||er(t))},isInteger:er,isFunction:ce,isBoolean:nr,isString:Nn,isNumber:En,isRegExp:rr,isObject:fn,isPlainObject:Ae,isDate:On,isError:or,isTypeError:function(t){return!!t&&t.constructor===TypeError},isEmpty:ir,isNull:Ne,isSymbol:ar,isArguments:cr,isElement:function(t){return!!(t&&Nn(t.nodeName)&&En(t.nodeType))},isDocument:function(t){return!(!t||!sr||9!==t.nodeType)},isWindow:function(t){return!(!fr||!t||t!==t.window)},isFormData:function(t){return lr&&t instanceof FormData},isMap:function(t){return dr&&t instanceof Map},isWeakMap:function(t){return hr&&t instanceof WeakMap},isSet:function(t){return pr&&t instanceof Set},isWeakSet:function(t){return gr&&t instanceof WeakSet},isLeapYear:Jn,isMatch:function(t,e){var n=fe(t),r=fe(e);return!r.length||(Pe(n,r)?Te(r,function(r){return yr(n,function(n){return n===r&&br(t[n],e[r])})>-1}):br(t,e))},isEqual:br,isEqualWith:function(t,e,n){return ce(n)?vr(t,e,function(t,e,r,o,i){var u=n(t,e,r,o,i);return $e(u)?wr(t,e):!!u},n):vr(t,e,wr)},getType:function(t){return Ne(t)?"null":ar(t)?"symbol":On(t)?"date":re(t)?"array":rr(t)?"regexp":or(t)?"error":typeof t},uniqueId:function(t){return""+(_e(t)?"":t)+Xt.keyId++},getSize:tr,indexOf:Qn,lastIndexOf:Xn,findIndexOf:yr,findLastIndexOf:Sr,toStringJSON:function(t){if(Ae(t))return t;if(Nn(t))try{return JSON.parse(t)}catch(t){}return{}},toJSONString:function(t){return _e(t)?"":JSON.stringify(t)},keys:fe,values:Ze,entries:Er,pick:Or,omit:Ar,first:function(t){return Ze(t)[0]},last:function(t){var e=Ze(t);return e[e.length-1]},each:ue,forOf:function(t,e,n){if(t)if(re(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(oe(t,i)&&!1===e.call(n,t[i],i,t))break},lastForOf:function(t,e,n){var r,o;if(t)if(re(t))for(r=t.length-1;r>=0&&!1!==e.call(n,t[r],r,t);r--);else for(r=(o=oe(t)).length-1;r>=0&&!1!==e.call(n,t[o[r]],o[r],t);r--);},lastEach:sn,has:function(t,e){if(t){if(oe(t,e))return!0;var n,r,o,i,u,a,c=He(e),s=0,f=c.length;for(u=t;s<f&&(a=!1,(i=(n=c[s])?n.match(We):"")?(r=i[1],o=i[2],r?u[r]&&oe(u[r],o)&&(a=!0,u=u[r][o]):oe(u,o)&&(a=!0,u=u[o])):oe(u,n)&&(a=!0,u=u[n]),a);s++)if(s===f-1)return!0}return!1},get:Le,set:function(t,e,n){if(t&&De(e))if(!t[e]&&!oe(t,e)||jr(e)){for(var r=t,o=He(e),i=o.length,u=0;u<i;u++)if(!jr(o[u])){var a=u===i-1;r=xr(r,o[u],a,a?null:o[u+1],n)}}else t[e]=n;return t},groupBy:Mr,countBy:function(t,e,n){var r=Mr(t,e,n||this);return ie(r,function(t,e){r[e]=t.length}),r},clone:pe,clear:ln,remove:dn,range:Tr,destructuring:function(t,e){if(t&&e){var n=ye.apply(this,[{}].concat(Qe(arguments,1))),r=fe(n);te(fe(t),function(e){Ce(r,e)&&(t[e]=n[e])})}return t},random:Ye,min:kr,max:rn,commafy:function(t,e){var n,r,o,i,u,a=ye({},Xt.commafyOptions,e),c=a.digits;return En(t)?(n=(a.ceil?Wr:a.floor?Hr:_r)(t,c),i=(r=Rr(c?Ur(n,c):n).split("."))[0],u=r[1],(o=i&&n<0)&&(i=i.substring(1,i.length))):i=(r=(n=Lr(t).replace(/,/g,""))?[n]:[])[0],r.length?(o?"-":"")+i.replace(new RegExp("(?=(?!(\\b))(.{"+(a.spaceNumber||3)+"})+$)","g"),a.separator||",")+(u?"."+u:""):n},round:_r,ceil:Wr,floor:Hr,toFixed:Ur,toNumber:Ge,toNumberString:Rr,toInteger:zr,add:function(t,e){return qr(Ge(t),Ge(e))},subtract:function(t,e){var n=Ge(t),r=Ge(e),o=Rr(n),i=Rr(r),u=Cr(o),a=Cr(i),c=Math.pow(10,Math.max(u,a));return parseFloat(Ur((n*c-r*c)/c,u>=a?u:a))},multiply:Kr,divide:function(t,e){return Br(Ge(t),Ge(e))},sum:Yr,mean:function(t,e,n){return Br(Yr(t,e,n),tr(t))},now:yo,timestamp:function(t,e){if(t){var n=Zn(t,e);return On(n)?xn(n):n}return yo()},isValidDate:Xr,isDateSame:function(t,e,n){return!(!t||!e)&&("Invalid Date"!==(t=mo(t,n))&&t===mo(e,n))},toStringDate:Zn,toDateString:mo,getWhatYear:eo,getWhatQuarter:function(t,e,n){var r,o=e&&!isNaN(e)?3*e:0;return Xr(t=Zn(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),to(t,o,n)):t},getWhatMonth:to,getWhatWeek:ro,getWhatDay:oo,getWhatHours:function t(e,n,r){if(Xr(e=Zn(e))&&!isNaN(n)){if(e.setHours(e.getHours()+An(n)),r===Zr)return new Date(Jr(e),Qr(e),e.getDate(),e.getHours());if(r===Vr)return new Date(xn(t(e,1,Zr))-1)}return e},getWhatMinutes:function t(e,n,r){if(Xr(e=Zn(e))&&!isNaN(n)){if(e.setMinutes(e.getMinutes()+An(n)),r===Zr)return new Date(Jr(e),Qr(e),e.getDate(),e.getHours(),e.getMinutes());if(r===Vr)return new Date(xn(t(e,1,Zr))-1)}return e},getWhatSeconds:function t(e,n,r){if(Xr(e=Zn(e))&&!isNaN(n)){if(e.setSeconds(e.getSeconds()+An(n)),r===Zr)return new Date(Jr(e),Qr(e),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());if(r===Vr)return new Date(xn(t(e,1,Zr))-1)}return e},getYearDay:lo,getYearWeek:so,getMonthWeek:vo,getDayOfYear:function(t,e){return Xr(t=Zn(t))?Jn(eo(t,e))?366:365:NaN},getDayOfMonth:function(t,e){return Xr(t=Zn(t))?Math.floor((xn(to(t,e,Vr))-xn(to(t,e,Zr)))/Gr)+1:NaN},getDateDiff:function(t,e){var n,r,o,i,u,a,c={done:!1,status:!1,time:0};if(t=Zn(t),e=e?Zn(e):Vn(),Xr(t)&&Xr(e)&&(n=xn(t))<(r=xn(e)))for(i=c.time=r-n,c.done=!0,c.status=!0,a=0,u=wo.length;a<u;a++)i>=(o=wo[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:Eo,trimLeft:So,trimRight:bo,escape:Ao,unescape:xo,camelCase:function(t){if(t=Lr(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=Mo(n),r?o>2&&r+o<e?io(jo(n,0,1))+jo(n,1,o-1)+io(jo(n,o-1,o)):io(jo(n,0,1))+jo(n,1,o):o>1&&r+o<e?jo(n,0,o-1)+io(jo(n,o-1,o)):n}).replace(/(-[a-zA-Z])/g,function(t,e){return io(jo(e,1,e.length))}),To[t]=n,n},kebabCase:function(t){if(t=Lr(t),ko[t])return ko[t];if(/^[A-Z]+$/.test(t))return Mo(t);var e=t.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(t,e,n,r){var o=n.length;return o>1?e+"-"+Mo(jo(n,0,o-1))+"-"+Mo(jo(n,o-1,o))+r:Mo(e+"-"+n+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(t,e,n){var r=e.length;return Mo(jo(e,0,r-1)+"-"+jo(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||"")+Mo(jo(n,0,i-1))+"-"+Mo(jo(n,i-1,i))+r:(e||"")+(o?"-":"")+Mo(n)+(r||"")});return e=e.replace(/([-]+)/g,function(t,n,r){return r&&r+n.length<e.length?"-":""}),ko[t]=e,e},repeat:function(t,e){return Pr(Lr(t),e)},padStart:ho,padEnd:function(t,e,n){var r=Lr(t);return e|=0,n=$e(n)?" ":""+n,r.padEnd?r.padEnd(e,n):e>r.length?((e-=r.length)>n.length&&(n+=Pr(n,e/n.length)),r+n.slice(0,e)):r},startsWith:function(t,e,n){var r=Lr(t);return 0===(1===arguments.length?r:r.substring(n)).indexOf(e)},endsWith:function(t,e,n){var r=Lr(t),o=arguments.length;return o>1&&(o>2?r.substring(0,n).indexOf(e)===n-1:r.indexOf(e)===r.length-1)},template:Co,toFormatString:function(t,e){return Co(t,e,{tmplRE:/\{([.\w[\]\s]+)\}/g})},toString:Lr,toValueString:Lr,noop:function(){},property:Oe,bind:function(t,e){var n=Qe(arguments,2);return function(){return t.apply(e,Qe(arguments).concat(n))}},once:function(t,e){var n=!1,r=null,o=Qe(arguments,2);return function(){return n||(r=t.apply(e,Qe(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(Qe(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(Qe(i))))}},throttle:function(t,e,n){var r=null,o=null,i=!1,u=null,a=ye({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(d,e),f()},d=function(){u=null,i||!0!==s?f():l()},h=function(){r=arguments,o=this,i=!1,null!==u||!0!==c?!0===s&&(u=setTimeout(d,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}:ye({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()},d=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(d,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=Qe(arguments,2),r=this;return setTimeout(function(){t.apply(r,n)},e)},unserialize:Io,serialize:function(t){var e,n=[];return ue(t,function(t,r){$e(t)||(e=re(t),Ae(t)||e?n=n.concat(Fo(t,r,e)):n.push(Ro(r)+"="+Ro(Ne(t)?"":t)))}),n.join("&").replace(/%20/g,"+")},parseUrl:Ho,getBaseURL:function(){if($o){var t=$o.pathname,e=Xn(t,"/")+1;return _o()+(e===t.length?t:t.substring(0,e))}return""},locat:function(){return $o?Ho($o.href):{}},browse:function(){var t,e,n,r=!1,o=!1,i=!1,u={isNode:!1,isMobile:r,isPC:!1,isDoc:!!sr};if(fr||typeof process===Fe){n=Vo("Edge"),e=Vo("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),u.isDoc&&(t=sr.body||sr.documentElement,te(["webkit","khtml","moz","ms","o"],function(e){u["-"+e]=!!t[e+"MatchesSelector"]}));try{o=Zo(fr.localStorage)}catch(t){}try{i=Zo(fr.sessionStorage)}catch(t){}ye(u,{edge:n,firefox:Vo("Firefox"),msie:!n&&u["-ms"],safari:!e&&!n&&Vo("Safari"),isMobile:r,isPC:!r,isLocalStorage:o,isSessionStorage:i})}else u.isNode=!0;return u},cookie:zo});let Jo=!1;const Go="Asia/Shanghai";function Qo(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 Xo(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 ti(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&&F(u)?ei(n,e,u,i,t):u&&B(u)?ni(n,e,u,i,t):ri(n,e,u,i,t)),t),[]))}function ei(t,e,n,r,o){const i=ti(n,e[r]||{},{excludeAll:t?.excludeAll,...t});Object.keys(i).length&&o.push([r,i])}function ni(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=ti(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(F(e)&&!F(r)||B(e)&&!B(r)||typeof e!=typeof r||!r)i.push(e);else if(F(e)||B(e)){const n=ti(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 ri(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 oi(t,e,n){const r={},o=["rowId","row_id"],i=n?.excludeAll||[],u=n?.exclude||[];for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&![...i,...o].includes(a)&&![...u,...o].includes(a)){const o=t[a],u=e[a];if(Array.isArray(u)&&Array.isArray(o)){(o.length!==u.length||o.some((t,e)=>"object"==typeof t&&"object"==typeof u[e]?Object.keys(oi(t,u[e],{excludeAll:i,...n?.[a]})).length>0:t!==u[e]))&&(r[a]=u)}else if("object"==typeof u&&"object"==typeof o&&null!==u&&null!==o){const t=oi(o,u,{excludeAll:i,...n?.[a]});Object.keys(t).length>0&&(r[a]=t)}else o!==u&&String(o)!==String(u)&&(r[a]=u)}return r}function ii(t={},e={}){let n;for(n in e)t[n]=F(t[n])?ii(t[n],e[n]):t[n]=e[n];return t}function ui(t,e="px"){return ve.isNumber(t)||/^\d+$/.test(`${t}`)?`${t}${e}`:`${t||""}`}function ai(t,e,n){return i({get:()=>new Proxy(t[e],{set:(t,r,o)=>(n(`update:${e}`,{...t,[r]:o}),!0)}),set(t){n(`update:${e}`,t)}})}function ci(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 si(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=>si(t));const e={};return Object.keys(t).forEach(n=>{e[n]=si(t[n])}),e}function fi(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 li(...t){for(const e of t)if(null!=e)return e}function di(...t){return a(c(t))}function hi(){const t=new Event("resize");window.dispatchEvent(t)}function pi(t,e,n="prop",r="content"){t.forEach(t=>{Object.prototype.hasOwnProperty.call(t,n)&&(B(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 gi=function(t,e="YYYY-MM-DD HH:mm:ss",n=Go){return R(t)||""===t||0===t||"0"===t?"":r(t).isValid()?(Jo||(r.extend(f),r.extend(l),Jo=!0),n===Go?r(t).utcOffset(480).format(e):r(t).tz(n).format(e)):""};function mi(t,e){const{format:n="YYYY-MM-DD HH:mm:ss",tz:r,searchValue:o=" ",replaceValue:i="\n"}=e||{};return gi(t,n,r).replaceAll(o,i)}function yi(t){return s(t)}function vi(t,e){return t?e&&0!==e.length?e.reduce((t,e)=>(delete t[e],t),{...t}):t:{}}function wi(t,e=200,n={}){const{leading:r=!1,trailing:o=!0,maxWait:i}=n;let u,a,c,s,f,l=0;function d(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 p(){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 m(){const t=Date.now();if(g(t))return void function(t){u=void 0,o&&void 0!==s?d(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(m,n):void 0}function y(){const t=Date.now();h(),void 0!==s&&d(t)}const v=(...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(m,e),void 0!==i&&(a=window.setTimeout(y,i)),r?d(t):f}(n);if(void 0!==i)return h(),u=window.setTimeout(m,e),a=window.setTimeout(y,i),r?d(n):f}return void 0===u&&(u=window.setTimeout(m,e),void 0!==i&&(a=window.setTimeout(y,i))),f};return v.isPending=()=>void 0!==u||void 0!==a,v.cancel=()=>{p()},v.flush=(...e)=>{if(!v.isPending())return e.length>0?t(...e):f;const n=void 0!==s?s:e;return p(),t(...n)},v}function bi(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()),d((t,e,r)=>n.includes(e)||Array.isArray(t[e])&&Array.isArray(r)?(t[e]=r,!0):void 0)(t,...e)}function Si(...t){let e=new h(t[0]??0);for(let n=1;n<t.length;n++)e=e.add(new h(t[n]??0));return e.toNumber()}function Ei(...t){let e=new h(t[0]??0);for(let n=1;n<t.length;n++)e=e.sub(new h(t[n]??0));return e.toNumber()}function Ni(...t){let e=new h(t[0]??0);for(let n=1;n<t.length;n++)e=e.mul(new h(t[n]??0));return e.toNumber()}function Oi(...t){let e=new h(t[0]??0);for(let n=1;n<t.length;n++)e=e.div(new h(t[n]??0));return e.toNumber()}function Ai(...t){return t.reduce((t,e)=>ji(t??0).add(e??0).toNumber(),0)}function Di(t,e){return t.reduce((t,n)=>ji(t??0).add(e(n)??0).toNumber(),0)}function xi(t,e,n){const r={},o=n;return t.forEach(t=>{const n=e(t);if(n){const e=o(t);r[n]=ji(r[n]||0).add(e).toNumber()}}),r}function ji(t){const e=Number(t)||0===t,n=Number.isNaN(Number(t)),r=new h(t);if(e&&!n)return r;console.error("请输入合理数字!");return new h(Number.NaN)}void 0===Promise.withResolvers&&(Promise.withResolvers=function(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}});class Mi{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 Ti{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 ki=!0,Ci=25200,Pi={key:"_11111000001111@",iv:"@11111000001111_"};class Ii{key;iv;constructor(t={}){const{key:e,iv:n}=t;e&&(this.key=y?.(e)),n&&(this.iv=y?.(n))}get getOptions(){return{mode:v,padding:w,iv:this.iv}}encryptByAES(t){return p(t,this.key,this.getOptions).toString()}decryptByAES(t){return g(t,this.key,this.getOptions).toString(m)}}function Ri({prefixKey:t="",storage:e=sessionStorage,key:n=Pi.key,iv:r=Pi.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 Ii({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:R(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(R(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 Fi(t=sessionStorage,e={}){return Ri(function(t,e={}){return{hasEncrypt:ki,storage:t,prefixKey:"tt-admin",...e}}(t,e))}function $i(t={}){return Fi(sessionStorage,{...t,timeout:Ci})}function _i(t={}){return Fi(localStorage,{...t,timeout:Ci})}function Wi(t,e,n,r){if(!t)return!1;const o=t.split(".").map(t=>Number(t));if(o.length<2)return!1;const i=o[0],u=o[1],a=o[2];return i>e||!(i<e)&&(u>n||!(u<n)&&(void 0===r||(a??0)>=r))}function Hi(t,e,n){const r=b(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 Li(t,e,n){const r=b(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}const Ui=new Set(["*","all","ALL","All"]),zi=t=>Ui.has(String(t)),Ki=t=>{if(null==t)return"";let e;if(Array.isArray(t))e=t;else{if(!U(t))return zi(t)?"全部":String(t);e=t.split(",")}return e.map(t=>zi(t)?"全部":t).join(",")};function qi(t,e,n){let{vk:r,ck:o}=n||{};const{labelField:i,valueField:u,hasDefault:a=!0}=n||{};r=r||i||"label",o=o||u||"value","number"==typeof e&&(e=e.toString());let c=[e];Array.isArray(e)?c=e:U(e)&&(c=e?.split(","));const s=t=>a?t:void 0;return c?.map(e=>zi(e)?Ki(e):Array.isArray(t)?t?.find(t=>t[o]==e)?.[r]??s(e):t?.[e]??s(e))?.join()}const Bi=(t=[])=>{let e=[];return e=t.filter(t=>Boolean(Object.values(t).filter(Boolean).length)),e.length?e:void 0},Yi=(t,e=",")=>Array.isArray(t)?t:t?.split(e).filter(Boolean)??[],Zi=(t=[])=>t.filter(Boolean),Vi=(t,e)=>t()?e:[],Ji=(t,e=",")=>Array.isArray(t)?t.join(e):t,Gi=99999999,Qi=9999;export{Ui as ALL_OPTION_CODES,Ki as ALL_OPTION_TO_LABEL,qi as CODE_TO_VALUE,Ci as DEFAULT_CACHE_TIME,Zi as FILTER_BOOLEAN,Bi as FILTER_EMPTY,Vi as GET_LIST_BY_FUNC,zi as IS_ALL_OPTION_CODE,Ji as JOIN_BY_SEPARATOR,Gi as MAX_PAGE_SIZE,Yi as SPLIT_BY_SEPARATOR,Mi as StateHandler,Ti as StateHandlerOld,Qi as TABLE_PAGE_SIZE,Ft as TtHttp,Si as add,pi as arrGive,fi as arrayToTree,ci as bindMethods,Pi as cacheCipher,ji as calc,Xo as calcWordsWidth,S as capitalize,Wi as checkVersion,di as clnm,yi as cloneDeep,xi as clsSumTotalBy,oi as compareObjects,Ri as create,_i as createLocalStorage,$i as createSessionStorage,Fi as createStorage,gi as dateFormat,mi as dateFormatBreak,wi as debounce,si as deepCopy,ii as deepMerge,Oi as divide,O as downloadFile,ki as enableStorageEncryption,Gt as extractIdFromTitle,Yt as extractResourceFromApi,Wt as formatAmount,Ht as formatAmountOfPlace,Ut as formatDecimal,zt as formatFileSize,Hi as formatFormData,Kt as formatPeriod,Lt as formatPlaceOfAmount,Bt as formatToDate,qt as formatToDateTime,Jt as generateFormName,Zt as generateTestId,at as getBrowserType,ut as getDeviceType,ti as getDifference,li as getFirstNonNullOrUndefined,It as getPageKey,Qo as getStorage,k as is,st as isAndroid,B as isArray,K as isBoolean,G as isClient,W as isDate,ht as isDayjsObject,C as isDef,Z as isElement,$ as isEmpty,_ as isEmptyZero,et as isError,lt as isExternal,ot as isFalse,pt as isFormData,z as isFunction,ct as isIos,dt as isJson,V as isMap,I as isNull,R as isNullOrUnDef,H as isNumber,F as isObject,ft as isPC,tt as isPrimitive,L as isPromise,q as isRegExp,J as isServer,rt as isSet,U as isString,X as isStringNumber,nt as isSymbol,it as isTrue,P as isUndefined,Q as isUrl,Qt as isValidTestId,Y as isWindow,N as kebabToCamelCase,Rt as loadingService,bi as mergeWithArrayOverride,Ni as multiply,vi as omit,Li as revertFormatFormData,ni as setDifferenceArr,ri as setDifferenceField,ei as setDifferenceObj,Ei as subtract,Ai as sumTotal,Di as sumTotalBy,ui as toCssUnit,Vt as toKebabCase,hi as triggerWindowResize,E as trim,ai as useVModel,$t as withInstall};
|
|
1
|
+
import t from"axios";import{ElMessage as e,ElLoading as n}from"element-plus";import r from"dayjs";import{nextTick as o,computed as i}from"vue";import u from"numeral";import{twMerge as a}from"tailwind-merge";import{clsx as c}from"clsx";import{klona as s}from"klona/full";import f from"dayjs/plugin/utc";import l from"dayjs/plugin/timezone";import{createDefu as d}from"defu";export{createDefu as createMerge,defuFn as mergFn,defu as merge}from"defu";import p from"decimal.js";export{default as Decimal}from"decimal.js";import{encrypt as h,decrypt as g}from"crypto-js/aes";import m,{parse as y}from"crypto-js/enc-utf8";import v from"crypto-js/mode-ecb";import w from"crypto-js/pad-pkcs7";import{cloneDeep as b}from"lodash-es";function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}function E(t){return t.trim()}function N(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 A,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"}(A||(A={})),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,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 j(t){if("ERR_CANCELED"===t.code)throw console.warn("Request cancelled:",t.message),new x(D.requestCancelled,A.error);const e=t.response?.status,n=t.response?.data?.msg||t.message,r=t.config;if(!t.response)throw new x(D.networkError,A.error,{url:r?.url||"",method:r?.method?.toUpperCase()||""});const o=e?(i=e,{[A.unauthorized]:D.unauthorized,[A.forbidden]:D.forbidden,[A.notFound]:D.notFound,[A.methodNotAllowed]:D.methodNotAllowed,[A.requestTimeout]:D.requestTimeout,[A.internalServerError]:D.internalServerError,[A.badGateway]:D.badGateway,[A.serviceUnavailable]:D.serviceUnavailable,[A.gatewayTimeout]:D.gatewayTimeout}[i]||D.internalServerError):n||D.requestFailed;var i;throw new x(o,e||A.error,{data:t.response.data,url:r?.url||"",method:r?.method?.toUpperCase()||""})}function M(t,n=!0){n&&e.error(t.message),console.error("[HTTP Error]",t.toLogData())}const T=Object.prototype.toString;function k(t,e){return T.call(t)===`[object ${e}]`}function I(t){return void 0!==t}function P(t){return!I(t)}function C(t){return null===t}function R(t){return P(t)||C(t)}function F(t){return!R(t)&&(t instanceof Promise||k(t,"Object"))}function $(t){return!!R(t)||(B(t)||H(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:!!F(t)&&0===Object.keys(t).length)}function _(t){return!!$(t)||(0===t||!!H(t)&&("0"===t||"undefined"===t||"null"===t))}function W(t){return k(t,"Date")}function z(t){return k(t,"Number")&&t==t}function L(t){return k(t,"Promise")&&F(t)&&U(t.then)&&U(t.catch)}function H(t){return k(t,"String")}function U(t){return"function"==typeof t}function K(t){return k(t,"Boolean")}function q(t){return k(t,"RegExp")}function B(t){return Array.isArray(t)}function Y(t){return"undefined"!=typeof window&&k(t,"Window")}function Z(t){return"undefined"!=typeof Element&&t instanceof Element}function V(t){return k(t,"Map")}const J="undefined"==typeof window,G=!J;function Q(t){return/(?:^https?:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*(?:#\w*)?$/.test(t)}function X(t){return!!H(t)&&!Number.isNaN(Number(t))}function tt(t){return null==t||"object"!=typeof t&&"function"!=typeof t}function et(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function nt(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function rt(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function ot(t){return!t||t===C(t)||t===P(t)||!1===t||t===Number.isNaN(t)||!(!B(t)||0!==t.length)}function it(t){return!ot(t)}function ut(){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 at(){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 ct(){return"iPhone"===ut()}function st(){return"Android"===ut()}function ft(){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 lt(t){return/^(?:https?:|mailto:|tel:|\/\/)/.test(t)}function dt(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 pt(t){return r.isDayjs(t)}function ht(t){return k(t,"FormData")}const gt="tt-loading-mask",mt="tt-loading-mask--over-modal",yt="tt-modal-overlay",vt=new Map;let wt=null,bt=!1,St=!1;const Et=()=>document.documentElement.classList.contains("dark")?"rgba(7, 7, 7, 0.85)":"rgba(255, 255, 255, 0.5)",Nt={lock:!0,get background(){return Et()},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:gt};function Ot(t){return!!t.isConnected&&t.getClientRects().length>0}function At(t){if(!t.isConnected)return!1;return(t.clientHeight||t.getBoundingClientRect().height)>=48}function Dt(){const t=document.querySelectorAll("micro-app-body");for(const e of Array.from(t)){const t=e;if(!Ot(t))continue;const n=t.querySelector("#app");if(n)return n}const e=document.querySelector("micro-app-body");return e?e.querySelector("#app"):null}function xt(){const t=[Dt(),document.querySelector("#app-content"),document.querySelector("#app")];for(const e of t)if(e&&Ot(e)&&At(e))return e;return null}function jt(t){if("undefined"==typeof document)return;const e=document.querySelectorAll(`.${yt}`);for(const n of Array.from(e))n instanceof HTMLElement&&"1"!==n.dataset.ttModalSuspended&&"none"!==n.style.display&&Ot(n)&&t(n)}function Mt(){let t=0;return jt(e=>{t=Math.max(t,function(t){const e=t.style.zIndex||getComputedStyle(t).zIndex,n=Number.parseInt(e,10);return Number.isFinite(n)?n:0}(e))}),t}function Tt(){return function(){let t=!1;return jt(()=>{t=!0}),t}()?Mt()+1:null}function kt(){return!xt()}function It(t){return t instanceof HTMLElement&&(!!t.classList.contains(yt)||!!t.querySelector(`.${yt}`))}function Pt(){if(bt)return;if("undefined"==typeof MutationObserver)return;if("undefined"==typeof document||!document.body)return;bt=!0;new MutationObserver(t=>{t.some(t=>{for(const e of Array.from(t.addedNodes))if(It(e))return!0;for(const e of Array.from(t.removedNodes))if(It(e))return!0;return!1})&&(St||(St=!0,o(()=>{St=!1,zt.sync()})))}).observe(document.body,{childList:!0,subtree:!0})}function Ct(t){if(!t.instance)return t.target=null,void(t.appliedZIndex=null);try{t.instance.close()}catch{}t.instance=null,t.target=null,t.appliedZIndex=null}function Rt(t){return t.querySelector(`.el-loading-mask.${gt}`)}function Ft(t){if(!t.instance)return!1;const e=!t.target;if(kt()!==e)return!1;if(e)return function(){const t=document.body.querySelector(`.el-loading-mask.${gt}.is-fullscreen`);return!(!t||!t.isConnected)}();if(!Ot(t.target)||!At(t.target))return!1;const n=Rt(t.target);if(!n||!n.isConnected)return!1;const r=Tt();return r===t.appliedZIndex&&!(null!=r&&r<=Mt())}function $t(t,e){if(Wt()!==t)return void Ct(e);if(e.instance&&Ft(e))return;Ct(e);const r=kt()?null:xt(),o={...Nt,background:Et(),...r?{target:r,fullscreen:!1}:{fullscreen:!0}};if(e.instance=n.service(o),e.target=r,r){const t=Tt();e.appliedZIndex=t;const n=Rt(r);n&&function(t,e){if(null==e)return t.classList.remove(mt),t.style.removeProperty("z-index"),void t.style.removeProperty("--tt-loading-z-index");t.classList.add(mt),t.style.setProperty("--tt-loading-z-index",String(e)),t.style.setProperty("z-index",String(e),"important")}(n,t)}else e.appliedZIndex=null}function _t(t){for(const[e,n]of vt)e!==t&&Ct(n)}function Wt(t){const e="undefined"!=typeof window&&window.__MICRO_APP_NAME__||"host";let n=t;return n||(n=wt?.currentRoute?.value?wt.currentRoute.value.fullPath:"undefined"!=typeof window?window.location.pathname+window.location.search+window.location.hash:"/"),`${e}::${n}`}const zt={getPageKey:Wt,bindRouter(t){t&&wt!==t&&(wt=t,Pt(),t.afterEach(()=>{o(()=>zt.sync())}))},showLoading(t){const e=t||Wt(),n=function(t){let e=vt.get(t);return e||(e={count:0,instance:null,target:null,appliedZIndex:null},vt.set(t,e)),e}(e);return n.count+=1,Pt(),_t(Wt()),$t(e,n),()=>this.hideLoading(e)},hideLoading(t){const e=t||Wt(),n=vt.get(e);n&&(n.count=Math.max(0,n.count-1),0===n.count&&(Ct(n),vt.delete(e)))},sync(t){const e=t||Wt();_t(e);const n=vt.get(e);n&&n.count>0&&$t(e,n)}};function Lt(n){const{router:r,useUserStore:i,VITE_API_URL:u,VITE_WITH_CREDENTIALS:a}=n;zt.bindRouter(r);const c=new Set;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","application/sql"].map(t=>t.toLowerCase()),f=new Map;function l(t){t&&setTimeout(()=>{const e=(f.get(t)||1)-1;e<=0?(f.delete(t),function(t){t&&c.has(t)&&(c.delete(t),o(()=>{zt.hideLoading(t)}))}(t)):f.set(t,e)},0)}let d=!1,p=null;const h=t.create({timeout:6e5,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="start"){if("string"!=typeof t||!t.trim())return"string"==typeof t?t.trim():t;const n=t.trim();if(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(n))return n;const r="end"===e?"59":"00";return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(n)?`${n}:${r}`:/^\d{4}-\d{2}-\d{2} \d{2}$/.test(n)?`${n}:${r}:${r}`:/^\d{4}-\d{2}-\d{2}$/.test(n)?"end"===e?`${n} 23:59:59`:`${n} 00:00:00`:n}function m(t){if("string"==typeof t)return t.trim();if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>m(t));const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n.includes("DtRange")&&Array.isArray(r)&&2===r.length?e[n]={startDate:m(r[0]),endDate:m(r[1])}:n.includes("TmRange")&&Array.isArray(r)&&2===r.length?e[n]={startTime:g(r[0],"start"),endTime:g(r[1],"end")}:e[n]="startTime"===n?g(r,"start"):"endTime"===n?g(r,"end"):m(r)}return e}function y(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>y(t));const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n.includes("DtRange")&&"object"==typeof r&&null!==r&&"startDate"in r&&"endDate"in r?e[n]=[r.startDate,r.endDate]:n.includes("TmRange")&&"object"==typeof r&&null!==r&&"startTime"in r&&"endTime"in r?e[n]=[r.startTime,r.endTime]:e[n]=y(r)}return e}function v(t,e){return new x(t,e)}function w(t){const e=v(t||D.unauthorized,A.unauthorized);if(!d)throw d=!0,S(),p=setTimeout(b,3e3),M(e,!0),e;throw e}function b(){d=!1,p&&clearTimeout(p),p=null}h.interceptors.request.use(t=>{const{accessToken:e,info:n}=i();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",r.currentRoute.value.meta.permissionOnlyCode),t.headers.set("a-path-code",r.currentRoute.value.path));const o=Wt();t.__loadingPageKey=o;const u=f.get(o)||0;return t.hideLoading||0!==u||function(t){c.add(t),zt.showLoading(t)}(o),f.set(o,u+1),t.params&&(t.params=m(t.params)),!t.data||ht(t.data)||t.headers["Content-Type"]||(t.data=m(t.data),t.headers.set("Content-Type","application/json"),t.data=JSON.stringify(t.data)),t},t=>(M(v(D.requestConfigError,A.error)),Promise.reject(t))),h.interceptors.response.use(async t=>{l(t.config?.__loadingPageKey),await async function(t){const e=t.data;if(!(e instanceof Blob))return;const n=String(t.headers["content-type"]||""),r=e.type||"";if(n.includes("application/json")||r.includes("application/json"))try{const n=await e.text();t.data=JSON.parse(n)}catch{throw v(D.requestFailed,A.error)}}(t);const e=t?.data?.type??t?.headers?.["content-type"];if(e?.includes("application/json")){t.data&&(t.data=y(t.data));const{code:e,msg:n}=t.data;if([A.success,A.success1].includes(e))return t;throw[A.unauthorized,A.INVALID_TOKEN].includes(e)&&w(n),v(n||D.requestFailed,e)}if(s.includes(e?.toLowerCase()))return O(t,e),t},t=>(l(t.config?.__loadingPageKey),t.response?.status===A.unauthorized&&w(),Promise.reject(j(t))));const S=()=>{setTimeout(()=>{i().logOut()},500)};let E=null;async function N(t,n=0){try{return await async function(t){["POST","PUT","PATCH"].includes(t.method?.toUpperCase()||"")&&t.params&&!t.data&&(t.data=t.params,t.params=void 0);try{const n=await h.request(t);return t.showSuccessMessage&&n.data?.msg&&function(t,n=!0){n&&e.success(t)}(n.data?.msg||"操作成功"),t.responseAllData?n:n.data.data}catch(e){const n=[A.unauthorized,A.NEED_REFRESH_TOKEN].includes(e.code);if(e instanceof x&&!n){M(e,!1!==t.showErrorMessage)}return Promise.reject(e)}}(t)}catch(e){if(e instanceof x&&e.code===A.NEED_REFRESH_TOKEN&&!t.url?.includes("/iam/user/refreshToken")&&!t.__retriedAfterRefresh)return t.__retriedAfterRefresh=!0,await(E||(E=(async()=>{await i().refreshTokenFunc(),await T(1e3)})().finally(()=>{E=null})),E),N(t,n);if(n>0&&e instanceof x&&(r=e.code,[A.requestTimeout,A.internalServerError,A.badGateway,A.serviceUnavailable,A.gatewayTimeout].includes(r)))return await T(1e3),N(t,n-1);throw e}var r}function T(t){return new Promise(e=>setTimeout(e,t))}const k={get:t=>N({...t,method:"GET"}),post:t=>N({...t,method:"POST"}),put:t=>N({...t,method:"PUT"}),del:t=>N({...t,method:"DELETE"}),patch:t=>N({...t,method:"PATCH"}),request:t=>N(t)};return{...k,logOut:S,setBaseUrl:t=>{h.defaults.baseURL=t}}}function Ht(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 Ut="0,0.00";function Kt(t,e=Ut){return t?u(t).format(e):"0.00"}function qt(t,e=Ut){return t?u(t).format(e):"0.00"}function Bt(t){return t?u(u(t).format(Ut)).value():0}function Yt(t,e){if(R(t)||""===t)return"";let n=Number.parseFloat(t.toString());if(Number.isNaN(n))return"";n=Math.round(n*10**e)/10**e;let r=n.toString(),o=r.indexOf(".");for(o<0&&(o=r.length,r+=".");r.length<=o+e;)r+="0";return r}function Zt(t,e=2){if(R(t)||0===t)return"0 Bytes";const n=Math.floor(Math.log(t)/Math.log(1e3));return`${Number.parseFloat((t/1e3**n).toFixed(e))} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}`}function Vt(t,e="period"){if(!t)return"";const n=(z(t)?t.toString():t).replace(/[-.]/g,""),r=n.slice(0,4),o=n.slice(4,6);return"period"===e?`${r}年${o}期`:` ${o}/${r}`}function Jt(t,e="YYYY-MM-DD HH:mm:ss"){return R(t)?"--":r(t).isValid()?r(t).format(e):"--"}function Gt(t,e="YYYY-MM-DD",n=!1){return R(t)?"--":n?t?r(+t).format(e):"--":r(t).isValid()?r(t).format(e):"--"}function Qt(t){if("string"==typeof t)return t.trim();if("function"==typeof t){return(t.name||"").replace(/^bound\s+/i,"")}return""}function Xt(...t){return t.filter(t=>null!=t&&""!==t).join("-")}function te(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 ee(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 ne(t){return t?te(t):""}function re(t){if(!t)return!1;return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t)}var oe={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};function ie(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 ue=Object.prototype.toString;function ae(t){return function(e){return"[object "+t+"]"===ue.call(e)}}var ce=Array.isArray||ae("Array");function se(t,e){return!(!t||!t.hasOwnProperty)&&t.hasOwnProperty(e)}function fe(t,e,n){if(t)for(var r in t)se(t,r)&&e.call(n,t[r],r,t)}function le(t,e,n){return t?(ce(t)?ie:fe)(t,e,n):t}function de(t){return function(e){return typeof e===t}}var pe=de("function");function he(t,e){var n=Object[t];return function(t){var r=[];if(t){if(n)return n(t);le(t,e>1?function(e){r.push([""+e,t[e]])}:function(){r.push(arguments[e])})}return r}}var ge=he("keys",1);function me(t,e){var n=t.__proto__.constructor;return e?new n(e):new n}function ye(t,e){return e?ve(t,e):t}function ve(t,e){if(t)switch(ue.call(t)){case"[object Object]":var n=Object.create(Object.getPrototypeOf(t));return fe(t,function(t,r){n[r]=ye(t,e)}),n;case"[object Date]":case"[object RegExp]":return me(t,t.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return ie(t,function(t){r.push(ye(t,e))}),r;case"[object Set]":var o=me(t);return o.forEach(function(t){o.add(ye(t,e))}),o;case"[object Map]":var i=me(t);return i.forEach(function(t,n){i.set(n,ye(t,e))}),i}return t}function we(t,e){return t?ve(t,e):t}var be=Object.assign;function Se(t,e,n){for(var r,o=e.length,i=1;i<o;i++)r=e[i],ie(ge(e[i]),n?function(e){t[e]=we(r[e],n)}:function(e){t[e]=r[e]});return t}var Ee=function(t){if(t){var e=arguments;if(!0!==t)return be?be.apply(Object,e):Se(t,e);if(e.length>1)return Se(t=ce(t[1])?[]:{},e,!0)}return t},Ne=function(){};function Oe(t){return Ee(oe,t)}var Ae="4.0.0";function De(t,e,n){for(var r=t.length-1;r>=0;r--)e.call(n,t[r],r,t)}function xe(t,e,n){De(ge(t),function(r){e.call(n,t[r],r,t)})}function je(t){return null===t}function Me(t,e){return function(n){return je(n)?e:n[t]}}function Te(t){return!!t&&t.constructor===Object}function ke(t){return"__proto__"!==t&&"constructor"!==t}function Ie(t,e){return Te(t)&&Te(e)||ce(t)&&ce(e)?(le(e,function(n,r){ke(r)&&(t[r]=pe(e)?n:Ie(t[r],n))}),t):e}Ne.VERSION=Ae,Ne.version=Ae,Ne.mixin=function(){ie(arguments,function(t){le(t,function(t,e){Ne[e]=pe(t)?function(){var e=t.apply(Ne.$context,arguments);return Ne.$context=null,e}:t})})},Ne.setup=Oe,Ne.setConfig=Oe,Ne.getConfig=function(){return oe};function Pe(t,e,n){var r=[];if(t&&arguments.length>1){if(t.map)return t.map(e,n);le(t,function(){r.push(e.apply(n,arguments))})}return r}function Ce(t,e,n,r,o){return function(i,u,a){if(i&&u){if(t&&i[t])return i[t](u,a);if(e&&ce(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(se(i,f)&&!!u.call(a,i[f],f,i)===r)return[!0,!1,f,i[f]][n]}return o}}var Re=Ce("some",1,0,!0,!1),Fe=Ce("every",1,1,!1,!0);function $e(t,e){if(t){if(t.includes)return t.includes(e);for(var n in t)if(se(t,n)&&e===t[n])return!0}return!1}function _e(t,e){var n,r=0;if(ce(t)&&ce(e)){for(n=e.length;r<n;r++)if(!$e(t,e[r]))return!1;return!0}return $e(t,e)}function We(t,e,n){var r=[];if(e){pe(e)||(e=Me(e));var o,i={};le(t,function(u,a){o=e.call(n,u,a,t),i[o]||(i[o]=1,r.push(u))})}else le(t,function(t){$e(r,t)||r.push(t)});return r}function ze(t){return Pe(t,function(t){return t})}var Le="undefined",He=de(Le);function Ue(t){return je(t)||He(t)}var Ke=/(.+)?\[(\d+)\]$/;function qe(t){return t?t.splice&&t.join?t:(""+t).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}function Be(t,e,n){if(Ue(t))return n;var r=function(t,e){if(t){var n,r,o,i=0;if(t[e]||se(t,e))return t[e];if(o=(r=qe(e)).length)for(n=t;i<o;i++)if(Ue(n=Ye(n,r[i])))return i===o-1?n:void 0;return n}}(t,e);return He(r)?n:r}function Ye(t,e){var n=e?e.match(Ke):"";return n?n[1]?t[n[1]]?t[n[1]][n[2]]:void 0:t[n[2]]:t[e]}function Ze(t,e){return He(t)?1:je(t)?He(e)?-1:1:t&&t.localeCompare?t.localeCompare(e):t>e?1:-1}function Ve(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?Ze(u,i):Ze(i,u)}}function Je(t,e,n){if(t){if(Ue(e))return ze(t).sort(Ze);for(var r,o=Pe(t,function(t){return{data:t}}),i=function(t,e,n,r){var o=[];return ie(n=ce(n)?n:[n],function(n,i){if(n){var u,a=n;ce(n)?(a=n[0],u=n[1]):Te(n)&&(a=n.field,u=n.order),o.push({field:a,order:u||"asc"}),ie(e,pe(a)?function(e,n){e[i]=a.call(r,e.data,n,t)}:function(t){t[i]=a?Be(t.data,a):t.data})}}),o}(t,o,e,n),u=i.length-1;u>=0;)r=Ve(u,i[u],r),u--;return r&&(o=o.sort(r)),Pe(o,Me("data"))}return[]}var Ge=Je;function Qe(t,e){return t>=e?t:(t|=0)+Math.round(Math.random()*((e||9)-t))}var Xe=he("values",0);function tn(t){for(var e,n=[],r=Xe(t),o=r.length-1;o>=0;o--)e=o>0?Qe(0,o):0,n.push(r[e]),r.splice(e,1);return n}function en(t){return function(e){if(e){var n=t(e&&e.replace?e.replace(/,/g,""):e);if(!isNaN(n))return n}return 0}}var nn=en(parseFloat);function rn(t,e,n){var r=[],o=arguments.length;if(t){if(e=o>=2?nn(e):0,n=o>=3?nn(n):t.length,t.slice)return t.slice(e,n);for(;e<n;e++)r.push(t[e])}return r}var on=Ce("",0,2,!0),un=Ce("find",1,3,!0);function an(t,e){return Pe(t,Me(e))}function cn(t){return function(e,n){var r,o;return e&&e.length?(ie(e,function(i,u){n&&(i=pe(n)?n(i,u,e):Be(i,n)),Ue(i)||!Ue(r)&&!t(r,i)||(o=u,r=i)}),e[o]):r}}var sn=cn(function(t,e){return t<e});function fn(t){var e,n,r,o=[];if(t&&t.length)for(e=0,r=(n=sn(t,function(t){return t?t.length:0}))?n.length:0;e<r;e++)o.push(an(t,e));return o}function ln(t,e){var n=[];return ie(t,function(t){n=n.concat(ce(t)?e?ln(t,e):t:[t])}),n}function dn(t,e){return(console[t]||console.log)(e)}function pn(t,e){try{delete t[e]}catch(n){t[e]=void 0}}function hn(t,e,n){return t?(ce(t)?De:xe)(t,e,n):t}var gn=de("object");function mn(t,e,n){if(t){var r,o=arguments.length>1&&(je(e)||!gn(e)),i=o?n:e;if(Te(t))fe(t,o?function(n,r){t[r]=e}:function(e,n){pn(t,n)}),i&&Ee(t,i);else if(ce(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 yn(t,e,n){if(t){if(!Ue(e)){var r=[],o=[];return pe(e)||(i=e,e=function(t,e){return e===i}),le(t,function(t,o,i){e.call(n,t,o,i)&&r.push(o)}),ce(t)?hn(r,function(e,n){o.push(t[e]),t.splice(e,1)}):(o={},ie(r,function(e){o[e]=t[e],pn(t,e)})),o}return mn(t)}var i;return t}function vn(t,e,n,r){var o=r.key,i=r.parentKey,u=r.children,a=r.data,c=r.updated,s=r.clear;return ie(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&&vn(t,n,f,r),s&&delete n[u]}),t}function wn(t){return function(e,n,r,o){var i=r||{},u=i.children||"children";return t(null,e,n,o,[],[],u,i)}}var bn=wn(function t(e,n,r,o,i,u,a,c){var s,f,l,d,p,h;if(n)for(f=0,l=n.length;f<l;f++){if(s=n[f],d=i.concat([""+f]),p=u.concat([s]),r.call(o,s,f,n,d,e,p))return{index:f,item:s,path:d,items:n,parent:e,nodes:p};if(a&&s&&(h=t(s,s[a],r,o,d.concat([a]),p,a)))return h}});var Sn=wn(function t(e,n,r,o,i,u,a,c){var s,f;le(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 En=wn(function t(e,n,r,o,i,u,a,c){var s,f,l,d=c.mapChildren||a;return Pe(n,function(p,h){return s=i.concat([""+h]),f=u.concat([p]),(l=r.call(o,p,h,n,s,e,f))&&p&&a&&p[a]&&(l[d]=t(p,p[a],r,o,s,f,a,c)),l})});function Nn(t,e,n,r,o,i,u,a,c){var s,f,l,d,p,h=[],g=c.original,m=c.data,y=c.mapChildren||a,v=c.isEvery;return ie(n,function(w,b){s=i.concat([""+b]),f=u.concat([w]),d=t&&!v||r.call(o,w,b,n,s,e,f),p=a&&w[a],d||p?(g?l=w:(l=Ee({},w),m&&(l[m]=w)),l[y]=Nn(d,w,w[a],r,o,s,f,a,c),(d||l[y].length)&&h.push(l)):d&&h.push(l)}),h}var On=wn(function(t,e,n,r,o,i,u,a){return Nn(0,t,e,n,r,o,i,u,a)});function An(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 Dn(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 xn=de("number");var jn=de("string"),Mn=ae("Date"),Tn=parseInt;function kn(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 In(t){return t.getTime()}function Pn(t){return"(\\d{"+t+"})"}function Cn(t){return isNaN(t)?t:Tn(t)}for(var Rn=Pn(2),Fn=Pn("1,2"),$n=Pn("1,7"),_n=Pn("3,4"),Wn=".{1}",zn=Wn+Fn,Ln="(([zZ])|([-+]\\d{2}:?\\d{2}))",Hn=[_n,zn,zn,zn,zn,zn,Wn+$n,Ln],Un=[],Kn=Hn.length-1;Kn>=0;Kn--){for(var qn="",Bn=0;Bn<Kn+1;Bn++)qn+=Hn[Bn];Un.push(new RegExp("^"+qn+"$"))}var Yn=[["yyyy",_n],["yy",Rn],["MM",Rn],["M",Fn],["dd",Rn],["d",Fn],["HH",Rn],["H",Fn],["mm",Rn],["m",Fn],["ss",Rn],["s",Fn],["SSS",Pn(3)],["S",$n],["Z",Ln]],Zn={},Vn=["\\[([^\\]]+)\\]"];for(Bn=0;Bn<Yn.length;Bn++){var Jn=Yn[Bn];Zn[Jn[0]]=Jn[1]+"?",Vn.push(Jn[0])}var Gn=new RegExp(Vn.join("|"),"g"),Qn={};function Xn(t,e){if(t){var n=Mn(t);if(n||!e&&/^[0-9]{11,15}$/.test(t))return new Date(n?In(t):Tn(t));if(jn(t)){var r=e?function(t,e){var n=Qn[e];if(!n){var r=[],o=e.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(Gn,function(t,e){var n=t.charAt(0);return"["===n?e:(r.push(n),Zn[t])});n=Qn[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=Un.length;r<o;r++)if(e=t.match(Un[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=Cn(r.M)-1),r.S&&(r.S=(o=Cn(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(kn(t));var e=t.Z.match(/([-+])(\d{2}):?(\d{2})/);return e?new Date(kn(t)-("-"===e[1]?-1:1)*Tn(e[2])*36e5+6e4*Tn(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 tr(){return new Date}function er(t){var e,n=t?Xn(t):tr();return!!Mn(n)&&((e=n.getFullYear())%4==0&&(e%100!=0||e%400==0))}function nr(t,e){return function(n,r){if(n){if(n[t])return n[t](r);if(jn(n)||ce(n))return e(n,r);for(var o in n)if(se(n,o)&&r===n[o])return o}return-1}}var rr=nr("indexOf",An),or=nr("lastIndexOf",Dn);function ir(t){var e=0;return jn(t)||ce(t)?t.length:(le(t,function(){e++}),e)}var ur=function(t){return!je(t)&&!isNaN(t)&&!ce(t)&&t%1==0};var ar=de("boolean"),cr=ae("RegExp"),sr=ae("Error");function fr(t){for(var e in t)return!1;return!0}var lr=typeof Symbol!==Le;function dr(t){return lr&&Symbol.isSymbol?Symbol.isSymbol(t):"symbol"==typeof t}var pr=ae("Arguments");var hr=typeof document===Le?0:document;var gr=typeof window===Le?0:window;var mr=typeof FormData!==Le;var yr=typeof Map!==Le;var vr=typeof WeakMap!==Le;var wr=typeof Set!==Le;var br=typeof WeakSet!==Le;function Sr(t){return function(e,n,r){if(e&&pe(n)){if(ce(e)||jn(e))return t(e,n,r);for(var o in e)if(se(e,o)&&n.call(r,e[o],o,e))return o}return-1}}var Er=Sr(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 Nr(t,e,n,r,o,i,u){if(t===e)return!0;if(t&&e&&!xn(t)&&!xn(e)&&!jn(t)&&!jn(e)){if(cr(t))return n(""+t,""+e,o,i,u);if(Mn(t)||ar(t))return n(+t,+e,o,i,u);var a,c,s,f=ce(t),l=ce(e);if(f||l?f&&l:t.constructor===e.constructor)return c=ge(t),s=ge(e),r&&(a=r(t,e,o)),c.length===s.length&&(He(a)?Fe(c,function(o,i){return o===s[i]&&Nr(t[o],e[s[i]],n,r,f||l?i:o,t,e)}):!!a)}return n(t,e,o,i,u)}function Or(t,e){return t===e}function Ar(t,e){return Nr(t,e,Or)}var Dr=Sr(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 xr=he("entries",2);function jr(t,e){return function(n,r){var o,i,u={},a=[],c=this,s=arguments,f=s.length;if(!pe(r)){for(i=1;i<f;i++)o=s[i],a.push.apply(a,ce(o)?o:[o]);r=0}return le(n,function(o,i){((r?r.call(c,o,i,n):Er(a,function(t){return t===i})>-1)?t:e)&&(u[i]=o)}),u}}var Mr=jr(1,0),Tr=jr(0,1);var kr=/(.+)?\[(\d+)\]$/;function Ir(t,e,n,r,o){if(!t[e]){var i,u,a=e?e.match(kr):null;if(n)u=o;else{var c=r?r.match(kr):null;u=c&&!c[1]?new Array(Tn(c[2])+1):{}}return a?a[1]?(i=Tn(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 Pr(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function Cr(t,e,n){var r,o={};return t&&(e&&gn(e)?e=function(t){return function(){return fr(t)}}(e):pe(e)||(e=Me(e)),le(t,function(i,u){r=e?e.call(n,i,u,t):i,o[r]?o[r].push(i):o[r]=[i]})),o}function Rr(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 Fr=cn(function(t,e){return t>e});function $r(t){return(t.split(".")[1]||"").length}function _r(t,e){if(t.repeat)return t.repeat(e);var n=isNaN(e)?[]:new Array(Tn(e));return n.join(t)+(n.length>0?t:"")}function Wr(t,e){return t.substring(0,e)+"."+t.substring(e,t.length)}function zr(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+_r("0",c):s>0?r+i+u+_r("0",s):r+i+Wr(u,c):o?f>0?r+"0."+_r("0",Math.abs(f))+o:r+Wr(o,f):l>0?r+"0."+_r("0",Math.abs(l))+i+u:r+Wr(i,l)+u}return e}function Lr(t,e){var n=zr(t),r=zr(e);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,$r(n)+$r(r))}function Hr(t){return function(e,n){var r=nn(e),o=r;if(r){n|=0;var i=zr(r).split("."),u=i[0],a=i[1]||"",c=a.substring(0,n+1),s=u+(c?"."+c:"");if(n>=a.length)return nn(s);if(s=r,n>0){var f=Math.pow(10,n);o=Math[t](Lr(s,f))/f}else o=Math[t](s)}return o}}var Ur=Hr("round"),Kr=Hr("ceil"),qr=Hr("floor");function Br(t){return xn(t)?zr(t):""+(Ue(t)?"":t)}function Yr(t,e){var n=Br(Ur(t,e|=0)).split("."),r=n[0],o=n[1]||"",i=e-o.length;return e?i>0?r+"."+o+_r("0",i):r+Wr(o,Math.abs(i)):r}var Zr=en(Tn);function Vr(t,e){return Lr(nn(t),nn(e))}function Jr(t,e){var n=zr(t),r=zr(e),o=Math.pow(10,Math.max($r(n),$r(r)));return(Vr(t,o)+Vr(e,o))/o}function Gr(t,e){var n=zr(t),r=zr(e),o=$r(n),i=$r(r)-o,u=i<0,a=Math.pow(10,u?Math.abs(i):i);return Vr(n.replace(".","")/r.replace(".",""),u?1/a:a)}function Qr(t,e,n){var r=0;return le(t&&t.length>2&&ce(t)?t.sort():t,e?pe(e)?function(){r=Jr(r,e.apply(n,arguments))}:function(t){r=Jr(r,Be(t,e))}:function(t){r=Jr(r,t)}),r}var Xr="first",to="last";function eo(t){return t.getFullYear()}var no=864e5;function ro(t){return t.getMonth()}function oo(t){return Mn(t)&&!isNaN(In(t))}function io(t,e,n){var r=e&&!isNaN(e)?e:0;if(oo(t=Xn(t))){if(n===Xr)return new Date(eo(t),ro(t)+r,1);if(n===to)return new Date(In(io(t,r+1,Xr))-1);if(xn(n)&&t.setDate(n),r){var o=t.getDate();if(t.setMonth(ro(t)+r),o!==t.getDate())return t.setDate(1),new Date(In(t)-no)}}return t}function uo(t,e,n){var r;if(oo(t=Xn(t))&&(e&&(r=e&&!isNaN(e)?e:0,t.setFullYear(eo(t)+r)),n||!isNaN(n))){if(n===Xr)return new Date(eo(t),0,1);if(n===to)return t.setMonth(11),io(t,0,to);t.setMonth(n)}return t}var ao=6048e5;function co(t,e,n,r){if(oo(t=Xn(t))){var o=xn(n),i=xn(r),u=In(t);if(o||i){var a=i?r:oe.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)*no:s<a?(7-a+s+f)*no:f*no}}return e&&!isNaN(e)&&(u+=e*ao),new Date(u)}return t}function so(t,e,n){if(oo(t=Xn(t))&&!isNaN(e)){if(t.setDate(t.getDate()+Tn(e)),n===Xr)return new Date(eo(t),ro(t),t.getDate());if(n===to)return new Date(In(so(t,1,Xr))-1)}return t}function fo(t){return t.toUpperCase()}var lo=Pe(Rr(0,7),function(t){return[(t+1)%7,(t+2)%7,(t+3)%7]});function po(t,e){var n=new Date(t).getDay();return $e(lo[e],n)}function ho(t,e){return function(n,r){var o=xn(r)?r:oe.firstDayOfWeek,i=Xn(n);if(oo(i)){var u,a=co(i,0,o,o),c=t(a),s=In(c),f=In(a),l=f+5184e5,d=new Date(l),p=co(c,0,o,o),h=In(p);if(f===h)return 1;if(e(a,d))for(u=In(t(d));u<l;u+=no)if(po(u,o))return 1;var g=h+5184e5,m=new Date(l),y=1;if(e(p,m))for(y=0,u=s;u<g;u+=no)if(po(u,o)){y++;break}return Math.floor((f-h)/ao)+y}return NaN}}var go=ho(function(t){return new Date(t.getFullYear(),0,1)},function(t,e){return t.getFullYear()!==e.getFullYear()});function mo(t){return In(function(t){return new Date(eo(t),ro(t),t.getDate())}(t))}function yo(t){return oo(t=Xn(t))?Math.floor((mo(t)-mo(uo(t,0,Xr)))/no)+1:NaN}function vo(t,e,n){var r=Br(t);return e|=0,n=He(n)?" ":""+n,r.padStart?r.padStart(e,n):e>r.length?((e-=r.length)>n.length&&(n+=_r(n,e/n.length)),n.slice(0,e)+r):r}function wo(t,e,n,r){var o=e[n];return o?pe(o)?o(r,n,t):o[r]:r}var bo=/\[([^\]]+)]|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 So(t,e,n){if(t){if(oo(t=Xn(t))){var r=n||{},o=e||oe.parseDateFormat||oe.formatString,i=t.getHours(),u=i<12?"am":"pm",a=Ee({},oe.parseDateRules||oe.formatStringMatchs,r.formats),c=function(e,n){return(""+eo(t)).substring(4-n)},s=function(e,n){return vo(ro(t)+1,n,"0")},f=function(e,n){return vo(t.getDate(),n,"0")},l=function(t,e){return vo(i,e,"0")},d=function(t,e){return vo(i<=12?i:i-12,e,"0")},p=function(e,n){return vo(t.getMinutes(),n,"0")},h=function(e,n){return vo(t.getSeconds(),n,"0")},g=function(e,n){return vo(t.getMilliseconds(),n,"0")},m=function(e,n){var r=t.getTimezoneOffset()/60*-1;return wo(t,a,e,(r>=0?"+":"-")+vo(r,2,"0")+(1===n?":":"")+"00")},y=function(e,n){return vo(wo(t,a,e,go(t,Ue(r.firstDay)?oe.firstDayOfWeek:r.firstDay)),n,"0")},v=function(e,n){return vo(wo(t,a,e,yo(t)),n,"0")},w={yyyy:c,yy:c,MM:s,M:s,dd:f,d:f,HH:l,H:l,hh:d,h:d,mm:p,m:p,ss:h,s:h,SSS:g,S:g,ZZ:m,Z:m,WW:y,W:y,DDD:v,D:v,a:function(e){return wo(t,a,e,u)},A:function(e){return wo(t,a,e,fo(u))},e:function(e){return wo(t,a,e,t.getDay())},E:function(e){return wo(t,a,e,t.getDay())},q:function(e){return wo(t,a,e,Math.floor((ro(t)+3)/3))}};return o.replace(bo,function(t,e){return e||(w[t]?w[t](t,t.length):t)})}return"Invalid Date"}return""}var Eo=Date.now||function(){return In(tr())};var No=ho(function(t){return new Date(t.getFullYear(),t.getMonth(),1)},function(t,e){return t.getMonth()!==e.getMonth()});var Oo=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function Ao(t){return t&&t.trimRight?t.trimRight():Br(t).replace(/[\s\uFEFF\xA0]+$/g,"")}function Do(t){return t&&t.trimLeft?t.trimLeft():Br(t).replace(/^[\s\uFEFF\xA0]+/g,"")}function xo(t){return t&&t.trim?t.trim():Ao(Do(t))}var jo={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};function Mo(t){var e=new RegExp("(?:"+ge(t).join("|")+")","g");return function(n){return Br(n).replace(e,function(e){return t[e]})}}var To=Mo(jo),ko={};le(jo,function(t,e){ko[jo[e]]=e});var Io=Mo(ko);function Po(t,e,n){return t.substring(e,n)}function Co(t){return t.toLowerCase()}var Ro={};var Fo={};function $o(t,e,n){return Br(t).replace((n||oe).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(t,n){return Be(e,xo(n))})}var _o=decodeURIComponent;function Wo(t){var e,n={};return t&&jn(t)&&ie(t.split("&"),function(t){e=t.split("="),n[_o(e[0])]=_o(e[1]||"")}),n}var zo=encodeURIComponent;function Lo(t,e,n){var r,o=[];return le(t,function(t,i){r=ce(t),Te(t)||r?o=o.concat(Lo(t,e+"["+i+"]",r)):o.push(zo(e+"["+(n?"":i)+"]")+"="+zo(je(t)?"":t))}),o}var Ho=typeof location===Le?0:location;function Uo(){return Ho?Ho.origin||Ho.protocol+"//"+Ho.host:""}function Ko(t){return Wo(t.split("?")[1]||"")}function qo(t){var e,n,r,o,i=""+t;return 0===i.indexOf("//")?i=(Ho?Ho.protocol:"")+i:0===i.indexOf("/")&&(i=Uo()+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=Ko(o.hash),o.searchQuery=Ko(o.search),o}function Bo(t,e){var n=parseFloat(e),r=tr(),o=In(r);switch(t){case"y":return In(uo(r,n));case"M":return In(io(r,n));case"d":return In(so(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 Yo(t){return(Mn(t)?t:new Date(t)).toUTCString()}function Zo(t,e,n){if(hr){var r,o,i,u,a,c,s=[],f=arguments;return ce(t)?s=t:f.length>1?s=[Ee({name:t,value:e},n)]:gn(t)&&(s=[t]),s.length>0?(ie(s,function(t){r=Ee({},oe.cookies,t),i=[],r.name&&(o=r.expires,i.push(zo(r.name)+"="+zo(gn(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 Yo(Bo(n,e))}):/^[0-9]{11,13}$/.test(o)||Mn(o)?Yo(o):Yo(Bo("d",o)),r.expires=o),ie(["expires","path","domain","secure"],function(t){He(r[t])||i.push(r[t]&&"secure"===t?t:t+"="+r[t])})),hr.cookie=i.join("; ")}),!0):(u={},(a=hr.cookie)&&ie(a.split("; "),function(t){c=t.indexOf("="),u[_o(t.substring(0,c))]=_o(t.substring(c+1)||"")}),1===f.length?u[t]:u)}return!1}function Vo(t){return Zo(t)}function Jo(t,e,n){return Zo(t,e,n),Zo}function Go(t,e){Zo(t,"",Ee({expires:-1},oe.cookies,e))}function Qo(){return ge(Zo())}function Xo(t){try{var e="__xe_t";return t.setItem(e,1),t.removeItem(e),!0}catch(t){return!1}}function ti(t){return navigator.userAgent.indexOf(t)>-1}Ee(Zo,{has:function(t){return $e(Qo(),t)},set:Jo,setItem:Jo,get:Vo,getItem:Vo,remove:Go,removeItem:Go,keys:Qo,getJSON:function(){return Zo()}}),Ee(Ne,{assign:Ee,objectEach:fe,lastObjectEach:xe,objectMap:function(t,e,n){var r={};if(t){if(!e)return t;pe(e)||(e=Me(e)),le(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])&&Ie(t,e);return t},uniq:We,union:function(){for(var t=arguments,e=[],n=0,r=t.length;n<r;n++)e=e.concat(ze(t[n]));return We(e)},sortBy:Ge,orderBy:Je,shuffle:tn,sample:function(t,e){var n=tn(t);return arguments.length<=1?n[0]:(e<n.length&&(n.length=e||0),n)},some:Re,every:Fe,slice:rn,filter:function(t,e,n){var r=[];if(t&&e){if(t.filter)return t.filter(e,n);le(t,function(o,i){e.call(n,o,i,t)&&r.push(o)})}return r},find:un,findLast:function(t,e,n){if(t){ce(t)||(t=Xe(t));for(var r=t.length-1;r>=0;r--)if(e.call(n,t[r],r,t))return t[r]}},findKey:on,includes:$e,arrayIndexOf:An,arrayLastIndexOf:Dn,map:Pe,reduce:function(t,e,n){if(t){var r,o,i=0,u=n,a=arguments.length>2,c=ge(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(ce(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(ce(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 fn(arguments)},unzip:fn,zipObject:function(t,e){var n={};return e=e||[],le(Xe(t),function(t,r){n[t]=e[r]}),n},flatten:function(t,e){return ce(t)?ln(t,e):[]},toArray:ze,includeArrays:_e,pluck:an,invoke:function(t,e){for(var n,r=arguments,o=[],i=[],u=2,a=r.length;u<a;u++)o.push(r[u]);if(ce(e)){for(a=e.length-1,u=0;u<a;u++)i.push(e[u]);e=e[a]}return Pe(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:ie,lastArrayEach:De,toArrayTree:function(t,e){var n,r,o,i=Ee({},oe.treeOptions,e),u=i.strict,a=i.key,c=i.parentKey,s=i.children,f=i.mapChildren,l=i.sortKey,d=i.reverse,p=i.data,h=[],g={},m={};return l&&(t=Je(we(t),l),d&&(t=t.reverse())),le(t,function(t){n=t[a],m[n]&&dn("warn","Duplicate primary key="+n),m[n]=!0}),le(t,function(t){n=t[a],p?(r={})[p]=t:r=t,o=t[c],g[n]=g[n]||[],r[a]=n,r[c]=o,n===o&&(o=null,dn("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&&Ue(o))&&(m[o]||h.push(r))}),u&&function(t,e){le(t,function(t){t[e]&&!t[e].length&&yn(t,e)})}(t,s),h},toTreeArray:function(t,e){return vn([],null,t,Ee({},oe.treeOptions,e))},findTree:bn,eachTree:Sn,mapTree:En,filterTree:function(t,e,n,r){var o=[];return t&&e&&Sn(t,function(t,n,i,u,a,c){e.call(r,t,n,i,u,a,c)&&o.push(t)},n),o},searchTree:On,hasOwnProp:se,eqNull:Ue,isNaN:function(t){return xn(t)&&isNaN(t)},isFinite:function(t){return xn(t)&&isFinite(t)},isUndefined:He,isArray:ce,isFloat:function(t){return!(je(t)||isNaN(t)||ce(t)||ur(t))},isInteger:ur,isFunction:pe,isBoolean:ar,isString:jn,isNumber:xn,isRegExp:cr,isObject:gn,isPlainObject:Te,isDate:Mn,isError:sr,isTypeError:function(t){return!!t&&t.constructor===TypeError},isEmpty:fr,isNull:je,isSymbol:dr,isArguments:pr,isElement:function(t){return!!(t&&jn(t.nodeName)&&xn(t.nodeType))},isDocument:function(t){return!(!t||!hr||9!==t.nodeType)},isWindow:function(t){return!(!gr||!t||t!==t.window)},isFormData:function(t){return mr&&t instanceof FormData},isMap:function(t){return yr&&t instanceof Map},isWeakMap:function(t){return vr&&t instanceof WeakMap},isSet:function(t){return wr&&t instanceof Set},isWeakSet:function(t){return br&&t instanceof WeakSet},isLeapYear:er,isMatch:function(t,e){var n=ge(t),r=ge(e);return!r.length||(_e(n,r)?Re(r,function(r){return Er(n,function(n){return n===r&&Ar(t[n],e[r])})>-1}):Ar(t,e))},isEqual:Ar,isEqualWith:function(t,e,n){return pe(n)?Nr(t,e,function(t,e,r,o,i){var u=n(t,e,r,o,i);return He(u)?Or(t,e):!!u},n):Nr(t,e,Or)},getType:function(t){return je(t)?"null":dr(t)?"symbol":Mn(t)?"date":ce(t)?"array":cr(t)?"regexp":sr(t)?"error":typeof t},uniqueId:function(t){return""+(Ue(t)?"":t)+oe.keyId++},getSize:ir,indexOf:rr,lastIndexOf:or,findIndexOf:Er,findLastIndexOf:Dr,toStringJSON:function(t){if(Te(t))return t;if(jn(t))try{return JSON.parse(t)}catch(t){}return{}},toJSONString:function(t){return Ue(t)?"":JSON.stringify(t)},keys:ge,values:Xe,entries:xr,pick:Mr,omit:Tr,first:function(t){return Xe(t)[0]},last:function(t){var e=Xe(t);return e[e.length-1]},each:le,forOf:function(t,e,n){if(t)if(ce(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(se(t,i)&&!1===e.call(n,t[i],i,t))break},lastForOf:function(t,e,n){var r,o;if(t)if(ce(t))for(r=t.length-1;r>=0&&!1!==e.call(n,t[r],r,t);r--);else for(r=(o=se(t)).length-1;r>=0&&!1!==e.call(n,t[o[r]],o[r],t);r--);},lastEach:hn,has:function(t,e){if(t){if(se(t,e))return!0;var n,r,o,i,u,a,c=qe(e),s=0,f=c.length;for(u=t;s<f&&(a=!1,(i=(n=c[s])?n.match(Ke):"")?(r=i[1],o=i[2],r?u[r]&&se(u[r],o)&&(a=!0,u=u[r][o]):se(u,o)&&(a=!0,u=u[o])):se(u,n)&&(a=!0,u=u[n]),a);s++)if(s===f-1)return!0}return!1},get:Be,set:function(t,e,n){if(t&&ke(e))if(!t[e]&&!se(t,e)||Pr(e)){for(var r=t,o=qe(e),i=o.length,u=0;u<i;u++)if(!Pr(o[u])){var a=u===i-1;r=Ir(r,o[u],a,a?null:o[u+1],n)}}else t[e]=n;return t},groupBy:Cr,countBy:function(t,e,n){var r=Cr(t,e,n||this);return fe(r,function(t,e){r[e]=t.length}),r},clone:we,clear:mn,remove:yn,range:Rr,destructuring:function(t,e){if(t&&e){var n=Ee.apply(this,[{}].concat(rn(arguments,1))),r=ge(n);ie(ge(t),function(e){$e(r,e)&&(t[e]=n[e])})}return t},random:Qe,min:Fr,max:sn,commafy:function(t,e){var n,r,o,i,u,a=Ee({},oe.commafyOptions,e),c=a.digits;return xn(t)?(n=(a.ceil?Kr:a.floor?qr:Ur)(t,c),i=(r=zr(c?Yr(n,c):n).split("."))[0],u=r[1],(o=i&&n<0)&&(i=i.substring(1,i.length))):i=(r=(n=Br(t).replace(/,/g,""))?[n]:[])[0],r.length?(o?"-":"")+i.replace(new RegExp("(?=(?!(\\b))(.{"+(a.spaceNumber||3)+"})+$)","g"),a.separator||",")+(u?"."+u:""):n},round:Ur,ceil:Kr,floor:qr,toFixed:Yr,toNumber:nn,toNumberString:zr,toInteger:Zr,add:function(t,e){return Jr(nn(t),nn(e))},subtract:function(t,e){var n=nn(t),r=nn(e),o=zr(n),i=zr(r),u=$r(o),a=$r(i),c=Math.pow(10,Math.max(u,a));return parseFloat(Yr((n*c-r*c)/c,u>=a?u:a))},multiply:Vr,divide:function(t,e){return Gr(nn(t),nn(e))},sum:Qr,mean:function(t,e,n){return Gr(Qr(t,e,n),ir(t))},now:Eo,timestamp:function(t,e){if(t){var n=Xn(t,e);return Mn(n)?In(n):n}return Eo()},isValidDate:oo,isDateSame:function(t,e,n){return!(!t||!e)&&("Invalid Date"!==(t=So(t,n))&&t===So(e,n))},toStringDate:Xn,toDateString:So,getWhatYear:uo,getWhatQuarter:function(t,e,n){var r,o=e&&!isNaN(e)?3*e:0;return oo(t=Xn(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),io(t,o,n)):t},getWhatMonth:io,getWhatWeek:co,getWhatDay:so,getWhatHours:function t(e,n,r){if(oo(e=Xn(e))&&!isNaN(n)){if(e.setHours(e.getHours()+Tn(n)),r===Xr)return new Date(eo(e),ro(e),e.getDate(),e.getHours());if(r===to)return new Date(In(t(e,1,Xr))-1)}return e},getWhatMinutes:function t(e,n,r){if(oo(e=Xn(e))&&!isNaN(n)){if(e.setMinutes(e.getMinutes()+Tn(n)),r===Xr)return new Date(eo(e),ro(e),e.getDate(),e.getHours(),e.getMinutes());if(r===to)return new Date(In(t(e,1,Xr))-1)}return e},getWhatSeconds:function t(e,n,r){if(oo(e=Xn(e))&&!isNaN(n)){if(e.setSeconds(e.getSeconds()+Tn(n)),r===Xr)return new Date(eo(e),ro(e),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());if(r===to)return new Date(In(t(e,1,Xr))-1)}return e},getYearDay:yo,getYearWeek:go,getMonthWeek:No,getDayOfYear:function(t,e){return oo(t=Xn(t))?er(uo(t,e))?366:365:NaN},getDayOfMonth:function(t,e){return oo(t=Xn(t))?Math.floor((In(io(t,e,to))-In(io(t,e,Xr)))/no)+1:NaN},getDateDiff:function(t,e){var n,r,o,i,u,a,c={done:!1,status:!1,time:0};if(t=Xn(t),e=e?Xn(e):tr(),oo(t)&&oo(e)&&(n=In(t))<(r=In(e)))for(i=c.time=r-n,c.done=!0,c.status=!0,a=0,u=Oo.length;a<u;a++)i>=(o=Oo[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:xo,trimLeft:Do,trimRight:Ao,escape:To,unescape:Io,camelCase:function(t){if(t=Br(t),Ro[t])return Ro[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=Co(n),r?o>2&&r+o<e?fo(Po(n,0,1))+Po(n,1,o-1)+fo(Po(n,o-1,o)):fo(Po(n,0,1))+Po(n,1,o):o>1&&r+o<e?Po(n,0,o-1)+fo(Po(n,o-1,o)):n}).replace(/(-[a-zA-Z])/g,function(t,e){return fo(Po(e,1,e.length))}),Ro[t]=n,n},kebabCase:function(t){if(t=Br(t),Fo[t])return Fo[t];if(/^[A-Z]+$/.test(t))return Co(t);var e=t.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(t,e,n,r){var o=n.length;return o>1?e+"-"+Co(Po(n,0,o-1))+"-"+Co(Po(n,o-1,o))+r:Co(e+"-"+n+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(t,e,n){var r=e.length;return Co(Po(e,0,r-1)+"-"+Po(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||"")+Co(Po(n,0,i-1))+"-"+Co(Po(n,i-1,i))+r:(e||"")+(o?"-":"")+Co(n)+(r||"")});return e=e.replace(/([-]+)/g,function(t,n,r){return r&&r+n.length<e.length?"-":""}),Fo[t]=e,e},repeat:function(t,e){return _r(Br(t),e)},padStart:vo,padEnd:function(t,e,n){var r=Br(t);return e|=0,n=He(n)?" ":""+n,r.padEnd?r.padEnd(e,n):e>r.length?((e-=r.length)>n.length&&(n+=_r(n,e/n.length)),r+n.slice(0,e)):r},startsWith:function(t,e,n){var r=Br(t);return 0===(1===arguments.length?r:r.substring(n)).indexOf(e)},endsWith:function(t,e,n){var r=Br(t),o=arguments.length;return o>1&&(o>2?r.substring(0,n).indexOf(e)===n-1:r.indexOf(e)===r.length-1)},template:$o,toFormatString:function(t,e){return $o(t,e,{tmplRE:/\{([.\w[\]\s]+)\}/g})},toString:Br,toValueString:Br,noop:function(){},property:Me,bind:function(t,e){var n=rn(arguments,2);return function(){return t.apply(e,rn(arguments).concat(n))}},once:function(t,e){var n=!1,r=null,o=rn(arguments,2);return function(){return n||(r=t.apply(e,rn(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(rn(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(rn(i))))}},throttle:function(t,e,n){var r=null,o=null,i=!1,u=null,a=Ee({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(d,e),f()},d=function(){u=null,i||!0!==s?f():l()},p=function(){r=arguments,o=this,i=!1,null!==u||!0!==c?!0===s&&(u=setTimeout(d,e)):l()};return p.cancel=function(){var t=null!==u;return t&&clearTimeout(u),f(),u=null,i=!1,t},p},debounce:function(t,e,n){var r=null,o=null,i="boolean"==typeof n?{leading:n,trailing:!n}:Ee({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()},d=function(){!0===c&&(a=null),u||!0!==s?f():l()},p=function(){u=!1,r=arguments,o=this,null===a?!0===c&&l():clearTimeout(a),a=setTimeout(d,e)};return p.cancel=function(){var t=null!==a;return t&&clearTimeout(a),f(),a=null,u=!1,t},p},delay:function(t,e){var n=rn(arguments,2),r=this;return setTimeout(function(){t.apply(r,n)},e)},unserialize:Wo,serialize:function(t){var e,n=[];return le(t,function(t,r){He(t)||(e=ce(t),Te(t)||e?n=n.concat(Lo(t,r,e)):n.push(zo(r)+"="+zo(je(t)?"":t)))}),n.join("&").replace(/%20/g,"+")},parseUrl:qo,getBaseURL:function(){if(Ho){var t=Ho.pathname,e=or(t,"/")+1;return Uo()+(e===t.length?t:t.substring(0,e))}return""},locat:function(){return Ho?qo(Ho.href):{}},browse:function(){var t,e,n,r=!1,o=!1,i=!1,u={isNode:!1,isMobile:r,isPC:!1,isDoc:!!hr};if(gr||typeof process===Le){n=ti("Edge"),e=ti("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),u.isDoc&&(t=hr.body||hr.documentElement,ie(["webkit","khtml","moz","ms","o"],function(e){u["-"+e]=!!t[e+"MatchesSelector"]}));try{o=Xo(gr.localStorage)}catch(t){}try{i=Xo(gr.sessionStorage)}catch(t){}Ee(u,{edge:n,firefox:ti("Firefox"),msie:!n&&u["-ms"],safari:!e&&!n&&ti("Safari"),isMobile:r,isPC:!r,isLocalStorage:o,isSessionStorage:i})}else u.isNode=!0;return u},cookie:Zo});let ei=!1;const ni="Asia/Shanghai";function ri(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 oi(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 ii(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&&F(u)?ui(n,e,u,i,t):u&&B(u)?ai(n,e,u,i,t):ci(n,e,u,i,t)),t),[]))}function ui(t,e,n,r,o){const i=ii(n,e[r]||{},{excludeAll:t?.excludeAll,...t});Object.keys(i).length&&o.push([r,i])}function ai(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=ii(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(F(e)&&!F(r)||B(e)&&!B(r)||typeof e!=typeof r||!r)i.push(e);else if(F(e)||B(e)){const n=ii(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 ci(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 si(t,e,n){const r={},o=["rowId","row_id"],i=n?.excludeAll||[],u=n?.exclude||[];for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&![...i,...o].includes(a)&&![...u,...o].includes(a)){const o=t[a],u=e[a];if(Array.isArray(u)&&Array.isArray(o)){(o.length!==u.length||o.some((t,e)=>"object"==typeof t&&"object"==typeof u[e]?Object.keys(si(t,u[e],{excludeAll:i,...n?.[a]})).length>0:t!==u[e]))&&(r[a]=u)}else if("object"==typeof u&&"object"==typeof o&&null!==u&&null!==o){const t=si(o,u,{excludeAll:i,...n?.[a]});Object.keys(t).length>0&&(r[a]=t)}else o!==u&&String(o)!==String(u)&&(r[a]=u)}return r}function fi(t={},e={}){let n;for(n in e)t[n]=F(t[n])?fi(t[n],e[n]):t[n]=e[n];return t}function li(t,e="px"){return Ne.isNumber(t)||/^\d+$/.test(`${t}`)?`${t}${e}`:`${t||""}`}function di(t,e,n){return i({get:()=>new Proxy(t[e],{set:(t,r,o)=>(n(`update:${e}`,{...t,[r]:o}),!0)}),set(t){n(`update:${e}`,t)}})}function pi(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 hi(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=>hi(t));const e={};return Object.keys(t).forEach(n=>{e[n]=hi(t[n])}),e}function gi(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 mi(...t){for(const e of t)if(null!=e)return e}function yi(...t){return a(c(t))}function vi(){const t=new Event("resize");window.dispatchEvent(t)}function wi(t,e,n="prop",r="content"){t.forEach(t=>{Object.prototype.hasOwnProperty.call(t,n)&&(B(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 bi=function(t,e="YYYY-MM-DD HH:mm:ss",n=ni){return R(t)||""===t||0===t||"0"===t?"":r(t).isValid()?(ei||(r.extend(f),r.extend(l),ei=!0),n===ni?r(t).utcOffset(480).format(e):r(t).tz(n).format(e)):""};function Si(t,e){const{format:n="YYYY-MM-DD HH:mm:ss",tz:r,searchValue:o=" ",replaceValue:i="\n"}=e||{};return bi(t,n,r).replaceAll(o,i)}function Ei(t){return s(t)}function Ni(t,e){return t?e&&0!==e.length?e.reduce((t,e)=>(delete t[e],t),{...t}):t:{}}function Oi(t,e=200,n={}){const{leading:r=!1,trailing:o=!0,maxWait:i}=n;let u,a,c,s,f,l=0;function d(e){const n=s;return s=void 0,l=e,f=t(...n),f}function p(){void 0!==u&&(window.clearTimeout(u),u=void 0),void 0!==a&&(window.clearTimeout(a),a=void 0)}function h(){p(),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 m(){const t=Date.now();if(g(t))return void function(t){u=void 0,o&&void 0!==s?d(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(m,n):void 0}function y(){const t=Date.now();p(),void 0!==s&&d(t)}const v=(...t)=>{const n=Date.now(),o=g(n);if(s=t??[],c=n,o){if(void 0===u)return function(t){return l=t,p(),u=window.setTimeout(m,e),void 0!==i&&(a=window.setTimeout(y,i)),r?d(t):f}(n);if(void 0!==i)return p(),u=window.setTimeout(m,e),a=window.setTimeout(y,i),r?d(n):f}return void 0===u&&(u=window.setTimeout(m,e),void 0!==i&&(a=window.setTimeout(y,i))),f};return v.isPending=()=>void 0!==u||void 0!==a,v.cancel=()=>{h()},v.flush=(...e)=>{if(!v.isPending())return e.length>0?t(...e):f;const n=void 0!==s?s:e;return h(),t(...n)},v}function Ai(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()),d((t,e,r)=>n.includes(e)||Array.isArray(t[e])&&Array.isArray(r)?(t[e]=r,!0):void 0)(t,...e)}function Di(...t){let e=new p(t[0]??0);for(let n=1;n<t.length;n++)e=e.add(new p(t[n]??0));return e.toNumber()}function xi(...t){let e=new p(t[0]??0);for(let n=1;n<t.length;n++)e=e.sub(new p(t[n]??0));return e.toNumber()}function ji(...t){let e=new p(t[0]??0);for(let n=1;n<t.length;n++)e=e.mul(new p(t[n]??0));return e.toNumber()}function Mi(...t){let e=new p(t[0]??0);for(let n=1;n<t.length;n++)e=e.div(new p(t[n]??0));return e.toNumber()}function Ti(...t){return t.reduce((t,e)=>Pi(t??0).add(e??0).toNumber(),0)}function ki(t,e){return t.reduce((t,n)=>Pi(t??0).add(e(n)??0).toNumber(),0)}function Ii(t,e,n){const r={},o=n;return t.forEach(t=>{const n=e(t);if(n){const e=o(t);r[n]=Pi(r[n]||0).add(e).toNumber()}}),r}function Pi(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)}void 0===Promise.withResolvers&&(Promise.withResolvers=function(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}});class Ci{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 Ri{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 Fi=!0,$i=25200,_i={key:"_11111000001111@",iv:"@11111000001111_"};class Wi{key;iv;constructor(t={}){const{key:e,iv:n}=t;e&&(this.key=y?.(e)),n&&(this.iv=y?.(n))}get getOptions(){return{mode:v,padding:w,iv:this.iv}}encryptByAES(t){return h(t,this.key,this.getOptions).toString()}decryptByAES(t){return g(t,this.key,this.getOptions).toString(m)}}function zi({prefixKey:t="",storage:e=sessionStorage,key:n=_i.key,iv:r=_i.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 Wi({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:R(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(R(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 Li(t=sessionStorage,e={}){return zi(function(t,e={}){return{hasEncrypt:Fi,storage:t,prefixKey:"tt-admin",...e}}(t,e))}function Hi(t={}){return Li(sessionStorage,{...t,timeout:$i})}function Ui(t={}){return Li(localStorage,{...t,timeout:$i})}function Ki(t,e,n,r){if(!t)return!1;const o=t.split(".").map(t=>Number(t));if(o.length<2)return!1;const i=o[0],u=o[1],a=o[2];return i>e||!(i<e)&&(u>n||!(u<n)&&(void 0===r||(a??0)>=r))}function qi(t,e,n){const r=b(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 Bi(t,e,n){const r=b(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}const Yi=new Set(["*","all","ALL","All"]),Zi=t=>Yi.has(String(t)),Vi=t=>{if(null==t)return"";let e;if(Array.isArray(t))e=t;else{if(!H(t))return Zi(t)?"全部":String(t);e=t.split(",")}return e.map(t=>Zi(t)?"全部":t).join(",")};function Ji(t,e,n){let{vk:r,ck:o}=n||{};const{labelField:i,valueField:u,hasDefault:a=!0}=n||{};r=r||i||"label",o=o||u||"value","number"==typeof e&&(e=e.toString());let c=[e];Array.isArray(e)?c=e:H(e)&&(c=e?.split(","));const s=t=>a?t:void 0;return c?.map(e=>Zi(e)?Vi(e):Array.isArray(t)?t?.find(t=>t[o]==e)?.[r]??s(e):t?.[e]??s(e))?.join()}const Gi=(t=[])=>{let e=[];return e=t.filter(t=>Boolean(Object.values(t).filter(Boolean).length)),e.length?e:void 0},Qi=(t,e=",")=>Array.isArray(t)?t:t?.split(e).filter(Boolean)??[],Xi=(t=[])=>t.filter(Boolean),tu=(t,e)=>t()?e:[],eu=(t,e=",")=>Array.isArray(t)?t.join(e):t,nu=99999999,ru=9999;export{Yi as ALL_OPTION_CODES,Vi as ALL_OPTION_TO_LABEL,Ji as CODE_TO_VALUE,$i as DEFAULT_CACHE_TIME,Xi as FILTER_BOOLEAN,Gi as FILTER_EMPTY,tu as GET_LIST_BY_FUNC,Zi as IS_ALL_OPTION_CODE,eu as JOIN_BY_SEPARATOR,nu as MAX_PAGE_SIZE,Qi as SPLIT_BY_SEPARATOR,Ci as StateHandler,Ri as StateHandlerOld,ru as TABLE_PAGE_SIZE,Lt as TtHttp,Di as add,wi as arrGive,gi as arrayToTree,pi as bindMethods,_i as cacheCipher,Pi as calc,oi as calcWordsWidth,S as capitalize,Ki as checkVersion,yi as clnm,Ei as cloneDeep,Ii as clsSumTotalBy,si as compareObjects,zi as create,Ui as createLocalStorage,Hi as createSessionStorage,Li as createStorage,bi as dateFormat,Si as dateFormatBreak,Oi as debounce,hi as deepCopy,fi as deepMerge,Mi as divide,O as downloadFile,Fi as enableStorageEncryption,ne as extractIdFromTitle,Qt as extractResourceFromApi,Kt as formatAmount,qt as formatAmountOfPlace,Yt as formatDecimal,Zt as formatFileSize,qi as formatFormData,Vt as formatPeriod,Bt as formatPlaceOfAmount,Gt as formatToDate,Jt as formatToDateTime,ee as generateFormName,Xt as generateTestId,at as getBrowserType,ut as getDeviceType,ii as getDifference,mi as getFirstNonNullOrUndefined,Wt as getPageKey,ri as getStorage,k as is,st as isAndroid,B as isArray,K as isBoolean,G as isClient,W as isDate,pt as isDayjsObject,I as isDef,Z as isElement,$ as isEmpty,_ as isEmptyZero,et as isError,lt as isExternal,ot as isFalse,ht as isFormData,U as isFunction,ct as isIos,dt as isJson,V as isMap,C as isNull,R as isNullOrUnDef,z as isNumber,F as isObject,ft as isPC,tt as isPrimitive,L as isPromise,q as isRegExp,J as isServer,rt as isSet,H as isString,X as isStringNumber,nt as isSymbol,it as isTrue,P as isUndefined,Q as isUrl,re as isValidTestId,Y as isWindow,N as kebabToCamelCase,zt as loadingService,Ai as mergeWithArrayOverride,ji as multiply,Ni as omit,Bi as revertFormatFormData,ai as setDifferenceArr,ci as setDifferenceField,ui as setDifferenceObj,xi as subtract,Ti as sumTotal,ki as sumTotalBy,li as toCssUnit,te as toKebabCase,vi as triggerWindowResize,E as trim,di as useVModel,Ht as withInstall};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|