@gsc-basic/utils 1.1.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var lr=Object.create;var Y=Object.defineProperty,pr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,vr=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,mr=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var Me=(e,t,r)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))Ee.call(t,r)&&Me(e,r,t[r]);if(ee)for(var r of ee(t))je.call(t,r)&&Me(e,r,t[r]);return e},J=(e,t)=>pr(e,vr(t));var qe=(e,t)=>{var r={};for(var n in e)Ee.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&je.call(e,n)&&(r[n]=e[n]);return r};var xr=(e,t)=>()=>(e&&(t=e(e=0)),t);var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Ke=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of yr(t))!Ee.call(e,s)&&s!==r&&Y(e,s,{get:()=>t[s],enumerable:!(n=hr(t,s))||n.enumerable});return e};var q=(e,t,r)=>(r=e!=null?lr(mr(e)):{},Ke(t||!e||!e.__esModule?Y(r,"default",{value:e,enumerable:!0}):r,e)),gr=e=>Ke(Y({},"__esModule",{value:!0}),e);var k=xr(()=>{});var M=I((ce,ct)=>{k();(function(e,t){typeof ce=="object"?ct.exports=ce=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(ce,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch(i){}var s=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(o){var y;return i.prototype=o,y=new i,i.prototype=null,y}}(),d={},a=d.lib={},S=a.Base=function(){return{extend:function(i){var o=c(this);return i&&o.mixIn(i),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments)}),o.init.prototype=o,o.$super=this,o},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=a.WordArray=S.extend({init:function(i,o){i=this.words=i||[],o!=r?this.sigBytes=o:this.sigBytes=i.length*4},toString:function(i){return(i||b).stringify(this)},concat:function(i){var o=this.words,y=i.words,x=this.sigBytes,D=i.sigBytes;if(this.clamp(),x%4)for(var L=0;L<D;L++){var P=y[L>>>2]>>>24-L%4*8&255;o[x+L>>>2]|=P<<24-(x+L)%4*8}else for(var A=0;A<D;A+=4)o[x+A>>>2]=y[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,o=this.sigBytes;i[o>>>2]&=4294967295<<32-o%4*8,i.length=t.ceil(o/4)},clone:function(){var i=S.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var o=[],y=0;y<i;y+=4)o.push(s());return new g.init(o,i)}}),m=d.enc={},b=m.Hex={stringify:function(i){for(var o=i.words,y=i.sigBytes,x=[],D=0;D<y;D++){var L=o[D>>>2]>>>24-D%4*8&255;x.push((L>>>4).toString(16)),x.push((L&15).toString(16))}return x.join("")},parse:function(i){for(var o=i.length,y=[],x=0;x<o;x+=2)y[x>>>3]|=parseInt(i.substr(x,2),16)<<24-x%8*4;return new g.init(y,o/2)}},w=m.Latin1={stringify:function(i){for(var o=i.words,y=i.sigBytes,x=[],D=0;D<y;D++){var L=o[D>>>2]>>>24-D%4*8&255;x.push(String.fromCharCode(L))}return x.join("")},parse:function(i){for(var o=i.length,y=[],x=0;x<o;x++)y[x>>>2]|=(i.charCodeAt(x)&255)<<24-x%4*8;return new g.init(y,o)}},C=m.Utf8={stringify:function(i){try{return decodeURIComponent(escape(w.stringify(i)))}catch(o){throw new Error("Malformed UTF-8 data")}},parse:function(i){return w.parse(unescape(encodeURIComponent(i)))}},B=a.BufferedBlockAlgorithm=S.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var o,y=this._data,x=y.words,D=y.sigBytes,L=this.blockSize,P=L*4,A=D/P;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var O=A*L,U=t.min(O*4,D);if(O){for(var f=0;f<O;f+=L)this._doProcessBlock(x,f);o=x.splice(0,O),y.sigBytes-=U}return new g.init(o,U)},clone:function(){var i=S.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),F=a.Hasher=B.extend({cfg:S.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){B.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(i){return function(o,y){return new i.init(y).finalize(o)}},_createHmacHelper:function(i){return function(o,y){return new z.HMAC.init(i,y).finalize(o)}}}),z=d.algo={};return d}(Math);return e})});var De=I((fe,ft)=>{k();(function(e,t){typeof fe=="object"?ft.exports=fe=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(fe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,c=s.Base64={stringify:function(a){var S=a.words,g=a.sigBytes,m=this._map;a.clamp();for(var b=[],w=0;w<g;w+=3)for(var C=S[w>>>2]>>>24-w%4*8&255,B=S[w+1>>>2]>>>24-(w+1)%4*8&255,F=S[w+2>>>2]>>>24-(w+2)%4*8&255,z=C<<16|B<<8|F,i=0;i<4&&w+i*.75<g;i++)b.push(m.charAt(z>>>6*(3-i)&63));var o=m.charAt(64);if(o)for(;b.length%4;)b.push(o);return b.join("")},parse:function(a){var S=a.length,g=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var b=0;b<g.length;b++)m[g.charCodeAt(b)]=b}var w=g.charAt(64);if(w){var C=a.indexOf(w);C!==-1&&(S=C)}return d(a,S,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(a,S,g){for(var m=[],b=0,w=0;w<S;w++)if(w%4){var C=g[a.charCodeAt(w-1)]<<w%4*2,B=g[a.charCodeAt(w)]>>>6-w%4*2,F=C|B;m[b>>>2]|=F<<24-b%4*8,b++}return n.create(m,b)}}(),e.enc.Base64})});var Le=I((ue,ut)=>{k();(function(e,t){typeof ue=="object"?ut.exports=ue=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ue,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,c=n.Hasher,d=r.algo,a=[];(function(){for(var C=0;C<64;C++)a[C]=t.abs(t.sin(C+1))*4294967296|0})();var S=d.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,B){for(var F=0;F<16;F++){var z=B+F,i=C[z];C[z]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,y=C[B+0],x=C[B+1],D=C[B+2],L=C[B+3],P=C[B+4],A=C[B+5],O=C[B+6],U=C[B+7],f=C[B+8],_=C[B+9],E=C[B+10],l=C[B+11],$=C[B+12],R=C[B+13],W=C[B+14],T=C[B+15],u=o[0],p=o[1],h=o[2],v=o[3];u=g(u,p,h,v,y,7,a[0]),v=g(v,u,p,h,x,12,a[1]),h=g(h,v,u,p,D,17,a[2]),p=g(p,h,v,u,L,22,a[3]),u=g(u,p,h,v,P,7,a[4]),v=g(v,u,p,h,A,12,a[5]),h=g(h,v,u,p,O,17,a[6]),p=g(p,h,v,u,U,22,a[7]),u=g(u,p,h,v,f,7,a[8]),v=g(v,u,p,h,_,12,a[9]),h=g(h,v,u,p,E,17,a[10]),p=g(p,h,v,u,l,22,a[11]),u=g(u,p,h,v,$,7,a[12]),v=g(v,u,p,h,R,12,a[13]),h=g(h,v,u,p,W,17,a[14]),p=g(p,h,v,u,T,22,a[15]),u=m(u,p,h,v,x,5,a[16]),v=m(v,u,p,h,O,9,a[17]),h=m(h,v,u,p,l,14,a[18]),p=m(p,h,v,u,y,20,a[19]),u=m(u,p,h,v,A,5,a[20]),v=m(v,u,p,h,E,9,a[21]),h=m(h,v,u,p,T,14,a[22]),p=m(p,h,v,u,P,20,a[23]),u=m(u,p,h,v,_,5,a[24]),v=m(v,u,p,h,W,9,a[25]),h=m(h,v,u,p,L,14,a[26]),p=m(p,h,v,u,f,20,a[27]),u=m(u,p,h,v,R,5,a[28]),v=m(v,u,p,h,D,9,a[29]),h=m(h,v,u,p,U,14,a[30]),p=m(p,h,v,u,$,20,a[31]),u=b(u,p,h,v,A,4,a[32]),v=b(v,u,p,h,f,11,a[33]),h=b(h,v,u,p,l,16,a[34]),p=b(p,h,v,u,W,23,a[35]),u=b(u,p,h,v,x,4,a[36]),v=b(v,u,p,h,P,11,a[37]),h=b(h,v,u,p,U,16,a[38]),p=b(p,h,v,u,E,23,a[39]),u=b(u,p,h,v,R,4,a[40]),v=b(v,u,p,h,y,11,a[41]),h=b(h,v,u,p,L,16,a[42]),p=b(p,h,v,u,O,23,a[43]),u=b(u,p,h,v,_,4,a[44]),v=b(v,u,p,h,$,11,a[45]),h=b(h,v,u,p,T,16,a[46]),p=b(p,h,v,u,D,23,a[47]),u=w(u,p,h,v,y,6,a[48]),v=w(v,u,p,h,U,10,a[49]),h=w(h,v,u,p,W,15,a[50]),p=w(p,h,v,u,A,21,a[51]),u=w(u,p,h,v,$,6,a[52]),v=w(v,u,p,h,L,10,a[53]),h=w(h,v,u,p,E,15,a[54]),p=w(p,h,v,u,x,21,a[55]),u=w(u,p,h,v,f,6,a[56]),v=w(v,u,p,h,T,10,a[57]),h=w(h,v,u,p,O,15,a[58]),p=w(p,h,v,u,R,21,a[59]),u=w(u,p,h,v,P,6,a[60]),v=w(v,u,p,h,l,10,a[61]),h=w(h,v,u,p,D,15,a[62]),p=w(p,h,v,u,_,21,a[63]),o[0]=o[0]+u|0,o[1]=o[1]+p|0,o[2]=o[2]+h|0,o[3]=o[3]+v|0},_doFinalize:function(){var C=this._data,B=C.words,F=this._nDataBytes*8,z=C.sigBytes*8;B[z>>>5]|=128<<24-z%32;var i=t.floor(F/4294967296),o=F;B[(z+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,B[(z+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,C.sigBytes=(B.length+1)*4,this._process();for(var y=this._hash,x=y.words,D=0;D<4;D++){var L=x[D];x[D]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return y},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function g(C,B,F,z,i,o,y){var x=C+(B&F|~B&z)+i+y;return(x<<o|x>>>32-o)+B}function m(C,B,F,z,i,o,y){var x=C+(B&z|F&~z)+i+y;return(x<<o|x>>>32-o)+B}function b(C,B,F,z,i,o,y){var x=C+(B^F^z)+i+y;return(x<<o|x>>>32-o)+B}function w(C,B,F,z,i,o,y){var x=C+(F^(B|~z))+i+y;return(x<<o|x>>>32-o)+B}r.MD5=c._createHelper(S),r.HmacMD5=c._createHmacHelper(S)}(Math),e.MD5})});var lt=I((de,dt)=>{k();(function(e,t){typeof de=="object"?dt.exports=de=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(de,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=r.Hasher,c=t.algo,d=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,g){for(var m=this._hash.words,b=m[0],w=m[1],C=m[2],B=m[3],F=m[4],z=0;z<80;z++){if(z<16)d[z]=S[g+z]|0;else{var i=d[z-3]^d[z-8]^d[z-14]^d[z-16];d[z]=i<<1|i>>>31}var o=(b<<5|b>>>27)+F+d[z];z<20?o+=(w&C|~w&B)+1518500249:z<40?o+=(w^C^B)+1859775393:z<60?o+=(w&C|w&B|C&B)-1894007588:o+=(w^C^B)-899497514,F=B,B=C,C=w<<30|w>>>2,w=b,b=o}m[0]=m[0]+b|0,m[1]=m[1]+w|0,m[2]=m[2]+C|0,m[3]=m[3]+B|0,m[4]=m[4]+F|0},_doFinalize:function(){var S=this._data,g=S.words,m=this._nDataBytes*8,b=S.sigBytes*8;return g[b>>>5]|=128<<24-b%32,g[(b+64>>>9<<4)+14]=Math.floor(m/4294967296),g[(b+64>>>9<<4)+15]=m,S.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});t.SHA1=s._createHelper(a),t.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})});var ht=I((le,pt)=>{k();(function(e,t){typeof le=="object"?pt.exports=le=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(le,function(e){(function(){var t=e,r=t.lib,n=r.Base,s=t.enc,c=s.Utf8,d=t.algo,a=d.HMAC=n.extend({init:function(S,g){S=this._hasher=new S.init,typeof g=="string"&&(g=c.parse(g));var m=S.blockSize,b=m*4;g.sigBytes>b&&(g=S.finalize(g)),g.clamp();for(var w=this._oKey=g.clone(),C=this._iKey=g.clone(),B=w.words,F=C.words,z=0;z<m;z++)B[z]^=1549556828,F[z]^=909522486;w.sigBytes=C.sigBytes=b,this.reset()},reset:function(){var S=this._hasher;S.reset(),S.update(this._iKey)},update:function(S){return this._hasher.update(S),this},finalize:function(S){var g=this._hasher,m=g.finalize(S);g.reset();var b=g.finalize(this._oKey.clone().concat(m));return b}})})()})});var $e=I((pe,vt)=>{k();(function(e,t,r){typeof pe=="object"?vt.exports=pe=t(M(),lt(),ht()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(pe,function(e){return function(){var t=e,r=t.lib,n=r.Base,s=r.WordArray,c=t.algo,d=c.MD5,a=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:1}),init:function(S){this.cfg=this.cfg.extend(S)},compute:function(S,g){for(var m,b=this.cfg,w=b.hasher.create(),C=s.create(),B=C.words,F=b.keySize,z=b.iterations;B.length<F;){m&&w.update(m),m=w.update(S).finalize(g),w.reset();for(var i=1;i<z;i++)m=w.finalize(m),w.reset();C.concat(m)}return C.sigBytes=F*4,C}});t.EvpKDF=function(S,g,m){return a.create(m).compute(S,g)}}(),e.EvpKDF})});var ve=I((he,yt)=>{k();(function(e,t,r){typeof he=="object"?yt.exports=he=t(M(),$e()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(he,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,s=n.Base,c=n.WordArray,d=n.BufferedBlockAlgorithm,a=r.enc,S=a.Utf8,g=a.Base64,m=r.algo,b=m.EvpKDF,w=n.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(f,_){return this.create(this._ENC_XFORM_MODE,f,_)},createDecryptor:function(f,_){return this.create(this._DEC_XFORM_MODE,f,_)},init:function(f,_,E){this.cfg=this.cfg.extend(E),this._xformMode=f,this._key=_,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(f){return this._append(f),this._process()},finalize:function(f){f&&this._append(f);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function f(_){return typeof _=="string"?U:P}return function(_){return{encrypt:function(E,l,$){return f(l).encrypt(_,E,l,$)},decrypt:function(E,l,$){return f(l).decrypt(_,E,l,$)}}}}()}),C=n.StreamCipher=w.extend({_doFinalize:function(){var f=this._process(!0);return f},blockSize:1}),B=r.mode={},F=n.BlockCipherMode=s.extend({createEncryptor:function(f,_){return this.Encryptor.create(f,_)},createDecryptor:function(f,_){return this.Decryptor.create(f,_)},init:function(f,_){this._cipher=f,this._iv=_}}),z=B.CBC=function(){var f=F.extend();f.Encryptor=f.extend({processBlock:function(E,l){var $=this._cipher,R=$.blockSize;_.call(this,E,l,R),$.encryptBlock(E,l),this._prevBlock=E.slice(l,l+R)}}),f.Decryptor=f.extend({processBlock:function(E,l){var $=this._cipher,R=$.blockSize,W=E.slice(l,l+R);$.decryptBlock(E,l),_.call(this,E,l,R),this._prevBlock=W}});function _(E,l,$){var R,W=this._iv;W?(R=W,this._iv=t):R=this._prevBlock;for(var T=0;T<$;T++)E[l+T]^=R[T]}return f}(),i=r.pad={},o=i.Pkcs7={pad:function(f,_){for(var E=_*4,l=E-f.sigBytes%E,$=l<<24|l<<16|l<<8|l,R=[],W=0;W<l;W+=4)R.push($);var T=c.create(R,l);f.concat(T)},unpad:function(f){var _=f.words[f.sigBytes-1>>>2]&255;f.sigBytes-=_}},y=n.BlockCipher=w.extend({cfg:w.cfg.extend({mode:z,padding:o}),reset:function(){var f;w.reset.call(this);var _=this.cfg,E=_.iv,l=_.mode;this._xformMode==this._ENC_XFORM_MODE?f=l.createEncryptor:(f=l.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==f?this._mode.init(this,E&&E.words):(this._mode=f.call(l,this,E&&E.words),this._mode.__creator=f)},_doProcessBlock:function(f,_){this._mode.processBlock(f,_)},_doFinalize:function(){var f,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),f=this._process(!0)):(f=this._process(!0),_.unpad(f)),f},blockSize:128/32}),x=n.CipherParams=s.extend({init:function(f){this.mixIn(f)},toString:function(f){return(f||this.formatter).stringify(this)}}),D=r.format={},L=D.OpenSSL={stringify:function(f){var _,E=f.ciphertext,l=f.salt;return l?_=c.create([1398893684,1701076831]).concat(l).concat(E):_=E,_.toString(g)},parse:function(f){var _,E=g.parse(f),l=E.words;return l[0]==1398893684&&l[1]==1701076831&&(_=c.create(l.slice(2,4)),l.splice(0,4),E.sigBytes-=16),x.create({ciphertext:E,salt:_})}},P=n.SerializableCipher=s.extend({cfg:s.extend({format:L}),encrypt:function(f,_,E,l){l=this.cfg.extend(l);var $=f.createEncryptor(E,l),R=$.finalize(_),W=$.cfg;return x.create({ciphertext:R,key:E,iv:W.iv,algorithm:f,mode:W.mode,padding:W.padding,blockSize:f.blockSize,formatter:l.format})},decrypt:function(f,_,E,l){l=this.cfg.extend(l),_=this._parse(_,l.format);var $=f.createDecryptor(E,l).finalize(_.ciphertext);return $},_parse:function(f,_){return typeof f=="string"?_.parse(f,this):f}}),A=r.kdf={},O=A.OpenSSL={execute:function(f,_,E,l,$){if(l||(l=c.random(64/8)),$)var R=b.create({keySize:_+E,hasher:$}).compute(f,l);else var R=b.create({keySize:_+E}).compute(f,l);var W=c.create(R.words.slice(_),E*4);return R.sigBytes=_*4,x.create({key:R,iv:W,salt:l})}},U=n.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:O}),encrypt:function(f,_,E,l){l=this.cfg.extend(l);var $=l.kdf.execute(E,f.keySize,f.ivSize,l.salt,l.hasher);l.iv=$.iv;var R=P.encrypt.call(this,f,_,$.key,l);return R.mixIn($),R},decrypt:function(f,_,E,l){l=this.cfg.extend(l),_=this._parse(_,l.format);var $=l.kdf.execute(E,f.keySize,f.ivSize,_.salt,l.hasher);l.iv=$.iv;var R=P.decrypt.call(this,f,_,$.key,l);return R}})}()})});var xt=I((ye,mt)=>{k();(function(e,t,r){typeof ye=="object"?mt.exports=ye=t(M(),De(),Le(),$e(),ve()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(ye,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,s=t.algo,c=[],d=[],a=[],S=[],g=[],m=[],b=[],w=[],C=[],B=[];(function(){for(var i=[],o=0;o<256;o++)o<128?i[o]=o<<1:i[o]=o<<1^283;for(var y=0,x=0,o=0;o<256;o++){var D=x^x<<1^x<<2^x<<3^x<<4;D=D>>>8^D&255^99,c[y]=D,d[D]=y;var L=i[y],P=i[L],A=i[P],O=i[D]*257^D*16843008;a[y]=O<<24|O>>>8,S[y]=O<<16|O>>>16,g[y]=O<<8|O>>>24,m[y]=O;var O=A*16843009^P*65537^L*257^y*16843008;b[D]=O<<24|O>>>8,w[D]=O<<16|O>>>16,C[D]=O<<8|O>>>24,B[D]=O,y?(y=L^i[i[i[A^L]]],x^=i[i[x]]):y=x=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],z=s.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var o=this._keyPriorReset=this._key,y=o.words,x=o.sigBytes/4,D=this._nRounds=x+6,L=(D+1)*4,P=this._keySchedule=[],A=0;A<L;A++)A<x?P[A]=y[A]:(i=P[A-1],A%x?x>6&&A%x==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=F[A/x|0]<<24),P[A]=P[A-x]^i);for(var O=this._invKeySchedule=[],U=0;U<L;U++){var A=L-U;if(U%4)var i=P[A];else var i=P[A-4];U<4||A<=4?O[U]=i:O[U]=b[c[i>>>24]]^w[c[i>>>16&255]]^C[c[i>>>8&255]]^B[c[i&255]]}}},encryptBlock:function(i,o){this._doCryptBlock(i,o,this._keySchedule,a,S,g,m,c)},decryptBlock:function(i,o){var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y,this._doCryptBlock(i,o,this._invKeySchedule,b,w,C,B,d);var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y},_doCryptBlock:function(i,o,y,x,D,L,P,A){for(var O=this._nRounds,U=i[o]^y[0],f=i[o+1]^y[1],_=i[o+2]^y[2],E=i[o+3]^y[3],l=4,$=1;$<O;$++){var R=x[U>>>24]^D[f>>>16&255]^L[_>>>8&255]^P[E&255]^y[l++],W=x[f>>>24]^D[_>>>16&255]^L[E>>>8&255]^P[U&255]^y[l++],T=x[_>>>24]^D[E>>>16&255]^L[U>>>8&255]^P[f&255]^y[l++],u=x[E>>>24]^D[U>>>16&255]^L[f>>>8&255]^P[_&255]^y[l++];U=R,f=W,_=T,E=u}var R=(A[U>>>24]<<24|A[f>>>16&255]<<16|A[_>>>8&255]<<8|A[E&255])^y[l++],W=(A[f>>>24]<<24|A[_>>>16&255]<<16|A[E>>>8&255]<<8|A[U&255])^y[l++],T=(A[_>>>24]<<24|A[E>>>16&255]<<16|A[U>>>8&255]<<8|A[f&255])^y[l++],u=(A[E>>>24]<<24|A[U>>>16&255]<<16|A[f>>>8&255]<<8|A[_&255])^y[l++];i[o]=R,i[o+1]=W,i[o+2]=T,i[o+3]=u},keySize:256/32});t.AES=n._createHelper(z)}(),e.AES})});var gt=I((me,_t)=>{k();(function(e,t){typeof me=="object"?_t.exports=me=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(me,function(e){return e.enc.Utf8})});var Ct=I((xe,wt)=>{k();(function(e,t,r){typeof xe=="object"?wt.exports=xe=t(M(),ve()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(xe,function(e){return e.pad.Pkcs7})});var bt=I((_e,Bt)=>{k();(function(e,t,r){typeof _e=="object"?Bt.exports=_e=t(M(),ve()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(_e,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});var kr={};_r(kr,{AesEncryption:()=>ge,ResizeObserver:()=>Be.default,addClass:()=>Ft,addLocationListener:()=>Mt,addResizeListener:()=>Tt,buildBEM:()=>se,buildShortUUID:()=>ur,buildUUID:()=>fr,createBEM:()=>at,createNamespace:()=>st,createSearchReg:()=>it,dataURLtoBlob:()=>Oe,decodeByBase64:()=>zt,deepMerge:()=>ke,domOffEvent:()=>Ht,domOnEvent:()=>Ut,downloadByBase64:()=>Ue,downloadByData:()=>He,downloadByOnlineUrl:()=>qt,downloadByUrl:()=>Kt,downloadPercent:()=>jt,enableTransitions:()=>Xe,encryptByBase64:()=>kt,encryptByMd5:()=>Dt,escapeStringRegexp:()=>Ne,extendSlots:()=>Zt,filterTree:()=>or,findNode:()=>tr,findNodeAll:()=>rr,findPath:()=>nr,findPathAll:()=>ir,forEachTree:()=>ar,getActualWidthOfChars:()=>ot,getBoundingClientRect:()=>Re,getRawRoute:()=>tt,getSlot:()=>We,getViewportOffset:()=>Ot,hackCss:()=>Pt,hasClass:()=>Ce,is:()=>Ae,isBrowser:()=>oe,isChineseText:()=>Qe,isChrome:()=>ne,isClient:()=>re,isIterableArray:()=>te,isMatch:()=>Xt,isNumeric:()=>Ve,isObject:()=>Q,isPositiveInteger:()=>Ze,isSafari:()=>ie,isServer:()=>X,isSupportNativeEllipsis:()=>Ge,isSupportResizeObserver:()=>Ye,isUrl:()=>Je,loadScript:()=>Vt,matcher:()=>Qt,openWindow:()=>ae,pathToRegexp:()=>V.pathToRegexp,regexpMap:()=>Z,regexpToPath:()=>V.compile,removeClass:()=>Rt,removeResizeListener:()=>Nt,setCssVar:()=>$t,setObjToUrlParams:()=>rt,titleCase:()=>dr.titleCase,treeMap:()=>sr,treeMapEach:()=>Se,triggerWindowResize:()=>It,unloadScript:()=>Gt,unsetAllProperty:()=>nt,urlToBase64:()=>Pe,useRafThrottle:()=>Wt,withInstall:()=>et});module.exports=gr(kr);k();var dr=require("title-case");k();var N=require("lodash-es");k();k();var V=require("path-to-regexp"),Z={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var wr=Object.prototype.toString;function Ae(e,t){return wr.call(e)===`[object ${t}]`}function Q(e){return e!==null&&Ae(e,"Object")}function Je(e){return Z.url.test(e)}function te(e){return Array.isArray(e)&&e.length>0}function Ze(e){return Number.isInteger(e)&&e>=0}function Ve(e){return Z.numeric.test(e)}var X=typeof window=="undefined",re=!X,ne=re&&window.navigator.userAgent.toLowerCase().includes("chrome"),ie=re&&window.navigator.userAgent.toLowerCase().includes("safari"),oe=typeof window!="undefined"&&typeof document!="undefined",Ge=oe&&typeof document.body.style.lineClamp!="undefined",Ye=oe&&typeof ResizeObserver!="undefined",Qe=e=>Z.chinese.test(e),Xe=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var et=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function tt(e){if(!e)return e;let n=e,{matched:t}=n,r=qe(n,["matched"]);return J(j({},r),{matched:t?t.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function ae(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=t||{},c=[];n&&c.push("noopener=yes"),s&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function ke(e,t,r="replace"){return t?e?(0,N.mergeWith)(e,t,(n,s)=>{if((0,N.isArray)(s)&&(0,N.isArray)(n))switch(r){case"union":return(0,N.unionWith)(n,s,N.isEqual);case"intersection":return(0,N.intersectionWith)(n,s,N.isEqual);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(Q(s)&&Q(n))return ke(n,s,r)}):t:e}function rt(e,t){if(!te(Object.keys(t)))return e;let r="";for(let n in t){let s=t[n];Array.isArray(s)?r+=`${n}=${encodeURIComponent(s.join(","))}&`:r+=`${n}=${encodeURIComponent(s)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function nt(e){(0,N.isPlainObject)(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Cr(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function it(e){let r=["",...[...e].map(n=>Cr(n)),""].join(".*");return new RegExp(r,"i")}function ot(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let d=c.measureText(e),a=Math.abs(d.actualBoundingBoxLeft)+Math.abs(d.actualBoundingBoxRight);return Math.ceil(Math.max(d.width,a))}k();function ze(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+ze(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?ze(e,n):""),""):""}function se(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${ze(t,r)}`)}function at(e,t=""){return[se(`${t}-${e}`)]}function st(e,t=""){let r=`${t}-${e}`;return[r,se(r)]}k();var we=q(xt(),1),K=q(gt(),1),St=q(Ct(),1),Et=q(bt(),1),At=q(Le(),1),Fe=q(De(),1),ge=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,K.parse)(r)),n&&(this.iv=(0,K.parse)(n))}get getOptions(){return{mode:Et.default,padding:St.default,iv:this.iv}}encryptByAES(t){return(0,we.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,we.decrypt)(t,this.key,this.getOptions).toString(K.default)}};function kt(e){return K.default.parse(e).toString(Fe.default)}function zt(e){return Fe.default.parse(e).toString(K.default)}function Dt(e){return(0,At.default)(e).toString()}k();var Lt=require("lodash-es");var Br=()=>document.documentElement;function Re(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function br(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Ce(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function $t(e,t,r){return r||(r=Br()),r.style.setProperty(e,t),{prop:t}}function Ft(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let s=0,c=n.length;s<c;s++){let d=n[s];d&&(e.classList?e.classList.add(d):Ce(e,d)||(r+=` ${d}`))}e.classList||(e.className=r)}function Rt(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let s=0,c=r.length;s<c;s++){let d=r[s];d&&(e.classList?e.classList.remove(d):Ce(e,d)&&(n=n.replace(` ${d} `," ")))}e.classList||(e.className=br(n))}function Ot(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,s=t.clientLeft,c=t.clientTop,d=window.scrollX,a=window.scrollY,S=Re(e);if(!S)return{};let{left:g,top:m,width:b,height:w}=S,C=(d||r)-(s||0),B=(a||n)-(c||0),F=g+d,z=m+a,i=F-C,o=z-B,y=window.document.documentElement.clientWidth,x=window.document.documentElement.clientHeight;return{left:i,top:o,right:y-b-i,bottom:x-w-o,rightIncludeBody:y-i,bottomIncludeBody:x-o}}function Pt(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${(0,Lt.upperFirst)(e)}`]=t}),J(j({},n),{[e]:t})}function Ut(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function Ht(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function Wt(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();var Be=q(require("resize-observer-polyfill"),1);function Sr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function Tt(e,t){X||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new Be.default(Sr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Nt(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function It(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Mt(e,t={}){function r(n){let s=window.history[n];return function(...c){let d=new Event(n);return d.arguments=c,window.dispatchEvent(d),s.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();var be=require("lodash-es");function Oe(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),c=s.length,d=new Uint8Array(c);for(;c--;)d[c]=s.charCodeAt(c);return new Blob([d],{type:n})}function Pe(e,t){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),c=s.getContext("2d"),d=new Image;d.crossOrigin="",d.onload=function(){if(!s||!c)return n();s.height=d.height,s.width=d.width,c.drawImage(d,0,0);let a=s.toDataURL(t||"image/png");s=null,r(a)},d.src=e})}function jt(e){let{loaded:t,total:r}=e;if(r<=0||(0,be.isNil)(r))return 0;let n=t/r;return(0,be.round)((n>1?1:n)*100)}function qt(e,t,r,n){Pe(e).then(s=>{Ue(s,t,r,n)})}function Ue(e,t,r,n){let s=Oe(e);He(s,t,r,n)}function He(e,t,r,n){let s=typeof n!="undefined"?[n,e]:[e],c=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let d=window.URL.createObjectURL(c),a=document.createElement("a");a.style.display="none",a.href=d,a.setAttribute("download",t),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(d)}}function Kt({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(ne||ie){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),ae(e,{target:t}),!0}k();var Jt=require("lodash-es");function We(e,t="default",r){if(!e||!Reflect.has(e,t)||!(0,Jt.isFunction)(e[t]))return null;let n=e[t];return n?n(r):null}function Zt(e,t=[]){let r=Object.keys(e),n={};return r.forEach(s=>{if(t.includes(s))return null;n[s]=c=>We(e,s,c)}),n}k();function Vt(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,s=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),s&&document.head.appendChild(c)})}function Gt(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function Qt(e,t,r){return er(e,t,r,!1)}function Xt(e,t,r){return er(e,t,r,!0).length>0}function Ne(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Te=new Map;function Yt(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Er(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Te.has(r))return Te.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ne(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return s.negated=n,Te.set(r,s),s}function er(e,t,r,n){if(e=Yt(e,"inputs"),t=Yt(t,"patterns"),t.length===0)return[];t=t.map(d=>Er(d,r));let{allPatterns:s}=r||{},c=[];for(let d of e){let a,S=[...t].fill(!1);for(let[g,m]of t.entries())if(m.test(d)&&(S[g]=!0,a=!m.negated,!a))break;if(!(a===!1||a===void 0&&t.some(g=>!g.negated)||s&&S.some((g,m)=>!g&&!t[m].negated))&&(c.push(d),n))break}return c}k();var Ar={id:"id",children:"children",pid:"pid"},G=e=>Object.assign({},Ar,e);function tr(e,t,r={}){r=G(r);let{children:n}=r,s=[...e];for(let c of s){if(t(c))return c;c[n]&&s.push(...c[n])}return null}function rr(e,t,r={}){r=G(r);let{children:n}=r,s=[...e],c=[];for(let d of s)t(d)&&c.push(d),d[n]&&s.push(...d[n]);return c}function nr(e,t,r={}){r=G(r);let n=[],s=[...e],c=new Set,{children:d}=r;for(;s.length;){let a=s[0];if(c.has(a))n.pop(),s.shift();else if(c.add(a),a[d]&&s.unshift(...a[d]),n.push(a),t(a))return n}return null}function ir(e,t,r={}){r=G(r);let n=[],s=[...e],c=[],d=new Set,{children:a}=r;for(;s.length;){let S=s[0];d.has(S)?(n.pop(),s.shift()):(d.add(S),S[a]&&s.unshift(...S[a]),n.push(S),t(S)&&c.push([...n]))}return c}function or(e,t,r={}){r=G(r);let n=r.children;function s(c){return c.map(d=>j({},d)).filter(d=>(d[n]=d[n]&&s(d[n]),t(d)||d[n]&&d[n].length))}return s(e)}function ar(e,t,r={}){r=G(r);let n=[...e],{children:s}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;s&&n[c][s]&&n.splice(c+1,0,...n[c][s])}}function sr(e,t){return e.map(r=>Se(r,t))}function Se(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,s=r(e)||{};return n?J(j({},s),{[t]:e[t].map(c=>Se(c,{children:t,conversion:r}))}):j({},s)}k();var Ie=require("uuid");function fr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:(0,Ie.v4)():(0,Ie.v4)()}var cr=0;function ur(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return cr++,`${e}_${r}${cr}${String(t)}`}0&&(module.exports={AesEncryption,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,createBEM,createNamespace,createSearchReg,dataURLtoBlob,decodeByBase64,deepMerge,domOffEvent,domOnEvent,downloadByBase64,downloadByData,downloadByOnlineUrl,downloadByUrl,downloadPercent,enableTransitions,encryptByBase64,encryptByMd5,escapeStringRegexp,extendSlots,filterTree,findNode,findNodeAll,findPath,findPathAll,forEachTree,getActualWidthOfChars,getBoundingClientRect,getRawRoute,getSlot,getViewportOffset,hackCss,hasClass,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,pathToRegexp,regexpMap,regexpToPath,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
1
+ "use strict";var pr=Object.create;var Y=Object.defineProperty,hr=Object.defineProperties,vr=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,mr=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var Se=(e,t,r)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))Ae.call(t,r)&&Se(e,r,t[r]);if(ee)for(var r of ee(t))qe.call(t,r)&&Se(e,r,t[r]);return e},J=(e,t)=>hr(e,gr(t));var Ke=(e,t)=>{var r={};for(var n in e)Ae.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&qe.call(e,n)&&(r[n]=e[n]);return r};var xr=(e,t)=>()=>(e&&(t=e(e=0)),t);var W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Je=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yr(t))!Ae.call(e,a)&&a!==r&&Y(e,a,{get:()=>t[a],enumerable:!(n=vr(t,a))||n.enumerable});return e};var q=(e,t,r)=>(r=e!=null?pr(mr(e)):{},Je(t||!e||!e.__esModule?Y(r,"default",{value:e,enumerable:!0}):r,e)),br=e=>Je(Y({},"__esModule",{value:!0}),e);var Le=(e,t,r)=>Se(e,typeof t!="symbol"?t+"":t,r);var L=xr(()=>{"use strict"});var N=W((ce,ft)=>{"use strict";L();(function(e,t){typeof ce=="object"?ft.exports=ce=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(ce,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch(i){}var a=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(o){var y;return i.prototype=o,y=new i,i.prototype=null,y}}(),d={},s=d.lib={},C=s.Base=function(){return{extend:function(i){var o=c(this);return i&&o.mixIn(i),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments)}),o.init.prototype=o,o.$super=this,o},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),_=s.WordArray=C.extend({init:function(i,o){i=this.words=i||[],o!=r?this.sigBytes=o:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var o=this.words,y=i.words,m=this.sigBytes,T=i.sigBytes;if(this.clamp(),m%4)for(var D=0;D<T;D++){var P=y[D>>>2]>>>24-D%4*8&255;o[m+D>>>2]|=P<<24-(m+D)%4*8}else for(var A=0;A<T;A+=4)o[m+A>>>2]=y[A>>>2];return this.sigBytes+=T,this},clamp:function(){var i=this.words,o=this.sigBytes;i[o>>>2]&=4294967295<<32-o%4*8,i.length=t.ceil(o/4)},clone:function(){var i=C.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var o=[],y=0;y<i;y+=4)o.push(a());return new _.init(o,i)}}),l=d.enc={},B=l.Hex={stringify:function(i){for(var o=i.words,y=i.sigBytes,m=[],T=0;T<y;T++){var D=o[T>>>2]>>>24-T%4*8&255;m.push((D>>>4).toString(16)),m.push((D&15).toString(16))}return m.join("")},parse:function(i){for(var o=i.length,y=[],m=0;m<o;m+=2)y[m>>>3]|=parseInt(i.substr(m,2),16)<<24-m%8*4;return new _.init(y,o/2)}},b=l.Latin1={stringify:function(i){for(var o=i.words,y=i.sigBytes,m=[],T=0;T<y;T++){var D=o[T>>>2]>>>24-T%4*8&255;m.push(String.fromCharCode(D))}return m.join("")},parse:function(i){for(var o=i.length,y=[],m=0;m<o;m++)y[m>>>2]|=(i.charCodeAt(m)&255)<<24-m%4*8;return new _.init(y,o)}},w=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(o){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},E=s.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=w.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var o,y=this._data,m=y.words,T=y.sigBytes,D=this.blockSize,P=D*4,A=T/P;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var $=A*D,O=t.min($*4,T);if($){for(var f=0;f<$;f+=D)this._doProcessBlock(m,f);o=m.splice(0,$),y.sigBytes-=O}return new _.init(o,O)},clone:function(){var i=C.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),R=s.Hasher=E.extend({cfg:C.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(i){return function(o,y){return new i.init(y).finalize(o)}},_createHmacHelper:function(i){return function(o,y){return new k.HMAC.init(i,y).finalize(o)}}}),k=d.algo={};return d}(Math);return e})});var ze=W((fe,dt)=>{"use strict";L();(function(e,t){typeof fe=="object"?dt.exports=fe=t(N()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(fe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,a=t.enc,c=a.Base64={stringify:function(s){var C=s.words,_=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<_;b+=3)for(var w=C[b>>>2]>>>24-b%4*8&255,E=C[b+1>>>2]>>>24-(b+1)%4*8&255,R=C[b+2>>>2]>>>24-(b+2)%4*8&255,k=w<<16|E<<8|R,i=0;i<4&&b+i*.75<_;i++)B.push(l.charAt(k>>>6*(3-i)&63));var o=l.charAt(64);if(o)for(;B.length%4;)B.push(o);return B.join("")},parse:function(s){var C=s.length,_=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<_.length;B++)l[_.charCodeAt(B)]=B}var b=_.charAt(64);if(b){var w=s.indexOf(b);w!==-1&&(C=w)}return d(s,C,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(s,C,_){for(var l=[],B=0,b=0;b<C;b++)if(b%4){var w=_[s.charCodeAt(b-1)]<<b%4*2,E=_[s.charCodeAt(b)]>>>6-b%4*2,R=w|E;l[B>>>2]|=R<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var Re=W((de,ut)=>{"use strict";L();(function(e,t){typeof de=="object"?ut.exports=de=t(N()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(de,function(e){return function(t){var r=e,n=r.lib,a=n.WordArray,c=n.Hasher,d=r.algo,s=[];(function(){for(var w=0;w<64;w++)s[w]=t.abs(t.sin(w+1))*4294967296|0})();var C=d.MD5=c.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,E){for(var R=0;R<16;R++){var k=E+R,i=w[k];w[k]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,y=w[E+0],m=w[E+1],T=w[E+2],D=w[E+3],P=w[E+4],A=w[E+5],$=w[E+6],O=w[E+7],f=w[E+8],x=w[E+9],S=w[E+10],p=w[E+11],z=w[E+12],F=w[E+13],H=w[E+14],U=w[E+15],u=o[0],h=o[1],v=o[2],g=o[3];u=_(u,h,v,g,y,7,s[0]),g=_(g,u,h,v,m,12,s[1]),v=_(v,g,u,h,T,17,s[2]),h=_(h,v,g,u,D,22,s[3]),u=_(u,h,v,g,P,7,s[4]),g=_(g,u,h,v,A,12,s[5]),v=_(v,g,u,h,$,17,s[6]),h=_(h,v,g,u,O,22,s[7]),u=_(u,h,v,g,f,7,s[8]),g=_(g,u,h,v,x,12,s[9]),v=_(v,g,u,h,S,17,s[10]),h=_(h,v,g,u,p,22,s[11]),u=_(u,h,v,g,z,7,s[12]),g=_(g,u,h,v,F,12,s[13]),v=_(v,g,u,h,H,17,s[14]),h=_(h,v,g,u,U,22,s[15]),u=l(u,h,v,g,m,5,s[16]),g=l(g,u,h,v,$,9,s[17]),v=l(v,g,u,h,p,14,s[18]),h=l(h,v,g,u,y,20,s[19]),u=l(u,h,v,g,A,5,s[20]),g=l(g,u,h,v,S,9,s[21]),v=l(v,g,u,h,U,14,s[22]),h=l(h,v,g,u,P,20,s[23]),u=l(u,h,v,g,x,5,s[24]),g=l(g,u,h,v,H,9,s[25]),v=l(v,g,u,h,D,14,s[26]),h=l(h,v,g,u,f,20,s[27]),u=l(u,h,v,g,F,5,s[28]),g=l(g,u,h,v,T,9,s[29]),v=l(v,g,u,h,O,14,s[30]),h=l(h,v,g,u,z,20,s[31]),u=B(u,h,v,g,A,4,s[32]),g=B(g,u,h,v,f,11,s[33]),v=B(v,g,u,h,p,16,s[34]),h=B(h,v,g,u,H,23,s[35]),u=B(u,h,v,g,m,4,s[36]),g=B(g,u,h,v,P,11,s[37]),v=B(v,g,u,h,O,16,s[38]),h=B(h,v,g,u,S,23,s[39]),u=B(u,h,v,g,F,4,s[40]),g=B(g,u,h,v,y,11,s[41]),v=B(v,g,u,h,D,16,s[42]),h=B(h,v,g,u,$,23,s[43]),u=B(u,h,v,g,x,4,s[44]),g=B(g,u,h,v,z,11,s[45]),v=B(v,g,u,h,U,16,s[46]),h=B(h,v,g,u,T,23,s[47]),u=b(u,h,v,g,y,6,s[48]),g=b(g,u,h,v,O,10,s[49]),v=b(v,g,u,h,H,15,s[50]),h=b(h,v,g,u,A,21,s[51]),u=b(u,h,v,g,z,6,s[52]),g=b(g,u,h,v,D,10,s[53]),v=b(v,g,u,h,S,15,s[54]),h=b(h,v,g,u,m,21,s[55]),u=b(u,h,v,g,f,6,s[56]),g=b(g,u,h,v,U,10,s[57]),v=b(v,g,u,h,$,15,s[58]),h=b(h,v,g,u,F,21,s[59]),u=b(u,h,v,g,P,6,s[60]),g=b(g,u,h,v,p,10,s[61]),v=b(v,g,u,h,T,15,s[62]),h=b(h,v,g,u,x,21,s[63]),o[0]=o[0]+u|0,o[1]=o[1]+h|0,o[2]=o[2]+v|0,o[3]=o[3]+g|0},_doFinalize:function(){var w=this._data,E=w.words,R=this._nDataBytes*8,k=w.sigBytes*8;E[k>>>5]|=128<<24-k%32;var i=t.floor(R/4294967296),o=R;E[(k+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,E[(k+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var y=this._hash,m=y.words,T=0;T<4;T++){var D=m[T];m[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return y},clone:function(){var w=c.clone.call(this);return w._hash=this._hash.clone(),w}});function _(w,E,R,k,i,o,y){var m=w+(E&R|~E&k)+i+y;return(m<<o|m>>>32-o)+E}function l(w,E,R,k,i,o,y){var m=w+(E&k|R&~k)+i+y;return(m<<o|m>>>32-o)+E}function B(w,E,R,k,i,o,y){var m=w+(E^R^k)+i+y;return(m<<o|m>>>32-o)+E}function b(w,E,R,k,i,o,y){var m=w+(R^(E|~k))+i+y;return(m<<o|m>>>32-o)+E}r.MD5=c._createHelper(C),r.HmacMD5=c._createHmacHelper(C)}(Math),e.MD5})});var pt=W((ue,lt)=>{"use strict";L();(function(e,t){typeof ue=="object"?lt.exports=ue=t(N()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ue,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,a=r.Hasher,c=t.algo,d=[],s=c.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,_){for(var l=this._hash.words,B=l[0],b=l[1],w=l[2],E=l[3],R=l[4],k=0;k<80;k++){if(k<16)d[k]=C[_+k]|0;else{var i=d[k-3]^d[k-8]^d[k-14]^d[k-16];d[k]=i<<1|i>>>31}var o=(B<<5|B>>>27)+R+d[k];k<20?o+=(b&w|~b&E)+1518500249:k<40?o+=(b^w^E)+1859775393:k<60?o+=(b&w|b&E|w&E)-1894007588:o+=(b^w^E)-899497514,R=E,E=w,w=b<<30|b>>>2,b=B,B=o}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+w|0,l[3]=l[3]+E|0,l[4]=l[4]+R|0},_doFinalize:function(){var C=this._data,_=C.words,l=this._nDataBytes*8,B=C.sigBytes*8;return _[B>>>5]|=128<<24-B%32,_[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),_[(B+64>>>9<<4)+15]=l,C.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var C=a.clone.call(this);return C._hash=this._hash.clone(),C}});t.SHA1=a._createHelper(s),t.HmacSHA1=a._createHmacHelper(s)}(),e.SHA1})});var vt=W((le,ht)=>{"use strict";L();(function(e,t){typeof le=="object"?ht.exports=le=t(N()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(le,function(e){(function(){var t=e,r=t.lib,n=r.Base,a=t.enc,c=a.Utf8,d=t.algo,s=d.HMAC=n.extend({init:function(C,_){C=this._hasher=new C.init,typeof _=="string"&&(_=c.parse(_));var l=C.blockSize,B=l*4;_.sigBytes>B&&(_=C.finalize(_)),_.clamp();for(var b=this._oKey=_.clone(),w=this._iKey=_.clone(),E=b.words,R=w.words,k=0;k<l;k++)E[k]^=1549556828,R[k]^=909522486;b.sigBytes=w.sigBytes=B,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var _=this._hasher,l=_.finalize(C);_.reset();var B=_.finalize(this._oKey.clone().concat(l));return B}})})()})});var Fe=W((pe,gt)=>{"use strict";L();(function(e,t,r){typeof pe=="object"?gt.exports=pe=t(N(),pt(),vt()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(pe,function(e){return function(){var t=e,r=t.lib,n=r.Base,a=r.WordArray,c=t.algo,d=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,_){for(var l,B=this.cfg,b=B.hasher.create(),w=a.create(),E=w.words,R=B.keySize,k=B.iterations;E.length<R;){l&&b.update(l),l=b.update(C).finalize(_),b.reset();for(var i=1;i<k;i++)l=b.finalize(l),b.reset();w.concat(l)}return w.sigBytes=R*4,w}});t.EvpKDF=function(C,_,l){return s.create(l).compute(C,_)}}(),e.EvpKDF})});var ve=W((he,yt)=>{"use strict";L();(function(e,t,r){typeof he=="object"?yt.exports=he=t(N(),Fe()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(he,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,a=n.Base,c=n.WordArray,d=n.BufferedBlockAlgorithm,s=r.enc,C=s.Utf8,_=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=d.extend({cfg:a.extend(),createEncryptor:function(f,x){return this.create(this._ENC_XFORM_MODE,f,x)},createDecryptor:function(f,x){return this.create(this._DEC_XFORM_MODE,f,x)},init:function(f,x,S){this.cfg=this.cfg.extend(S),this._xformMode=f,this._key=x,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(f){return this._append(f),this._process()},finalize:function(f){f&&this._append(f);var x=this._doFinalize();return x},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function f(x){return typeof x=="string"?O:P}return function(x){return{encrypt:function(S,p,z){return f(p).encrypt(x,S,p,z)},decrypt:function(S,p,z){return f(p).decrypt(x,S,p,z)}}}}()}),w=n.StreamCipher=b.extend({_doFinalize:function(){var f=this._process(!0);return f},blockSize:1}),E=r.mode={},R=n.BlockCipherMode=a.extend({createEncryptor:function(f,x){return this.Encryptor.create(f,x)},createDecryptor:function(f,x){return this.Decryptor.create(f,x)},init:function(f,x){this._cipher=f,this._iv=x}}),k=E.CBC=function(){var f=R.extend();f.Encryptor=f.extend({processBlock:function(S,p){var z=this._cipher,F=z.blockSize;x.call(this,S,p,F),z.encryptBlock(S,p),this._prevBlock=S.slice(p,p+F)}}),f.Decryptor=f.extend({processBlock:function(S,p){var z=this._cipher,F=z.blockSize,H=S.slice(p,p+F);z.decryptBlock(S,p),x.call(this,S,p,F),this._prevBlock=H}});function x(S,p,z){var F,H=this._iv;H?(F=H,this._iv=t):F=this._prevBlock;for(var U=0;U<z;U++)S[p+U]^=F[U]}return f}(),i=r.pad={},o=i.Pkcs7={pad:function(f,x){for(var S=x*4,p=S-f.sigBytes%S,z=p<<24|p<<16|p<<8|p,F=[],H=0;H<p;H+=4)F.push(z);var U=c.create(F,p);f.concat(U)},unpad:function(f){var x=f.words[f.sigBytes-1>>>2]&255;f.sigBytes-=x}},y=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:k,padding:o}),reset:function(){var f;b.reset.call(this);var x=this.cfg,S=x.iv,p=x.mode;this._xformMode==this._ENC_XFORM_MODE?f=p.createEncryptor:(f=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==f?this._mode.init(this,S&&S.words):(this._mode=f.call(p,this,S&&S.words),this._mode.__creator=f)},_doProcessBlock:function(f,x){this._mode.processBlock(f,x)},_doFinalize:function(){var f,x=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(x.pad(this._data,this.blockSize),f=this._process(!0)):(f=this._process(!0),x.unpad(f)),f},blockSize:128/32}),m=n.CipherParams=a.extend({init:function(f){this.mixIn(f)},toString:function(f){return(f||this.formatter).stringify(this)}}),T=r.format={},D=T.OpenSSL={stringify:function(f){var x,S=f.ciphertext,p=f.salt;return p?x=c.create([1398893684,1701076831]).concat(p).concat(S):x=S,x.toString(_)},parse:function(f){var x,S=_.parse(f),p=S.words;return p[0]==1398893684&&p[1]==1701076831&&(x=c.create(p.slice(2,4)),p.splice(0,4),S.sigBytes-=16),m.create({ciphertext:S,salt:x})}},P=n.SerializableCipher=a.extend({cfg:a.extend({format:D}),encrypt:function(f,x,S,p){p=this.cfg.extend(p);var z=f.createEncryptor(S,p),F=z.finalize(x),H=z.cfg;return m.create({ciphertext:F,key:S,iv:H.iv,algorithm:f,mode:H.mode,padding:H.padding,blockSize:f.blockSize,formatter:p.format})},decrypt:function(f,x,S,p){p=this.cfg.extend(p),x=this._parse(x,p.format);var z=f.createDecryptor(S,p).finalize(x.ciphertext);return z},_parse:function(f,x){return typeof f=="string"?x.parse(f,this):f}}),A=r.kdf={},$=A.OpenSSL={execute:function(f,x,S,p,z){if(p||(p=c.random(64/8)),z)var F=B.create({keySize:x+S,hasher:z}).compute(f,p);else var F=B.create({keySize:x+S}).compute(f,p);var H=c.create(F.words.slice(x),S*4);return F.sigBytes=x*4,m.create({key:F,iv:H,salt:p})}},O=n.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:$}),encrypt:function(f,x,S,p){p=this.cfg.extend(p);var z=p.kdf.execute(S,f.keySize,f.ivSize,p.salt,p.hasher);p.iv=z.iv;var F=P.encrypt.call(this,f,x,z.key,p);return F.mixIn(z),F},decrypt:function(f,x,S,p){p=this.cfg.extend(p),x=this._parse(x,p.format);var z=p.kdf.execute(S,f.keySize,f.ivSize,x.salt,p.hasher);p.iv=z.iv;var F=P.decrypt.call(this,f,x,z.key,p);return F}})}()})});var xt=W((ge,mt)=>{"use strict";L();(function(e,t,r){typeof ge=="object"?mt.exports=ge=t(N(),ze(),Re(),Fe(),ve()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(ge,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,a=t.algo,c=[],d=[],s=[],C=[],_=[],l=[],B=[],b=[],w=[],E=[];(function(){for(var i=[],o=0;o<256;o++)o<128?i[o]=o<<1:i[o]=o<<1^283;for(var y=0,m=0,o=0;o<256;o++){var T=m^m<<1^m<<2^m<<3^m<<4;T=T>>>8^T&255^99,c[y]=T,d[T]=y;var D=i[y],P=i[D],A=i[P],$=i[T]*257^T*16843008;s[y]=$<<24|$>>>8,C[y]=$<<16|$>>>16,_[y]=$<<8|$>>>24,l[y]=$;var $=A*16843009^P*65537^D*257^y*16843008;B[T]=$<<24|$>>>8,b[T]=$<<16|$>>>16,w[T]=$<<8|$>>>24,E[T]=$,y?(y=D^i[i[i[A^D]]],m^=i[i[m]]):y=m=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],k=a.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var o=this._keyPriorReset=this._key,y=o.words,m=o.sigBytes/4,T=this._nRounds=m+6,D=(T+1)*4,P=this._keySchedule=[],A=0;A<D;A++)A<m?P[A]=y[A]:(i=P[A-1],A%m?m>6&&A%m==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=R[A/m|0]<<24),P[A]=P[A-m]^i);for(var $=this._invKeySchedule=[],O=0;O<D;O++){var A=D-O;if(O%4)var i=P[A];else var i=P[A-4];O<4||A<=4?$[O]=i:$[O]=B[c[i>>>24]]^b[c[i>>>16&255]]^w[c[i>>>8&255]]^E[c[i&255]]}}},encryptBlock:function(i,o){this._doCryptBlock(i,o,this._keySchedule,s,C,_,l,c)},decryptBlock:function(i,o){var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y,this._doCryptBlock(i,o,this._invKeySchedule,B,b,w,E,d);var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y},_doCryptBlock:function(i,o,y,m,T,D,P,A){for(var $=this._nRounds,O=i[o]^y[0],f=i[o+1]^y[1],x=i[o+2]^y[2],S=i[o+3]^y[3],p=4,z=1;z<$;z++){var F=m[O>>>24]^T[f>>>16&255]^D[x>>>8&255]^P[S&255]^y[p++],H=m[f>>>24]^T[x>>>16&255]^D[S>>>8&255]^P[O&255]^y[p++],U=m[x>>>24]^T[S>>>16&255]^D[O>>>8&255]^P[f&255]^y[p++],u=m[S>>>24]^T[O>>>16&255]^D[f>>>8&255]^P[x&255]^y[p++];O=F,f=H,x=U,S=u}var F=(A[O>>>24]<<24|A[f>>>16&255]<<16|A[x>>>8&255]<<8|A[S&255])^y[p++],H=(A[f>>>24]<<24|A[x>>>16&255]<<16|A[S>>>8&255]<<8|A[O&255])^y[p++],U=(A[x>>>24]<<24|A[S>>>16&255]<<16|A[O>>>8&255]<<8|A[f&255])^y[p++],u=(A[S>>>24]<<24|A[O>>>16&255]<<16|A[f>>>8&255]<<8|A[x&255])^y[p++];i[o]=F,i[o+1]=H,i[o+2]=U,i[o+3]=u},keySize:256/32});t.AES=n._createHelper(k)}(),e.AES})});var bt=W((ye,_t)=>{"use strict";L();(function(e,t){typeof ye=="object"?_t.exports=ye=t(N()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ye,function(e){return e.enc.Utf8})});var Ct=W((me,wt)=>{"use strict";L();(function(e,t,r){typeof me=="object"?wt.exports=me=t(N(),ve()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(me,function(e){return e.pad.Pkcs7})});var Et=W((xe,Bt)=>{"use strict";L();(function(e,t,r){typeof xe=="object"?Bt.exports=xe=t(N(),ve()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(xe,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(n,a){var c=this._cipher,d=c.blockSize,s=this._iv,C=this._counter;s&&(C=this._counter=s.slice(0),this._iv=void 0);var _=C.slice(0);c.encryptBlock(_,0),C[d-1]=C[d-1]+1|0;for(var l=0;l<d;l++)n[a+l]^=_[l]}});return t.Decryptor=r,t}(),e.mode.CTR})});var kr={};_r(kr,{AesEncryption:()=>_e,ResizeObserver:()=>Ce.default,addClass:()=>Ft,addLocationListener:()=>jt,addResizeListener:()=>It,buildBEM:()=>ae,buildShortUUID:()=>ur,buildUUID:()=>dr,createBEM:()=>at,createNamespace:()=>ct,createSearchReg:()=>ot,dataURLtoBlob:()=>Oe,decodeByBase64:()=>Tt,deepMerge:()=>Te,domOffEvent:()=>Ht,domOnEvent:()=>Mt,downloadByBase64:()=>He,downloadByData:()=>Ue,downloadByOnlineUrl:()=>Kt,downloadByUrl:()=>Jt,downloadPercent:()=>qt,enableTransitions:()=>et,encryptByBase64:()=>kt,encryptByMd5:()=>Dt,escapeStringRegexp:()=>Ne,extendSlots:()=>Zt,filterTree:()=>sr,findNode:()=>rr,findNodeAll:()=>nr,findPath:()=>ir,findPathAll:()=>or,forEachTree:()=>ar,getActualWidthOfChars:()=>st,getBoundingClientRect:()=>Pe,getRawRoute:()=>rt,getSlot:()=>Ie,getViewportOffset:()=>Pt,hackCss:()=>Ot,hasClass:()=>we,is:()=>ke,isBrowser:()=>oe,isChineseText:()=>Xe,isChrome:()=>ne,isClient:()=>re,isIterableArray:()=>te,isMatch:()=>er,isNumeric:()=>Ge,isObject:()=>Q,isPositiveInteger:()=>Ze,isSafari:()=>ie,isServer:()=>X,isSupportNativeEllipsis:()=>Ye,isSupportResizeObserver:()=>Qe,isUrl:()=>Ve,loadScript:()=>Gt,matcher:()=>Xt,openWindow:()=>se,pathToRegexp:()=>Z.pathToRegexp,regexpMap:()=>V,regexpToPath:()=>Z.compile,removeClass:()=>$t,removeResizeListener:()=>Wt,setCssVar:()=>Rt,setObjToUrlParams:()=>nt,titleCase:()=>lr.titleCase,treeMap:()=>cr,treeMapEach:()=>Ee,triggerWindowResize:()=>Nt,unloadScript:()=>Yt,unsetAllProperty:()=>it,urlToBase64:()=>Me,useRafThrottle:()=>Ut,withInstall:()=>tt});module.exports=br(kr);L();var lr=require("title-case");L();var I=require("lodash-es");L();L();var Z=require("path-to-regexp"),V={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var wr=Object.prototype.toString;function ke(e,t){return wr.call(e)===`[object ${t}]`}function Q(e){return e!==null&&ke(e,"Object")}function Ve(e){return V.url.test(e)}function te(e){return Array.isArray(e)&&e.length>0}function Ze(e){return Number.isInteger(e)&&e>=0}function Ge(e){return V.numeric.test(e)}var X=typeof window=="undefined",re=!X,ne=re&&window.navigator.userAgent.toLowerCase().includes("chrome"),ie=re&&window.navigator.userAgent.toLowerCase().includes("safari"),oe=typeof window!="undefined"&&typeof document!="undefined",Ye=oe&&"webkitLineClamp"in document.body.style,Qe=oe&&typeof ResizeObserver!="undefined",Xe=e=>V.chinese.test(e),et=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var tt=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function rt(e){if(!e)return e;let n=e,{matched:t}=n,r=Ke(n,["matched"]);return J(j({},r),{matched:t?t.map(a=>({meta:a.meta,name:a.name,path:a.path})):void 0})}function se(e,t={}){let{target:r="__blank",noopener:n=!0,noreferrer:a=!0}=t||{},c=[];n&&c.push("noopener=yes"),a&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Te(e,t,r="replace"){return t?e?(0,I.mergeWith)(e,t,(n,a)=>{if((0,I.isArray)(a)&&(0,I.isArray)(n))switch(r){case"union":return(0,I.unionWith)(n,a,I.isEqual);case"intersection":return(0,I.intersectionWith)(n,a,I.isEqual);case"concat":return n.concat(a);case"replace":return a;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(Q(a)&&Q(n))return Te(n,a,r)}):t:e}function nt(e,t){if(!te(Object.keys(t)))return e;let r="";for(let n in t){let a=t[n];Array.isArray(a)?r+=`${n}=${encodeURIComponent(a.join(","))}&`:r+=`${n}=${encodeURIComponent(a)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function it(e){(0,I.isPlainObject)(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Cr(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function ot(e){let r=["",...[...e].map(n=>Cr(n)),""].join(".*");return new RegExp(r,"i")}function st(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let d=c.measureText(e),s=Math.abs(d.actualBoundingBoxLeft)+Math.abs(d.actualBoundingBoxRight);return Math.ceil(Math.max(d.width,s))}L();function De(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+De(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?De(e,n):""),""):""}function ae(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${De(t,r)}`)}function at(e,t=""){return[ae(`${t}-${e}`)]}function ct(e,t=""){let r=`${t}-${e}`;return[r,ae(r)]}L();var be=q(xt(),1),K=q(bt(),1),St=q(Ct(),1),At=q(Et(),1),Lt=q(Re(),1),$e=q(ze(),1);var _e=class{constructor({key:t,iv:r}){Le(this,"key");Le(this,"iv");this.key=(0,K.parse)(t),this.iv=(0,K.parse)(r)}get getOptions(){return{mode:At.default,padding:St.default,iv:this.iv}}encryptByAES(t){return(0,be.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,be.decrypt)(t,this.key,this.getOptions).toString(K.default)}};function kt(e){return K.default.parse(e).toString($e.default)}function Tt(e){return $e.default.parse(e).toString(K.default)}function Dt(e){return(0,Lt.default)(e).toString()}L();var zt=require("lodash-es");var Br=()=>document.documentElement;function Pe(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Er(e){return(e||"").replace(/^\s+|\s+$/g,"")}function we(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function Rt(e,t,r){return r||(r=Br()),r.style.setProperty(e,t),{prop:t}}function Ft(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let a=0,c=n.length;a<c;a++){let d=n[a];d&&(e.classList?e.classList.add(d):we(e,d)||(r+=` ${d}`))}e.classList||(e.className=r)}function $t(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let a=0,c=r.length;a<c;a++){let d=r[a];d&&(e.classList?e.classList.remove(d):we(e,d)&&(n=n.replace(` ${d} `," ")))}e.classList||(e.className=Er(n))}function Pt(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,a=t.clientLeft,c=t.clientTop,d=window.scrollX,s=window.scrollY,C=Pe(e);if(!C)return{};let{left:_,top:l,width:B,height:b}=C,w=(d||r)-(a||0),E=(s||n)-(c||0),R=_+d,k=l+s,i=R-w,o=k-E,y=window.document.documentElement.clientWidth,m=window.document.documentElement.clientHeight;return{left:i,top:o,right:y-B-i,bottom:m-b-o,rightIncludeBody:y-i,bottomIncludeBody:m-o}}function Ot(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(a=>{n[`${a}${(0,zt.upperFirst)(e)}`]=t}),J(j({},n),{[e]:t})}function Mt(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function Ht(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function Ut(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}L();var Ce=q(require("resize-observer-polyfill"),1);function Sr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function It(e,t){X||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new Ce.default(Sr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Wt(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function Nt(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function jt(e,t={}){function r(n){let a=window.history[n];return function(...c){let d=new Event(n);return d.arguments=c,window.dispatchEvent(d),a.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}L();var Be=require("lodash-es");function Oe(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],a=window.atob(t[1]),c=a.length,d=new Uint8Array(c);for(;c--;)d[c]=a.charCodeAt(c);return new Blob([d],{type:n})}function Me(e,t){return new Promise((r,n)=>{let a=document.createElement("CANVAS"),c=a==null?void 0:a.getContext("2d"),d=new Image;d.crossOrigin="",d.onload=function(){if(!a||!c)return n();a.height=d.height,a.width=d.width,c.drawImage(d,0,0);let s=a.toDataURL(t||"image/png");a=null,r(s)},d.src=e})}function qt(e){let{loaded:t,total:r}=e;if(r<=0||(0,Be.isNil)(r))return 0;let n=t/r;return(0,Be.round)((n>1?1:n)*100)}function Kt(e,t,r,n){Me(e).then(a=>{He(a,t,r,n)})}function He(e,t,r,n){let a=Oe(e);Ue(a,t,r,n)}function Ue(e,t,r,n){let a=typeof n!="undefined"?[n,e]:[e],c=new Blob(a,{type:r||"application/octet-stream"}),d=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=d,s.setAttribute("download",t),typeof s.download=="undefined"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(d)}function Jt({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(ne||ie){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),se(e,{target:t}),!0}L();var Vt=require("lodash-es");function Ie(e,t="default",r){if(!e||!Reflect.has(e,t)||!(0,Vt.isFunction)(e[t]))return null;let n=e[t];return n?n(r):null}function Zt(e,t=[]){let r=Object.keys(e),n={};return r.forEach(a=>{if(t.includes(a))return null;n[a]=c=>Ie(e,a,c)}),n}L();function Gt(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let a=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,a=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded","true"),r({el:c})}),a&&document.head.appendChild(c)})}function Yt(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}L();function Xt(e,t,r){return tr(e,t,r,!1)}function er(e,t,r){return tr(e,t,r,!0).length>0}function Ne(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var We=new Map;function Qt(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Ar(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(We.has(r))return We.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ne(e).replace(/\\\*/g,"[\\s\\S]*");let a=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return a.negated=n,We.set(r,a),a}function tr(e,t,r,n){if(e=Qt(e,"inputs"),t=Qt(t,"patterns"),t.length===0)return[];let a=t.map(s=>Ar(s,r)),{allPatterns:c}=r||{},d=[];for(let s of e){let C,_=a.map(()=>!1);for(let[l,B]of a.entries())if(B.test(s)&&(_[l]=!0,C=!B.negated,!C))break;if(!(C===!1||C===void 0&&a.some(l=>!l.negated)||c&&_.some((l,B)=>!l&&!a[B].negated))&&(d.push(s),n))break}return d}L();var Lr={id:"id",children:"children",pid:"pid"},G=e=>Object.assign({},Lr,e);function rr(e,t,r={}){r=G(r);let{children:n}=r,a=[...e];for(let c of a){if(t(c))return c;c[n]&&a.push(...c[n])}return null}function nr(e,t,r={}){r=G(r);let{children:n}=r,a=[...e],c=[];for(let d of a)t(d)&&c.push(d),d[n]&&a.push(...d[n]);return c}function ir(e,t,r={}){r=G(r);let n=[],a=[...e],c=new Set,{children:d}=r;for(;a.length;){let s=a[0];if(c.has(s))n.pop(),a.shift();else if(c.add(s),s[d]&&a.unshift(...s[d]),n.push(s),t(s))return n}return null}function or(e,t,r={}){r=G(r);let n=[],a=[...e],c=[],d=new Set,{children:s}=r;for(;a.length;){let C=a[0];d.has(C)?(n.pop(),a.shift()):(d.add(C),C[s]&&a.unshift(...C[s]),n.push(C),t(C)&&c.push([...n]))}return c}function sr(e,t,r={}){r=G(r);let n=r.children;function a(c){return c.map(d=>j({},d)).filter(d=>(d[n]=d[n]&&a(d[n]),t(d)||d[n]&&d[n].length))}return a(e)}function ar(e,t,r={}){r=G(r);let n=[...e],{children:a}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;a&&n[c][a]&&n.splice(c+1,0,...n[c][a])}}function cr(e,t){return e.map(r=>Ee(r,t))}function Ee(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,a=r(e)||{};return n?J(j({},a),{[t]:e[t].map(c=>Ee(c,{children:t,conversion:r}))}):j({},a)}L();var je=require("uuid");function dr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:(0,je.v4)():(0,je.v4)()}var fr=0;function ur(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return fr++,`${e}_${r}${fr}${String(t)}`}0&&(module.exports={AesEncryption,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,createBEM,createNamespace,createSearchReg,dataURLtoBlob,decodeByBase64,deepMerge,domOffEvent,domOnEvent,downloadByBase64,downloadByData,downloadByOnlineUrl,downloadByUrl,downloadPercent,enableTransitions,encryptByBase64,encryptByMd5,escapeStringRegexp,extendSlots,filterTree,findNode,findNodeAll,findPath,findPathAll,forEachTree,getActualWidthOfChars,getBoundingClientRect,getRawRoute,getSlot,getViewportOffset,hackCss,hasClass,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,pathToRegexp,regexpMap,regexpToPath,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
@@ -0,0 +1,321 @@
1
+ export { titleCase } from 'title-case';
2
+ import { mode, pad } from 'crypto-js';
3
+ export { default as ResizeObserver } from 'resize-observer-polyfill';
4
+ export { pathToRegexp, compile as regexpToPath } from 'path-to-regexp';
5
+
6
+ declare const withInstall: (component: any, alias: string) => any;
7
+ declare function getRawRoute(route: any): any;
8
+ declare function openWindow(url: string, opt?: {
9
+ target?: string;
10
+ noopener?: boolean;
11
+ noreferrer?: boolean;
12
+ }): void;
13
+ /**
14
+ * 递归合并两个对象。
15
+ *
16
+ * @param source 要合并的源对象。
17
+ * @param target 目标对象,合并后结果存放于此。
18
+ * @param mergeArrays 如何合并数组。默认为replace。
19
+ * - "union": 对数组执行并集操作。
20
+ * - "intersection": 对数组执行交集操作。
21
+ * - "concat": 连接数组。
22
+ * - "replace": 用目标数组替换源数组。
23
+ * @returns 合并后的对象。
24
+ */
25
+ declare function deepMerge(source: any, target: any, mergeArrays?: string): any;
26
+ /**
27
+ * Add the object as a parameter to the URL
28
+ * @param baseUrl url
29
+ * @param obj
30
+ * @returns {string}
31
+ * eg:
32
+ * let obj = {a: '3', b: '4', c: ['1','2']}
33
+ * setObjToUrlParams('www.baidu.com', obj)
34
+ * ==>www.baidu.com?a=3&b=4&c=1,2
35
+ */
36
+ declare function setObjToUrlParams(baseUrl: string, obj: {
37
+ [x: string]: any;
38
+ }): string;
39
+ declare function unsetAllProperty(params: object): void;
40
+ declare function createSearchReg(key: string): RegExp;
41
+ declare function getActualWidthOfChars(text?: string, options?: {
42
+ size?: number;
43
+ family?: string;
44
+ }): number;
45
+
46
+ type Mod = string | {
47
+ [key: string]: any;
48
+ };
49
+ type Mods = Mod | Mod[];
50
+ type BEM = ReturnType<typeof createBEM>;
51
+ /**
52
+ * bem helper
53
+ * b() // 'button'
54
+ * b('text') // 'button__text'
55
+ * b({ disabled }) // 'button button--disabled'
56
+ * b('text', { disabled }) // 'button__text button__text--disabled'
57
+ * b(['disabled', 'primary']) // 'button button--disabled button--primary'
58
+ */
59
+ declare function buildBEM(name: string): (el?: Mods, mods?: Mods) => string;
60
+ declare function createBEM(name: string, prefixCls?: string): ((el?: Mods, mods?: Mods) => string)[];
61
+ declare function createNamespace(name: string, prefixCls?: string): readonly [string, (el?: Mods, mods?: Mods) => string];
62
+
63
+ interface Encryption {
64
+ encryptByAES: (plainText: string) => string;
65
+ decryptByAES: (cipherText: string) => string;
66
+ }
67
+ interface EncryptionParams {
68
+ key: string;
69
+ iv: string;
70
+ }
71
+ declare class AesEncryption implements Encryption {
72
+ private readonly key;
73
+ private readonly iv;
74
+ constructor({ key, iv }: EncryptionParams);
75
+ get getOptions(): {
76
+ mode: typeof mode.CTR;
77
+ padding: typeof pad.Pkcs7;
78
+ iv: CryptoJS.lib.WordArray;
79
+ };
80
+ encryptByAES(cipherText: string): string;
81
+ decryptByAES(cipherText: string): string;
82
+ }
83
+ declare function encryptByBase64(cipherText: string): string;
84
+ declare function decodeByBase64(cipherText: string): string;
85
+ declare function encryptByMd5(password: string): string;
86
+
87
+ interface ViewportOffsetResult {
88
+ /**
89
+ * 元素左边距离 body 左边的距离(和 getBoundingClientRect 的 left 一样)
90
+ */
91
+ left: number;
92
+ /**
93
+ * 元素顶边距离 body 顶边的距离(和 getBoundingClientRect 的 top 一样)
94
+ */
95
+ top: number;
96
+ /**
97
+ * 元素右边距离 body 右边的距离
98
+ */
99
+ right: number;
100
+ /**
101
+ * 元素底边距离 body 底边的距离
102
+ */
103
+ bottom: number;
104
+ /**
105
+ * 内容宽度 + 计算后的 right
106
+ */
107
+ rightIncludeBody: number;
108
+ /**
109
+ * 内容高度 + 计算后的 bottom
110
+ */
111
+ bottomIncludeBody: number;
112
+ }
113
+ declare function getBoundingClientRect(element: Element): DOMRect | number;
114
+ declare function hasClass(el: HTMLElement, cls: string): boolean;
115
+ declare function setCssVar(prop: string, val: string, dom: HTMLElement): {
116
+ prop: string;
117
+ };
118
+ declare function addClass(el: HTMLElement, cls: string): void;
119
+ declare function removeClass(el: HTMLElement, cls: string): void;
120
+ /**
121
+ * 获取当前元素的左上偏移
122
+ * left:最左边的元素到文档左边的距离
123
+ * top:元素顶部到文档顶部的距离
124
+ * right:元素最右边到文档右边的距离
125
+ * bottom:元素底部到文档底部的距离
126
+ * rightIncludeBody:文档最左边的元素到右边的距离
127
+ * bottomIncludeBody:元素底部到文档底部的距离
128
+ */
129
+ declare function getViewportOffset(element: HTMLElement): ViewportOffsetResult | Record<string, number>;
130
+ declare function hackCss(attr: string, value: any): any;
131
+ type EventTarget = Element | HTMLElement | Document | Window;
132
+ type EventListenerOrEventListenerObject = (evt: Event) => void | {
133
+ handleEvent: (evt: Event) => void;
134
+ };
135
+ declare function on(element: EventTarget, event: string, handler: EventListenerOrEventListenerObject): void;
136
+ declare function off(element: EventTarget, event: string, handler: EventListenerOrEventListenerObject): void;
137
+ declare function useRafThrottle(fn: () => any): (...args: any[]) => void;
138
+
139
+ declare function addResizeListener(element: any, fn: () => any): void;
140
+ declare function removeResizeListener(element: any, fn: () => any): void;
141
+ declare function triggerWindowResize(): void;
142
+ declare function addLocationListener(fn: () => void, options?: AddEventListenerOptions): {
143
+ removeListener: () => void;
144
+ };
145
+
146
+ /**
147
+ * @description: base64 to blob
148
+ */
149
+ declare function dataURLtoBlob(base64Buf: string): Blob;
150
+ /**
151
+ * img url to base64
152
+ * @param url
153
+ */
154
+ declare function urlToBase64(url: string, mineType?: string): Promise<string>;
155
+ declare function downloadPercent(event: ProgressEvent): number;
156
+ /**
157
+ * Download online pictures
158
+ * @param url
159
+ * @param filename
160
+ * @param mime
161
+ * @param bom
162
+ */
163
+ declare function downloadByOnlineUrl(url: string, filename: string, mime?: string, bom?: BlobPart): void;
164
+ /**
165
+ * Download file based on base64
166
+ * @param buf
167
+ * @param filename
168
+ * @param mime
169
+ * @param bom
170
+ */
171
+ declare function downloadByBase64(buf: string, filename: string, mime?: string, bom?: BlobPart): void;
172
+ /**
173
+ * Download according to the background interface file stream
174
+ * @param {*} data
175
+ * @param {*} filename
176
+ * @param {*} mime
177
+ * @param {*} bom
178
+ */
179
+ declare function downloadByData(data: BlobPart, filename: string, mime?: string, bom?: BlobPart): void;
180
+ /**
181
+ * Download file according to file address
182
+ * @param {*} sUrl
183
+ */
184
+ declare function downloadByUrl({ url, target, fileName }: {
185
+ url: string;
186
+ target?: TargetContext;
187
+ fileName?: string;
188
+ }): boolean;
189
+
190
+ declare function is(val: unknown, type: string): boolean;
191
+ declare function isObject(val: any): boolean;
192
+ declare function isUrl(path: string): boolean;
193
+ declare function isIterableArray(val: any): boolean;
194
+ declare function isPositiveInteger(num: any): boolean;
195
+ declare function isNumeric(str: string): boolean;
196
+ declare const isServer: boolean;
197
+ declare const isClient: boolean;
198
+ declare const isChrome: boolean;
199
+ declare const isSafari: boolean;
200
+ declare const isBrowser: boolean;
201
+ /** Whether the environment support -webkit-line-clamp. */
202
+ declare const isSupportNativeEllipsis: boolean;
203
+ /** Whether the environment support ResizeObserver. */
204
+ declare const isSupportResizeObserver: boolean;
205
+ declare const isChineseText: (text: string) => boolean;
206
+ declare const enableTransitions: () => boolean;
207
+
208
+ interface InternalSlots {
209
+ [name: string]: any;
210
+ }
211
+ /**
212
+ * @description: Get slot to prevent empty error
213
+ */
214
+ declare function getSlot(slots: Readonly<InternalSlots>, slot?: string, data?: any): any;
215
+ /**
216
+ * extends slots
217
+ * @param slots
218
+ * @param excludeKeys
219
+ */
220
+ declare function extendSlots(slots: Readonly<InternalSlots>, excludeKeys?: string[]): any;
221
+
222
+ declare function loadScript(src: string, { type }?: {
223
+ type?: string | undefined;
224
+ }): Promise<unknown>;
225
+ declare function unloadScript(src: string): Promise<void>;
226
+
227
+ /**
228
+ * 简单的通配符匹配工具, 可在换行符之间匹配 ==> foo*r will match foo\nbar.
229
+ * 如有更复杂的需求可参考 https://github.com/micromatch/micromatch
230
+ * https://github.com/sindresorhus/matcher
231
+ * matcher(['foo', 'bar', 'moo'], ['*oo', '!foo']); //=> ['moo']
232
+ * matcher(['foo', 'bar', 'moo'], ['!*oo']); //=> ['bar']
233
+ * matcher('moo', ['']); //=> []
234
+ * matcher('moo', []); //=> []
235
+ * matcher([''], ['']); //=> ['']
236
+ * matcher(['foo', 'for', 'bar'], ['f*', 'b*', '!x*'], {allPatterns: true}); //=> ['foo', 'for', 'bar']
237
+ * matcher(['foo', 'for', 'bar'], ['f*'], {allPatterns: true}); //=> []
238
+ *
239
+ * isMatch('unicorn', 'uni*'); //=> true
240
+ * isMatch('unicorn', '*corn'); //=> true
241
+ * isMatch('unicorn', 'un*rn'); //=> true
242
+ * isMatch('rainbow', '!unicorn'); //=> true
243
+ * isMatch('foo bar baz', 'foo b* b*'); //=> true
244
+ * isMatch('unicorn', 'uni\\*'); //=> false
245
+ * isMatch(['foo', 'bar'], 'f*'); //=> true
246
+ * isMatch(['foo', 'bar'], ['a*', 'b*']); //=> true
247
+ * isMatch('unicorn', ['']); //=> false
248
+ * isMatch('unicorn', []); //=> false
249
+ * isMatch([], 'bar'); //=> false
250
+ * isMatch([], []); //=> false
251
+ * isMatch('', ''); //=> true
252
+ * isMatch('UNICORN', 'UNI*', {caseSensitive: true}); //=> true
253
+ * isMatch('UNICORN', 'unicorn', {caseSensitive: true}); //=> false
254
+ * isMatch('unicorn', ['tri*', 'UNI*'], {caseSensitive: true}); //=> false
255
+ */
256
+ interface MatcherOptions {
257
+ caseSensitive?: boolean;
258
+ allPatterns?: boolean;
259
+ }
260
+ /**
261
+ * 接受inputs和patterns
262
+ * @param {string | string[]} inputs 待匹配的字符串或字符串数组
263
+ * @param {string | string[]} patterns 使用 * 作为通配符,! 作为否定
264
+ * @param {boolean} options.caseSensitive 不区分大小写,谨慎使用,一般情况都是需要区分大小的
265
+ * @param {boolean} options.allPatterns 所有否定的模式不匹配,而任何正常模式至少匹配一次;否则,将视为不匹配条件
266
+ * @returns an array of inputs filtered based on the patterns.
267
+ */
268
+ declare function matcher(inputs: string | string[], patterns: string | string[], options?: MatcherOptions): string[];
269
+ declare function isMatch(inputs: string | string[], patterns: string | string[], options?: MatcherOptions): boolean;
270
+ declare function escapeStringRegexp(value: string): string;
271
+
272
+ declare const regexpMap: {
273
+ mobile: RegExp;
274
+ tel: RegExp;
275
+ numAndLetter: RegExp;
276
+ password: RegExp;
277
+ email: RegExp;
278
+ postalCode: RegExp;
279
+ identityCard: RegExp;
280
+ ip: RegExp;
281
+ url: RegExp;
282
+ httpsUrl: RegExp;
283
+ domain: RegExp;
284
+ plateNumber: RegExp;
285
+ md5: RegExp;
286
+ base64: RegExp;
287
+ uuid: RegExp;
288
+ version: RegExp;
289
+ videoUrl: RegExp;
290
+ imageUrl: RegExp;
291
+ chinese: RegExp;
292
+ itcode: RegExp;
293
+ numeric: RegExp;
294
+ };
295
+
296
+ interface TreeHelperConfig {
297
+ id: string;
298
+ children: string;
299
+ pid: string;
300
+ }
301
+ declare function findNode<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T | null;
302
+ declare function findNodeAll<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T[];
303
+ declare function findPath<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T | T[] | null;
304
+ declare function findPathAll(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): any[][];
305
+ declare function filter<T = any>(tree: T[], func: (n: T) => boolean, config?: Partial<TreeHelperConfig>): T[];
306
+ declare function forEach<T = any>(tree: T[], func: (n: T) => any, config?: Partial<TreeHelperConfig>): void;
307
+ declare function treeMap<T = any>(treeData: T[], opt: {
308
+ children?: string;
309
+ conversion: Fn;
310
+ }): T[];
311
+ declare function treeMapEach(data: any, { children, conversion }: {
312
+ children?: string;
313
+ conversion: Fn;
314
+ }): any;
315
+
316
+ declare function buildUUID({ native }?: {
317
+ native?: boolean | undefined;
318
+ }): string;
319
+ declare function buildShortUUID(prefix?: string): string;
320
+
321
+ export { AesEncryption, type BEM, addClass, addLocationListener, addResizeListener, buildBEM, buildShortUUID, buildUUID, createBEM, createNamespace, createSearchReg, dataURLtoBlob, decodeByBase64, deepMerge, off as domOffEvent, on as domOnEvent, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadPercent, enableTransitions, encryptByBase64, encryptByMd5, escapeStringRegexp, extendSlots, filter as filterTree, findNode, findNodeAll, findPath, findPathAll, forEach as forEachTree, getActualWidthOfChars, getBoundingClientRect, getRawRoute, getSlot, getViewportOffset, hackCss, hasClass, is, isBrowser, isChineseText, isChrome, isClient, isIterableArray, isMatch, isNumeric, isObject, isPositiveInteger, isSafari, isServer, isSupportNativeEllipsis, isSupportResizeObserver, isUrl, loadScript, matcher, openWindow, regexpMap, removeClass, removeResizeListener, setCssVar, setObjToUrlParams, treeMap, treeMapEach, triggerWindowResize, unloadScript, unsetAllProperty, urlToBase64, useRafThrottle, withInstall };
@@ -0,0 +1,321 @@
1
+ export { titleCase } from 'title-case';
2
+ import { mode, pad } from 'crypto-js';
3
+ export { default as ResizeObserver } from 'resize-observer-polyfill';
4
+ export { pathToRegexp, compile as regexpToPath } from 'path-to-regexp';
5
+
6
+ declare const withInstall: (component: any, alias: string) => any;
7
+ declare function getRawRoute(route: any): any;
8
+ declare function openWindow(url: string, opt?: {
9
+ target?: string;
10
+ noopener?: boolean;
11
+ noreferrer?: boolean;
12
+ }): void;
13
+ /**
14
+ * 递归合并两个对象。
15
+ *
16
+ * @param source 要合并的源对象。
17
+ * @param target 目标对象,合并后结果存放于此。
18
+ * @param mergeArrays 如何合并数组。默认为replace。
19
+ * - "union": 对数组执行并集操作。
20
+ * - "intersection": 对数组执行交集操作。
21
+ * - "concat": 连接数组。
22
+ * - "replace": 用目标数组替换源数组。
23
+ * @returns 合并后的对象。
24
+ */
25
+ declare function deepMerge(source: any, target: any, mergeArrays?: string): any;
26
+ /**
27
+ * Add the object as a parameter to the URL
28
+ * @param baseUrl url
29
+ * @param obj
30
+ * @returns {string}
31
+ * eg:
32
+ * let obj = {a: '3', b: '4', c: ['1','2']}
33
+ * setObjToUrlParams('www.baidu.com', obj)
34
+ * ==>www.baidu.com?a=3&b=4&c=1,2
35
+ */
36
+ declare function setObjToUrlParams(baseUrl: string, obj: {
37
+ [x: string]: any;
38
+ }): string;
39
+ declare function unsetAllProperty(params: object): void;
40
+ declare function createSearchReg(key: string): RegExp;
41
+ declare function getActualWidthOfChars(text?: string, options?: {
42
+ size?: number;
43
+ family?: string;
44
+ }): number;
45
+
46
+ type Mod = string | {
47
+ [key: string]: any;
48
+ };
49
+ type Mods = Mod | Mod[];
50
+ type BEM = ReturnType<typeof createBEM>;
51
+ /**
52
+ * bem helper
53
+ * b() // 'button'
54
+ * b('text') // 'button__text'
55
+ * b({ disabled }) // 'button button--disabled'
56
+ * b('text', { disabled }) // 'button__text button__text--disabled'
57
+ * b(['disabled', 'primary']) // 'button button--disabled button--primary'
58
+ */
59
+ declare function buildBEM(name: string): (el?: Mods, mods?: Mods) => string;
60
+ declare function createBEM(name: string, prefixCls?: string): ((el?: Mods, mods?: Mods) => string)[];
61
+ declare function createNamespace(name: string, prefixCls?: string): readonly [string, (el?: Mods, mods?: Mods) => string];
62
+
63
+ interface Encryption {
64
+ encryptByAES: (plainText: string) => string;
65
+ decryptByAES: (cipherText: string) => string;
66
+ }
67
+ interface EncryptionParams {
68
+ key: string;
69
+ iv: string;
70
+ }
71
+ declare class AesEncryption implements Encryption {
72
+ private readonly key;
73
+ private readonly iv;
74
+ constructor({ key, iv }: EncryptionParams);
75
+ get getOptions(): {
76
+ mode: typeof mode.CTR;
77
+ padding: typeof pad.Pkcs7;
78
+ iv: CryptoJS.lib.WordArray;
79
+ };
80
+ encryptByAES(cipherText: string): string;
81
+ decryptByAES(cipherText: string): string;
82
+ }
83
+ declare function encryptByBase64(cipherText: string): string;
84
+ declare function decodeByBase64(cipherText: string): string;
85
+ declare function encryptByMd5(password: string): string;
86
+
87
+ interface ViewportOffsetResult {
88
+ /**
89
+ * 元素左边距离 body 左边的距离(和 getBoundingClientRect 的 left 一样)
90
+ */
91
+ left: number;
92
+ /**
93
+ * 元素顶边距离 body 顶边的距离(和 getBoundingClientRect 的 top 一样)
94
+ */
95
+ top: number;
96
+ /**
97
+ * 元素右边距离 body 右边的距离
98
+ */
99
+ right: number;
100
+ /**
101
+ * 元素底边距离 body 底边的距离
102
+ */
103
+ bottom: number;
104
+ /**
105
+ * 内容宽度 + 计算后的 right
106
+ */
107
+ rightIncludeBody: number;
108
+ /**
109
+ * 内容高度 + 计算后的 bottom
110
+ */
111
+ bottomIncludeBody: number;
112
+ }
113
+ declare function getBoundingClientRect(element: Element): DOMRect | number;
114
+ declare function hasClass(el: HTMLElement, cls: string): boolean;
115
+ declare function setCssVar(prop: string, val: string, dom: HTMLElement): {
116
+ prop: string;
117
+ };
118
+ declare function addClass(el: HTMLElement, cls: string): void;
119
+ declare function removeClass(el: HTMLElement, cls: string): void;
120
+ /**
121
+ * 获取当前元素的左上偏移
122
+ * left:最左边的元素到文档左边的距离
123
+ * top:元素顶部到文档顶部的距离
124
+ * right:元素最右边到文档右边的距离
125
+ * bottom:元素底部到文档底部的距离
126
+ * rightIncludeBody:文档最左边的元素到右边的距离
127
+ * bottomIncludeBody:元素底部到文档底部的距离
128
+ */
129
+ declare function getViewportOffset(element: HTMLElement): ViewportOffsetResult | Record<string, number>;
130
+ declare function hackCss(attr: string, value: any): any;
131
+ type EventTarget = Element | HTMLElement | Document | Window;
132
+ type EventListenerOrEventListenerObject = (evt: Event) => void | {
133
+ handleEvent: (evt: Event) => void;
134
+ };
135
+ declare function on(element: EventTarget, event: string, handler: EventListenerOrEventListenerObject): void;
136
+ declare function off(element: EventTarget, event: string, handler: EventListenerOrEventListenerObject): void;
137
+ declare function useRafThrottle(fn: () => any): (...args: any[]) => void;
138
+
139
+ declare function addResizeListener(element: any, fn: () => any): void;
140
+ declare function removeResizeListener(element: any, fn: () => any): void;
141
+ declare function triggerWindowResize(): void;
142
+ declare function addLocationListener(fn: () => void, options?: AddEventListenerOptions): {
143
+ removeListener: () => void;
144
+ };
145
+
146
+ /**
147
+ * @description: base64 to blob
148
+ */
149
+ declare function dataURLtoBlob(base64Buf: string): Blob;
150
+ /**
151
+ * img url to base64
152
+ * @param url
153
+ */
154
+ declare function urlToBase64(url: string, mineType?: string): Promise<string>;
155
+ declare function downloadPercent(event: ProgressEvent): number;
156
+ /**
157
+ * Download online pictures
158
+ * @param url
159
+ * @param filename
160
+ * @param mime
161
+ * @param bom
162
+ */
163
+ declare function downloadByOnlineUrl(url: string, filename: string, mime?: string, bom?: BlobPart): void;
164
+ /**
165
+ * Download file based on base64
166
+ * @param buf
167
+ * @param filename
168
+ * @param mime
169
+ * @param bom
170
+ */
171
+ declare function downloadByBase64(buf: string, filename: string, mime?: string, bom?: BlobPart): void;
172
+ /**
173
+ * Download according to the background interface file stream
174
+ * @param {*} data
175
+ * @param {*} filename
176
+ * @param {*} mime
177
+ * @param {*} bom
178
+ */
179
+ declare function downloadByData(data: BlobPart, filename: string, mime?: string, bom?: BlobPart): void;
180
+ /**
181
+ * Download file according to file address
182
+ * @param {*} sUrl
183
+ */
184
+ declare function downloadByUrl({ url, target, fileName }: {
185
+ url: string;
186
+ target?: TargetContext;
187
+ fileName?: string;
188
+ }): boolean;
189
+
190
+ declare function is(val: unknown, type: string): boolean;
191
+ declare function isObject(val: any): boolean;
192
+ declare function isUrl(path: string): boolean;
193
+ declare function isIterableArray(val: any): boolean;
194
+ declare function isPositiveInteger(num: any): boolean;
195
+ declare function isNumeric(str: string): boolean;
196
+ declare const isServer: boolean;
197
+ declare const isClient: boolean;
198
+ declare const isChrome: boolean;
199
+ declare const isSafari: boolean;
200
+ declare const isBrowser: boolean;
201
+ /** Whether the environment support -webkit-line-clamp. */
202
+ declare const isSupportNativeEllipsis: boolean;
203
+ /** Whether the environment support ResizeObserver. */
204
+ declare const isSupportResizeObserver: boolean;
205
+ declare const isChineseText: (text: string) => boolean;
206
+ declare const enableTransitions: () => boolean;
207
+
208
+ interface InternalSlots {
209
+ [name: string]: any;
210
+ }
211
+ /**
212
+ * @description: Get slot to prevent empty error
213
+ */
214
+ declare function getSlot(slots: Readonly<InternalSlots>, slot?: string, data?: any): any;
215
+ /**
216
+ * extends slots
217
+ * @param slots
218
+ * @param excludeKeys
219
+ */
220
+ declare function extendSlots(slots: Readonly<InternalSlots>, excludeKeys?: string[]): any;
221
+
222
+ declare function loadScript(src: string, { type }?: {
223
+ type?: string | undefined;
224
+ }): Promise<unknown>;
225
+ declare function unloadScript(src: string): Promise<void>;
226
+
227
+ /**
228
+ * 简单的通配符匹配工具, 可在换行符之间匹配 ==> foo*r will match foo\nbar.
229
+ * 如有更复杂的需求可参考 https://github.com/micromatch/micromatch
230
+ * https://github.com/sindresorhus/matcher
231
+ * matcher(['foo', 'bar', 'moo'], ['*oo', '!foo']); //=> ['moo']
232
+ * matcher(['foo', 'bar', 'moo'], ['!*oo']); //=> ['bar']
233
+ * matcher('moo', ['']); //=> []
234
+ * matcher('moo', []); //=> []
235
+ * matcher([''], ['']); //=> ['']
236
+ * matcher(['foo', 'for', 'bar'], ['f*', 'b*', '!x*'], {allPatterns: true}); //=> ['foo', 'for', 'bar']
237
+ * matcher(['foo', 'for', 'bar'], ['f*'], {allPatterns: true}); //=> []
238
+ *
239
+ * isMatch('unicorn', 'uni*'); //=> true
240
+ * isMatch('unicorn', '*corn'); //=> true
241
+ * isMatch('unicorn', 'un*rn'); //=> true
242
+ * isMatch('rainbow', '!unicorn'); //=> true
243
+ * isMatch('foo bar baz', 'foo b* b*'); //=> true
244
+ * isMatch('unicorn', 'uni\\*'); //=> false
245
+ * isMatch(['foo', 'bar'], 'f*'); //=> true
246
+ * isMatch(['foo', 'bar'], ['a*', 'b*']); //=> true
247
+ * isMatch('unicorn', ['']); //=> false
248
+ * isMatch('unicorn', []); //=> false
249
+ * isMatch([], 'bar'); //=> false
250
+ * isMatch([], []); //=> false
251
+ * isMatch('', ''); //=> true
252
+ * isMatch('UNICORN', 'UNI*', {caseSensitive: true}); //=> true
253
+ * isMatch('UNICORN', 'unicorn', {caseSensitive: true}); //=> false
254
+ * isMatch('unicorn', ['tri*', 'UNI*'], {caseSensitive: true}); //=> false
255
+ */
256
+ interface MatcherOptions {
257
+ caseSensitive?: boolean;
258
+ allPatterns?: boolean;
259
+ }
260
+ /**
261
+ * 接受inputs和patterns
262
+ * @param {string | string[]} inputs 待匹配的字符串或字符串数组
263
+ * @param {string | string[]} patterns 使用 * 作为通配符,! 作为否定
264
+ * @param {boolean} options.caseSensitive 不区分大小写,谨慎使用,一般情况都是需要区分大小的
265
+ * @param {boolean} options.allPatterns 所有否定的模式不匹配,而任何正常模式至少匹配一次;否则,将视为不匹配条件
266
+ * @returns an array of inputs filtered based on the patterns.
267
+ */
268
+ declare function matcher(inputs: string | string[], patterns: string | string[], options?: MatcherOptions): string[];
269
+ declare function isMatch(inputs: string | string[], patterns: string | string[], options?: MatcherOptions): boolean;
270
+ declare function escapeStringRegexp(value: string): string;
271
+
272
+ declare const regexpMap: {
273
+ mobile: RegExp;
274
+ tel: RegExp;
275
+ numAndLetter: RegExp;
276
+ password: RegExp;
277
+ email: RegExp;
278
+ postalCode: RegExp;
279
+ identityCard: RegExp;
280
+ ip: RegExp;
281
+ url: RegExp;
282
+ httpsUrl: RegExp;
283
+ domain: RegExp;
284
+ plateNumber: RegExp;
285
+ md5: RegExp;
286
+ base64: RegExp;
287
+ uuid: RegExp;
288
+ version: RegExp;
289
+ videoUrl: RegExp;
290
+ imageUrl: RegExp;
291
+ chinese: RegExp;
292
+ itcode: RegExp;
293
+ numeric: RegExp;
294
+ };
295
+
296
+ interface TreeHelperConfig {
297
+ id: string;
298
+ children: string;
299
+ pid: string;
300
+ }
301
+ declare function findNode<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T | null;
302
+ declare function findNodeAll<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T[];
303
+ declare function findPath<T = any>(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): T | T[] | null;
304
+ declare function findPathAll(tree: any, func: Fn, config?: Partial<TreeHelperConfig>): any[][];
305
+ declare function filter<T = any>(tree: T[], func: (n: T) => boolean, config?: Partial<TreeHelperConfig>): T[];
306
+ declare function forEach<T = any>(tree: T[], func: (n: T) => any, config?: Partial<TreeHelperConfig>): void;
307
+ declare function treeMap<T = any>(treeData: T[], opt: {
308
+ children?: string;
309
+ conversion: Fn;
310
+ }): T[];
311
+ declare function treeMapEach(data: any, { children, conversion }: {
312
+ children?: string;
313
+ conversion: Fn;
314
+ }): any;
315
+
316
+ declare function buildUUID({ native }?: {
317
+ native?: boolean | undefined;
318
+ }): string;
319
+ declare function buildShortUUID(prefix?: string): string;
320
+
321
+ export { AesEncryption, type BEM, addClass, addLocationListener, addResizeListener, buildBEM, buildShortUUID, buildUUID, createBEM, createNamespace, createSearchReg, dataURLtoBlob, decodeByBase64, deepMerge, off as domOffEvent, on as domOnEvent, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadPercent, enableTransitions, encryptByBase64, encryptByMd5, escapeStringRegexp, extendSlots, filter as filterTree, findNode, findNodeAll, findPath, findPathAll, forEach as forEachTree, getActualWidthOfChars, getBoundingClientRect, getRawRoute, getSlot, getViewportOffset, hackCss, hasClass, is, isBrowser, isChineseText, isChrome, isClient, isIterableArray, isMatch, isNumeric, isObject, isPositiveInteger, isSafari, isServer, isSupportNativeEllipsis, isSupportResizeObserver, isUrl, loadScript, matcher, openWindow, regexpMap, removeClass, removeResizeListener, setCssVar, setObjToUrlParams, treeMap, treeMapEach, triggerWindowResize, unloadScript, unsetAllProperty, urlToBase64, useRafThrottle, withInstall };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var mt=Object.create;var le=Object.defineProperty,yt=Object.defineProperties,xt=Object.getOwnPropertyDescriptor,_t=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,wt=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable;var Le=(e,t,r)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))pe.call(t,r)&&Le(e,r,t[r]);if(G)for(var r of G(t))$e.call(t,r)&&Le(e,r,t[r]);return e},K=(e,t)=>yt(e,_t(t));var he=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Fe=(e,t)=>{var r={};for(var n in e)pe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G)for(var n of G(e))t.indexOf(n)<0&&$e.call(e,n)&&(r[n]=e[n]);return r};var Ct=(e,t)=>()=>(e&&(t=e(e=0)),t);var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of gt(t))!pe.call(e,s)&&s!==r&&le(e,s,{get:()=>t[s],enumerable:!(n=xt(t,s))||n.enumerable});return e};var J=(e,t,r)=>(r=e!=null?mt(wt(e)):{},Bt(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e));var k=Ct(()=>{});var M=I((X,Te)=>{k();(function(e,t){typeof X=="object"?Te.exports=X=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(X,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof he=="function")try{n=he("crypto")}catch(i){}var s=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(o){var m;return i.prototype=o,m=new i,i.prototype=null,m}}(),d={},a=d.lib={},S=a.Base=function(){return{extend:function(i){var o=c(this);return i&&o.mixIn(i),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments)}),o.init.prototype=o,o.$super=this,o},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=a.WordArray=S.extend({init:function(i,o){i=this.words=i||[],o!=r?this.sigBytes=o:this.sigBytes=i.length*4},toString:function(i){return(i||b).stringify(this)},concat:function(i){var o=this.words,m=i.words,x=this.sigBytes,z=i.sigBytes;if(this.clamp(),x%4)for(var L=0;L<z;L++){var O=m[L>>>2]>>>24-L%4*8&255;o[x+L>>>2]|=O<<24-(x+L)%4*8}else for(var A=0;A<z;A+=4)o[x+A>>>2]=m[A>>>2];return this.sigBytes+=z,this},clamp:function(){var i=this.words,o=this.sigBytes;i[o>>>2]&=4294967295<<32-o%4*8,i.length=t.ceil(o/4)},clone:function(){var i=S.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var o=[],m=0;m<i;m+=4)o.push(s());return new g.init(o,i)}}),y=d.enc={},b=y.Hex={stringify:function(i){for(var o=i.words,m=i.sigBytes,x=[],z=0;z<m;z++){var L=o[z>>>2]>>>24-z%4*8&255;x.push((L>>>4).toString(16)),x.push((L&15).toString(16))}return x.join("")},parse:function(i){for(var o=i.length,m=[],x=0;x<o;x+=2)m[x>>>3]|=parseInt(i.substr(x,2),16)<<24-x%8*4;return new g.init(m,o/2)}},w=y.Latin1={stringify:function(i){for(var o=i.words,m=i.sigBytes,x=[],z=0;z<m;z++){var L=o[z>>>2]>>>24-z%4*8&255;x.push(String.fromCharCode(L))}return x.join("")},parse:function(i){for(var o=i.length,m=[],x=0;x<o;x++)m[x>>>2]|=(i.charCodeAt(x)&255)<<24-x%4*8;return new g.init(m,o)}},C=y.Utf8={stringify:function(i){try{return decodeURIComponent(escape(w.stringify(i)))}catch(o){throw new Error("Malformed UTF-8 data")}},parse:function(i){return w.parse(unescape(encodeURIComponent(i)))}},B=a.BufferedBlockAlgorithm=S.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=C.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var o,m=this._data,x=m.words,z=m.sigBytes,L=this.blockSize,O=L*4,A=z/O;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var P=A*L,H=t.min(P*4,z);if(P){for(var f=0;f<P;f+=L)this._doProcessBlock(x,f);o=x.splice(0,P),m.sigBytes-=H}return new g.init(o,H)},clone:function(){var i=S.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),F=a.Hasher=B.extend({cfg:S.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){B.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(i){return function(o,m){return new i.init(m).finalize(o)}},_createHmacHelper:function(i){return function(o,m){return new D.HMAC.init(i,m).finalize(o)}}}),D=d.algo={};return d}(Math);return e})});var Be=I((ee,We)=>{k();(function(e,t){typeof ee=="object"?We.exports=ee=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ee,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,c=s.Base64={stringify:function(a){var S=a.words,g=a.sigBytes,y=this._map;a.clamp();for(var b=[],w=0;w<g;w+=3)for(var C=S[w>>>2]>>>24-w%4*8&255,B=S[w+1>>>2]>>>24-(w+1)%4*8&255,F=S[w+2>>>2]>>>24-(w+2)%4*8&255,D=C<<16|B<<8|F,i=0;i<4&&w+i*.75<g;i++)b.push(y.charAt(D>>>6*(3-i)&63));var o=y.charAt(64);if(o)for(;b.length%4;)b.push(o);return b.join("")},parse:function(a){var S=a.length,g=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var b=0;b<g.length;b++)y[g.charCodeAt(b)]=b}var w=g.charAt(64);if(w){var C=a.indexOf(w);C!==-1&&(S=C)}return d(a,S,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(a,S,g){for(var y=[],b=0,w=0;w<S;w++)if(w%4){var C=g[a.charCodeAt(w-1)]<<w%4*2,B=g[a.charCodeAt(w)]>>>6-w%4*2,F=C|B;y[b>>>2]|=F<<24-b%4*8,b++}return n.create(y,b)}}(),e.enc.Base64})});var be=I((te,Ue)=>{k();(function(e,t){typeof te=="object"?Ue.exports=te=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(te,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,c=n.Hasher,d=r.algo,a=[];(function(){for(var C=0;C<64;C++)a[C]=t.abs(t.sin(C+1))*4294967296|0})();var S=d.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,B){for(var F=0;F<16;F++){var D=B+F,i=C[D];C[D]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,m=C[B+0],x=C[B+1],z=C[B+2],L=C[B+3],O=C[B+4],A=C[B+5],P=C[B+6],H=C[B+7],f=C[B+8],_=C[B+9],E=C[B+10],l=C[B+11],$=C[B+12],R=C[B+13],U=C[B+14],N=C[B+15],u=o[0],p=o[1],h=o[2],v=o[3];u=g(u,p,h,v,m,7,a[0]),v=g(v,u,p,h,x,12,a[1]),h=g(h,v,u,p,z,17,a[2]),p=g(p,h,v,u,L,22,a[3]),u=g(u,p,h,v,O,7,a[4]),v=g(v,u,p,h,A,12,a[5]),h=g(h,v,u,p,P,17,a[6]),p=g(p,h,v,u,H,22,a[7]),u=g(u,p,h,v,f,7,a[8]),v=g(v,u,p,h,_,12,a[9]),h=g(h,v,u,p,E,17,a[10]),p=g(p,h,v,u,l,22,a[11]),u=g(u,p,h,v,$,7,a[12]),v=g(v,u,p,h,R,12,a[13]),h=g(h,v,u,p,U,17,a[14]),p=g(p,h,v,u,N,22,a[15]),u=y(u,p,h,v,x,5,a[16]),v=y(v,u,p,h,P,9,a[17]),h=y(h,v,u,p,l,14,a[18]),p=y(p,h,v,u,m,20,a[19]),u=y(u,p,h,v,A,5,a[20]),v=y(v,u,p,h,E,9,a[21]),h=y(h,v,u,p,N,14,a[22]),p=y(p,h,v,u,O,20,a[23]),u=y(u,p,h,v,_,5,a[24]),v=y(v,u,p,h,U,9,a[25]),h=y(h,v,u,p,L,14,a[26]),p=y(p,h,v,u,f,20,a[27]),u=y(u,p,h,v,R,5,a[28]),v=y(v,u,p,h,z,9,a[29]),h=y(h,v,u,p,H,14,a[30]),p=y(p,h,v,u,$,20,a[31]),u=b(u,p,h,v,A,4,a[32]),v=b(v,u,p,h,f,11,a[33]),h=b(h,v,u,p,l,16,a[34]),p=b(p,h,v,u,U,23,a[35]),u=b(u,p,h,v,x,4,a[36]),v=b(v,u,p,h,O,11,a[37]),h=b(h,v,u,p,H,16,a[38]),p=b(p,h,v,u,E,23,a[39]),u=b(u,p,h,v,R,4,a[40]),v=b(v,u,p,h,m,11,a[41]),h=b(h,v,u,p,L,16,a[42]),p=b(p,h,v,u,P,23,a[43]),u=b(u,p,h,v,_,4,a[44]),v=b(v,u,p,h,$,11,a[45]),h=b(h,v,u,p,N,16,a[46]),p=b(p,h,v,u,z,23,a[47]),u=w(u,p,h,v,m,6,a[48]),v=w(v,u,p,h,H,10,a[49]),h=w(h,v,u,p,U,15,a[50]),p=w(p,h,v,u,A,21,a[51]),u=w(u,p,h,v,$,6,a[52]),v=w(v,u,p,h,L,10,a[53]),h=w(h,v,u,p,E,15,a[54]),p=w(p,h,v,u,x,21,a[55]),u=w(u,p,h,v,f,6,a[56]),v=w(v,u,p,h,N,10,a[57]),h=w(h,v,u,p,P,15,a[58]),p=w(p,h,v,u,R,21,a[59]),u=w(u,p,h,v,O,6,a[60]),v=w(v,u,p,h,l,10,a[61]),h=w(h,v,u,p,z,15,a[62]),p=w(p,h,v,u,_,21,a[63]),o[0]=o[0]+u|0,o[1]=o[1]+p|0,o[2]=o[2]+h|0,o[3]=o[3]+v|0},_doFinalize:function(){var C=this._data,B=C.words,F=this._nDataBytes*8,D=C.sigBytes*8;B[D>>>5]|=128<<24-D%32;var i=t.floor(F/4294967296),o=F;B[(D+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,B[(D+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,C.sigBytes=(B.length+1)*4,this._process();for(var m=this._hash,x=m.words,z=0;z<4;z++){var L=x[z];x[z]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return m},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function g(C,B,F,D,i,o,m){var x=C+(B&F|~B&D)+i+m;return(x<<o|x>>>32-o)+B}function y(C,B,F,D,i,o,m){var x=C+(B&D|F&~D)+i+m;return(x<<o|x>>>32-o)+B}function b(C,B,F,D,i,o,m){var x=C+(B^F^D)+i+m;return(x<<o|x>>>32-o)+B}function w(C,B,F,D,i,o,m){var x=C+(F^(B|~D))+i+m;return(x<<o|x>>>32-o)+B}r.MD5=c._createHelper(S),r.HmacMD5=c._createHmacHelper(S)}(Math),e.MD5})});var Ie=I((re,Ne)=>{k();(function(e,t){typeof re=="object"?Ne.exports=re=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(re,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=r.Hasher,c=t.algo,d=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,g){for(var y=this._hash.words,b=y[0],w=y[1],C=y[2],B=y[3],F=y[4],D=0;D<80;D++){if(D<16)d[D]=S[g+D]|0;else{var i=d[D-3]^d[D-8]^d[D-14]^d[D-16];d[D]=i<<1|i>>>31}var o=(b<<5|b>>>27)+F+d[D];D<20?o+=(w&C|~w&B)+1518500249:D<40?o+=(w^C^B)+1859775393:D<60?o+=(w&C|w&B|C&B)-1894007588:o+=(w^C^B)-899497514,F=B,B=C,C=w<<30|w>>>2,w=b,b=o}y[0]=y[0]+b|0,y[1]=y[1]+w|0,y[2]=y[2]+C|0,y[3]=y[3]+B|0,y[4]=y[4]+F|0},_doFinalize:function(){var S=this._data,g=S.words,y=this._nDataBytes*8,b=S.sigBytes*8;return g[b>>>5]|=128<<24-b%32,g[(b+64>>>9<<4)+14]=Math.floor(y/4294967296),g[(b+64>>>9<<4)+15]=y,S.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});t.SHA1=s._createHelper(a),t.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})});var je=I((ne,Me)=>{k();(function(e,t){typeof ne=="object"?Me.exports=ne=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ne,function(e){(function(){var t=e,r=t.lib,n=r.Base,s=t.enc,c=s.Utf8,d=t.algo,a=d.HMAC=n.extend({init:function(S,g){S=this._hasher=new S.init,typeof g=="string"&&(g=c.parse(g));var y=S.blockSize,b=y*4;g.sigBytes>b&&(g=S.finalize(g)),g.clamp();for(var w=this._oKey=g.clone(),C=this._iKey=g.clone(),B=w.words,F=C.words,D=0;D<y;D++)B[D]^=1549556828,F[D]^=909522486;w.sigBytes=C.sigBytes=b,this.reset()},reset:function(){var S=this._hasher;S.reset(),S.update(this._iKey)},update:function(S){return this._hasher.update(S),this},finalize:function(S){var g=this._hasher,y=g.finalize(S);g.reset();var b=g.finalize(this._oKey.clone().concat(y));return b}})})()})});var Se=I((ie,qe)=>{k();(function(e,t,r){typeof ie=="object"?qe.exports=ie=t(M(),Ie(),je()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(ie,function(e){return function(){var t=e,r=t.lib,n=r.Base,s=r.WordArray,c=t.algo,d=c.MD5,a=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:1}),init:function(S){this.cfg=this.cfg.extend(S)},compute:function(S,g){for(var y,b=this.cfg,w=b.hasher.create(),C=s.create(),B=C.words,F=b.keySize,D=b.iterations;B.length<F;){y&&w.update(y),y=w.update(S).finalize(g),w.reset();for(var i=1;i<D;i++)y=w.finalize(y),w.reset();C.concat(y)}return C.sigBytes=F*4,C}});t.EvpKDF=function(S,g,y){return a.create(y).compute(S,g)}}(),e.EvpKDF})});var ae=I((oe,Ke)=>{k();(function(e,t,r){typeof oe=="object"?Ke.exports=oe=t(M(),Se()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(oe,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,s=n.Base,c=n.WordArray,d=n.BufferedBlockAlgorithm,a=r.enc,S=a.Utf8,g=a.Base64,y=r.algo,b=y.EvpKDF,w=n.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(f,_){return this.create(this._ENC_XFORM_MODE,f,_)},createDecryptor:function(f,_){return this.create(this._DEC_XFORM_MODE,f,_)},init:function(f,_,E){this.cfg=this.cfg.extend(E),this._xformMode=f,this._key=_,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(f){return this._append(f),this._process()},finalize:function(f){f&&this._append(f);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function f(_){return typeof _=="string"?H:O}return function(_){return{encrypt:function(E,l,$){return f(l).encrypt(_,E,l,$)},decrypt:function(E,l,$){return f(l).decrypt(_,E,l,$)}}}}()}),C=n.StreamCipher=w.extend({_doFinalize:function(){var f=this._process(!0);return f},blockSize:1}),B=r.mode={},F=n.BlockCipherMode=s.extend({createEncryptor:function(f,_){return this.Encryptor.create(f,_)},createDecryptor:function(f,_){return this.Decryptor.create(f,_)},init:function(f,_){this._cipher=f,this._iv=_}}),D=B.CBC=function(){var f=F.extend();f.Encryptor=f.extend({processBlock:function(E,l){var $=this._cipher,R=$.blockSize;_.call(this,E,l,R),$.encryptBlock(E,l),this._prevBlock=E.slice(l,l+R)}}),f.Decryptor=f.extend({processBlock:function(E,l){var $=this._cipher,R=$.blockSize,U=E.slice(l,l+R);$.decryptBlock(E,l),_.call(this,E,l,R),this._prevBlock=U}});function _(E,l,$){var R,U=this._iv;U?(R=U,this._iv=t):R=this._prevBlock;for(var N=0;N<$;N++)E[l+N]^=R[N]}return f}(),i=r.pad={},o=i.Pkcs7={pad:function(f,_){for(var E=_*4,l=E-f.sigBytes%E,$=l<<24|l<<16|l<<8|l,R=[],U=0;U<l;U+=4)R.push($);var N=c.create(R,l);f.concat(N)},unpad:function(f){var _=f.words[f.sigBytes-1>>>2]&255;f.sigBytes-=_}},m=n.BlockCipher=w.extend({cfg:w.cfg.extend({mode:D,padding:o}),reset:function(){var f;w.reset.call(this);var _=this.cfg,E=_.iv,l=_.mode;this._xformMode==this._ENC_XFORM_MODE?f=l.createEncryptor:(f=l.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==f?this._mode.init(this,E&&E.words):(this._mode=f.call(l,this,E&&E.words),this._mode.__creator=f)},_doProcessBlock:function(f,_){this._mode.processBlock(f,_)},_doFinalize:function(){var f,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),f=this._process(!0)):(f=this._process(!0),_.unpad(f)),f},blockSize:128/32}),x=n.CipherParams=s.extend({init:function(f){this.mixIn(f)},toString:function(f){return(f||this.formatter).stringify(this)}}),z=r.format={},L=z.OpenSSL={stringify:function(f){var _,E=f.ciphertext,l=f.salt;return l?_=c.create([1398893684,1701076831]).concat(l).concat(E):_=E,_.toString(g)},parse:function(f){var _,E=g.parse(f),l=E.words;return l[0]==1398893684&&l[1]==1701076831&&(_=c.create(l.slice(2,4)),l.splice(0,4),E.sigBytes-=16),x.create({ciphertext:E,salt:_})}},O=n.SerializableCipher=s.extend({cfg:s.extend({format:L}),encrypt:function(f,_,E,l){l=this.cfg.extend(l);var $=f.createEncryptor(E,l),R=$.finalize(_),U=$.cfg;return x.create({ciphertext:R,key:E,iv:U.iv,algorithm:f,mode:U.mode,padding:U.padding,blockSize:f.blockSize,formatter:l.format})},decrypt:function(f,_,E,l){l=this.cfg.extend(l),_=this._parse(_,l.format);var $=f.createDecryptor(E,l).finalize(_.ciphertext);return $},_parse:function(f,_){return typeof f=="string"?_.parse(f,this):f}}),A=r.kdf={},P=A.OpenSSL={execute:function(f,_,E,l,$){if(l||(l=c.random(64/8)),$)var R=b.create({keySize:_+E,hasher:$}).compute(f,l);else var R=b.create({keySize:_+E}).compute(f,l);var U=c.create(R.words.slice(_),E*4);return R.sigBytes=_*4,x.create({key:R,iv:U,salt:l})}},H=n.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:P}),encrypt:function(f,_,E,l){l=this.cfg.extend(l);var $=l.kdf.execute(E,f.keySize,f.ivSize,l.salt,l.hasher);l.iv=$.iv;var R=O.encrypt.call(this,f,_,$.key,l);return R.mixIn($),R},decrypt:function(f,_,E,l){l=this.cfg.extend(l),_=this._parse(_,l.format);var $=l.kdf.execute(E,f.keySize,f.ivSize,_.salt,l.hasher);l.iv=$.iv;var R=O.decrypt.call(this,f,_,$.key,l);return R}})}()})});var Ze=I((se,Je)=>{k();(function(e,t,r){typeof se=="object"?Je.exports=se=t(M(),Be(),be(),Se(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(se,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,s=t.algo,c=[],d=[],a=[],S=[],g=[],y=[],b=[],w=[],C=[],B=[];(function(){for(var i=[],o=0;o<256;o++)o<128?i[o]=o<<1:i[o]=o<<1^283;for(var m=0,x=0,o=0;o<256;o++){var z=x^x<<1^x<<2^x<<3^x<<4;z=z>>>8^z&255^99,c[m]=z,d[z]=m;var L=i[m],O=i[L],A=i[O],P=i[z]*257^z*16843008;a[m]=P<<24|P>>>8,S[m]=P<<16|P>>>16,g[m]=P<<8|P>>>24,y[m]=P;var P=A*16843009^O*65537^L*257^m*16843008;b[z]=P<<24|P>>>8,w[z]=P<<16|P>>>16,C[z]=P<<8|P>>>24,B[z]=P,m?(m=L^i[i[i[A^L]]],x^=i[i[x]]):m=x=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],D=s.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var o=this._keyPriorReset=this._key,m=o.words,x=o.sigBytes/4,z=this._nRounds=x+6,L=(z+1)*4,O=this._keySchedule=[],A=0;A<L;A++)A<x?O[A]=m[A]:(i=O[A-1],A%x?x>6&&A%x==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=F[A/x|0]<<24),O[A]=O[A-x]^i);for(var P=this._invKeySchedule=[],H=0;H<L;H++){var A=L-H;if(H%4)var i=O[A];else var i=O[A-4];H<4||A<=4?P[H]=i:P[H]=b[c[i>>>24]]^w[c[i>>>16&255]]^C[c[i>>>8&255]]^B[c[i&255]]}}},encryptBlock:function(i,o){this._doCryptBlock(i,o,this._keySchedule,a,S,g,y,c)},decryptBlock:function(i,o){var m=i[o+1];i[o+1]=i[o+3],i[o+3]=m,this._doCryptBlock(i,o,this._invKeySchedule,b,w,C,B,d);var m=i[o+1];i[o+1]=i[o+3],i[o+3]=m},_doCryptBlock:function(i,o,m,x,z,L,O,A){for(var P=this._nRounds,H=i[o]^m[0],f=i[o+1]^m[1],_=i[o+2]^m[2],E=i[o+3]^m[3],l=4,$=1;$<P;$++){var R=x[H>>>24]^z[f>>>16&255]^L[_>>>8&255]^O[E&255]^m[l++],U=x[f>>>24]^z[_>>>16&255]^L[E>>>8&255]^O[H&255]^m[l++],N=x[_>>>24]^z[E>>>16&255]^L[H>>>8&255]^O[f&255]^m[l++],u=x[E>>>24]^z[H>>>16&255]^L[f>>>8&255]^O[_&255]^m[l++];H=R,f=U,_=N,E=u}var R=(A[H>>>24]<<24|A[f>>>16&255]<<16|A[_>>>8&255]<<8|A[E&255])^m[l++],U=(A[f>>>24]<<24|A[_>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^m[l++],N=(A[_>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[f&255])^m[l++],u=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[f>>>8&255]<<8|A[_&255])^m[l++];i[o]=R,i[o+1]=U,i[o+2]=N,i[o+3]=u},keySize:256/32});t.AES=n._createHelper(D)}(),e.AES})});var Ge=I((ce,Ve)=>{k();(function(e,t){typeof ce=="object"?Ve.exports=ce=t(M()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ce,function(e){return e.enc.Utf8})});var Qe=I((fe,Ye)=>{k();(function(e,t,r){typeof fe=="object"?Ye.exports=fe=t(M(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(fe,function(e){return e.pad.Pkcs7})});var et=I((ue,Xe)=>{k();(function(e,t,r){typeof ue=="object"?Xe.exports=ue=t(M(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ue,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});k();import{titleCase as Un}from"title-case";k();import{isPlainObject as Rt,mergeWith as Pt,isArray as Pe,isEqual as Oe,intersectionWith as Ot,unionWith as Ht}from"lodash-es";k();k();import{pathToRegexp as bt,compile as St}from"path-to-regexp";var V={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var Et=Object.prototype.toString;function Re(e,t){return Et.call(e)===`[object ${t}]`}function Y(e){return e!==null&&Re(e,"Object")}function At(e){return V.url.test(e)}function ve(e){return Array.isArray(e)&&e.length>0}function kt(e){return Number.isInteger(e)&&e>=0}function Dt(e){return V.numeric.test(e)}var Q=typeof window=="undefined",me=!Q,ye=me&&window.navigator.userAgent.toLowerCase().includes("chrome"),xe=me&&window.navigator.userAgent.toLowerCase().includes("safari"),_e=typeof window!="undefined"&&typeof document!="undefined",zt=_e&&typeof document.body.style.lineClamp!="undefined",Lt=_e&&typeof ResizeObserver!="undefined",$t=e=>V.chinese.test(e),Ft=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Tt=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function Wt(e){if(!e)return e;let n=e,{matched:t}=n,r=Fe(n,["matched"]);return K(j({},r),{matched:t?t.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function ge(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=t||{},c=[];n&&c.push("noopener=yes"),s&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function He(e,t,r="replace"){return t?e?Pt(e,t,(n,s)=>{if(Pe(s)&&Pe(n))switch(r){case"union":return Ht(n,s,Oe);case"intersection":return Ot(n,s,Oe);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(Y(s)&&Y(n))return He(n,s,r)}):t:e}function Ut(e,t){if(!ve(Object.keys(t)))return e;let r="";for(let n in t){let s=t[n];Array.isArray(s)?r+=`${n}=${encodeURIComponent(s.join(","))}&`:r+=`${n}=${encodeURIComponent(s)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function Nt(e){Rt(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function It(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function Mt(e){let r=["",...[...e].map(n=>It(n)),""].join(".*");return new RegExp(r,"i")}function jt(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let d=c.measureText(e),a=Math.abs(d.actualBoundingBoxLeft)+Math.abs(d.actualBoundingBoxRight);return Math.ceil(Math.max(d.width,a))}k();function we(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+we(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?we(e,n):""),""):""}function Ce(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${we(t,r)}`)}function qt(e,t=""){return[Ce(`${t}-${e}`)]}function Kt(e,t=""){let r=`${t}-${e}`;return[r,Ce(r)]}k();var de=J(Ze(),1),q=J(Ge(),1),tt=J(Qe(),1),rt=J(et(),1),nt=J(be(),1),Ae=J(Be(),1),Ee=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,q.parse)(r)),n&&(this.iv=(0,q.parse)(n))}get getOptions(){return{mode:rt.default,padding:tt.default,iv:this.iv}}encryptByAES(t){return(0,de.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,de.decrypt)(t,this.key,this.getOptions).toString(q.default)}};function Jt(e){return q.default.parse(e).toString(Ae.default)}function Zt(e){return Ae.default.parse(e).toString(q.default)}function Vt(e){return(0,nt.default)(e).toString()}k();import{upperFirst as Gt}from"lodash-es";var Yt=()=>document.documentElement;function it(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Qt(e){return(e||"").replace(/^\s+|\s+$/g,"")}function ke(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function Xt(e,t,r){return r||(r=Yt()),r.style.setProperty(e,t),{prop:t}}function er(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let s=0,c=n.length;s<c;s++){let d=n[s];d&&(e.classList?e.classList.add(d):ke(e,d)||(r+=` ${d}`))}e.classList||(e.className=r)}function tr(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let s=0,c=r.length;s<c;s++){let d=r[s];d&&(e.classList?e.classList.remove(d):ke(e,d)&&(n=n.replace(` ${d} `," ")))}e.classList||(e.className=Qt(n))}function rr(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,s=t.clientLeft,c=t.clientTop,d=window.scrollX,a=window.scrollY,S=it(e);if(!S)return{};let{left:g,top:y,width:b,height:w}=S,C=(d||r)-(s||0),B=(a||n)-(c||0),F=g+d,D=y+a,i=F-C,o=D-B,m=window.document.documentElement.clientWidth,x=window.document.documentElement.clientHeight;return{left:i,top:o,right:m-b-i,bottom:x-w-o,rightIncludeBody:m-i,bottomIncludeBody:x-o}}function nr(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${Gt(e)}`]=t}),K(j({},n),{[e]:t})}function ir(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function or(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function ar(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();import ot from"resize-observer-polyfill";function sr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function cr(e,t){Q||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ot(sr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function fr(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function ur(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function dr(e,t={}){function r(n){let s=window.history[n];return function(...c){let d=new Event(n);return d.arguments=c,window.dispatchEvent(d),s.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}k();import{round as lr,isNil as pr}from"lodash-es";function at(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),c=s.length,d=new Uint8Array(c);for(;c--;)d[c]=s.charCodeAt(c);return new Blob([d],{type:n})}function st(e,t){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),c=s.getContext("2d"),d=new Image;d.crossOrigin="",d.onload=function(){if(!s||!c)return n();s.height=d.height,s.width=d.width,c.drawImage(d,0,0);let a=s.toDataURL(t||"image/png");s=null,r(a)},d.src=e})}function hr(e){let{loaded:t,total:r}=e;if(r<=0||pr(r))return 0;let n=t/r;return lr((n>1?1:n)*100)}function vr(e,t,r,n){st(e).then(s=>{ct(s,t,r,n)})}function ct(e,t,r,n){let s=at(e);ft(s,t,r,n)}function ft(e,t,r,n){let s=typeof n!="undefined"?[n,e]:[e],c=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let d=window.URL.createObjectURL(c),a=document.createElement("a");a.style.display="none",a.href=d,a.setAttribute("download",t),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(d)}}function mr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(ye||xe){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),ge(e,{target:t}),!0}k();import{isFunction as yr}from"lodash-es";function ut(e,t="default",r){if(!e||!Reflect.has(e,t)||!yr(e[t]))return null;let n=e[t];return n?n(r):null}function xr(e,t=[]){let r=Object.keys(e),n={};return r.forEach(s=>{if(t.includes(s))return null;n[s]=c=>ut(e,s,c)}),n}k();function _r(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,s=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded",!0),r({el:c})}),s&&document.head.appendChild(c)})}function gr(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function wr(e,t,r){return pt(e,t,r,!1)}function Cr(e,t,r){return pt(e,t,r,!0).length>0}function lt(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var De=new Map;function dt(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Br(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(De.has(r))return De.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=lt(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return s.negated=n,De.set(r,s),s}function pt(e,t,r,n){if(e=dt(e,"inputs"),t=dt(t,"patterns"),t.length===0)return[];t=t.map(d=>Br(d,r));let{allPatterns:s}=r||{},c=[];for(let d of e){let a,S=[...t].fill(!1);for(let[g,y]of t.entries())if(y.test(d)&&(S[g]=!0,a=!y.negated,!a))break;if(!(a===!1||a===void 0&&t.some(g=>!g.negated)||s&&S.some((g,y)=>!g&&!t[y].negated))&&(c.push(d),n))break}return c}k();var br={id:"id",children:"children",pid:"pid"},Z=e=>Object.assign({},br,e);function Sr(e,t,r={}){r=Z(r);let{children:n}=r,s=[...e];for(let c of s){if(t(c))return c;c[n]&&s.push(...c[n])}return null}function Er(e,t,r={}){r=Z(r);let{children:n}=r,s=[...e],c=[];for(let d of s)t(d)&&c.push(d),d[n]&&s.push(...d[n]);return c}function Ar(e,t,r={}){r=Z(r);let n=[],s=[...e],c=new Set,{children:d}=r;for(;s.length;){let a=s[0];if(c.has(a))n.pop(),s.shift();else if(c.add(a),a[d]&&s.unshift(...a[d]),n.push(a),t(a))return n}return null}function kr(e,t,r={}){r=Z(r);let n=[],s=[...e],c=[],d=new Set,{children:a}=r;for(;s.length;){let S=s[0];d.has(S)?(n.pop(),s.shift()):(d.add(S),S[a]&&s.unshift(...S[a]),n.push(S),t(S)&&c.push([...n]))}return c}function Dr(e,t,r={}){r=Z(r);let n=r.children;function s(c){return c.map(d=>j({},d)).filter(d=>(d[n]=d[n]&&s(d[n]),t(d)||d[n]&&d[n].length))}return s(e)}function zr(e,t,r={}){r=Z(r);let n=[...e],{children:s}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;s&&n[c][s]&&n.splice(c+1,0,...n[c][s])}}function Lr(e,t){return e.map(r=>ze(r,t))}function ze(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,s=r(e)||{};return n?K(j({},s),{[t]:e[t].map(c=>ze(c,{children:t,conversion:r}))}):j({},s)}k();import{v4 as ht}from"uuid";function $r({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:ht():ht()}var vt=0;function Fr(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return vt++,`${e}_${r}${vt}${String(t)}`}export{Ee as AesEncryption,ot as ResizeObserver,er as addClass,dr as addLocationListener,cr as addResizeListener,Ce as buildBEM,Fr as buildShortUUID,$r as buildUUID,qt as createBEM,Kt as createNamespace,Mt as createSearchReg,at as dataURLtoBlob,Zt as decodeByBase64,He as deepMerge,or as domOffEvent,ir as domOnEvent,ct as downloadByBase64,ft as downloadByData,vr as downloadByOnlineUrl,mr as downloadByUrl,hr as downloadPercent,Ft as enableTransitions,Jt as encryptByBase64,Vt as encryptByMd5,lt as escapeStringRegexp,xr as extendSlots,Dr as filterTree,Sr as findNode,Er as findNodeAll,Ar as findPath,kr as findPathAll,zr as forEachTree,jt as getActualWidthOfChars,it as getBoundingClientRect,Wt as getRawRoute,ut as getSlot,rr as getViewportOffset,nr as hackCss,ke as hasClass,Re as is,_e as isBrowser,$t as isChineseText,ye as isChrome,me as isClient,ve as isIterableArray,Cr as isMatch,Dt as isNumeric,Y as isObject,kt as isPositiveInteger,xe as isSafari,Q as isServer,zt as isSupportNativeEllipsis,Lt as isSupportResizeObserver,At as isUrl,_r as loadScript,wr as matcher,ge as openWindow,bt as pathToRegexp,V as regexpMap,St as regexpToPath,tr as removeClass,fr as removeResizeListener,Xt as setCssVar,Ut as setObjToUrlParams,Un as titleCase,Lr as treeMap,ze as treeMapEach,ur as triggerWindowResize,gr as unloadScript,Nt as unsetAllProperty,st as urlToBase64,ar as useRafThrottle,Tt as withInstall};
1
+ var yt=Object.create;var pe=Object.defineProperty,mt=Object.defineProperties,xt=Object.getOwnPropertyDescriptor,_t=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,wt=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable;var le=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))he.call(t,r)&&le(e,r,t[r]);if(G)for(var r of G(t))Re.call(t,r)&&le(e,r,t[r]);return e},K=(e,t)=>mt(e,_t(t));var ve=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Fe=(e,t)=>{var r={};for(var n in e)he.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&G)for(var n of G(e))t.indexOf(n)<0&&Re.call(e,n)&&(r[n]=e[n]);return r};var Ct=(e,t)=>()=>(e&&(t=e(e=0)),t);var N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of bt(t))!he.call(e,s)&&s!==r&&pe(e,s,{get:()=>t[s],enumerable:!(n=xt(t,s))||n.enumerable});return e};var J=(e,t,r)=>(r=e!=null?yt(wt(e)):{},Bt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e));var ge=(e,t,r)=>le(e,typeof t!="symbol"?t+"":t,r);var L=Ct(()=>{"use strict"});var U=N((X,He)=>{"use strict";L();(function(e,t){typeof X=="object"?He.exports=X=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(X,function(){var e=e||function(t,r){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof ve=="function")try{n=ve("crypto")}catch(i){}var s=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(i){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function i(){}return function(o){var y;return i.prototype=o,y=new i,i.prototype=null,y}}(),d={},a=d.lib={},C=a.Base=function(){return{extend:function(i){var o=c(this);return i&&o.mixIn(i),(!o.hasOwnProperty("init")||this.init===o.init)&&(o.init=function(){o.$super.init.apply(this,arguments)}),o.init.prototype=o,o.$super=this,o},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),_=a.WordArray=C.extend({init:function(i,o){i=this.words=i||[],o!=r?this.sigBytes=o:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var o=this.words,y=i.words,m=this.sigBytes,T=i.sigBytes;if(this.clamp(),m%4)for(var D=0;D<T;D++){var P=y[D>>>2]>>>24-D%4*8&255;o[m+D>>>2]|=P<<24-(m+D)%4*8}else for(var A=0;A<T;A+=4)o[m+A>>>2]=y[A>>>2];return this.sigBytes+=T,this},clamp:function(){var i=this.words,o=this.sigBytes;i[o>>>2]&=4294967295<<32-o%4*8,i.length=t.ceil(o/4)},clone:function(){var i=C.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var o=[],y=0;y<i;y+=4)o.push(s());return new _.init(o,i)}}),l=d.enc={},B=l.Hex={stringify:function(i){for(var o=i.words,y=i.sigBytes,m=[],T=0;T<y;T++){var D=o[T>>>2]>>>24-T%4*8&255;m.push((D>>>4).toString(16)),m.push((D&15).toString(16))}return m.join("")},parse:function(i){for(var o=i.length,y=[],m=0;m<o;m+=2)y[m>>>3]|=parseInt(i.substr(m,2),16)<<24-m%8*4;return new _.init(y,o/2)}},b=l.Latin1={stringify:function(i){for(var o=i.words,y=i.sigBytes,m=[],T=0;T<y;T++){var D=o[T>>>2]>>>24-T%4*8&255;m.push(String.fromCharCode(D))}return m.join("")},parse:function(i){for(var o=i.length,y=[],m=0;m<o;m++)y[m>>>2]|=(i.charCodeAt(m)&255)<<24-m%4*8;return new _.init(y,o)}},w=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(o){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},E=a.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(i){typeof i=="string"&&(i=w.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(i){var o,y=this._data,m=y.words,T=y.sigBytes,D=this.blockSize,P=D*4,A=T/P;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var $=A*D,O=t.min($*4,T);if($){for(var f=0;f<$;f+=D)this._doProcessBlock(m,f);o=m.splice(0,$),y.sigBytes-=O}return new _.init(o,O)},clone:function(){var i=C.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),R=a.Hasher=E.extend({cfg:C.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var o=this._doFinalize();return o},blockSize:512/32,_createHelper:function(i){return function(o,y){return new i.init(y).finalize(o)}},_createHmacHelper:function(i){return function(o,y){return new k.HMAC.init(i,y).finalize(o)}}}),k=d.algo={};return d}(Math);return e})});var Ee=N((ee,We)=>{"use strict";L();(function(e,t){typeof ee=="object"?We.exports=ee=t(U()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ee,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=t.enc,c=s.Base64={stringify:function(a){var C=a.words,_=a.sigBytes,l=this._map;a.clamp();for(var B=[],b=0;b<_;b+=3)for(var w=C[b>>>2]>>>24-b%4*8&255,E=C[b+1>>>2]>>>24-(b+1)%4*8&255,R=C[b+2>>>2]>>>24-(b+2)%4*8&255,k=w<<16|E<<8|R,i=0;i<4&&b+i*.75<_;i++)B.push(l.charAt(k>>>6*(3-i)&63));var o=l.charAt(64);if(o)for(;B.length%4;)B.push(o);return B.join("")},parse:function(a){var C=a.length,_=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<_.length;B++)l[_.charCodeAt(B)]=B}var b=_.charAt(64);if(b){var w=a.indexOf(b);w!==-1&&(C=w)}return d(a,C,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(a,C,_){for(var l=[],B=0,b=0;b<C;b++)if(b%4){var w=_[a.charCodeAt(b-1)]<<b%4*2,E=_[a.charCodeAt(b)]>>>6-b%4*2,R=w|E;l[B>>>2]|=R<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var Se=N((te,Ie)=>{"use strict";L();(function(e,t){typeof te=="object"?Ie.exports=te=t(U()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(te,function(e){return function(t){var r=e,n=r.lib,s=n.WordArray,c=n.Hasher,d=r.algo,a=[];(function(){for(var w=0;w<64;w++)a[w]=t.abs(t.sin(w+1))*4294967296|0})();var C=d.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,E){for(var R=0;R<16;R++){var k=E+R,i=w[k];w[k]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,y=w[E+0],m=w[E+1],T=w[E+2],D=w[E+3],P=w[E+4],A=w[E+5],$=w[E+6],O=w[E+7],f=w[E+8],x=w[E+9],S=w[E+10],p=w[E+11],z=w[E+12],F=w[E+13],W=w[E+14],I=w[E+15],u=o[0],h=o[1],v=o[2],g=o[3];u=_(u,h,v,g,y,7,a[0]),g=_(g,u,h,v,m,12,a[1]),v=_(v,g,u,h,T,17,a[2]),h=_(h,v,g,u,D,22,a[3]),u=_(u,h,v,g,P,7,a[4]),g=_(g,u,h,v,A,12,a[5]),v=_(v,g,u,h,$,17,a[6]),h=_(h,v,g,u,O,22,a[7]),u=_(u,h,v,g,f,7,a[8]),g=_(g,u,h,v,x,12,a[9]),v=_(v,g,u,h,S,17,a[10]),h=_(h,v,g,u,p,22,a[11]),u=_(u,h,v,g,z,7,a[12]),g=_(g,u,h,v,F,12,a[13]),v=_(v,g,u,h,W,17,a[14]),h=_(h,v,g,u,I,22,a[15]),u=l(u,h,v,g,m,5,a[16]),g=l(g,u,h,v,$,9,a[17]),v=l(v,g,u,h,p,14,a[18]),h=l(h,v,g,u,y,20,a[19]),u=l(u,h,v,g,A,5,a[20]),g=l(g,u,h,v,S,9,a[21]),v=l(v,g,u,h,I,14,a[22]),h=l(h,v,g,u,P,20,a[23]),u=l(u,h,v,g,x,5,a[24]),g=l(g,u,h,v,W,9,a[25]),v=l(v,g,u,h,D,14,a[26]),h=l(h,v,g,u,f,20,a[27]),u=l(u,h,v,g,F,5,a[28]),g=l(g,u,h,v,T,9,a[29]),v=l(v,g,u,h,O,14,a[30]),h=l(h,v,g,u,z,20,a[31]),u=B(u,h,v,g,A,4,a[32]),g=B(g,u,h,v,f,11,a[33]),v=B(v,g,u,h,p,16,a[34]),h=B(h,v,g,u,W,23,a[35]),u=B(u,h,v,g,m,4,a[36]),g=B(g,u,h,v,P,11,a[37]),v=B(v,g,u,h,O,16,a[38]),h=B(h,v,g,u,S,23,a[39]),u=B(u,h,v,g,F,4,a[40]),g=B(g,u,h,v,y,11,a[41]),v=B(v,g,u,h,D,16,a[42]),h=B(h,v,g,u,$,23,a[43]),u=B(u,h,v,g,x,4,a[44]),g=B(g,u,h,v,z,11,a[45]),v=B(v,g,u,h,I,16,a[46]),h=B(h,v,g,u,T,23,a[47]),u=b(u,h,v,g,y,6,a[48]),g=b(g,u,h,v,O,10,a[49]),v=b(v,g,u,h,W,15,a[50]),h=b(h,v,g,u,A,21,a[51]),u=b(u,h,v,g,z,6,a[52]),g=b(g,u,h,v,D,10,a[53]),v=b(v,g,u,h,S,15,a[54]),h=b(h,v,g,u,m,21,a[55]),u=b(u,h,v,g,f,6,a[56]),g=b(g,u,h,v,I,10,a[57]),v=b(v,g,u,h,$,15,a[58]),h=b(h,v,g,u,F,21,a[59]),u=b(u,h,v,g,P,6,a[60]),g=b(g,u,h,v,p,10,a[61]),v=b(v,g,u,h,T,15,a[62]),h=b(h,v,g,u,x,21,a[63]),o[0]=o[0]+u|0,o[1]=o[1]+h|0,o[2]=o[2]+v|0,o[3]=o[3]+g|0},_doFinalize:function(){var w=this._data,E=w.words,R=this._nDataBytes*8,k=w.sigBytes*8;E[k>>>5]|=128<<24-k%32;var i=t.floor(R/4294967296),o=R;E[(k+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,E[(k+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var y=this._hash,m=y.words,T=0;T<4;T++){var D=m[T];m[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return y},clone:function(){var w=c.clone.call(this);return w._hash=this._hash.clone(),w}});function _(w,E,R,k,i,o,y){var m=w+(E&R|~E&k)+i+y;return(m<<o|m>>>32-o)+E}function l(w,E,R,k,i,o,y){var m=w+(E&k|R&~k)+i+y;return(m<<o|m>>>32-o)+E}function B(w,E,R,k,i,o,y){var m=w+(E^R^k)+i+y;return(m<<o|m>>>32-o)+E}function b(w,E,R,k,i,o,y){var m=w+(R^(E|~k))+i+y;return(m<<o|m>>>32-o)+E}r.MD5=c._createHelper(C),r.HmacMD5=c._createHmacHelper(C)}(Math),e.MD5})});var Ue=N((re,Ne)=>{"use strict";L();(function(e,t){typeof re=="object"?Ne.exports=re=t(U()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(re,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,s=r.Hasher,c=t.algo,d=[],a=c.SHA1=s.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,_){for(var l=this._hash.words,B=l[0],b=l[1],w=l[2],E=l[3],R=l[4],k=0;k<80;k++){if(k<16)d[k]=C[_+k]|0;else{var i=d[k-3]^d[k-8]^d[k-14]^d[k-16];d[k]=i<<1|i>>>31}var o=(B<<5|B>>>27)+R+d[k];k<20?o+=(b&w|~b&E)+1518500249:k<40?o+=(b^w^E)+1859775393:k<60?o+=(b&w|b&E|w&E)-1894007588:o+=(b^w^E)-899497514,R=E,E=w,w=b<<30|b>>>2,b=B,B=o}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+w|0,l[3]=l[3]+E|0,l[4]=l[4]+R|0},_doFinalize:function(){var C=this._data,_=C.words,l=this._nDataBytes*8,B=C.sigBytes*8;return _[B>>>5]|=128<<24-B%32,_[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),_[(B+64>>>9<<4)+15]=l,C.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var C=s.clone.call(this);return C._hash=this._hash.clone(),C}});t.SHA1=s._createHelper(a),t.HmacSHA1=s._createHmacHelper(a)}(),e.SHA1})});var qe=N((ne,je)=>{"use strict";L();(function(e,t){typeof ne=="object"?je.exports=ne=t(U()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ne,function(e){(function(){var t=e,r=t.lib,n=r.Base,s=t.enc,c=s.Utf8,d=t.algo,a=d.HMAC=n.extend({init:function(C,_){C=this._hasher=new C.init,typeof _=="string"&&(_=c.parse(_));var l=C.blockSize,B=l*4;_.sigBytes>B&&(_=C.finalize(_)),_.clamp();for(var b=this._oKey=_.clone(),w=this._iKey=_.clone(),E=b.words,R=w.words,k=0;k<l;k++)E[k]^=1549556828,R[k]^=909522486;b.sigBytes=w.sigBytes=B,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var _=this._hasher,l=_.finalize(C);_.reset();var B=_.finalize(this._oKey.clone().concat(l));return B}})})()})});var Ae=N((ie,Ke)=>{"use strict";L();(function(e,t,r){typeof ie=="object"?Ke.exports=ie=t(U(),Ue(),qe()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(ie,function(e){return function(){var t=e,r=t.lib,n=r.Base,s=r.WordArray,c=t.algo,d=c.MD5,a=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:d,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,_){for(var l,B=this.cfg,b=B.hasher.create(),w=s.create(),E=w.words,R=B.keySize,k=B.iterations;E.length<R;){l&&b.update(l),l=b.update(C).finalize(_),b.reset();for(var i=1;i<k;i++)l=b.finalize(l),b.reset();w.concat(l)}return w.sigBytes=R*4,w}});t.EvpKDF=function(C,_,l){return a.create(l).compute(C,_)}}(),e.EvpKDF})});var ae=N((oe,Je)=>{"use strict";L();(function(e,t,r){typeof oe=="object"?Je.exports=oe=t(U(),Ae()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(oe,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,s=n.Base,c=n.WordArray,d=n.BufferedBlockAlgorithm,a=r.enc,C=a.Utf8,_=a.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(f,x){return this.create(this._ENC_XFORM_MODE,f,x)},createDecryptor:function(f,x){return this.create(this._DEC_XFORM_MODE,f,x)},init:function(f,x,S){this.cfg=this.cfg.extend(S),this._xformMode=f,this._key=x,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(f){return this._append(f),this._process()},finalize:function(f){f&&this._append(f);var x=this._doFinalize();return x},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function f(x){return typeof x=="string"?O:P}return function(x){return{encrypt:function(S,p,z){return f(p).encrypt(x,S,p,z)},decrypt:function(S,p,z){return f(p).decrypt(x,S,p,z)}}}}()}),w=n.StreamCipher=b.extend({_doFinalize:function(){var f=this._process(!0);return f},blockSize:1}),E=r.mode={},R=n.BlockCipherMode=s.extend({createEncryptor:function(f,x){return this.Encryptor.create(f,x)},createDecryptor:function(f,x){return this.Decryptor.create(f,x)},init:function(f,x){this._cipher=f,this._iv=x}}),k=E.CBC=function(){var f=R.extend();f.Encryptor=f.extend({processBlock:function(S,p){var z=this._cipher,F=z.blockSize;x.call(this,S,p,F),z.encryptBlock(S,p),this._prevBlock=S.slice(p,p+F)}}),f.Decryptor=f.extend({processBlock:function(S,p){var z=this._cipher,F=z.blockSize,W=S.slice(p,p+F);z.decryptBlock(S,p),x.call(this,S,p,F),this._prevBlock=W}});function x(S,p,z){var F,W=this._iv;W?(F=W,this._iv=t):F=this._prevBlock;for(var I=0;I<z;I++)S[p+I]^=F[I]}return f}(),i=r.pad={},o=i.Pkcs7={pad:function(f,x){for(var S=x*4,p=S-f.sigBytes%S,z=p<<24|p<<16|p<<8|p,F=[],W=0;W<p;W+=4)F.push(z);var I=c.create(F,p);f.concat(I)},unpad:function(f){var x=f.words[f.sigBytes-1>>>2]&255;f.sigBytes-=x}},y=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:k,padding:o}),reset:function(){var f;b.reset.call(this);var x=this.cfg,S=x.iv,p=x.mode;this._xformMode==this._ENC_XFORM_MODE?f=p.createEncryptor:(f=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==f?this._mode.init(this,S&&S.words):(this._mode=f.call(p,this,S&&S.words),this._mode.__creator=f)},_doProcessBlock:function(f,x){this._mode.processBlock(f,x)},_doFinalize:function(){var f,x=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(x.pad(this._data,this.blockSize),f=this._process(!0)):(f=this._process(!0),x.unpad(f)),f},blockSize:128/32}),m=n.CipherParams=s.extend({init:function(f){this.mixIn(f)},toString:function(f){return(f||this.formatter).stringify(this)}}),T=r.format={},D=T.OpenSSL={stringify:function(f){var x,S=f.ciphertext,p=f.salt;return p?x=c.create([1398893684,1701076831]).concat(p).concat(S):x=S,x.toString(_)},parse:function(f){var x,S=_.parse(f),p=S.words;return p[0]==1398893684&&p[1]==1701076831&&(x=c.create(p.slice(2,4)),p.splice(0,4),S.sigBytes-=16),m.create({ciphertext:S,salt:x})}},P=n.SerializableCipher=s.extend({cfg:s.extend({format:D}),encrypt:function(f,x,S,p){p=this.cfg.extend(p);var z=f.createEncryptor(S,p),F=z.finalize(x),W=z.cfg;return m.create({ciphertext:F,key:S,iv:W.iv,algorithm:f,mode:W.mode,padding:W.padding,blockSize:f.blockSize,formatter:p.format})},decrypt:function(f,x,S,p){p=this.cfg.extend(p),x=this._parse(x,p.format);var z=f.createDecryptor(S,p).finalize(x.ciphertext);return z},_parse:function(f,x){return typeof f=="string"?x.parse(f,this):f}}),A=r.kdf={},$=A.OpenSSL={execute:function(f,x,S,p,z){if(p||(p=c.random(64/8)),z)var F=B.create({keySize:x+S,hasher:z}).compute(f,p);else var F=B.create({keySize:x+S}).compute(f,p);var W=c.create(F.words.slice(x),S*4);return F.sigBytes=x*4,m.create({key:F,iv:W,salt:p})}},O=n.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:$}),encrypt:function(f,x,S,p){p=this.cfg.extend(p);var z=p.kdf.execute(S,f.keySize,f.ivSize,p.salt,p.hasher);p.iv=z.iv;var F=P.encrypt.call(this,f,x,z.key,p);return F.mixIn(z),F},decrypt:function(f,x,S,p){p=this.cfg.extend(p),x=this._parse(x,p.format);var z=p.kdf.execute(S,f.keySize,f.ivSize,x.salt,p.hasher);p.iv=z.iv;var F=P.decrypt.call(this,f,x,z.key,p);return F}})}()})});var Ze=N((se,Ve)=>{"use strict";L();(function(e,t,r){typeof se=="object"?Ve.exports=se=t(U(),Ee(),Se(),Ae(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(se,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,s=t.algo,c=[],d=[],a=[],C=[],_=[],l=[],B=[],b=[],w=[],E=[];(function(){for(var i=[],o=0;o<256;o++)o<128?i[o]=o<<1:i[o]=o<<1^283;for(var y=0,m=0,o=0;o<256;o++){var T=m^m<<1^m<<2^m<<3^m<<4;T=T>>>8^T&255^99,c[y]=T,d[T]=y;var D=i[y],P=i[D],A=i[P],$=i[T]*257^T*16843008;a[y]=$<<24|$>>>8,C[y]=$<<16|$>>>16,_[y]=$<<8|$>>>24,l[y]=$;var $=A*16843009^P*65537^D*257^y*16843008;B[T]=$<<24|$>>>8,b[T]=$<<16|$>>>16,w[T]=$<<8|$>>>24,E[T]=$,y?(y=D^i[i[i[A^D]]],m^=i[i[m]]):y=m=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],k=s.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var o=this._keyPriorReset=this._key,y=o.words,m=o.sigBytes/4,T=this._nRounds=m+6,D=(T+1)*4,P=this._keySchedule=[],A=0;A<D;A++)A<m?P[A]=y[A]:(i=P[A-1],A%m?m>6&&A%m==4&&(i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255]):(i=i<<8|i>>>24,i=c[i>>>24]<<24|c[i>>>16&255]<<16|c[i>>>8&255]<<8|c[i&255],i^=R[A/m|0]<<24),P[A]=P[A-m]^i);for(var $=this._invKeySchedule=[],O=0;O<D;O++){var A=D-O;if(O%4)var i=P[A];else var i=P[A-4];O<4||A<=4?$[O]=i:$[O]=B[c[i>>>24]]^b[c[i>>>16&255]]^w[c[i>>>8&255]]^E[c[i&255]]}}},encryptBlock:function(i,o){this._doCryptBlock(i,o,this._keySchedule,a,C,_,l,c)},decryptBlock:function(i,o){var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y,this._doCryptBlock(i,o,this._invKeySchedule,B,b,w,E,d);var y=i[o+1];i[o+1]=i[o+3],i[o+3]=y},_doCryptBlock:function(i,o,y,m,T,D,P,A){for(var $=this._nRounds,O=i[o]^y[0],f=i[o+1]^y[1],x=i[o+2]^y[2],S=i[o+3]^y[3],p=4,z=1;z<$;z++){var F=m[O>>>24]^T[f>>>16&255]^D[x>>>8&255]^P[S&255]^y[p++],W=m[f>>>24]^T[x>>>16&255]^D[S>>>8&255]^P[O&255]^y[p++],I=m[x>>>24]^T[S>>>16&255]^D[O>>>8&255]^P[f&255]^y[p++],u=m[S>>>24]^T[O>>>16&255]^D[f>>>8&255]^P[x&255]^y[p++];O=F,f=W,x=I,S=u}var F=(A[O>>>24]<<24|A[f>>>16&255]<<16|A[x>>>8&255]<<8|A[S&255])^y[p++],W=(A[f>>>24]<<24|A[x>>>16&255]<<16|A[S>>>8&255]<<8|A[O&255])^y[p++],I=(A[x>>>24]<<24|A[S>>>16&255]<<16|A[O>>>8&255]<<8|A[f&255])^y[p++],u=(A[S>>>24]<<24|A[O>>>16&255]<<16|A[f>>>8&255]<<8|A[x&255])^y[p++];i[o]=F,i[o+1]=W,i[o+2]=I,i[o+3]=u},keySize:256/32});t.AES=n._createHelper(k)}(),e.AES})});var Ye=N((ce,Ge)=>{"use strict";L();(function(e,t){typeof ce=="object"?Ge.exports=ce=t(U()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ce,function(e){return e.enc.Utf8})});var Xe=N((fe,Qe)=>{"use strict";L();(function(e,t,r){typeof fe=="object"?Qe.exports=fe=t(U(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(fe,function(e){return e.pad.Pkcs7})});var tt=N((de,et)=>{"use strict";L();(function(e,t,r){typeof de=="object"?et.exports=de=t(U(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(de,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(n,s){var c=this._cipher,d=c.blockSize,a=this._iv,C=this._counter;a&&(C=this._counter=a.slice(0),this._iv=void 0);var _=C.slice(0);c.encryptBlock(_,0),C[d-1]=C[d-1]+1|0;for(var l=0;l<d;l++)n[s+l]^=_[l]}});return t.Decryptor=r,t}(),e.mode.CTR})});L();import{titleCase as Nn}from"title-case";L();import{isPlainObject as $t,mergeWith as Pt,isArray as Pe,isEqual as Oe,intersectionWith as Ot,unionWith as Mt}from"lodash-es";L();L();import{pathToRegexp as Et,compile as St}from"path-to-regexp";var Z={mobile:/^(?:(?:\+|00)86)?1[3-9]\d{9}$/,tel:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,numAndLetter:/^[A-Z0-9]+$/i,password:/^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S+$/,email:/^[A-Z0-9\u4E00-\u9FA5]+@[\w-]+(?:\.[\w-]+)+$/i,postalCode:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,identityCard:/^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[12]\d|30|31)\d{3}[\dX]$/i,ip:/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:\d|[1-9]\d{1,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/,url:/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-][^!@#$%^&*?.\s]{0,64}\.)+[a-z]{2,6}\/?/,httpsUrl:/^https:\/\//,domain:/^([0-9a-z-]+\.)+([a-z]{2,})$/i,plateNumber:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/,md5:/^[a-f0-9]{32}$/i,base64:/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([\w!$&',()*+;=\-.~:@/?%\s]*?)\s*$/i,uuid:/^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i,version:/^\d+(?:\.\d+){2}$/,videoUrl:/^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i,imageUrl:/^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i,chinese:/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/,itcode:/^[a-z]+\d*$/i,numeric:/^\d+$/};var At=Object.prototype.toString;function $e(e,t){return At.call(e)===`[object ${t}]`}function Y(e){return e!==null&&$e(e,"Object")}function Lt(e){return Z.url.test(e)}function ye(e){return Array.isArray(e)&&e.length>0}function kt(e){return Number.isInteger(e)&&e>=0}function Tt(e){return Z.numeric.test(e)}var Q=typeof window=="undefined",me=!Q,xe=me&&window.navigator.userAgent.toLowerCase().includes("chrome"),_e=me&&window.navigator.userAgent.toLowerCase().includes("safari"),be=typeof window!="undefined"&&typeof document!="undefined",Dt=be&&"webkitLineClamp"in document.body.style,zt=be&&typeof ResizeObserver!="undefined",Rt=e=>Z.chinese.test(e),Ft=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Ht=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function Wt(e){if(!e)return e;let n=e,{matched:t}=n,r=Fe(n,["matched"]);return K(j({},r),{matched:t?t.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function we(e,t={}){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=t||{},c=[];n&&c.push("noopener=yes"),s&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Me(e,t,r="replace"){return t?e?Pt(e,t,(n,s)=>{if(Pe(s)&&Pe(n))switch(r){case"union":return Mt(n,s,Oe);case"intersection":return Ot(n,s,Oe);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(Y(s)&&Y(n))return Me(n,s,r)}):t:e}function It(e,t){if(!ye(Object.keys(t)))return e;let r="";for(let n in t){let s=t[n];Array.isArray(s)?r+=`${n}=${encodeURIComponent(s.join(","))}&`:r+=`${n}=${encodeURIComponent(s)}&`}return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function Nt(e){$t(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Ut(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function jt(e){let r=["",...[...e].map(n=>Ut(n)),""].join(".*");return new RegExp(r,"i")}function qt(e="",t={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=t,c=document.createElement("canvas").getContext("2d");c.font=`${r}px ${n}`;let d=c.measureText(e),a=Math.abs(d.actualBoundingBoxLeft)+Math.abs(d.actualBoundingBoxRight);return Math.ceil(Math.max(d.width,a))}L();function Ce(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+Ce(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?Ce(e,n):""),""):""}function Be(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ce(t,r)}`)}function Kt(e,t=""){return[Be(`${t}-${e}`)]}function Jt(e,t=""){let r=`${t}-${e}`;return[r,Be(r)]}L();var ue=J(Ze(),1),q=J(Ye(),1),rt=J(Xe(),1),nt=J(tt(),1),it=J(Se(),1),ke=J(Ee(),1);var Le=class{constructor({key:t,iv:r}){ge(this,"key");ge(this,"iv");this.key=(0,q.parse)(t),this.iv=(0,q.parse)(r)}get getOptions(){return{mode:nt.default,padding:rt.default,iv:this.iv}}encryptByAES(t){return(0,ue.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,ue.decrypt)(t,this.key,this.getOptions).toString(q.default)}};function Vt(e){return q.default.parse(e).toString(ke.default)}function Zt(e){return ke.default.parse(e).toString(q.default)}function Gt(e){return(0,it.default)(e).toString()}L();import{upperFirst as Yt}from"lodash-es";var Qt=()=>document.documentElement;function ot(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Xt(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Te(e,t){if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function er(e,t,r){return r||(r=Qt()),r.style.setProperty(e,t),{prop:t}}function tr(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let s=0,c=n.length;s<c;s++){let d=n[s];d&&(e.classList?e.classList.add(d):Te(e,d)||(r+=` ${d}`))}e.classList||(e.className=r)}function rr(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let s=0,c=r.length;s<c;s++){let d=r[s];d&&(e.classList?e.classList.remove(d):Te(e,d)&&(n=n.replace(` ${d} `," ")))}e.classList||(e.className=Xt(n))}function nr(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,s=t.clientLeft,c=t.clientTop,d=window.scrollX,a=window.scrollY,C=ot(e);if(!C)return{};let{left:_,top:l,width:B,height:b}=C,w=(d||r)-(s||0),E=(a||n)-(c||0),R=_+d,k=l+a,i=R-w,o=k-E,y=window.document.documentElement.clientWidth,m=window.document.documentElement.clientHeight;return{left:i,top:o,right:y-B-i,bottom:m-b-o,rightIncludeBody:y-i,bottomIncludeBody:m-o}}function ir(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${Yt(e)}`]=t}),K(j({},n),{[e]:t})}function or(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function ar(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function sr(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}L();import at from"resize-observer-polyfill";function cr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function fr(e,t){Q||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new at(cr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function dr(e,t){!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.__ro__.disconnect(),e.__ro__=null,e.__resizeListeners__=null))}function ur(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function lr(e,t={}){function r(n){let s=window.history[n];return function(...c){let d=new Event(n);return d.arguments=c,window.dispatchEvent(d),s.apply(this,c)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",e,t),window.addEventListener("hashchange",e,t),window.addEventListener("replaceState",e,t),window.addEventListener("pushState",e,t),{removeListener:()=>{window.removeEventListener("popstate",e,t),window.removeEventListener("hashchange",e,t),window.removeEventListener("replaceState",e,t),window.removeEventListener("pushState",e,t)}}}L();import{round as pr,isNil as hr}from"lodash-es";function st(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],s=window.atob(t[1]),c=s.length,d=new Uint8Array(c);for(;c--;)d[c]=s.charCodeAt(c);return new Blob([d],{type:n})}function ct(e,t){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),c=s==null?void 0:s.getContext("2d"),d=new Image;d.crossOrigin="",d.onload=function(){if(!s||!c)return n();s.height=d.height,s.width=d.width,c.drawImage(d,0,0);let a=s.toDataURL(t||"image/png");s=null,r(a)},d.src=e})}function vr(e){let{loaded:t,total:r}=e;if(r<=0||hr(r))return 0;let n=t/r;return pr((n>1?1:n)*100)}function gr(e,t,r,n){ct(e).then(s=>{ft(s,t,r,n)})}function ft(e,t,r,n){let s=st(e);dt(s,t,r,n)}function dt(e,t,r,n){let s=typeof n!="undefined"?[n,e]:[e],c=new Blob(s,{type:r||"application/octet-stream"}),d=window.URL.createObjectURL(c),a=document.createElement("a");a.style.display="none",a.href=d,a.setAttribute("download",t),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(d)}function yr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(xe||_e){let n=document.createElement("a");return n.href=e,n.download=r||e.substring(e.lastIndexOf("/")+1,e.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return e.includes("?")||(e+="?download"),we(e,{target:t}),!0}L();import{isFunction as mr}from"lodash-es";function ut(e,t="default",r){if(!e||!Reflect.has(e,t)||!mr(e[t]))return null;let n=e[t];return n?n(r):null}function xr(e,t=[]){let r=Object.keys(e),n={};return r.forEach(s=>{if(t.includes(s))return null;n[s]=c=>ut(e,s,c)}),n}L();function _r(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,s=!0;else if(c.hasAttribute("data-loaded")){r({el:c});return}c.addEventListener("error",n),c.addEventListener("abort",n),c.addEventListener("load",()=>{c.setAttribute("data-loaded","true"),r({el:c})}),s&&document.head.appendChild(c)})}function br(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}L();function wr(e,t,r){return ht(e,t,r,!1)}function Cr(e,t,r){return ht(e,t,r,!0).length>0}function pt(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var De=new Map;function lt(e,t){if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Br(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(De.has(r))return De.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=pt(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return s.negated=n,De.set(r,s),s}function ht(e,t,r,n){if(e=lt(e,"inputs"),t=lt(t,"patterns"),t.length===0)return[];let s=t.map(a=>Br(a,r)),{allPatterns:c}=r||{},d=[];for(let a of e){let C,_=s.map(()=>!1);for(let[l,B]of s.entries())if(B.test(a)&&(_[l]=!0,C=!B.negated,!C))break;if(!(C===!1||C===void 0&&s.some(l=>!l.negated)||c&&_.some((l,B)=>!l&&!s[B].negated))&&(d.push(a),n))break}return d}L();var Er={id:"id",children:"children",pid:"pid"},V=e=>Object.assign({},Er,e);function Sr(e,t,r={}){r=V(r);let{children:n}=r,s=[...e];for(let c of s){if(t(c))return c;c[n]&&s.push(...c[n])}return null}function Ar(e,t,r={}){r=V(r);let{children:n}=r,s=[...e],c=[];for(let d of s)t(d)&&c.push(d),d[n]&&s.push(...d[n]);return c}function Lr(e,t,r={}){r=V(r);let n=[],s=[...e],c=new Set,{children:d}=r;for(;s.length;){let a=s[0];if(c.has(a))n.pop(),s.shift();else if(c.add(a),a[d]&&s.unshift(...a[d]),n.push(a),t(a))return n}return null}function kr(e,t,r={}){r=V(r);let n=[],s=[...e],c=[],d=new Set,{children:a}=r;for(;s.length;){let C=s[0];d.has(C)?(n.pop(),s.shift()):(d.add(C),C[a]&&s.unshift(...C[a]),n.push(C),t(C)&&c.push([...n]))}return c}function Tr(e,t,r={}){r=V(r);let n=r.children;function s(c){return c.map(d=>j({},d)).filter(d=>(d[n]=d[n]&&s(d[n]),t(d)||d[n]&&d[n].length))}return s(e)}function Dr(e,t,r={}){r=V(r);let n=[...e],{children:s}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;s&&n[c][s]&&n.splice(c+1,0,...n[c][s])}}function zr(e,t){return e.map(r=>ze(r,t))}function ze(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,s=r(e)||{};return n?K(j({},s),{[t]:e[t].map(c=>ze(c,{children:t,conversion:r}))}):j({},s)}L();import{v4 as vt}from"uuid";function Rr({native:e=!0}={}){var t,r,n;return e?(n=(r=(t=window.crypto)==null?void 0:t.randomUUID)==null?void 0:r.call(t))!=null?n:vt():vt()}var gt=0;function Fr(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return gt++,`${e}_${r}${gt}${String(t)}`}export{Le as AesEncryption,at as ResizeObserver,tr as addClass,lr as addLocationListener,fr as addResizeListener,Be as buildBEM,Fr as buildShortUUID,Rr as buildUUID,Kt as createBEM,Jt as createNamespace,jt as createSearchReg,st as dataURLtoBlob,Zt as decodeByBase64,Me as deepMerge,ar as domOffEvent,or as domOnEvent,ft as downloadByBase64,dt as downloadByData,gr as downloadByOnlineUrl,yr as downloadByUrl,vr as downloadPercent,Ft as enableTransitions,Vt as encryptByBase64,Gt as encryptByMd5,pt as escapeStringRegexp,xr as extendSlots,Tr as filterTree,Sr as findNode,Ar as findNodeAll,Lr as findPath,kr as findPathAll,Dr as forEachTree,qt as getActualWidthOfChars,ot as getBoundingClientRect,Wt as getRawRoute,ut as getSlot,nr as getViewportOffset,ir as hackCss,Te as hasClass,$e as is,be as isBrowser,Rt as isChineseText,xe as isChrome,me as isClient,ye as isIterableArray,Cr as isMatch,Tt as isNumeric,Y as isObject,kt as isPositiveInteger,_e as isSafari,Q as isServer,Dt as isSupportNativeEllipsis,zt as isSupportResizeObserver,Lt as isUrl,_r as loadScript,wr as matcher,we as openWindow,Et as pathToRegexp,Z as regexpMap,St as regexpToPath,rr as removeClass,dr as removeResizeListener,er as setCssVar,It as setObjToUrlParams,Nn as titleCase,zr as treeMap,ze as treeMapEach,ur as triggerWindowResize,br as unloadScript,Nt as unsetAllProperty,ct as urlToBase64,sr as useRafThrottle,Ht as withInstall};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gsc-basic/utils",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.2.1",
5
5
  "description": "Web Dev Utils for GSC Basic Team",
6
6
  "author": "wangll47 <wangll47@lenovo.com>",
7
7
  "license": "UNLICENSED",
@@ -25,6 +25,7 @@
25
25
  }
26
26
  },
27
27
  "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
28
29
  "files": [
29
30
  "./dist"
30
31
  ],
@@ -35,10 +36,10 @@
35
36
  "path-to-regexp": "^8.2.0",
36
37
  "resize-observer-polyfill": "^1.5.1",
37
38
  "title-case": "^4.3.2",
38
- "uuid": "^11.0.5",
39
- "worker-timers": "^8.0.13"
39
+ "uuid": "^11.0.5"
40
40
  },
41
41
  "devDependencies": {
42
+ "@types/crypto-js": "^4.2.2",
42
43
  "crypto-js": "^4.2.0",
43
44
  "lodash-es": "^4.17.21"
44
45
  },