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