easy-soft-utility 2.4.36 → 2.4.52
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 +3 -1
- package/es/index.js +2 -2
- package/es/utils/arrayAssist.d.ts +6 -0
- package/es/utils/authorityAssist.d.ts +1 -1
- package/es/utils/base64.d.ts +1 -1
- package/es/utils/checkAssist.d.ts +34 -5
- package/es/utils/componentAssist.d.ts +1 -1
- package/es/utils/constants.d.ts +1 -1
- package/es/utils/convertAssist.d.ts +6 -1
- package/es/utils/currentOperatorAssist.d.ts +13 -0
- package/es/utils/dvaAssist.d.ts +37 -0
- package/es/utils/formatAssist.d.ts +1 -1
- package/es/utils/lodashTools.d.ts +16 -2
- package/es/utils/meta.d.ts +9 -5
- package/es/utils/modelAssist.d.ts +33 -14
- package/es/utils/{paramsDataAssist.d.ts → parametersDataAssist.d.ts} +3 -3
- package/es/utils/requestAssist.d.ts +2 -2
- package/package.json +67 -46
- package/License.txt +0 -21
package/es/index.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ export * from "./utils/common";
|
|
|
9
9
|
export * from "./utils/componentAssist";
|
|
10
10
|
export * from "./utils/constants";
|
|
11
11
|
export * from "./utils/convertAssist";
|
|
12
|
+
export * from "./utils/currentOperatorAssist";
|
|
12
13
|
export * from "./utils/datetime";
|
|
14
|
+
export * from "./utils/dvaAssist";
|
|
13
15
|
export * from "./utils/formatAssist";
|
|
14
16
|
export * from "./utils/htmlAssist";
|
|
15
17
|
export * from "./utils/localMetaDataAssist";
|
|
@@ -22,7 +24,7 @@ export * from "./utils/modelAssist";
|
|
|
22
24
|
export * from "./utils/navigationAssist";
|
|
23
25
|
export * from "./utils/nearestLocalhostNotify";
|
|
24
26
|
export * from "./utils/notificationPromptAssist";
|
|
25
|
-
export * from "./utils/
|
|
27
|
+
export * from "./utils/parametersDataAssist";
|
|
26
28
|
export * from "./utils/promptAssist";
|
|
27
29
|
export * from "./utils/queryString";
|
|
28
30
|
export * from "./utils/requestAssist";
|
package/es/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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 c from"lodash/isObject";import u from"lodash/isString";import l from"lodash/isUndefined";import s from"lodash/replace";import f from"lodash/assign";import d from"lodash/assignWith";import p from"lodash/difference";import h from"lodash/dropRight";import m from"lodash/endsWith";import v 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 C from"lodash/gte";import A 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 L from"lodash/split";import F from"lodash/startsWith";import R from"lodash/trim";import P from"lodash/uniqBy";import T from"lodash/toNumber";import H from"lodash/toString";import W from"object-hash";import q from"dayjs";import{stringify as G,parse as Y}from"qs";function B(t){return B="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},B(t)}function U(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===B(e)?e:String(e)}function _(t,e,n){return(e=U(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 m(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 L(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 C(t,e)}function ot(t){return D(t)}function it(t,e){return b(t,e)}function at(t){return w(t)}function ct(t,e){return F(t,e)}function ut(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return h(t,e)}function lt(t,e){return P(t,e)}function st(t){return R(t)}function ft(t,e,n){return s(t,e,n)}function dt(t,e){return E(t,e)}function pt(t,e){return A(t,e)}function ht(t,e,n){return I(t,e,n)}function mt(t){return O(t)}function vt(t,e){return p(t,e)}function gt(t,e){return v(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 Ct(t){return a(t)}function At(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 u(t)}function Lt(t){return Array.isArray(t)}function Ft(t){return c(t)}function Rt(t){return null!==t&&"object"===B(t)&&!Lt(t)}function Pt(t){return Rt(t)&&Mt(t.then)&&Mt(t.catch)}function Tt(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Ht(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function Wt(t){return""===st(s(t||""," ",""))}function qt(t,e){var n=!1;return Lt(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}var Gt={whetherList:[{key:"b24a21cf-a45c-4b6a-9993-f6953d7eb1ee",flag:"0",name:"否",alias:"否",description:"",availability:1},{key:"ea1b8b1e-7b78-4b29-bbce-57ef0b25e23c",flag:"1",name:"是",alias:"是",description:"",availability:1}]},Yt={super:{permission:"super"}},Bt={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},_t={dataLoading:!0},zt={real:"real",simulation:"simulation"},Vt={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},Jt="0",Kt=0,Qt="1970-01-01 00:00",Zt={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},$t={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},Xt={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"},te={moveUp:"moveUp",moveDown:"moveDown"},ee={no:"0",yes:"1"},ne={no:0,yes:1},re={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},oe={auto:"auto",text:"text",object:"object"},ie={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ae={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",ue=ce,le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var se=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 fe=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:se(t,e,n)},de=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var pe=function(t){return de.test(t)};var he=function(t){return t.split("")},me="\\ud800-\\udfff",ve="["+me+"]",ge="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ye="\\ud83c[\\udffb-\\udfff]",we="[^"+me+"]",be="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="(?:"+ge+"|"+ye+")"+"?",Ce="[\\ufe0e\\ufe0f]?",Ae=Ce+Se+("(?:\\u200d(?:"+[we,be,xe].join("|")+")"+Ce+Se+")*"),De="(?:"+[we+ge+"?",ge,be,xe,ve].join("|")+")",Ee=RegExp(ye+"(?="+ye+")|"+De+Ae,"g");var Me=he,ke=pe,Ie=function(t){return t.match(Ee)||[]};var Oe=function(t){return ke(t)?Ie(t):Me(t)},je="object"==B(le)&&le&&le.Object===Object&&le,Ne="object"==("undefined"==typeof self?"undefined":B(self))&&self&&self.Object===Object&&self,Le=(je||Ne||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},Re=Array.isArray,Pe=Le,Te=Object.prototype,He=Te.hasOwnProperty,We=Te.toString,qe=Pe?Pe.toStringTag:void 0;var Ge=function(t){var e=He.call(t,qe),n=t[qe];try{t[qe]=void 0;var r=!0}catch(t){}var o=We.call(t);return r&&(e?t[qe]=n:delete t[qe]),o},Ye=Object.prototype.toString;var Be=Ge,Ue=function(t){return Ye.call(t)},_e=Le?Le.toStringTag:void 0;var ze=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":_e&&_e in Object(t)?Be(t):Ue(t)},Ve=function(t){return null!=t&&"object"==B(t)};var Je=Fe,Ke=Re,Qe=function(t){return"symbol"==B(t)||Ve(t)&&"[object Symbol]"==ze(t)},Ze=Le?Le.prototype:void 0,$e=Ze?Ze.toString:void 0;var Xe=function t(e){if("string"==typeof e)return e;if(Ke(e))return Je(e,t)+"";if(Qe(e))return $e?$e.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},tn=Xe;var en=fe,nn=pe,rn=Oe,on=function(t){return null==t?"":tn(t)};var an=function(t){return function(e){e=on(e);var n=nn(e)?rn(e):void 0,r=n?n[0]:e.charAt(0),o=n?en(n,1).join(""):e.slice(1);return r[t]()+o}},cn=an("toLowerCase"),un=an("toUpperCase");function ln(t){return W(t,{algorithm:"sha1"})}function sn(t){return W(t,{algorithm:"md5"})}function fn(t,e){var n=Math.pow(10,e+1),r=Math.floor(dn(t)*n);return 10*Math.round(r/10)/n}function dn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=T(t),r=Number.isNaN(n)?0:n;return null==(e||null)?r:fn(r,e)}function pn(t,e,n){if(!Ct(t))throw new Error("value must be number value");var r=dn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function hn(t){return At(t)?parseFloat(t,10):0}function mn(t){return"".concat(hn(1e3*dn(t)/10),"%")}function vn(t){return H(t)}function gn(t){return!!t}function yn(t){return vn(t).toUpperCase()}function wn(t){return un(t)}function bn(t){return vn(t).toLowerCase()}function xn(t){return cn(t)}function Sn(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 Cn(t){return Pt(t)?t:Promise.resolve(t)}function An(t,e){return K(t,e)}function Dn(t){var e=t.target,n=t.convert;if(Mt(n))return n(e);if(Nt(n))switch(n){case Zt.number:return dn(e);case Zt.datetime:return Sn(e);case Zt.string:return vn(e);case Zt.money:return hn(e);case Zt.array:return null==(e||null)?[]:Lt(e)?e:[e];default:return e}return e}var En="easy-soft-utility";function Mn(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 kn(t,e){if(t){if("string"==typeof t)return Mn(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)?Mn(t,e):void 0}}function In(t){return function(t){if(Array.isArray(t))return Mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||kn(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 On(t){return new Function("return ".concat(t))()}function jn(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function Nn(){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 Ln(){var t;return{versions:Nn(),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 Rn(t){return null==t?null:JSON.parse(JSON.stringify(t))}function Pn(t,e,n){var r=[];return null!=t&&(r=In(t)),null!=n&&(r=[].concat(In(r),In(n))),null!=e&&(r=[e].concat(In(r))),r}function Tn(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 Hn(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 qn(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function Gn(){return"development"===process.env.NODE_ENV}function Yn(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}var Bn="must be an object",Un="must be a string",_n="must be function",zn="must be array",Vn={buildMustObject:function(t){return"".concat(t," ").concat(Bn)},buildMustString:function(t){return"".concat(t," ").concat(Un)},buildMustFunction:function(t){return"".concat(t," ").concat(_n)},buildMustArray:function(t){return"".concat(t," ").concat(zn)}};function Jn(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)&&!Wt(t)}));return"".concat(i.join("::"),"::").concat(Wt(e)?"":e)}var Kn="loggerAssist",Qn={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},Zn={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function $n(t,e){return"".concat(vn(t)).concat(Wt(e)?"":" -> ".concat(e))}function Xn(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation,c=void 0===a?"":a,u=$n(Nt(e)?e:JSON.stringify(e),c);Wt(Xn)||console.log("%c%s","color:".concat(r,";"),"".concat(Wt(i)?"":"[".concat(yn(i),"] ")).concat(u))}function tr(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,i=void 0===o?"":o,a=t.ancillaryInformation;Xn({text:"check the following object data",color:r,dataDescription:i,ancillaryInformation:void 0===a?"":a}),console.log(e)}function er(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=pr();if(!Qn.loggerDisplaySwitchSetComplete&&!Qn.loggerDisplaySwitchPromptSetInformationComplete){var i=Jn(En,"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",Kn);Xn({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===re.exception){var a=null==(e||null)||Wt(e)?oe.auto:e;if(!qt([oe.auto,oe.text,oe.object],a))throw new Error("Invalid log display mode -> ".concat(a));if(a===oe.auto&&(a=Nt(t)?oe.text:oe.object),n!==re.exception){if(o){if(n===re.trace&&(a===oe.text&&Xn({text:t,color:Zn.trace,dataDescription:"trace",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.trace,dataDescription:"trace",ancillaryInformation:r})),n===re.debug&&(a===oe.text&&Xn({text:t,color:Zn.debug,dataDescription:"debug",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.debug,dataDescription:"debug",ancillaryInformation:r})),n===re.warn&&(a===oe.text&&Xn({text:t,color:Zn.warn,dataDescription:"warn",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.warn,dataDescription:"warn",ancillaryInformation:r})),n===re.info&&(a===oe.text&&Xn({text:t,color:Zn.info,dataDescription:"info",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.info,dataDescription:"info",ancillaryInformation:r})),n===re.execute&&(a===oe.text&&Xn({text:t,color:Zn.execute,dataDescription:"execute",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.execute,dataDescription:"execute",ancillaryInformation:r})),n===re.config&&(a===oe.text&&Xn({text:t,color:Zn.config,dataDescription:"config",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.config,dataDescription:"config",ancillaryInformation:r})),n===re.stack){a===oe.text&&Xn({text:t,color:Zn.stack,dataDescription:"stack",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var c=t.stack;console.log(ft(c,"Error:","Stack:"))}}n===re.error&&(a===oe.text&&Xn({text:t,color:Zn.error,dataDescription:"error",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.error,dataDescription:"error",ancillaryInformation:r}))}}else{a===oe.text&&Xn({text:t,color:Zn.exception,dataDescription:"exception",ancillaryInformation:r}),a===oe.object&&tr({data:t,color:Zn.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 nr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.warn,e):dr(t,re.warn,e)}function rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.info,e):dr(t,re.info,e)}function or(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.config,e):dr(t,re.config,e)}function ir(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.stack,e):dr(t,re.stack,e)}function ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.trace,e):dr(t,re.trace,e)}function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.debug,e):dr(t,re.debug,e)}function ur(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.execute,e):dr(t,re.execute,e)}function lr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.error,e):dr(t,re.error,e)}function sr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Nt(t)?fr(t,re.exception,e):dr(t,re.exception,e)}function fr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";er(t,oe.text,e,n)}function dr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";er(t,oe.object,e,n)}function pr(){return gn(Qn.display)}function hr(t){Gn()&&Xn({text:"setLoggerDisplaySwitch",color:Zn.execute,dataDescription:"execute",ancillaryInformation:""}),Qn.display=gn(t),Qn.loggerDisplaySwitchSetComplete=!0}var mr="runtimeAssist",vr={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function gr(e){if(Gn()&&Xn({text:"setDataStorage",color:Zn.execute,dataDescription:"execute",ancillaryInformation:""}),!Ft(e))throw cr(e),new Error(Jn(En,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":B(target)),mr));e.runtimeDataStorage={},vr.runtimeDataStorage=e.runtimeDataStorage,vr.runtimeDataStorageSetComplete=!0,function(e){if(null==(e||null))throw new Error("runtimeDataStorage has not set complete");e.localRuntimeCache=new t,e.applicationInitialConfig={},e.externalConfigList=[],e.applicationConfigMergeComplete=!1,e.applicationMergeConfig={},e.lastRequestExceptionMessage={code:-1,message:"",time:(new Date).getTime()}}(vr.runtimeDataStorage)}function yr(){if(Ot(vr.runtimeDataStorage)||!vr.runtimeDataStorageSetComplete)throw new Error(Jn(En,"runtimeDataStorage has not set,use setDataStorage to set it",mr));return vr.runtimeDataStorage}function wr(){return vr.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:(new Date).getTime()}}function br(t){var e=t.code,n=t.message,r=t.time;vr.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function xr(t){return Wt(t)?(sr("checkKey -> cache key is null or empty"),!1):!(!Nt(t)&&!Ct(t))||(sr("cache key must be string or number, current type id ".concat(B(t))),!1)}function Sr(){var e=yr();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function Cr(t){var e=t.key,n=Sr();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function Ar(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(xr(e)){var i=Sr();if(null==i)throw new Error("cache pool not exist");return i.set(e,n,o)}}function Dr(t){if(!Lt(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(!Wt(r)){if(!xr(r))return;e.push({key:r,value:o,ttl:i})}})),e.length<=0)return!1;var n=Sr();if(null==n)throw new Error("cache pool not exist");return n.mset(e)}function Er(t){var e=t.key,n=Sr();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function Mr(t){var e=t.key,n=t.expiration,r=Sr();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function kr(t){var e=t.key,n=Sr();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Ir(){var t=Sr();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Or(t){if(!Lt(t))throw new Error("getMultiCache: list must be array");var e=Sr();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function jr(t){var e=t.key,n=Sr();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function Nr(t){var e=t.key;if(xr(e)){var n=Sr();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Lr(t){if(!Lt(t))throw new Error("deleteMultiCache: list must be array");var e=Sr();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function Fr(){var t=Sr();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function Rr(){var t=Sr();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var Pr="localStorageAssist",Tr={getStorage:function(t){sr(Jn(En,"setStorageGetter need config, use setStorageGetter to set it",Pr))},setStorage:function(t,e){sr(Jn(En,"setStorageSetter need config, use setStorageSetter to set it",Pr))},removeStorage:function(t){sr(Jn(En,"setStorageRemover need config, use setStorageRemover to set it",Pr))},flushStorage:function(){sr(Jn(En,"setStorageFlusher need config, use setStorageFlusher to set it",Pr))}};function Hr(t){Tr.getStorage=t}function Wr(t){Tr.setStorage=t}function qr(t){Tr.removeStorage=t}function Gr(t){Tr.flushStorage=t}function Yr(t){try{return Tr.getStorage(t)}catch(e){throw sr({key:t,e:e}),e}}function Br(t){var e=Yr(t);return Wt(e)?null:JSON.parse(e||"{}")}function Ur(t,e){Tr.setStorage(t,e)}function _r(t,e){Tr.setStorage(t,JSON.stringify(e||{}))}function zr(t){Tr.removeStorage(t)}function Vr(){Tr.flushStorage()}var Jr={accessWayCollection:"accessWayCollection"};function Kr(){var t={},e=Jr.accessWayCollection;if(Cr({key:e})&&Lt(t=kr({key:e})))return t;var n=Br(e);return null==(n||null)?V({},Yt||{}):(Ar({key:e,value:t=V(V({},n||null),Yt||{})}),t)}function Qr(t){_r(Jr.accessWayCollection,t||{})}function Zr(t){return Wt(t.text||null)&&nr(Jn(En,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var $r={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,rr(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,nr(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,nr(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,lr(e)},setErrorMessageDisplayMonitorComplete:!1};function Xr(t){$r.showOpenMessage=t}function to(t){$r.showLoadingMessage=t}function eo(t){$r.showInfoMessage=t}function no(t){$r.showSuccessMessage=t}function ro(t){$r.showWarnMessage=t}function oo(t){$r.showWarningMessage=t}function io(t){$r.showErrorMessage=t,$r.setErrorMessageDisplayMonitorComplete=!0}function ao(t){co({text:t})}function co(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showOpenMessage)&&(Zr({text:e}),$r.showOpenMessage({text:e,duration:r,onClose:i}))}function uo(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($r.showLoadingMessage)&&(Zr({text:e}),$r.showLoadingMessage({text:e,duration:r,onClose:i}))}function so(t){fo({text:t})}function fo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showInfoMessage)&&(Zr({text:e}),$r.showInfoMessage({text:e,duration:r,onClose:i}))}function po(t){ho({text:t})}function ho(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showSuccessMessage)&&(Zr({text:e}),$r.showSuccessMessage({text:e,duration:r,onClose:i}))}function mo(t){vo({text:t})}function vo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showWarnMessage)&&(Zr({text:e}),$r.showWarnMessage({text:e,duration:r,onClose:i}))}function go(t){yo({text:t})}function yo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showWarningMessage)&&(Zr({text:e}),$r.showWarningMessage({text:e,duration:r,onClose:i}))}function wo(t){bo({text:t})}function bo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,i=void 0===o?function(){}:o;Mt($r.showErrorMessage)&&(Zr({text:e}),$r.showErrorMessage({text:e,duration:r,onClose:i}))}function xo(t){So({text:t})}function So(t){var e=t.text;Wt(e||"")||($r.setErrorMessageDisplayMonitorComplete&&bo({text:e}),sr({text:e}))}var Co="applicationAssist",Ao={externalConfigListSetComplete:!1,initialConfigSetComplete:!1};function Do(t){return Jn(En,t,Co)}function Eo(t){if(Gn()&&Xn({text:"setInitialConfig",color:Zn.execute,dataDescription:"execute",ancillaryInformation:""}),!Ft(t)){var e="setInitialConfig -> config must be object";Gn()&&Xn({text:Jn(En,e,Co),color:Zn.warn,dataDescription:"warn",ancillaryInformation:""}),wo(e)}yr().applicationInitialConfig=t,Ao.initialConfigSetComplete=!0}function Mo(t){if(Ao.externalConfigListSetComplete){var e="setApplicationExternalConfigList -> reset is not allowed, it can be set only once";return Gn()&&Xn({text:Do(e),color:Zn.warn,dataDescription:"warn",ancillaryInformation:""}),void wo(e)}Gn()&&Xn({text:"setApplicationExternalConfigList",color:Zn.execute,dataDescription:"execute",ancillaryInformation:""}),yr().externalConfigList=Lt(t)?t:Ft(t)?[t]:[],Ao.externalConfigListSetComplete=!0}function ko(){if(!Ao.initialConfigSetComplete)throw new Error(Jn(En,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",Co));return yr().applicationInitialConfig||{}}function Io(){if(!Ao.externalConfigListSetComplete)throw new Error(Jn(En,"applicationExternalConfigList has not set,use setApplicationExternalConfigList to set it",Co));var t=yr();return Lt(t.externalConfigList)?t.externalConfigList:[]}function Oo(){var t=yr();return t.applicationConfigMergeComplete||(Gn()&&Xn({text:Do("merge application configuration"),color:Zn.debug,dataDescription:"debug",ancillaryInformation:""}),t.applicationMergeConfig=function(t,e){if(!Lt(e))return t;var n=V({},t);return e.forEach((function(t){Ft(t)&&(n=V(V({},n),t))})),n}(ko(),t.externalConfigList),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function jo(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,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||kn(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 No(t,e){return q(t,e)}function Lo(t,e){var n=Sn(t);return n.setHours(n.getHours()+e)}function Fo(t,e){var n=Sn(t);return n.setMinutes(n.getMinutes()+e)}function Ro(t,e){var n=Sn(t);return n.setSeconds(n.getSeconds()+e)}function Po(){return new Date}function To(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 Ho=function(t,e,n){var r=Sn(t),o=e?Sn(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&&Wo(r,o)||"quarter"===n&&Wo(r,o)/3||"year"===n&&Wo(r,o)/12||i},Wo=function(t,e){var n=Sn(t),r=Sn(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function qo(t){var e=t.data;return q(e).day()}function Go(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=q().day();if(!t)return e;var n="";switch(dn(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 Wt(n)?"":"星期".concat(n)}function Yo(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 Bo({data:e,places:r,symbol:"",thousand:i,decimal:void 0===a?".":a})}function Bo(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,c=void 0===a?",":a,u=t.decimal,l=void 0===u?".":u,s=e||0,f=isNaN(r=Math.abs(r))?2:r,d=void 0!==i?i:"¥",p=c||",",h=l||".",m=s<0?"-":"",v=parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=v.length;return d+m+((g=g>3?g%3:0)?v.substr(0,g)+p:"")+v.substr(g).replace(/(\d{3})(?=\d)/g,i+"1"+p)+(f?h+Math.abs(s-dn(v)).toFixed(f).slice(2):"")}function Uo(t){var e,n,r,o=t.target,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],a=["","拾","佰","仟"],c=["","万","亿","兆"],u=["角","分","毫","厘"],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=jo(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,p=0;p<d;p+=1){var h=e.substr(p,1),m=d-p-1,v=m/4,g=m%4;"0"===h?f+=1:(f>0&&(l+=i[0]),f=0,l+=i[parseInt(h,10)]+a[g]),0===g&&f<4&&(l+=c[v])}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)]+u[w])}return""===l&&(l+=i[0]+"元"),l}function _o(t){var e=t.data,n=t.fmt,r=void 0===n?Xt.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":q(e).format(r)}function zo(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 $t.money:return Bo({data:e});case $t.datetime:return _o({data:e});case $t.chineseMoney:return Uo({target:e,option:o});case $t.percentage:return"".concat(An(100*e,1),"%");default:return e}return e}function Vo(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=Ho(t,e),i=o<0?1:0,a=Math.abs(o)/1e3,c=a/60,u=c/60,l=u/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)||c<45&&f(r.minutes[i],parseInt(c))||c<90&&f(r.hour[i],1)||u<24&&f(r.hours[i],parseInt(u))||u<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 Jo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Vo(t,Po(),e)}var Ko="common";function Qo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Jn(En,$n(t,e),Ko)}function Zo(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 $o(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 Xo(t,e){for(var n=(new Date).getTime();!((new Date).getTime()-n>t););Mt(e)&&e()}function ti(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=Qo("getPathValue","path must be string");return So({message:r}),null}var o=J(t,e,n);return It(n)||Ot(n)?o:o||n}function ei(t,e){if(!Nt(t))throw new Error(Qo("removeEndMatch",Vn.buildMustString("target")));if(!Nt(e))throw new Error(Qo("removeEndMatch",Vn.buildMustString("match")));if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.substr(n,e.length):t}function ni(t,e){if(!Nt(t))throw new Error(Qo("removeLastMatch",Vn.buildMustString("target")));if(!Nt(e))throw new Error(Qo("removeLastMatch",Vn.buildMustString("match")));if(Wt(t))return t;if(Wt(e))return t;var n=t.lastIndexOf(e);return n>=0?t.substr(n,e.length):t}function ri(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,c=t.convertBuilder,u=void 0===c?null:c,l=t.format,s=void 0===l?null:l,f=t.formatBuilder,d=void 0===f?null:f,p=ti(e,n,o),h=p;return null==(u||null)&&null==(a||null)||(h=Mt(u)?Dn({target:p,convert:u}):Dn({target:p,convert:a})),null==(d||null)&&null==(s||null)||(h=Mt(d)?zo({target:h,format:d}):zo({target:h,format:s})),h}function oi(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 c=[],u=[],l=[];if((r||[]).length<=1){return vo({message:"无需排序!"}),r}var s=ri({data:n,key:o,convert:Zt.number});switch((r||[]).forEach((function(t){var e=ri({data:t,key:o,convert:Zt.number});e<s&&c.push(t),e>s&&u.push(t)})),e){case te.moveUp:if(s===a){return vo({message:"已经排在首位!"}),r}(c||[]).forEach((function(t,e){if(e<c.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(u);break;case te.moveDown:if(s===(r||[]).length+a-1){return vo({message:"已经排在末位!"}),r}l=l.concat(c),(u||[]).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:vo({message:"不符合的操作, 允许的操作为['".concat(te.moveUp,"','").concat(te.moveDown,"']!")})}return l}function ii(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(Lt(n)?n:[n]).map((function(t){return ai({data:t,convert:o,target:a})}))}function ai(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),c=e[i],u=[];return Lt(c)&&(u=c.map((function(t){return ai({data:t,convert:r,target:i})}))),a[i]=u,a}function ci(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=bt(t,e,n);return!It(r)}function ui(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(!Ft(e))throw new Error(Qo("handleItem",Vn.buildMustObject("target")));if(!Ft(e.state))throw new Error(Qo("handleItem",Vn.buildMustObject("target.state")));var i=e.state.metaOriginalData;if(!Ft(i))throw new Error(Qo("handleItem",Vn.buildMustObject("target.state.metaOriginalData")));var a=-1;if(Mt(r))if(Mt(o)){if(null==(i.list||null))throw new Error(Qo("handleItem",Vn.buildMustArray("target.state.metaOriginalData.list")));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{So({message:"handler mast be function"})}else xo(Qo("handleItem",Vn.buildMustFunction("compareValueHandler")))}var li="authorityCollectionCache",si="hasSuperPermission";function fi(t){_r(Jr.authorityCollection,"string"==typeof t?[t]:t),Fr()}function di(t){var e,n=void 0===t?Yr(Jr.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:Lt(e)?e:[]}function pi(){return function(){var t=[];if(Cr({key:li})&&Lt(t=kr({key:li})))return t;var e,n=Yr(Jr.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=Lt(e)?e:[],Ar({key:li,value:t}),t}()}function hi(){if(Cr({key:si})){var t=kr({key:si});if(void 0!==t)return!!t}var e=function(){var t="",e=Kr();if(!Ft(e))return t;var n=ri({data:e,key:"super"});if(Ft(n)){var r=ri({data:n,key:"permission"});Nt(r)&&(t=r)}return t}();if(!Wt(e)&&((pi()||[]).find((function(t){return t===e}))||"")===e)return Ar({key:si,value:!0}),!0;return Ar({key:si,value:!1}),!1}function mi(t){if(hi())return!0;var e="0";if(Cr({key:t})&&void 0!==(e=kr({key:t})))return"0"!==e;var n=pi(),r=Kr(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&dr({checkAuthority:t,listAuthority:n,accessWayCollection:r}),Ar({key:t,value:e=void 0!==o?"1":"0"}),"0"!==e}function vi(t){if(Lt(t))return n=!1,Lt(e=t)?n=e.some((function(t){return mi(t)})):Nt(e)?n=mi(e):(wo("无效的待验证权限"),lr('auth fail on "'.concat(e.join(),'"')),n);var e,n;if(Nt(t))return mi(t);throw dr({auth:t}),new Error("auth need string or string array, please check in console.")}var gi,yi="function"==typeof atob,wi="function"==typeof btoa,bi="function"==typeof Buffer,xi="function"==typeof TextDecoder?new TextDecoder:void 0,Si="function"==typeof TextEncoder?new TextEncoder:void 0,Ci=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ai=(gi={},Ci.forEach((function(t,e){return gi[t]=e})),gi),Di=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ei=String.fromCharCode.bind(String),Mi="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))},ki=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},Ii=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},Oi=wi?function(t){return btoa(t)}:bi?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,i="",a=t.length%3,c=0;c<t.length;){if((n=t.charCodeAt(c++))>255||(r=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw new TypeError("invalid character found");i+=Ci[(e=n<<16|r<<8|o)>>18&63]+Ci[e>>12&63]+Ci[e>>6&63]+Ci[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},ji=bi?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(Ei.apply(null,t.subarray(n,n+4096)));return Oi(e.join(""))},Ni=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?Ei(192|e>>>6)+Ei(128|63&e):Ei(224|e>>>12&15)+Ei(128|e>>>6&63)+Ei(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return Ei(240|e>>>18&7)+Ei(128|e>>>12&63)+Ei(128|e>>>6&63)+Ei(128|63&e)},Li=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fi=bi?function(t){return Buffer.from(t,"utf8").toString("base64")}:Si?function(t){return ji(Si.encode(t))}:function(t){return Oi(t.replace(Li,Ni))},Ri=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Pi=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 Ei(55296+(e>>>10))+Ei(56320+(1023&e));case 3:return Ei((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Ei((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ti=yi?function(t){return atob(Ii(t))}:bi?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!Di.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=Ai[t.charAt(i++)]<<18|Ai[t.charAt(i++)]<<12|(n=Ai[t.charAt(i++)])<<6|(r=Ai[t.charAt(i++)]),o+=64===n?Ei(e>>16&255):64===r?Ei(e>>16&255,e>>8&255):Ei(e>>16&255,e>>8&255,255&e);return o},Hi=bi?function(t){return Mi(Buffer.from(t,"base64"))}:function(t){return Mi(Ti(t),(function(t){return t.charCodeAt(0)}))},Wi=bi?function(t){return Buffer.from(t,"base64").toString("utf8")}:xi?function(t){return xi.decode(Hi(t))}:function(t){return Ti(t).replace(Ri,Pi)},qi=function(t){return Wi(Ii(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function Gi(t){return qi(t)}function Yi(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?ki(Fi(t)):Fi(t)}(t)}function Bi(t){return 1*t<10?"0".concat(t):t}function Ui(t){var e=t.seed;return"#".concat("00000".concat((16777216*Fn({seed:e})<<0).toString(16)).substring(-6))}function _i(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 c=[],u=1;u<7;u+=2)c.push(parseInt("0x"+o.slice(u,u+2)));return e?"".concat(e,"(").concat(c.join(","),")"):n?c:c.join(",")}return sr("Invalid hex color -> ".concat(t)),o}function zi(t){var e=t.progress,n=t.startColor,r=t.endColor,o=_i(n,null,!0),i=_i(r,null,!0),a=jo(o,3),c=a[0],u=a[1],l=a[2],s=jo(i,3),f=s[0],d=s[1],p=s[2],h=[(c+Math.round((f-c)*e)).toString(16),(u+Math.round((d-u)*e)).toString(16),(l+Math.round((p-l)*e)).toString(16)];return"#".concat(h.join("").toUpperCase())}function Vi(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Ct(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(),")")}function Ji(){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 Ki(t){if(t&&"object"===B(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 Qi(t,e){return t&&"object"===B(t)&&e&&"object"===B(e)?Object.assign({},t,e):Ki(t)+Ki(e)}function Zi(t,e){var n=t;for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var $i="htmlAssist";function Xi(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(!Ct(t))return t;if(!Ct(e)||e<=0)throw new Error(Jn(En,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),$i));var o=parseFloat(t);if(o<r)return t;var i=dn(o/e,n);return 0===i?"0":i+"rem"}var ta="localMetaData";function ea(){ur("getLocalMetaData");var t=Br(ta);return null==(t||null)||null==(t.dataVersion||null)?null:V(V({},{data:null}),t).data||null}function na(t){return ur("setLocalMetaData"),_r(ta,{data:t,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function ra(){zr(ta)}var oa="modelNameList";function ia(){return Yr(oa)}function aa(t){return Ur(oa,t||"")}function ca(){zr(oa)}var ua="navigationAssist",la={navigateTo:function(t){sr(Jn(En,"setNavigator need config, use setNavigator to set it",ua))},redirectTo:function(t,e){sr(Jn(En,"setRedirector need config, use setRedirector to set it",ua))}};function sa(t){la.navigateTo=t}function fa(t){la.redirectTo=t}function da(t){if(Nt(t)||Ft(t))la.redirectTo(t);else{wo("invalid parameter, params need string or object")}}function pa(t){if(Nt(t)||Ft(t))la.navigateTo(t);else{wo("invalid parameter, params need string or object")}}var ha={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr($n(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr($n(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr($n(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,rr($n(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,nr($n(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,nr($n(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,lr($n(e,r))}};function ma(t){ha.showOpenNotification=t}function va(t){ha.showLoadingNotification=t}function ga(t){ha.showInfoNotification=t}function ya(t){ha.showSuccessNotification=t}function wa(t){ha.showWarnNotification=t}function ba(t){ha.showWarningNotification=t}function xa(t){ha.showErrorNotification=t}function Sa(t){Ca({description:t})}function Ca(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showOpenNotification)&&ha.showOpenNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function Aa(t){Da({description:t})}function Da(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showLoadingNotification)&&ha.showLoadingNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function Ea(t){Ma({description:t})}function Ma(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showInfoNotification)&&ha.showInfoNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function ka(t){Ia({description:t})}function Ia(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showWarnNotification)&&ha.showWarnNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function Oa(t){ja({description:t})}function ja(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showWarningNotification)&&ha.showWarningNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function Na(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,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showSuccessNotification)&&ha.showSuccessNotification({title:e,description:r,placement:i,duration:c,onClose:l})}function Fa(t){Ra({description:t})}function Ra(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,i=void 0===o?"":o,a=t.duration,c=void 0===a?3e3:a,u=t.onClose,l=void 0===u?function(){}:u;Mt(ha.showErrorNotification)&&ha.showErrorNotification({title:e,description:r,placement:i,duration:c,onClose:l})}var Pa="nearestLocalhostNotify";function Ta(){var t=Br(Pa);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Ha(){return _r(Pa,{nearestTime:parseInt((new Date).getTime()/1e3,10)})}function Wa(){zr(Pa)}function qa(t){var e=t.text,n=!1,r=0,o=Ta()||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,". ");Ma({text:a}),fr({message:a}),Ha()}}catch(t){er(t)}}function Ga(t){zr(t)}function Ya(t){var e=Br(t);if(null==(e||null))return Ga(t),null;if(""===(e.dataVersion||""))return Ga(t),null;var n=parseInt((new Date).getTime()/1e3/60/30,10);return e.dataVersion<n?(Ga(t),null):e.useParamsData||null}function Ba(t,e){return _r(t,{useParamsData:e||null,dataVersion:parseInt((new Date).getTime()/1e3/60/30,10)})}function Ua(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=G(t);if(Wt(e))return n;if(Wt(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function _a(t){return Y(t)}function za(){
|
|
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 a from"lodash/isNull";import i 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 p from"lodash/difference";import m from"lodash/dropRight";import h from"lodash/endsWith";import v from"lodash/filter";import g from"lodash/find";import y from"lodash/findIndex";import b from"lodash/first";import w from"lodash/floor";import x from"lodash/forEach";import S from"lodash/get";import C from"lodash/gte";import A 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 N from"lodash/size";import j from"lodash/sortBy";import O from"lodash/sortedUniq";import L from"lodash/split";import F from"lodash/startsWith";import T from"lodash/trim";import P from"lodash/uniqBy";import R from"lodash/toNumber";import H from"lodash/toString";import W from"object-hash";import B from"dayjs";import{stringify as q,parse as Y}from"qs";function G(t){return G="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},G(t)}function U(t){var e=function(t,e){if("object"!==G(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===G(e)?e:String(e)}function _(t,e,n){return(e=U(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){(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 K(t,e){if(t){if("string"==typeof t)return J(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)?J(t,e):void 0}}function Q(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=K(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Z=function(t){var e=G(t);return null!=t&&("object"==e||"function"==e)},X="object"==G($)&&$&&$.Object===Object&&$,tt="object"==("undefined"==typeof self?"undefined":G(self))&&self&&self.Object===Object&&self,et=X||tt||Function("return this")(),nt=et,rt=function(){return nt.Date.now()},ot=/\s/;var at=function(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e},it=/^\s+/;var ut=function(t){return t?t.slice(0,at(t)+1).replace(it,""):t},ct=et.Symbol,lt=ct,st=Object.prototype,ft=st.hasOwnProperty,dt=st.toString,pt=lt?lt.toStringTag:void 0;var mt=function(t){var e=ft.call(t,pt),n=t[pt];try{t[pt]=void 0;var r=!0}catch(t){}var o=dt.call(t);return r&&(e?t[pt]=n:delete t[pt]),o},ht=Object.prototype.toString;var vt=mt,gt=function(t){return ht.call(t)},yt=ct?ct.toStringTag:void 0;var bt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":yt&&yt in Object(t)?vt(t):gt(t)},wt=function(t){return null!=t&&"object"==G(t)};var xt=function(t){return"symbol"==G(t)||wt(t)&&"[object Symbol]"==bt(t)},St=ut,Ct=Z,At=xt,Dt=/^[-+]0x[0-9a-f]+$/i,Et=/^0b[01]+$/i,Mt=/^0o[0-7]+$/i,kt=parseInt;var It=Z,Nt=rt,jt=function(t){if("number"==typeof t)return t;if(At(t))return NaN;if(Ct(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ct(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=St(t);var n=Et.test(t);return n||Mt.test(t)?kt(t.slice(2),n?2:8):Dt.test(t)?NaN:+t},Ot=Math.max,Lt=Math.min;var Ft=function(t,e,n){var r,o,a,i,u,c,l=0,s=!1,f=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,a=o;return r=o=void 0,l=e,i=t.apply(a,n)}function m(t){return l=t,u=setTimeout(v,e),s?p(t):i}function h(t){var n=t-c;return void 0===c||n>=e||n<0||f&&t-l>=a}function v(){var t=Nt();if(h(t))return g(t);u=setTimeout(v,function(t){var n=e-(t-c);return f?Lt(n,a-(t-l)):n}(t))}function g(t){return u=void 0,d&&r?p(t):(r=o=void 0,i)}function y(){var t=Nt(),n=h(t);if(r=arguments,o=this,c=t,n){if(void 0===u)return m(c);if(f)return clearTimeout(u),u=setTimeout(v,e),p(c)}return void 0===u&&(u=setTimeout(v,e)),i}return e=jt(e)||0,It(n)&&(s=!!n.leading,a=(f="maxWait"in n)?Ot(jt(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=c=o=u=void 0},y.flush=function(){return void 0===u?i:g(Nt())},y},Tt=Ft,Pt=Z;var Rt=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Pt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Tt(t,e,{leading:r,maxWait:e,trailing:o})};function Ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return S(t,e,n)}function Wt(t,e){return k(t,e)}function Bt(t,e,n){return h(t,e,n)}function qt(t){return O(t)}function Yt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return L(t,e,n)}function Gt(t,e){return f(t,e)}function Ut(t,e,n){return d(t,e,n)}function _t(t){return M(t)}function zt(t,e){return x(t,e)}function Vt(t,e){return C(t,e)}function Jt(t){return D(t)}function Kt(t,e){return w(t,e)}function Qt(t){return b(t)}function $t(t,e){return F(t,e)}function Zt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return m(t,e)}function Xt(t,e){return P(t,e)}function te(t){return T(t)}function ee(t,e,n){return s(t,e,n)}function ne(t,e){return E(t,e)}function re(t,e){return A(t,e)}function oe(t,e,n){return I(t,e,n)}function ae(t){return N(t)}function ie(t,e){return p(t,e)}function ue(t,e){return v(t,e)}function ce(t,e){return j(t,e)}function le(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function se(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(t,e,n)}function fe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ft(t,e,n)}function de(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rt(t,e,n)}function pe(t){return xe(t)}function me(t){var e="".concat(xe(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()===Number.parseInt(e[1],10)&&n.getMonth()+1===Number.parseInt(e[3],10)&&n.getDate()===Number.parseInt(e[4],10)}function he(t){return i(t)}function ve(t){var e="".concat(xe(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9]\d{0,15}|0)(\.\d{1,2})?$/).test(e)}function ge(t,e){return r(t,e)}function ye(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function be(t){return o(t)}function we(t){return e(t)}function xe(t){return l(t)}function Se(t){return a(t)}function Ce(t){return n(t)}function Ae(t){return c(t)}function De(t){return Array.isArray(t)}function Ee(t){return u(t)}function Me(t){return null!==t&&"object"===G(t)&&!De(t)}function ke(t){return Me(t)&&be(t.then)&&be(t.catch)}function Ie(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Ne(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function je(t){return""===te(s(t||""," ",""))}function Oe(t,e){var n=!1;return De(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}function Le(t){return(new Date).toISOString().slice(0,10)===t.toISOString().slice(0,10)}function Fe(t,e,n){return n.getTime()>=t.getTime()&&n.getTime()<=e.getTime()}function Te(t){return 6===t.getDay()||0===t.getDay()}function Pe(t,e){return t.getUTCFullYear()===new Date("".concat(e)).getUTCFullYear()}function Re(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)}var He={whetherList:[{key:"b24a21cf-a45c-4b6a-9993-f6953d7eb1ee",flag:"0",name:"否",alias:"否",description:"",availability:1},{key:"ea1b8b1e-7b78-4b29-bbce-57ef0b25e23c",flag:"1",name:"是",alias:"是",description:"",availability:1}]},We={super:{permission:"super"}},Be={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},qe={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},Ye={dataLoading:!0},Ge={real:"real",simulation:"simulation"},Ue={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},_e="0",ze=0,Ve="1970-01-01 00:00",Je={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},Ke={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},Qe={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"},$e={moveUp:"moveUp",moveDown:"moveDown"},Ze={no:"0",yes:"1"},Xe={no:0,yes:1},tn={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack"},en={auto:"auto",text:"text",object:"object"},nn={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},rn={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},on="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",an=on;function un(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||K(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.")}()}var cn=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 a=Array(o);++r<o;)a[r]=t[r+e];return a};var ln=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:cn(t,e,n)},sn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var fn=function(t){return sn.test(t)};var dn=function(t){return t.split("")},pn="\\ud800-\\udfff",mn="["+pn+"]",hn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vn="\\ud83c[\\udffb-\\udfff]",gn="[^"+pn+"]",yn="(?:\\ud83c[\\udde6-\\uddff]){2}",bn="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="(?:"+hn+"|"+vn+")"+"?",xn="[\\ufe0e\\ufe0f]?",Sn=xn+wn+("(?:\\u200d(?:"+[gn,yn,bn].join("|")+")"+xn+wn+")*"),Cn="(?:"+[gn+hn+"?",hn,yn,bn,mn].join("|")+")",An=RegExp(vn+"(?="+vn+")|"+Cn+Sn,"g");var Dn=dn,En=fn,Mn=function(t){return t.match(An)||[]};var kn=function(t){return En(t)?Mn(t):Dn(t)};var In=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},Nn=Array.isArray,jn=In,On=Nn,Ln=xt,Fn=ct?ct.prototype:void 0,Tn=Fn?Fn.toString:void 0;var Pn=function t(e){if("string"==typeof e)return e;if(On(e))return jn(e,t)+"";if(Ln(e))return Tn?Tn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Rn=Pn;var Hn=ln,Wn=fn,Bn=kn,qn=function(t){return null==t?"":Rn(t)};var Yn=function(t){return function(e){e=qn(e);var n=Wn(e)?Bn(e):void 0,r=n?n[0]:e.charAt(0),o=n?Hn(n,1).join(""):e.slice(1);return r[t]()+o}},Gn=Yn("toLowerCase"),Un=Yn("toUpperCase");function _n(t){return W(t,{algorithm:"sha1"})}function zn(t){return W(t,{algorithm:"md5"})}function Vn(t,e){var n=Math.pow(10,e+1),r=Math.floor(Jn(t)*n);return 10*Math.round(r/10)/n}function Jn(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:Vn(r,e)}function Kn(t,e,n){if(!he(t))throw new Error("value must be number value");var r=Jn(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function Qn(t){return ve(t)?Number.parseFloat(t,10):0}function $n(t){return"".concat(Qn(1e3*Jn(t)/10),"%")}function Zn(t){return H(t)}function Xn(t){return!!t}function tr(t){return Zn(t).toUpperCase()}function er(t){return Un(t)}function nr(t){return Zn(t).toLowerCase()}function rr(t){return Gn(t)}function or(t){if(null==(t||null))return null;if(Ce(t))return t;if(Ae(t)&&t.indexOf("T")<0){var e=t.replace(/-/g,"/");return new Date(e)}return new Date(t)}function ar(t){return ke(t)?t:Promise.resolve(t)}function ir(t,e){return Wt(t,e)}function ur(t){var e=t.target,n=t.convert;if(be(n))return n(e);if(Ae(n))switch(n){case Je.number:return Jn(e);case Je.datetime:return or(e);case Je.string:return Zn(e);case Je.money:return Qn(e);case Je.array:return null==(e||null)?[]:De(e)?e:[e];default:return e}return e}function cr(t){return un(new Set(t))}var lr="easy-soft-utility";function sr(t){return new Function("return ".concat(t))()}function fr(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function dr(){return window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function pr(){var t=navigator.userAgent;return{trident:t.includes("Trident"),presto:t.includes("Presto"),webKit:t.includes("AppleWebKit"),gecko:t.includes("Gecko")&&!t.includes("KHTML"),mobile:!!/AppleWebKit.*Mobile.*/.test(t),ios:!!/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(t),android:t.includes("Android")||t.includes("Linux"),iPhone:t.includes("iPhone"),iPad:t.includes("iPad"),webApp:!t.includes("Safari")}}function mr(){var t;return{versions:pr(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function hr(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function vr(t){return null==t?null:JSON.parse(JSON.stringify(t))}function gr(t,e,n){var r=[];return null!=t&&(r=un(t)),null!=n&&(r=[].concat(un(r),un(n))),null!=e&&(r=[e].concat(un(r))),r}function yr(t,e,n,r,o){var a=r,i=void 0===n?null:n;return null!=e&&(a.initialValue="function"==typeof convertValue?o(t)||i:t||i),a}function br(t,e,n){var r=null;if(null==e)return r;var o,a=Q(n||[]);try{for(a.s();!(o=a.n()).done;){var i=o.value;i[t]===e&&(r=i)}}catch(t){a.e(t)}finally{a.f()}return r}function wr(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,wr)}function xr(){return wr()+""}function Sr(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function Cr(){return"development"===process.env.NODE_ENV}function Ar(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}var Dr="must be an object",Er="must be a string",Mr="must be function",kr="must be array",Ir={buildMustObject:function(t){return"".concat(t," ").concat(Dr)},buildMustString:function(t){return"".concat(t," ").concat(Er)},buildMustFunction:function(t){return"".concat(t," ").concat(Mr)},buildMustArray:function(t){return"".concat(t," ").concat(kr)}};function Nr(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 a=[t].concat(r).filter((function(t){return Ae(t)&&!je(t)}));return"".concat(a.join("::"),"::").concat(je(e)?"":e)}var jr="loggerAssist",Or={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},Lr={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c"};function Fr(t,e){return"".concat(Zn(t)).concat(je(e)?"":" -> ".concat(e))}function Tr(t){var e=t.text,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation,u=void 0===i?"":i,c=Fr(Ae(e)?e:JSON.stringify(e),u);je(Tr)||console.log("%c%s","color:".concat(r,";"),"".concat(je(a)?"":"[".concat(tr(a),"] ")).concat(c))}function Pr(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;Tr({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function Rr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=Kr();if(!Or.loggerDisplaySwitchSetComplete&&!Or.loggerDisplaySwitchPromptSetInformationComplete){var a=Nr(lr,"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",jr);Tr({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}Or.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||n===tn.exception){var i=null==(e||null)||je(e)?en.auto:e;if(!Oe([en.auto,en.text,en.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===en.auto&&(i=Ae(t)?en.text:en.object),n!==tn.exception){if(o){if(n===tn.trace&&(i===en.text&&Tr({text:t,color:Lr.trace,dataDescription:"trace",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.trace,dataDescription:"trace",ancillaryInformation:r})),n===tn.debug&&(i===en.text&&Tr({text:t,color:Lr.debug,dataDescription:"debug",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.debug,dataDescription:"debug",ancillaryInformation:r})),n===tn.warn&&(i===en.text&&Tr({text:t,color:Lr.warn,dataDescription:"warn",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.warn,dataDescription:"warn",ancillaryInformation:r})),n===tn.info&&(i===en.text&&Tr({text:t,color:Lr.info,dataDescription:"info",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.info,dataDescription:"info",ancillaryInformation:r})),n===tn.execute&&(i===en.text&&Tr({text:t,color:Lr.execute,dataDescription:"execute",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.execute,dataDescription:"execute",ancillaryInformation:r})),n===tn.config&&(i===en.text&&Tr({text:t,color:Lr.config,dataDescription:"config",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.config,dataDescription:"config",ancillaryInformation:r})),n===tn.stack){i===en.text&&Tr({text:t,color:Lr.stack,dataDescription:"stack",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(ee(u,"Error:","Stack:"))}}n===tn.error&&(i===en.text&&Tr({text:t,color:Lr.error,dataDescription:"error",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===en.text&&Tr({text:t,color:Lr.exception,dataDescription:"exception",ancillaryInformation:r}),i===en.object&&Pr({data:t,color:Lr.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 Hr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.warn,e):Jr(t,tn.warn,e)}function Wr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.info,e):Jr(t,tn.info,e)}function Br(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.config,e):Jr(t,tn.config,e)}function qr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.stack,e):Jr(t,tn.stack,e)}function Yr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.trace,e):Jr(t,tn.trace,e)}function Gr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.debug,e):Jr(t,tn.debug,e)}function Ur(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.execute,e):Jr(t,tn.execute,e)}function _r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.error,e):Jr(t,tn.error,e)}function zr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Ae(t)?Vr(t,tn.exception,e):Jr(t,tn.exception,e)}function Vr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Rr(t,en.text,e,n)}function Jr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Rr(t,en.object,e,n)}function Kr(){return Xn(Or.display)}function Qr(t){Cr()&&Tr({text:"setLoggerDisplaySwitch",color:Lr.execute,dataDescription:"execute",ancillaryInformation:""}),Or.display=Xn(t),Or.loggerDisplaySwitchSetComplete=!0}var $r="runtimeAssist",Zr={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function Xr(e){if(Cr()&&Tr({text:"setDataStorage",color:Lr.execute,dataDescription:"execute",ancillaryInformation:""}),!Ee(e))throw Cr()&&Pr({data:e,color:Lr.debug,dataDescription:"debug",ancillaryInformation:""}),new Error(Nr(lr,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":G(target)),$r));e.runtimeDataStorage={},Zr.runtimeDataStorage=e.runtimeDataStorage,Zr.runtimeDataStorageSetComplete=!0,function(e){if(null==(e||null))throw new Error("runtimeDataStorage has not set complete");e.localRuntimeCache=new t,e.applicationInitialConfig={},e.externalConfigList=[],e.applicationConfigMergeComplete=!1,e.applicationMergeConfig={},e.lastRequestExceptionMessage={code:-1,message:"",time:Date.now()}}(Zr.runtimeDataStorage)}function to(){if(Se(Zr.runtimeDataStorage)||!Zr.runtimeDataStorageSetComplete)throw new Error(Nr(lr,"runtimeDataStorage has not set,use setRuntimeDataStorage to set it",$r));return Zr.runtimeDataStorage}function eo(){return Zr.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:Date.now()}}function no(t){var e=t.code,n=t.message,r=t.time;Zr.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function ro(t){return je(t)?(zr("checkKey -> cache key is null or empty"),!1):!(!Ae(t)&&!he(t))||(zr("cache key must be string or number, current type id ".concat(G(t))),!1)}function oo(){var e=to();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function ao(t){var e=t.key,n=oo();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function io(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(ro(e)){var a=oo();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function uo(t){if(!De(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e,n=[],r=Q(t);try{for(r.s();!(e=r.n()).done;){var o=V({key:"",value:"",expiration:0},e.value),a=o.key,i=o.value,u=o.expiration;if(!je(a)){if(!ro(a))continue;n.push({key:a,value:i,ttl:u})}}}catch(t){r.e(t)}finally{r.f()}if(n.length<=0)return!1;var c=oo();if(null==c)throw new Error("cache pool not exist");return c.mset(n)}function co(t){var e=t.key,n=oo();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function lo(t){var e=t.key,n=t.expiration,r=oo();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function so(t){var e=t.key,n=oo();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function fo(){var t=oo();if(null==t)throw new Error("cache pool not exist");return t.keys()}function po(t){if(!De(t))throw new Error("getMultiCache: list must be array");var e=oo();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function mo(t){var e=t.key,n=oo();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function ho(t){var e=t.key;if(ro(e)){var n=oo();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function vo(t){if(!De(t))throw new Error("deleteMultiCache: list must be array");var e=oo();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function go(){var t=oo();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function yo(){var t=oo();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var bo="localStorageAssist",wo={getStorage:function(t){zr(Nr(lr,"localStorageGetter need config, use setLocalStorageGetter to set it",bo))},setStorage:function(t,e){zr(Nr(lr,"localStorageSetter need config, use setLocalStorageSetter to set it",bo))},removeStorage:function(t){zr(Nr(lr,"localStorageRemover need config, use setLocalStorageRemover to set it",bo))},flushStorage:function(){zr(Nr(lr,"localStorageFlusher need config, use setLocalStorageFlusher to set it",bo))}};function xo(t){wo.getStorage=t}function So(t){wo.setStorage=t}function Co(t){wo.removeStorage=t}function Ao(t){wo.flushStorage=t}function Do(t){try{return wo.getStorage(t)}catch(e){throw zr({key:t,e:e}),e}}function Eo(t){var e=Do(t);return je(e)?null:JSON.parse(e||"{}")}function Mo(t,e){wo.setStorage(t,e)}function ko(t,e){wo.setStorage(t,JSON.stringify(e||{}))}function Io(t){wo.removeStorage(t)}function No(){wo.flushStorage()}var jo={accessWayCollection:"accessWayCollection"};function Oo(){var t={},e=jo.accessWayCollection;if(ao({key:e})&&De(t=so({key:e})))return t;var n=Eo(e);return null==(n||null)?V({},We):(io({key:e,value:t=V(V({},n||null),We)}),t)}function Lo(t){ko(jo.accessWayCollection,t||{})}function Fo(t){return je(t.text||null)&&Hr(Nr(lr,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var To={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,Wr(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,Wr(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,Wr(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,Wr(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,Hr(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,Hr(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,_r(e)},setErrorMessageDisplayMonitorComplete:!1};function Po(t){To.showOpenMessage=t}function Ro(t){To.showLoadingMessage=t}function Ho(t){To.showInfoMessage=t}function Wo(t){To.showSuccessMessage=t}function Bo(t){To.showWarnMessage=t}function qo(t){To.showWarningMessage=t}function Yo(t){To.showErrorMessage=t,To.setErrorMessageDisplayMonitorComplete=!0}function Go(t){Uo({text:t})}function Uo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showOpenMessage)&&(Fo({text:e}),To.showOpenMessage({text:e,duration:r,onClose:a}))}function _o(t){zo({text:t})}function zo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showLoadingMessage)&&(Fo({text:e}),To.showLoadingMessage({text:e,duration:r,onClose:a}))}function Vo(t){Jo({text:t})}function Jo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showInfoMessage)&&(Fo({text:e}),To.showInfoMessage({text:e,duration:r,onClose:a}))}function Ko(t){Qo({text:t})}function Qo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showSuccessMessage)&&(Fo({text:e}),To.showSuccessMessage({text:e,duration:r,onClose:a}))}function $o(t){Zo({text:t})}function Zo(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showWarnMessage)&&(Fo({text:e}),To.showWarnMessage({text:e,duration:r,onClose:a}))}function Xo(t){ta({text:t})}function ta(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showWarningMessage)&&(Fo({text:e}),To.showWarningMessage({text:e,duration:r,onClose:a}))}function ea(t){na({text:t})}function na(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;be(To.showErrorMessage)&&(Fo({text:e}),To.showErrorMessage({text:e,duration:r,onClose:a}))}function ra(t){oa({text:t})}function oa(t){var e=t.text;je(e||"")||(To.setErrorMessageDisplayMonitorComplete&&na({text:e}),zr({text:e}))}var aa="applicationAssist",ia={externalConfigListSetComplete:!1,initialConfigSetComplete:!1};function ua(t){return Nr(lr,t,aa)}function ca(t){if(Cr()&&Tr({text:"setInitialConfig",color:Lr.execute,dataDescription:"execute",ancillaryInformation:""}),!Ee(t)){var e="setInitialConfig -> config must be object";Cr()&&Tr({text:Nr(lr,e,aa),color:Lr.warn,dataDescription:"warn",ancillaryInformation:""}),ea(e)}to().applicationInitialConfig=t,ia.initialConfigSetComplete=!0}function la(t){if(ia.externalConfigListSetComplete){var e="setApplicationExternalConfigList -> reset is not allowed, it can be set only once";return Cr()&&Tr({text:ua(e),color:Lr.warn,dataDescription:"warn",ancillaryInformation:""}),void ea(e)}Cr()&&Tr({text:"setApplicationExternalConfigList",color:Lr.execute,dataDescription:"execute",ancillaryInformation:""}),to().externalConfigList=De(t)?t:Ee(t)?[t]:[],ia.externalConfigListSetComplete=!0}function sa(){if(!ia.initialConfigSetComplete)throw new Error(Nr(lr,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",aa));return to().applicationInitialConfig||{}}function fa(){if(!ia.externalConfigListSetComplete)throw new Error(Nr(lr,"applicationExternalConfigList has not set,use setApplicationExternalConfigList to set it",aa));var t=to();return De(t.externalConfigList)?t.externalConfigList:[]}function da(){var t=to();return t.applicationConfigMergeComplete||(Cr()&&Tr({text:ua("merge application configuration"),color:Lr.debug,dataDescription:"debug",ancillaryInformation:""}),t.applicationMergeConfig=function(t,e){if(!De(e))return t;var n,r=V({},t),o=Q(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;Ee(a)&&(r=V(V({},r),a))}}catch(t){o.e(t)}finally{o.f()}return r}(sa(),t.externalConfigList),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function pa(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,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.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&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||K(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 ma(t,e){return B(t,e)}function ha(t,e){var n=or(t);return n.setHours(n.getHours()+e)}function va(t,e){var n=or(t);return n.setMinutes(n.getMinutes()+e)}function ga(t,e){var n=or(t);return n.setSeconds(n.getSeconds()+e)}function ya(){return new Date}function ba(t,e){var n=t.getTime(),r=(e.getTime()-n)/1e3,o=Number.parseInt(r/86400),a=r-24*o*60*60,i=Number.parseInt(a/3600),u=r-24*o*60*60-60*i*60,c=Number.parseInt(u/60);return{day:o,hour:i,minute:c,second:r-24*o*60*60-60*i*60-60*c}}var wa=function(t,e,n){var r=or(t),o=e?or(e):new Date,a=o.getTime()-r.getTime();return"second"===n&&a/1e3||"minute"===n&&a/1e3/60||"hour"===n&&a/1e3/60/60||"day"===n&&a/1e3/60/60/24||"week"===n&&a/1e3/60/60/24/7||"month"===n&&xa(r,o)||"quarter"===n&&xa(r,o)/3||"year"===n&&xa(r,o)/12||a},xa=function(t,e){var n=or(t),r=or(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function Sa(t){var e=t.data;return B(e).day()}function Ca(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=B().day();if(!t)return e;var n="";switch(Jn(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 je(n)?"":"星期".concat(n)}function Aa(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.thousand,a=void 0===o?",":o,i=t.decimal;return Da({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function Da(t){var e=t.data,n=t.places,r=void 0===n?2:n,o=t.symbol,a=void 0===o?"¥":o,i=t.thousand,u=void 0===i?",":i,c=t.decimal,l=void 0===c?".":c,s=e||0,f=Number.isNaN(r=Math.abs(r))?2:r,d=void 0===a?"¥":a,p=u||",",m=l||".",h=s<0?"-":"",v=Number.parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=v.length;return d+h+((g=g>3?g%3:0)?v.slice(0,Math.max(0,g))+p:"")+v.slice(g).replace(/(\d{3})(?=\d)/g,a+"1"+p)+(f?m+Math.abs(s-Jn(v)).toFixed(f).slice(2):"")}function Ea(t){var e,n,r,o=t.target,a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],i=["","拾","佰","仟"],u=["","万","亿","兆"],c=["角","分","毫","厘"],l="";if(""===o)return"";if((o=Number.parseFloat(o))>=1e15)return"超出最大处理数字";if(0===o)return l=a[0]+"元";if((o=o.toString()).includes(".")){var s=pa(r=o.split("."),2);e=s[0],n=s[1],n=r[1].slice(0,4)}else e=o,n="";if(Number.parseInt(e,10)>0){for(var f=0,d=e.length,p=0;p<d;p+=1){var m=e.slice(p,1),h=d-p-1,v=h/4,g=h%4;"0"===m?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[Number.parseInt(m,10)]+i[g]),0===g&&f<4&&(l+=u[v])}l+="元"}if(""!==n)for(var y=n.length,b=0;b<y;b+=1){var w=n.slice(b,1);"0"!==w&&(l+=a[Number(w)]+c[b])}return""===l&&(l+=a[0]+"元"),l}function Ma(t){var e=t.data,n=t.fmt,r=void 0===n?Qe.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":B(e).format(r)}function ka(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(be(n))return n(e);if(Ae(n))switch(n){case Ke.money:return Da({data:e});case Ke.datetime:return Ma({data:e});case Ke.chineseMoney:return Ea({target:e,option:o});case Ke.percentage:return"".concat(ir(100*e,1),"%");default:return e}return e}function Ia(t,e){return t.replace(/%d/i,e)}function Na(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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=wa(t,e),a=o<0?1:0,i=Math.abs(o)/1e3,u=i/60,c=u/60,l=c/24,s=l/365;return i<10&&Ia(r.second[a],Number.parseInt(i))||i<45&&Ia(r.seconds[a],Number.parseInt(i))||i<90&&Ia(r.minute[a],1)||u<45&&Ia(r.minutes[a],Number.parseInt(u))||u<90&&Ia(r.hour[a],1)||c<24&&Ia(r.hours[a],Number.parseInt(c))||c<42&&Ia(r.day[a],1)||l<30&&Ia(r.days[a],Number.parseInt(l))||l<45&&Ia(r.month[a],1)||l<365&&Ia(r.months[a],Number.parseInt(l/30))||s<1.5&&Ia(r.year[a],1)||Ia(r.years[a],Number.parseInt(s))}function ja(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Na(t,ya(),e)}var Oa="common";function La(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Nr(lr,Fr(t,e),Oa)}function Fa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(Zn(t).slice(0,Math.max(0,e))).concat(n):Zn(t)}function Ta(t,e,n,r){var o=Zn(t),a=(t||"").length;a>0&&(n>=0||r>=0)&&(o=n>=a||r>=a||(n||0)+(r||0)>=a?t:t.slice(0,Math.max(0,n))+e+t.slice(a-r,r));return o||""}function Pa(t,e){be(e)&&e()}function Ra(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(xe(t))return n;if(null==t)return n;if(!Ae(e)){var r=La("getPathValue","path must be string");return oa({message:r}),null}var o=Ht(t,e,n);return xe(n)||Se(n)?o:o||n}function Ha(t,e){if(!Ae(t))throw new Error(La("removeEndMatch",Ir.buildMustString("target")));if(!Ae(e))throw new Error(La("removeEndMatch",Ir.buildMustString("match")));if(je(t))return t;if(je(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.slice(n,e.length):t}function Wa(t,e){if(!Ae(t))throw new Error(La("removeLastMatch",Ir.buildMustString("target")));if(!Ae(e))throw new Error(La("removeLastMatch",Ir.buildMustString("match")));if(je(t))return t;if(je(e))return t;var n=t.lastIndexOf(e);return n>=0?t.slice(n,e.length):t}function Ba(t){var e=t.data,n=t.key,r=t.defaultValue,o=void 0===r?null:r,a=t.convert,i=void 0===a?null:a,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,p=Ra(e,n,o),m=p;return null==(c||null)&&null==(i||null)||(m=be(c)?ur({target:p,convert:c}):ur({target:p,convert:i})),null==(d||null)&&null==(s||null)||(m=be(d)?ka({target:m,format:d}):ka({target:m,format:s})),m}function qa(t){var e=t.operate,n=t.item,r=t.list,o=t.key,a=t.sortInitialValue,i=void 0===a?0:a;if(null==(n||null))return r;var u=[],c=[],l=[];if((r||[]).length<=1){return Zo({message:"无需排序!"}),r}var s,f=Ba({data:n,key:o,convert:Je.number}),d=Q(r||[]);try{for(d.s();!(s=d.n()).done;){var p=s.value,m=Ba({data:p,key:o,convert:Je.number});m<f&&u.push(p),m>f&&c.push(p)}}catch(t){d.e(t)}finally{d.f()}switch(e){case $e.moveUp:if(f===i){return Zo({message:"已经排在首位!"}),r}var h,v=Q((u||[]).entries());try{for(v.s();!(h=v.n()).done;){var g=pa(h.value,2),y=g[0],b=g[1];if(y<u.length-1)l.push(b);else{var w=n;w[o]-=1,l.push(w);var x=b;x[o]+=1,l.push(x)}}}catch(t){v.e(t)}finally{v.f()}l=[].concat(un(l),c);break;case $e.moveDown:if(f===(r||[]).length+i-1){return Zo({message:"已经排在末位!"}),r}l=[].concat(un(l),u);var S,C=Q((c||[]).entries());try{for(C.s();!(S=C.n()).done;){var A=pa(S.value,2),D=A[0],E=A[1];if(0===D){var M=E;M[o]-=1,l.push(M);var k=n;k[o]+=1,l.push(k)}else l.push(E)}}catch(t){C.e(t)}finally{C.f()}break;default:Zo({message:"不符合的操作, 允许的操作为['".concat($e.moveUp,"','").concat($e.moveDown,"']!")})}return l}function Ya(t){var e=t.list,n=void 0===e?[]:e,r=t.convert,o=void 0===r?null:r,a=t.recursiveKey,i=void 0===a?"children":a;return(De(n)?n:[n]).map((function(t){return Ga({data:t,convert:o,target:i})}))}function Ga(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!be(r))return e;var i=r(e),u=e[a],c=[];return De(u)&&(c=u.map((function(t){return Ga({data:t,convert:r,target:a})}))),i[a]=c,i}function Ua(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=se(t,e,n);return!xe(r)}function _a(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(!Ee(e))throw new Error(La("handleItem",Ir.buildMustObject("target")));if(!Ee(e.state))throw new Error(La("handleItem",Ir.buildMustObject("target.state")));var a=e.state.metaOriginalData;if(!Ee(a))throw new Error(La("handleItem",Ir.buildMustObject("target.state.metaOriginalData")));var i=-1;if(be(r))if(be(o)){if(null==(a.list||null))throw new Error(La("handleItem",Ir.buildMustArray("target.state.metaOriginalData.list")));var u,c=Q(a.list.entries());try{for(c.s();!(u=c.n()).done;){var l=pa(u.value,2),s=l[0];r(l[1])===n&&(i=s)}}catch(t){c.e(t)}finally{c.f()}i>=0&&(a.list[i]=o(a.list[i]),e.setState({metaOriginalData:a}))}else{oa({message:"handler mast be function"})}else ra(La("handleItem",Ir.buildMustFunction("compareValueHandler")))}var za="authorityCollectionCache",Va="hasSuperPermission";function Ja(t){ko(jo.authorityCollection,"string"==typeof t?[t]:t),go()}function Ka(t){var e,n=void 0===t?Do(jo.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:De(e)?e:[]}function Qa(){return function(){var t=[];if(ao({key:za})&&De(t=so({key:za})))return t;var e,n=Do(jo.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=De(e)?e:[],io({key:za,value:t}),t}()}function $a(){if(ao({key:Va})){var t=so({key:Va});if(void 0!==t)return!!t}var e=function(){var t="",e=Oo();if(!Ee(e))return t;var n=Ba({data:e,key:"super"});if(Ee(n)){var r=Ba({data:n,key:"permission"});Ae(r)&&(t=r)}return t}();if(!je(e)&&((Qa()||[]).find((function(t){return t===e}))||"")===e)return io({key:Va,value:!0}),!0;return io({key:Va,value:!1}),!1}function Za(t){if($a())return!0;var e="0";if(ao({key:t})&&void 0!==(e=so({key:t})))return"0"!==e;var n=Qa(),r=Oo(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&Jr({checkAuthority:t,listAuthority:n,accessWayCollection:r}),io({key:t,value:e=void 0===o?"0":"1"}),"0"!==e}function Xa(t){if(De(t))return n=!1,De(e=t)?n=e.some((function(t){return Za(t)})):Ae(e)?n=Za(e):(ea("无效的待验证权限"),_r('auth fail on "'.concat(e.join(","),'"')),n);var e,n;if(Ae(t))return Za(t);throw Jr({auth:t}),new Error("auth need string or string array, please check in console.")}var ti,ei="function"==typeof atob,ni="function"==typeof btoa,ri="function"==typeof Buffer,oi="function"==typeof TextDecoder?new TextDecoder:void 0,ai="function"==typeof TextEncoder?new TextEncoder:void 0,ii=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ui=(ti={},ii.forEach((function(t,e){return ti[t]=e})),ti),ci=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,li=String.fromCharCode.bind(String),si="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){return new Uint8Array(Array.prototype.slice.call(t,0))},fi=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},di=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},pi=ni?function(t){return btoa(t)}:ri?function(t){return Buffer.from(t,"binary").toString("base64")}:function(t){for(var e,n,r,o,a="",i=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");a+=ii[(e=n<<16|r<<8|o)>>18&63]+ii[e>>12&63]+ii[e>>6&63]+ii[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},mi=ri?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(li.apply(null,t.subarray(n,n+4096)));return pi(e.join(""))},hi=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?li(192|e>>>6)+li(128|63&e):li(224|e>>>12&15)+li(128|e>>>6&63)+li(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return li(240|e>>>18&7)+li(128|e>>>12&63)+li(128|e>>>6&63)+li(128|63&e)},vi=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gi=ri?function(t){return Buffer.from(t,"utf8").toString("base64")}:ai?function(t){return mi(ai.encode(t))}:function(t){return pi(t.replace(vi,hi))},yi=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,bi=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 li(55296+(e>>>10))+li(56320+(1023&e));case 3:return li((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return li((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},wi=ei?function(t){return atob(di(t))}:ri?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!ci.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var e,n,r,o="",a=0;a<t.length;)e=ui[t.charAt(a++)]<<18|ui[t.charAt(a++)]<<12|(n=ui[t.charAt(a++)])<<6|(r=ui[t.charAt(a++)]),o+=64===n?li(e>>16&255):64===r?li(e>>16&255,e>>8&255):li(e>>16&255,e>>8&255,255&e);return o},xi=ri?function(t){return si(Buffer.from(t,"base64"))}:function(t){return si(wi(t).split("").map((function(t){return t.charCodeAt(0)})))},Si=ri?function(t){return Buffer.from(t,"base64").toString("utf8")}:oi?function(t){return oi.decode(xi(t))}:function(t){return wi(t).replace(yi,bi)},Ci=function(t){return Si(di(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function Ai(t){return Ci(t)}function Di(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?fi(gi(t)):gi(t)}(t)}function Ei(t){return 1*t<10?"0".concat(t):t}function Mi(t){var e=t.seed;return"#".concat(un("00000".concat(Math.trunc(16777216*hr({seed:e})).toString(16))))}function ki(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"RGB",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=/^#([\dA-f]{3}|[\dA-f]{6})$/,o=(null!=t?t:"").toLowerCase();if(r.test(o)){if(4===o.length){for(var a="#",i=1;i<4;i+=1)a+=[].concat(un(o.slice(i,i+1)),un(o.slice(i,i+1)));o=a}for(var u=[],c=1;c<7;c+=2)u.push(Number.parseInt("0x"+o.slice(c,c+2)));return e?"".concat(e,"(").concat(u.join(","),")"):n?u:u.join(",")}return zr("Invalid hex color -> ".concat(t)),o}function Ii(t){var e=t.progress,n=t.startColor,r=t.endColor,o=ki(n,null,!0),a=ki(r,null,!0),i=pa(o,3),u=i[0],c=i[1],l=i[2],s=pa(a,3),f=s[0],d=s[1],p=s[2],m=[(u+Math.round((f-u)*e)).toString(16),(c+Math.round((d-c)*e)).toString(16),(l+Math.round((p-l)*e)).toString(16)];return"#".concat(m.join("").toUpperCase())}function Ni(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=he(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(","),")")}function ji(t,e){return xe(e)?t:e}function Oi(){for(var t=Gt({},arguments.length<=0?void 0:arguments[0]),e=1;e<arguments.length;e++)t=Ut(t,e<0||arguments.length<=e?void 0:arguments[e],ji);return t}function Li(t){if(t&&"object"===G(t)){for(var e="",n=0,r=Object.keys(t);n<r.length;n++){var o,a=r[n],i=(null!==(o=a.replace(/([A-Z])/g,"-$1"))&&void 0!==o?o:"").toLowerCase();e+="".concat(i,":").concat(t[a],";")}return e}return t&&"string"==typeof t?t:""}function Fi(t,e){return t&&"object"===G(t)&&e&&"object"===G(e)?Object.assign({},t,e):Li(t)+Li(e)}function Ti(t,e){var n=t;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Pi="token";function Ri(){return Pi}function Hi(){return Do(Pi)}function Wi(t){return Mo(Pi,t)}function Bi(){return Io(Pi)}function qi(){var t={};return t["".concat(Ri())]=Hi()||"",t}var Yi="currentOperator";function Gi(){Ur("getCurrentOperatorCache");var t=Eo(Yi);return null==(t||null)||""===t.flag||t.flag!==Hi()?null:t.data||null}function Ui(t){return Ur("setCurrentOperatorCache"),ko(Yi,{data:t||null,flag:Hi()||""})}function _i(){Ur("removeCurrentOperatorCache"),Io(Yi)}var zi={prepareCallback:function(){},setPrepareComplete:!1,prepareExecuteComplete:!1};function Vi(){zi.prepareExecuteComplete||(Cr()&&Tr({text:Nr(lr,"tryDoDvaPrepareWork -> try to do dva prepare work","dvaAssist"),color:Lr.debug,dataDescription:"debug",ancillaryInformation:""}),be(zi.prepareCallback)&&zi.prepareCallback(),zi.prepareExecuteComplete=!0)}function Ji(t){Cr()&&Tr({text:"setPrepareCallback",color:Lr.execute,dataDescription:"execute",ancillaryInformation:""}),zi.prepareCallback=t,zi.setPrepareComplete=!0}var Ki={reducerData:"reducerData"};function Qi(t,e,n){Vi();var r=V({callback:null,pretreatment:null,alias:null,cacheData:!1},e),o=r.payload,a=r.alias,i=r.cacheData,u=null;if(xe(a)||!Ae(a)?u=V(V({},t),{},{data:o,fromRemote:!0}):(u=V(V({},t),{},{fromRemote:!0}))[a]=o,i){var c=io({key:"".concat(n,"_").concat(a||"data"),value:o});Cr()&&Tr({text:"modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(c?"cache success":"cache fail","."),color:Lr.debug,dataDescription:"debug",ancillaryInformation:""})}return u}var $i={reducerData:function(t,e,n){return Qi(t,e,n)}};function Zi(){return Vi(),{data:{code:0,message:"success",dataSuccess:!0,data:{},list:[],extra:{}}}}var Xi={cacheData:!1},tu={callback:null,pretreatment:null},eu="htmlAssist";function nu(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(!he(t))return t;if(!he(e)||e<=0)throw new Error(Nr(lr,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),eu));var o=Number.parseFloat(t);if(o<r)return t;var a=Jn(o/e,n);return 0===a?"0":a+"rem"}var ru="localMetaData";function ou(){Ur("getLocalMetaData");var t=Eo(ru);return null==(t||null)||null==(t.dataVersion||null)?null:V({data:null},t).data||null}function au(t){return Ur("setLocalMetaData"),ko(ru,{data:t,dataVersion:Number.parseInt(Date.now()/1e3/60/30,10)})}function iu(){Io(ru)}var uu="modelAssist",cu="modelNameList",lu={embedBuilders:[],extraBuilders:[],buildComplete:!1,models:[]};function su(){return lu.embedBuilders.length+lu.extraBuilders.length}function fu(t){if(!be(t))throw new Error(Nr(lr,"appendEmbedBuilder -> builder must be none parameter function and return an object, current is ".concat(G(t)),uu));lu.embedBuilders.push(t)}function du(t){if(!be(t))throw new Error(Nr(lr,"appendExtraBuilder -> builder must be none parameter function and return an object, current is ".concat(G(t)),uu));lu.extraBuilders.push(t)}function pu(){Ur("buildModelCollection");var t,e=[],n=Q(lu.embedBuilders);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(be(r)){var o=r();Ee(o)&&e.push(o)}}}catch(t){n.e(t)}finally{n.f()}var a,i=Q(lu.extraBuilders);try{for(i.s();!(a=i.n()).done;){var u=a.value;if(be(u)){var c=u();Ee(c)&&e.push(c)}}}catch(t){i.e(t)}finally{i.f()}lu.buildComplete=!0,lu.models=e}function mu(){if(!lu.buildComplete){pu();var t=lu.models.map((function(t){return t.namespace})).join(",");Br("all models -> ".concat(t)),vu(t)}return lu.models}function hu(){return Do(cu)}function vu(t){return Mo(cu,t||"")}function gu(){Io(cu)}var yu="navigationAssist",bu={navigateTo:function(t){zr(Nr(lr,"setNavigator need config, use setNavigator to set it",yu))},redirectTo:function(t,e){zr(Nr(lr,"setRedirector need config, use setRedirector to set it",yu))}};function wu(t){bu.navigateTo=t}function xu(t){bu.redirectTo=t}function Su(t){if(Ae(t)||Ee(t))bu.redirectTo(t);else{ea("invalid parameter, params need string or object")}}function Cu(t){if(Ae(t)||Ee(t))bu.navigateTo(t);else{ea("invalid parameter, params need string or object")}}var Au={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Wr(Fr(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Wr(Fr(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Wr(Fr(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Wr(Fr(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Hr(Fr(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Hr(Fr(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,_r(Fr(e,r))}};function Du(t){Au.showOpenNotification=t}function Eu(t){Au.showLoadingNotification=t}function Mu(t){Au.showInfoNotification=t}function ku(t){Au.showSuccessNotification=t}function Iu(t){Au.showWarnNotification=t}function Nu(t){Au.showWarningNotification=t}function ju(t){Au.showErrorNotification=t}function Ou(t){Lu({description:t})}function Lu(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showOpenNotification)&&Au.showOpenNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Fu(t){Tu({description:t})}function Tu(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showLoadingNotification)&&Au.showLoadingNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Pu(t){Ru({description:t})}function Ru(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showInfoNotification)&&Au.showInfoNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Hu(t){Wu({description:t})}function Wu(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showWarnNotification)&&Au.showWarnNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Bu(t){qu({description:t})}function qu(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showWarningNotification)&&Au.showWarningNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Yu(t){Gu({description:t})}function Gu(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showSuccessNotification)&&Au.showSuccessNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Uu(t){_u({description:t})}function _u(t){var e=t.title,n=t.description,r=void 0===n?"":n,o=t.placement,a=void 0===o?"":o,i=t.duration,u=void 0===i?3e3:i,c=t.onClose,l=void 0===c?function(){}:c;be(Au.showErrorNotification)&&Au.showErrorNotification({title:e,description:r,placement:a,duration:u,onClose:l})}var zu="nearestLocalhostNotify";function Vu(){var t=Eo(zu);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function Ju(){return ko(zu,{nearestTime:Number.parseInt(Date.now()/1e3,10)})}function Ku(){Io(zu)}function Qu(t){var e=t.text,n=!1,r=0,o=Vu()||null;null==o?n=!0:r=o.nearestTime||0;var a=Number.parseInt(Date.now()/1e3,10);try{if(r+30<a&&(n=!0),n){var i="当前接口域名: ".concat(e,". ");Ru({text:i}),Vr({message:i}),Ju()}}catch(t){Rr(t)}}function $u(t){Io(t)}function Zu(t){var e=Eo(t);if(null==(e||null))return $u(t),null;if(""===(e.dataVersion||""))return $u(t),null;var n=Number.parseInt(Date.now()/1e3/60/30,10);return e.dataVersion<n?($u(t),null):e.useParamsData||null}function Xu(t,e){return ko(t,{useParamsData:e||null,dataVersion:Number.parseInt(Date.now()/1e3/60/30,10)})}function tc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=q(t);if(je(e))return n;if(je(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function ec(t){return Y(t)}function nc(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
za=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",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=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),c=new D(o||[]);return r(a,"_invoke",{value:x(t,n,c)}),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 p(){}function h(){}var m={};u(m,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(E([])));g&&g!==e&&n.call(g,i)&&(m=g);var y=h.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,c){var u=s(t[r],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==B(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.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 c=S(a,n);if(c){if(c===f)continue;return c}}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 u=s(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.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 C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,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 p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),u(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),u(y,c,"Generator"),u(y,i,(function(){return this})),u(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(A),!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 c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)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),A(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;A(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 Va(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function Ja(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Va(i,r,o,a,c,"next",t)}function c(t){Va(i,r,o,a,c,"throw",t)}a(void 0)}))}}var Ka="token";function Qa(){return Ka}function Za(){return Yr(Ka)}function $a(t){return Ur(Ka,t)}function Xa(){return zr(Ka)}function tc(){var t={};return t["".concat(Qa())]=Za()||"",t}var ec={successCodeSetComplete:!1,authenticationFailCodeSetComplete:!1,successCode:200,authenticationFailCode:2001,promptSimulation:!1,promptSimulationSetComplete:!1,urlGlobalPrefix:"",displayRequestInfo:!1,displayRequestInfoSetComplete:!1,handleSupplementGlobalHeader:function(){return{}},handleSupplementGlobalHeaderSetComplete:!1,handleRequest:function(t){t.url;t.method;t.data,t.header,t.option},handleRequestSetComplete:!1,handleAuthenticationFail:function(){},handleAuthenticationFailSetComplete:!1};function nc(t){Gn()&&!Wt(t)&&Xn({text:t,color:Zn.execute,dataDescription:"execute",ancillaryInformation:""})}function rc(t){return Jn(En,t,"requestAssist")}function oc(t){ec.successCodeSetComplete?nr(rc("setSuccessCode -> reset is not allowed, it can be set only once")):(nc("setSuccessCode"),Ct(t)||nr(rc("setSuccessCode -> code must be number")),ec.successCode=dn(t),ec.successCodeSetComplete=!0)}function ic(t){ec.authenticationFailCodeSetComplete?nr(rc("setAuthenticationFailCode -> reset is not allowed, it can be set only once")):(nc("setAuthenticationFailCode"),Ct(t)||nr(rc("setAuthenticationFailCode -> code must be number")),ec.authenticationFailCode=dn(t),ec.authenticationFailCodeSetComplete=!0)}function ac(t){ec.promptSimulationSetComplete?nr(rc("setPromptSimulation -> reset is not allowed, it can be set only once")):(nc("setPromptSimulation"),kt(t)||nr(rc("setPromptSimulation -> code must be bool")),ec.promptSimulation=gn(t),ec.promptSimulationSetComplete=!0)}function cc(t){if(!Nt(t))throw new Error(rc("setUrlGlobalPrefix param globalPrefix need string, current is ".concat(B(t))));ec.urlGlobalPrefix=t}function uc(t){ec.handleRequestSetComplete?nr(rc("setRequestHandler -> reset is not allowed, it can be set only once")):(nc("setRequestHandler"),ec.handleRequest=t,ec.handleRequestSetComplete=!0)}function lc(t){ec.handleAuthenticationFailSetComplete?nr(rc("setAuthenticationFailHandler -> reset is not allowed, it can be set only once")):(nc("setAuthenticationFailHandler"),ec.handleAuthenticationFail=t,ec.handleAuthenticationFailSetComplete=!0)}function sc(t){ec.handleSupplementGlobalHeaderSetComplete?nr(rc("setGlobalHeaderSupplementHandler -> reset is not allowed, it can be set only once")):(nc("setGlobalHeaderSupplementHandler"),ec.handleSupplementGlobalHeader=t,ec.handleSupplementGlobalHeaderSetComplete=!0)}function fc(t){ec.displayRequestInfoSetComplete?nr(rc("setRequestInfoDisplaySwitch -> reset is not allowed, it can be set only once")):(nc("setRequestInfoDisplaySwitch"),ec.displayRequestInfo=gn(t),ec.displayRequestInfoSetComplete=!0)}function dc(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=wr(),i=dn(e);if(i!==r.code){var a=(new Date).getTime();i!==ec.authenticationFailCode?(nr("api call failed, code: ".concat(i,", message: ").concat(n)),i===dn(o.code)?a-o.time>800&&(wo(n),br({code:i,message:n,time:a})):(wo(n),br({code:i,message:n,time:a}))):cr("api call failed, authentication fail"),i===ec.authenticationFailCode&&bc()}}function pc(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,c=void 0===a?null:a,u=e||{code:-1,message:"",data:null,list:[],extra:null},l=u.code,s=u.message,f={},d=dn(l);if(d===dn(ec.successCode)){var p=e.data,h=e.extra;Mt(r)&&(f=r(e)),f={code:d,message:s,data:p||{},extra:h||{},dataSuccess:!0},Mt(i)&&i(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},Mt(c)&&c(f),dc(f);return f}function hc(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,c=void 0===a?null:a,u=t.failCallback,l=void 0===u?null:u,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,p={},h=dn(f);if(h===dn(ec.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.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}));p={code:h,message:d,count:(w||[]).length,list:w,extra:y,dataSuccess:!0},Mt(c)&&c(p)}else p={code:h,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},Mt(l)&&l(p),dc(p);return p}function mc(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,c=void 0===a?null:a,u=t.failCallback,l=void 0===u?null:u,s=e||{code:-1,message:"",data:null,list:[],extra:null},f=s.code,d=s.message,p={},h=dn(f);if(h===dn(ec.successCode)){var m=e;Mt(r)&&(m=r(e));var v=m,g=v.list,y=v.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}));p={code:h,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(c)&&c(p)}else p={code:h,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},Mt(l)&&l(p),dc(p);return p}function vc(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function gc(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var i=e.alias,a=e.cacheData,c=hc(r);Mt(o)&&(c=o(c));var u=null;if(It(i)||!Nt(i))return V(V({},t),{},{data:c,fromRemote:!0});if((u=V(V({},t),{},{fromRemote:!0}))[i]=c,a){var l=Ar({key:"".concat(n,"_").concat(i||"data"),value:c});cr("modal ".concat(n," cache data, key is ").concat(n,"_").concat(i||"data",", ").concat(l?"cache success":"cache fail","."))}return u}function yc(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var i=e.alias,a=e.cacheData,c=mc(r);Mt(o)&&(c=o(c));var u=null;if(It(i)||!Nt(i))return V(V({},t),{},{data:c,fromRemote:!0});if((u=V(V({},t),{},{fromRemote:!0}))[i]=c,a){var l=Ar({key:"".concat(n,"_").concat(i||"data"),value:c});cr("modal ".concat(n," cache data, key is ").concat(n,"_").concat(i||"data",", ").concat(l?"cache success":"cache fail","."))}return u}function wc(t){var e=t.url,n=t.method,r=void 0===n?Vt.post:n,o=t.data,i=void 0===o?{}:o,a=t.header,c=void 0===a?[]:a,u=t.option,l=void 0===u?{}:u,s=c;if(ec.handleSupplementGlobalHeaderSetComplete&&Mt(ec.handleSupplementGlobalHeader)){var f=ec.handleSupplementGlobalHeader();Ft(f)&&(s=V(V({},c),f))}if(!ec.handleRequestSetComplete)throw new Error(rc("realRequest -> handleRequest has not set, please use setRequestHandler to set it"));ec.handleRequest({url:e,method:r,data:i,header:s,option:l})}function bc(){if(!ec.handleAuthenticationFailSetComplete)throw new Error(Jn("doWhenAuthenticationFail -> handleAuthenticationFail has not set, please use setAuthenticationFailHandler to set it"));ec.handleAuthenticationFail()}function xc(t){return Sc.apply(this,arguments)}function Sc(){return(Sc=Ja(za().mark((function t(e){var n,r,o,i,a,c,u,l,s,f,d,p,h,m,v,g,y,w,b,x,S,C,A,D,E,M,k,I,O,j,N;return za().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,c=e.header,u=void 0===c?{}:c,l=e.method,s=void 0===l?Vt.post:l,f=e.mode,d=void 0===f?zt.real:f,p=e.promptSimulation,h=void 0===p?ec.promptSimulation:p,m=e.promptSimulationDelay,v=void 0===m?500:m,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,C=e.simulateRequestResult,A=void 0===C||C,D=e.simulativeAuthorize,E=void 0!==D&&D,Nt(M=ec.urlGlobalPrefix)){t.next=5;break}throw fr(M),new Error("url global prefix is not string");case 5:if(Nt(n)){t.next=8;break}throw fr(n),new Error("api is not string");case 8:if(bn(k=n).startsWith("http://")||bn(k).startsWith("https://")?k=n:(Wt(M)||(M="/".concat(M,"/")),k="".concat(M).concat(n).replace("//","/")),null!=(o||null)&&(Nt(o)&&(k="".concat(k,"?").concat(o)),Ft(o)&&(k="".concat(k,"?").concat(Ua(o)))),I=ec.displayRequestInfo,d!==zt.simulation){t.next=27;break}if(ar("api request is simulation mode, simulate start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),h&&setTimeout((function(){so("由虚拟访问返回")}),v>0?v:0),O={},j=!1,E&&(Wt(Za())||(j=!0)),!E||j){t.next=22;break}bc(),t.next=25;break;case 22:return t.next=24,Oc({simulateRequestDelay:y,dataBuild:function(t){t(A?Dc({response:b,needAuthorize:E}):Ac({response:S,needAuthorize:E}))}});case 24:O=t.sent;case 25:return I&&dr({url:k,mode:d,response:O,params:a}),t.abrupt("return",O);case 27:if(I&&dr({api:n,apiVersion:M,apiChange:k,params:a}),N=st(yn(s)),!qt([Vt.get,Vt.post],N)){t.next=31;break}return t.abrupt("return",wc({url:k,data:a,header:V({},u||{}),option:{},method:Vt.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Cc(){return Wt(Za())}function Ac(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?Cc()?(xo(r),V({code:n,message:r,success:!1},e)):{code:ec.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(xo(r),V({code:n,message:r,success:!1},e))}function Dc(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?Cc()?V({code:ec.successCode,message:"success",success:!0},e):{code:ec.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:ec.successCode,message:"success",success:!0},e)}function Ec(t){return Mc.apply(this,arguments)}function Mc(){return(Mc=Ja(za().mark((function t(e){var n,r,o,i;return za().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(Dc({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return i=t,t})).catch((function(t){lr(t)}));case 4:return i.code===ec.authenticationFailCode&&bc(),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function kc(t){return Ic.apply(this,arguments)}function Ic(){return(Ic=Ja(za().mark((function t(e){var n,r,o,i,a;return za().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(Ac(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){lr(t)}));case 4:return i=(o=r).code,a=o.message,i===ec.authenticationFailCode?bc():i!==ec.successCode&&mo(a),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Oc(t){return jc.apply(this,arguments)}function jc(){return(jc=Ja(za().mark((function t(e){var n,r,o,i,a,c,u;return za().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 ar("api request is simulation mode, simulate completed."),i=t,t})).catch((function(t){lr(t)}));case 4:return c=(a=i).code,u=a.message,c!==ec.successCode&&go(u),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Nc="sessionStorageAssist",Lc={getStorage:function(t){sr(Jn(En,"setStorageGetter need config, use setStorageGetter to set it",Nc))},setStorage:function(t,e){sr(Jn(En,"setStorageSetter need config, use setStorageSetter to set it",Nc))},removeStorage:function(t){sr(Jn(En,"setStorageRemover need config, use setStorageRemover to set it",Nc))},flushStorage:function(){sr(Jn(En,"setStorageFlusher need config, use setStorageFlusher to set it",Nc))}};function Fc(t){Lc.getStorage=t}function Rc(t){Lc.setStorage=t}function Pc(t){Lc.removeStorage=t}function Tc(t){Lc.flushStorage=t}function Hc(t){try{return Lc.getStorage(t)}catch(e){throw sr({key:t,e:e}),e}}function Wc(t){var e=Hc(t);return Wt(e)?null:JSON.parse(e||"{}")}function qc(t,e){Lc.setStorage(t,e)}function Gc(t,e){Lc.setStorage(t,JSON.stringify(e||{}))}function Yc(t){Lc.removeStorage(t)}function Bc(){Lc.flushStorage()}function Uc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(Wt(n)?"":",".concat(n))}function _c(t){var e=t.label,n=t.name,r=t.helper,o="",i="",a="";if(Nt(e))o=e;else{nr({label:e,name:n,helper:r}),So({message:"label必须为文本"})}if(Nt(n))i=n;else{nr({label:e,name:n,helper:r}),So({message:"name必须为文本"})}if(Nt(r))a=r;else{nr({label:e,name:n,helper:r}),So({message:"helper必须为文本"})}return{label:o,name:i,helper:a}}function zc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{Yt as accessWaySpecialCollection,Lo as addHour,Fo as addMinute,Ro as addSecond,Ao as applicationConfiguration,X as assign,tt as assignWith,Zi as attachPropertiesToComponent,Uc as buildFieldDescription,zc as buildFieldHelper,zi as buildHexColor,Vi as buildLinearGradient,Jn as buildPromptModuleInfo,Ua as buildQueryStringify,_i as buildRGBColorFromHexColor,Ui as buildRandomHexColor,Ac as buildSimulateRequestFailResponse,Dc as buildSimulateRequestSuccessResponse,Ki as buildStringStyle,tc as buildTokenData,Ho as calculateDateInterval,Wo as calculateMonthInterval,To as calculateTimeInterval,ci as checkExist,_c as checkFromConfig,vi as checkHasAuthority,qn as checkHasMore,qt as checkInCollection,hi as checkIsSuper,Zr as checkMessagePromptData,Wt as checkStringIsNullOrWhiteSpace,Gn as checkWhetherDevelopmentEnvironment,Rn as cloneWithoutMethod,Zt as convertCollection,Xi as convertPixelToRem,No as createDayJsDatetime,Xt as datetimeFormat,Gi as decodeBase64,Nr as deleteCache,Lr as deleteMultiCache,vt as difference,tr as displayObjectMessage,Xn as displayTextMessage,ut as dropRight,Zo as ellipsis,Qt as emptyDatetime,Yi as encodeBase64,Q as endsWith,Bt as envCollection,ue as errorImage,On as evil,gt as filter,bt as find,wt as findIndex,at as first,Bi as fixedZero,it as floor,Fr as flushAllCache,Vr as flushLocalStorage,Bc as flushSessionStorage,nt as forEach,$t as formatCollection,Vo as formatDateInterval,Jo as formatDateIntervalWithNow,_o as formatDatetime,Yo as formatDecimal,Bo as formatMoney,Uo as formatMoneyToChinese,zo as formatTarget,J as get,Kr as getAccessWayCollectionCache,Io as getApplicationExternalConfigList,ko as getApplicationInitialConfig,Oo as getApplicationMergeConfig,di as getAuthority,Ln as getBrowserInfo,Nn as getBrowserVersion,kr as getCache,Sr as getCachePool,qo as getDayOfWeek,Er as getExpiration,Wn as getGuid,Br as getJsonFromLocalStorage,Wc as getJsonFromSessionStorage,wr as getLastRequestExceptionMessage,ea as getLocalMetaData,pr as getLoggerDisplaySwitch,ia as getModelNameList,Or as getMultiCache,Ta as getNearestLocalhostNotifyCache,Po as getNow,Ya as getParamsDataCache,ti as getPathValue,yr as getRuntimeDataStorage,Yr as getStringFromLocalStorage,Hc as getStringFromSessionStorage,Go as getTodayOfWeek,Za as getToken,Qa as getTokenKeyName,Yn as getValue,ri as getValueByKey,rt as gte,ui as handleItem,gc as handleListDataAssist,yc as handlePageListDataAssist,Cr as hasCache,Lt as isArray,kt as isBoolean,jn as isBrowser,jt as isDate,St as isDatetime,Dt as isEqual,Et as isEqualBySerialize,Mt as isFunction,Ht as isImageBase4,xt as isInvalid,At as isMoney,Ot as isNull,Ct as isNumber,Ft as isObject,Rt as isPlainObject,Pt as isPromise,Nt as isString,It as isUndefined,Tt as isUrl,Ir as keys,Tr as localStorageAssist,Zn as logColorCollection,or as logConfig,er as logData,cr as logDebug,oe as logDisplay,lr as logError,sr as logException,ur as logExecute,rr as logInfo,re as logLevel,dr as logObject,ir as logStack,fr as logText,ar as logTrace,nr as logWarn,Qn as loggerSwitch,pt as map,ot as memoize,Ji as mergeProps,Qi as mergeStyle,$n as mergeTextMessage,$r as messagePromptAssist,ae as messageTypeCollection,Gt as modelGlobalCollection,pa as navigateTo,la as navigationAssist,ha as notificationPromptAssist,ie as notificationTypeCollection,_a as parseQueryString,hc as pretreatmentRemoteListData,mc as pretreatmentRemotePageListData,pc as pretreatmentRemoteSingleData,vc as pretreatmentRequestParams,Vn as promptTextBuilder,da as redirectTo,Pn as refitCommonData,Tn as refitFieldDecoratorOption,ei as removeEndMatch,dt as removeFromArray,ni as removeLastMatch,ra as removeLocalMetaData,zr as removeLocalStorage,ca as removeModelNameList,Wa as removeNearestLocalhostNotifyCache,Ga as removeParamsDataCache,Yc as removeSessionStorage,Xa as removeToken,ft as replace,$o as replaceWithKeep,xc as request,ec as requestConfiguration,Vt as requestMethod,zt as requestMode,et as reverse,K as round,vr as runtimeConfiguration,_r as saveJsonToLocalStorage,Gc as saveJsonToSessionStorage,Ur as saveStringToLocalStorage,qc as saveStringToSessionStorage,Hn as searchFromList,Fn as seededRandom,Lc as sessionStorageAssist,ht as set,Qr as setAccessWayCollectionCache,Mo as setApplicationExternalConfigList,Eo as setApplicationInitialConfig,ic as setAuthenticationFailCode,lc as setAuthenticationFailHandler,fi as setAuthority,Ar as setCache,io as setErrorMessageDisplayMonitor,xa as setErrorNotificationDisplayMonitor,Mr as setExpiration,sc as setGlobalHeaderSupplementHandler,eo as setInfoMessageDisplayMonitor,ga as setInfoNotificationDisplayMonitor,br as setLastRequestExceptionMessage,to as setLoadingMessageDisplayMonitor,va as setLoadingNotificationDisplayMonitor,na as setLocalMetaData,Gr as setLocalStorageFlusher,Hr as setLocalStorageGetter,qr as setLocalStorageRemover,Wr as setLocalStorageSetter,hr as setLoggerDisplaySwitch,aa as setModelNameList,Dr as setMultiCache,sa as setNavigator,Ha as setNearestLocalhostNotifyCache,Xr as setOpenMessageDisplayMonitor,ma as setOpenNotificationDisplayMonitor,Ba as setParamsDataCache,ac as setPromptSimulation,fa as setRedirector,uc as setRequestHandler,fc as setRequestInfoDisplaySwitch,gr as setRuntimeDataStorage,Tc as setSessionStorageFlusher,Fc as setSessionStorageGetter,Pc as setSessionStorageRemover,Rc as setSessionStorageSetter,oc as setSuccessCode,no as setSuccessMessageDisplayMonitor,ya as setSuccessNotificationDisplayMonitor,$a as setToken,cc as setUrlGlobalPrefix,ro as setWarnMessageDisplayMonitor,wa as setWarnNotificationDisplayMonitor,oo as setWarningMessageDisplayMonitor,ba as setWarningNotificationDisplayMonitor,bo as showErrorMessage,Ra as showErrorNotification,fo as showInfoMessage,Ma as showInfoNotification,lo as showLoadingMessage,Da as showLoadingNotification,co as showOpenMessage,Ca as showOpenNotification,So as showRuntimeError,wo as showSimpleErrorMessage,Fa as showSimpleErrorNotification,so as showSimpleInfoMessage,Ea as showSimpleInfoNotification,uo as showSimpleLoadingMessage,Aa as showSimpleLoadingNotification,ao as showSimpleOpenMessage,Sa as showSimpleOpenNotification,xo as showSimpleRuntimeError,po as showSimpleSuccessMessage,Na as showSimpleSuccessNotification,mo as showSimpleWarnMessage,ka as showSimpleWarnNotification,go as showSimpleWarningMessage,Oa as showSimpleWarningNotification,ho as showSuccessMessage,La as showSuccessNotification,vo as showWarnMessage,Ia as showWarnNotification,yo as showWarningMessage,ja as showWarningNotification,kc as simulateFailRequest,Oc as simulateRequest,Ec as simulateSuccessRequest,mt as size,Xo as sleep,yt as sortBy,oi as sortCollectionByKey,te as sortOperate,Z as sortedUnique,$ as split,ct as startsWith,Rr as statisticsCache,Jr as storageKeyCollection,jr as takeCache,Dn as to,gn as toBoolean,pn as toBoundary,Sn as toDatetime,bn as toLower,xn as toLowerFirst,sn as toMd5,hn as toMoney,dn as toNumber,mn as toPercentage,Cn as toPromise,An as toRound,ln as toSha1,vn as toString,yn as toUpper,wn as toUpperFirst,ai as transformData,ii as transformListData,ce as transparentImage,st as trim,qa as trySendNearestLocalhostNotify,_t as underlyingExtensionState,Ut as underlyingState,lt as uniqBy,ne as whetherNumber,ee as whetherString,Kt as zeroInt,Jt as zeroString};
|
|
3
|
+
nc=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:{},a=o.iterator||"@@iterator",i=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 a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new D(o||[]);return r(i,"_invoke",{value:x(t,n,u)}),i}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 p(){}function m(){}var h={};c(h,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(E([])));g&&g!==e&&n.call(g,a)&&(h=g);var y=m.prototype=d.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(r,a,i,u){var c=s(t[r],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==G(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,u)}))}u(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function x(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return M()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=S(i,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 a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[a];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 p.prototype=m,r(y,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new w(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(y),c(y,u,"Generator"),c(y,a,(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(A),!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 i.type="throw",i.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 a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},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),A(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;A(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 rc(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function oc(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){rc(a,r,o,i,u,"next",t)}function u(t){rc(a,r,o,i,u,"throw",t)}i(void 0)}))}}var ac={successCodeSetComplete:!1,authenticationFailCodeSetComplete:!1,successCode:200,authenticationFailCode:2001,promptSimulation:!1,promptSimulationSetComplete:!1,urlGlobalPrefix:"",displayRequestInfo:!1,displayRequestInfoSetComplete:!1,handleSupplementGlobalHeader:function(){return{}},handleSupplementGlobalHeaderSetComplete:!1,handleRequest:function(t){t.url;t.method;t.data,t.header,t.option},handleRequestSetComplete:!1,handleAuthenticationFail:function(){},handleAuthenticationFailSetComplete:!1};function ic(t){Cr()&&!je(t)&&Tr({text:t,color:Lr.execute,dataDescription:"execute",ancillaryInformation:""})}function uc(t){return Nr(lr,t,"requestAssist")}function cc(t){ac.successCodeSetComplete?Hr(uc("setSuccessCode -> reset is not allowed, it can be set only once")):(ic("setSuccessCode"),he(t)||Hr(uc("setSuccessCode -> code must be number")),ac.successCode=Jn(t),ac.successCodeSetComplete=!0)}function lc(t){ac.authenticationFailCodeSetComplete?Hr(uc("setAuthenticationFailCode -> reset is not allowed, it can be set only once")):(ic("setAuthenticationFailCode"),he(t)||Hr(uc("setAuthenticationFailCode -> code must be number")),ac.authenticationFailCode=Jn(t),ac.authenticationFailCodeSetComplete=!0)}function sc(t){ac.promptSimulationSetComplete?Hr(uc("setPromptSimulation -> reset is not allowed, it can be set only once")):(ic("setPromptSimulation"),we(t)||Hr(uc("setPromptSimulation -> code must be bool")),ac.promptSimulation=Xn(t),ac.promptSimulationSetComplete=!0)}function fc(t){if(!Ae(t))throw new Error(uc("setUrlGlobalPrefix param globalPrefix need string, current is ".concat(G(t))));ac.urlGlobalPrefix=t}function dc(t){ac.handleRequestSetComplete?Hr(uc("setRequestHandler -> reset is not allowed, it can be set only once")):(ic("setRequestHandler"),ac.handleRequest=t,ac.handleRequestSetComplete=!0)}function pc(t){ac.handleAuthenticationFailSetComplete?Hr(uc("setAuthenticationFailHandler -> reset is not allowed, it can be set only once")):(ic("setAuthenticationFailHandler"),ac.handleAuthenticationFail=t,ac.handleAuthenticationFailSetComplete=!0)}function mc(t){ac.handleSupplementGlobalHeaderSetComplete?Hr(uc("setGlobalHeaderSupplementHandler -> reset is not allowed, it can be set only once")):(ic("setGlobalHeaderSupplementHandler"),ac.handleSupplementGlobalHeader=t,ac.handleSupplementGlobalHeaderSetComplete=!0)}function hc(t){ac.displayRequestInfoSetComplete?Hr(uc("setRequestInfoDisplaySwitch -> reset is not allowed, it can be set only once")):(ic("setRequestInfoDisplaySwitch"),ac.displayRequestInfo=Xn(t),ac.displayRequestInfoSetComplete=!0)}function vc(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=eo(),a=Jn(e);if(a!==r.code){var i=Date.now();a===ac.authenticationFailCode?Gr("api call failed, authentication fail"):(Hr("api call failed, code: ".concat(a,", message: ").concat(n)),a===Jn(o.code)?i-o.time>800&&(ea(n),no({code:a,message:n,time:i})):(ea(n),no({code:a,message:n,time:i}))),a===ac.authenticationFailCode&&Ac()}}function gc(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.successCallback,a=void 0===o?null:o,i=t.failCallback,u=void 0===i?null:i,c=e||{code:-1,message:"",data:null,list:[],extra:null},l=c.code,s=c.message,f={},d=Jn(l);if(d===Jn(ac.successCode)){var p=e.data,m=e.extra;be(r)&&(f=r(e)),f={code:d,message:s,data:p||{},extra:m||{},dataSuccess:!0},be(a)&&a(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},be(u)&&u(f),vc(f);return f}function yc(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,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,p={},m=Jn(f);if(m===Jn(ac.successCode)){var h=e;be(r)&&(h=r(e));var v=h,g=v.list,y=v.extra,b=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="list-".concat(e)),be(a)&&(n=a(n)),n}));p={code:m,message:d,count:(b||[]).length,list:b,extra:y,dataSuccess:!0},be(u)&&u(p)}else p={code:m,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},be(l)&&l(p),vc(p);return p}function bc(t){var e=t.source,n=t.pretreatment,r=void 0===n?null:n,o=t.itemPretreatment,a=void 0===o?null:o,i=t.successCallback,u=void 0===i?null:i,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,p={},m=Jn(f);if(m===Jn(ac.successCode)){var h=e;be(r)&&(h=r(e));var v=h,g=v.list,y=v.extra,b=y.pageNo,w=y.total,x=y.pageSize,S=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="".concat(b,"-").concat(e)),be(a)&&(n=a(n)),n}));p={code:m,message:d,count:(S||[]).length,list:S,pagination:{total:w,pageSize:x,current:Number.parseInt(b||1,10)||1},extra:y,dataSuccess:!0},be(u)&&u(p)}else p={code:m,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},be(l)&&l(p),vc(p);return p}function wc(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function xc(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=yc(r);be(o)&&(u=o(u));var c=null;if(xe(a)||!Ae(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=io({key:"".concat(n,"_").concat(a||"data"),value:u});Gr("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function Sc(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=bc(r);be(o)&&(u=o(u));var c=null;if(xe(a)||!Ae(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=io({key:"".concat(n,"_").concat(a||"data"),value:u});Gr("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function Cc(t){var e=t.url,n=t.method,r=void 0===n?Ue.post:n,o=t.data,a=void 0===o?{}:o,i=t.header,u=void 0===i?[]:i,c=t.option,l=void 0===c?{}:c,s=u;if(ac.handleSupplementGlobalHeaderSetComplete&&be(ac.handleSupplementGlobalHeader)){var f=ac.handleSupplementGlobalHeader();Ee(f)&&(s=V(V({},u),f))}if(!ac.handleRequestSetComplete)throw new Error(uc("realRequest -> handleRequest has not set, please use setRequestHandler to set it"));ac.handleRequest({url:e,method:r,data:a,header:s,option:l})}function Ac(){if(!ac.handleAuthenticationFailSetComplete)throw new Error(Nr("doWhenAuthenticationFail -> handleAuthenticationFail has not set, please use setAuthenticationFailHandler to set it"));ac.handleAuthenticationFail()}function Dc(t){return Ec.apply(this,arguments)}function Ec(){return(Ec=oc(nc().mark((function t(e){var n,r,o,a,i,u,c,l,s,f,d,p,m,h,v,g,y,b,w,x,S,C,A,D,E,M,k,I,N,j,O;return nc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.api,r=e.urlParams,o=void 0===r?null:r,a=e.params,i=void 0===a?{}:a,u=e.header,c=void 0===u?{}:u,l=e.method,s=void 0===l?Ue.post:l,f=e.mode,d=void 0===f?Ge.real:f,p=e.promptSimulation,m=void 0===p?ac.promptSimulation:p,h=e.promptSimulationDelay,v=void 0===h?500:h,g=e.simulateRequestDelay,y=void 0===g?0:g,b=e.simulativeSuccessResponse,w=void 0===b?{}:b,x=e.simulativeFailResponse,S=void 0===x?{code:1001,message:"虚拟未知错误"}:x,C=e.simulateRequestResult,A=void 0===C||C,D=e.simulativeAuthorize,E=void 0!==D&&D,Ae(M=ac.urlGlobalPrefix)){t.next=5;break}throw Vr(M),new Error("url global prefix is not string");case 5:if(Ae(n)){t.next=8;break}throw Vr(n),new Error("api is not string");case 8:if(nr(k=n).startsWith("http://")||nr(k).startsWith("https://")?k=n:(je(M)||(M="/".concat(M,"/")),k="".concat(M).concat(n).replace("//","/")),null!=(o||null)&&(Ae(o)&&(k="".concat(k,"?").concat(o)),Ee(o)&&(k="".concat(k,"?").concat(tc(o)))),I=ac.displayRequestInfo,d!==Ge.simulation){t.next=27;break}if(Yr("api request is simulation mode, simulate start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),m&&setTimeout((function(){Vo("由虚拟访问返回")}),v>0?v:0),N={},j=!1,E&&(je(Hi())||(j=!0)),!E||j){t.next=22;break}Ac(),t.next=25;break;case 22:return t.next=24,Fc({simulateRequestDelay:y,dataBuild:function(t){t(A?Ic({response:w,needAuthorize:E}):kc({response:S,needAuthorize:E}))}});case 24:N=t.sent;case 25:return I&&Jr({url:k,mode:d,response:N,params:i}),t.abrupt("return",N);case 27:if(I&&Jr({api:n,apiVersion:M,apiChange:k,params:i}),O=te(tr(s)),!Oe([Ue.get,Ue.post],O)){t.next=31;break}return t.abrupt("return",Cc({url:k,data:i,header:V({},c),option:{},method:Ue.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mc(){return je(Hi())}function kc(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?Mc()?(ra(r),V({code:n,message:r,success:!1},e)):{code:ac.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(ra(r),V({code:n,message:r,success:!1},e))}function Ic(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?Mc()?V({code:ac.successCode,message:"success",success:!0},e):{code:ac.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:ac.successCode,message:"success",success:!0},e)}function Nc(t){return jc.apply(this,arguments)}function jc(){return(jc=oc(nc().mark((function t(e){var n,r,o,a;return nc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.remoteResponse,r=e.needAuthorize,o=void 0===r||r,a={},t.next=4,new Promise((function(t){setTimeout((function(){t(Ic({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return a=t,t})).catch((function(t){_r(t)}));case 4:return a.code===ac.authenticationFailCode&&Ac(),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Oc(t){return Lc.apply(this,arguments)}function Lc(){return(Lc=oc(nc().mark((function t(e){var n,r,o,a,i;return nc().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(kc(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){_r(t)}));case 4:return a=(o=r).code,i=o.message,a===ac.authenticationFailCode?Ac():a!==ac.successCode&&$o(i),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fc(t){return Tc.apply(this,arguments)}function Tc(){return(Tc=oc(nc().mark((function t(e){var n,r,o,a,i,u,c;return nc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.simulateRequestDelay,r=void 0===n?200:n,o=e.dataBuild,a={},t.next=4,new Promise((function(t){be(o)&&setTimeout((function(){o(t)}),r>0?r:0)})).then((function(t){return Yr("api request is simulation mode, simulate completed."),a=t,t})).catch((function(t){_r(t)}));case 4:return u=(i=a).code,c=i.message,u!==ac.successCode&&Xo(c),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Pc="sessionStorageAssist",Rc={getStorage:function(t){zr(Nr(lr,"sessionStorageGetter need config, use setSessionStorageGetter to set it",Pc))},setStorage:function(t,e){zr(Nr(lr,"sessionStorageSetter need config, use setSessionStorageSetter to set it",Pc))},removeStorage:function(t){zr(Nr(lr,"sessionStorageRemover need config, use setSessionStorageRemover to set it",Pc))},flushStorage:function(){zr(Nr(lr,"sessionStorageFlusher need config, use setSessionStorageFlusher to set it",Pc))}};function Hc(t){Rc.getStorage=t}function Wc(t){Rc.setStorage=t}function Bc(t){Rc.removeStorage=t}function qc(t){Rc.flushStorage=t}function Yc(t){try{return Rc.getStorage(t)}catch(e){throw zr({key:t,e:e}),e}}function Gc(t){var e=Yc(t);return je(e)?null:JSON.parse(e||"{}")}function Uc(t,e){Rc.setStorage(t,e)}function _c(t,e){Rc.setStorage(t,JSON.stringify(e||{}))}function zc(t){Rc.removeStorage(t)}function Vc(){Rc.flushStorage()}function Jc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(je(n)?"":",".concat(n))}function Kc(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(Ae(e))o=e;else{Hr({label:e,name:n,helper:r}),oa({message:"label必须为文本"})}if(Ae(n))a=n;else{Hr({label:e,name:n,helper:r}),oa({message:"name必须为文本"})}if(Ae(r))i=r;else{Hr({label:e,name:n,helper:r}),oa({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function Qc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{We as accessWaySpecialCollection,ha as addHour,va as addMinute,ga as addSecond,fu as appendEmbedBuilder,du as appendExtraBuilder,ia as applicationConfiguration,Gt as assign,Ut as assignWith,Ti as attachPropertiesToComponent,Jc as buildFieldDescription,Qc as buildFieldHelper,Ii as buildHexColor,Ni as buildLinearGradient,pu as buildModelCollection,Nr as buildPromptModuleInfo,tc as buildQueryStringify,ki as buildRGBColorFromHexColor,Mi as buildRandomHexColor,kc as buildSimulateRequestFailResponse,Ic as buildSimulateRequestSuccessResponse,Li as buildStringStyle,qi as buildTokenData,wa as calculateDateInterval,xa as calculateMonthInterval,ba as calculateTimeInterval,dr as checkDarkMode,Ua as checkExist,Kc as checkFromConfig,Xa as checkHasAuthority,Sr as checkHasMore,Oe as checkInCollection,$a as checkIsSuper,Fo as checkMessagePromptData,je as checkStringIsNullOrWhiteSpace,Cr as checkWhetherDevelopmentEnvironment,vr as cloneWithoutMethod,Je as convertCollection,nu as convertPixelToRem,ma as createDayJsDatetime,Qe as datetimeFormat,fe as debounce,Ai as decodeBase64,ho as deleteCache,vo as deleteMultiCache,ie as difference,Pr as displayObjectMessage,Tr as displayTextMessage,Zt as dropRight,Fa as ellipsis,Ve as emptyDatetime,Di as encodeBase64,Bt as endsWith,Be as environmentCollection,an as errorImage,sr as evil,ue as filter,se as find,le as findIndex,Qt as first,Ei as fixedZero,Kt as floor,go as flushAllCache,No as flushLocalStorage,Vc as flushSessionStorage,zt as forEach,Ke as formatCollection,Na as formatDateInterval,ja as formatDateIntervalWithNow,Ma as formatDatetime,Aa as formatDecimal,Da as formatMoney,Ea as formatMoneyToChinese,ka as formatTarget,Ht as get,Oo as getAccessWayCollectionCache,fa as getApplicationExternalConfigList,sa as getApplicationInitialConfig,da as getApplicationMergeConfig,Ka as getAuthority,mr as getBrowserInfo,pr as getBrowserVersion,su as getBuilderCount,so as getCache,oo as getCachePool,Gi as getCurrentOperatorCache,Sa as getDayOfWeek,co as getExpiration,xr as getGuid,Eo as getJsonFromLocalStorage,Gc as getJsonFromSessionStorage,eo as getLastRequestExceptionMessage,ou as getLocalMetaData,Kr as getLoggerDisplaySwitch,mu as getModelCollection,hu as getModelNameList,po as getMultiCache,Vu as getNearestLocalhostNotifyCache,ya as getNow,Zu as getParametersDataCache,Ra as getPathValue,to as getRuntimeDataStorage,Do as getStringFromLocalStorage,Yc as getStringFromSessionStorage,Zi as getTacitlyState,Ca as getTodayOfWeek,Hi as getToken,Ri as getTokenKeyName,Ar as getValue,Ba as getValueByKey,Vt as gte,tu as handleDefaultParameters,_a as handleItem,xc as handleListDataAssist,Sc as handlePageListDataAssist,ao as hasCache,Pe as inYear,De as isArray,Re as isAsyncFunction,Fe as isBetweenDatetime,we as isBoolean,fr as isBrowser,Ce as isDate,me as isDatetime,ge as isEqual,ye as isEqualBySerialize,be as isFunction,Ne as isImageBase4,pe as isInvalid,ve as isMoney,Se as isNull,he as isNumber,Ee as isObject,Me as isPlainObject,ke as isPromise,Ae as isString,Le as isToday,xe as isUndefined,Ie as isUrl,Te as isWeekend,fo as keys,wo as localStorageAssist,Lr as logColorCollection,Br as logConfig,Rr as logData,Gr as logDebug,en as logDisplay,_r as logError,zr as logException,Ur as logExecute,Wr as logInfo,tn as logLevel,Jr as logObject,qr as logStack,Vr as logText,Yr as logTrace,Hr as logWarn,Or as loggerSwitch,re as map,Jt as memoize,Oi as mergeProperties,Fi as mergeStyle,Fr as mergeTextMessage,To as messagePromptAssist,rn as messageTypeCollection,lu as modelContainer,He as modelGlobalCollection,Cu as navigateTo,bu as navigationAssist,Au as notificationPromptAssist,nn as notificationTypeCollection,ec as parseQueryString,zi as preparationWork,yc as pretreatmentRemoteListData,bc as pretreatmentRemotePageListData,gc as pretreatmentRemoteSingleData,wc as pretreatmentRequestParameters,Ir as promptTextBuilder,Su as redirectTo,$i as reducerCollection,Qi as reducerDataAssist,Xi as reducerDefaultParameters,Ki as reducerNameCollection,gr as refitCommonData,yr as refitFieldDecoratorOption,_i as removeCurrentOperatorCache,Ha as removeEndMatch,ne as removeFromArray,Wa as removeLastMatch,iu as removeLocalMetaData,Io as removeLocalStorage,gu as removeModelNameList,Ku as removeNearestLocalhostNotifyCache,$u as removeParametersDataCache,zc as removeSessionStorage,Bi as removeToken,ee as replace,Ta as replaceWithKeep,Dc as request,ac as requestConfiguration,Ue as requestMethod,Ge as requestMode,_t as reverse,Wt as round,Zr as runtimeConfiguration,ko as saveJsonToLocalStorage,_c as saveJsonToSessionStorage,Mo as saveStringToLocalStorage,Uc as saveStringToSessionStorage,br as searchFromList,hr as seededRandom,Rc as sessionStorageAssist,oe as set,Lo as setAccessWayCollectionCache,la as setApplicationExternalConfigList,ca as setApplicationInitialConfig,lc as setAuthenticationFailCode,pc as setAuthenticationFailHandler,Ja as setAuthority,io as setCache,Ui as setCurrentOperatorCache,Yo as setErrorMessageDisplayMonitor,ju as setErrorNotificationDisplayMonitor,lo as setExpiration,mc as setGlobalHeaderSupplementHandler,Ho as setInfoMessageDisplayMonitor,Mu as setInfoNotificationDisplayMonitor,no as setLastRequestExceptionMessage,Ro as setLoadingMessageDisplayMonitor,Eu as setLoadingNotificationDisplayMonitor,au as setLocalMetaData,Ao as setLocalStorageFlusher,xo as setLocalStorageGetter,Co as setLocalStorageRemover,So as setLocalStorageSetter,Qr as setLoggerDisplaySwitch,vu as setModelNameList,uo as setMultiCache,wu as setNavigator,Ju as setNearestLocalhostNotifyCache,Po as setOpenMessageDisplayMonitor,Du as setOpenNotificationDisplayMonitor,Xu as setParametersDataCache,Ji as setPrepareCallback,sc as setPromptSimulation,xu as setRedirector,dc as setRequestHandler,hc as setRequestInfoDisplaySwitch,Xr as setRuntimeDataStorage,qc as setSessionStorageFlusher,Hc as setSessionStorageGetter,Bc as setSessionStorageRemover,Wc as setSessionStorageSetter,cc as setSuccessCode,Wo as setSuccessMessageDisplayMonitor,ku as setSuccessNotificationDisplayMonitor,Wi as setToken,fc as setUrlGlobalPrefix,Bo as setWarnMessageDisplayMonitor,Iu as setWarnNotificationDisplayMonitor,qo as setWarningMessageDisplayMonitor,Nu as setWarningNotificationDisplayMonitor,na as showErrorMessage,_u as showErrorNotification,Jo as showInfoMessage,Ru as showInfoNotification,zo as showLoadingMessage,Tu as showLoadingNotification,Uo as showOpenMessage,Lu as showOpenNotification,oa as showRuntimeError,ea as showSimpleErrorMessage,Uu as showSimpleErrorNotification,Vo as showSimpleInfoMessage,Pu as showSimpleInfoNotification,_o as showSimpleLoadingMessage,Fu as showSimpleLoadingNotification,Go as showSimpleOpenMessage,Ou as showSimpleOpenNotification,ra as showSimpleRuntimeError,Ko as showSimpleSuccessMessage,Yu as showSimpleSuccessNotification,$o as showSimpleWarnMessage,Hu as showSimpleWarnNotification,Xo as showSimpleWarningMessage,Bu as showSimpleWarningNotification,Qo as showSuccessMessage,Gu as showSuccessNotification,Zo as showWarnMessage,Wu as showWarnNotification,ta as showWarningMessage,qu as showWarningNotification,Oc as simulateFailRequest,Fc as simulateRequest,Nc as simulateSuccessRequest,ae as size,Pa as sleep,ce as sortBy,qa as sortCollectionByKey,$e as sortOperate,qt as sortedUnique,Yt as split,$t as startsWith,yo as statisticsCache,jo as storageKeyCollection,mo as takeCache,de as throttle,ur as to,Xn as toBoolean,Kn as toBoundary,or as toDatetime,nr as toLower,rr as toLowerFirst,zn as toMd5,Qn as toMoney,Jn as toNumber,$n as toPercentage,ar as toPromise,ir as toRound,_n as toSha1,Zn as toString,cr as toUniqueArray,tr as toUpper,er as toUpperFirst,Ga as transformData,Ya as transformListData,on as transparentImage,te as trim,Vi as tryDoDvaPrepareWork,Qu as trySendNearestLocalhostNotify,Ye as underlyingExtensionState,qe as underlyingState,Xt as uniqBy,Xe as whetherNumber,Ze as whetherString,ze as zeroInt,_e as zeroString};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @param {*} authority
|
|
4
4
|
*/
|
|
5
5
|
export function setAuthority(authority: any): void;
|
|
6
|
-
export function getAuthority(
|
|
6
|
+
export function getAuthority(string_: any): any;
|
|
7
7
|
export function checkIsSuper(): boolean;
|
|
8
8
|
export function checkHasAuthority(auth: any): boolean;
|
package/es/utils/base64.d.ts
CHANGED
|
@@ -69,13 +69,42 @@ export function isUrl(target: any): boolean;
|
|
|
69
69
|
export function isImageBase4(target: any): boolean;
|
|
70
70
|
/**
|
|
71
71
|
* Check value is null or empty string
|
|
72
|
-
* @
|
|
72
|
+
* @param {string} target value collection
|
|
73
73
|
*/
|
|
74
|
-
export function checkStringIsNullOrWhiteSpace(target:
|
|
74
|
+
export function checkStringIsNullOrWhiteSpace(target: string): boolean;
|
|
75
75
|
/**
|
|
76
76
|
* Check value in the collection.
|
|
77
|
-
* @param {
|
|
77
|
+
* @param {Array} collection value collection
|
|
78
78
|
* @param {*} target the target value will be checked
|
|
79
|
-
* @returns boolean
|
|
80
79
|
*/
|
|
81
|
-
export function checkInCollection(collection: any, target: any): boolean;
|
|
80
|
+
export function checkInCollection(collection: any[], target: any): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* check date is today
|
|
83
|
+
* @param {Date} date the date will be checked
|
|
84
|
+
*/
|
|
85
|
+
export function isToday(date: Date): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* check datetime between min datetime and max datetime
|
|
88
|
+
* @param {Date} min min datetime
|
|
89
|
+
* @param {Date} max max datetime
|
|
90
|
+
* @param {Date} datetime the datetime will check
|
|
91
|
+
*/
|
|
92
|
+
export function isBetweenDatetime(min: Date, max: Date, datetime: Date): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* check date is weekend
|
|
95
|
+
* @param {Date} date the datetime will check
|
|
96
|
+
*/
|
|
97
|
+
export function isWeekend(date: Date): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* check date in the year
|
|
100
|
+
* @param {Date} date the datetime will check
|
|
101
|
+
* @param {string|Number} year year
|
|
102
|
+
* @returns
|
|
103
|
+
*/
|
|
104
|
+
export function inYear(date: Date, year: string | number): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Check target is async function
|
|
107
|
+
* @param {*} f the function will check
|
|
108
|
+
* @returns
|
|
109
|
+
*/
|
|
110
|
+
export function isAsyncFunction(f: any): boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Merge props
|
|
3
3
|
* @param {*} items iterated value -> the items will be merged
|
|
4
4
|
*/
|
|
5
|
-
export function
|
|
5
|
+
export function mergeProperties(...items: any): any;
|
|
6
6
|
/**
|
|
7
7
|
* Build style data to string
|
|
8
8
|
* @param {Object|String} style the style will be builded
|
package/es/utils/constants.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export function toMoney(target: any): number;
|
|
|
18
18
|
/**
|
|
19
19
|
* Convert to percentage string, like '15%'
|
|
20
20
|
*/
|
|
21
|
-
export function toPercentage(
|
|
21
|
+
export function toPercentage(value: any): string;
|
|
22
22
|
/**
|
|
23
23
|
* Convert to string
|
|
24
24
|
*/
|
|
@@ -56,3 +56,8 @@ export function to({ target, convert }: {
|
|
|
56
56
|
target: any;
|
|
57
57
|
convert: any;
|
|
58
58
|
}): any;
|
|
59
|
+
/**
|
|
60
|
+
* Gets an array of unique array
|
|
61
|
+
* @param {Array} array the array will be changed
|
|
62
|
+
*/
|
|
63
|
+
export function toUniqueArray(array: any[]): any[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get currentOperator cache
|
|
3
|
+
*/
|
|
4
|
+
export function getCurrentOperatorCache(): any;
|
|
5
|
+
/**
|
|
6
|
+
* Set currentOperator cache
|
|
7
|
+
* @param {Object} value the value will cache
|
|
8
|
+
*/
|
|
9
|
+
export function setCurrentOperatorCache(value: Object): void;
|
|
10
|
+
/**
|
|
11
|
+
* Remove currentOperator cache
|
|
12
|
+
*/
|
|
13
|
+
export function removeCurrentOperatorCache(): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export function tryDoDvaPrepareWork(): void;
|
|
2
|
+
/**
|
|
3
|
+
* Set the open message display monitor
|
|
4
|
+
*/
|
|
5
|
+
export function setPrepareCallback(callback: any): void;
|
|
6
|
+
export function reducerDataAssist(state: any, action: any, namespace: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* get tacitly state, it is for state initialization.
|
|
9
|
+
*/
|
|
10
|
+
export function getTacitlyState(): {
|
|
11
|
+
data: {
|
|
12
|
+
code: number;
|
|
13
|
+
message: string;
|
|
14
|
+
dataSuccess: boolean;
|
|
15
|
+
data: {};
|
|
16
|
+
list: never[];
|
|
17
|
+
extra: {};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export namespace preparationWork {
|
|
21
|
+
function prepareCallback(): void;
|
|
22
|
+
const setPrepareComplete: boolean;
|
|
23
|
+
const prepareExecuteComplete: boolean;
|
|
24
|
+
}
|
|
25
|
+
export namespace reducerNameCollection {
|
|
26
|
+
const reducerData: string;
|
|
27
|
+
}
|
|
28
|
+
export namespace reducerCollection {
|
|
29
|
+
function reducerData(state: any, action: any, namespace: any): any;
|
|
30
|
+
}
|
|
31
|
+
export namespace reducerDefaultParameters {
|
|
32
|
+
const cacheData: boolean;
|
|
33
|
+
}
|
|
34
|
+
export namespace handleDefaultParameters {
|
|
35
|
+
const callback: null;
|
|
36
|
+
const pretreatment: null;
|
|
37
|
+
}
|
|
@@ -42,4 +42,4 @@ export function formatDateInterval(startTime: any, endTime: any, options?: {}):
|
|
|
42
42
|
* @param {Object} opts 配置参数
|
|
43
43
|
* @return {String} 文本内容
|
|
44
44
|
*/
|
|
45
|
-
export function formatDateIntervalWithNow(time: any,
|
|
45
|
+
export function formatDateIntervalWithNow(time: any, options?: {}): string;
|
|
@@ -14,8 +14,8 @@ export function assignWith(target: any, sources: any, customizer: any): any;
|
|
|
14
14
|
export function reverse(array: any): any;
|
|
15
15
|
export function forEach(collection: any, iteratee: any): any[];
|
|
16
16
|
export function gte(value: any, other: any): boolean;
|
|
17
|
-
export function memoize(
|
|
18
|
-
export function floor(v: any,
|
|
17
|
+
export function memoize(function_: any): any;
|
|
18
|
+
export function floor(v: any, length_: any): number;
|
|
19
19
|
export function first(array: any): any;
|
|
20
20
|
export function startsWith(source: any, target: any): boolean;
|
|
21
21
|
export function dropRight(array: any, n?: number): any[];
|
|
@@ -70,3 +70,17 @@ export function findIndex(array: any, predicateFunction: any, fromIndex?: number
|
|
|
70
70
|
* @param {fromIndex} (number): The index to search from.
|
|
71
71
|
*/
|
|
72
72
|
export function find(array: any, predicateFunction: any, fromIndex?: number): any;
|
|
73
|
+
/**
|
|
74
|
+
* debounce a function
|
|
75
|
+
* @param {Function} f
|
|
76
|
+
* @param {Number} wait
|
|
77
|
+
* @param {Object} options
|
|
78
|
+
*/
|
|
79
|
+
export function debounce(f: Function, wait?: number, options?: Object): void;
|
|
80
|
+
/**
|
|
81
|
+
* throttle a function
|
|
82
|
+
* @param {Function} f
|
|
83
|
+
* @param {Number} wait
|
|
84
|
+
* @param {Object} options
|
|
85
|
+
*/
|
|
86
|
+
export function throttle(f: Function, wait?: number, options?: Object): void;
|
package/es/utils/meta.d.ts
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* Calculate the value of the expression
|
|
3
3
|
* @param {Function} fn
|
|
4
4
|
*/
|
|
5
|
-
export function evil(
|
|
5
|
+
export function evil(function_: any): any;
|
|
6
6
|
export function isBrowser(): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* check current is dark mode
|
|
9
|
+
*/
|
|
10
|
+
export function checkDarkMode(): boolean;
|
|
7
11
|
/**
|
|
8
12
|
* Get browser version
|
|
9
13
|
*/
|
|
@@ -57,11 +61,11 @@ export function refitFieldDecoratorOption(v: any, justice: any, defaultValue: an
|
|
|
57
61
|
/**
|
|
58
62
|
* Search from list
|
|
59
63
|
*/
|
|
60
|
-
export function searchFromList(itemKey: any, itemValue: any, sourceData: any):
|
|
64
|
+
export function searchFromList(itemKey: any, itemValue: any, sourceData: any): any;
|
|
61
65
|
/**
|
|
62
|
-
*
|
|
66
|
+
* get GUID string, eg like "a975c91c-2118-44bb-998b-992ece11f666"
|
|
63
67
|
*/
|
|
64
|
-
export function getGuid(
|
|
68
|
+
export function getGuid(): string;
|
|
65
69
|
/**
|
|
66
70
|
* Check if more data is available for paging scenarios
|
|
67
71
|
*/
|
|
@@ -74,4 +78,4 @@ export function checkHasMore({ pageNo, pageSize, total }: {
|
|
|
74
78
|
* Check current runtime environment whether development environment
|
|
75
79
|
*/
|
|
76
80
|
export function checkWhetherDevelopmentEnvironment(): boolean;
|
|
77
|
-
export function getValue(
|
|
81
|
+
export function getValue(object: any): string;
|
|
@@ -1,24 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
* Get all builder total count.
|
|
3
|
+
*/
|
|
4
|
+
export function getBuilderCount(): number;
|
|
5
|
+
/**
|
|
6
|
+
* Append embed builder.
|
|
7
|
+
* @param {Function} builder model builder
|
|
8
|
+
*/
|
|
9
|
+
export function appendEmbedBuilder(builder: Function): void;
|
|
10
|
+
/**
|
|
11
|
+
* Append extra builder.
|
|
12
|
+
* @param {Function} builder model builder
|
|
13
|
+
*/
|
|
14
|
+
export function appendExtraBuilder(builder: Function): void;
|
|
15
|
+
/**
|
|
16
|
+
* Build model collection.
|
|
17
|
+
*/
|
|
18
|
+
export function buildModelCollection(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Get model collection.
|
|
6
21
|
* @returns
|
|
7
22
|
*/
|
|
23
|
+
export function getModelCollection(): never[];
|
|
24
|
+
/**
|
|
25
|
+
* Get model name list.
|
|
26
|
+
*/
|
|
8
27
|
export function getModelNameList(): void;
|
|
9
28
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
|
-
* @param {*} fn
|
|
29
|
+
* Set model name list.
|
|
30
|
+
* @param {String} modelNameList model name list, eg like "article,product,news"
|
|
14
31
|
* @returns
|
|
15
32
|
*/
|
|
16
|
-
export function setModelNameList(modelNameList:
|
|
33
|
+
export function setModelNameList(modelNameList: string): void;
|
|
17
34
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @param {*} fn
|
|
22
|
-
* @returns
|
|
35
|
+
* Remove model name list.
|
|
23
36
|
*/
|
|
24
37
|
export function removeModelNameList(): void;
|
|
38
|
+
export namespace modelContainer {
|
|
39
|
+
const embedBuilders: never[];
|
|
40
|
+
const extraBuilders: never[];
|
|
41
|
+
const buildComplete: boolean;
|
|
42
|
+
const models: never[];
|
|
43
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @param {*} fn
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export function
|
|
8
|
+
export function removeParametersDataCache(key: any): void;
|
|
9
9
|
/**
|
|
10
10
|
* 获取useParamsData缓存
|
|
11
11
|
*
|
|
@@ -13,7 +13,7 @@ export function removeParamsDataCache(key: any): void;
|
|
|
13
13
|
* @param {*} fn
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export function
|
|
16
|
+
export function getParametersDataCache(key: any): any;
|
|
17
17
|
/**
|
|
18
18
|
* 设置useParamsData缓存
|
|
19
19
|
*
|
|
@@ -21,4 +21,4 @@ export function getParamsDataCache(key: any): any;
|
|
|
21
21
|
* @param {o} useParamsData数据
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
|
-
export function
|
|
24
|
+
export function setParametersDataCache(key: any, o: any): void;
|
|
@@ -80,7 +80,7 @@ export function pretreatmentRemotePageListData({ source, pretreatment, itemPretr
|
|
|
80
80
|
* @param {*} d
|
|
81
81
|
* @returns
|
|
82
82
|
*/
|
|
83
|
-
export function
|
|
83
|
+
export function pretreatmentRequestParameters(parameters: any, customHandle: any): any;
|
|
84
84
|
/**
|
|
85
85
|
* handleListDataAssist
|
|
86
86
|
* @param {*} state
|
|
@@ -107,7 +107,7 @@ export function handlePageListDataAssist(state: any, action: any, namespace: any
|
|
|
107
107
|
* @param {Boolean} option.simulateRequestResult specifies whether the result is successful, generally used to debug
|
|
108
108
|
* @param {Boolean} option.simulativeAuthorize set simulate request whether check token, only check mull or empty, generally used to debug
|
|
109
109
|
*/
|
|
110
|
-
export function request({ api, urlParams, params, header, method, mode, promptSimulation, promptSimulationDelay, simulateRequestDelay, simulativeSuccessResponse, simulativeFailResponse, simulateRequestResult, simulativeAuthorize, }: {
|
|
110
|
+
export function request({ api, urlParams: urlParameters, params: parameters, header, method, mode, promptSimulation, promptSimulationDelay, simulateRequestDelay, simulativeSuccessResponse, simulativeFailResponse, simulateRequestResult, simulativeAuthorize, }: {
|
|
111
111
|
api: string;
|
|
112
112
|
params: Object;
|
|
113
113
|
header: Object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-utility",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "easy-soft-utility",
|
|
6
6
|
"keywords": [
|
|
@@ -25,38 +25,41 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build:rollup": "npx rimraf ./es && rollup --config rollup.config.compression.js --bundleConfigAsCjs",
|
|
28
|
-
"postbuild:rollup": "npm run tsc:build",
|
|
28
|
+
"postbuild:rollup": "npm run z:tsc:build",
|
|
29
29
|
"build:rollup:skipCompression": "npx rimraf ./es && rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs",
|
|
30
|
-
"postbuild:rollup:skipCompression": "npm run tsc:build",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"lint:
|
|
39
|
-
"
|
|
40
|
-
"lint:
|
|
41
|
-
"lint:
|
|
42
|
-
"
|
|
43
|
-
"lint:
|
|
44
|
-
"lint:
|
|
45
|
-
"lint:
|
|
46
|
-
"
|
|
47
|
-
"lint:
|
|
48
|
-
"lint:
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
30
|
+
"postbuild:rollup:skipCompression": "npm run z:tsc:build",
|
|
31
|
+
"dev:rollup": "rollup --config rollup.config.skipCompression.js --bundleConfigAsCjs --watch --watch.onBundleEnd=\"npm run z:tsc:build\"",
|
|
32
|
+
"pregenerate:documentation": "npx rimraf ./docs && documentation lint src/**",
|
|
33
|
+
"generate:documentation": "npx documentation build src/** -f html --github -o docs",
|
|
34
|
+
"precommit": "npm run z:lint:staged",
|
|
35
|
+
"prez:documentation:generate": "npx rimraf ./docs && npm run z:documentation:lint",
|
|
36
|
+
"z:documentation:generate": "npx documentation build src/** -f html --github -o docs",
|
|
37
|
+
"z:documentation:lint": "npx documentation lint src/**",
|
|
38
|
+
"z:lint:file:all": "npm run z:lint:script:all && npm run z:lint:style:all",
|
|
39
|
+
"z:lint:file:all:fix": "npm run z:lint:script:all:fix && npm run z:lint:style:all:fix",
|
|
40
|
+
"z:lint:file:change": "npm run z:lint:script:change && npm run z:lint:style:all",
|
|
41
|
+
"z:lint:file:change:fix": "npm run z:lint:script:change:fix && npm run z:lint:style:all:fix",
|
|
42
|
+
"z:lint:script:all": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
|
|
43
|
+
"z:lint:script:all:fix": "npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
|
|
44
|
+
"postz:lint:script:all:fix": "npm run z:prettier:format:all",
|
|
45
|
+
"z:lint:script:change": "npx eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
46
|
+
"z:lint:script:change:fix": "npx eslint --fix --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
47
|
+
"postz:lint:script:change:fix": "npm run z:prettier:format:change",
|
|
48
|
+
"z:lint:staged": "npx lint-staged --quiet",
|
|
49
|
+
"z:lint:style:all": "npx stylelint --allow-empty-input \"./src/**/*.{css,scss,less}\"",
|
|
50
|
+
"z:lint:style:all:fix": "npx stylelint --allow-empty-input --fix \"./src/**/*.{css,scss,less}\"",
|
|
51
|
+
"postz:lint:style:all:fix": "npm run z:prettier:format:all",
|
|
52
|
+
"z:lint:style:change": "npx stylelint --allow-empty-input --cache \"./src/**/*.{css,scss,less}\"",
|
|
53
|
+
"z:lint:style:change:fix": "npx stylelint --allow-empty-input --cache --fix \"./src/**/*.{css,scss,less}\"",
|
|
54
|
+
"postz:lint:style:change:fix": "npm run z:prettier:format:change",
|
|
55
|
+
"z:prettier:format:all": "npx prettier --write .",
|
|
56
|
+
"z:prettier:format:change": "npx prettier --cache --write .",
|
|
57
|
+
"z:prettier:package.json": "npx prettier --write ./package.json",
|
|
58
|
+
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
|
|
56
59
|
},
|
|
57
60
|
"dependencies": {
|
|
58
61
|
"dayjs": "^1.11.7",
|
|
59
|
-
"js-base64": "^3.7.
|
|
62
|
+
"js-base64": "^3.7.5",
|
|
60
63
|
"lodash": "^4.17.21",
|
|
61
64
|
"node-cache": "^5.1.2",
|
|
62
65
|
"object-hash": "^3.0.0",
|
|
@@ -64,15 +67,17 @@
|
|
|
64
67
|
"react-dom": "^18.2.0"
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
70
|
+
"@babel/core": "^7.20.12",
|
|
67
71
|
"@babel/eslint-parser": "^7.19.1",
|
|
68
72
|
"@babel/plugin-external-helpers": "^7.18.6",
|
|
69
73
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
70
74
|
"@babel/plugin-proposal-decorators": "^7.20.13",
|
|
71
75
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
76
|
+
"@babel/preset-env": "^7.20.2",
|
|
72
77
|
"@babel/preset-react": "^7.18.6",
|
|
73
78
|
"@babel/runtime": "^7.20.13",
|
|
74
|
-
"@commitlint/cli": "^17.4.
|
|
75
|
-
"@commitlint/config-conventional": "^17.4.
|
|
79
|
+
"@commitlint/cli": "^17.4.3",
|
|
80
|
+
"@commitlint/config-conventional": "^17.4.3",
|
|
76
81
|
"@commitlint/config-lerna-scopes": "^17.4.2",
|
|
77
82
|
"@commitlint/cz-commitlint": "^17.4.2",
|
|
78
83
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
@@ -85,56 +90,72 @@
|
|
|
85
90
|
"@rollup/plugin-replace": "^5.0.2",
|
|
86
91
|
"@rollup/plugin-url": "^8.0.1",
|
|
87
92
|
"@svgr/rollup": "^6.5.1",
|
|
93
|
+
"@tarojs/cli": "3.6.1",
|
|
94
|
+
"@tarojs/plugin-platform-h5": "3.6.1",
|
|
95
|
+
"@tarojs/webpack5-runner": "3.6.1",
|
|
96
|
+
"@types/fs-extra": "^11.0.1",
|
|
88
97
|
"@types/lodash": "^4.14.191",
|
|
89
98
|
"@types/object-hash": "^3.0.2",
|
|
90
99
|
"@types/qs": "^6.9.7",
|
|
91
|
-
"@types/react": "^18.0.
|
|
100
|
+
"@types/react": "^18.0.28",
|
|
101
|
+
"@types/shelljs": "^0.8.11",
|
|
92
102
|
"@types/webpack-env": "^1.18.0",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
103
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
94
104
|
"autoprefixer": "^10.4.13",
|
|
95
105
|
"babel-cli": "^6.26.0",
|
|
96
106
|
"babel-plugin-import": "^1.13.6",
|
|
97
107
|
"babel-preset-env": "^1.7.0",
|
|
98
|
-
"babel-preset-taro": "^3.
|
|
108
|
+
"babel-preset-taro": "^3.6.1",
|
|
99
109
|
"classnames": "^2.3.2",
|
|
100
110
|
"commitizen": "^4.3.0",
|
|
101
111
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
102
112
|
"cross-env": "^7.0.3",
|
|
103
|
-
"cssnano": "^5.1.
|
|
104
|
-
"
|
|
113
|
+
"cssnano": "^5.1.15",
|
|
114
|
+
"documentation": "^14.0.1",
|
|
115
|
+
"easy-soft-develop": "^2.0.137",
|
|
116
|
+
"eslint": "^8.34.0",
|
|
117
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
118
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
105
119
|
"eslint-config-prettier": "^8.6.0",
|
|
120
|
+
"eslint-config-taro": "^3.6.1",
|
|
106
121
|
"eslint-formatter-pretty": "^4.1.0",
|
|
107
122
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
108
123
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
109
124
|
"eslint-plugin-import": "^2.27.5",
|
|
125
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
126
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
110
127
|
"eslint-plugin-prettier": "^4.2.1",
|
|
111
128
|
"eslint-plugin-promise": "^6.1.1",
|
|
112
129
|
"eslint-plugin-react": "^7.32.2",
|
|
113
130
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
131
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
132
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
115
133
|
"husky": "^8.0.3",
|
|
116
|
-
"lint-staged": "^13.1.
|
|
134
|
+
"lint-staged": "^13.1.2",
|
|
135
|
+
"mm": "^3.2.1",
|
|
117
136
|
"postcss": "^8.4.21",
|
|
118
137
|
"postcss-less": "^6.0.0",
|
|
119
138
|
"postcss-pxtorem": "^6.0.0",
|
|
120
|
-
"prettier": "^2.8.
|
|
139
|
+
"prettier": "^2.8.4",
|
|
121
140
|
"prettier-plugin-organize-imports": "^3",
|
|
122
141
|
"prettier-plugin-packagejson": "^2",
|
|
123
142
|
"qs": "^6.11.0",
|
|
124
143
|
"react-refresh": "^0.14.0",
|
|
125
144
|
"rimraf": "^4.1.2",
|
|
126
|
-
"rollup": "^3.
|
|
145
|
+
"rollup": "^3.15.0",
|
|
146
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
127
147
|
"rollup-plugin-livereload": "^2.0.5",
|
|
128
148
|
"rollup-plugin-postcss": "^4.0.2",
|
|
129
149
|
"rollup-plugin-serve": "^2.0.2",
|
|
130
150
|
"rollup-plugin-terser": "^7.0.2",
|
|
131
151
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
132
|
-
"
|
|
133
|
-
"stylelint
|
|
134
|
-
"stylelint-config-
|
|
135
|
-
"stylelint-config-
|
|
136
|
-
"stylelint-
|
|
152
|
+
"shelljs": "^0.8.5",
|
|
153
|
+
"stylelint": "^15.1.0",
|
|
154
|
+
"stylelint-config-css-modules": "^4.2.0",
|
|
155
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
156
|
+
"stylelint-config-standard": "^30.0.1",
|
|
157
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
158
|
+
"terminal-kit": "^3.0.0",
|
|
137
159
|
"webpack": "^5.75.0"
|
|
138
|
-
}
|
|
139
|
-
"gitHead": "458a8bfcfb9f0cf5db47f9ab3365b2e7ef04afbe"
|
|
160
|
+
}
|
|
140
161
|
}
|
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.
|