easy-soft-utility 2.4.54 → 2.4.56

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.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 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(){
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 v from"lodash/dropRight";import h from"lodash/endsWith";import m 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 j from"lodash/memoize";import D from"lodash/remove";import _ from"lodash/reverse";import E from"lodash/round";import O from"lodash/set";import M from"lodash/size";import k from"lodash/sortBy";import I from"lodash/sortedUniq";import N from"lodash/split";import L from"lodash/startsWith";import P from"lodash/trim";import F from"lodash/uniqBy";import T from"lodash/toNumber";import R from"lodash/toString";import B from"object-hash";import W from"dayjs";import{stringify as z,parse as H}from"qs";function q(t){return q="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},q(t)}function G(t){var e=function(t,e){if("object"!==q(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===q(e)?e:String(e)}function Y(t,e,n){return(e=G(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(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?U(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $(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 J(t,e){if(t){if("string"==typeof t)return $(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)?$(t,e):void 0}}function K(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=J(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 Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Z=function(t){var e=q(t);return null!=t&&("object"==e||"function"==e)},X="object"==q(Q)&&Q&&Q.Object===Object&&Q,tt=X,et="object"==("undefined"==typeof self?"undefined":q(self))&&self&&self.Object===Object&&self,nt=tt||et||Function("return this")(),rt=nt,ot=function(){return rt.Date.now()},at=/\s/;var it=function(t){for(var e=t.length;e--&&at.test(t.charAt(e)););return e},ut=/^\s+/;var ct=function(t){return t?t.slice(0,it(t)+1).replace(ut,""):t},lt=nt.Symbol,st=lt,ft=Object.prototype,dt=ft.hasOwnProperty,pt=ft.toString,vt=st?st.toStringTag:void 0;var ht=function(t){var e=dt.call(t,vt),n=t[vt];try{t[vt]=void 0;var r=!0}catch(t){}var o=pt.call(t);return r&&(e?t[vt]=n:delete t[vt]),o},mt=Object.prototype.toString;var gt=ht,yt=function(t){return mt.call(t)},bt=lt?lt.toStringTag:void 0;var wt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":bt&&bt in Object(t)?gt(t):yt(t)};var xt=function(t){return null!=t&&"object"==q(t)},St=wt,Ct=xt;var At=function(t){return"symbol"==q(t)||Ct(t)&&"[object Symbol]"==St(t)},jt=ct,Dt=Z,_t=At,Et=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,Mt=/^0o[0-7]+$/i,kt=parseInt;var It=Z,Nt=ot,Lt=function(t){if("number"==typeof t)return t;if(_t(t))return NaN;if(Dt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Dt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=jt(t);var n=Ot.test(t);return n||Mt.test(t)?kt(t.slice(2),n?2:8):Et.test(t)?NaN:+t},Pt=Math.max,Ft=Math.min;var Tt=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 v(t){return l=t,u=setTimeout(m,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 m(){var t=Nt();if(h(t))return g(t);u=setTimeout(m,function(t){var n=e-(t-c);return f?Ft(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 v(c);if(f)return clearTimeout(u),u=setTimeout(m,e),p(c)}return void 0===u&&(u=setTimeout(m,e)),i}return e=Lt(e)||0,It(n)&&(s=!!n.leading,a=(f="maxWait"in n)?Pt(Lt(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},Rt=wt,Bt=Z;var Wt,zt=function(t){if(!Bt(t))return!1;var e=Rt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ht=nt["__core-js_shared__"],qt=(Wt=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||""))?"Symbol(src)_1."+Wt:"";var Gt=function(t){return!!qt&&qt in t},Yt=Function.prototype.toString;var Ut=function(t){if(null!=t){try{return Yt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Vt=zt,$t=Gt,Jt=Z,Kt=Ut,Qt=/^\[object .+?Constructor\]$/,Zt=Function.prototype,Xt=Object.prototype,te=Zt.toString,ee=Xt.hasOwnProperty,ne=RegExp("^"+te.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(t){return!(!Jt(t)||$t(t))&&(Vt(t)?ne:Qt).test(Kt(t))},oe=function(t,e){return null==t?void 0:t[e]};var ae=function(t,e){var n=oe(t,e);return re(n)?n:void 0},ie=ae,ue=function(){try{var t=ie(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var ce=function(t,e,n){"__proto__"==e&&ue?ue(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var le=function(t,e,n,r){for(var o=-1,a=null==t?0:t.length;++o<a;){var i=t[o];e(r,i,n(i),t)}return r};var se=function(t){return function(e,n,r){for(var o=-1,a=Object(e),i=r(e),u=i.length;u--;){var c=i[t?u:++o];if(!1===n(a[c],c,a))break}return e}}();var fe=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},de=wt,pe=xt;var ve=function(t){return pe(t)&&"[object Arguments]"==de(t)},he=xt,me=Object.prototype,ge=me.hasOwnProperty,ye=me.propertyIsEnumerable,be=ve(function(){return arguments}())?ve:function(t){return he(t)&&ge.call(t,"callee")&&!ye.call(t,"callee")},we=Array.isArray,xe={};var Se=function(){return!1};!function(t,e){var n=nt,r=Se,o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,i=a&&a.exports===o?n.Buffer:void 0,u=(i?i.isBuffer:void 0)||r;t.exports=u}({get exports(){return xe},set exports(t){xe=t}},xe);var Ce=/^(?:0|[1-9]\d*)$/;var Ae=function(t,e){var n=q(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ce.test(t))&&t>-1&&t%1==0&&t<e};var je=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},De=wt,_e=je,Ee=xt,Oe={};Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1;var Me=function(t){return Ee(t)&&_e(t.length)&&!!Oe[De(t)]};var ke=function(t){return function(e){return t(e)}},Ie={};!function(t,e){var n=X,r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,a=o&&o.exports===r&&n.process,i=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=i}({get exports(){return Ie},set exports(t){Ie=t}},Ie);var Ne=Me,Le=ke,Pe=Ie&&Ie.isTypedArray,Fe=Pe?Le(Pe):Ne,Te=fe,Re=be,Be=we,We=xe,ze=Ae,He=Fe,qe=Object.prototype.hasOwnProperty;var Ge=function(t,e){var n=Be(t),r=!n&&Re(t),o=!n&&!r&&We(t),a=!n&&!r&&!o&&He(t),i=n||r||o||a,u=i?Te(t.length,String):[],c=u.length;for(var l in t)!e&&!qe.call(t,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ze(l,c))||u.push(l);return u},Ye=Object.prototype;var Ue=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ye)};var Ve=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),$e=Ue,Je=Ve,Ke=Object.prototype.hasOwnProperty;var Qe=zt,Ze=je;var Xe=function(t){return null!=t&&Ze(t.length)&&!Qe(t)},tn=Ge,en=function(t){if(!$e(t))return Je(t);var e=[];for(var n in Object(t))Ke.call(t,n)&&"constructor"!=n&&e.push(n);return e},nn=Xe;var rn=function(t){return nn(t)?tn(t):en(t)},on=se,an=rn;var un=Xe;var cn=function(t,e){return function(n,r){if(null==n)return n;if(!un(n))return t(n,r);for(var o=n.length,a=e?o:-1,i=Object(n);(e?a--:++a<o)&&!1!==r(i[a],a,i););return n}}((function(t,e){return t&&on(t,e,an)}));var ln=function(t,e,n,r){return cn(t,(function(t,o,a){e(r,t,n(t),a)})),r};var sn=function(){this.__data__=[],this.size=0};var fn=function(t,e){return t===e||t!=t&&e!=e},dn=fn;var pn=function(t,e){for(var n=t.length;n--;)if(dn(t[n][0],e))return n;return-1},vn=pn,hn=Array.prototype.splice;var mn=pn;var gn=pn;var yn=pn;var bn=sn,wn=function(t){var e=this.__data__,n=vn(e,t);return!(n<0)&&(n==e.length-1?e.pop():hn.call(e,n,1),--this.size,!0)},xn=function(t){var e=this.__data__,n=mn(e,t);return n<0?void 0:e[n][1]},Sn=function(t){return gn(this.__data__,t)>-1},Cn=function(t,e){var n=this.__data__,r=yn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function An(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}An.prototype.clear=bn,An.prototype.delete=wn,An.prototype.get=xn,An.prototype.has=Sn,An.prototype.set=Cn;var jn=An,Dn=jn;var _n=function(){this.__data__=new Dn,this.size=0};var En=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var On=function(t){return this.__data__.get(t)};var Mn=function(t){return this.__data__.has(t)},kn=ae(nt,"Map"),In=ae(Object,"create"),Nn=In;var Ln=function(){this.__data__=Nn?Nn(null):{},this.size=0};var Pn=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Fn=In,Tn=Object.prototype.hasOwnProperty;var Rn=function(t){var e=this.__data__;if(Fn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Tn.call(e,t)?e[t]:void 0},Bn=In,Wn=Object.prototype.hasOwnProperty;var zn=In;var Hn=Ln,qn=Pn,Gn=Rn,Yn=function(t){var e=this.__data__;return Bn?void 0!==e[t]:Wn.call(e,t)},Un=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zn&&void 0===e?"__lodash_hash_undefined__":e,this};function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vn.prototype.clear=Hn,Vn.prototype.delete=qn,Vn.prototype.get=Gn,Vn.prototype.has=Yn,Vn.prototype.set=Un;var $n=Vn,Jn=jn,Kn=kn;var Qn=function(t){var e=q(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Zn=function(t,e){var n=t.__data__;return Qn(e)?n["string"==typeof e?"string":"hash"]:n.map},Xn=Zn;var tr=Zn;var er=Zn;var nr=Zn;var rr=function(t,e){var n=nr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},or=function(){this.size=0,this.__data__={hash:new $n,map:new(Kn||Jn),string:new $n}},ar=function(t){var e=Xn(this,t).delete(t);return this.size-=e?1:0,e},ir=function(t){return tr(this,t).get(t)},ur=function(t){return er(this,t).has(t)},cr=rr;function lr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}lr.prototype.clear=or,lr.prototype.delete=ar,lr.prototype.get=ir,lr.prototype.has=ur,lr.prototype.set=cr;var sr=lr,fr=jn,dr=kn,pr=sr;var vr=jn,hr=_n,mr=En,gr=On,yr=Mn,br=function(t,e){var n=this.__data__;if(n instanceof fr){var r=n.__data__;if(!dr||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new pr(r)}return n.set(t,e),this.size=n.size,this};function wr(t){var e=this.__data__=new vr(t);this.size=e.size}wr.prototype.clear=hr,wr.prototype.delete=mr,wr.prototype.get=gr,wr.prototype.has=yr,wr.prototype.set=br;var xr=wr;var Sr=sr,Cr=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ar=function(t){return this.__data__.has(t)};function jr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Sr;++e<n;)this.add(t[e])}jr.prototype.add=jr.prototype.push=Cr,jr.prototype.has=Ar;var Dr=jr,_r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},Er=function(t,e){return t.has(e)};var Or=function(t,e,n,r,o,a){var i=1&n,u=t.length,c=e.length;if(u!=c&&!(i&&c>u))return!1;var l=a.get(t),s=a.get(e);if(l&&s)return l==e&&s==t;var f=-1,d=!0,p=2&n?new Dr:void 0;for(a.set(t,e),a.set(e,t);++f<u;){var v=t[f],h=e[f];if(r)var m=i?r(h,v,f,e,t,a):r(v,h,f,t,e,a);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!_r(e,(function(t,e){if(!Er(p,e)&&(v===t||o(v,t,n,r,a)))return p.push(e)}))){d=!1;break}}else if(v!==h&&!o(v,h,n,r,a)){d=!1;break}}return a.delete(t),a.delete(e),d};var Mr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var kr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Ir=nt.Uint8Array,Nr=fn,Lr=Or,Pr=Mr,Fr=kr,Tr=lt?lt.prototype:void 0,Rr=Tr?Tr.valueOf:void 0;var Br=function(t,e,n,r,o,a,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new Ir(t),new Ir(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nr(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=Pr;case"[object Set]":var c=1&r;if(u||(u=Fr),t.size!=e.size&&!c)return!1;var l=i.get(t);if(l)return l==e;r|=2,i.set(t,e);var s=Lr(u(t),u(e),r,o,a,i);return i.delete(t),s;case"[object Symbol]":if(Rr)return Rr.call(t)==Rr.call(e)}return!1};var Wr=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},zr=we;var Hr=function(t,e,n){var r=e(t);return zr(t)?r:Wr(r,n(t))};var qr=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a},Gr=function(){return[]},Yr=Object.prototype.propertyIsEnumerable,Ur=Object.getOwnPropertySymbols,Vr=Hr,$r=Ur?function(t){return null==t?[]:(t=Object(t),qr(Ur(t),(function(e){return Yr.call(t,e)})))}:Gr,Jr=rn;var Kr=function(t){return Vr(t,Jr,$r)},Qr=Object.prototype.hasOwnProperty;var Zr=function(t,e,n,r,o,a){var i=1&n,u=Kr(t),c=u.length;if(c!=Kr(e).length&&!i)return!1;for(var l=c;l--;){var s=u[l];if(!(i?s in e:Qr.call(e,s)))return!1}var f=a.get(t),d=a.get(e);if(f&&d)return f==e&&d==t;var p=!0;a.set(t,e),a.set(e,t);for(var v=i;++l<c;){var h=t[s=u[l]],m=e[s];if(r)var g=i?r(m,h,s,e,t,a):r(h,m,s,t,e,a);if(!(void 0===g?h===m||o(h,m,n,r,a):g)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(t),a.delete(e),p},Xr=ae(nt,"DataView"),to=kn,eo=ae(nt,"Promise"),no=ae(nt,"Set"),ro=ae(nt,"WeakMap"),oo=wt,ao=Ut,io="[object Map]",uo="[object Promise]",co="[object Set]",lo="[object WeakMap]",so="[object DataView]",fo=ao(Xr),po=ao(to),vo=ao(eo),ho=ao(no),mo=ao(ro),go=oo;(Xr&&go(new Xr(new ArrayBuffer(1)))!=so||to&&go(new to)!=io||eo&&go(eo.resolve())!=uo||no&&go(new no)!=co||ro&&go(new ro)!=lo)&&(go=function(t){var e=oo(t),n="[object Object]"==e?t.constructor:void 0,r=n?ao(n):"";if(r)switch(r){case fo:return so;case po:return io;case vo:return uo;case ho:return co;case mo:return lo}return e});var yo=xr,bo=Or,wo=Br,xo=Zr,So=go,Co=we,Ao=xe,jo=Fe,Do="[object Arguments]",_o="[object Array]",Eo="[object Object]",Oo=Object.prototype.hasOwnProperty;var Mo=function(t,e,n,r,o,a){var i=Co(t),u=Co(e),c=i?_o:So(t),l=u?_o:So(e),s=(c=c==Do?Eo:c)==Eo,f=(l=l==Do?Eo:l)==Eo,d=c==l;if(d&&Ao(t)){if(!Ao(e))return!1;i=!0,s=!1}if(d&&!s)return a||(a=new yo),i||jo(t)?bo(t,e,n,r,o,a):wo(t,e,c,n,r,o,a);if(!(1&n)){var p=s&&Oo.call(t,"__wrapped__"),v=f&&Oo.call(e,"__wrapped__");if(p||v){var h=p?t.value():t,m=v?e.value():e;return a||(a=new yo),o(h,m,n,r,a)}}return!!d&&(a||(a=new yo),xo(t,e,n,r,o,a))},ko=Mo,Io=xt;var No=function t(e,n,r,o,a){return e===n||(null==e||null==n||!Io(e)&&!Io(n)?e!=e&&n!=n:ko(e,n,r,o,t,a))},Lo=xr,Po=No;var Fo=function(t,e,n,r){var o=n.length,a=o,i=!r;if(null==t)return!a;for(t=Object(t);o--;){var u=n[o];if(i&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var c=(u=n[o])[0],l=t[c],s=u[1];if(i&&u[2]){if(void 0===l&&!(c in t))return!1}else{var f=new Lo;if(r)var d=r(l,s,c,t,e,f);if(!(void 0===d?Po(s,l,3,r,f):d))return!1}}return!0},To=Z;var Ro=function(t){return t==t&&!To(t)},Bo=Ro,Wo=rn;var zo=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},Ho=Fo,qo=function(t){for(var e=Wo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Bo(o)]}return e},Go=zo;var Yo=function(t){var e=qo(t);return 1==e.length&&e[0][2]?Go(e[0][0],e[0][1]):function(n){return n===t||Ho(n,t,e)}},Uo=we,Vo=At,$o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jo=/^\w*$/;var Ko=function(t,e){if(Uo(t))return!1;var n=q(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Vo(t))||(Jo.test(t)||!$o.test(t)||null!=e&&t in Object(e))},Qo=sr;function Zo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Zo.Cache||Qo),n}Zo.Cache=Qo;var Xo=Zo;var ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,na=function(t){var e=Xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ta,(function(t,n,r,o){e.push(r?o.replace(ea,"$1"):n||t)})),e}));var ra=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},oa=we,aa=At,ia=lt?lt.prototype:void 0,ua=ia?ia.toString:void 0;var ca=function t(e){if("string"==typeof e)return e;if(oa(e))return ra(e,t)+"";if(aa(e))return ua?ua.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},la=ca;var sa=function(t){return null==t?"":la(t)},fa=we,da=Ko,pa=na,va=sa;var ha=function(t,e){return fa(t)?t:da(t,e)?[t]:pa(va(t))},ma=At;var ga=function(t){if("string"==typeof t||ma(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},ya=ha,ba=ga;var wa=function(t,e){for(var n=0,r=(e=ya(e,t)).length;null!=t&&n<r;)t=t[ba(e[n++])];return n&&n==r?t:void 0},xa=wa;var Sa=ha,Ca=be,Aa=we,ja=Ae,Da=je,_a=ga;var Ea=function(t,e){return null!=t&&e in Object(t)},Oa=function(t,e,n){for(var r=-1,o=(e=Sa(e,t)).length,a=!1;++r<o;){var i=_a(e[r]);if(!(a=null!=t&&n(t,i)))break;t=t[i]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&Da(o)&&ja(i,o)&&(Aa(t)||Ca(t))};var Ma=No,ka=function(t,e,n){var r=null==t?void 0:xa(t,e);return void 0===r?n:r},Ia=function(t,e){return null!=t&&Oa(t,e,Ea)},Na=Ko,La=Ro,Pa=zo,Fa=ga;var Ta=wa;var Ra=function(t){return function(e){return null==e?void 0:e[t]}},Ba=function(t){return function(e){return Ta(e,t)}},Wa=Ko,za=ga;var Ha=Yo,qa=function(t,e){return Na(t)&&La(e)?Pa(Fa(t),e):function(n){var r=ka(n,t);return void 0===r&&r===e?Ia(n,t):Ma(e,r,3)}},Ga=function(t){return t},Ya=we,Ua=function(t){return Wa(t)?Ra(za(t)):Ba(t)};var Va=le,$a=ln,Ja=function(t){return"function"==typeof t?t:null==t?Ga:"object"==q(t)?Ya(t)?qa(t[0],t[1]):Ha(t):Ua(t)},Ka=we;var Qa=ce,Za=function(t,e){return function(n,r){var o=Ka(n)?Va:$a,a=e?e():{};return o(n,t,Ja(r),a)}},Xa=Object.prototype.hasOwnProperty,ti=Za((function(t,e,n){Xa.call(t,n)?t[n].push(e):Qa(t,n,[e])})),ei=Tt,ni=Z;var ri=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ni(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ei(t,e,{leading:r,maxWait:e,trailing:o})};function oi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return S(t,e,n)}function ai(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ti(t,e)}function ii(t,e){return E(t,e)}function ui(t,e,n){return h(t,e,n)}function ci(t){return I(t)}function li(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return N(t,e,n)}function si(t,e){return f(t,e)}function fi(t,e,n){return d(t,e,n)}function di(t){return _(t)}function pi(t,e){return x(t,e)}function vi(t,e){return C(t,e)}function hi(t){return j(t)}function mi(t,e){return w(t,e)}function gi(t){return b(t)}function yi(t,e){return L(t,e)}function bi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return v(t,e)}function wi(t,e){return F(t,e)}function xi(t){return P(t)}function Si(t,e,n){return s(t,e,n)}function Ci(t,e){return D(t,e)}function Ai(t,e){return A(t,e)}function ji(t,e,n){return O(t,e,n)}function Di(t){return M(t)}function _i(t,e){return p(t,e)}function Ei(t,e){return m(t,e)}function Oi(t,e){return k(t,e)}function Mi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(t,e,n)}function ki(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return g(t,e,n)}function Ii(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Tt(t,e,n)}function Ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ri(t,e,n)}function Li(t){return Hi(t)}function Pi(t){var e="".concat(Hi(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 Fi(t){return i(t)}function Ti(t){var e="".concat(Hi(t)?null:t);if(""===e)return!1;return new RegExp(/^([1-9]\d{0,15}|0)(\.\d{1,2})?$/).test(e)}function Ri(t,e){return r(t,e)}function Bi(t,e){return JSON.stringify(t||{})===JSON.stringify(e||{})}function Wi(t){return o(t)}function zi(t){return e(t)}function Hi(t){return l(t)}function qi(t){return a(t)}function Gi(t){return n(t)}function Yi(t){return c(t)}function Ui(t){return Array.isArray(t)}function Vi(t){return u(t)}function $i(t){return null!==t&&"object"===q(t)&&!Ui(t)}function Ji(t){return $i(t)&&Wi(t.then)&&Wi(t.catch)}function Ki(t){return new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/).test(t)}function Qi(t){return new RegExp(/(data):image\/([\w.]+\/?)\S*/).test(t)}function Zi(t){return""===xi(s(t||""," ",""))}function Xi(t,e){var n=!1;return Ui(t)?(t.some((function(t){return t===e&&(n=!0,!0)})),n):n}function tu(t){return(new Date).toISOString().slice(0,10)===t.toISOString().slice(0,10)}function eu(t,e,n){return n.getTime()>=t.getTime()&&n.getTime()<=e.getTime()}function nu(t){return 6===t.getDay()||0===t.getDay()}function ru(t,e){return t.getUTCFullYear()===new Date("".concat(e)).getUTCFullYear()}function ou(t){return"[object AsyncFunction]"===Object.prototype.toString.call(t)}var au={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}]},iu={super:{permission:"super"}},uu={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",UNKNOWN:"UNKNOWN"},cu={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},lu={dataLoading:!0},su={real:"real",simulation:"simulation"},fu={get:"GET",post:"POST",put:"PUT",delete:"DELETE",trace:"TRACE",connect:"CONNECT"},du="0",pu=0,vu="1970-01-01 00:00",hu={number:"number",datetime:"datetime",string:"string",moment:"moment",money:"money",array:"array",boolean:"boolean"},mu={money:"money",datetime:"datetime",chineseMoney:"chineseMoney",percentage:"percentage"},gu={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"},yu={moveUp:"moveUp",moveDown:"moveDown"},bu={no:"0",yes:"1"},wu={no:0,yes:1},xu={trace:"trace",debug:"debug",warn:"warn",error:"error",exception:"exception",info:"info",config:"config",execute:"execute",stack:"stack",development:"development"},Su={auto:"auto",text:"text",object:"object"},Cu={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},Au={open:"open",loading:"loading",info:"info",warning:"warning",warn:"warn",success:"success",error:"error"},ju="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABLCAYAAACGGCK3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA0SURBVHhe7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIA3NXV7AAHfw7zWAAAAAElFTkSuQmCC",Du=ju;function _u(t){return function(t){if(Array.isArray(t))return $(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||J(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 Eu=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 Ou=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Eu(t,e,n)},Mu=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ku=function(t){return Mu.test(t)};var Iu=function(t){return t.split("")},Nu="\\ud800-\\udfff",Lu="["+Nu+"]",Pu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fu="\\ud83c[\\udffb-\\udfff]",Tu="[^"+Nu+"]",Ru="(?:\\ud83c[\\udde6-\\uddff]){2}",Bu="[\\ud800-\\udbff][\\udc00-\\udfff]",Wu="(?:"+Pu+"|"+Fu+")"+"?",zu="[\\ufe0e\\ufe0f]?",Hu=zu+Wu+("(?:\\u200d(?:"+[Tu,Ru,Bu].join("|")+")"+zu+Wu+")*"),qu="(?:"+[Tu+Pu+"?",Pu,Ru,Bu,Lu].join("|")+")",Gu=RegExp(Fu+"(?="+Fu+")|"+qu+Hu,"g");var Yu=Iu,Uu=ku,Vu=function(t){return t.match(Gu)||[]};var $u=Ou,Ju=ku,Ku=function(t){return Uu(t)?Vu(t):Yu(t)},Qu=sa;var Zu=function(t){return function(e){e=Qu(e);var n=Ju(e)?Ku(e):void 0,r=n?n[0]:e.charAt(0),o=n?$u(n,1).join(""):e.slice(1);return r[t]()+o}},Xu=Zu("toLowerCase"),tc=Zu("toUpperCase");function ec(t){return B(t,{algorithm:"sha1"})}function nc(t){return B(t,{algorithm:"md5"})}function rc(t,e){var n=Math.pow(10,e+1),r=Math.floor(oc(t)*n);return 10*Math.round(r/10)/n}function oc(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:rc(r,e)}function ac(t,e,n){if(!Fi(t))throw new Error("value must be number value");var r=oc(t);return void 0!==e&&(r=Math.max(t,e)),void 0!==n&&(r=Math.min(r,n)),r}function ic(t){return Ti(t)?Number.parseFloat(t,10):0}function uc(t){return"".concat(ic(1e3*oc(t)/10),"%")}function cc(t){return R(t)}function lc(t){return!!t}function sc(t){return cc(t).toUpperCase()}function fc(t){return tc(t)}function dc(t){return cc(t).toLowerCase()}function pc(t){return Xu(t)}function vc(t){if(null==(t||null))return null;if(Gi(t))return t;if(Yi(t)&&t.indexOf("T")<0){var e=t.replace(/-/g,"/");return new Date(e)}return new Date(t)}function hc(t){return Ji(t)?t:Promise.resolve(t)}function mc(t,e){return ii(t,e)}function gc(t){var e=t.target,n=t.convert;if(Wi(n))return n(e);if(Yi(n))switch(n){case hu.number:return oc(e);case hu.datetime:return vc(e);case hu.string:return cc(e);case hu.money:return ic(e);case hu.array:return null==(e||null)?[]:Ui(e)?e:[e];default:return e}return e}function yc(t){return _u(new Set(t))}var bc="easy-soft-utility";function wc(t){return new Function("return ".concat(t))()}function xc(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement}function Sc(){return window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function Cc(){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 Ac(){var t;return{versions:Cc(),language:(null!==(t=navigator.browserLanguage||navigator.language)&&void 0!==t?t:"").toLowerCase()}}function jc(t){var e=t.seed,n=t.min||0;return n+(9301*e+49297)%233280/233280*((t.max||1)-n)}function Dc(t){return null==t?null:JSON.parse(JSON.stringify(t))}function _c(t,e,n){var r=[];return null!=t&&(r=_u(t)),null!=n&&(r=[].concat(_u(r),_u(n))),null!=e&&(r=[e].concat(_u(r))),r}function Ec(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 Oc(t,e,n){var r=null;if(null==e)return r;var o,a=K(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 Mc(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,Mc)}function kc(){return Mc()+""}function Ic(t){var e=t.pageNo,n=t.pageSize,r=t.total;return!((r||0)<=0)&&(e||0)*(n||0)<(r||0)}function Nc(){return"development"===process.env.NODE_ENV}function Lc(t){return Object.keys(t).map((function(e){return t[e]})).join(",")}var Pc="must be an object",Fc="must be a string",Tc="must be function",Rc="must be array",Bc={buildMustObject:function(t){return"".concat(t," ").concat(Pc)},buildMustString:function(t){return"".concat(t," ").concat(Fc)},buildMustFunction:function(t){return"".concat(t," ").concat(Tc)},buildMustArray:function(t){return"".concat(t," ").concat(Rc)}};function Wc(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 Yi(t)&&!Zi(t)}));return"".concat(a.join("::"),"::").concat(Zi(e)?"":e)}var zc="loggerAssist",Hc={loggerDisplaySwitchPromptSetInformationComplete:!1,loggerDisplaySwitchSetComplete:!1,display:!1},qc={config:"#F8C471",execute:"#C39BD3",info:"#89CA78",warn:"#F16F17",debug:"#00768F",trace:"#596032",error:"#E33F3E",exception:"#DC428E",stack:"#81977c",development:"#9f6027"};function Gc(t,e){return"".concat(cc(t)).concat(Zi(e)?"":" -> ".concat(e))}function Yc(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=Gc(Yi(e)?e:JSON.stringify(e),u);Zi(Yc)||console.log("%c%s","color:".concat(r,";"),"".concat(Zi(a)?"":"[".concat(sc(a),"] ")).concat(c))}function Uc(t){var e=t.data,n=t.color,r=void 0===n?"":n,o=t.dataDescription,a=void 0===o?"":o,i=t.ancillaryInformation;Yc({text:"check the following object data",color:r,dataDescription:a,ancillaryInformation:void 0===i?"":i}),console.log(e)}function Vc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Su.auto,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xu.debug,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=il();if(!Hc.loggerDisplaySwitchSetComplete&&!Hc.loggerDisplaySwitchPromptSetInformationComplete){var a=Wc(bc,"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",zc);Yc({text:a,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""});try{throw new Error("please set use setLoggerDisplaySwitch")}catch(t){console.error(t)}Hc.loggerDisplaySwitchPromptSetInformationComplete=!0}if(o||Xi([xu.exception,xu.development],n)){var i=null==(e||null)||Zi(e)?Su.auto:e;if(!Xi([Su.auto,Su.text,Su.object],i))throw new Error("Invalid log display mode -> ".concat(i));if(i===Su.auto&&(i=Yi(t)?Su.text:Su.object),n!==xu.exception){if(n===xu.development&&Nc()&&(i===Su.text&&Yc({text:t,color:qc.development,dataDescription:"development",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.development,dataDescription:"development",ancillaryInformation:r})),o){if(n===xu.trace&&(i===Su.text&&Yc({text:t,color:qc.trace,dataDescription:"trace",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.trace,dataDescription:"trace",ancillaryInformation:r})),n===xu.debug&&(i===Su.text&&Yc({text:t,color:qc.debug,dataDescription:"debug",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.debug,dataDescription:"debug",ancillaryInformation:r})),n===xu.warn&&(i===Su.text&&Yc({text:t,color:qc.warn,dataDescription:"warn",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.warn,dataDescription:"warn",ancillaryInformation:r})),n===xu.info&&(i===Su.text&&Yc({text:t,color:qc.info,dataDescription:"info",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.info,dataDescription:"info",ancillaryInformation:r})),n===xu.execute&&(i===Su.text&&Yc({text:t,color:qc.execute,dataDescription:"execute",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.execute,dataDescription:"execute",ancillaryInformation:r})),n===xu.config&&(i===Su.text&&Yc({text:t,color:qc.config,dataDescription:"config",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.config,dataDescription:"config",ancillaryInformation:r})),n===xu.stack){i===Su.text&&Yc({text:t,color:qc.stack,dataDescription:"stack",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.stack,dataDescription:"stack",ancillaryInformation:r});try{throw new Error("stack call trace as bellow")}catch(t){var u=t.stack;console.log(Si(u,"Error:","Stack:"))}}n===xu.error&&(i===Su.text&&Yc({text:t,color:qc.error,dataDescription:"error",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.error,dataDescription:"error",ancillaryInformation:r}))}}else{i===Su.text&&Yc({text:t,color:qc.exception,dataDescription:"exception",ancillaryInformation:r}),i===Su.object&&Uc({data:t,color:qc.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 $c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.warn,e):al(t,xu.warn,e)}function Jc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.info,e):al(t,xu.info,e)}function Kc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.config,e):al(t,xu.config,e)}function Qc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.development,e):al(t,xu.development,e)}function Zc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.stack,e):al(t,xu.stack,e)}function Xc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.trace,e):al(t,xu.trace,e)}function tl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.debug,e):al(t,xu.debug,e)}function el(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.execute,e):al(t,xu.execute,e)}function nl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.error,e):al(t,xu.error,e)}function rl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Yi(t)?ol(t,xu.exception,e):al(t,xu.exception,e)}function ol(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xu.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Vc(t,Su.text,e,n)}function al(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xu.trace,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Vc(t,Su.object,e,n)}function il(){return lc(Hc.display)}function ul(t){Nc()&&Yc({text:"setLoggerDisplaySwitch",color:qc.execute,dataDescription:"execute",ancillaryInformation:""}),Hc.display=lc(t),Hc.loggerDisplaySwitchSetComplete=!0}var cl="runtimeAssist",ll={runtimeDataStorage:null,runtimeDataStorageSetComplete:!1};function sl(e){if(Nc()&&Yc({text:"setDataStorage",color:qc.execute,dataDescription:"execute",ancillaryInformation:""}),!Vi(e))throw Nc()&&Uc({data:e,color:qc.debug,dataDescription:"debug",ancillaryInformation:""}),new Error(Wc(bc,"setDataStorage -> data storage mount target must be a object, current type is ".concat("undefined"==typeof target?"undefined":q(target)),cl));e.runtimeDataStorage={},ll.runtimeDataStorage=e.runtimeDataStorage,ll.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()}}(ll.runtimeDataStorage)}function fl(){if(qi(ll.runtimeDataStorage)||!ll.runtimeDataStorageSetComplete)throw new Error(Wc(bc,"runtimeDataStorage has not set,use setRuntimeDataStorage to set it",cl));return ll.runtimeDataStorage}function dl(){return ll.runtimeDataStorage.lastRequestExceptionMessage||{code:-1,message:"",time:Date.now()}}function pl(t){var e=t.code,n=t.message,r=t.time;ll.runtimeDataStorage.lastRequestExceptionMessage={code:e,message:n,time:r}}function vl(t){return Zi(t)?(rl("checkKey -> cache key is null or empty"),!1):!(!Yi(t)&&!Fi(t))||(rl("cache key must be string or number, current type id ".concat(q(t))),!1)}function hl(){var e=fl();return e.localRuntimeCache||(e.localRuntimeCache=new t),e.localRuntimeCache}function ml(t){var e=t.key,n=hl();if(null==n)throw new Error("cache pool not exist");return n.has(e)}function gl(t){var e=t.key,n=t.value,r=t.expiration,o=void 0===r?0:r;if(vl(e)){var a=hl();if(null==a)throw new Error("cache pool not exist");return a.set(e,n,o)}}function yl(t){if(!Ui(t))throw new Error("setMultiCache: list must be array");if(t.length<=0)return!0;var e,n=[],r=K(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(!Zi(a)){if(!vl(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=hl();if(null==c)throw new Error("cache pool not exist");return c.mset(n)}function bl(t){var e=t.key,n=hl();if(null==n)throw new Error("cache pool not exist");return n.getTtl(e)}function wl(t){var e=t.key,n=t.expiration,r=hl();if(null==r)throw new Error("cache pool not exist");return r.ttl(e,n)}function xl(t){var e=t.key,n=hl();if(null==n)throw new Error("cache pool not exist");return n.get(e)}function Sl(){var t=hl();if(null==t)throw new Error("cache pool not exist");return t.keys()}function Cl(t){if(!Ui(t))throw new Error("getMultiCache: list must be array");var e=hl();if(null==e)throw new Error("cache pool not exist");return e.mget(t)}function Al(t){var e=t.key,n=hl();if(null==n)throw new Error("cache pool not exist");return n.take(e)}function jl(t){var e=t.key;if(vl(e)){var n=hl();if(null==n)throw new Error("cache pool not exist");return n.del(e)}}function Dl(t){if(!Ui(t))throw new Error("deleteMultiCache: list must be array");var e=hl();if(null==e)throw new Error("cache pool not exist");return e.del(t)}function _l(){var t=hl();if(null==t)throw new Error("cache pool not exist");return t.flushAll()}function El(){var t=hl();if(null==t)throw new Error("cache pool not exist");return t.getStats()}var Ol="localStorageAssist",Ml={getStorage:function(t){rl(Wc(bc,"localStorageGetter need config, use setLocalStorageGetter to set it",Ol))},setStorage:function(t,e){rl(Wc(bc,"localStorageSetter need config, use setLocalStorageSetter to set it",Ol))},removeStorage:function(t){rl(Wc(bc,"localStorageRemover need config, use setLocalStorageRemover to set it",Ol))},flushStorage:function(){rl(Wc(bc,"localStorageFlusher need config, use setLocalStorageFlusher to set it",Ol))}};function kl(t){Ml.getStorage=t}function Il(t){Ml.setStorage=t}function Nl(t){Ml.removeStorage=t}function Ll(t){Ml.flushStorage=t}function Pl(t){try{return Ml.getStorage(t)}catch(e){throw rl({key:t,e:e}),e}}function Fl(t){var e=Pl(t);return Zi(e)?null:JSON.parse(e||"{}")}function Tl(t,e){Ml.setStorage(t,e)}function Rl(t,e){Ml.setStorage(t,JSON.stringify(e||{}))}function Bl(t){Ml.removeStorage(t)}function Wl(){Ml.flushStorage()}var zl={accessWayCollection:"accessWayCollection"};function Hl(){var t={},e=zl.accessWayCollection;if(ml({key:e})&&Ui(t=xl({key:e})))return t;var n=Fl(e);return null==(n||null)?V({},iu):(gl({key:e,value:t=V(V({},n||null),iu)}),t)}function ql(t){Rl(zl.accessWayCollection,t||{})}function Gl(t){return Zi(t.text||null)&&$c(Wc(bc,"checkMessagePromptData option text disallow empty","loggerAssist")),!0}var Yl={showOpenMessage:function(t){var e=t.text;t.duration,t.onClose,Jc(e)},showLoadingMessage:function(t){var e=t.text;t.duration,t.onClose,Jc(e)},showInfoMessage:function(t){var e=t.text;t.duration,t.onClose,Jc(e)},showSuccessMessage:function(t){var e=t.text;t.duration,t.onClose,Jc(e)},showWarnMessage:function(t){var e=t.text;t.duration,t.onClose,$c(e)},showWarningMessage:function(t){var e=t.text;t.duration,t.onClose,$c(e)},showErrorMessage:function(t){var e=t.text;t.duration,t.onClose,nl(e)},setErrorMessageDisplayMonitorComplete:!1};function Ul(t){Yl.showOpenMessage=t}function Vl(t){Yl.showLoadingMessage=t}function $l(t){Yl.showInfoMessage=t}function Jl(t){Yl.showSuccessMessage=t}function Kl(t){Yl.showWarnMessage=t}function Ql(t){Yl.showWarningMessage=t}function Zl(t){Yl.showErrorMessage=t,Yl.setErrorMessageDisplayMonitorComplete=!0}function Xl(t){ts({text:t})}function ts(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showOpenMessage)&&(Gl({text:e}),Yl.showOpenMessage({text:e,duration:r,onClose:a}))}function es(t){ns({text:t})}function ns(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showLoadingMessage)&&(Gl({text:e}),Yl.showLoadingMessage({text:e,duration:r,onClose:a}))}function rs(t){os({text:t})}function os(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showInfoMessage)&&(Gl({text:e}),Yl.showInfoMessage({text:e,duration:r,onClose:a}))}function as(t){is({text:t})}function is(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showSuccessMessage)&&(Gl({text:e}),Yl.showSuccessMessage({text:e,duration:r,onClose:a}))}function us(t){cs({text:t})}function cs(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showWarnMessage)&&(Gl({text:e}),Yl.showWarnMessage({text:e,duration:r,onClose:a}))}function ls(t){ss({text:t})}function ss(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showWarningMessage)&&(Gl({text:e}),Yl.showWarningMessage({text:e,duration:r,onClose:a}))}function fs(t){ds({text:t})}function ds(t){var e=t.text,n=t.duration,r=void 0===n?1500:n,o=t.onClose,a=void 0===o?function(){}:o;Wi(Yl.showErrorMessage)&&(Gl({text:e}),Yl.showErrorMessage({text:e,duration:r,onClose:a}))}function ps(t){vs({text:t})}function vs(t){var e=t.text;Zi(e||"")||(Yl.setErrorMessageDisplayMonitorComplete&&ds({text:e}),rl({text:e}))}var hs="applicationAssist",ms={externalConfigListSetComplete:!1,initialConfigSetComplete:!1};function gs(t){return Wc(bc,t,hs)}function ys(t){if(Nc()&&Yc({text:"setInitialConfig",color:qc.execute,dataDescription:"execute",ancillaryInformation:""}),!Vi(t)){var e="setInitialConfig -> config must be object";Nc()&&Yc({text:Wc(bc,e,hs),color:qc.warn,dataDescription:"warn",ancillaryInformation:""}),fs(e)}fl().applicationInitialConfig=t,ms.initialConfigSetComplete=!0}function bs(t){if(ms.externalConfigListSetComplete){var e="setApplicationExternalConfigList -> reset is not allowed, it can be set only once";return Nc()&&Yc({text:gs(e),color:qc.warn,dataDescription:"warn",ancillaryInformation:""}),void fs(e)}Nc()&&Yc({text:"setApplicationExternalConfigList",color:qc.execute,dataDescription:"execute",ancillaryInformation:""}),fl().externalConfigList=Ui(t)?t:Vi(t)?[t]:[],ms.externalConfigListSetComplete=!0}function ws(){if(!ms.initialConfigSetComplete)throw new Error(Wc(bc,"applicationInitialConfig has not set,use setApplicationInitialConfig to set it",hs));return fl().applicationInitialConfig||{}}function xs(){if(!ms.externalConfigListSetComplete)throw new Error(Wc(bc,"applicationExternalConfigList has not set,use setApplicationExternalConfigList to set it",hs));var t=fl();return Ui(t.externalConfigList)?t.externalConfigList:[]}function Ss(){var t=fl();return t.applicationConfigMergeComplete||(Nc()&&Yc({text:gs("merge application configuration"),color:qc.debug,dataDescription:"debug",ancillaryInformation:""}),t.applicationMergeConfig=function(t,e){if(!Ui(e))return t;var n,r=V({},t),o=K(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;Vi(a)&&(r=V(V({},r),a))}}catch(t){o.e(t)}finally{o.f()}return r}(ws(),t.externalConfigList),t.applicationConfigMergeComplete=!0),t.applicationMergeConfig||{}}function Cs(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)||J(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 As(t,e){return W(t,e)}function js(t,e){var n=vc(t);return n.setHours(n.getHours()+e)}function Ds(t,e){var n=vc(t);return n.setMinutes(n.getMinutes()+e)}function _s(t,e){var n=vc(t);return n.setSeconds(n.getSeconds()+e)}function Es(){return new Date}function Os(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 Ms=function(t,e,n){var r=vc(t),o=e?vc(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&&ks(r,o)||"quarter"===n&&ks(r,o)/3||"year"===n&&ks(r,o)/12||a},ks=function(t,e){var n=vc(t),r=vc(e);return 12*(n.getFullYear()-r.getFullYear())+n.getMonth()-r.getMonth()};function Is(t){var e=t.data;return W(e).day()}function Ns(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=W().day();if(!t)return e;var n="";switch(oc(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 Zi(n)?"":"星期".concat(n)}function Ls(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 Ps({data:e,places:r,symbol:"",thousand:a,decimal:void 0===i?".":i})}function Ps(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||",",v=l||".",h=s<0?"-":"",m=Number.parseInt(s=Math.abs(+s||0).toFixed(f),10)+"",g=m.length;return d+h+((g=g>3?g%3:0)?m.slice(0,Math.max(0,g))+p:"")+m.slice(g).replace(/(\d{3})(?=\d)/g,a+"1"+p)+(f?v+Math.abs(s-oc(m)).toFixed(f).slice(2):"")}function Fs(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=Cs(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 v=e.slice(p,1),h=d-p-1,m=h/4,g=h%4;"0"===v?f+=1:(f>0&&(l+=a[0]),f=0,l+=a[Number.parseInt(v,10)]+i[g]),0===g&&f<4&&(l+=u[m])}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 Ts(t){var e=t.data,n=t.fmt,r=void 0===n?gu.yearMonthDayHourMinuteSecond:n;return null==(e||null)?"":W(e).format(r)}function Rs(t){var e=t.target,n=t.format,r=t.option,o=void 0===r?{}:r;if(Wi(n))return n(e);if(Yi(n))switch(n){case mu.money:return Ps({data:e});case mu.datetime:return Ts({data:e});case mu.chineseMoney:return Fs({target:e,option:o});case mu.percentage:return"".concat(mc(100*e,1),"%");default:return e}return e}function Bs(t,e){return t.replace(/%d/i,e)}function Ws(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=Ms(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&&Bs(r.second[a],Number.parseInt(i))||i<45&&Bs(r.seconds[a],Number.parseInt(i))||i<90&&Bs(r.minute[a],1)||u<45&&Bs(r.minutes[a],Number.parseInt(u))||u<90&&Bs(r.hour[a],1)||c<24&&Bs(r.hours[a],Number.parseInt(c))||c<42&&Bs(r.day[a],1)||l<30&&Bs(r.days[a],Number.parseInt(l))||l<45&&Bs(r.month[a],1)||l<365&&Bs(r.months[a],Number.parseInt(l/30))||s<1.5&&Bs(r.year[a],1)||Bs(r.years[a],Number.parseInt(s))}function zs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ws(t,Es(),e)}var Hs="common";function qs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Wc(bc,Gc(t,e),Hs)}function Gs(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return t&&t.length>e?"".concat(cc(t).slice(0,Math.max(0,e))).concat(n):cc(t)}function Ys(t,e,n,r){var o=cc(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 Us(t,e){Wi(e)&&e()}function Vs(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Hi(t))return n;if(null==t)return n;if(!Yi(e)){var r=qs("getPathValue","path must be string");return vs({message:r}),null}var o=oi(t,e,n);return Hi(n)||qi(n)?o:o||n}function $s(t,e){if(!Yi(t))throw new Error(qs("removeEndMatch",Bc.buildMustString("target")));if(!Yi(e))throw new Error(qs("removeEndMatch",Bc.buildMustString("match")));if(Zi(t))return t;if(Zi(e))return t;var n=t.lastIndexOf(e);return n>=0&&t.length===n+e.length?t.slice(n,e.length):t}function Js(t,e){if(!Yi(t))throw new Error(qs("removeLastMatch",Bc.buildMustString("target")));if(!Yi(e))throw new Error(qs("removeLastMatch",Bc.buildMustString("match")));if(Zi(t))return t;if(Zi(e))return t;var n=t.lastIndexOf(e);return n>=0?t.slice(n,e.length):t}function Ks(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=Vs(e,n,o),v=p;return null==(c||null)&&null==(i||null)||(v=Wi(c)?gc({target:p,convert:c}):gc({target:p,convert:i})),null==(d||null)&&null==(s||null)||(v=Wi(d)?Rs({target:v,format:d}):Rs({target:v,format:s})),v}function Qs(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 cs({message:"无需排序!"}),r}var s,f=Ks({data:n,key:o,convert:hu.number}),d=K(r||[]);try{for(d.s();!(s=d.n()).done;){var p=s.value,v=Ks({data:p,key:o,convert:hu.number});v<f&&u.push(p),v>f&&c.push(p)}}catch(t){d.e(t)}finally{d.f()}switch(e){case yu.moveUp:if(f===i){return cs({message:"已经排在首位!"}),r}var h,m=K((u||[]).entries());try{for(m.s();!(h=m.n()).done;){var g=Cs(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){m.e(t)}finally{m.f()}l=[].concat(_u(l),c);break;case yu.moveDown:if(f===(r||[]).length+i-1){return cs({message:"已经排在末位!"}),r}l=[].concat(_u(l),u);var S,C=K((c||[]).entries());try{for(C.s();!(S=C.n()).done;){var A=Cs(S.value,2),j=A[0],D=A[1];if(0===j){var _=D;_[o]-=1,l.push(_);var E=n;E[o]+=1,l.push(E)}else l.push(D)}}catch(t){C.e(t)}finally{C.f()}break;default:cs({message:"不符合的操作, 允许的操作为['".concat(yu.moveUp,"','").concat(yu.moveDown,"']!")})}return l}function Zs(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(Ui(n)?n:[n]).map((function(t){return Xs({data:t,convert:o,target:i})}))}function Xs(t){var e=t.data,n=t.convert,r=void 0===n?null:n,o=t.recursiveKey,a=void 0===o?"children":o;if(!Wi(r))return e;var i=r(e),u=e[a],c=[];return Ui(u)&&(c=u.map((function(t){return Xs({data:t,convert:r,target:a})}))),i[a]=c,i}function tf(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=ki(t,e,n);return!Hi(r)}function ef(t){var e=t.target,n=t.value,r=t.compareValueHandler,o=t.handler;if(!Vi(e))throw new Error(qs("handleItem",Bc.buildMustObject("target")));if(!Vi(e.state))throw new Error(qs("handleItem",Bc.buildMustObject("target.state")));var a=e.state.metaOriginalData;if(!Vi(a))throw new Error(qs("handleItem",Bc.buildMustObject("target.state.metaOriginalData")));var i=-1;if(Wi(r))if(Wi(o)){if(null==(a.list||null))throw new Error(qs("handleItem",Bc.buildMustArray("target.state.metaOriginalData.list")));var u,c=K(a.list.entries());try{for(c.s();!(u=c.n()).done;){var l=Cs(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{vs({message:"handler mast be function"})}else ps(qs("handleItem",Bc.buildMustFunction("compareValueHandler")))}var nf="authorityCollectionCache",rf="hasSuperPermission";function of(t){Rl(zl.authorityCollection,"string"==typeof t?[t]:t),_l()}function af(t){var e,n=void 0===t?Pl(zl.authorityCollection):t;try{n&&(e=JSON.parse(n))}catch(t){e=n}return"string"==typeof e?[e]:Ui(e)?e:[]}function uf(){return function(){var t=[];if(ml({key:nf})&&Ui(t=xl({key:nf})))return t;var e,n=Pl(zl.authorityCollection);try{e=JSON.parse(n)}catch(t){e=n}return"string"==typeof e?t.push(e):t=Ui(e)?e:[],gl({key:nf,value:t}),t}()}function cf(){if(ml({key:rf})){var t=xl({key:rf});if(void 0!==t)return!!t}var e=function(){var t="",e=Hl();if(!Vi(e))return t;var n=Ks({data:e,key:"super"});if(Vi(n)){var r=Ks({data:n,key:"permission"});Yi(r)&&(t=r)}return t}();if(!Zi(e)&&((uf()||[]).find((function(t){return t===e}))||"")===e)return gl({key:rf,value:!0}),!0;return gl({key:rf,value:!1}),!1}function lf(t){if(cf())return!0;var e="0";if(ml({key:t})&&void 0!==(e=xl({key:t})))return"0"!==e;var n=uf(),r=Hl(),o=(n||[]).find((function(e){return e===t}));return null==(null!=o?o:null)&&al({checkAuthority:t,listAuthority:n,accessWayCollection:r}),gl({key:t,value:e=void 0===o?"0":"1"}),"0"!==e}function sf(t){if(Ui(t))return n=!1,Ui(e=t)?n=e.some((function(t){return lf(t)})):Yi(e)?n=lf(e):(fs("无效的待验证权限"),nl('auth fail on "'.concat(e.join(","),'"')),n);var e,n;if(Yi(t))return lf(t);throw al({auth:t}),new Error("auth need string or string array, please check in console.")}var ff,df="function"==typeof atob,pf="function"==typeof btoa,vf="function"==typeof Buffer,hf="function"==typeof TextDecoder?new TextDecoder:void 0,mf="function"==typeof TextEncoder?new TextEncoder:void 0,gf=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),yf=(ff={},gf.forEach((function(t,e){return ff[t]=e})),ff),bf=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wf=String.fromCharCode.bind(String),xf="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){return new Uint8Array(Array.prototype.slice.call(t,0))},Sf=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},Cf=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},Af=pf?function(t){return btoa(t)}:vf?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+=gf[(e=n<<16|r<<8|o)>>18&63]+gf[e>>12&63]+gf[e>>6&63]+gf[63&e]}return i?a.slice(0,i-3)+"===".substring(i):a},jf=vf?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var e=[],n=0,r=t.length;n<r;n+=4096)e.push(wf.apply(null,t.subarray(n,n+4096)));return Af(e.join(""))},Df=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?wf(192|e>>>6)+wf(128|63&e):wf(224|e>>>12&15)+wf(128|e>>>6&63)+wf(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return wf(240|e>>>18&7)+wf(128|e>>>12&63)+wf(128|e>>>6&63)+wf(128|63&e)},_f=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ef=vf?function(t){return Buffer.from(t,"utf8").toString("base64")}:mf?function(t){return jf(mf.encode(t))}:function(t){return Af(t.replace(_f,Df))},Of=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Mf=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 wf(55296+(e>>>10))+wf(56320+(1023&e));case 3:return wf((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return wf((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},kf=df?function(t){return atob(Cf(t))}:vf?function(t){return Buffer.from(t,"base64").toString("binary")}:function(t){if(t=t.replace(/\s+/g,""),!bf.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=yf[t.charAt(a++)]<<18|yf[t.charAt(a++)]<<12|(n=yf[t.charAt(a++)])<<6|(r=yf[t.charAt(a++)]),o+=64===n?wf(e>>16&255):64===r?wf(e>>16&255,e>>8&255):wf(e>>16&255,e>>8&255,255&e);return o},If=vf?function(t){return xf(Buffer.from(t,"base64"))}:function(t){return xf(kf(t).split("").map((function(t){return t.charCodeAt(0)})))},Nf=vf?function(t){return Buffer.from(t,"base64").toString("utf8")}:hf?function(t){return hf.decode(If(t))}:function(t){return kf(t).replace(Of,Mf)},Lf=function(t){return Nf(Cf(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"}))))};function Pf(t){return Lf(t)}function Ff(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?Sf(Ef(t)):Ef(t)}(t)}function Tf(t){return 1*t<10?"0".concat(t):t}function Rf(t){var e=t.seed;return"#".concat(_u("00000".concat(Math.trunc(16777216*jc({seed:e})).toString(16))))}function Bf(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(_u(o.slice(i,i+1)),_u(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 rl("Invalid hex color -> ".concat(t)),o}function Wf(t){var e=t.progress,n=t.startColor,r=t.endColor,o=Bf(n,null,!0),a=Bf(r,null,!0),i=Cs(o,3),u=i[0],c=i[1],l=i[2],s=Cs(a,3),f=s[0],d=s[1],p=s[2],v=[(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(v.join("").toUpperCase())}function zf(t){var e=t.direct,n=t.list,r=void 0===n?[]:n,o=Fi(e)?"".concat(e,"deg"):e;return"linear-gradient(".concat(o,", ").concat(r.join(","),")")}function Hf(t,e){return Hi(e)?t:e}function qf(){for(var t=si({},arguments.length<=0?void 0:arguments[0]),e=1;e<arguments.length;e++)t=fi(t,e<0||arguments.length<=e?void 0:arguments[e],Hf);return t}function Gf(t){if(t&&"object"===q(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 Yf(t,e){return t&&"object"===q(t)&&e&&"object"===q(e)?Object.assign({},t,e):Gf(t)+Gf(e)}function Uf(t,e){var n=t;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var Vf="token";function $f(){return Vf}function Jf(){return Pl(Vf)}function Kf(t){return Tl(Vf,t)}function Qf(){return Bl(Vf)}function Zf(){var t={};return t["".concat($f())]=Jf()||"",t}var Xf="currentOperator";function td(){el("getCurrentOperatorCache");var t=Fl(Xf);return null==(t||null)||""===t.flag||t.flag!==Jf()?null:t.data||null}function ed(t){return el("setCurrentOperatorCache"),Rl(Xf,{data:t||null,flag:Jf()||""})}function nd(){el("removeCurrentOperatorCache"),Bl(Xf)}var rd={prepareCallback:function(){},setPrepareComplete:!1,prepareExecuteComplete:!1};function od(){rd.prepareExecuteComplete||(Nc()&&Yc({text:Wc(bc,"tryDoDvaPrepareWork -> try to do dva prepare work","dvaAssist"),color:qc.debug,dataDescription:"debug",ancillaryInformation:""}),Wi(rd.prepareCallback)&&rd.prepareCallback(),rd.prepareExecuteComplete=!0)}function ad(t){Nc()&&Yc({text:"setPrepareCallback",color:qc.execute,dataDescription:"execute",ancillaryInformation:""}),rd.prepareCallback=t,rd.setPrepareComplete=!0}var id={reducerData:"reducerData"};function ud(t,e,n){od();var r=V({callback:null,pretreatment:null,alias:null,cacheData:!1},e),o=r.payload,a=r.alias,i=r.cacheData,u=null;if(Hi(a)||!Yi(a)?u=V(V({},t),{},{data:o,fromRemote:!0}):(u=V(V({},t),{},{fromRemote:!0}))[a]=o,i){var c=gl({key:"".concat(n,"_").concat(a||"data"),value:o});Nc()&&Yc({text:"modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(c?"cache success":"cache fail","."),color:qc.debug,dataDescription:"debug",ancillaryInformation:""})}return u}var cd={reducerData:function(t,e,n){return ud(t,e,n)}};function ld(){return od(),{data:{code:0,message:"success",dataSuccess:!0,data:{},list:[],extra:{}}}}var sd={cacheData:!1},fd={callback:null,pretreatment:null},dd="htmlAssist";function pd(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(!Fi(t))return t;if(!Fi(e)||e<=0)throw new Error(Wc(bc,"pxToRem -> root value must be number and greater than 0, current root value [".concat(e,"] is invalid"),dd));var o=Number.parseFloat(t);if(o<r)return t;var a=oc(o/e,n);return 0===a?"0":a+"rem"}var vd="localMetaData";function hd(){el("getLocalMetaData");var t=Fl(vd);return null==(t||null)||null==(t.dataVersion||null)?null:V({data:null},t).data||null}function md(t){return el("setLocalMetaData"),Rl(vd,{data:t,dataVersion:Number.parseInt(Date.now()/1e3/60/30,10)})}function gd(){Bl(vd)}var yd="modelAssist",bd="modelNameList",wd={embedBuilders:[],extraBuilders:[],buildComplete:!1,models:[]};function xd(){return wd.embedBuilders.length+wd.extraBuilders.length}function Sd(t){if(!Wi(t))throw new Error(Wc(bc,"appendEmbedBuilder -> builder must be none parameter function and return an object, current is ".concat(q(t)),yd));wd.embedBuilders.push(t)}function Cd(t){if(!Wi(t))throw new Error(Wc(bc,"appendExtraBuilder -> builder must be none parameter function and return an object, current is ".concat(q(t)),yd));wd.extraBuilders.push(t)}function Ad(){el("buildModelCollection");var t,e=[],n=K(wd.embedBuilders);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(Wi(r)){var o=r();Vi(o)&&e.push(o)}}}catch(t){n.e(t)}finally{n.f()}var a,i=K(wd.extraBuilders);try{for(i.s();!(a=i.n()).done;){var u=a.value;if(Wi(u)){var c=u();Vi(c)&&e.push(c)}}}catch(t){i.e(t)}finally{i.f()}wd.buildComplete=!0,wd.models=e}function jd(){if(!wd.buildComplete){Ad();var t=wd.models.map((function(t){return t.namespace})).join(",");Kc("all models -> ".concat(t)),_d(t)}return wd.models}function Dd(){return Pl(bd)}function _d(t){return Tl(bd,t||"")}function Ed(){Bl(bd)}var Od="navigationAssist",Md={navigateTo:function(t){rl(Wc(bc,"setNavigator need config, use setNavigator to set it",Od))},redirectTo:function(t,e){rl(Wc(bc,"setRedirector need config, use setRedirector to set it",Od))}};function kd(t){Md.navigateTo=t}function Id(t){Md.redirectTo=t}function Nd(t){if(Yi(t)||Vi(t))Md.redirectTo(t);else{fs("invalid parameter, params need string or object")}}function Ld(t){if(Yi(t)||Vi(t))Md.navigateTo(t);else{fs("invalid parameter, params need string or object")}}var Pd={showOpenNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Jc(Gc(e,r))},showLoadingNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Jc(Gc(e,r))},showInfoNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Jc(Gc(e,r))},showSuccessNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,Jc(Gc(e,r))},showWarnNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,$c(Gc(e,r))},showWarningNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,$c(Gc(e,r))},showErrorNotification:function(t){var e=t.title,n=t.description,r=void 0===n?"":n;t.placement,t.duration,t.onClose,nl(Gc(e,r))}};function Fd(t){Pd.showOpenNotification=t}function Td(t){Pd.showLoadingNotification=t}function Rd(t){Pd.showInfoNotification=t}function Bd(t){Pd.showSuccessNotification=t}function Wd(t){Pd.showWarnNotification=t}function zd(t){Pd.showWarningNotification=t}function Hd(t){Pd.showErrorNotification=t}function qd(t){Gd({description:t})}function Gd(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;Wi(Pd.showOpenNotification)&&Pd.showOpenNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Yd(t){Ud({description:t})}function Ud(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;Wi(Pd.showLoadingNotification)&&Pd.showLoadingNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Vd(t){$d({description:t})}function $d(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;Wi(Pd.showInfoNotification)&&Pd.showInfoNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Jd(t){Kd({description:t})}function Kd(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;Wi(Pd.showWarnNotification)&&Pd.showWarnNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Qd(t){Zd({description:t})}function Zd(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;Wi(Pd.showWarningNotification)&&Pd.showWarningNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function Xd(t){tp({description:t})}function tp(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;Wi(Pd.showSuccessNotification)&&Pd.showSuccessNotification({title:e,description:r,placement:a,duration:u,onClose:l})}function ep(t){np({description:t})}function np(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;Wi(Pd.showErrorNotification)&&Pd.showErrorNotification({title:e,description:r,placement:a,duration:u,onClose:l})}var rp="nearestLocalhostNotify";function op(){var t=Fl(rp);return null==(t||null)||null==(t.nearestTime||null)?null:t||null}function ap(){return Rl(rp,{nearestTime:Number.parseInt(Date.now()/1e3,10)})}function ip(){Bl(rp)}function up(t){var e=t.text,n=!1,r=0,o=op()||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,". ");$d({text:i}),ol({message:i}),ap()}}catch(t){Vc(t)}}function cp(t){Bl(t)}function lp(t){var e=Fl(t);if(null==(e||null))return cp(t),null;if(""===(e.dataVersion||""))return cp(t),null;var n=Number.parseInt(Date.now()/1e3/60/30,10);return e.dataVersion<n?(cp(t),null):e.useParamsData||null}function sp(t,e){return Rl(t,{useParamsData:e||null,dataVersion:Number.parseInt(Date.now()/1e3/60/30,10)})}function fp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=z(t);if(Zi(e))return n;if(Zi(n))return e;var r=e.lastIndexOf("?")>=0?"&":"?";return"".concat(e).concat(r).concat(n)}function dp(t){return H(t)}function pp(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
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
+ pp=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 j(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 v(){}var h={};c(h,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(D([])));g&&g!==e&&n.call(g,a)&&(h=g);var y=v.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"==q(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 _()}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 j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function D(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:_}}function _(){return{value:void 0,done:!0}}return p.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,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,v):(t.__proto__=v,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=D,j.prototype={constructor:j,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:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function vp(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 hp(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){vp(a,r,o,i,u,"next",t)}function u(t){vp(a,r,o,i,u,"throw",t)}i(void 0)}))}}var mp={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 gp(t){Nc()&&!Zi(t)&&Yc({text:t,color:qc.execute,dataDescription:"execute",ancillaryInformation:""})}function yp(t){return Wc(bc,t,"requestAssist")}function bp(t){mp.successCodeSetComplete?$c(yp("setSuccessCode -> reset is not allowed, it can be set only once")):(gp("setSuccessCode"),Fi(t)||$c(yp("setSuccessCode -> code must be number")),mp.successCode=oc(t),mp.successCodeSetComplete=!0)}function wp(t){mp.authenticationFailCodeSetComplete?$c(yp("setAuthenticationFailCode -> reset is not allowed, it can be set only once")):(gp("setAuthenticationFailCode"),Fi(t)||$c(yp("setAuthenticationFailCode -> code must be number")),mp.authenticationFailCode=oc(t),mp.authenticationFailCodeSetComplete=!0)}function xp(t){mp.promptSimulationSetComplete?$c(yp("setPromptSimulation -> reset is not allowed, it can be set only once")):(gp("setPromptSimulation"),zi(t)||$c(yp("setPromptSimulation -> code must be bool")),mp.promptSimulation=lc(t),mp.promptSimulationSetComplete=!0)}function Sp(t){if(!Yi(t))throw new Error(yp("setUrlGlobalPrefix param globalPrefix need string, current is ".concat(q(t))));mp.urlGlobalPrefix=t}function Cp(t){mp.handleRequestSetComplete?$c(yp("setRequestHandler -> reset is not allowed, it can be set only once")):(gp("setRequestHandler"),mp.handleRequest=t,mp.handleRequestSetComplete=!0)}function Ap(t){mp.handleAuthenticationFailSetComplete?$c(yp("setAuthenticationFailHandler -> reset is not allowed, it can be set only once")):(gp("setAuthenticationFailHandler"),mp.handleAuthenticationFail=t,mp.handleAuthenticationFailSetComplete=!0)}function jp(t){mp.handleSupplementGlobalHeaderSetComplete?$c(yp("setGlobalHeaderSupplementHandler -> reset is not allowed, it can be set only once")):(gp("setGlobalHeaderSupplementHandler"),mp.handleSupplementGlobalHeader=t,mp.handleSupplementGlobalHeaderSetComplete=!0)}function Dp(t){mp.displayRequestInfoSetComplete?$c(yp("setRequestInfoDisplaySwitch -> reset is not allowed, it can be set only once")):(gp("setRequestInfoDisplaySwitch"),mp.displayRequestInfo=lc(t),mp.displayRequestInfoSetComplete=!0)}function _p(t){var e=t.code,n=t.message,r={code:-1,message:"",data:null,list:[],extra:null},o=dl(),a=oc(e);if(a!==r.code){var i=Date.now();a===mp.authenticationFailCode?tl("api call failed, authentication fail"):($c("api call failed, code: ".concat(a,", message: ").concat(n)),a===oc(o.code)?i-o.time>800&&(fs(n),pl({code:a,message:n,time:i})):(fs(n),pl({code:a,message:n,time:i}))),a===mp.authenticationFailCode&&Pp()}}function Ep(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=oc(l);if(d===oc(mp.successCode)){var p=e.data,v=e.extra;Wi(r)&&(f=r(e)),f={code:d,message:s,data:p||{},extra:v||{},dataSuccess:!0},Wi(a)&&a(f)}else f={code:d,message:s||"网络异常",data:null,extra:null,dataSuccess:!1},Wi(u)&&u(f),_p(f);return f}function Op(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={},v=oc(f);if(v===oc(mp.successCode)){var h=e;Wi(r)&&(h=r(e));var m=h,g=m.list,y=m.extra,b=(g||[]).map((function(t,e){var n=t;return null==(n.key||null)&&(n.key="list-".concat(e)),Wi(a)&&(n=a(n)),n}));p={code:v,message:d,count:(b||[]).length,list:b,extra:y,dataSuccess:!0},Wi(u)&&u(p)}else p={code:v,message:d||"网络异常",count:0,list:[],extra:null,dataSuccess:!1},Wi(l)&&l(p),_p(p);return p}function Mp(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={},v=oc(f);if(v===oc(mp.successCode)){var h=e;Wi(r)&&(h=r(e));var m=h,g=m.list,y=m.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)),Wi(a)&&(n=a(n)),n}));p={code:v,message:d,count:(S||[]).length,list:S,pagination:{total:w,pageSize:x,current:Number.parseInt(b||1,10)||1},extra:y,dataSuccess:!0},Wi(u)&&u(p)}else p={code:v,message:d||"网络异常",count:0,list:[],extra:null,pagination:{total:0,pageSize:10,current:1},dataSuccess:!1},Wi(l)&&l(p),_p(p);return p}function kp(t,e){var n=t||{};return"function"==typeof e&&(n=e(n)),n}function Ip(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=Op(r);Wi(o)&&(u=o(u));var c=null;if(Hi(a)||!Yi(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=gl({key:"".concat(n,"_").concat(a||"data"),value:u});tl("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function Np(t,e,n){var r=e.payload,o=e.callback;e.pretreatment;var a=e.alias,i=e.cacheData,u=Mp(r);Wi(o)&&(u=o(u));var c=null;if(Hi(a)||!Yi(a))return V(V({},t),{},{data:u,fromRemote:!0});if((c=V(V({},t),{},{fromRemote:!0}))[a]=u,i){var l=gl({key:"".concat(n,"_").concat(a||"data"),value:u});tl("modal ".concat(n," cache data, key is ").concat(n,"_").concat(a||"data",", ").concat(l?"cache success":"cache fail","."))}return c}function Lp(t){var e=t.url,n=t.method,r=void 0===n?fu.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(mp.handleSupplementGlobalHeaderSetComplete&&Wi(mp.handleSupplementGlobalHeader)){var f=mp.handleSupplementGlobalHeader();Vi(f)&&(s=V(V({},u),f))}if(!mp.handleRequestSetComplete)throw new Error(yp("realRequest -> handleRequest has not set, please use setRequestHandler to set it"));mp.handleRequest({url:e,method:r,data:a,header:s,option:l})}function Pp(){if(!mp.handleAuthenticationFailSetComplete)throw new Error(Wc("doWhenAuthenticationFail -> handleAuthenticationFail has not set, please use setAuthenticationFailHandler to set it"));mp.handleAuthenticationFail()}function Fp(t){return Tp.apply(this,arguments)}function Tp(){return(Tp=hp(pp().mark((function t(e){var n,r,o,a,i,u,c,l,s,f,d,p,v,h,m,g,y,b,w,x,S,C,A,j,D,_,E,O,M,k,I;return pp().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?fu.post:l,f=e.mode,d=void 0===f?su.real:f,p=e.promptSimulation,v=void 0===p?mp.promptSimulation:p,h=e.promptSimulationDelay,m=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,j=e.simulativeAuthorize,D=void 0!==j&&j,Yi(_=mp.urlGlobalPrefix)){t.next=5;break}throw $c(_,"error globalPrefix"),new Error("url global prefix is not string");case 5:if(Yi(n)){t.next=8;break}throw $c(n,"error api"),new Error("api is not string");case 8:if(dc(E=n).startsWith("http://")||dc(E).startsWith("https://")?E=n:(Zi(_)||(_="/".concat(_,"/")),E="".concat(_).concat(n).replace("//","/")),null!=(o||null)&&(Yi(o)&&(E="".concat(E,"?").concat(o)),Vi(o)&&(E="".concat(E,"?").concat(fp(o)))),O=mp.displayRequestInfo,d!==su.simulation){t.next=27;break}if(Xc("api request is simulation mode, simulate start,".concat(y>0?" delay ".concat(y,"ms,"):""," api is ").concat(n,".")),v&&setTimeout((function(){rs("由虚拟访问返回")}),m>0?m:0),M={},k=!1,D&&(Zi(Jf())||(k=!0)),!D||k){t.next=22;break}Pp(),t.next=25;break;case 22:return t.next=24,Yp({simulateRequestDelay:y,dataBuild:function(t){t(A?Wp({response:w,needAuthorize:D}):Bp({response:S,needAuthorize:D}))}});case 24:M=t.sent;case 25:return O&&al({url:E,mode:d,response:M,params:i}),t.abrupt("return",M);case 27:if(O&&al({api:n,apiVersion:_,apiChange:E,params:i}),I=xi(sc(s)),!Xi([fu.get,fu.post],I)){t.next=31;break}return t.abrupt("return",Lp({url:E,data:i,header:V({},c),option:{},method:fu.post}));case 31:throw new Error("unsupported method:".concat(s));case 32:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Rp(){return Zi(Jf())}function Bp(t){var e=t.response,n=t.code,r=t.message,o=t.needAuthorize;return void 0===o||o?Rp()?(ps(r),V({code:n,message:r,success:!1},e)):{code:mp.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:(ps(r),V({code:n,message:r,success:!1},e))}function Wp(t){var e=t.response,n=t.needAuthorize;return void 0===n||n?Rp()?V({code:mp.successCode,message:"success",success:!0},e):{code:mp.authenticationFailCode,message:"登录失效, 请重新登录",success:!1}:V({code:mp.successCode,message:"success",success:!0},e)}function zp(t){return Hp.apply(this,arguments)}function Hp(){return(Hp=hp(pp().mark((function t(e){var n,r,o,a;return pp().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(Wp({remoteResponse:n,needAuthorize:o}))}),300)})).then((function(t){return a=t,t})).catch((function(t){nl(t)}));case 4:return a.code===mp.authenticationFailCode&&Pp(),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function qp(t){return Gp.apply(this,arguments)}function Gp(){return(Gp=hp(pp().mark((function t(e){var n,r,o,a,i;return pp().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(Bp(n))}),300)})).then((function(t){return r=t,t})).catch((function(t){nl(t)}));case 4:return a=(o=r).code,i=o.message,a===mp.authenticationFailCode?Pp():a!==mp.successCode&&us(i),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Yp(t){return Up.apply(this,arguments)}function Up(){return(Up=hp(pp().mark((function t(e){var n,r,o,a,i,u,c;return pp().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){Wi(o)&&setTimeout((function(){o(t)}),r>0?r:0)})).then((function(t){return Xc("api request is simulation mode, simulate completed."),a=t,t})).catch((function(t){nl(t)}));case 4:return u=(i=a).code,c=i.message,u!==mp.successCode&&ls(c),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Vp="sessionStorageAssist",$p={getStorage:function(t){rl(Wc(bc,"sessionStorageGetter need config, use setSessionStorageGetter to set it",Vp))},setStorage:function(t,e){rl(Wc(bc,"sessionStorageSetter need config, use setSessionStorageSetter to set it",Vp))},removeStorage:function(t){rl(Wc(bc,"sessionStorageRemover need config, use setSessionStorageRemover to set it",Vp))},flushStorage:function(){rl(Wc(bc,"sessionStorageFlusher need config, use setSessionStorageFlusher to set it",Vp))}};function Jp(t){$p.getStorage=t}function Kp(t){$p.setStorage=t}function Qp(t){$p.removeStorage=t}function Zp(t){$p.flushStorage=t}function Xp(t){try{return $p.getStorage(t)}catch(e){throw rl({key:t,e:e}),e}}function tv(t){var e=Xp(t);return Zi(e)?null:JSON.parse(e||"{}")}function ev(t,e){$p.setStorage(t,e)}function nv(t,e){$p.setStorage(t,JSON.stringify(e||{}))}function rv(t){$p.removeStorage(t)}function ov(){$p.flushStorage()}function av(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"请".concat(e||"输入").concat(t).concat(Zi(n)?"":",".concat(n))}function iv(t){var e=t.label,n=t.name,r=t.helper,o="",a="",i="";if(Yi(e))o=e;else{Qc({label:e,name:n,helper:r}),vs({message:"label必须为文本"})}if(Yi(n))a=n;else{Qc({label:e,name:n,helper:r}),vs({message:"name必须为文本"})}if(Yi(r))i=r;else{Qc({label:e,name:n,helper:r}),vs({message:"helper必须为文本"})}return{label:o,name:a,helper:i}}function uv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"注: ";return"".concat(e).concat(t,". ")}export{iu as accessWaySpecialCollection,js as addHour,Ds as addMinute,_s as addSecond,Sd as appendEmbedBuilder,Cd as appendExtraBuilder,ms as applicationConfiguration,si as assign,fi as assignWith,Uf as attachPropertiesToComponent,av as buildFieldDescription,uv as buildFieldHelper,Wf as buildHexColor,zf as buildLinearGradient,Ad as buildModelCollection,Wc as buildPromptModuleInfo,fp as buildQueryStringify,Bf as buildRGBColorFromHexColor,Rf as buildRandomHexColor,Bp as buildSimulateRequestFailResponse,Wp as buildSimulateRequestSuccessResponse,Gf as buildStringStyle,Zf as buildTokenData,Ms as calculateDateInterval,ks as calculateMonthInterval,Os as calculateTimeInterval,Sc as checkDarkMode,tf as checkExist,iv as checkFromConfig,sf as checkHasAuthority,Ic as checkHasMore,Xi as checkInCollection,cf as checkIsSuper,Gl as checkMessagePromptData,Zi as checkStringIsNullOrWhiteSpace,Nc as checkWhetherDevelopmentEnvironment,Dc as cloneWithoutMethod,hu as convertCollection,pd as convertPixelToRem,As as createDayJsDatetime,gu as datetimeFormat,Ii as debounce,Pf as decodeBase64,jl as deleteCache,Dl as deleteMultiCache,_i as difference,Uc as displayObjectMessage,Yc as displayTextMessage,bi as dropRight,Gs as ellipsis,vu as emptyDatetime,Ff as encodeBase64,ui as endsWith,uu as environmentCollection,Du as errorImage,wc as evil,Ei as filter,ki as find,Mi as findIndex,gi as first,Tf as fixedZero,mi as floor,_l as flushAllCache,Wl as flushLocalStorage,ov as flushSessionStorage,pi as forEach,mu as formatCollection,Ws as formatDateInterval,zs as formatDateIntervalWithNow,Ts as formatDatetime,Ls as formatDecimal,Ps as formatMoney,Fs as formatMoneyToChinese,Rs as formatTarget,oi as get,Hl as getAccessWayCollectionCache,xs as getApplicationExternalConfigList,ws as getApplicationInitialConfig,Ss as getApplicationMergeConfig,af as getAuthority,Ac as getBrowserInfo,Cc as getBrowserVersion,xd as getBuilderCount,xl as getCache,hl as getCachePool,td as getCurrentOperatorCache,Is as getDayOfWeek,bl as getExpiration,kc as getGuid,Fl as getJsonFromLocalStorage,tv as getJsonFromSessionStorage,dl as getLastRequestExceptionMessage,hd as getLocalMetaData,il as getLoggerDisplaySwitch,jd as getModelCollection,Dd as getModelNameList,Cl as getMultiCache,op as getNearestLocalhostNotifyCache,Es as getNow,lp as getParametersDataCache,Vs as getPathValue,fl as getRuntimeDataStorage,Pl as getStringFromLocalStorage,Xp as getStringFromSessionStorage,ld as getTacitlyState,Ns as getTodayOfWeek,Jf as getToken,$f as getTokenKeyName,Lc as getValue,Ks as getValueByKey,ai as groupBy,vi as gte,fd as handleDefaultParameters,ef as handleItem,Ip as handleListDataAssist,Np as handlePageListDataAssist,ml as hasCache,ru as inYear,Ui as isArray,ou as isAsyncFunction,eu as isBetweenDatetime,zi as isBoolean,xc as isBrowser,Gi as isDate,Pi as isDatetime,Ri as isEqual,Bi as isEqualBySerialize,Wi as isFunction,Qi as isImageBase4,Li as isInvalid,Ti as isMoney,qi as isNull,Fi as isNumber,Vi as isObject,$i as isPlainObject,Ji as isPromise,Yi as isString,tu as isToday,Hi as isUndefined,Ki as isUrl,nu as isWeekend,Sl as keys,Ml as localStorageAssist,qc as logColorCollection,Kc as logConfig,Vc as logData,tl as logDebug,Qc as logDevelopment,Su as logDisplay,nl as logError,rl as logException,el as logExecute,Jc as logInfo,xu as logLevel,al as logObject,Zc as logStack,ol as logText,Xc as logTrace,$c as logWarn,Hc as loggerSwitch,Ai as map,hi as memoize,qf as mergeProperties,Yf as mergeStyle,Gc as mergeTextMessage,Yl as messagePromptAssist,Au as messageTypeCollection,wd as modelContainer,au as modelGlobalCollection,Ld as navigateTo,Md as navigationAssist,Pd as notificationPromptAssist,Cu as notificationTypeCollection,dp as parseQueryString,rd as preparationWork,Op as pretreatmentRemoteListData,Mp as pretreatmentRemotePageListData,Ep as pretreatmentRemoteSingleData,kp as pretreatmentRequestParameters,Bc as promptTextBuilder,Nd as redirectTo,cd as reducerCollection,ud as reducerDataAssist,sd as reducerDefaultParameters,id as reducerNameCollection,_c as refitCommonData,Ec as refitFieldDecoratorOption,nd as removeCurrentOperatorCache,$s as removeEndMatch,Ci as removeFromArray,Js as removeLastMatch,gd as removeLocalMetaData,Bl as removeLocalStorage,Ed as removeModelNameList,ip as removeNearestLocalhostNotifyCache,cp as removeParametersDataCache,rv as removeSessionStorage,Qf as removeToken,Si as replace,Ys as replaceWithKeep,Fp as request,mp as requestConfiguration,fu as requestMethod,su as requestMode,di as reverse,ii as round,ll as runtimeConfiguration,Rl as saveJsonToLocalStorage,nv as saveJsonToSessionStorage,Tl as saveStringToLocalStorage,ev as saveStringToSessionStorage,Oc as searchFromList,jc as seededRandom,$p as sessionStorageAssist,ji as set,ql as setAccessWayCollectionCache,bs as setApplicationExternalConfigList,ys as setApplicationInitialConfig,wp as setAuthenticationFailCode,Ap as setAuthenticationFailHandler,of as setAuthority,gl as setCache,ed as setCurrentOperatorCache,Zl as setErrorMessageDisplayMonitor,Hd as setErrorNotificationDisplayMonitor,wl as setExpiration,jp as setGlobalHeaderSupplementHandler,$l as setInfoMessageDisplayMonitor,Rd as setInfoNotificationDisplayMonitor,pl as setLastRequestExceptionMessage,Vl as setLoadingMessageDisplayMonitor,Td as setLoadingNotificationDisplayMonitor,md as setLocalMetaData,Ll as setLocalStorageFlusher,kl as setLocalStorageGetter,Nl as setLocalStorageRemover,Il as setLocalStorageSetter,ul as setLoggerDisplaySwitch,_d as setModelNameList,yl as setMultiCache,kd as setNavigator,ap as setNearestLocalhostNotifyCache,Ul as setOpenMessageDisplayMonitor,Fd as setOpenNotificationDisplayMonitor,sp as setParametersDataCache,ad as setPrepareCallback,xp as setPromptSimulation,Id as setRedirector,Cp as setRequestHandler,Dp as setRequestInfoDisplaySwitch,sl as setRuntimeDataStorage,Zp as setSessionStorageFlusher,Jp as setSessionStorageGetter,Qp as setSessionStorageRemover,Kp as setSessionStorageSetter,bp as setSuccessCode,Jl as setSuccessMessageDisplayMonitor,Bd as setSuccessNotificationDisplayMonitor,Kf as setToken,Sp as setUrlGlobalPrefix,Kl as setWarnMessageDisplayMonitor,Wd as setWarnNotificationDisplayMonitor,Ql as setWarningMessageDisplayMonitor,zd as setWarningNotificationDisplayMonitor,ds as showErrorMessage,np as showErrorNotification,os as showInfoMessage,$d as showInfoNotification,ns as showLoadingMessage,Ud as showLoadingNotification,ts as showOpenMessage,Gd as showOpenNotification,vs as showRuntimeError,fs as showSimpleErrorMessage,ep as showSimpleErrorNotification,rs as showSimpleInfoMessage,Vd as showSimpleInfoNotification,es as showSimpleLoadingMessage,Yd as showSimpleLoadingNotification,Xl as showSimpleOpenMessage,qd as showSimpleOpenNotification,ps as showSimpleRuntimeError,as as showSimpleSuccessMessage,Xd as showSimpleSuccessNotification,us as showSimpleWarnMessage,Jd as showSimpleWarnNotification,ls as showSimpleWarningMessage,Qd as showSimpleWarningNotification,is as showSuccessMessage,tp as showSuccessNotification,cs as showWarnMessage,Kd as showWarnNotification,ss as showWarningMessage,Zd as showWarningNotification,qp as simulateFailRequest,Yp as simulateRequest,zp as simulateSuccessRequest,Di as size,Us as sleep,Oi as sortBy,Qs as sortCollectionByKey,yu as sortOperate,ci as sortedUnique,li as split,yi as startsWith,El as statisticsCache,zl as storageKeyCollection,Al as takeCache,Ni as throttle,gc as to,lc as toBoolean,ac as toBoundary,vc as toDatetime,dc as toLower,pc as toLowerFirst,nc as toMd5,ic as toMoney,oc as toNumber,uc as toPercentage,hc as toPromise,mc as toRound,ec as toSha1,cc as toString,yc as toUniqueArray,sc as toUpper,fc as toUpperFirst,Xs as transformData,Zs as transformListData,ju as transparentImage,xi as trim,od as tryDoDvaPrepareWork,up as trySendNearestLocalhostNotify,lu as underlyingExtensionState,cu as underlyingState,wi as uniqBy,wu as whetherNumber,bu as whetherString,pu as zeroInt,du as zeroString};
@@ -132,6 +132,7 @@ export namespace logLevel {
132
132
  export const config: string;
133
133
  export const execute: string;
134
134
  export const stack: string;
135
+ export const development: string;
135
136
  }
136
137
  export namespace logDisplay {
137
138
  const auto: string;
@@ -1,4 +1,5 @@
1
1
  export function get(target: any, path: any, defaultValue?: null): any;
2
+ export function groupBy(collection: any, iteratee?: null): import("lodash").Dictionary<any[]>;
2
3
  export function round(target: any, decimalPlace: any): number;
3
4
  /**
4
5
  * 检查字符串string是否以给定的target字符串结尾
@@ -58,6 +58,12 @@ export function logInfo(data: string | Object, ancillaryInformation?: string): v
58
58
  * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
59
59
  */
60
60
  export function logConfig(data: string | Object, ancillaryInformation?: string): void;
61
+ /**
62
+ * Log development environment message, default ancillaryInformation is empty string
63
+ * @param {String|Object} data the data will be display
64
+ * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
65
+ */
66
+ export function logDevelopment(data: string | Object, ancillaryInformation?: string): void;
61
67
  /**
62
68
  * Log stack message, default ancillaryInformation is empty string
63
69
  * @param {String|Object} data the data will be display
@@ -103,11 +109,11 @@ export function logException(data: string | Object, ancillaryInformation?: strin
103
109
  export function logText(text: string, level?: string, ancillaryInformation?: string): void;
104
110
  /**
105
111
  * Log object message, default level is logLevel.trace, default ancillaryInformation is empty string
106
- * @param {String} data the data will be display
112
+ * @param {Object} data the data will be display
107
113
  * @param {String} level log level, use logLevel enum
108
114
  * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
109
115
  */
110
- export function logObject(data: string, level?: string, ancillaryInformation?: string): void;
116
+ export function logObject(data: Object, level?: string, ancillaryInformation?: string): void;
111
117
  /**
112
118
  * Get logger display switch
113
119
  */
@@ -132,4 +138,5 @@ export namespace logColorCollection {
132
138
  const error: string;
133
139
  const exception: string;
134
140
  const stack: string;
141
+ const development: string;
135
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-utility",
3
- "version": "2.4.54",
3
+ "version": "2.4.56",
4
4
  "private": false,
5
5
  "description": "easy-soft-utility",
6
6
  "keywords": [
@@ -112,7 +112,7 @@
112
112
  "cross-env": "^7.0.3",
113
113
  "cssnano": "^5.1.15",
114
114
  "documentation": "^14.0.1",
115
- "easy-soft-develop": "^2.0.145",
115
+ "easy-soft-develop": "^2.0.147",
116
116
  "eslint": "^8.34.0",
117
117
  "eslint-config-airbnb": "^19.0.4",
118
118
  "eslint-config-airbnb-typescript": "^17.0.0",