easy-soft-utility 2.4.20 → 2.4.23

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/es/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ export * from "./utils/accessWayAssist";
2
+ export * from "./utils/applicationAssist";
3
+ export * from "./utils/authorityAssist";
1
4
  export * from "./utils/base64";
2
5
  export * from "./utils/cacheAssist";
3
6
  export * from "./utils/checkAssist";
@@ -9,6 +12,7 @@ export * from "./utils/convertAssist";
9
12
  export * from "./utils/datetime";
10
13
  export * from "./utils/formatAssist";
11
14
  export * from "./utils/htmlAssist";
15
+ export * from "./utils/localMetaDataAssist";
12
16
  export * from "./utils/localStorageAssist";
13
17
  export * from "./utils/lodashTools";
14
18
  export * from "./utils/loggerAssist";
@@ -17,7 +21,11 @@ export * from "./utils/meta";
17
21
  export * from "./utils/navigationAssist";
18
22
  export * from "./utils/nearestLocalhostNotify";
19
23
  export * from "./utils/notificationPromptAssist";
24
+ export * from "./utils/paramsDataAssist";
20
25
  export * from "./utils/promptAssist";
21
26
  export * from "./utils/queryString";
27
+ export * from "./utils/requestAssist";
28
+ export * from "./utils/runtimeAssist";
22
29
  export * from "./utils/sessionStorageAssist";
30
+ export * from "./utils/tokenAssist";
23
31
  export * from "./utils/userInterfaceGenerate";
package/es/index.js CHANGED
@@ -1 +1,3 @@
1
- import t from"node-cache";import n from"lodash/isBoolean";import e from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import i from"lodash/isNull";import a from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import g from"lodash/difference";import h from"lodash/dropRight";import v from"lodash/endsWith";import m from"lodash/filter";import p from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import A from"lodash/forEach";import x from"lodash/get";import S from"lodash/gte";import C from"lodash/map";import D from"lodash/memoize";import M from"lodash/remove";import E from"lodash/reverse";import O from"lodash/round";import I from"lodash/set";import j from"lodash/size";import N from"lodash/sortBy";import k from"lodash/sortedUniq";import T from"lodash/split";import F from"lodash/startsWith";import P from"lodash/trim";import Y from"lodash/uniqBy";import W from"lodash/toNumber";import L from"lodash/toString";import B from"object-hash";import H from"dayjs";import{stringify as U,parse as R}from"qs";var G,J="function"==typeof atob,K="function"==typeof btoa,Q="function"==typeof Buffer,V="function"==typeof TextDecoder?new TextDecoder:void 0,z="function"==typeof TextEncoder?new TextEncoder:void 0,q=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Z=(G={},q.forEach((function(t,n){return G[t]=n})),G),$=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,X=String.fromCharCode.bind(String),_="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(n))},tt=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},nt=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},et=K?function(t){return btoa(t)}:Q?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var n,e,r,o,i="",a=t.length%3,u=0;u<t.length;){if((e=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=q[(n=e<<16|r<<8|o)>>18&63]+q[n>>12&63]+q[n>>6&63]+q[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i},rt=Q?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var n=[],e=0,r=t.length;e<r;e+=4096)n.push(X.apply(null,t.subarray(e,e+4096)));return et(n.join(""))},ot=function(t){if(t.length<2)return(n=t.charCodeAt(0))<128?t:n<2048?X(192|n>>>6)+X(128|63&n):X(224|n>>>12&15)+X(128|n>>>6&63)+X(128|63&n);var n=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return X(240|n>>>18&7)+X(128|n>>>12&63)+X(128|n>>>6&63)+X(128|63&n)},it=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,at=Q?function(t){return Buffer.from(t,"utf8").toString("base64")}:z?function(t){return rt(z.encode(t))}:function(t){return et(t.replace(it,ot))},ut=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ct=function(t){switch(t.length){case 4:var n=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return X(55296+(n>>>10))+X(56320+(1023&n));case 3:return X((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return X((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},lt=J?function(t){return atob(nt(t))}:Q?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!$.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var n,e,r,o="",i=0;i<t.length;)n=Z[t.charAt(i++)]<<18|Z[t.charAt(i++)]<<12|(e=Z[t.charAt(i++)])<<6|(r=Z[t.charAt(i++)]),o+=64===e?X(n>>16&255):64===r?X(n>>16&255,n>>8&255):X(n>>16&255,n>>8&255,255&n);return o},st=Q?function(t){return _(Buffer.from(t,"base64"))}:function(t){return _(lt(t),(function(t){return t.charCodeAt(0)}))},ft=Q?function(t){return Buffer.from(t,"base64").toString("utf8")}:V?function(t){return V.decode(st(t))}:function(t){return lt(t).replace(ut,ct)},dt=function(t){return ft(nt(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function gt(t){return dt(t)}function ht(t){return function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?tt(at(t)):at(t)}(t)}function vt(t){return 1*t<10?"0".concat(t):t}function mt(t){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(t)}function pt(t){var n=function(t,n){if("object"!==mt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===mt(n)?n:String(n)}function yt(t,n,e){return(n=pt(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function wt(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function bt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?wt(Object(e),!0).forEach((function(n){yt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function At(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return x(t,n,e)}function xt(t,n){return O(t,n)}function St(t,n,e){return v(t,n,e)}function Ct(t){return k(t)}function Dt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return T(t,n,e)}function Mt(t,n){return f(t,n)}function Et(t,n,e){return d(t,n,e)}function Ot(t){return E(t)}function It(t,n){return A(t,n)}function jt(t,n){return S(t,n)}function Nt(t){return D(t)}function kt(t,n){return b(t,n)}function Tt(t){return w(t)}function Ft(t,n){return F(t,n)}function Pt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return h(t,n)}function Yt(t,n){return Y(t,n)}function Wt(t){return P(t)}function Lt(t,n,e){return s(t,n,e)}function Bt(t,n){return M(t,n)}function Ht(t,n){return C(t,n)}function Ut(t,n,e){return I(t,n,e)}function Rt(t){return j(t)}function Gt(t,n){return g(t,n)}function Jt(t,n){return m(t,n)}function Kt(t,n){return N(t,n)}function Qt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,n,e)}function Vt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t,n,e)}function zt(t){return en(t)}function qt(t){var n="".concat(en(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==n)return!1;var e=new Date(n[1],n[3]-1,n[4]);return e.getFullYear()===parseInt(n[1],10)&&e.getMonth()+1===parseInt(n[3],10)&&e.getDate()===parseInt(n[4],10)}function Zt(t){return a(t)}function $t(t){var n="".concat(en(t)?null:t);if(""===n)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(n)}function Xt(t,n){return r(t,n)}function _t(t,n){return JSON.stringify(t||{})===JSON.stringify(n||{})}function tn(t){return o(t)}function nn(t){return n(t)}function en(t){return l(t)}function rn(t){return i(t)}function on(t){return e(t)}function an(t){return c(t)}function un(t){return Array.isArray(t)}function cn(t){return u(t)}function ln(t){return null!==t&&"object"===mt(t)&&!un(t)}function sn(t){return ln(t)&&tn(t.then)&&tn(t.catch)}function fn(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function dn(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function gn(t){return""===Wt(s(t||""," ",""))}function hn(t,n){var e=!1;return un(t)?(t.some((function(t){return t===n&&(e=!0,!0)})),e):e}var vn="easy-soft-utility",mn={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},pn={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},yn={dataLoading:!0},wn={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},bn="0",An=0,xn="1970-01-01 00:00",Sn={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Cn={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},Dn={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Mn={moveUp:"moveUp",moveDown:"moveDown"},En={no:"0",yes:"1"},On={no:0,yes:1},In={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},jn={auto:"auto",text:"text",object:"object"},Nn={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},kn={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},Tn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",Fn=Tn,Pn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Yn=function(t,n,e){var r=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+n];return i};var Wn=function(t,n,e){var r=t.length;return e=void 0===e?r:e,!n&&e>=r?t:Yn(t,n,e)},Ln=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Bn=function(t){return Ln.test(t)};var Hn=function(t){return t.split("")},Un="\\ud800-\\udfff",Rn="["+Un+"]",Gn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Jn="\\ud83c[\\udffb-\\udfff]",Kn="[^"+Un+"]",Qn="(?:\\ud83c[\\udde6-\\uddff]){2}",Vn="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="(?:"+Gn+"|"+Jn+")"+"?",qn="[\\ufe0e\\ufe0f]?",Zn=qn+zn+("(?:\\u200d(?:"+[Kn,Qn,Vn].join("|")+")"+qn+zn+")*"),$n="(?:"+[Kn+Gn+"?",Gn,Qn,Vn,Rn].join("|")+")",Xn=RegExp(Jn+"(?="+Jn+")|"+$n+Zn,"g");var _n=Hn,te=Bn,ne=function(t){return t.match(Xn)||[]};var ee=function(t){return te(t)?ne(t):_n(t)},re="object"==mt(Pn)&&Pn&&Pn.Object===Object&&Pn,oe="object"==("undefined"==typeof self?"undefined":mt(self))&&self&&self.Object===Object&&self,ie=(re||oe||Function("return this")()).Symbol;var ae=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o},ue=Array.isArray,ce=ie,le=Object.prototype,se=le.hasOwnProperty,fe=le.toString,de=ce?ce.toStringTag:void 0;var ge=function(t){var n=se.call(t,de),e=t[de];try{t[de]=void 0;var r=!0}catch(t){}var o=fe.call(t);return r&&(n?t[de]=e:delete t[de]),o},he=Object.prototype.toString;var ve=ge,me=function(t){return he.call(t)},pe=ie?ie.toStringTag:void 0;var ye=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":pe&&pe in Object(t)?ve(t):me(t)},we=function(t){return null!=t&&"object"==mt(t)};var be=ae,Ae=ue,xe=function(t){return"symbol"==mt(t)||we(t)&&"[object Symbol]"==ye(t)},Se=ie?ie.prototype:void 0,Ce=Se?Se.toString:void 0;var De=function t(n){if("string"==typeof n)return n;if(Ae(n))return be(n,t)+"";if(xe(n))return Ce?Ce.call(n):"";var e=n+"";return"0"==e&&1/n==-Infinity?"-0":e},Me=De;var Ee=Wn,Oe=Bn,Ie=ee,je=function(t){return null==t?"":Me(t)};var Ne=function(t){return function(n){n=je(n);var e=Oe(n)?Ie(n):void 0,r=e?e[0]:n.charAt(0),o=e?Ee(e,1).join(""):n.slice(1);return r[t]()+o}},ke=Ne("toLowerCase"),Te=Ne("toUpperCase");function Fe(t){return B(t,{algorithm:"sha1"})}function Pe(t){return B(t,{algorithm:"md5"})}function Ye(t,n){var e=Math.pow(10,n+1),r=Math.floor(We(t)*e);return 10*Math.round(r/10)/e}function We(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=W(t),r=Number.isNaN(e)?0:e;return null==(n||null)?r:Ye(r,n)}function Le(t,n,e){if(!Zt(t))throw new Error("value must be number value");var r=We(t);return void 0!==n&&(r=Math.max(t,n)),void 0!==e&&(r=Math.min(r,e)),r}function Be(t){return $t(t)?parseFloat(t,10):0}function He(t){return"".concat(Be(1e3*We(t)/10),"%")}function Ue(t){return L(t)}function Re(t){return!!t}function Ge(t){return Ue(t).toUpperCase()}function Je(t){return Te(t)}function Ke(t){return Ue(t).toLowerCase()}function Qe(t){return ke(t)}function Ve(t){if(null==(t||null))return null;if(on(t))return t;if(an(t)&&t.indexOf("T")<0){var n=t.replace(/\-/g,"/");return new Date(n)}return new Date(t)}function ze(t){return sn(t)?t:Promise.resolve(t)}function qe(t,n){return xt(t,n)}function Ze(t){var n=t.target,e=t.convert;if(tn(e))return e(n);if(an(e))switch(e){case Sn.number:return We(n);case Sn.datetime:return Ve(n);case Sn.string:return Ue(n);case Sn.money:return Be(n);case Sn.array:return null==(n||null)?[]:un(n)?n:[n];default:return n}return n}function $e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Xe(t,n){if(t){if("string"==typeof t)return $e(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?$e(t,n):void 0}}function _e(t){return function(t){if(Array.isArray(t))return $e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xe(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t){return new Function("return ".concat(t))()}function nr(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function er(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function rr(){var t;return{versions:er(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function or(t){var n=t.seed,e=t.min||0;return e+(9301*n+49297)%233280/233280*((t.max||1)-e)}function ir(t){return null==t?null:JSON.parse(JSON.stringify(t))}function ar(t,n,e){var r=[];return null!=t&&(r=_e(t)),null!=e&&(r=[].concat(_e(r),_e(e))),null!=n&&(r=[n].concat(_e(r))),r}function ur(t,n,e,r,o){var i=r,a=void 0===e?null:e;return null!=n&&("function"==typeof convertValue?i.initialValue=o(t)||a:i.initialValue=t||a),i}function cr(t,n,e){var r=null;return null==n||(e||[]).forEach((function(e){e[t]===n&&(r=e)})),r}function lr(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],i=0;if(e=e||r.length,n)for(i=0;i<n;i++)o[i]=r[0|Math.random()*e];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",i=0;i<36;i++)o[i]||(t=0|16*Math.random(),o[i]=r[19===i?3&t|8:t]);return o.join("")}function sr(t){var n=t.pageNo,e=t.pageSize,r=t.total;return!((r||0)<=0)&&(n||0)*(e||0)<(r||0)}function fr(){return"development"===process.env.NODE_ENV}function dr(t){return Object.keys(t).map((function(n){return t[n]})).join(",")}function gr(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];var i=[t].concat(r).filter((function(t){return an(t)&&!gn(t)}));return"".concat(i.join("::"),"::").concat(gn(n)?"":n)}var hr="loggerAssist",vr={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},mr={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function pr(t,n){return"".concat(Ue(t)).concat(gn(n)?"":" -> ".concat(n))}function yr(t){var n=t.text,e=t.color,r=void 0===e?"":e,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation,u=void 0===a?"":a,c=pr(an(n)?n:JSON.stringify(n),u);gn(yr)||console.log("%c%s","color:".concat(r,";"),"".concat(gn(i)?"":"[".concat(Ge(i),"] ")).concat(c))}function wr(t){var n=t.data,e=t.color,r=void 0===e?"":e,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation;yr({text:"check the following object data",color:r,dataDescription:i,ancillaryInformation:void 0===a?"":a}),console.log(n)}function br(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jn.auto,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:In.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=kr();if(!vr.loggerDisplaySwitchSetComplete&&!vr.loggerDisplaySwitchPromptSetInformationComplete){var i=gr(vn,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",hr);yr({text:i,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}vr.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||e===In.exception){var a=null==(n||null)||gn(n)?jn.auto:n;if(!hn([jn.auto,jn.text,jn.object],a))throw new Error("Invalid log display mode -> ".concat(a));if(a===jn.auto&&(a=an(t)?jn.text:jn.object),e!==In.exception){if(o){if(e===In.trace&&(a===jn.text&&yr({text:t,color:mr.trace,dataDescription:"trace",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.trace,dataDescription:"trace",ancillaryInformation:r})),e===In.debug&&(a===jn.text&&yr({text:t,color:mr.debug,dataDescription:"debug",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.debug,dataDescription:"debug",ancillaryInformation:r})),e===In.warn&&(a===jn.text&&yr({text:t,color:mr.warn,dataDescription:"warn",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.warn,dataDescription:"warn",ancillaryInformation:r})),e===In.info&&(a===jn.text&&yr({text:t,color:mr.info,dataDescription:"info",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.info,dataDescription:"info",ancillaryInformation:r})),e===In.execute&&(a===jn.text&&yr({text:t,color:mr.execute,dataDescription:"execute",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.execute,dataDescription:"execute",ancillaryInformation:r})),e===In.config&&(a===jn.text&&yr({text:t,color:mr.config,dataDescription:"config",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.config,dataDescription:"config",ancillaryInformation:r})),e===In.stack){a===jn.text&&yr({text:t,color:mr.stack,dataDescription:"stack",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(Lt(u,"Error:","Stack:"))}}e===In.error&&(a===jn.text&&yr({text:t,color:mr.error,dataDescription:"error",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.error,dataDescription:"error",ancillaryInformation:r}))}}else{a===jn.text&&yr({text:t,color:mr.exception,dataDescription:"exception",ancillaryInformation:r}),a===jn.object&&wr({data:t,color:mr.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function Ar(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.warn,n):Nr(t,In.warn,n)}function xr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.info,n):Nr(t,In.info,n)}function Sr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.config,n):Nr(t,In.config,n)}function Cr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.stack,n):Nr(t,In.stack,n)}function Dr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.trace,n):Nr(t,In.trace,n)}function Mr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.debug,n):Nr(t,In.debug,n)}function Er(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.execute,n):Nr(t,In.execute,n)}function Or(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.error,n):Nr(t,In.error,n)}function Ir(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";an(t)?jr(t,In.exception,n):Nr(t,In.exception,n)}function jr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:In.trace,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";br(t,jn.text,n,e)}function Nr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:In.trace,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";br(t,jn.object,n,e)}function kr(){return Re(vr.display)}function Tr(t){fr()&&yr({text:"setLoggerDisplaySwitch",color:mr.execute,dataDescription:"execute",ancillaryInformation:""}),vr.display=Re(t),vr.loggerDisplaySwitchSetComplete=!0}var Fr={mountComplete:!1,target:null};function Pr(n){if(Er("setCacheMount"),!cn(n))throw Mr(n),new Error(gr(vn,"setCacheMount -> cache mount target must be a object, current type is ".concat(mt(n)),"cacheAssist"));null==(n.localRuntimeCache||null)&&(n.localRuntimeCache=new t),Fr.target=n,Fr.mountComplete=!0,xr("setCacheMount -> cache mount success.")}function Yr(t){return gn(t)?(Ir("checkKey -> cache key is null or empty"),!1):!(!an(t)&&!Zt(t))||(Ir("cache key must be string or number, current type id ".concat(mt(t))),!1)}function Wr(){if(!Fr.mountComplete||!Fr.target||!Fr.target.localRuntimeCache)throw new Error("getCachePool -> please use setCacheMount function to set cache mount target before get it.");return Fr.target.localRuntimeCache}function Lr(t){var n=t.key,e=Wr();if(null==e)throw new Error("cache pool not exist");return e.has(n)}function Br(t){var n=t.key,e=t.value,r=t.expiration,o=void 0===r?0:r;if(Yr(n)){var i=Wr();if(null==i)throw new Error("cache pool not exist");return i.set(n,e,o)}}function Hr(t){if(!un(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var n=[];if(t.forEach((function(t){var e=bt(bt({},{key:"",value:"",expiration:0}),t),r=e.key,o=e.value,i=e.expiration;if(!gn(r)){if(!Yr(r))return;n.push({key:r,value:o,ttl:i})}})),n.length<=0)return!1;var e=Wr();if(null==e)throw new Error("cache pool not exist");return e.mset(n)}function Ur(t){var n=t.key,e=Wr();if(null==e)throw new Error("cache pool not exist");return e.getTtl(n)}function Rr(t){var n=t.key,e=t.expiration,r=Wr();if(null==r)throw new Error("cache pool not exist");return r.ttl(n,e)}function Gr(t){var n=t.key,e=Wr();if(null==e)throw new Error("cache pool not exist");return e.get(n)}function Jr(){var t=Wr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Kr(t){if(!un(t))throw new Error("getMultiCache: list must be array");var n=Wr();if(null==n)throw new Error("cache pool not exist");return n.mget(t)}function Qr(t){var n=t.key,e=Wr();if(null==e)throw new Error("cache pool not exist");return e.take(n)}function Vr(t){var n=t.key;if(Yr(n)){var e=Wr();if(null==e)throw new Error("cache pool not exist");return e.del(n)}}function zr(t){if(!un(t))throw new Error("deleteMultiCache: list must be array");var n=Wr();if(null==n)throw new Error("cache pool not exist");return n.del(t)}function qr(){var t=Wr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Zr(){var t=Wr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}function $r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,n)||Xe(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(t){var n=t.seed;return"#".concat("00000".concat((16777216*or({seed:n})<<0).toString(16)).substring(-6))}function _r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var i="#",a=1;a<4;a+=1)i+=o.slice(a,a+1).concat(o.slice(a,a+1));o=i}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return n?"".concat(n,"(").concat(u.join(","),")"):e?u:u.join(",")}return Ir("Invalid hex color -> ".concat(t)),o}function to(t){var n=t.progress,e=t.startColor,r=t.endColor,o=_r(e,null,!0),i=_r(r,null,!0),a=$r(o,3),u=a[0],c=a[1],l=a[2],s=$r(i,3),f=s[0],d=s[1],g=s[2],h=[(u+Math.round((f-u)*n)).toString(16),(c+Math.round((d-c)*n)).toString(16),(l+Math.round((g-l)*n)).toString(16)];return"#".concat(h.join("").toUpperCase())}function no(t){var n=t.direct,e=t.list,r=void 0===e?[]:e,o=Zt(n)?"".concat(n,"deg"):n;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function eo(t,n){var e=Ve(t);return e.setHours(e.getHours()+n)}function ro(t,n){var e=Ve(t);return e.setMinutes(e.getMinutes()+n)}function oo(t,n){var e=Ve(t);return e.setSeconds(e.getSeconds()+n)}function io(){return new Date}function ao(t,n){var e=t.getTime(),r=(n.getTime()-e)/1e3,o=parseInt(r/86400),i=parseInt((r-24*o*60*60)/3600),a=parseInt((r-24*o*60*60-60*i*60)/60);return{day:o,hour:i,minute:a,second:r-24*o*60*60-60*i*60-60*a}}var uo=function(t,n,e){var r=Ve(t),o=n?Ve(n):new Date,i=o.getTime()-r.getTime();return"second"===e&&i/1e3||"minute"===e&&i/1e3/60||"hour"===e&&i/1e3/60/60||"day"===e&&i/1e3/60/60/24||"week"===e&&i/1e3/60/60/24/7||"month"===e&&co(r,o)||"quarter"===e&&co(r,o)/3||"year"===e&&co(r,o)/12||i},co=function(t,n){var e=Ve(t),r=Ve(n);return 12*(e.getFullYear()-r.getFullYear())+e.getMonth()-r.getMonth()};function lo(t){var n=t.data;return H(n).day()}function so(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=H().day();if(!t)return n;var e="";switch(We(n)){case 0:e="日";break;case 1:e="一";break;case 2:e="二";break;case 3:e="三";break;case 4:e="四";break;case 5:e="五";break;case 6:e="六";break;default:e=""}return gn(e)?"":"星期".concat(e)}function fo(t){var n=t.data,e=t.places,r=void 0===e?2:e,o=t.thousand,i=void 0===o?",":o,a=t.decimal;return go({data:n,places:r,symbol:"",thousand:i,decimal:void 0===a?".":a})}function go(t){var n=t.data,e=t.places,r=void 0===e?2:e,o=t.symbol,i=void 0===o?"¥":o,a=t.thousand,u=void 0===a?",":a,c=t.decimal,l=void 0===c?".":c,s=n||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==i?i:"¥",g=u||",",h=l||".",v=s<0?"-":"",m=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",p=m.length;return d+v+((p=p>3?p%3:0)?m.substr(0,p)+g:"")+m.substr(p).replace(/(\d{3})(?=\d)/g,i+"1"+g)+(f?h+Math.abs(s-We(m)).toFixed(f).slice(2):"")}function ho(t){var n,e,r,o=t.target,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=i[0]+"元";if(-1===(o=o.toString()).indexOf("."))n=o,e="";else{var s=$r(r=o.split("."),2);n=s[0],e=s[1],e=r[1].substr(0,4)}if(parseInt(n,10)>0){for(var f=0,d=n.length,g=0;g<d;g+=1){var h=n.substr(g,1),v=d-g-1,m=v/4,p=v%4;"0"===h?f+=1:(f>0&&(l+=i[0]),f=0,l+=i[parseInt(h,10)]+a[p]),0===p&&f<4&&(l+=u[m])}l+="元"}if(""!==e)for(var y=e.length,w=0;w<y;w+=1){var b=e.substr(w,1);"0"!==b&&(l+=i[Number(b)]+c[w])}return""===l&&(l+=i[0]+"元"),l}function vo(t){var n=t.data,e=t.fmt,r=void 0===e?Dn.yearMonthDayHourMinuteSecond:e;return null==(n||null)?"":H(n).format(r)}function mo(t){var n=t.target,e=t.format,r=t.option,o=void 0===r?{}:r;if(tn(e))return e(n);if(an(e))switch(e){case Cn.money:return go({data:n});case Cn.datetime:return vo({data:n});case Cn.chineseMoney:return ho({target:n,option:o});case Cn.percentage:return"".concat(qe(100*n,1),"%");default:return n}return n}function po(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=bt(bt({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),e||{}),o=uo(t,n),i=o<0?1:0,a=Math.abs(o)/1e3,u=a/60,c=u/60,l=c/24,s=l/365,f=function(t,n){return t.replace(/%d/i,n)};return a<10&&f(r.second[i],parseInt(a))||a<45&&f(r.seconds[i],parseInt(a))||a<90&&f(r.minute[i],1)||u<45&&f(r.minutes[i],parseInt(u))||u<90&&f(r.hour[i],1)||c<24&&f(r.hours[i],parseInt(c))||c<42&&f(r.day[i],1)||l<30&&f(r.days[i],parseInt(l))||l<45&&f(r.month[i],1)||l<365&&f(r.months[i],parseInt(l/30))||s<1.5&&f(r.year[i],1)||f(r.years[i],parseInt(s))}function yo(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return po(t,io(),n)}function wo(t){return gn(t.text||null)&&Ar(gr(vn,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var bo={showOpenMessage:function(t){var n=t.text;t.duration,t.onClose,xr(n)},showLoadingMessage:function(t){var n=t.text;t.duration,t.onClose,xr(n)},showInfoMessage:function(t){var n=t.text;t.duration,t.onClose,xr(n)},showSuccessMessage:function(t){var n=t.text;t.duration,t.onClose,xr(n)},showWarnMessage:function(t){var n=t.text;t.duration,t.onClose,Ar(n)},showWarningMessage:function(t){var n=t.text;t.duration,t.onClose,Ar(n)},showErrorMessage:function(t){var n=t.text;t.duration,t.onClose,Or(n)},setErrorMessageDisplayMonitorComplete:!1};function Ao(t){bo.showOpenMessage=t}function xo(t){bo.showLoadingMessage=t}function So(t){bo.showInfoMessage=t}function Co(t){bo.showSuccessMessage=t}function Do(t){bo.showWarnMessage=t}function Mo(t){bo.showWarningMessage=t}function Eo(t){bo.showErrorMessage=t,bo.setErrorMessageDisplayMonitorComplete=!0}function Oo(t){Io({text:t})}function Io(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showOpenMessage)&&(wo({text:n}),bo.showOpenMessage({text:n,duration:r,onClose:i}))}function jo(t){No({text:t})}function No(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showLoadingMessage)&&(wo({text:n}),bo.showLoadingMessage({text:n,duration:r,onClose:i}))}function ko(t){To({text:t})}function To(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showInfoMessage)&&(wo({text:n}),bo.showInfoMessage({text:n,duration:r,onClose:i}))}function Fo(t){Po({text:t})}function Po(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showSuccessMessage)&&(wo({text:n}),bo.showSuccessMessage({text:n,duration:r,onClose:i}))}function Yo(t){Wo({text:t})}function Wo(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showWarnMessage)&&(wo({text:n}),bo.showWarnMessage({text:n,duration:r,onClose:i}))}function Lo(t){Bo({text:t})}function Bo(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showWarningMessage)&&(wo({text:n}),bo.showWarningMessage({text:n,duration:r,onClose:i}))}function Ho(t){Uo({text:t})}function Uo(t){var n=t.text,e=t.duration,r=void 0===e?1500:e,o=t.onClose,i=void 0===o?function(){}:o;tn(bo.showErrorMessage)&&(wo({text:n}),bo.showErrorMessage({text:n,duration:r,onClose:i}))}function Ro(t){Go({text:t})}function Go(t){var n=t.text;gn(n||"")||(bo.setErrorMessageDisplayMonitorComplete&&Uo({text:n}),Ir({text:n}))}function Jo(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>n?"".concat(Ue(t).substring(0,n)).concat(e):Ue(t)}function Ko(t,n,e,r){var o=Ue(t),i=(t||"").length;i>0&&(e>=0||r>=0)&&(o=e>=i||r>=i||(e||0)+(r||0)>=i?t:t.substr(0,e)+n+t.substr(i-r,r));return o||""}function Qo(t,n){for(var e=(new Date).getTime();!((new Date).getTime()-e>t););tn(n)&&n()}function Vo(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(en(t))return e;if(null==t)return e;if(!an(n)){var r="getPathValue Function param path must be string";return Go({message:r}),null}var o=At(t,n,e);return en(e)||rn(e)?o:o||e}function zo(t,n){if(!an(t))throw new Error("removeEndMatch only use for string target");if(!an(n))throw new Error("removeEndMatch only use for string match");if(gn(t))return t;if(gn(n))return t;var e=t.lastIndexOf(n);return e>=0&&t.length===e+n.length?t.substr(e,n.length):t}function qo(t,n){if(!an(t))throw new Error("removeEndMatch only use for string source");if(!an(n))throw new Error("removeEndMatch only use for string target");if(gn(t))return t;if(gn(n))return t;var e=t.lastIndexOf(n);return e>=0?t.substr(e,n.length):t}function Zo(t){var n=t.data,e=t.key,r=t.defaultValue,o=void 0===r?null:r,i=t.convert,a=void 0===i?null:i,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,g=Vo(n,e,o),h=g;return null==(c||null)&&null==(a||null)||(h=tn(c)?Ze({target:g,convert:c}):Ze({target:g,convert:a})),null==(d||null)&&null==(s||null)||(h=tn(d)?mo({target:h,format:d}):mo({target:h,format:s})),h}function $o(t){var n=t.operate,e=t.item,r=t.list,o=t.key,i=t.sortInitialValue,a=void 0===i?0:i;if(null==(e||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Wo({message:"无需排序!"}),r}var s=Zo({data:e,key:o,convert:Sn.number});switch((r||[]).forEach((function(t){var n=Zo({data:t,key:o,convert:Sn.number});n<s&&u.push(t),n>s&&c.push(t)})),n){case Mn.moveUp:if(s===a){return Wo({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,n){if(n<u.length-1)l.push(t);else{var r=e;r[o]-=1,l.push(r);var i=t;i[o]+=1,l.push(i)}})),l=l.concat(c);break;case Mn.moveDown:if(s===(r||[]).length+a-1){return Wo({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,n){if(0===n){var r=t;r[o]-=1,l.push(r);var i=e;i[o]+=1,l.push(i)}else l.push(t)}));break;default:Wo({message:"不符合的操作, 允许的操作为['".concat(Mn.moveUp,"','").concat(Mn.moveDown,"']!")})}return l}function Xo(t){var n=t.list,e=void 0===n?[]:n,r=t.convert,o=void 0===r?null:r,i=t.recursiveKey,a=void 0===i?"children":i;return(un(e)?e:[e]).map((function(t){return _o({data:t,convert:o,target:a})}))}function _o(t){var n=t.data,e=t.convert,r=void 0===e?null:e,o=t.recursiveKey,i=void 0===o?"children":o;if(!tn(r))return n;var a=r(n),u=n[i],c=[];return un(u)&&(c=u.map((function(t){return _o({data:t,convert:r,target:i})}))),a[i]=c,a}function ti(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Vt(t,n,e);return!en(r)}function ni(t){var n=t.target,e=t.value,r=t.compareValueHandler,o=t.handler;if(null==(n||null))throw new Error("handleItem: target not allow null");if(null==(n.state||null))throw new Error("handleItem: target.state not allow null");var i=n.state.metaOriginalData;if(null==(i||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var a=-1;if(tn(r))if(tn(o)){if(null==(i.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");i.list.forEach((function(t,n){r(t)===e&&(a=n)})),a>=0&&(i.list[a]=o(i.list[a]),n.setState({metaOriginalData:i}))}else{Go({message:"handler mast be function"})}else{Go({message:"compareDataIdHandler mast be function"})}}function ei(){function t(t,n){return en(n)?t:n}for(var n=Mt({},arguments.length<=0?void 0:arguments[0]),e=1;e<arguments.length;e++)n=Et(n,e<0||arguments.length<=e?void 0:arguments[e],t);return n}function ri(t){if(t&&"object"===mt(t)){var n="";return Object.keys(t).forEach((function(e){var r,o=(null!==(r=e.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();n+="".concat(o,":").concat(t[e],";")})),n}return t&&"string"==typeof t?t:""}function oi(t,n){return t&&"object"===mt(t)&&n&&"object"===mt(n)?Object.assign({},t,n):ri(t)+ri(n)}function ii(t,n){var e=t;for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);return e}var ai="htmlAssist";function ui(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Zt(t))return t;if(!Zt(n)||n<=0)throw new Error(gr(vn,"pxToRem -> root value must be number and greater than 0, current root value [".concat(n,"] is invalid"),ai));var o=parseFloat(t);if(o<r)return t;var i=We(o/n,e);return 0===i?"0":i+"rem"}var ci="localStorageAssist",li={getStorage:function(t){Ir(gr(vn,"setStorageGetter need config, use setStorageGetter to set it",ci))},setStorage:function(t,n){Ir(gr(vn,"setStorageSetter need config, use setStorageSetter to set it",ci))},removeStorage:function(t){Ir(gr(vn,"setStorageRemover need config, use setStorageRemover to set it",ci))},flushStorage:function(){Ir(gr(vn,"setStorageFlusher need config, use setStorageFlusher to set it",ci))}};function si(t){li.getStorage=t}function fi(t){li.setStorage=t}function di(t){li.removeStorage=t}function gi(t){li.flushStorage=t}function hi(t){try{return li.getStorage(t)}catch(n){throw Ir({key:t,e:n}),n}}function vi(t){var n=hi(t);return gn(n)?null:JSON.parse(n||"{}")}function mi(t,n){li.setStorage(t,n)}function pi(t,n){li.setStorage(t,JSON.stringify(n||{}))}function yi(t){li.removeStorage(t)}function wi(){li.flushStorage()}var bi="navigationAssist",Ai={navigateTo:function(t){Ir(gr(vn,"setNavigator need config, use setNavigator to set it",bi))},redirectTo:function(t,n){Ir(gr(vn,"setRedirector need config, use setRedirector to set it",bi))}};function xi(t){Ai.navigateTo=t}function Si(t){Ai.redirectTo=t}function Ci(t){if(an(t)||cn(t))Ai.redirectTo(t);else{Ho("invalid parameter, params need string or object")}}function Di(t){if(an(t)||cn(t))Ai.navigateTo(t);else{Ho("invalid parameter, params need string or object")}}var Mi={showOpenNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,xr(pr(n,r))},showLoadingNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,xr(pr(n,r))},showInfoNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,xr(pr(n,r))},showSuccessNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,xr(pr(n,r))},showWarnNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,Ar(pr(n,r))},showWarningNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,Ar(pr(n,r))},showErrorNotification:function(t){var n=t.title,e=t.description,r=void 0===e?"":e;t.placement,t.duration,t.onClose,Or(pr(n,r))}};function Ei(t){Mi.showOpenNotification=t}function Oi(t){Mi.showLoadingNotification=t}function Ii(t){Mi.showInfoNotification=t}function ji(t){Mi.showSuccessNotification=t}function Ni(t){Mi.showWarnNotification=t}function ki(t){Mi.showWarningNotification=t}function Ti(t){Mi.showErrorNotification=t}function Fi(t){Pi({description:t})}function Pi(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showOpenNotification)&&Mi.showOpenNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Yi(t){Wi({description:t})}function Wi(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showLoadingNotification)&&Mi.showLoadingNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Li(t){Bi({description:t})}function Bi(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showInfoNotification)&&Mi.showInfoNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Hi(t){Ui({description:t})}function Ui(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showWarnNotification)&&Mi.showWarnNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Ri(t){Gi({description:t})}function Gi(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showWarningNotification)&&Mi.showWarningNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Ji(t){Ki({description:t})}function Ki(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showSuccessNotification)&&Mi.showSuccessNotification({title:n,description:r,placement:i,duration:u,onClose:l})}function Qi(t){Vi({description:t})}function Vi(t){var n=t.title,e=t.description,r=void 0===e?"":e,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;tn(Mi.showErrorNotification)&&Mi.showErrorNotification({title:n,description:r,placement:i,duration:u,onClose:l})}var zi="nearestLocalhostNotify";function qi(){var t=vi(zi);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Zi(){return pi(zi,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function $i(){yi(zi)}function Xi(t){var n=t.text,e=!1,r=0,o=qi()||null;null==o?e=!0:r=o.nearestTime||0;var i=parseInt((new Date).getTime()/1e3,10);try{if(r+30<i&&(e=!0),e){var a="当前接口域名: ".concat(n,". ");Bi({text:a}),jr({message:a}),Zi()}}catch(t){br(t)}}function _i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=U(t);if(gn(n))return e;if(gn(e))return n;var r=n.lastIndexOf("?")>=0?"&":"?";return"".concat(n).concat(r).concat(e)}function ta(t){return R(t)}var na="sessionStorageAssist",ea={getStorage:function(t){Ir(gr(vn,"setStorageGetter need config, use setStorageGetter to set it",na))},setStorage:function(t,n){Ir(gr(vn,"setStorageSetter need config, use setStorageSetter to set it",na))},removeStorage:function(t){Ir(gr(vn,"setStorageRemover need config, use setStorageRemover to set it",na))},flushStorage:function(){Ir(gr(vn,"setStorageFlusher need config, use setStorageFlusher to set it",na))}};function ra(t){ea.getStorage=t}function oa(t){ea.setStorage=t}function ia(t){ea.removeStorage=t}function aa(t){ea.flushStorage=t}function ua(t){try{return ea.getStorage(t)}catch(n){throw Ir({key:t,e:n}),n}}function ca(t){var n=ua(t);return gn(n)?null:JSON.parse(n||"{}")}function la(t,n){ea.setStorage(t,n)}function sa(t,n){ea.setStorage(t,JSON.stringify(n||{}))}function fa(t){ea.removeStorage(t)}function da(){ea.flushStorage()}function ga(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(n||"输入").concat(t).concat(gn(e)?"":",".concat(e))}function ha(t){var n=t.label,e=t.name,r=t.helper,o="",i="",a="";if(an(n))o=n;else{Ar({label:n,name:e,helper:r}),Go({message:"label必须为文本"})}if(an(e))i=e;else{Ar({label:n,name:e,helper:r}),Go({message:"name必须为文本"})}if(an(r))a=r;else{Ar({label:n,name:e,helper:r}),Go({message:"helper必须为文本"})}return{label:o,name:i,helper:a}}function va(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(n).concat(t,". ")}export{eo as addHour,ro as addMinute,oo as addSecond,Mt as assign,Et as assignWith,ii as attachPropertiesToComponent,ga as buildFieldDescription,va as buildFieldHelper,to as buildHexColor,no as buildLinearGradient,gr as buildPromptModuleInfo,_i as buildQueryStringify,_r as buildRGBColorFromHexColor,Xr as buildRandomHexColor,ri as buildStringStyle,Fr as cacheMountTarget,uo as calculateDateInterval,co as calculateMonthInterval,ao as calculateTimeInterval,ti as checkExist,ha as checkFromConfig,sr as checkHasMore,hn as checkInCollection,wo as checkMessagePromptData,gn as checkStringIsNullOrWhiteSpace,fr as checkWhetherDevelopmentEnvironment,ir as cloneWithoutMethod,Sn as convertCollection,ui as convertPixelToRem,Dn as datetimeFormat,gt as decodeBase64,Vr as deleteCache,zr as deleteMultiCache,Gt as difference,wr as displayObjectMessage,yr as displayTextMessage,Pt as dropRight,Jo as ellipsis,xn as emptyDatetime,ht as encodeBase64,St as endsWith,mn as envCollection,Fn as errorImage,tr as evil,Jt as filter,Vt as find,Qt as findIndex,Tt as first,vt as fixedZero,kt as floor,qr as flushAllCache,wi as flushLocalStorage,da as flushSessionStorage,It as forEach,Cn as formatCollection,po as formatDateInterval,yo as formatDateIntervalWithNow,vo as formatDatetime,fo as formatDecimal,go as formatMoney,ho as formatMoneyToChinese,mo as formatTarget,At as get,rr as getBrowserInfo,er as getBrowserVersion,Gr as getCache,Wr as getCachePool,lo as getDayOfWeek,Ur as getExpiration,lr as getGuid,vi as getJsonFromLocalStorage,ca as getJsonFromSessionStorage,kr as getLoggerDisplaySwitch,Kr as getMultiCache,qi as getNearestLocalhostNotifyCache,io as getNow,Vo as getPathValue,hi as getStringFromLocalStorage,ua as getStringFromSessionStorage,so as getTodayOfWeek,dr as getValue,Zo as getValueByKey,jt as gte,ni as handleItem,Lr as hasCache,un as isArray,nn as isBoolean,nr as isBrowser,on as isDate,qt as isDatetime,Xt as isEqual,_t as isEqualBySerialize,tn as isFunction,dn as isImageBase4,zt as isInvalid,$t as isMoney,rn as isNull,Zt as isNumber,cn as isObject,ln as isPlainObject,sn as isPromise,an as isString,en as isUndefined,fn as isUrl,Jr as keys,li as localStorageAssist,mr as logColorCollection,Sr as logConfig,br as logData,Mr as logDebug,jn as logDisplay,Or as logError,Ir as logException,Er as logExecute,xr as logInfo,In as logLevel,Nr as logObject,Cr as logStack,jr as logText,Dr as logTrace,Ar as logWarn,vr as loggerSwitch,Ht as map,Nt as memoize,ei as mergeProps,oi as mergeStyle,pr as mergeTextMessage,bo as messagePromptAssist,kn as messageTypeCollection,Di as navigateTo,Ai as navigationAssist,Mi as notificationPromptAssist,Nn as notificationTypeCollection,ta as parseQueryString,Ci as redirectTo,ar as refitCommonData,ur as refitFieldDecoratorOption,zo as removeEndMatch,Bt as removeFromArray,qo as removeLastMatch,yi as removeLocalStorage,$i as removeNearestLocalhostNotifyCache,fa as removeSessionStorage,Lt as replace,Ko as replaceWithKeep,wn as requestMethod,Ot as reverse,xt as round,pi as saveJsonToLocalStorage,sa as saveJsonToSessionStorage,mi as saveStringToLocalStorage,la as saveStringToSessionStorage,ji as seSuccessNotificationDisplayMonitor,cr as searchFromList,or as seededRandom,ea as sessionStorageAssist,Ut as set,Br as setCache,Pr as setCacheMount,Eo as setErrorMessageDisplayMonitor,Ti as setErrorNotificationDisplayMonitor,Rr as setExpiration,So as setInfoMessageDisplayMonitor,Ii as setInfoNotificationDisplayMonitor,xo as setLoadingMessageDisplayMonitor,Oi as setLoadingNotificationDisplayMonitor,gi as setLocalStorageFlusher,si as setLocalStorageGetter,di as setLocalStorageRemover,fi as setLocalStorageSetter,Tr as setLoggerDisplaySwitch,Hr as setMultiCache,xi as setNavigator,Zi as setNearestLocalhostNotifyCache,Ao as setOpenMessageDisplayMonitor,Ei as setOpenNotificationDisplayMonitor,Si as setRedirector,aa as setSessionStorageFlusher,ra as setSessionStorageGetter,ia as setSessionStorageRemover,oa as setSessionStorageSetter,Co as setSuccessMessageDisplayMonitor,Do as setWarnMessageDisplayMonitor,Ni as setWarnNotificationDisplayMonitor,Mo as setWarningMessageDisplayMonitor,ki as setWarningNotificationDisplayMonitor,Uo as showErrorMessage,Vi as showErrorNotification,To as showInfoMessage,Bi as showInfoNotification,No as showLoadingMessage,Wi as showLoadingNotification,Io as showOpenMessage,Pi as showOpenNotification,Go as showRuntimeError,Ho as showSimpleErrorMessage,Qi as showSimpleErrorNotification,ko as showSimpleInfoMessage,Li as showSimpleInfoNotification,jo as showSimpleLoadingMessage,Yi as showSimpleLoadingNotification,Oo as showSimpleOpenMessage,Fi as showSimpleOpenNotification,Ro as showSimpleRuntimeError,Fo as showSimpleSuccessMessage,Ji as showSimpleSuccessNotification,Yo as showSimpleWarnMessage,Hi as showSimpleWarnNotification,Lo as showSimpleWarningMessage,Ri as showSimpleWarningNotification,Po as showSuccessMessage,Ki as showSuccessNotification,Wo as showWarnMessage,Ui as showWarnNotification,Bo as showWarningMessage,Gi as showWarningNotification,Rt as size,Qo as sleep,Kt as sortBy,$o as sortCollectionByKey,Mn as sortOperate,Ct as sortedUnique,Dt as split,Ft as startsWith,Zr as statisticsCache,Qr as takeCache,Ze as to,Re as toBoolean,Le as toBoundary,Ve as toDatetime,Ke as toLower,Qe as toLowerFirst,Pe as toMd5,Be as toMoney,We as toNumber,He as toPercentage,ze as toPromise,qe as toRound,Fe as toSha1,Ue as toString,Ge as toUpper,Je as toUpperFirst,_o as transformData,Xo as transformListData,Tn as transparentImage,Wt as trim,Xi as trySendNearestLocalhostNotify,yn as underlyingExtensionState,pn as underlyingState,Yt as uniqBy,On as whetherNumber,En as whetherString,An as zeroInt,bn as zeroString};
1
+ import t from"node-cache";import e from"lodash/isBoolean";import n from"lodash/isDate";import r from"lodash/isEqual";import o from"lodash/isFunction";import i from"lodash/isNull";import a from"lodash/isNumber";import u from"lodash/isObject";import c from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import h from"lodash/difference";import p from"lodash/dropRight";import v from"lodash/endsWith";import m from"lodash/filter";import g from"lodash/find";import y from"lodash/findIndex";import w from"lodash/first";import b from"lodash/floor";import x from"lodash/forEach";import S from"lodash/get";import A from"lodash/gte";import C from"lodash/map";import D from"lodash/memoize";import E from"lodash/remove";import M from"lodash/reverse";import k from"lodash/round";import I from"lodash/set";import O from"lodash/size";import j from"lodash/sortBy";import N from"lodash/sortedUniq";import F from"lodash/split";import T from"lodash/startsWith";import P from"lodash/trim";import L from"lodash/uniqBy";import R from"lodash/toNumber";import W from"lodash/toString";import Y from"object-hash";import H from"dayjs";import{stringify as B,parse as G}from"qs";function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function q(t){var e=function(t,e){if("object"!==U(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===U(e)?e:String(e)}function _(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return S(t,e,n)}function K(t,e){return k(t,e)}function Q(t,e,n){return v(t,e,n)}function Z(t){return N(t)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return F(t,e,n)}function X(t,e){return f(t,e)}function tt(t,e,n){return d(t,e,n)}function et(t){return M(t)}function nt(t,e){return x(t,e)}function rt(t,e){return A(t,e)}function ot(t){return D(t)}function it(t,e){return b(t,e)}function at(t){return w(t)}function ut(t,e){return T(t,e)}function ct(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return p(t,e)}function lt(t,e){return L(t,e)}function st(t){return P(t)}function ft(t,e,n){return s(t,e,n)}function dt(t,e){return E(t,e)}function ht(t,e){return C(t,e)}function pt(t,e,n){return I(t,e,n)}function vt(t){return O(t)}function mt(t,e){return h(t,e)}function gt(t,e){return m(t,e)}function yt(t,e){return j(t,e)}function wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(t,e,n)}function xt(t){return It(t)}function St(t){var e="".concat(It(t)?null:t).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==e)return!1;var n=new Date(e[1],e[3]-1,e[4]);return n.getFullYear()===parseInt(e[1],10)&&n.getMonth()+1===parseInt(e[3],10)&&n.getDate()===parseInt(e[4],10)}function At(t){return a(t)}function Ct(t){var e="".concat(It(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9][\d]{0,15}|0)(\.[\d]{1,2})?$/).test(e)}function Dt(t,e){return r(t,e)}function Et(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function Mt(t){return o(t)}function kt(t){return e(t)}function It(t){return l(t)}function Ot(t){return i(t)}function jt(t){return n(t)}function Nt(t){return c(t)}function Ft(t){return Array.isArray(t)}function Tt(t){return u(t)}function Pt(t){return null!==t&&"object"===U(t)&&!Ft(t)}function Lt(t){return Pt(t)&&Mt(t.then)&&Mt(t.catch)}function Rt(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Wt(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function Yt(t){return""===st(s(t||""," ",""))}function Ht(t,e){var n=!1;return Ft(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var Bt={super:{permission:"super"}},Gt={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},Ut={loadApiPath:"",firstLoadSuccess:!1,loadSuccess:!1,registering:!1,dataLoading:!1,reloading:!1,searching:!1,refreshing:!1,paging:!1,processing:!1,dispatchComplete:!0,metaData:null,metaExtra:null,metaListData:[],metaOriginalData:null,urlParams:null,externalData:null},qt={dataLoading:!0},_t={real:"real",simulation:"simulation"},zt={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},Vt="0",Jt=0,Kt="1970-01-01 00:00",Qt={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Zt={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},$t={yearMonthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",yearMonthDayHourMinute:"YYYY-MM-DD HH:mm",yearMonthDay:"YYYY-MM-DD",yearMonth:"YYYY-MM",year:"YYYY",monthDayHourMinuteSecond:"YYYY-MM-DD HH:mm:ss",monthDayHourMinute:"MM-DD HH:mm",monthDay:"MM-DD",hourMinute:"HH:mm",hourMinuteSecond:"HH:mm:ss",month:"MM",day:"DD",hour:"HH",minute:"mm",second:"ss"},Xt={moveUp:"moveUp",moveDown:"moveDown"},te={no:"0",yes:"1"},ee={no:0,yes:1},ne={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},re={auto:"auto",text:"text",object:"object"},oe={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ie={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",ue=ae,ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var le=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};var se=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:le(t,e,n)},fe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var de=function(t){return fe.test(t)};var he=function(t){return t.split("")},pe="\\ud800-\\udfff",ve="["+pe+"]",me="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ge="\\ud83c[\\udffb-\\udfff]",ye="[^"+pe+"]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",be="[\\ud800-\\udbff][\\udc00-\\udfff]",xe="(?:"+me+"|"+ge+")"+"?",Se="[\\ufe0e\\ufe0f]?",Ae=Se+xe+("(?:\\u200d(?:"+[ye,we,be].join("|")+")"+Se+xe+")*"),Ce="(?:"+[ye+me+"?",me,we,be,ve].join("|")+")",De=RegExp(ge+"(?="+ge+")|"+Ce+Ae,"g");var Ee=he,Me=de,ke=function(t){return t.match(De)||[]};var Ie=function(t){return Me(t)?ke(t):Ee(t)},Oe="object"==U(ce)&&ce&&ce.Object===Object&&ce,je="object"==("undefined"==typeof self?"undefined":U(self))&&self&&self.Object===Object&&self,Ne=(Oe||je||Function("return this")()).Symbol;var Fe=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},Te=Array.isArray,Pe=Ne,Le=Object.prototype,Re=Le.hasOwnProperty,We=Le.toString,Ye=Pe?Pe.toStringTag:void 0;var He=function(t){var e=Re.call(t,Ye),n=t[Ye];try{t[Ye]=void 0;var r=!0}catch(t){}var o=We.call(t);return r&&(e?t[Ye]=n:delete t[Ye]),o},Be=Object.prototype.toString;var Ge=He,Ue=function(t){return Be.call(t)},qe=Ne?Ne.toStringTag:void 0;var _e=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qe&&qe in Object(t)?Ge(t):Ue(t)},ze=function(t){return null!=t&&"object"==U(t)};var Ve=Fe,Je=Te,Ke=function(t){return"symbol"==U(t)||ze(t)&&"[object Symbol]"==_e(t)},Qe=Ne?Ne.prototype:void 0,Ze=Qe?Qe.toString:void 0;var $e=function t(e){if("string"==typeof e)return e;if(Je(e))return Ve(e,t)+"";if(Ke(e))return Ze?Ze.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Xe=$e;var tn=se,en=de,nn=Ie,rn=function(t){return null==t?"":Xe(t)};var on=function(t){return function(e){e=rn(e);var n=en(e)?nn(e):void 0,r=n?n[0]:e.charAt(0),o=n?tn(n,1).join(""):e.slice(1);return r[t]()+o}},an=on("toLowerCase"),un=on("toUpperCase");function cn(t){return Y(t,{algorithm:"sha1"})}function ln(t){return Y(t,{algorithm:"md5"})}function sn(t,e){var n=Math.pow(10,e+1),r=Math.floor(fn(t)*n);return 10*Math.round(r/10)/n}function fn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=R(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:sn(r,e)}function dn(t,e,n){if(!At(t))throw new Error("value must be number value");var r=fn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function hn(t){return Ct(t)?parseFloat(t,10):0}function pn(t){return"".concat(hn(1e3*fn(t)/10),"%")}function vn(t){return W(t)}function mn(t){return!!t}function gn(t){return vn(t).toUpperCase()}function yn(t){return un(t)}function wn(t){return vn(t).toLowerCase()}function bn(t){return an(t)}function xn(t){if(null==(t||null))return null;if(jt(t))return t;if(Nt(t)&&t.indexOf("T")<0){var e=t.replace(/\-/g,"/");return new Date(e)}return new Date(t)}function Sn(t){return Lt(t)?t:Promise.resolve(t)}function An(t,e){return K(t,e)}function Cn(t){var e=t.target,n=t.convert;if(Mt(n))return n(e);if(Nt(n))switch(n){case Qt.number:return fn(e);case Qt.datetime:return xn(e);case Qt.string:return vn(e);case Qt.money:return hn(e);case Qt.array:return null==(e||null)?[]:Ft(e)?e:[e];default:return e}return e}var Dn="easy-soft-utility";function En(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mn(t,e){if(t){if("string"==typeof t)return En(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(t,e):void 0}}function kn(t){return function(t){if(Array.isArray(t))return En(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(t){return new Function("return ".concat(t))()}function On(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function jn(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1===t.indexOf("Safari")}}function Nn(){var t;return{versions:jn(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function Fn(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function Tn(t){return null==t?null:JSON.parse(JSON.stringify(t))}function Pn(t,e,n){var r=[];return null!=t&&(r=kn(t)),null!=n&&(r=[].concat(kn(r),kn(n))),null!=e&&(r=[e].concat(kn(r))),r}function Ln(t,e,n,r,o){var i=r,a=void 0===n?null:n;return null!=e&&("function"==typeof convertValue?i.initialValue=o(t)||a:i.initialValue=t||a),i}function Rn(t,e,n){var r=null;return null==e||(n||[]).forEach((function(n){n[t]===e&&(r=n)})),r}function Wn(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],i=0;if(n=n||r.length,e)for(i=0;i<e;i++)o[i]=r[0|Math.random()*n];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",i=0;i<36;i++)o[i]||(t=0|16*Math.random(),o[i]=r[19===i?3&t|8:t]);return o.join("")}function Yn(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function Hn(){return"development"===process.env.NODE_ENV}function Bn(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}function Gn(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[t].concat(r).filter((function(t){return Nt(t)&&!Yt(t)}));return"".concat(i.join("::"),"::").concat(Yt(e)?"":e)}var Un="loggerAssist",qn={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},_n={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function zn(t,e){return"".concat(vn(t)).concat(Yt(e)?"":" -> ".concat(e))}function Vn(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation,u=void 0===a?"":a,c=zn(Nt(e)?e:JSON.stringify(e),u);Yt(Vn)||console.log("%c%s","color:".concat(r,";"),"".concat(Yt(i)?"":"[".concat(gn(i),"] ")).concat(c))}function Jn(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation;Vn({text:"check the following object data",color:r,dataDescription:i,ancillaryInformation:void 0===a?"":a}),console.log(e)}function Kn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=ur();if(!qn.loggerDisplaySwitchSetComplete&&!qn.loggerDisplaySwitchPromptSetInformationComplete){var i=Gn(Dn,"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once",Un);Vn({text:i,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}qn.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===ne.exception){var a=null==(e||null)||Yt(e)?re.auto:e;if(!Ht([re.auto,re.text,re.object],a))throw new Error("Invalid log display mode -> ".concat(a));if(a===re.auto&&(a=Nt(t)?re.text:re.object),n!==ne.exception){if(o){if(n===ne.trace&&(a===re.text&&Vn({text:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.trace,dataDescription:"trace",ancillaryInformation:r})),n===ne.debug&&(a===re.text&&Vn({text:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.debug,dataDescription:"debug",ancillaryInformation:r})),n===ne.warn&&(a===re.text&&Vn({text:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.warn,dataDescription:"warn",ancillaryInformation:r})),n===ne.info&&(a===re.text&&Vn({text:t,color:_n.info,dataDescription:"info",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.info,dataDescription:"info",ancillaryInformation:r})),n===ne.execute&&(a===re.text&&Vn({text:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.execute,dataDescription:"execute",ancillaryInformation:r})),n===ne.config&&(a===re.text&&Vn({text:t,color:_n.config,dataDescription:"config",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.config,dataDescription:"config",ancillaryInformation:r})),n===ne.stack){a===re.text&&Vn({text:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(ft(u,"Error:","Stack:"))}}n===ne.error&&(a===re.text&&Vn({text:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.error,dataDescription:"error",ancillaryInformation:r}))}}else{a===re.text&&Vn({text:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r}),a===re.object&&Jn({data:t,color:_n.exception,dataDescription:"exception",ancillaryInformation:r});try{throw new Error("an error occur, check the above error message, the stack information is as follows")}catch(t){console.error(t)}}}}function Qn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.warn,e):ar(t,ne.warn,e)}function Zn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.info,e):ar(t,ne.info,e)}function $n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.config,e):ar(t,ne.config,e)}function Xn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.stack,e):ar(t,ne.stack,e)}function tr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.trace,e):ar(t,ne.trace,e)}function er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.debug,e):ar(t,ne.debug,e)}function nr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.execute,e):ar(t,ne.execute,e)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.error,e):ar(t,ne.error,e)}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?ir(t,ne.exception,e):ar(t,ne.exception,e)}function ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.text,e,n)}function ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Kn(t,re.object,e,n)}function ur(){return mn(qn.display)}function cr(t){Hn()&&Vn({text:"setLoggerDisplaySwitch",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),qn.display=mn(t),qn.loggerDisplaySwitchSetComplete=!0}var lr="runtimeAssist",sr={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function fr(e){if(Hn()&&Vn({text:"setDataStorage",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),!Tt(e))throw er(e),new Error(Gn(Dn,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":U(target)),lr));e.runtimeDataStorage={},sr.runtimeDataStorage=e.runtimeDataStorage,sr.runtimeDataStorageSetComplete=!0,function(e){if(null==(e||null))throw new Error("runtimeDataStorage has not set complete");e.localRuntimeCache=new t,e.applicationInitialConfig={},e.applicationConfigMergeComplete=!1,e.applicationMergeConfig={},e.lastRequestExceptionMessage={code:-1,message:"",time:(new Date).getTime()}}(sr.runtimeDataStorage)}function dr(){if(Ot(sr.runtimeDataStorage)||!sr.runtimeDataStorageSetComplete)throw new Error(Gn(Dn,"runtimeDataStorage has not set,use setDataStorage to set it",lr));return sr.runtimeDataStorage}function hr(){return sr.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:(new Date).getTime()}}function pr(t){var e=t.code,n=t.message,r=t.time;sr.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function vr(t){return Yt(t)?(or("checkKey -> cache key is null or empty"),!1):!(!Nt(t)&&!At(t))||(or("cache key must be string or number, current type id ".concat(U(t))),!1)}function mr(){var e=dr();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function gr(t){var e=t.key,n=mr();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function yr(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(vr(e)){var i=mr();if(null==i)throw new Error("cache pool not exist");return i.set(e,n,o)}}function wr(t){if(!Ft(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e=[];if(t.forEach((function(t){var n=V(V({},{key:"",value:"",expiration:0}),t),r=n.key,o=n.value,i=n.expiration;if(!Yt(r)){if(!vr(r))return;e.push({key:r,value:o,ttl:i})}})),e.length<=0)return!1;var n=mr();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function br(t){var e=t.key,n=mr();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function xr(t){var e=t.key,n=t.expiration,r=mr();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function Sr(t){var e=t.key,n=mr();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Ar(){var t=mr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Cr(t){if(!Ft(t))throw new Error("getMultiCache: list must be array");var e=mr();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Dr(t){var e=t.key,n=mr();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Er(t){var e=t.key;if(vr(e)){var n=mr();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Mr(t){if(!Ft(t))throw new Error("deleteMultiCache: list must be array");var e=mr();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function kr(){var t=mr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Ir(){var t=mr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var Or="localStorageAssist",jr={getStorage:function(t){or(Gn(Dn,"setStorageGetter need config, use setStorageGetter to set it",Or))},setStorage:function(t,e){or(Gn(Dn,"setStorageSetter need config, use setStorageSetter to set it",Or))},removeStorage:function(t){or(Gn(Dn,"setStorageRemover need config, use setStorageRemover to set it",Or))},flushStorage:function(){or(Gn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",Or))}};function Nr(t){jr.getStorage=t}function Fr(t){jr.setStorage=t}function Tr(t){jr.removeStorage=t}function Pr(t){jr.flushStorage=t}function Lr(t){try{return jr.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Rr(t){var e=Lr(t);return Yt(e)?null:JSON.parse(e||"{}")}function Wr(t,e){jr.setStorage(t,e)}function Yr(t,e){jr.setStorage(t,JSON.stringify(e||{}))}function Hr(t){jr.removeStorage(t)}function Br(){jr.flushStorage()}var Gr={accessWayCollection:"accessWayCollection"};function Ur(){var t={},e=Gr.accessWayCollection;if(gr({key:e})&&Ft(t=Sr({key:e})))return t;var n=Rr(e);return null==(n||null)?V({},Bt||{}):(yr({key:e,value:t=V(V({},n||null),Bt||{})}),t)}function qr(t){Yr(Gr.accessWayCollection,t||{})}var _r="applicationAssist",zr={initialConfigSetComplete:!1,handleMergeConfiguration:function(t){return t}};function Vr(t){Hn()&&Vn({text:"setInitialConfig",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Tt(t)||Qn(Gn(Dn,"setInitialConfig -> config must be object",_r)),dr().applicationInitialConfig=t,zr.initialConfigSetComplete=!0}function Jr(){if(!zr.initialConfigSetComplete)throw new Error(Gn(Dn,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",_r));return dr().applicationInitialConfig||{}}function Kr(t){zr.handleMergeConfiguration=t}function Qr(){var t=dr();return t.applicationConfigMergeComplete||(er("merge application config"),t.applicationMergeConfig=zr.handleMergeConfiguration(Jr()),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function Zr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Mn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $r(t,e){return H(t,e)}function Xr(t,e){var n=xn(t);return n.setHours(n.getHours()+e)}function to(t,e){var n=xn(t);return n.setMinutes(n.getMinutes()+e)}function eo(t,e){var n=xn(t);return n.setSeconds(n.getSeconds()+e)}function no(){return new Date}function ro(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=parseInt(r/86400),i=parseInt((r-24*o*60*60)/3600),a=parseInt((r-24*o*60*60-60*i*60)/60);return{day:o,hour:i,minute:a,second:r-24*o*60*60-60*i*60-60*a}}var oo=function(t,e,n){var r=xn(t),o=e?xn(e):new Date,i=o.getTime()-r.getTime();return"second"===n&&i/1e3||"minute"===n&&i/1e3/60||"hour"===n&&i/1e3/60/60||"day"===n&&i/1e3/60/60/24||"week"===n&&i/1e3/60/60/24/7||"month"===n&&io(r,o)||"quarter"===n&&io(r,o)/3||"year"===n&&io(r,o)/12||i},io=function(t,e){var n=xn(t),r=xn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function ao(t){var e=t.data;return H(e).day()}function uo(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=H().day();if(!t)return e;var n="";switch(fn(e)){case 0:n="日";break;case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;default:n=""}return Yt(n)?"":"星期".concat(n)}function co(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,i=void 0===o?",":o,a=t.decimal;return lo({data:e,places:r,symbol:"",thousand:i,decimal:void 0===a?".":a})}function lo(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,i=void 0===o?"¥":o,a=t.thousand,u=void 0===a?",":a,c=t.decimal,l=void 0===c?".":c,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==i?i:"¥",h=u||",",p=l||".",v=s<0?"-":"",m=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=m.length;return d+v+((g=g>3?g%3:0)?m.substr(0,g)+h:"")+m.substr(g).replace(/(\d{3})(?=\d)/g,i+"1"+h)+(f?p+Math.abs(s-fn(m)).toFixed(f).slice(2):"")}function so(t){var e,n,r,o=t.target,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=i[0]+"元";if(-1===(o=o.toString()).indexOf("."))e=o,n="";else{var s=Zr(r=o.split("."),2);e=s[0],n=s[1],n=r[1].substr(0,4)}if(parseInt(e,10)>0){for(var f=0,d=e.length,h=0;h<d;h+=1){var p=e.substr(h,1),v=d-h-1,m=v/4,g=v%4;"0"===p?f+=1:(f>0&&(l+=i[0]),f=0,l+=i[parseInt(p,10)]+a[g]),0===g&&f<4&&(l+=u[m])}l+="元"}if(""!==n)for(var y=n.length,w=0;w<y;w+=1){var b=n.substr(w,1);"0"!==b&&(l+=i[Number(b)]+c[w])}return""===l&&(l+=i[0]+"元"),l}function fo(t){var e=t.data,n=t.fmt,r=void 0===n?$t.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":H(e).format(r)}function ho(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(Mt(n))return n(e);if(Nt(n))switch(n){case Zt.money:return lo({data:e});case Zt.datetime:return fo({data:e});case Zt.chineseMoney:return so({target:e,option:o});case Zt.percentage:return"".concat(An(100*e,1),"%");default:return e}return e}function po(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=V(V({},{second:["刚刚","片刻后"],seconds:["%d 秒前","%d 秒后"],minute:["大约 1 分钟前","大约 1 分钟后"],minutes:["%d 分钟前","%d 分钟后"],hour:["大约 1 小时前","大约 1 小时后"],hours:["%d 小时前","%d 小时后"],day:["1 天前","1 天后"],days:["%d 天前","%d 天后"],month:["大约 1 个月前","大约 1 个月后"],months:["%d 月前","%d 月后"],year:["大约 1 年前","大约 1 年后"],years:["%d 年前","%d 年后"]}),n||{}),o=oo(t,e),i=o<0?1:0,a=Math.abs(o)/1e3,u=a/60,c=u/60,l=c/24,s=l/365,f=function(t,e){return t.replace(/%d/i,e)};return a<10&&f(r.second[i],parseInt(a))||a<45&&f(r.seconds[i],parseInt(a))||a<90&&f(r.minute[i],1)||u<45&&f(r.minutes[i],parseInt(u))||u<90&&f(r.hour[i],1)||c<24&&f(r.hours[i],parseInt(c))||c<42&&f(r.day[i],1)||l<30&&f(r.days[i],parseInt(l))||l<45&&f(r.month[i],1)||l<365&&f(r.months[i],parseInt(l/30))||s<1.5&&f(r.year[i],1)||f(r.years[i],parseInt(s))}function vo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return po(t,no(),e)}function mo(t){return Yt(t.text||null)&&Qn(Gn(Dn,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var go={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,Zn(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,Qn(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},setErrorMessageDisplayMonitorComplete:!1};function yo(t){go.showOpenMessage=t}function wo(t){go.showLoadingMessage=t}function bo(t){go.showInfoMessage=t}function xo(t){go.showSuccessMessage=t}function So(t){go.showWarnMessage=t}function Ao(t){go.showWarningMessage=t}function Co(t){go.showErrorMessage=t,go.setErrorMessageDisplayMonitorComplete=!0}function Do(t){Eo({text:t})}function Eo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showOpenMessage)&&(mo({text:e}),go.showOpenMessage({text:e,duration:r,onClose:i}))}function Mo(t){ko({text:t})}function ko(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showLoadingMessage)&&(mo({text:e}),go.showLoadingMessage({text:e,duration:r,onClose:i}))}function Io(t){Oo({text:t})}function Oo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showInfoMessage)&&(mo({text:e}),go.showInfoMessage({text:e,duration:r,onClose:i}))}function jo(t){No({text:t})}function No(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showSuccessMessage)&&(mo({text:e}),go.showSuccessMessage({text:e,duration:r,onClose:i}))}function Fo(t){To({text:t})}function To(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showWarnMessage)&&(mo({text:e}),go.showWarnMessage({text:e,duration:r,onClose:i}))}function Po(t){Lo({text:t})}function Lo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showWarningMessage)&&(mo({text:e}),go.showWarningMessage({text:e,duration:r,onClose:i}))}function Ro(t){Wo({text:t})}function Wo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt(go.showErrorMessage)&&(mo({text:e}),go.showErrorMessage({text:e,duration:r,onClose:i}))}function Yo(t){Ho({text:t})}function Ho(t){var e=t.text;Yt(e||"")||(go.setErrorMessageDisplayMonitorComplete&&Wo({text:e}),or({text:e}))}function Bo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(vn(t).substring(0,e)).concat(n):vn(t)}function Go(t,e,n,r){var o=vn(t),i=(t||"").length;i>0&&(n>=0||r>=0)&&(o=n>=i||r>=i||(n||0)+(r||0)>=i?t:t.substr(0,n)+e+t.substr(i-r,r));return o||""}function Uo(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););Mt(e)&&e()}function qo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(It(t))return n;if(null==t)return n;if(!Nt(e)){var r="getPathValue Function param path must be string";return Ho({message:r}),null}var o=J(t,e,n);return It(n)||Ot(n)?o:o||n}function _o(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string target");if(!Nt(e))throw new Error("removeEndMatch only use for string match");if(Yt(t))return t;if(Yt(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function zo(t,e){if(!Nt(t))throw new Error("removeEndMatch only use for string source");if(!Nt(e))throw new Error("removeEndMatch only use for string target");if(Yt(t))return t;if(Yt(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function Vo(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,i=t.convert,a=void 0===i?null:i,u=t.convertBuilder,c=void 0===u?null:u,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,h=qo(e,n,o),p=h;return null==(c||null)&&null==(a||null)||(p=Mt(c)?Cn({target:h,convert:c}):Cn({target:h,convert:a})),null==(d||null)&&null==(s||null)||(p=Mt(d)?ho({target:p,format:d}):ho({target:p,format:s})),p}function Jo(t){var e=t.operate,n=t.item,r=t.list,o=t.key,i=t.sortInitialValue,a=void 0===i?0:i;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return To({message:"无需排序!"}),r}var s=Vo({data:n,key:o,convert:Qt.number});switch((r||[]).forEach((function(t){var e=Vo({data:t,key:o,convert:Qt.number});e<s&&u.push(t),e>s&&c.push(t)})),e){case Xt.moveUp:if(s===a){return To({message:"已经排在首位!"}),r}(u||[]).forEach((function(t,e){if(e<u.length-1)l.push(t);else{var r=n;r[o]-=1,l.push(r);var i=t;i[o]+=1,l.push(i)}})),l=l.concat(c);break;case Xt.moveDown:if(s===(r||[]).length+a-1){return To({message:"已经排在末位!"}),r}l=l.concat(u),(c||[]).forEach((function(t,e){if(0===e){var r=t;r[o]-=1,l.push(r);var i=n;i[o]+=1,l.push(i)}else l.push(t)}));break;default:To({message:"不符合的操作, 允许的操作为['".concat(Xt.moveUp,"','").concat(Xt.moveDown,"']!")})}return l}function Ko(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,i=t.recursiveKey,a=void 0===i?"children":i;return(Ft(n)?n:[n]).map((function(t){return Qo({data:t,convert:o,target:a})}))}function Qo(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,i=void 0===o?"children":o;if(!Mt(r))return e;var a=r(e),u=e[i],c=[];return Ft(u)&&(c=u.map((function(t){return Qo({data:t,convert:r,target:i})}))),a[i]=c,a}function Zo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=bt(t,e,n);return!It(r)}function $o(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(null==(e||null))throw new Error("handleItem: target not allow null");if(null==(e.state||null))throw new Error("handleItem: target.state not allow null");var i=e.state.metaOriginalData;if(null==(i||null))throw new Error("handleItem: target.state.metaOriginalData not allow null");var a=-1;if(Mt(r))if(Mt(o)){if(null==(i.list||null))throw new Error("handleItem: target.state.metaOriginalData.list must be array");i.list.forEach((function(t,e){r(t)===n&&(a=e)})),a>=0&&(i.list[a]=o(i.list[a]),e.setState({metaOriginalData:i}))}else{Ho({message:"handler mast be function"})}else{Ho({message:"compareDataIdHandler mast be function"})}}var Xo="authorityCollectionCache",ti="hasSuperPermission";function ei(t){Yr(Gr.authorityCollection,"string"==typeof t?[t]:t),kr()}function ni(t){var e,n=void 0===t?Lr(Gr.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:Ft(e)?e:[]}function ri(){return function(){var t=[];if(gr({key:Xo})&&Ft(t=Sr({key:Xo})))return t;var e,n=Lr(Gr.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=Ft(e)?e:[],yr({key:Xo,value:t}),t}()}function oi(){if(gr({key:ti})){var t=Sr({key:ti});if(void 0!==t)return!!t}var e=function(){var t="",e=Ur();if(!Tt(e))return t;var n=Vo({data:e,key:"super"});if(Tt(n)){var r=Vo({data:n,key:"permission"});Nt(r)&&(t=r)}return t}();if(!Yt(e)&&((ri()||[]).find((function(t){return t===e}))||"")===e)return yr({key:ti,value:!0}),!0;return yr({key:ti,value:!1}),!1}function ii(t){if(oi())return!0;var e="0";if(gr({key:t})&&void 0!==(e=Sr({key:t})))return"0"!==e;var n=ri(),r=Ur(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&ar({checkAuthority:t,listAuthority:n,accessWayCollection:r}),yr({key:t,value:e=void 0!==o?"1":"0"}),"0"!==e}function ai(t){if(Ft(t))return n=!1,Ft(e=t)?n=e.some((function(t){return ii(t)})):Nt(e)?n=ii(e):(Ro("无效的待验证权限"),rr('auth fail on "'.concat(e.join(),'"')),n);var e,n;if(Nt(t))return ii(t);throw ar({auth:t}),new Error("auth need string or string array, please check in console.")}var ui,ci="function"==typeof atob,li="function"==typeof btoa,si="function"==typeof Buffer,fi="function"==typeof TextDecoder?new TextDecoder:void 0,di="function"==typeof TextEncoder?new TextEncoder:void 0,hi=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),pi=(ui={},hi.forEach((function(t,e){return ui[t]=e})),ui),vi=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,mi=String.fromCharCode.bind(String),gi="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return new Uint8Array(Array.prototype.slice.call(t,0).map(e))},yi=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},wi=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},bi=li?function(t){return btoa(t)}:si?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,i="",a=t.length%3,u=0;u<t.length;){if((n=t.charCodeAt(u++))>255||(r=t.charCodeAt(u++))>255||(o=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");i+=hi[(e=n<<16|r<<8|o)>>18&63]+hi[e>>12&63]+hi[e>>6&63]+hi[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},xi=si?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(mi.apply(null,t.subarray(n,n+4096)));return bi(e.join(""))},Si=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?mi(192|e>>>6)+mi(128|63&e):mi(224|e>>>12&15)+mi(128|e>>>6&63)+mi(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return mi(240|e>>>18&7)+mi(128|e>>>12&63)+mi(128|e>>>6&63)+mi(128|63&e)},Ai=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ci=si?function(t){return Buffer.from(t,"utf8").toString("base64")}:di?function(t){return xi(di.encode(t))}:function(t){return bi(t.replace(Ai,Si))},Di=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ei=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return mi(55296+(e>>>10))+mi(56320+(1023&e));case 3:return mi((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return mi((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Mi=ci?function(t){return atob(wi(t))}:si?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!vi.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",i=0;i<t.length;)e=pi[t.charAt(i++)]<<18|pi[t.charAt(i++)]<<12|(n=pi[t.charAt(i++)])<<6|(r=pi[t.charAt(i++)]),o+=64===n?mi(e>>16&255):64===r?mi(e>>16&255,e>>8&255):mi(e>>16&255,e>>8&255,255&e);return o},ki=si?function(t){return gi(Buffer.from(t,"base64"))}:function(t){return gi(Mi(t),(function(t){return t.charCodeAt(0)}))},Ii=si?function(t){return Buffer.from(t,"base64").toString("utf8")}:fi?function(t){return fi.decode(ki(t))}:function(t){return Mi(t).replace(Di,Ei)},Oi=function(t){return Ii(wi(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function ji(t){return Oi(t)}function Ni(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?yi(Ci(t)):Ci(t)}(t)}function Fi(t){return 1*t<10?"0".concat(t):t}function Ti(t){var e=t.seed;return"#".concat("00000".concat((16777216*Fn({seed:e})<<0).toString(16)).substring(-6))}function Pi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var i="#",a=1;a<4;a+=1)i+=o.slice(a,a+1).concat(o.slice(a,a+1));o=i}for(var u=[],c=1;c<7;c+=2)u.push(parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return or("Invalid hex color -> ".concat(t)),o}function Li(t){var e=t.progress,n=t.startColor,r=t.endColor,o=Pi(n,null,!0),i=Pi(r,null,!0),a=Zr(o,3),u=a[0],c=a[1],l=a[2],s=Zr(i,3),f=s[0],d=s[1],h=s[2],p=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((h-l)*e)).toString(16)];return"#".concat(p.join("").toUpperCase())}function Ri(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=At(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function Wi(){function t(t,e){return It(e)?t:e}for(var e=X({},arguments.length<=0?void 0:arguments[0]),n=1;n<arguments.length;n++)e=tt(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e}function Yi(t){if(t&&"object"===U(t)){var e="";return Object.keys(t).forEach((function(n){var r,o=(null!==(r=n.replace(/([A-Z])/g,"-$1"))&&void 0!==r?r:"").toLowerCase();e+="".concat(o,":").concat(t[n],";")})),e}return t&&"string"==typeof t?t:""}function Hi(t,e){return t&&"object"===U(t)&&e&&"object"===U(e)?Object.assign({},t,e):Yi(t)+Yi(e)}function Bi(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var Gi="htmlAssist";function Ui(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!At(t))return t;if(!At(e)||e<=0)throw new Error(Gn(Dn,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),Gi));var o=parseFloat(t);if(o<r)return t;var i=fn(o/e,n);return 0===i?"0":i+"rem"}var qi="localMetaData";function _i(){nr("getLocalMetaData");var t=Rr(qi);return null==(t||null)||null==(t.dataVersion||null)?null:V(V({},{data:null}),t).data||null}function zi(t){return nr("setLocalMetaData"),Yr(qi,{data:t,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Vi(){Hr(qi)}var Ji="navigationAssist",Ki={navigateTo:function(t){or(Gn(Dn,"setNavigator need config, use setNavigator to set it",Ji))},redirectTo:function(t,e){or(Gn(Dn,"setRedirector need config, use setRedirector to set it",Ji))}};function Qi(t){Ki.navigateTo=t}function Zi(t){Ki.redirectTo=t}function $i(t){if(Nt(t)||Tt(t))Ki.redirectTo(t);else{Ro("invalid parameter, params need string or object")}}function Xi(t){if(Nt(t)||Tt(t))Ki.navigateTo(t);else{Ro("invalid parameter, params need string or object")}}var ta={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Zn(zn(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Qn(zn(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr(zn(e,r))}};function ea(t){ta.showOpenNotification=t}function na(t){ta.showLoadingNotification=t}function ra(t){ta.showInfoNotification=t}function oa(t){ta.showSuccessNotification=t}function ia(t){ta.showWarnNotification=t}function aa(t){ta.showWarningNotification=t}function ua(t){ta.showErrorNotification=t}function ca(t){la({description:t})}function la(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showOpenNotification)&&ta.showOpenNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function sa(t){fa({description:t})}function fa(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showLoadingNotification)&&ta.showLoadingNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function da(t){ha({description:t})}function ha(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showInfoNotification)&&ta.showInfoNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function pa(t){va({description:t})}function va(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showWarnNotification)&&ta.showWarnNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function ma(t){ga({description:t})}function ga(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showWarningNotification)&&ta.showWarningNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function ya(t){wa({description:t})}function wa(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showSuccessNotification)&&ta.showSuccessNotification({title:e,description:r,placement:i,duration:u,onClose:l})}function ba(t){xa({description:t})}function xa(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,u=void 0===a?3e3:a,c=t.onClose,l=void 0===c?function(){}:c;Mt(ta.showErrorNotification)&&ta.showErrorNotification({title:e,description:r,placement:i,duration:u,onClose:l})}var Sa="nearestLocalhostNotify";function Aa(){var t=Rr(Sa);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Ca(){return Yr(Sa,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function Da(){Hr(Sa)}function Ea(t){var e=t.text,n=!1,r=0,o=Aa()||null;null==o?n=!0:r=o.nearestTime||0;var i=parseInt((new Date).getTime()/1e3,10);try{if(r+30<i&&(n=!0),n){var a="当前接口域名: ".concat(e,". ");ha({text:a}),ir({message:a}),Ca()}}catch(t){Kn(t)}}function Ma(t){Hr(t)}function ka(t){var e=Rr(t);if(null==(e||null))return Ma(t),null;if(""===(e.dataVersion||""))return Ma(t),null;var n=parseInt((new Date).getTime()/1e3/60/30,10);return e.dataVersion<n?(Ma(t),null):e.useParamsData||null}function Ia(t,e){return Yr(t,{useParamsData:e||null,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=B(t);if(Yt(e))return n;if(Yt(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function ja(t){return G(t)}function Na(){
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
+ Na=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),u=new D(o||[]);return r(a,"_invoke",{value:x(t,n,u)}),a}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==e&&n.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=s(t[r],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==U(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),c(y,u,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=E,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function Fa(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Ta(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Fa(i,r,o,a,u,"next",t)}function u(t){Fa(i,r,o,a,u,"throw",t)}a(void 0)}))}}var Pa="token";function La(){return Pa}function Ra(){return Lr(Pa)}function Wa(t){return Wr(Pa,t)}function Ya(){return Hr(Pa)}function Ha(){var t={};return t["".concat(La())]=Ra()||"",t}var Ba="requestAssist",Ga={successCodeSetComplete:!1,authenticationFailCodeSetComplete:!1,successCode:200,authenticationFailCode:2001,promptSimulation:!1,promptSimulationSetComplete:!1,urlGlobalPrefix:"",displayRequestInfo:!1,displayRequestInfoSetComplete:!1,handleSupplementGlobalHeader:function(){return{}},handleRequest:function(t){t.url;t.method;t.data,t.header,t.option,er("handleRequest do nothing")},handleAuthenticationFail:function(){er("handleAuthenticationFail do nothing")}};function Ua(t){Hn()&&Vn({text:"setSuccessCode",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),At(t)||Qn(Gn(Dn,"setSuccessCode -> code must be number",Ba)),Ga.successCode=fn(t),Ga.successCodeSetComplete=!0}function qa(t){Hn()&&Vn({text:"setAuthenticationFailCode",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),At(t)||Qn(Gn(Dn,"setAuthenticationFailCode -> code must be number",Ba)),Ga.authenticationFailCode=fn(t),Ga.authenticationFailCodeSetComplete=!0}function _a(t){Hn()&&Vn({text:"setPromptSimulation",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),kt(t)||Qn(Gn(Dn,"setPromptSimulation -> code must be bool",Ba)),Ga.promptSimulation=mn(t),Ga.promptSimulationSetComplete=!0}function za(t){if(!Nt(t))throw new Error(Gn(Dn,"setUrlGlobalPrefix param globalPrefix need string, current is ".concat(U(t)),Ba));Ga.urlGlobalPrefix=t}function Va(t){Ga.handleRequest=t}function Ja(t){Ga.handleAuthenticationFail=t}function Ka(t){Ga.handleSupplementGlobalHeader=t}function Qa(t){Hn()&&Vn({text:"setRequestInfoDisplaySwitch",color:_n.execute,dataDescription:"execute",ancillaryInformation:""}),Ga.displayRequestInfo=mn(t),Ga.displayRequestInfoSetComplete=!0}function Za(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=hr(),i=fn(e);if(i!==r.code){var a=(new Date).getTime();i!==Ga.authenticationFailCode?(Qn("api call failed, code: ".concat(i,", message: ").concat(n)),i===fn(o.code)?a-o.time>800&&(Ro(n),pr({code:i,message:n,time:a})):(Ro(n),pr({code:i,message:n,time:a}))):er("api call failed, authentication fail"),i===Ga.authenticationFailCode&&Ga.handleAuthenticationFail()}}function $a(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.successCallback,i=void 0===o?null:o,a=t.failCallback,u=void 0===a?null:a,c=e||{code:-1,message:"",data:null,list:[],extra:null},l=c.code,s=c.message,f={},d=fn(l);if(d===fn(Ga.successCode)){var h=e.data,p=e.extra;Mt(r)&&(f=r(e)),f={code:d,message:s,data:h||{},extra:p||{},dataSuccess:!0},Mt(i)&&i(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},Mt(u)&&u(f),Za(f);return f}function Xa(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,i=void 0===o?null:o,a=t.successCallback,u=void 0===a?null:a,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Ga.successCode)){var v=e;Mt(r)&&(v=r(e));var m=v,g=m.list,y=m.extra,w=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="list-".concat(e)),Mt(i)&&(n=i(n)),n}));h={code:p,message:d,count:(w||[]).length,list:w,extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},Mt(l)&&l(h),Za(h);return h}function tu(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,i=void 0===o?null:o,a=t.successCallback,u=void 0===a?null:a,c=t.failCallback,l=void 0===c?null:c,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,h={},p=fn(f);if(p===fn(Ga.successCode)){var v=e;Mt(r)&&(v=r(e));var m=v,g=m.list,y=m.extra,w=y.pageNo,b=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="".concat(w,"-").concat(e)),Mt(i)&&(n=i(n)),n}));h={code:p,message:d,count:(b||[]).length,list:b,pagination:{total:y.total,pageSize:y.pageSize,current:parseInt(w||1,10)||1},extra:y,dataSuccess:!0},Mt(u)&&u(h)}else h={code:p,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},Mt(l)&&l(h),Za(h);return h}function eu(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function nu(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var i=e.alias,a=e.cacheData,u=Xa(r);Mt(o)&&(u=o(u));var c=null;if(It(i)||!Nt(i))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[i]=u,a){var l=yr({key:"".concat(n,"_").concat(i||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(i||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function ru(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var i=e.alias,a=e.cacheData,u=tu(r);Mt(o)&&(u=o(u));var c=null;if(It(i)||!Nt(i))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[i]=u,a){var l=yr({key:"".concat(n,"_").concat(i||"data"),value:u});er("modal ".concat(n," cache data, key is ").concat(n,"_").concat(i||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function ou(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zt.post,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=r;if(Mt(Ga.handleSupplementGlobalHeader)){var a=Ga.handleSupplementGlobalHeader();Tt(a)&&(i=V(V({},r),a))}Ga.handleRequest({url:t,method:e,data:n,header:i,option:o})}function iu(t){return au.apply(this,arguments)}function au(){return(au=Ta(Na().mark((function t(e){var n,r,o,i,a,u,c,l,s,f,d,h,p,v,m,g,y,w,b,x,S,A,C,D,E,M,k,I,O,j,N;return Na().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.api,r=e.urlParams,o=void 0===r?null:r,i=e.params,a=void 0===i?{}:i,u=e.header,c=void 0===u?{}:u,l=e.method,s=void 0===l?zt.post:l,f=e.mode,d=void 0===f?_t.real:f,h=e.promptSimulation,p=void 0===h?Ga.promptSimulation:h,v=e.promptSimulationDelay,m=void 0===v?500:v,g=e.simulateRequestDelay,y=void 0===g?0:g,w=e.simulativeSuccessResponse,b=void 0===w?{}:w,x=e.simulativeFailResponse,S=void 0===x?{code:1001,message:"虚拟未知错误"}:x,A=e.simulateRequestResult,C=void 0===A||A,D=e.simulativeAuthorize,E=void 0!==D&&D,Nt(M=Ga.urlGlobalPrefix)){t.next=5;break}throw ir(M),new Error("apiVersion is not string");case 5:if(Nt(n)){t.next=8;break}throw ir(n),new Error("api is not string");case 8:if(wn(k=n).startsWith("http://")||wn(k).startsWith("https://")?k=n:(Yt(M)||(M="/".concat(M,"/")),k="".concat(M).concat(n).replace("//","/")),null!=(o||null)&&(Nt(o)&&(k="".concat(k,"?").concat(o)),Tt(o)&&(k="".concat(k,"?").concat(Oa(o)))),I=Ga.displayRequestInfo,d!==_t.real){t.next=27;break}if(tr("api request is virtual: simulation start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),p&&setTimeout((function(){Io("由虚拟访问返回")}),m>0?m:0),O={},j=!1,E&&(Yt(Ra())||(j=!0)),!E||j){t.next=22;break}Ga.handleAuthenticationFail(),t.next=25;break;case 22:return t.next=24,pu({simulateRequestDelay:y,dataBuild:function(t){t(C?lu({response:b,needAuthorize:E}):cu({response:S,needAuthorize:E}))}});case 24:O=t.sent;case 25:return I&&ar({url:k,mode:d,response:O,params:a}),t.abrupt("return",O);case 27:if(I&&ar({api:n,apiVersion:M,apiChange:k,params:a}),N=st(gn(s)),!Ht([zt.get,zt.post],N)){t.next=31;break}return t.abrupt("return",ou({url:k,data:a,header:V({},c||{}),option:{},method:zt.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function uu(){return Yt(Ra())}function cu(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?uu()?(Yo(r),V({code:n,message:r,success:!1},e)):{code:Ga.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(Yo(r),V({code:n,message:r,success:!1},e))}function lu(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?uu()?V({code:Ga.successCode,message:"success",success:!0},e):{code:Ga.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:Ga.successCode,message:"success",success:!0},e)}function su(t){return fu.apply(this,arguments)}function fu(){return(fu=Ta(Na().mark((function t(e){var n,r,o,i;return Na().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,r=e.needAuthorize,o=void 0===r||r,i={},t.next=4,new Promise((function(t){setTimeout((function(){t(lu({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return i=t,t})).catch((function(t){rr(t)}));case 4:return i.code===Ga.authenticationFailCode&&Ga.handleAuthenticationFail(),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function du(t){return hu.apply(this,arguments)}function hu(){return(hu=Ta(Na().mark((function t(e){var n,r,o,i,a;return Na().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,e.needAuthorize,r={},t.next=4,new Promise((function(t){setTimeout((function(){t(cu(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){rr(t)}));case 4:return i=(o=r).code,a=o.message,i===Ga.authenticationFailCode?Ga.handleAuthenticationFail():i!==Ga.successCode&&Fo(a),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function pu(t){return vu.apply(this,arguments)}function vu(){return(vu=Ta(Na().mark((function t(e){var n,r,o,i,a,u,c;return Na().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.simulateRequestDelay,r=void 0===n?200:n,o=e.dataBuild,i={},t.next=4,new Promise((function(t){Mt(o)&&setTimeout((function(){o(t)}),r>0?r:0)})).then((function(t){return tr("api request is virtual: simulation completed."),i=t,t})).catch((function(t){rr(t)}));case 4:return u=(a=i).code,c=a.message,u!==Ga.successCode&&Po(c),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var mu="sessionStorageAssist",gu={getStorage:function(t){or(Gn(Dn,"setStorageGetter need config, use setStorageGetter to set it",mu))},setStorage:function(t,e){or(Gn(Dn,"setStorageSetter need config, use setStorageSetter to set it",mu))},removeStorage:function(t){or(Gn(Dn,"setStorageRemover need config, use setStorageRemover to set it",mu))},flushStorage:function(){or(Gn(Dn,"setStorageFlusher need config, use setStorageFlusher to set it",mu))}};function yu(t){gu.getStorage=t}function wu(t){gu.setStorage=t}function bu(t){gu.removeStorage=t}function xu(t){gu.flushStorage=t}function Su(t){try{return gu.getStorage(t)}catch(e){throw or({key:t,e:e}),e}}function Au(t){var e=Su(t);return Yt(e)?null:JSON.parse(e||"{}")}function Cu(t,e){gu.setStorage(t,e)}function Du(t,e){gu.setStorage(t,JSON.stringify(e||{}))}function Eu(t){gu.removeStorage(t)}function Mu(){gu.flushStorage()}function ku(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(Yt(n)?"":",".concat(n))}function Iu(t){var e=t.label,n=t.name,r=t.helper,o="",i="",a="";if(Nt(e))o=e;else{Qn({label:e,name:n,helper:r}),Ho({message:"label必须为文本"})}if(Nt(n))i=n;else{Qn({label:e,name:n,helper:r}),Ho({message:"name必须为文本"})}if(Nt(r))a=r;else{Qn({label:e,name:n,helper:r}),Ho({message:"helper必须为文本"})}return{label:o,name:i,helper:a}}function Ou(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{Bt as accessWaySpecialCollection,Xr as addHour,to as addMinute,eo as addSecond,zr as applicationConfiguration,X as assign,tt as assignWith,Bi as attachPropertiesToComponent,ku as buildFieldDescription,Ou as buildFieldHelper,Li as buildHexColor,Ri as buildLinearGradient,Gn as buildPromptModuleInfo,Oa as buildQueryStringify,Pi as buildRGBColorFromHexColor,Ti as buildRandomHexColor,cu as buildSimulateRequestFailResponse,lu as buildSimulateRequestSuccessResponse,Yi as buildStringStyle,Ha as buildTokenData,oo as calculateDateInterval,io as calculateMonthInterval,ro as calculateTimeInterval,Zo as checkExist,Iu as checkFromConfig,ai as checkHasAuthority,Yn as checkHasMore,Ht as checkInCollection,oi as checkIsSuper,mo as checkMessagePromptData,Yt as checkStringIsNullOrWhiteSpace,Hn as checkWhetherDevelopmentEnvironment,Tn as cloneWithoutMethod,Qt as convertCollection,Ui as convertPixelToRem,$r as createDayJsDatetime,$t as datetimeFormat,ji as decodeBase64,Er as deleteCache,Mr as deleteMultiCache,mt as difference,Jn as displayObjectMessage,Vn as displayTextMessage,ct as dropRight,Bo as ellipsis,Kt as emptyDatetime,Ni as encodeBase64,Q as endsWith,Gt as envCollection,ue as errorImage,In as evil,gt as filter,bt as find,wt as findIndex,at as first,Fi as fixedZero,it as floor,kr as flushAllCache,Br as flushLocalStorage,Mu as flushSessionStorage,nt as forEach,Zt as formatCollection,po as formatDateInterval,vo as formatDateIntervalWithNow,fo as formatDatetime,co as formatDecimal,lo as formatMoney,so as formatMoneyToChinese,ho as formatTarget,J as get,Ur as getAccessWayCollectionCache,Jr as getApplicationInitialConfig,Qr as getApplicationMergeConfig,ni as getAuthority,Nn as getBrowserInfo,jn as getBrowserVersion,Sr as getCache,mr as getCachePool,ao as getDayOfWeek,br as getExpiration,Wn as getGuid,Rr as getJsonFromLocalStorage,Au as getJsonFromSessionStorage,hr as getLastRequestExceptionMessage,_i as getLocalMetaData,ur as getLoggerDisplaySwitch,Cr as getMultiCache,Aa as getNearestLocalhostNotifyCache,no as getNow,ka as getParamsDataCache,qo as getPathValue,dr as getRuntimeDataStorage,Lr as getStringFromLocalStorage,Su as getStringFromSessionStorage,uo as getTodayOfWeek,Ra as getToken,La as getTokenKeyName,Bn as getValue,Vo as getValueByKey,rt as gte,$o as handleItem,nu as handleListDataAssist,ru as handlePageListDataAssist,gr as hasCache,Ft as isArray,kt as isBoolean,On as isBrowser,jt as isDate,St as isDatetime,Dt as isEqual,Et as isEqualBySerialize,Mt as isFunction,Wt as isImageBase4,xt as isInvalid,Ct as isMoney,Ot as isNull,At as isNumber,Tt as isObject,Pt as isPlainObject,Lt as isPromise,Nt as isString,It as isUndefined,Rt as isUrl,Ar as keys,jr as localStorageAssist,_n as logColorCollection,$n as logConfig,Kn as logData,er as logDebug,re as logDisplay,rr as logError,or as logException,nr as logExecute,Zn as logInfo,ne as logLevel,ar as logObject,Xn as logStack,ir as logText,tr as logTrace,Qn as logWarn,qn as loggerSwitch,ht as map,ot as memoize,Wi as mergeProps,Hi as mergeStyle,zn as mergeTextMessage,go as messagePromptAssist,ie as messageTypeCollection,Xi as navigateTo,Ki as navigationAssist,ta as notificationPromptAssist,oe as notificationTypeCollection,ja as parseQueryString,Xa as pretreatmentRemoteListData,tu as pretreatmentRemotePageListData,$a as pretreatmentRemoteSingleData,eu as pretreatmentRequestParams,$i as redirectTo,Pn as refitCommonData,Ln as refitFieldDecoratorOption,_o as removeEndMatch,dt as removeFromArray,zo as removeLastMatch,Vi as removeLocalMetaData,Hr as removeLocalStorage,Da as removeNearestLocalhostNotifyCache,Ma as removeParamsDataCache,Eu as removeSessionStorage,Ya as removeToken,ft as replace,Go as replaceWithKeep,iu as request,Ga as requestConfiguration,zt as requestMethod,_t as requestMode,et as reverse,K as round,sr as runtimeConfiguration,Yr as saveJsonToLocalStorage,Du as saveJsonToSessionStorage,Wr as saveStringToLocalStorage,Cu as saveStringToSessionStorage,Rn as searchFromList,Fn as seededRandom,gu as sessionStorageAssist,pt as set,qr as setAccessWayCollectionCache,Vr as setApplicationInitialConfig,qa as setAuthenticationFailCode,Ja as setAuthenticationFailHandler,ei as setAuthority,yr as setCache,Kr as setConfigurationMergeHandler,Co as setErrorMessageDisplayMonitor,ua as setErrorNotificationDisplayMonitor,xr as setExpiration,Ka as setGlobalHeaderSupplementHandler,bo as setInfoMessageDisplayMonitor,ra as setInfoNotificationDisplayMonitor,pr as setLastRequestExceptionMessage,wo as setLoadingMessageDisplayMonitor,na as setLoadingNotificationDisplayMonitor,zi as setLocalMetaData,Pr as setLocalStorageFlusher,Nr as setLocalStorageGetter,Tr as setLocalStorageRemover,Fr as setLocalStorageSetter,cr as setLoggerDisplaySwitch,wr as setMultiCache,Qi as setNavigator,Ca as setNearestLocalhostNotifyCache,yo as setOpenMessageDisplayMonitor,ea as setOpenNotificationDisplayMonitor,Ia as setParamsDataCache,_a as setPromptSimulation,Zi as setRedirector,Va as setRequestHandler,Qa as setRequestInfoDisplaySwitch,fr as setRuntimeDataStorage,xu as setSessionStorageFlusher,yu as setSessionStorageGetter,bu as setSessionStorageRemover,wu as setSessionStorageSetter,Ua as setSuccessCode,xo as setSuccessMessageDisplayMonitor,oa as setSuccessNotificationDisplayMonitor,Wa as setToken,za as setUrlGlobalPrefix,So as setWarnMessageDisplayMonitor,ia as setWarnNotificationDisplayMonitor,Ao as setWarningMessageDisplayMonitor,aa as setWarningNotificationDisplayMonitor,Wo as showErrorMessage,xa as showErrorNotification,Oo as showInfoMessage,ha as showInfoNotification,ko as showLoadingMessage,fa as showLoadingNotification,Eo as showOpenMessage,la as showOpenNotification,Ho as showRuntimeError,Ro as showSimpleErrorMessage,ba as showSimpleErrorNotification,Io as showSimpleInfoMessage,da as showSimpleInfoNotification,Mo as showSimpleLoadingMessage,sa as showSimpleLoadingNotification,Do as showSimpleOpenMessage,ca as showSimpleOpenNotification,Yo as showSimpleRuntimeError,jo as showSimpleSuccessMessage,ya as showSimpleSuccessNotification,Fo as showSimpleWarnMessage,pa as showSimpleWarnNotification,Po as showSimpleWarningMessage,ma as showSimpleWarningNotification,No as showSuccessMessage,wa as showSuccessNotification,To as showWarnMessage,va as showWarnNotification,Lo as showWarningMessage,ga as showWarningNotification,du as simulateFailRequest,pu as simulateRequest,su as simulateSuccessRequest,vt as size,Uo as sleep,yt as sortBy,Jo as sortCollectionByKey,Xt as sortOperate,Z as sortedUnique,$ as split,ut as startsWith,Ir as statisticsCache,Gr as storageKeyCollection,Dr as takeCache,Cn as to,mn as toBoolean,dn as toBoundary,xn as toDatetime,wn as toLower,bn as toLowerFirst,ln as toMd5,hn as toMoney,fn as toNumber,pn as toPercentage,Sn as toPromise,An as toRound,cn as toSha1,vn as toString,gn as toUpper,yn as toUpperFirst,Qo as transformData,Ko as transformListData,ae as transparentImage,st as trim,Ea as trySendNearestLocalhostNotify,qt as underlyingExtensionState,Ut as underlyingState,lt as uniqBy,ee as whetherNumber,te as whetherString,Jt as zeroInt,Vt as zeroString};
@@ -0,0 +1,5 @@
1
+ export function getAccessWayCollectionCache(): {};
2
+ export function setAccessWayCollectionCache(o: any): void;
3
+ export namespace storageKeyCollection {
4
+ const accessWayCollection: string;
5
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Set application initial config
3
+ * @param {Number} config application initial config
4
+ */
5
+ export function setApplicationInitialConfig(config: number): void;
6
+ /**
7
+ * Get application initial config
8
+ * @returns
9
+ */
10
+ export function getApplicationInitialConfig(): any;
11
+ /**
12
+ * Set the application merge handler
13
+ * @param {Function} handler handle authentication merge
14
+ */
15
+ export function setConfigurationMergeHandler(handler: Function): void;
16
+ export function getApplicationMergeConfig(): any;
17
+ export namespace applicationConfiguration {
18
+ const initialConfigSetComplete: boolean;
19
+ function handleMergeConfiguration(config: any): any;
20
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 缓存用户权限数据体
3
+ * @param {*} authority
4
+ */
5
+ export function setAuthority(authority: any): void;
6
+ export function getAuthority(str: any): any;
7
+ export function checkIsSuper(): boolean;
8
+ export function checkHasAuthority(auth: any): boolean;
@@ -1,7 +1,3 @@
1
- /**
2
- * Set cache mount target.
3
- */
4
- export function setCacheMount(target: any): void;
5
1
  /**
6
2
  * Get the runtime cache pool.
7
3
  * @returns {nodeCache}
@@ -78,8 +74,4 @@ export function flushAllCache(): void;
78
74
  * Returns the statistics.
79
75
  */
80
76
  export function statisticsCache(): nodeCache.Stats;
81
- export namespace cacheMountTarget {
82
- const mountComplete: boolean;
83
- const target: null;
84
- }
85
77
  import nodeCache from "node-cache";
@@ -1,3 +1,9 @@
1
+ export namespace accessWaySpecialCollection {
2
+ export namespace _super {
3
+ const permission: string;
4
+ }
5
+ export { _super as super };
6
+ }
1
7
  export namespace envCollection {
2
8
  const WEAPP: string;
3
9
  const WEB: string;
@@ -32,6 +38,10 @@ export namespace underlyingExtensionState {
32
38
  const dataLoading_1: boolean;
33
39
  export { dataLoading_1 as dataLoading };
34
40
  }
41
+ export namespace requestMode {
42
+ const real: string;
43
+ const simulation: string;
44
+ }
35
45
  export namespace requestMethod {
36
46
  export const get: string;
37
47
  export const post: string;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * create dayjs datetime
3
+ * @param {String} datetime a datetime string, eg "2020-01-02"
4
+ * @param {String} format format string, eg "YYYY-MM-DD"
5
+ * @returns
6
+ */
7
+ export function createDayJsDatetime(datetime: string, format: string): dayjs.Dayjs;
1
8
  export function addHour(datetime: any, value: any): any;
2
9
  export function addMinute(datetime: any, value: any): any;
3
10
  export function addSecond(datetime: any, value: any): any;
@@ -20,3 +27,4 @@ export function getDayOfWeek({ data: date }: {
20
27
  export function getTodayOfWeek(transferChinese?: boolean): string | number;
21
28
  export function calculateDateInterval(date: any, nowDate: any, unit: any): number;
22
29
  export function calculateMonthInterval(startMonth: any, endMonth: any): number;
30
+ import dayjs from "dayjs";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取元数据
3
+ *
4
+ * @export
5
+ * @param {*} fn
6
+ * @returns
7
+ */
8
+ export function getLocalMetaData(): any;
9
+ /**
10
+ * 设置元数据
11
+ *
12
+ * @export
13
+ * @param {*} fn
14
+ * @returns
15
+ */
16
+ export function setLocalMetaData(data: any): void;
17
+ /**
18
+ * 移除元数据
19
+ *
20
+ * @export
21
+ * @param {*} fn
22
+ * @returns
23
+ */
24
+ export function removeLocalMetaData(): void;
@@ -11,9 +11,9 @@ export function setLoadingNotificationDisplayMonitor(callbackMonitor: any): void
11
11
  */
12
12
  export function setInfoNotificationDisplayMonitor(callbackMonitor: any): void;
13
13
  /**
14
- * Set the warn notification display monitor
14
+ * Set the success notification display monitor
15
15
  */
16
- export function seSuccessNotificationDisplayMonitor(callbackMonitor: any): void;
16
+ export function setSuccessNotificationDisplayMonitor(callbackMonitor: any): void;
17
17
  /**
18
18
  * Set the warn notification display monitor
19
19
  */
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 移除信息
3
+ *
4
+ * @export
5
+ * @param {*} fn
6
+ * @returns
7
+ */
8
+ export function removeParamsDataCache(key: any): void;
9
+ /**
10
+ * 获取useParamsData缓存
11
+ *
12
+ * @export
13
+ * @param {*} fn
14
+ * @returns
15
+ */
16
+ export function getParamsDataCache(key: any): any;
17
+ /**
18
+ * 设置useParamsData缓存
19
+ *
20
+ * @export
21
+ * @param {o} useParamsData数据
22
+ * @returns
23
+ */
24
+ export function setParamsDataCache(key: any, o: any): void;
@@ -0,0 +1,176 @@
1
+ /**
2
+ * Set request success code
3
+ * @param {Number} code success code
4
+ */
5
+ export function setSuccessCode(code: number): void;
6
+ /**
7
+ * Set request authentication fail code
8
+ * @param {Number} code authentication fail code
9
+ */
10
+ export function setAuthenticationFailCode(code: number): void;
11
+ /**
12
+ * Set prompt simulative request
13
+ * @param {Boolean} value whether prompt simulative request
14
+ */
15
+ export function setPromptSimulation(value: boolean): void;
16
+ /**
17
+ * Set the url global prefix
18
+ * @param {String} globalPrefix url global prefix, eg "V1" like api version
19
+ */
20
+ export function setUrlGlobalPrefix(globalPrefix: string): void;
21
+ /**
22
+ * Set the real request handler
23
+ * @param {Function} handler handle real request
24
+ */
25
+ export function setRequestHandler(handler: Function): void;
26
+ /**
27
+ * Set the authentication fail handler
28
+ * @param {Function} handler handle authentication fail
29
+ */
30
+ export function setAuthenticationFailHandler(handler: Function): void;
31
+ /**
32
+ * Set the global header handler supplement
33
+ * @param {Function} handler handle global header handler supplement
34
+ */
35
+ export function setGlobalHeaderSupplementHandler(handler: Function): void;
36
+ /**
37
+ * Set request info display switch
38
+ * @param {Boolean} value display switch
39
+ */
40
+ export function setRequestInfoDisplaySwitch(value: boolean): void;
41
+ /**
42
+ * 预处理单项数据返回
43
+ *
44
+ * @export
45
+ * @param {*} source 源数据
46
+ * @param {*} pretreatment 源数据预处理
47
+ * @param {*} successCallback 请求成功后的可回调函数
48
+ * @param {*} failCallback 请求失败后的可回调函数
49
+ * @returns
50
+ */
51
+ export function pretreatmentRemoteSingleData({ source, pretreatment, successCallback, failCallback, }: any): {};
52
+ /**
53
+ * 预处理集合数据返回
54
+ *
55
+ * @export
56
+ * @param {*} source
57
+ * @param {*} pretreatment 源数据预处理
58
+ * @param {*} itemPretreatment 源数据项预处理
59
+ * @param {*} successCallback 请求成功后的可回调函数
60
+ * @param {*} failCallback 请求失败后的可回调函数
61
+ * @returns
62
+ */
63
+ export function pretreatmentRemoteListData({ source, pretreatment, itemPretreatment, successCallback, failCallback, }: any): {};
64
+ /**
65
+ * 预处理分页数据返回
66
+ *
67
+ * @export
68
+ * @param {*} source
69
+ * @param {*} pretreatment 源数据预处理
70
+ * @param {*} itemPretreatment 源数据项预处理
71
+ * @param {*} successCallback 请求成功后的可回调函数
72
+ * @param {*} failCallback 请求失败后的可回调函数
73
+ * @returns
74
+ */
75
+ export function pretreatmentRemotePageListData({ source, pretreatment, itemPretreatment, successCallback, failCallback, }: any): {};
76
+ /**
77
+ * 预处理数据请求
78
+ *
79
+ * @export
80
+ * @param {*} d
81
+ * @returns
82
+ */
83
+ export function pretreatmentRequestParams(params: any, customHandle: any): any;
84
+ /**
85
+ * handleListDataAssist
86
+ * @param {*} state
87
+ * @param {*} action
88
+ * @param {*} pretreatment
89
+ * @param {*} callback
90
+ * @returns
91
+ */
92
+ export function handleListDataAssist(state: any, action: any, namespace: any): any;
93
+ export function handlePageListDataAssist(state: any, action: any, namespace: any): any;
94
+ /**
95
+ * Begin request(remote request / local simulate requests)
96
+ * @param {Object} option request option
97
+ * @param {string} option.api request address
98
+ * @param {Object} option.params request params
99
+ * @param {Object} option.header request header
100
+ * @param {String} option.method "GET"/"POST"/"PUT"/"DELETE", default is requestMethod.post
101
+ * @param {String} option.mode request mode, default is requestMode.real
102
+ * @param {Boolean} option.promptSimulation whether display simulate request message prompt
103
+ * @param {Object} option.simulativeSuccessResponse simulate request success response
104
+ * @param {Object} option.simulativeFailResponse simulate request fail response
105
+ * @param {Boolean} option.simulateRequestResult specifies whether the result is successful, generally used to debug
106
+ * @param {Boolean} option.simulativeAuthorize set simulate request whether check token, only check mull or empty, generally used to debug
107
+ */
108
+ export function request({ api, urlParams, params, header, method, mode, promptSimulation, promptSimulationDelay, simulateRequestDelay, simulativeSuccessResponse, simulativeFailResponse, simulateRequestResult, simulativeAuthorize, }: {
109
+ api: string;
110
+ params: Object;
111
+ header: Object;
112
+ method: string;
113
+ mode: string;
114
+ promptSimulation: boolean;
115
+ simulativeSuccessResponse: Object;
116
+ simulativeFailResponse: Object;
117
+ simulateRequestResult: boolean;
118
+ simulativeAuthorize: boolean;
119
+ }): Promise<void | {}>;
120
+ /**
121
+ * 封装模拟的错误返回
122
+ */
123
+ export function buildSimulateRequestFailResponse({ response, code, message, needAuthorize, }: {
124
+ response: any;
125
+ code: any;
126
+ message: any;
127
+ needAuthorize?: boolean | undefined;
128
+ }): any;
129
+ /**
130
+ * 封装模拟的正确返回
131
+ */
132
+ export function buildSimulateRequestSuccessResponse({ response, needAuthorize, }: {
133
+ response: any;
134
+ needAuthorize?: boolean | undefined;
135
+ }): any;
136
+ /**
137
+ * 封装正确的虚拟访问
138
+ */
139
+ export function simulateSuccessRequest({ remoteResponse, needAuthorize, }: {
140
+ remoteResponse: any;
141
+ needAuthorize?: boolean | undefined;
142
+ }): Promise<{}>;
143
+ /**
144
+ * 封装失败的虚拟访问
145
+ */
146
+ export function simulateFailRequest({ remoteResponse, needAuthorize, }: {
147
+ remoteResponse: any;
148
+ needAuthorize?: boolean | undefined;
149
+ }): Promise<{}>;
150
+ /**
151
+ * 封装模拟访问
152
+ */
153
+ export function simulateRequest({ simulateRequestDelay, dataBuild, }: {
154
+ simulateRequestDelay?: number | undefined;
155
+ dataBuild: any;
156
+ }): Promise<{}>;
157
+ export namespace requestConfiguration {
158
+ const successCodeSetComplete: boolean;
159
+ const authenticationFailCodeSetComplete: boolean;
160
+ const successCode: number;
161
+ const authenticationFailCode: number;
162
+ const promptSimulation: boolean;
163
+ const promptSimulationSetComplete: boolean;
164
+ const urlGlobalPrefix: string;
165
+ const displayRequestInfo: boolean;
166
+ const displayRequestInfoSetComplete: boolean;
167
+ function handleSupplementGlobalHeader(): {};
168
+ function handleRequest({ url, method, data, header, option, }: {
169
+ url: any;
170
+ method?: string | undefined;
171
+ data?: {} | undefined;
172
+ header?: any[] | undefined;
173
+ option?: {} | undefined;
174
+ }): void;
175
+ function handleAuthenticationFail(): void;
176
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Set cache mount target.
3
+ */
4
+ export function setRuntimeDataStorage(mountTarget: any): void;
5
+ export function getRuntimeDataStorage(): null;
6
+ export function getLastRequestExceptionMessage(): any;
7
+ export function setLastRequestExceptionMessage({ code, message, time }: {
8
+ code: any;
9
+ message: any;
10
+ time: any;
11
+ }): void;
12
+ export namespace runtimeConfiguration {
13
+ const runtimeDataStorage: null;
14
+ const runtimeDataStorageSetComplete: boolean;
15
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Get token catch key
3
+ */
4
+ export function getTokenKeyName(): string;
5
+ /**
6
+ * Get token catch
7
+ */
8
+ export function getToken(): void;
9
+ /**
10
+ * Set token catch
11
+ * @param {String} value
12
+ * @returns
13
+ */
14
+ export function setToken(value: string): void;
15
+ /**
16
+ * Remove token catch
17
+ *
18
+ * @export
19
+ * @param {*} fn
20
+ * @returns
21
+ */
22
+ export function removeToken(): void;
23
+ /**
24
+ * build token object
25
+ */
26
+ export function buildTokenData(): {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-utility",
3
- "version": "2.4.20",
3
+ "version": "2.4.23",
4
4
  "private": false,
5
5
  "description": "easy-soft-utility",
6
6
  "keywords": [
@@ -24,24 +24,35 @@
24
24
  "es"
25
25
  ],
26
26
  "scripts": {
27
- "build": "npx rimraf ./es && rollup --config rollup.config.compression.js --bundleConfigAsCjs",
28
- "postbuild": "npm run tsc:build",
29
- "build:skipCompression": "npx rimraf ./es && rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs",
30
- "postbuild:skipCompression": "npm run tsc:build",
31
- "clean-file": "npx rimraf ./node_modules",
32
- "dev": "rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs --watch --watch.onBundleEnd=\"npm run tsc:build\"",
33
- "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
34
- "lint-staged": "npx lint-staged",
35
- "lint-staged:js": "npx eslint --ext .js,.jsx,.ts,.tsx ",
36
- "lint:fix": "npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
37
- "lint:js": "npx eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
38
- "lint:prettier": "npx prettier --check \"**/*\" --end-of-line auto",
39
- "lint:style": "npx stylelint --fix \"./src/**/*.less\"",
40
- "precommit": "lint-staged",
27
+ "build:rollup": "npx rimraf ./es && rollup --config rollup.config.compression.js --bundleConfigAsCjs",
28
+ "postbuild:rollup": "npm run tsc:build",
29
+ "build:rollup:skipCompression": "npx rimraf ./es && rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs",
30
+ "postbuild:rollup:skipCompression": "npm run tsc:build",
31
+ "clean-file": "rimraf ./src/.umi && rimraf ./node_modules",
32
+ "dev:rollup": "rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs --watch --watch.onBundleEnd=\"npm run tsc:build\"",
33
+ "lint:file:all": "npm run lint:script:all && npm run lint:style:all",
34
+ "lint:file:all:fix": "npm run lint:script:all:fix && npm run lint:style:all:fix",
35
+ "lint:file:change": "npm run lint:script:change && npm run lint:style:all",
36
+ "lint:file:change:fix": "npm run lint:script:change:fix && npm run lint:style:all:fix",
37
+ "lint:script:all": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
38
+ "lint:script:all:fix": "npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
39
+ "postlint:script:all:fix": "npm run prettier:format:all",
40
+ "lint:script:change": "npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
41
+ "lint:script:change:fix": "npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src && npm run lint:style:fix",
42
+ "postlint:script:change:fix": "npm run prettier:format:change",
43
+ "lint:staged": "npx lint-staged --quiet",
44
+ "lint:style:all": "npx stylelint \"./src/**/*.less\"",
45
+ "lint:style:all:fix": "npx stylelint --fix \"./src/**/*.less\"",
46
+ "postlint:style:all:fix": "npm run prettier:format:all",
47
+ "lint:style:change": "npx stylelint --cache \"./src/**/*.less\"",
48
+ "lint:style:change:fix": "npx stylelint --cache --fix \"./src/**/*.less\"",
49
+ "postlint:style:change:fix": "npm run prettier:format:change",
50
+ "precommit": "npm run lint:staged",
41
51
  "prettier": "npx prettier -c --write \"**/*\"",
42
- "publish:compression": "npm run build && yarn publish",
43
- "tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete",
44
- "v:p": "npm version patch && yarn publish"
52
+ "prettier:format:all": "npx prettier --write .",
53
+ "prettier:format:change": "npx prettier --cache --write .",
54
+ "prettier:package.json": "npx prettier --write ./package.json",
55
+ "tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
45
56
  },
46
57
  "dependencies": {
47
58
  "dayjs": "^1.11.7",
@@ -124,6 +135,5 @@
124
135
  "stylelint-config-standard": "^29.0.0",
125
136
  "stylelint-declaration-block-no-ignored-properties": "^2.6.0",
126
137
  "webpack": "^5.75.0"
127
- },
128
- "gitHead": "fceecd5b08f54e6a73d72c07f2b62501d723cf70"
138
+ }
129
139
  }
package/License.txt DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 luzhitao
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above footerDescription notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.