@gsc-basic/utils 1.0.10 → 1.0.11
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Le=Object.create;var L=Object.defineProperty,$e=Object.defineProperties,Ce=Object.getOwnPropertyDescriptor,Ae=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertyNames,I=Object.getOwnPropertySymbols,Te=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var ft=(t,e,r)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||(e={}))J.call(e,r)&&ft(t,r,e[r]);if(I)for(var r of I(e))pt.call(e,r)&&ft(t,r,e[r]);return t},w=(t,e)=>$e(t,Ae(e));var ht=(t,e)=>{var r={};for(var n in t)J.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&I)for(var n of I(t))e.indexOf(n)<0&&pt.call(t,n)&&(r[n]=t[n]);return r};var De=(t,e)=>{for(var r in e)L(t,r,{get:e[r],enumerable:!0})},mt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of _e(e))!J.call(t,s)&&s!==r&&L(t,s,{get:()=>e[s],enumerable:!(n=Ce(e,s))||n.enumerable});return t};var b=(t,e,r)=>(r=t!=null?Le(Te(t)):{},mt(e||!t||!t.__esModule?L(r,"default",{value:t,enumerable:!0}):r,t)),Ie=t=>mt(L({},"__esModule",{value:!0}),t);var Ze={};De(Ze,{AesEncryption:()=>N,IfActivity:()=>T,ResizeObserver:()=>j.default,addClass:()=>Nt,addLocationListener:()=>Kt,addResizeListener:()=>qt,buildBEM:()=>z,buildShortUUID:()=>ye,buildUUID:()=>we,clearWorkerInterval:()=>f.clearInterval,clearWorkerTimeout:()=>f.clearTimeout,createBEM:()=>Tt,createNamespace:()=>Dt,createSearchReg:()=>At,dataURLtoBlob:()=>tt,decodeByBase64:()=>Ot,deepMerge:()=>X,domOffEvent:()=>Wt,domOnEvent:()=>Ht,downloadByBase64:()=>rt,downloadByData:()=>nt,downloadByOnlineUrl:()=>Gt,downloadByUrl:()=>Qt,downloadPercent:()=>Xt,enableTransitions:()=>Et,encryptByBase64:()=>Ft,encryptByMd5:()=>Rt,escapeStringRegexp:()=>ct,extendSlots:()=>re,filterTree:()=>pe,findNode:()=>ue,findNodeAll:()=>de,findPath:()=>le,findPathAll:()=>fe,forEachTree:()=>he,getActualWidthOfChars:()=>_t,getBoundingClientRect:()=>V,getRawRoute:()=>Lt,getSlot:()=>ot,getViewportOffset:()=>Pt,hackCss:()=>jt,hasClass:()=>P,highlightHtml:()=>Vt,is:()=>K,isBrowser:()=>R,isChineseText:()=>vt,isChrome:()=>F,isClient:()=>k,isIterableArray:()=>B,isMatch:()=>ae,isNumeric:()=>yt,isObject:()=>$,isPositiveInteger:()=>wt,isSafari:()=>O,isServer:()=>C,isSupportNativeEllipsis:()=>xt,isSupportResizeObserver:()=>bt,isUrl:()=>gt,loadScript:()=>ne,matcher:()=>oe,openWindow:()=>U,regexpMap:()=>v,removeClass:()=>Mt,removeResizeListener:()=>Yt,setCssVar:()=>zt,setObjToUrlParams:()=>$t,setWorkerInterval:()=>f.setInterval,setWorkerTimeout:()=>f.setTimeout,titleCase:()=>xe.titleCase,treeMap:()=>me,treeMapEach:()=>W,triggerWindowResize:()=>Jt,unloadScript:()=>se,unsetAllProperty:()=>Ct,urlToBase64:()=>et,useRafThrottle:()=>Zt,withInstall:()=>St});module.exports=Ie(Ze);var xe=require("title-case");var h=require("lodash-es");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 Be=Object.prototype.toString;function K(t,e){return Be.call(t)===`[object ${e}]`}function $(t){return t!==null&&K(t,"Object")}function gt(t){return v.url.test(t)}function B(t){return Array.isArray(t)&&t.length>0}function wt(t){return Number.isInteger(t)&&t>=0}function yt(t){return v.numeric.test(t)}var C=typeof window=="undefined",k=!C,F=k&&window.navigator.userAgent.toLowerCase().includes("chrome"),O=k&&window.navigator.userAgent.toLowerCase().includes("safari"),R=typeof window!="undefined"&&typeof document!="undefined",xt=R&&typeof document.body.style.lineClamp!="undefined",bt=R&&typeof ResizeObserver!="undefined",vt=t=>v.chinese.test(t),Et=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var St=(t,e)=>{let r=t;return r.install=n=>{n.component(r.name||r.displayName,t),e&&(n.config.globalProperties[e]=t)},t};function Lt(t){if(!t)return t;let n=t,{matched:e}=n,r=ht(n,["matched"]);return w(m({},r),{matched:e?e.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function U(t,e){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=e||{},i=[];n&&i.push("noopener=yes"),s&&i.push("noreferrer=yes"),window.open(t,r,i.join(","))}function X(t,e,r="replace"){return e?t?(0,h.mergeWith)(t,e,(n,s)=>{if((0,h.isArray)(s)&&(0,h.isArray)(n))switch(r){case"union":return(0,h.unionWith)(n,s,h.isEqual);case"intersection":return(0,h.intersectionWith)(n,s,h.isEqual);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if($(s)&&$(n))return X(n,s,r)}):e:t}function $t(t,e){if(!B(Object.keys(e)))return t;let r="";for(let n in e)r+=`${n}=${encodeURIComponent(e[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(t)?t+r:t.replace(/\/?$/,"?")+r}function Ct(t){(0,h.isPlainObject)(t)&&Object.keys(t).forEach(e=>{Reflect.deleteProperty(t,e)})}function ke(t){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(t)?`\\${t}`:t}function At(t){let r=["",...[...t].map(n=>ke(n)),""].join(".*");return new RegExp(r,"i")}function _t(t="",e={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=e,i=document.createElement("canvas").getContext("2d");i.font=`${r}px ${n}`;let o=i.measureText(t),a=Math.abs(o.actualBoundingBoxLeft)+Math.abs(o.actualBoundingBoxRight);return Math.ceil(Math.max(o.width,a))}function G(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((r,n)=>r+G(t,n),""):Object.keys(e).reduce((r,n)=>r+(e[n]?G(t,n):""),""):""}function z(t){return(e,r)=>(e&&typeof e!="string"&&(r=e,e=""),e=e?`${t}__${e}`:t,`${e}${G(e,r)}`)}function Tt(t,e=""){return[z(`${e}-${t}`)]}function Dt(t,e=""){let r=`${e}-${t}`;return[r,z(r)]}var M=require("crypto-js/aes"),x=b(require("crypto-js/enc-utf8"),1),It=b(require("crypto-js/pad-pkcs7"),1),Bt=b(require("crypto-js/mode-ecb"),1),kt=b(require("crypto-js/md5"),1),Q=b(require("crypto-js/enc-base64"),1),N=class{constructor(e){let{key:r,iv:n}=e;r&&(this.key=(0,x.parse)(r)),n&&(this.iv=(0,x.parse)(n))}get getOptions(){return{mode:Bt.default,padding:It.default,iv:this.iv}}encryptByAES(e){return(0,M.encrypt)(e,this.key,this.getOptions).toString()}decryptByAES(e){return(0,M.decrypt)(e,this.key,this.getOptions).toString(x.default)}};function Ft(t){return x.default.parse(t).toString(Q.default)}function Ot(t){return Q.default.parse(t).toString(x.default)}function Rt(t){return(0,kt.default)(t).toString()}var Ut=require("lodash-es");var Fe=()=>document.documentElement;function V(t){return!t||!t.getBoundingClientRect?0:t.getBoundingClientRect()}function Oe(t){return(t||"").replace(/^\s+|\s+$/g,"")}function P(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):` ${t.className} `.includes(` ${e} `)}function zt(t,e,r){return r||(r=Fe()),r.style.setProperty(t,e),{prop:e}}function Nt(t,e){if(!t)return;let r=t.className,n=(e||"").split(" ");for(let s=0,i=n.length;s<i;s++){let o=n[s];o&&(t.classList?t.classList.add(o):P(t,o)||(r+=` ${o}`))}t.classList||(t.className=r)}function Mt(t,e){if(!t||!e)return;let r=e.split(" "),n=` ${t.className} `;for(let s=0,i=r.length;s<i;s++){let o=r[s];o&&(t.classList?t.classList.remove(o):P(t,o)&&(n=n.replace(` ${o} `," ")))}t.classList||(t.className=Oe(n))}function Pt(t){let e=document.documentElement,r=e.scrollLeft,n=e.scrollTop,s=e.clientLeft,i=e.clientTop,o=window.scrollX,a=window.scrollY,u=V(t);if(!u)return{};let{left:c,top:l,width:Z,height:D}=u,be=(o||r)-(s||0),ve=(a||n)-(i||0),Ee=c+o,Se=l+a,q=Ee-be,Y=Se-ve,dt=window.document.documentElement.clientWidth,lt=window.document.documentElement.clientHeight;return{left:q,top:Y,right:dt-Z-q,bottom:lt-D-Y,rightIncludeBody:dt-q,bottomIncludeBody:lt-Y}}function jt(t,e){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${(0,Ut.upperFirst)(t)}`]=e}),w(m({},n),{[t]:e})}function Ht(t,e,r){t&&e&&r&&t.addEventListener(e,r,!1)}function Wt(t,e,r){t&&e&&r&&t.removeEventListener(e,r,!1)}function Zt(t){let e=!1;return function(...r){e||(e=!0,window.requestAnimationFrame(()=>{t.apply(this,r),e=!1}))}}var j=b(require("resize-observer-polyfill"),1);function Re(t){for(let e of t){let r=e.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function qt(t,e){C||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new j.default(Re),t.__ro__.observe(t)),t.__resizeListeners__.push(e))}function Yt(t,e){!t||!t.__resizeListeners__||(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.__ro__.disconnect(),t.__ro__=null,t.__resizeListeners__=null))}function Jt(){let t=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(t)}function Kt(t,e={}){function r(n){let s=window.history[n];return function(...i){let o=new Event(n);return o.arguments=i,window.dispatchEvent(o),s.apply(this,i)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",t,e),window.addEventListener("hashchange",t,e),window.addEventListener("replaceState",t,e),window.addEventListener("pushState",t,e),{removeListener:()=>{window.removeEventListener("popstate",t,e),window.removeEventListener("hashchange",t,e),window.removeEventListener("replaceState",t,e),window.removeEventListener("pushState",t,e)}}}var H=require("lodash-es");function tt(t){let e=t.split(","),n=e[0].match(/:(.*?);/)[1],s=window.atob(e[1]),i=s.length,o=new Uint8Array(i);for(;i--;)o[i]=s.charCodeAt(i);return new Blob([o],{type:n})}function et(t,e){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),i=s.getContext("2d"),o=new Image;o.crossOrigin="",o.onload=function(){if(!s||!i)return n();s.height=o.height,s.width=o.width,i.drawImage(o,0,0);let a=s.toDataURL(e||"image/png");s=null,r(a)},o.src=t})}function Xt(t){let{loaded:e,total:r}=t;if(r<=0||(0,H.isNil)(r))return 0;let n=e/r;return(0,H.round)((n>1?1:n)*100)}function Gt(t,e,r,n){et(t).then(s=>{rt(s,e,r,n)})}function rt(t,e,r,n){let s=tt(t);nt(s,e,r,n)}function nt(t,e,r,n){let s=typeof n!="undefined"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(i,e);else{let o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}}function Qt({url:t,target:e="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(F||O){let n=document.createElement("a");return n.href=t,n.download=r||t.substring(t.lastIndexOf("/")+1,t.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return t.includes("?")||(t+="?download"),U(t,{target:e}),!0}var Ue=(t,e,r="ig")=>{let n=new RegExp(e,r);return[...t.matchAll(n)].map(a=>({index:a.index,subString:a[0]}))};function ze(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ne=(t,e)=>{let r=t;if(!e)return r;let{tagName:n="mark",bgColor:s,color:i,style:o={},renderHighlightKeyword:a}=e;if(typeof a=="function")return a(t);o.backgroundColor=s,o.color=i;let c=`style="${Object.keys(o).map(l=>`${ze(l)}:${o[l]}`).join(";")}"`;return`<${n} ${c}>${r}</${n}>`},Me=(t,e)=>{let r="";return e.forEach(n=>{let{start:s,end:i,option:o}=n,a=t.slice(s,i),u=Ne(a,o);r+=u,n.subString=u}),r},Pe=(t,e)=>{let r=[];return e.forEach(n=>{let s={keyword:""};typeof n=="string"?s={keyword:n}:s=n;let{keyword:i,caseSensitive:o=!0}=s,a=Ue(t,i,o?"g":"gi"),u={keyword:i,indexList:a,option:s};r.push(u)}),r},je=(t,e)=>{let r=Pe(t,e),n=[],s=(o,a)=>{for(let u=0;u<n.length;u++){let c=n[u];if(o>c.start&&o<c.end||o+a>c.start&&o+a<c.end||c.start>o&&c.start<o+a||c.end>o&&c.end<o+a||o===c.start&&o+a===c.end)return-1;if(o+a<=c.start)return u}return n.length};r.forEach(({indexList:o,option:a})=>{o.forEach(u=>{let{index:c,subString:l}=u,Z={start:c,end:c+l.length,option:a},D=s(c,l.length);D!==-1&&n.splice(D,0,Z)})});let i=[];return n.forEach((o,a)=>{let{start:u,end:c}=o,l=n[a+1];a===0&&u>0&&i.push({start:0,end:u,subString:t.slice(0,u)}),i.push(w(m({},o),{subString:t.slice(u,c)})),(l==null?void 0:l.start)>c&&i.push({start:c,end:l.start,subString:t.slice(c,l.start)}),a===n.length-1&&c<t.length-1&&i.push({start:c,end:t.length-1,subString:t.slice(c,t.length)})}),i},Vt=(t,e)=>{let r=je(t,e);return{highText:Me(t,r),highList:r}};var f=require("worker-timers"),y="active",st="idle",te="hidden",E,A,_,g={},d={attach(t,e){g[t]||(g[t]=[]),g[t].push(e)},fire(t,e=[]){g[t]&&g[t].forEach(r=>{r(...e)})},remove(t,e){e||Reflect.deleteProperty(g,t),g[t]&&(g[t]=g[t].filter(r=>e!==r))},dom(t,e,r){return _||(t.addEventListener?_=(n,s,i)=>n.addEventListener(s,i,!1):typeof t.attachEvent=="function"?_=(n,s,i)=>n.attachEvent(`on${s}`,i,!1):_=(n,s,i)=>n[`on${s}`]=i),_(t,e,r)}},it=class{constructor(e,r,n){this.activity=e,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",s=>{this.stopped===!1&&(s.status===y?this.start():this.pause())})}start(){this.stopped=!1,(0,f.clearInterval)(this.token),this.token=(0,f.setInterval)(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,(0,f.clearInterval)(this.token)}resume(){this.start()}pause(){this.stop()}},T=class{constructor(){if(this.status=y,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(E="hidden",A="visibilitychange"):document.mozHidden!==void 0?(E="mozHidden",A="mozvisibilitychange"):document.msHidden!==void 0?(E="msHidden",A="msvisibilitychange"):document.webkitHidden!==void 0&&(E="webkitHidden",A="webkitvisibilitychange"),E===void 0)this.legacyMode();else{let e=()=>{document[E]?this.blur():this.focus()};e(),d.dom(document,A,e)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(d.dom(window,"blur",()=>this.blur()),d.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(e){e instanceof MouseEvent&&e.movementX===0&&e.movementY===0||(this.timers.map(f.clearTimeout),this.timers.length=0,this.status===st&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,f.setTimeout)(()=>{if(this.status===y||this.status===te)return this.idle()},this.idleTime)))}trackIdleStatus(){d.dom(document,"mousemove",this.startIdleTimer.bind(this)),d.dom(document,"mousedown",this.startIdleTimer.bind(this)),d.dom(document,"keyup",this.startIdleTimer.bind(this)),d.dom(document,"touchstart",this.startIdleTimer.bind(this)),d.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(e,r){return d.attach(e,r),this}off(e,r){return d.remove(e,r),this}setIdleDuration(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let e=+new Date,r;if(this.status===st)r={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-e;r={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(e){return e?this.on("idle",e):(this.status=st,d.fire("idle"),d.fire("statusChanged",[{status:this.status}])),this}blur(e){return e?this.on("blur",e):(this.status=te,d.fire("blur"),d.fire("statusChanged",[{status:this.status}])),this}focus(e){return e?this.on("focus",e):this.status!==y&&(this.status=y,d.fire("focus"),d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}wakeUp(e){return e?this.on("wakeUp",e):this.status!==y&&(this.status=y,d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}onEvery(e,r){return new it(this,e,r)}now(e){return e!==void 0?this.status===e:this.status===y}};var ee=require("lodash-es");function ot(t,e="default",r){if(!t||!Reflect.has(t,e)||!(0,ee.isFunction)(t[e]))return null;let n=t[e];return n?n(r):null}function re(t,e=[]){let r=Object.keys(t),n={};return r.forEach(s=>{if(e.includes(s))return null;n[s]=i=>ot(t,s,i)}),n}function ne(t,{type:e="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,i=document.querySelector(`script[src="${t}"]`);if(!i)i=document.createElement("script"),i.type=e,i.async=!0,i.src=t,s=!0;else if(i.hasAttribute("data-loaded")){r({el:i});return}i.addEventListener("error",n),i.addEventListener("abort",n),i.addEventListener("load",()=>{i.setAttribute("data-loaded",!0),r({el:i})}),s&&document.head.appendChild(i)})}function se(t){return new Promise((e,r)=>{let n=document.querySelector(`script[src="${t}"]`);if(!n){r();return}document.head.removeChild(n),e()})}function oe(t,e,r){return ce(t,e,r,!1)}function ae(t,e,r){return ce(t,e,r,!0).length>0}function ct(t){return typeof t!="string"?t:t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var at=new Map;function ie(t,e){if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function He(t,e){e=m({caseSensitive:!1},e);let r=t+JSON.stringify(e);if(at.has(r))return at.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ct(t).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return s.negated=n,at.set(r,s),s}function ce(t,e,r,n){if(t=ie(t,"inputs"),e=ie(e,"patterns"),e.length===0)return[];e=e.map(o=>He(o,r));let{allPatterns:s}=r||{},i=[];for(let o of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(o)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||s&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(o),n))break}return i}var We={id:"id",children:"children",pid:"pid"},S=t=>Object.assign({},We,t);function ue(t,e,r={}){r=S(r);let{children:n}=r,s=[...t];for(let i of s){if(e(i))return i;i[n]&&s.push(...i[n])}return null}function de(t,e,r={}){r=S(r);let{children:n}=r,s=[...t],i=[];for(let o of s)e(o)&&i.push(o),o[n]&&s.push(...o[n]);return i}function le(t,e,r={}){r=S(r);let n=[],s=[...t],i=new Set,{children:o}=r;for(;s.length;){let a=s[0];if(i.has(a))n.pop(),s.shift();else if(i.add(a),a[o]&&s.unshift(...a[o]),n.push(a),e(a))return n}return null}function fe(t,e,r={}){r=S(r);let n=[],s=[...t],i=[],o=new Set,{children:a}=r;for(;s.length;){let u=s[0];o.has(u)?(n.pop(),s.shift()):(o.add(u),u[a]&&s.unshift(...u[a]),n.push(u),e(u)&&i.push([...n]))}return i}function pe(t,e,r={}){r=S(r);let n=r.children;function s(i){return i.map(o=>m({},o)).filter(o=>(o[n]=o[n]&&s(o[n]),e(o)||o[n]&&o[n].length))}return s(t)}function he(t,e,r={}){r=S(r);let n=[...t],{children:s}=r;for(let i=0;i<n.length;i++){if(e(n[i]))return;s&&n[i][s]&&n.splice(i+1,0,...n[i][s])}}function me(t,e){return t.map(r=>W(r,e))}function W(t,{children:e="children",conversion:r}){let n=Array.isArray(t[e])&&t[e].length>0,s=r(t)||{};return n?w(m({},s),{[e]:t[e].map(i=>W(i,{children:e,conversion:r}))}):m({},s)}var ut=require("uuid");function we({native:t=!0}={}){var e,r,n;return t?(n=(r=(e=window.crypto)==null?void 0:e.randomUUID)==null?void 0:r.call(e))!=null?n:(0,ut.v4)():(0,ut.v4)()}var ge=0;function ye(t=""){let e=Date.now(),r=Math.floor(Math.random()*1e9);return ge++,`${t}_${r}${ge}${String(e)}`}0&&(module.exports={AesEncryption,IfActivity,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,clearWorkerInterval,clearWorkerTimeout,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,highlightHtml,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,regexpMap,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,setWorkerInterval,setWorkerTimeout,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
|
|
1
|
+
var Cr=Object.create;var te=Object.defineProperty,Br=Object.defineProperties,Sr=Object.getOwnPropertyDescriptor,Er=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertyNames,ae=Object.getOwnPropertySymbols,Ar=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable;var Qe=(e,t,r)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Qe(e,r,t[r]);if(ae)for(var r of ae(t))Xe.call(t,r)&&Qe(e,r,t[r]);return e},V=(e,t)=>Br(e,Er(t));var et=(e,t)=>{var r={};for(var n in e)Ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ae)for(var n of ae(e))t.indexOf(n)<0&&Xe.call(e,n)&&(r[n]=e[n]);return r};var Lr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dr=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},tt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kr(t))!Ie.call(e,o)&&o!==r&&te(e,o,{get:()=>t[o],enumerable:!(n=Sr(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Cr(Ar(e)):{},tt(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),zr=e=>tt(te({},"__esModule",{value:!0}),e);var k=Lr(()=>{});var K=q((ve,yt)=>{k();(function(e,t){typeof ve=="object"?yt.exports=ve=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(ve,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 o=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(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},g=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=g.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=g.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new u.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 a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var T=A*z,H=t.min(T*4,D);if(T){for(var d=0;d<T;d+=z)this._doProcessBlock(_,d);a=_.splice(0,T),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=g.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),I=s.Hasher=S.extend({cfg:g.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var He=q((me,gt)=>{k();(function(e,t){typeof me=="object"?gt.exports=me=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(me,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var g=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=g[b>>>2]>>>24-b%4*8&255,S=g[b+1>>>2]>>>24-(b+1)%4*8&255,I=g[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|I,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var g=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(g=C)}return f(s,g,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,g,u){for(var l=[],B=0,b=0;b<g;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,I=C|S;l[B>>>2]|=I<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var Oe=q((ye,xt)=>{k();(function(e,t){typeof ye=="object"?xt.exports=ye=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ye,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var g=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var I=0;I<16;I++){var L=S+I,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],T=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],F=C[S+13],P=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],y=a[3];h=u(h,v,m,y,x,7,s[0]),y=u(y,h,v,m,_,12,s[1]),m=u(m,y,h,v,D,17,s[2]),v=u(v,m,y,h,z,22,s[3]),h=u(h,v,m,y,R,7,s[4]),y=u(y,h,v,m,A,12,s[5]),m=u(m,y,h,v,T,17,s[6]),v=u(v,m,y,h,H,22,s[7]),h=u(h,v,m,y,d,7,s[8]),y=u(y,h,v,m,w,12,s[9]),m=u(m,y,h,v,E,17,s[10]),v=u(v,m,y,h,p,22,s[11]),h=u(h,v,m,y,$,7,s[12]),y=u(y,h,v,m,F,12,s[13]),m=u(m,y,h,v,P,17,s[14]),v=u(v,m,y,h,N,22,s[15]),h=l(h,v,m,y,_,5,s[16]),y=l(y,h,v,m,T,9,s[17]),m=l(m,y,h,v,p,14,s[18]),v=l(v,m,y,h,x,20,s[19]),h=l(h,v,m,y,A,5,s[20]),y=l(y,h,v,m,E,9,s[21]),m=l(m,y,h,v,N,14,s[22]),v=l(v,m,y,h,R,20,s[23]),h=l(h,v,m,y,w,5,s[24]),y=l(y,h,v,m,P,9,s[25]),m=l(m,y,h,v,z,14,s[26]),v=l(v,m,y,h,d,20,s[27]),h=l(h,v,m,y,F,5,s[28]),y=l(y,h,v,m,D,9,s[29]),m=l(m,y,h,v,H,14,s[30]),v=l(v,m,y,h,$,20,s[31]),h=B(h,v,m,y,A,4,s[32]),y=B(y,h,v,m,d,11,s[33]),m=B(m,y,h,v,p,16,s[34]),v=B(v,m,y,h,P,23,s[35]),h=B(h,v,m,y,_,4,s[36]),y=B(y,h,v,m,R,11,s[37]),m=B(m,y,h,v,H,16,s[38]),v=B(v,m,y,h,E,23,s[39]),h=B(h,v,m,y,F,4,s[40]),y=B(y,h,v,m,x,11,s[41]),m=B(m,y,h,v,z,16,s[42]),v=B(v,m,y,h,T,23,s[43]),h=B(h,v,m,y,w,4,s[44]),y=B(y,h,v,m,$,11,s[45]),m=B(m,y,h,v,N,16,s[46]),v=B(v,m,y,h,D,23,s[47]),h=b(h,v,m,y,x,6,s[48]),y=b(y,h,v,m,H,10,s[49]),m=b(m,y,h,v,P,15,s[50]),v=b(v,m,y,h,A,21,s[51]),h=b(h,v,m,y,$,6,s[52]),y=b(y,h,v,m,z,10,s[53]),m=b(m,y,h,v,E,15,s[54]),v=b(v,m,y,h,_,21,s[55]),h=b(h,v,m,y,d,6,s[56]),y=b(y,h,v,m,N,10,s[57]),m=b(m,y,h,v,T,15,s[58]),v=b(v,m,y,h,F,21,s[59]),h=b(h,v,m,y,R,6,s[60]),y=b(y,h,v,m,p,10,s[61]),m=b(m,y,h,v,D,15,s[62]),v=b(v,m,y,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+y|0},_doFinalize:function(){var C=this._data,S=C.words,I=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(I/4294967296),a=I;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,I,L,i,a,x){var _=C+(S&I|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,I,L,i,a,x){var _=C+(S&L|I&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,I,L,i,a,x){var _=C+(S^I^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,I,L,i,a,x){var _=C+(I^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(g),r.HmacMD5=c._createHmacHelper(g)}(Math),e.MD5})});var wt=q((ge,_t)=>{k();(function(e,t){typeof ge=="object"?_t.exports=ge=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ge,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],I=l[4],L=0;L<80;L++){if(L<16)f[L]=g[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+I+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,I=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+I|0},_doFinalize:function(){var g=this._data,u=g.words,l=this._nDataBytes*8,B=g.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,g.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var Ct=q((xe,bt)=>{k();(function(e,t){typeof xe=="object"?bt.exports=xe=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(xe,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(g,u){g=this._hasher=new g.init,typeof u=="string"&&(u=c.parse(u));var l=g.blockSize,B=l*4;u.sigBytes>B&&(u=g.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,I=C.words,L=0;L<l;L++)S[L]^=1549556828,I[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var g=this._hasher;g.reset(),g.update(this._iKey)},update:function(g){return this._hasher.update(g),this},finalize:function(g){var u=this._hasher,l=u.finalize(g);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var Pe=q((_e,Bt)=>{k();(function(e,t,r){typeof _e=="object"?Bt.exports=_e=t(K(),wt(),Ct()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(_e,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,I=B.keySize,L=B.iterations;S.length<I;){l&&b.update(l),l=b.update(g).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=I*4,C}});t.EvpKDF=function(g,u,l){return s.create(l).compute(g,u)}}(),e.EvpKDF})});var be=q((we,St)=>{k();(function(e,t,r){typeof we=="object"?St.exports=we=t(K(),Pe()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(we,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,g=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},I=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=I.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize;w.call(this,E,p,F),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+F)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,F=$.blockSize,P=E.slice(p,p+F);$.decryptBlock(E,p),w.call(this,E,p,F),this._prevBlock=P}});function w(E,p,$){var F,P=this._iv;P?(F=P,this._iv=t):F=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=F[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,F=[],P=0;P<p;P+=4)F.push($);var N=c.create(F,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),F=$.finalize(w),P=$.cfg;return _.create({ciphertext:F,key:E,iv:P.iv,algorithm:d,mode:P.mode,padding:P.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},T=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var F=B.create({keySize:w+E,hasher:$}).compute(d,p);else var F=B.create({keySize:w+E}).compute(d,p);var P=c.create(F.words.slice(w),E*4);return F.sigBytes=w*4,_.create({key:F,iv:P,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:T}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var F=R.encrypt.call(this,d,w,$.key,p);return F.mixIn($),F},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var F=R.decrypt.call(this,d,w,$.key,p);return F}})}()})});var kt=q((Ce,Et)=>{k();(function(e,t,r){typeof Ce=="object"?Et.exports=Ce=t(K(),He(),Oe(),Pe(),be()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(Ce,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],g=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],T=i[D]*257^D*16843008;s[x]=T<<24|T>>>8,g[x]=T<<16|T>>>16,u[x]=T<<8|T>>>24,l[x]=T;var T=A*16843009^R*65537^z*257^x*16843008;B[D]=T<<24|T>>>8,b[D]=T<<16|T>>>16,C[D]=T<<8|T>>>24,S[D]=T,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==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^=I[A/_|0]<<24),R[A]=R[A-_]^i);for(var T=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?T[H]=i:T[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,g,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var T=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<T;$++){var F=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],P=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=F,d=P,w=N,E=h}var F=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],P=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=F,i[a+1]=P,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var Lt=q((Be,At)=>{k();(function(e,t){typeof Be=="object"?At.exports=Be=t(K()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(Be,function(e){return e.enc.Utf8})});var zt=q((Se,Dt)=>{k();(function(e,t,r){typeof Se=="object"?Dt.exports=Se=t(K(),be()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(Se,function(e){return e.pad.Pkcs7})});var It=q((Ee,$t)=>{k();(function(e,t,r){typeof Ee=="object"?$t.exports=Ee=t(K(),be()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(Ee,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 qr={};Dr(qr,{AesEncryption:()=>ke,IfActivity:()=>oe,ResizeObserver:()=>De.default,addClass:()=>Nt,addLocationListener:()=>Qt,addResizeListener:()=>Zt,buildBEM:()=>pe,buildShortUUID:()=>wr,buildUUID:()=>_r,clearWorkerInterval:()=>W.clearInterval,clearWorkerTimeout:()=>W.clearTimeout,createBEM:()=>vt,createNamespace:()=>mt,createSearchReg:()=>ht,dataURLtoBlob:()=>Ne,decodeByBase64:()=>Ot,deepMerge:()=>Te,domOffEvent:()=>Jt,domOnEvent:()=>Kt,downloadByBase64:()=>je,downloadByData:()=>qe,downloadByOnlineUrl:()=>er,downloadByUrl:()=>tr,downloadPercent:()=>Xt,enableTransitions:()=>ct,encryptByBase64:()=>Ht,encryptByMd5:()=>Pt,escapeStringRegexp:()=>Ye,extendSlots:()=>sr,filterTree:()=>mr,findNode:()=>lr,findNodeAll:()=>hr,findPath:()=>pr,findPathAll:()=>vr,forEachTree:()=>yr,getActualWidthOfChars:()=>pt,getBoundingClientRect:()=>We,getRawRoute:()=>ut,getSlot:()=>Ve,getViewportOffset:()=>jt,hackCss:()=>qt,hasClass:()=>Le,highlightHtml:()=>rr,is:()=>Fe,isBrowser:()=>le,isChineseText:()=>at,isChrome:()=>ue,isClient:()=>fe,isIterableArray:()=>ce,isMatch:()=>ur,isNumeric:()=>it,isObject:()=>re,isPositiveInteger:()=>nt,isSafari:()=>de,isServer:()=>ne,isSupportNativeEllipsis:()=>st,isSupportResizeObserver:()=>ot,isUrl:()=>rt,loadScript:()=>or,matcher:()=>fr,openWindow:()=>he,regexpMap:()=>Q,removeClass:()=>Mt,removeResizeListener:()=>Yt,setCssVar:()=>Wt,setObjToUrlParams:()=>dt,setWorkerInterval:()=>W.setInterval,setWorkerTimeout:()=>W.setTimeout,titleCase:()=>br.titleCase,treeMap:()=>gr,treeMapEach:()=>$e,triggerWindowResize:()=>Gt,unloadScript:()=>ar,unsetAllProperty:()=>lt,urlToBase64:()=>Me,useRafThrottle:()=>Vt,withInstall:()=>ft});module.exports=zr(qr);k();var br=require("title-case");k();var M=require("lodash-es");k();k();var Q={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 $r=Object.prototype.toString;function Fe(e,t){return $r.call(e)===`[object ${t}]`}function re(e){return e!==null&&Fe(e,"Object")}function rt(e){return Q.url.test(e)}function ce(e){return Array.isArray(e)&&e.length>0}function nt(e){return Number.isInteger(e)&&e>=0}function it(e){return Q.numeric.test(e)}var ne=typeof window=="undefined",fe=!ne,ue=fe&&window.navigator.userAgent.toLowerCase().includes("chrome"),de=fe&&window.navigator.userAgent.toLowerCase().includes("safari"),le=typeof window!="undefined"&&typeof document!="undefined",st=le&&typeof document.body.style.lineClamp!="undefined",ot=le&&typeof ResizeObserver!="undefined",at=e=>Q.chinese.test(e),ct=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var ft=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function ut(e){if(!e)return e;let n=e,{matched:t}=n,r=et(n,["matched"]);return V(j({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function he(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Te(e,t,r="replace"){return t?e?(0,M.mergeWith)(e,t,(n,o)=>{if((0,M.isArray)(o)&&(0,M.isArray)(n))switch(r){case"union":return(0,M.unionWith)(n,o,M.isEqual);case"intersection":return(0,M.intersectionWith)(n,o,M.isEqual);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(re(o)&&re(n))return Te(n,o,r)}):t:e}function dt(e,t){if(!ce(Object.keys(t)))return e;let r="";for(let n in t)r+=`${n}=${encodeURIComponent(t[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function lt(e){(0,M.isPlainObject)(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function Ir(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function ht(e){let r=["",...[...e].map(n=>Ir(n)),""].join(".*");return new RegExp(r,"i")}function pt(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 f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function Re(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+Re(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?Re(e,n):""),""):""}function pe(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${Re(t,r)}`)}function vt(e,t=""){return[pe(`${t}-${e}`)]}function mt(e,t=""){let r=`${t}-${e}`;return[r,pe(r)]}k();var Ae=Y(kt(),1),G=Y(Lt(),1),Ft=Y(zt(),1),Tt=Y(It(),1),Rt=Y(Oe(),1),Ue=Y(He(),1),ke=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,G.parse)(r)),n&&(this.iv=(0,G.parse)(n))}get getOptions(){return{mode:Tt.default,padding:Ft.default,iv:this.iv}}encryptByAES(t){return(0,Ae.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,Ae.decrypt)(t,this.key,this.getOptions).toString(G.default)}};function Ht(e){return G.default.parse(e).toString(Ue.default)}function Ot(e){return Ue.default.parse(e).toString(G.default)}function Pt(e){return(0,Rt.default)(e).toString()}k();var Ut=require("lodash-es");var Fr=()=>document.documentElement;function We(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function Tr(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Le(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 Wt(e,t,r){return r||(r=Fr()),r.style.setProperty(e,t),{prop:t}}function Nt(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):Le(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function Mt(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):Le(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=Tr(n))}function jt(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,g=We(e);if(!g)return{};let{left:u,top:l,width:B,height:b}=g,C=(f||r)-(o||0),S=(s||n)-(c||0),I=u+f,L=l+s,i=I-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function qt(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${(0,Ut.upperFirst)(e)}`]=t}),V(j({},n),{[e]:t})}function Kt(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function Jt(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function Vt(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();var De=Y(require("resize-observer-polyfill"),1);function Rr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function Zt(e,t){ne||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new De.default(Rr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function Yt(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 Gt(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Qt(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.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 ze=require("lodash-es");function Ne(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function Me(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function Xt(e){let{loaded:t,total:r}=e;if(r<=0||(0,ze.isNil)(r))return 0;let n=t/r;return(0,ze.round)((n>1?1:n)*100)}function er(e,t,r,n){Me(e).then(o=>{je(o,t,r,n)})}function je(e,t,r,n){let o=Ne(e);qe(o,t,r,n)}function qe(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,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(f)}}function tr({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(ue||de){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"),he(e,{target:t}),!0}k();var Hr=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function Or(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var Pr=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${Or(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},Ur=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),g=Pr(s,f);r+=g,n.subString=g}),r},Wr=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=Hr(e,c,f?"g":"gi"),g={keyword:c,indexList:s,option:o};r.push(g)}),r},Nr=(e,t)=>{let r=Wr(e,t),n=[],o=(f,s)=>{for(let g=0;g<n.length;g++){let u=n[g];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return g}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(g=>{let{index:u,subString:l}=g,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:g,end:u}=f,l=n[s+1];s===0&&g>0&&c.push({start:0,end:g,subString:e.slice(0,g)}),c.push(V(j({},f),{subString:e.slice(g,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},rr=(e,t)=>{let r=Nr(e,t);return{highText:Ur(e,r),highList:r}};k();var W=require("worker-timers"),Z="active",Ke="idle",nr="hidden",X,ie,se,J={},U={attach(e,t){J[e]||(J[e]=[]),J[e].push(t)},fire(e,t=[]){J[e]&&J[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(J,e),J[e]&&(J[e]=J[e].filter(r=>t!==r))},dom(e,t,r){return se||(e.addEventListener?se=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?se=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):se=(n,o,c)=>n[`on${o}`]=c),se(e,t,r)}},Je=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===Z?this.start():this.pause())})}start(){this.stopped=!1,(0,W.clearInterval)(this.token),this.token=(0,W.setInterval)(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,(0,W.clearInterval)(this.token)}resume(){this.start()}pause(){this.stop()}},oe=class{constructor(){if(this.status=Z,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(X="hidden",ie="visibilitychange"):document.mozHidden!==void 0?(X="mozHidden",ie="mozvisibilitychange"):document.msHidden!==void 0?(X="msHidden",ie="msvisibilitychange"):document.webkitHidden!==void 0&&(X="webkitHidden",ie="webkitvisibilitychange"),X===void 0)this.legacyMode();else{let t=()=>{document[X]?this.blur():this.focus()};t(),U.dom(document,ie,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(W.clearTimeout),this.timers.length=0,this.status===Ke&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push((0,W.setTimeout)(()=>{if(this.status===Z||this.status===nr)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Ke)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Ke,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=nr,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==Z&&(this.status=Z,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==Z&&(this.status=Z,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Je(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===Z}};k();var ir=require("lodash-es");function Ve(e,t="default",r){if(!e||!Reflect.has(e,t)||!(0,ir.isFunction)(e[t]))return null;let n=e[t];return n?n(r):null}function sr(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Ve(e,o,c)}),n}k();function or(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!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})}),o&&document.head.appendChild(c)})}function ar(e){return new Promise((t,r)=>{let n=document.querySelector(`script[src="${e}"]`);if(!n){r();return}document.head.removeChild(n),t()})}k();function fr(e,t,r){return dr(e,t,r,!1)}function ur(e,t,r){return dr(e,t,r,!0).length>0}function Ye(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ze=new Map;function cr(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 Mr(e,t){t=j({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Ze.has(r))return Ze.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Ye(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Ze.set(r,o),o}function dr(e,t,r,n){if(e=cr(e,"inputs"),t=cr(t,"patterns"),t.length===0)return[];t=t.map(f=>Mr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,g=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(g[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&g.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var jr={id:"id",children:"children",pid:"pid"},ee=e=>Object.assign({},jr,e);function lr(e,t,r={}){r=ee(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function hr(e,t,r={}){r=ee(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function pr(e,t,r={}){r=ee(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function vr(e,t,r={}){r=ee(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let g=o[0];f.has(g)?(n.pop(),o.shift()):(f.add(g),g[s]&&o.unshift(...g[s]),n.push(g),t(g)&&c.push([...n]))}return c}function mr(e,t,r={}){r=ee(r);let n=r.children;function o(c){return c.map(f=>j({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function yr(e,t,r={}){r=ee(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function gr(e,t){return e.map(r=>$e(r,t))}function $e(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?V(j({},o),{[t]:e[t].map(c=>$e(c,{children:t,conversion:r}))}):j({},o)}k();var Ge=require("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:(0,Ge.v4)():(0,Ge.v4)()}var xr=0;function wr(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return xr++,`${e}_${r}${xr}${String(t)}`}0&&(module.exports={AesEncryption,IfActivity,ResizeObserver,addClass,addLocationListener,addResizeListener,buildBEM,buildShortUUID,buildUUID,clearWorkerInterval,clearWorkerTimeout,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,highlightHtml,is,isBrowser,isChineseText,isChrome,isClient,isIterableArray,isMatch,isNumeric,isObject,isPositiveInteger,isSafari,isServer,isSupportNativeEllipsis,isSupportResizeObserver,isUrl,loadScript,matcher,openWindow,regexpMap,removeClass,removeResizeListener,setCssVar,setObjToUrlParams,setWorkerInterval,setWorkerTimeout,titleCase,treeMap,treeMapEach,triggerWindowResize,unloadScript,unsetAllProperty,urlToBase64,useRafThrottle,withInstall});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var $t=Object.defineProperty,Ct=Object.defineProperties;var At=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var K=(t,e,r)=>e in t?$t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,h=(t,e)=>{for(var r in e||(e={}))X.call(e,r)&&K(t,r,e[r]);if(L)for(var r of L(e))G.call(e,r)&&K(t,r,e[r]);return t},g=(t,e)=>Ct(t,At(e));var Q=(t,e)=>{var r={};for(var n in t)X.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&L)for(var n of L(t))e.indexOf(n)<0&&G.call(t,n)&&(r[n]=t[n]);return r};import{titleCase as Gr}from"title-case";import{isPlainObject as Rt,mergeWith as Ut,isArray as tt,isEqual as et,intersectionWith as zt,unionWith as Nt}from"lodash-es";var b={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 _t=Object.prototype.toString;function V(t,e){return _t.call(t)===`[object ${e}]`}function $(t){return t!==null&&V(t,"Object")}function Tt(t){return b.url.test(t)}function I(t){return Array.isArray(t)&&t.length>0}function Dt(t){return Number.isInteger(t)&&t>=0}function It(t){return b.numeric.test(t)}var C=typeof window=="undefined",B=!C,k=B&&window.navigator.userAgent.toLowerCase().includes("chrome"),F=B&&window.navigator.userAgent.toLowerCase().includes("safari"),O=typeof window!="undefined"&&typeof document!="undefined",Bt=O&&typeof document.body.style.lineClamp!="undefined",kt=O&&typeof ResizeObserver!="undefined",Ft=t=>b.chinese.test(t),Ot=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Mt=(t,e)=>{let r=t;return r.install=n=>{n.component(r.name||r.displayName,t),e&&(n.config.globalProperties[e]=t)},t};function Pt(t){if(!t)return t;let n=t,{matched:e}=n,r=Q(n,["matched"]);return g(h({},r),{matched:e?e.map(s=>({meta:s.meta,name:s.name,path:s.path})):void 0})}function R(t,e){let{target:r="__blank",noopener:n=!0,noreferrer:s=!0}=e||{},i=[];n&&i.push("noopener=yes"),s&&i.push("noreferrer=yes"),window.open(t,r,i.join(","))}function rt(t,e,r="replace"){return e?t?Ut(t,e,(n,s)=>{if(tt(s)&&tt(n))switch(r){case"union":return Nt(n,s,et);case"intersection":return zt(n,s,et);case"concat":return n.concat(s);case"replace":return s;default:throw new Error(`Unknown merge array strategy: ${r}`)}if($(s)&&$(n))return rt(n,s,r)}):e:t}function jt(t,e){if(!I(Object.keys(e)))return t;let r="";for(let n in e)r+=`${n}=${encodeURIComponent(e[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(t)?t+r:t.replace(/\/?$/,"?")+r}function Ht(t){Rt(t)&&Object.keys(t).forEach(e=>{Reflect.deleteProperty(t,e)})}function Wt(t){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(t)?`\\${t}`:t}function Zt(t){let r=["",...[...t].map(n=>Wt(n)),""].join(".*");return new RegExp(r,"i")}function qt(t="",e={}){let{size:r=14,family:n=getComputedStyle(document.documentElement).getPropertyValue("--vxe-font-family")||"sans-serif"}=e,i=document.createElement("canvas").getContext("2d");i.font=`${r}px ${n}`;let o=i.measureText(t),a=Math.abs(o.actualBoundingBoxLeft)+Math.abs(o.actualBoundingBoxRight);return Math.ceil(Math.max(o.width,a))}function U(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((r,n)=>r+U(t,n),""):Object.keys(e).reduce((r,n)=>r+(e[n]?U(t,n):""),""):""}function z(t){return(e,r)=>(e&&typeof e!="string"&&(r=e,e=""),e=e?`${t}__${e}`:t,`${e}${U(e,r)}`)}function Yt(t,e=""){return[z(`${e}-${t}`)]}function Jt(t,e=""){let r=`${e}-${t}`;return[r,z(r)]}import{encrypt as Kt,decrypt as Xt}from"crypto-js/aes";import M,{parse as nt}from"crypto-js/enc-utf8";import Gt from"crypto-js/pad-pkcs7";import Qt from"crypto-js/mode-ecb";import Vt from"crypto-js/md5";import st from"crypto-js/enc-base64";var N=class{constructor(e){let{key:r,iv:n}=e;r&&(this.key=nt(r)),n&&(this.iv=nt(n))}get getOptions(){return{mode:Qt,padding:Gt,iv:this.iv}}encryptByAES(e){return Kt(e,this.key,this.getOptions).toString()}decryptByAES(e){return Xt(e,this.key,this.getOptions).toString(M)}};function te(t){return M.parse(t).toString(st)}function ee(t){return st.parse(t).toString(M)}function re(t){return Vt(t).toString()}import{upperFirst as ne}from"lodash-es";var se=()=>document.documentElement;function it(t){return!t||!t.getBoundingClientRect?0:t.getBoundingClientRect()}function ie(t){return(t||"").replace(/^\s+|\s+$/g,"")}function P(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):` ${t.className} `.includes(` ${e} `)}function oe(t,e,r){return r||(r=se()),r.style.setProperty(t,e),{prop:e}}function ae(t,e){if(!t)return;let r=t.className,n=(e||"").split(" ");for(let s=0,i=n.length;s<i;s++){let o=n[s];o&&(t.classList?t.classList.add(o):P(t,o)||(r+=` ${o}`))}t.classList||(t.className=r)}function ce(t,e){if(!t||!e)return;let r=e.split(" "),n=` ${t.className} `;for(let s=0,i=r.length;s<i;s++){let o=r[s];o&&(t.classList?t.classList.remove(o):P(t,o)&&(n=n.replace(` ${o} `," ")))}t.classList||(t.className=ie(n))}function ue(t){let e=document.documentElement,r=e.scrollLeft,n=e.scrollTop,s=e.clientLeft,i=e.clientTop,o=window.scrollX,a=window.scrollY,u=it(t);if(!u)return{};let{left:c,top:l,width:_,height:S}=u,vt=(o||r)-(s||0),Et=(a||n)-(i||0),St=c+o,Lt=l+a,T=St-vt,D=Lt-Et,Y=window.document.documentElement.clientWidth,J=window.document.documentElement.clientHeight;return{left:T,top:D,right:Y-_-T,bottom:J-S-D,rightIncludeBody:Y-T,bottomIncludeBody:J-D}}function de(t,e){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(s=>{n[`${s}${ne(t)}`]=e}),g(h({},n),{[t]:e})}function le(t,e,r){t&&e&&r&&t.addEventListener(e,r,!1)}function fe(t,e,r){t&&e&&r&&t.removeEventListener(e,r,!1)}function pe(t){let e=!1;return function(...r){e||(e=!0,window.requestAnimationFrame(()=>{t.apply(this,r),e=!1}))}}import ot from"resize-observer-polyfill";function he(t){for(let e of t){let r=e.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function me(t,e){C||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new ot(he),t.__ro__.observe(t)),t.__resizeListeners__.push(e))}function ge(t,e){!t||!t.__resizeListeners__||(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.__ro__.disconnect(),t.__ro__=null,t.__resizeListeners__=null))}function we(){let t=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(t)}function ye(t,e={}){function r(n){let s=window.history[n];return function(...i){let o=new Event(n);return o.arguments=i,window.dispatchEvent(o),s.apply(this,i)}}return window.history.pushState=r("pushState"),window.history.replaceState=r("replaceState"),window.addEventListener("popstate",t,e),window.addEventListener("hashchange",t,e),window.addEventListener("replaceState",t,e),window.addEventListener("pushState",t,e),{removeListener:()=>{window.removeEventListener("popstate",t,e),window.removeEventListener("hashchange",t,e),window.removeEventListener("replaceState",t,e),window.removeEventListener("pushState",t,e)}}}import{round as xe,isNil as be}from"lodash-es";function at(t){let e=t.split(","),n=e[0].match(/:(.*?);/)[1],s=window.atob(e[1]),i=s.length,o=new Uint8Array(i);for(;i--;)o[i]=s.charCodeAt(i);return new Blob([o],{type:n})}function ct(t,e){return new Promise((r,n)=>{let s=document.createElement("CANVAS"),i=s.getContext("2d"),o=new Image;o.crossOrigin="",o.onload=function(){if(!s||!i)return n();s.height=o.height,s.width=o.width,i.drawImage(o,0,0);let a=s.toDataURL(e||"image/png");s=null,r(a)},o.src=t})}function ve(t){let{loaded:e,total:r}=t;if(r<=0||be(r))return 0;let n=e/r;return xe((n>1?1:n)*100)}function Ee(t,e,r,n){ct(t).then(s=>{ut(s,e,r,n)})}function ut(t,e,r,n){let s=at(t);dt(s,e,r,n)}function dt(t,e,r,n){let s=typeof n!="undefined"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(i,e);else{let o=window.URL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(o)}}function Se({url:t,target:e="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(k||F){let n=document.createElement("a");return n.href=t,n.download=r||t.substring(t.lastIndexOf("/")+1,t.length),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}return t.includes("?")||(t+="?download"),R(t,{target:e}),!0}var Le=(t,e,r="ig")=>{let n=new RegExp(e,r);return[...t.matchAll(n)].map(a=>({index:a.index,subString:a[0]}))};function $e(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Ce=(t,e)=>{let r=t;if(!e)return r;let{tagName:n="mark",bgColor:s,color:i,style:o={},renderHighlightKeyword:a}=e;if(typeof a=="function")return a(t);o.backgroundColor=s,o.color=i;let c=`style="${Object.keys(o).map(l=>`${$e(l)}:${o[l]}`).join(";")}"`;return`<${n} ${c}>${r}</${n}>`},Ae=(t,e)=>{let r="";return e.forEach(n=>{let{start:s,end:i,option:o}=n,a=t.slice(s,i),u=Ce(a,o);r+=u,n.subString=u}),r},_e=(t,e)=>{let r=[];return e.forEach(n=>{let s={keyword:""};typeof n=="string"?s={keyword:n}:s=n;let{keyword:i,caseSensitive:o=!0}=s,a=Le(t,i,o?"g":"gi"),u={keyword:i,indexList:a,option:s};r.push(u)}),r},Te=(t,e)=>{let r=_e(t,e),n=[],s=(o,a)=>{for(let u=0;u<n.length;u++){let c=n[u];if(o>c.start&&o<c.end||o+a>c.start&&o+a<c.end||c.start>o&&c.start<o+a||c.end>o&&c.end<o+a||o===c.start&&o+a===c.end)return-1;if(o+a<=c.start)return u}return n.length};r.forEach(({indexList:o,option:a})=>{o.forEach(u=>{let{index:c,subString:l}=u,_={start:c,end:c+l.length,option:a},S=s(c,l.length);S!==-1&&n.splice(S,0,_)})});let i=[];return n.forEach((o,a)=>{let{start:u,end:c}=o,l=n[a+1];a===0&&u>0&&i.push({start:0,end:u,subString:t.slice(0,u)}),i.push(g(h({},o),{subString:t.slice(u,c)})),(l==null?void 0:l.start)>c&&i.push({start:c,end:l.start,subString:t.slice(c,l.start)}),a===n.length-1&&c<t.length-1&&i.push({start:c,end:t.length-1,subString:t.slice(c,t.length)})}),i},De=(t,e)=>{let r=Te(t,e);return{highText:Ae(t,r),highList:r}};import{clearInterval as H,clearTimeout as ft,setInterval as pt,setTimeout as ht}from"worker-timers";var w="active",j="idle",lt="hidden",y,v,E,m={},d={attach(t,e){m[t]||(m[t]=[]),m[t].push(e)},fire(t,e=[]){m[t]&&m[t].forEach(r=>{r(...e)})},remove(t,e){e||Reflect.deleteProperty(m,t),m[t]&&(m[t]=m[t].filter(r=>e!==r))},dom(t,e,r){return E||(t.addEventListener?E=(n,s,i)=>n.addEventListener(s,i,!1):typeof t.attachEvent=="function"?E=(n,s,i)=>n.attachEvent(`on${s}`,i,!1):E=(n,s,i)=>n[`on${s}`]=i),E(t,e,r)}},W=class{constructor(e,r,n){this.activity=e,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",s=>{this.stopped===!1&&(s.status===w?this.start():this.pause())})}start(){this.stopped=!1,H(this.token),this.token=pt(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,H(this.token)}resume(){this.start()}pause(){this.stop()}},A=class{constructor(){if(this.status=w,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(y="hidden",v="visibilitychange"):document.mozHidden!==void 0?(y="mozHidden",v="mozvisibilitychange"):document.msHidden!==void 0?(y="msHidden",v="msvisibilitychange"):document.webkitHidden!==void 0&&(y="webkitHidden",v="webkitvisibilitychange"),y===void 0)this.legacyMode();else{let e=()=>{document[y]?this.blur():this.focus()};e(),d.dom(document,v,e)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(d.dom(window,"blur",()=>this.blur()),d.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(e){e instanceof MouseEvent&&e.movementX===0&&e.movementY===0||(this.timers.map(ft),this.timers.length=0,this.status===j&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(ht(()=>{if(this.status===w||this.status===lt)return this.idle()},this.idleTime)))}trackIdleStatus(){d.dom(document,"mousemove",this.startIdleTimer.bind(this)),d.dom(document,"mousedown",this.startIdleTimer.bind(this)),d.dom(document,"keyup",this.startIdleTimer.bind(this)),d.dom(document,"touchstart",this.startIdleTimer.bind(this)),d.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(e,r){return d.attach(e,r),this}off(e,r){return d.remove(e,r),this}setIdleDuration(e){return this.idleTime=e*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let e=+new Date,r;if(this.status===j)r={isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-e;r={isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(e){return e?this.on("idle",e):(this.status=j,d.fire("idle"),d.fire("statusChanged",[{status:this.status}])),this}blur(e){return e?this.on("blur",e):(this.status=lt,d.fire("blur"),d.fire("statusChanged",[{status:this.status}])),this}focus(e){return e?this.on("focus",e):this.status!==w&&(this.status=w,d.fire("focus"),d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}wakeUp(e){return e?this.on("wakeUp",e):this.status!==w&&(this.status=w,d.fire("wakeUp"),d.fire("statusChanged",[{status:this.status}])),this}onEvery(e,r){return new W(this,e,r)}now(e){return e!==void 0?this.status===e:this.status===w}};import{isFunction as Ie}from"lodash-es";function mt(t,e="default",r){if(!t||!Reflect.has(t,e)||!Ie(t[e]))return null;let n=t[e];return n?n(r):null}function Be(t,e=[]){let r=Object.keys(t),n={};return r.forEach(s=>{if(e.includes(s))return null;n[s]=i=>mt(t,s,i)}),n}function ke(t,{type:e="text/javascript"}={}){return new Promise((r,n)=>{let s=!1,i=document.querySelector(`script[src="${t}"]`);if(!i)i=document.createElement("script"),i.type=e,i.async=!0,i.src=t,s=!0;else if(i.hasAttribute("data-loaded")){r({el:i});return}i.addEventListener("error",n),i.addEventListener("abort",n),i.addEventListener("load",()=>{i.setAttribute("data-loaded",!0),r({el:i})}),s&&document.head.appendChild(i)})}function Fe(t){return new Promise((e,r)=>{let n=document.querySelector(`script[src="${t}"]`);if(!n){r();return}document.head.removeChild(n),e()})}function Oe(t,e,r){return yt(t,e,r,!1)}function Re(t,e,r){return yt(t,e,r,!0).length>0}function wt(t){return typeof t!="string"?t:t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Z=new Map;function gt(t,e){if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r=="undefined")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})}function Ue(t,e){e=h({caseSensitive:!1},e);let r=t+JSON.stringify(e);if(Z.has(r))return Z.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=wt(t).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return s.negated=n,Z.set(r,s),s}function yt(t,e,r,n){if(t=gt(t,"inputs"),e=gt(e,"patterns"),e.length===0)return[];e=e.map(o=>Ue(o,r));let{allPatterns:s}=r||{},i=[];for(let o of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(o)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||s&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(o),n))break}return i}var ze={id:"id",children:"children",pid:"pid"},x=t=>Object.assign({},ze,t);function Ne(t,e,r={}){r=x(r);let{children:n}=r,s=[...t];for(let i of s){if(e(i))return i;i[n]&&s.push(...i[n])}return null}function Me(t,e,r={}){r=x(r);let{children:n}=r,s=[...t],i=[];for(let o of s)e(o)&&i.push(o),o[n]&&s.push(...o[n]);return i}function Pe(t,e,r={}){r=x(r);let n=[],s=[...t],i=new Set,{children:o}=r;for(;s.length;){let a=s[0];if(i.has(a))n.pop(),s.shift();else if(i.add(a),a[o]&&s.unshift(...a[o]),n.push(a),e(a))return n}return null}function je(t,e,r={}){r=x(r);let n=[],s=[...t],i=[],o=new Set,{children:a}=r;for(;s.length;){let u=s[0];o.has(u)?(n.pop(),s.shift()):(o.add(u),u[a]&&s.unshift(...u[a]),n.push(u),e(u)&&i.push([...n]))}return i}function He(t,e,r={}){r=x(r);let n=r.children;function s(i){return i.map(o=>h({},o)).filter(o=>(o[n]=o[n]&&s(o[n]),e(o)||o[n]&&o[n].length))}return s(t)}function We(t,e,r={}){r=x(r);let n=[...t],{children:s}=r;for(let i=0;i<n.length;i++){if(e(n[i]))return;s&&n[i][s]&&n.splice(i+1,0,...n[i][s])}}function Ze(t,e){return t.map(r=>q(r,e))}function q(t,{children:e="children",conversion:r}){let n=Array.isArray(t[e])&&t[e].length>0,s=r(t)||{};return n?g(h({},s),{[e]:t[e].map(i=>q(i,{children:e,conversion:r}))}):h({},s)}import{v4 as xt}from"uuid";function qe({native:t=!0}={}){var e,r,n;return t?(n=(r=(e=window.crypto)==null?void 0:e.randomUUID)==null?void 0:r.call(e))!=null?n:xt():xt()}var bt=0;function Ye(t=""){let e=Date.now(),r=Math.floor(Math.random()*1e9);return bt++,`${t}_${r}${bt}${String(e)}`}export{N as AesEncryption,A as IfActivity,ot as ResizeObserver,ae as addClass,ye as addLocationListener,me as addResizeListener,z as buildBEM,Ye as buildShortUUID,qe as buildUUID,H as clearWorkerInterval,ft as clearWorkerTimeout,Yt as createBEM,Jt as createNamespace,Zt as createSearchReg,at as dataURLtoBlob,ee as decodeByBase64,rt as deepMerge,fe as domOffEvent,le as domOnEvent,ut as downloadByBase64,dt as downloadByData,Ee as downloadByOnlineUrl,Se as downloadByUrl,ve as downloadPercent,Ot as enableTransitions,te as encryptByBase64,re as encryptByMd5,wt as escapeStringRegexp,Be as extendSlots,He as filterTree,Ne as findNode,Me as findNodeAll,Pe as findPath,je as findPathAll,We as forEachTree,qt as getActualWidthOfChars,it as getBoundingClientRect,Pt as getRawRoute,mt as getSlot,ue as getViewportOffset,de as hackCss,P as hasClass,De as highlightHtml,V as is,O as isBrowser,Ft as isChineseText,k as isChrome,B as isClient,I as isIterableArray,Re as isMatch,It as isNumeric,$ as isObject,Dt as isPositiveInteger,F as isSafari,C as isServer,Bt as isSupportNativeEllipsis,kt as isSupportResizeObserver,Tt as isUrl,ke as loadScript,Oe as matcher,R as openWindow,b as regexpMap,ce as removeClass,ge as removeResizeListener,oe as setCssVar,jt as setObjToUrlParams,pt as setWorkerInterval,ht as setWorkerTimeout,Gr as titleCase,Ze as treeMap,q as treeMapEach,we as triggerWindowResize,Fe as unloadScript,Ht as unsetAllProperty,ct as urlToBase64,pe as useRafThrottle,Mt as withInstall};
|
|
1
|
+
var Dt=Object.create;var xe=Object.defineProperty,zt=Object.defineProperties,$t=Object.getOwnPropertyDescriptor,Ft=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,It=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ue=(e,t,r)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&Ue(e,r,t[r]);if(re)for(var r of re(t))Ne.call(t,r)&&Ue(e,r,t[r]);return e},J=(e,t)=>zt(e,Ft(t));var we=(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 Me=(e,t)=>{var r={};for(var n in e)_e.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&Ne.call(e,n)&&(r[n]=e[n]);return r};var Rt=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ht=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tt(t))!_e.call(e,o)&&o!==r&&xe(e,o,{get:()=>t[o],enumerable:!(n=$t(t,o))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?Dt(It(e)):{},Ht(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e));var k=Rt(()=>{});var q=j((se,Ve)=>{k();(function(e,t){typeof se=="object"?Ve.exports=se=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(se,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 we=="function")try{n=we("crypto")}catch(i){}var o=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(a){var x;return i.prototype=a,x=new i,i.prototype=null,x}}(),f={},s=f.lib={},y=s.Base=function(){return{extend:function(i){var a=c(this);return i&&a.mixIn(i),(!a.hasOwnProperty("init")||this.init===a.init)&&(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var a in i)i.hasOwnProperty(a)&&(this[a]=i[a]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=s.WordArray=y.extend({init:function(i,a){i=this.words=i||[],a!=r?this.sigBytes=a:this.sigBytes=i.length*4},toString:function(i){return(i||B).stringify(this)},concat:function(i){var a=this.words,x=i.words,_=this.sigBytes,D=i.sigBytes;if(this.clamp(),_%4)for(var z=0;z<D;z++){var R=x[z>>>2]>>>24-z%4*8&255;a[_+z>>>2]|=R<<24-(_+z)%4*8}else for(var A=0;A<D;A+=4)a[_+A>>>2]=x[A>>>2];return this.sigBytes+=D,this},clamp:function(){var i=this.words,a=this.sigBytes;i[a>>>2]&=4294967295<<32-a%4*8,i.length=t.ceil(a/4)},clone:function(){var i=y.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var a=[],x=0;x<i;x+=4)a.push(o());return new u.init(a,i)}}),l=f.enc={},B=l.Hex={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push((z>>>4).toString(16)),_.push((z&15).toString(16))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_+=2)x[_>>>3]|=parseInt(i.substr(_,2),16)<<24-_%8*4;return new u.init(x,a/2)}},b=l.Latin1={stringify:function(i){for(var a=i.words,x=i.sigBytes,_=[],D=0;D<x;D++){var z=a[D>>>2]>>>24-D%4*8&255;_.push(String.fromCharCode(z))}return _.join("")},parse:function(i){for(var a=i.length,x=[],_=0;_<a;_++)x[_>>>2]|=(i.charCodeAt(_)&255)<<24-_%4*8;return new u.init(x,a)}},C=l.Utf8={stringify:function(i){try{return decodeURIComponent(escape(b.stringify(i)))}catch(a){throw new Error("Malformed UTF-8 data")}},parse:function(i){return b.parse(unescape(encodeURIComponent(i)))}},S=s.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new u.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 a,x=this._data,_=x.words,D=x.sigBytes,z=this.blockSize,R=z*4,A=D/R;i?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var I=A*z,H=t.min(I*4,D);if(I){for(var d=0;d<I;d+=z)this._doProcessBlock(_,d);a=_.splice(0,I),x.sigBytes-=H}return new u.init(a,H)},clone:function(){var i=y.clone.call(this);return i._data=this._data.clone(),i},_minBufferSize:0}),F=s.Hasher=S.extend({cfg:y.extend(),init:function(i){this.cfg=this.cfg.extend(i),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(i){return this._append(i),this._process(),this},finalize:function(i){i&&this._append(i);var a=this._doFinalize();return a},blockSize:512/32,_createHelper:function(i){return function(a,x){return new i.init(x).finalize(a)}},_createHmacHelper:function(i){return function(a,x){return new L.HMAC.init(i,x).finalize(a)}}}),L=f.algo={};return f}(Math);return e})});var De=j((oe,Ze)=>{k();(function(e,t){typeof oe=="object"?Ze.exports=oe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(oe,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=t.enc,c=o.Base64={stringify:function(s){var y=s.words,u=s.sigBytes,l=this._map;s.clamp();for(var B=[],b=0;b<u;b+=3)for(var C=y[b>>>2]>>>24-b%4*8&255,S=y[b+1>>>2]>>>24-(b+1)%4*8&255,F=y[b+2>>>2]>>>24-(b+2)%4*8&255,L=C<<16|S<<8|F,i=0;i<4&&b+i*.75<u;i++)B.push(l.charAt(L>>>6*(3-i)&63));var a=l.charAt(64);if(a)for(;B.length%4;)B.push(a);return B.join("")},parse:function(s){var y=s.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var B=0;B<u.length;B++)l[u.charCodeAt(B)]=B}var b=u.charAt(64);if(b){var C=s.indexOf(b);C!==-1&&(y=C)}return f(s,y,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(s,y,u){for(var l=[],B=0,b=0;b<y;b++)if(b%4){var C=u[s.charCodeAt(b-1)]<<b%4*2,S=u[s.charCodeAt(b)]>>>6-b%4*2,F=C|S;l[B>>>2]|=F<<24-B%4*8,B++}return n.create(l,B)}}(),e.enc.Base64})});var ze=j((ae,Ye)=>{k();(function(e,t){typeof ae=="object"?Ye.exports=ae=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ae,function(e){return function(t){var r=e,n=r.lib,o=n.WordArray,c=n.Hasher,f=r.algo,s=[];(function(){for(var C=0;C<64;C++)s[C]=t.abs(t.sin(C+1))*4294967296|0})();var y=f.MD5=c.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(C,S){for(var F=0;F<16;F++){var L=S+F,i=C[L];C[L]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,x=C[S+0],_=C[S+1],D=C[S+2],z=C[S+3],R=C[S+4],A=C[S+5],I=C[S+6],H=C[S+7],d=C[S+8],w=C[S+9],E=C[S+10],p=C[S+11],$=C[S+12],T=C[S+13],W=C[S+14],N=C[S+15],h=a[0],v=a[1],m=a[2],g=a[3];h=u(h,v,m,g,x,7,s[0]),g=u(g,h,v,m,_,12,s[1]),m=u(m,g,h,v,D,17,s[2]),v=u(v,m,g,h,z,22,s[3]),h=u(h,v,m,g,R,7,s[4]),g=u(g,h,v,m,A,12,s[5]),m=u(m,g,h,v,I,17,s[6]),v=u(v,m,g,h,H,22,s[7]),h=u(h,v,m,g,d,7,s[8]),g=u(g,h,v,m,w,12,s[9]),m=u(m,g,h,v,E,17,s[10]),v=u(v,m,g,h,p,22,s[11]),h=u(h,v,m,g,$,7,s[12]),g=u(g,h,v,m,T,12,s[13]),m=u(m,g,h,v,W,17,s[14]),v=u(v,m,g,h,N,22,s[15]),h=l(h,v,m,g,_,5,s[16]),g=l(g,h,v,m,I,9,s[17]),m=l(m,g,h,v,p,14,s[18]),v=l(v,m,g,h,x,20,s[19]),h=l(h,v,m,g,A,5,s[20]),g=l(g,h,v,m,E,9,s[21]),m=l(m,g,h,v,N,14,s[22]),v=l(v,m,g,h,R,20,s[23]),h=l(h,v,m,g,w,5,s[24]),g=l(g,h,v,m,W,9,s[25]),m=l(m,g,h,v,z,14,s[26]),v=l(v,m,g,h,d,20,s[27]),h=l(h,v,m,g,T,5,s[28]),g=l(g,h,v,m,D,9,s[29]),m=l(m,g,h,v,H,14,s[30]),v=l(v,m,g,h,$,20,s[31]),h=B(h,v,m,g,A,4,s[32]),g=B(g,h,v,m,d,11,s[33]),m=B(m,g,h,v,p,16,s[34]),v=B(v,m,g,h,W,23,s[35]),h=B(h,v,m,g,_,4,s[36]),g=B(g,h,v,m,R,11,s[37]),m=B(m,g,h,v,H,16,s[38]),v=B(v,m,g,h,E,23,s[39]),h=B(h,v,m,g,T,4,s[40]),g=B(g,h,v,m,x,11,s[41]),m=B(m,g,h,v,z,16,s[42]),v=B(v,m,g,h,I,23,s[43]),h=B(h,v,m,g,w,4,s[44]),g=B(g,h,v,m,$,11,s[45]),m=B(m,g,h,v,N,16,s[46]),v=B(v,m,g,h,D,23,s[47]),h=b(h,v,m,g,x,6,s[48]),g=b(g,h,v,m,H,10,s[49]),m=b(m,g,h,v,W,15,s[50]),v=b(v,m,g,h,A,21,s[51]),h=b(h,v,m,g,$,6,s[52]),g=b(g,h,v,m,z,10,s[53]),m=b(m,g,h,v,E,15,s[54]),v=b(v,m,g,h,_,21,s[55]),h=b(h,v,m,g,d,6,s[56]),g=b(g,h,v,m,N,10,s[57]),m=b(m,g,h,v,I,15,s[58]),v=b(v,m,g,h,T,21,s[59]),h=b(h,v,m,g,R,6,s[60]),g=b(g,h,v,m,p,10,s[61]),m=b(m,g,h,v,D,15,s[62]),v=b(v,m,g,h,w,21,s[63]),a[0]=a[0]+h|0,a[1]=a[1]+v|0,a[2]=a[2]+m|0,a[3]=a[3]+g|0},_doFinalize:function(){var C=this._data,S=C.words,F=this._nDataBytes*8,L=C.sigBytes*8;S[L>>>5]|=128<<24-L%32;var i=t.floor(F/4294967296),a=F;S[(L+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,S[(L+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,C.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,_=x.words,D=0;D<4;D++){var z=_[D];_[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return x},clone:function(){var C=c.clone.call(this);return C._hash=this._hash.clone(),C}});function u(C,S,F,L,i,a,x){var _=C+(S&F|~S&L)+i+x;return(_<<a|_>>>32-a)+S}function l(C,S,F,L,i,a,x){var _=C+(S&L|F&~L)+i+x;return(_<<a|_>>>32-a)+S}function B(C,S,F,L,i,a,x){var _=C+(S^F^L)+i+x;return(_<<a|_>>>32-a)+S}function b(C,S,F,L,i,a,x){var _=C+(F^(S|~L))+i+x;return(_<<a|_>>>32-a)+S}r.MD5=c._createHelper(y),r.HmacMD5=c._createHmacHelper(y)}(Math),e.MD5})});var Qe=j((ce,Ge)=>{k();(function(e,t){typeof ce=="object"?Ge.exports=ce=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(ce,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,o=r.Hasher,c=t.algo,f=[],s=c.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,u){for(var l=this._hash.words,B=l[0],b=l[1],C=l[2],S=l[3],F=l[4],L=0;L<80;L++){if(L<16)f[L]=y[u+L]|0;else{var i=f[L-3]^f[L-8]^f[L-14]^f[L-16];f[L]=i<<1|i>>>31}var a=(B<<5|B>>>27)+F+f[L];L<20?a+=(b&C|~b&S)+1518500249:L<40?a+=(b^C^S)+1859775393:L<60?a+=(b&C|b&S|C&S)-1894007588:a+=(b^C^S)-899497514,F=S,S=C,C=b<<30|b>>>2,b=B,B=a}l[0]=l[0]+B|0,l[1]=l[1]+b|0,l[2]=l[2]+C|0,l[3]=l[3]+S|0,l[4]=l[4]+F|0},_doFinalize:function(){var y=this._data,u=y.words,l=this._nDataBytes*8,B=y.sigBytes*8;return u[B>>>5]|=128<<24-B%32,u[(B+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(B+64>>>9<<4)+15]=l,y.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})});var et=j((fe,Xe)=>{k();(function(e,t){typeof fe=="object"?Xe.exports=fe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(fe,function(e){(function(){var t=e,r=t.lib,n=r.Base,o=t.enc,c=o.Utf8,f=t.algo,s=f.HMAC=n.extend({init:function(y,u){y=this._hasher=new y.init,typeof u=="string"&&(u=c.parse(u));var l=y.blockSize,B=l*4;u.sigBytes>B&&(u=y.finalize(u)),u.clamp();for(var b=this._oKey=u.clone(),C=this._iKey=u.clone(),S=b.words,F=C.words,L=0;L<l;L++)S[L]^=1549556828,F[L]^=909522486;b.sigBytes=C.sigBytes=B,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var u=this._hasher,l=u.finalize(y);u.reset();var B=u.finalize(this._oKey.clone().concat(l));return B}})})()})});var $e=j((ue,tt)=>{k();(function(e,t,r){typeof ue=="object"?tt.exports=ue=t(q(),Qe(),et()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(ue,function(e){return function(){var t=e,r=t.lib,n=r.Base,o=r.WordArray,c=t.algo,f=c.MD5,s=c.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:f,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var l,B=this.cfg,b=B.hasher.create(),C=o.create(),S=C.words,F=B.keySize,L=B.iterations;S.length<F;){l&&b.update(l),l=b.update(y).finalize(u),b.reset();for(var i=1;i<L;i++)l=b.finalize(l),b.reset();C.concat(l)}return C.sigBytes=F*4,C}});t.EvpKDF=function(y,u,l){return s.create(l).compute(y,u)}}(),e.EvpKDF})});var le=j((de,rt)=>{k();(function(e,t,r){typeof de=="object"?rt.exports=de=t(q(),$e()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(de,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,o=n.Base,c=n.WordArray,f=n.BufferedBlockAlgorithm,s=r.enc,y=s.Utf8,u=s.Base64,l=r.algo,B=l.EvpKDF,b=n.Cipher=f.extend({cfg:o.extend(),createEncryptor:function(d,w){return this.create(this._ENC_XFORM_MODE,d,w)},createDecryptor:function(d,w){return this.create(this._DEC_XFORM_MODE,d,w)},init:function(d,w,E){this.cfg=this.cfg.extend(E),this._xformMode=d,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(d){return this._append(d),this._process()},finalize:function(d){d&&this._append(d);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function d(w){return typeof w=="string"?H:R}return function(w){return{encrypt:function(E,p,$){return d(p).encrypt(w,E,p,$)},decrypt:function(E,p,$){return d(p).decrypt(w,E,p,$)}}}}()}),C=n.StreamCipher=b.extend({_doFinalize:function(){var d=this._process(!0);return d},blockSize:1}),S=r.mode={},F=n.BlockCipherMode=o.extend({createEncryptor:function(d,w){return this.Encryptor.create(d,w)},createDecryptor:function(d,w){return this.Decryptor.create(d,w)},init:function(d,w){this._cipher=d,this._iv=w}}),L=S.CBC=function(){var d=F.extend();d.Encryptor=d.extend({processBlock:function(E,p){var $=this._cipher,T=$.blockSize;w.call(this,E,p,T),$.encryptBlock(E,p),this._prevBlock=E.slice(p,p+T)}}),d.Decryptor=d.extend({processBlock:function(E,p){var $=this._cipher,T=$.blockSize,W=E.slice(p,p+T);$.decryptBlock(E,p),w.call(this,E,p,T),this._prevBlock=W}});function w(E,p,$){var T,W=this._iv;W?(T=W,this._iv=t):T=this._prevBlock;for(var N=0;N<$;N++)E[p+N]^=T[N]}return d}(),i=r.pad={},a=i.Pkcs7={pad:function(d,w){for(var E=w*4,p=E-d.sigBytes%E,$=p<<24|p<<16|p<<8|p,T=[],W=0;W<p;W+=4)T.push($);var N=c.create(T,p);d.concat(N)},unpad:function(d){var w=d.words[d.sigBytes-1>>>2]&255;d.sigBytes-=w}},x=n.BlockCipher=b.extend({cfg:b.cfg.extend({mode:L,padding:a}),reset:function(){var d;b.reset.call(this);var w=this.cfg,E=w.iv,p=w.mode;this._xformMode==this._ENC_XFORM_MODE?d=p.createEncryptor:(d=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==d?this._mode.init(this,E&&E.words):(this._mode=d.call(p,this,E&&E.words),this._mode.__creator=d)},_doProcessBlock:function(d,w){this._mode.processBlock(d,w)},_doFinalize:function(){var d,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),d=this._process(!0)):(d=this._process(!0),w.unpad(d)),d},blockSize:128/32}),_=n.CipherParams=o.extend({init:function(d){this.mixIn(d)},toString:function(d){return(d||this.formatter).stringify(this)}}),D=r.format={},z=D.OpenSSL={stringify:function(d){var w,E=d.ciphertext,p=d.salt;return p?w=c.create([1398893684,1701076831]).concat(p).concat(E):w=E,w.toString(u)},parse:function(d){var w,E=u.parse(d),p=E.words;return p[0]==1398893684&&p[1]==1701076831&&(w=c.create(p.slice(2,4)),p.splice(0,4),E.sigBytes-=16),_.create({ciphertext:E,salt:w})}},R=n.SerializableCipher=o.extend({cfg:o.extend({format:z}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=d.createEncryptor(E,p),T=$.finalize(w),W=$.cfg;return _.create({ciphertext:T,key:E,iv:W.iv,algorithm:d,mode:W.mode,padding:W.padding,blockSize:d.blockSize,formatter:p.format})},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=d.createDecryptor(E,p).finalize(w.ciphertext);return $},_parse:function(d,w){return typeof d=="string"?w.parse(d,this):d}}),A=r.kdf={},I=A.OpenSSL={execute:function(d,w,E,p,$){if(p||(p=c.random(64/8)),$)var T=B.create({keySize:w+E,hasher:$}).compute(d,p);else var T=B.create({keySize:w+E}).compute(d,p);var W=c.create(T.words.slice(w),E*4);return T.sigBytes=w*4,_.create({key:T,iv:W,salt:p})}},H=n.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:I}),encrypt:function(d,w,E,p){p=this.cfg.extend(p);var $=p.kdf.execute(E,d.keySize,d.ivSize,p.salt,p.hasher);p.iv=$.iv;var T=R.encrypt.call(this,d,w,$.key,p);return T.mixIn($),T},decrypt:function(d,w,E,p){p=this.cfg.extend(p),w=this._parse(w,p.format);var $=p.kdf.execute(E,d.keySize,d.ivSize,w.salt,p.hasher);p.iv=$.iv;var T=R.decrypt.call(this,d,w,$.key,p);return T}})}()})});var it=j((he,nt)=>{k();(function(e,t,r){typeof he=="object"?nt.exports=he=t(q(),De(),ze(),$e(),le()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(he,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,o=t.algo,c=[],f=[],s=[],y=[],u=[],l=[],B=[],b=[],C=[],S=[];(function(){for(var i=[],a=0;a<256;a++)a<128?i[a]=a<<1:i[a]=a<<1^283;for(var x=0,_=0,a=0;a<256;a++){var D=_^_<<1^_<<2^_<<3^_<<4;D=D>>>8^D&255^99,c[x]=D,f[D]=x;var z=i[x],R=i[z],A=i[R],I=i[D]*257^D*16843008;s[x]=I<<24|I>>>8,y[x]=I<<16|I>>>16,u[x]=I<<8|I>>>24,l[x]=I;var I=A*16843009^R*65537^z*257^x*16843008;B[D]=I<<24|I>>>8,b[D]=I<<16|I>>>16,C[D]=I<<8|I>>>24,S[D]=I,x?(x=z^i[i[i[A^z]]],_^=i[i[_]]):x=_=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],L=o.AES=n.extend({_doReset:function(){var i;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var a=this._keyPriorReset=this._key,x=a.words,_=a.sigBytes/4,D=this._nRounds=_+6,z=(D+1)*4,R=this._keySchedule=[],A=0;A<z;A++)A<_?R[A]=x[A]:(i=R[A-1],A%_?_>6&&A%_==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/_|0]<<24),R[A]=R[A-_]^i);for(var I=this._invKeySchedule=[],H=0;H<z;H++){var A=z-H;if(H%4)var i=R[A];else var i=R[A-4];H<4||A<=4?I[H]=i:I[H]=B[c[i>>>24]]^b[c[i>>>16&255]]^C[c[i>>>8&255]]^S[c[i&255]]}}},encryptBlock:function(i,a){this._doCryptBlock(i,a,this._keySchedule,s,y,u,l,c)},decryptBlock:function(i,a){var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x,this._doCryptBlock(i,a,this._invKeySchedule,B,b,C,S,f);var x=i[a+1];i[a+1]=i[a+3],i[a+3]=x},_doCryptBlock:function(i,a,x,_,D,z,R,A){for(var I=this._nRounds,H=i[a]^x[0],d=i[a+1]^x[1],w=i[a+2]^x[2],E=i[a+3]^x[3],p=4,$=1;$<I;$++){var T=_[H>>>24]^D[d>>>16&255]^z[w>>>8&255]^R[E&255]^x[p++],W=_[d>>>24]^D[w>>>16&255]^z[E>>>8&255]^R[H&255]^x[p++],N=_[w>>>24]^D[E>>>16&255]^z[H>>>8&255]^R[d&255]^x[p++],h=_[E>>>24]^D[H>>>16&255]^z[d>>>8&255]^R[w&255]^x[p++];H=T,d=W,w=N,E=h}var T=(A[H>>>24]<<24|A[d>>>16&255]<<16|A[w>>>8&255]<<8|A[E&255])^x[p++],W=(A[d>>>24]<<24|A[w>>>16&255]<<16|A[E>>>8&255]<<8|A[H&255])^x[p++],N=(A[w>>>24]<<24|A[E>>>16&255]<<16|A[H>>>8&255]<<8|A[d&255])^x[p++],h=(A[E>>>24]<<24|A[H>>>16&255]<<16|A[d>>>8&255]<<8|A[w&255])^x[p++];i[a]=T,i[a+1]=W,i[a+2]=N,i[a+3]=h},keySize:256/32});t.AES=n._createHelper(L)}(),e.AES})});var ot=j((pe,st)=>{k();(function(e,t){typeof pe=="object"?st.exports=pe=t(q()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(pe,function(e){return e.enc.Utf8})});var ct=j((ve,at)=>{k();(function(e,t,r){typeof ve=="object"?at.exports=ve=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(ve,function(e){return e.pad.Pkcs7})});var ut=j((me,ft)=>{k();(function(e,t,r){typeof me=="object"?ft.exports=me=t(q(),le()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(me,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 ui}from"title-case";k();import{isPlainObject as Kt,mergeWith as Jt,isArray as qe,isEqual as Ke,intersectionWith as Vt,unionWith as Zt}from"lodash-es";k();k();var X={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 Ot=Object.prototype.toString;function je(e,t){return Ot.call(e)===`[object ${t}]`}function ne(e){return e!==null&&je(e,"Object")}function Pt(e){return X.url.test(e)}function be(e){return Array.isArray(e)&&e.length>0}function Wt(e){return Number.isInteger(e)&&e>=0}function Ut(e){return X.numeric.test(e)}var ie=typeof window=="undefined",Ce=!ie,Be=Ce&&window.navigator.userAgent.toLowerCase().includes("chrome"),Se=Ce&&window.navigator.userAgent.toLowerCase().includes("safari"),Ee=typeof window!="undefined"&&typeof document!="undefined",Nt=Ee&&typeof document.body.style.lineClamp!="undefined",Mt=Ee&&typeof ResizeObserver!="undefined",jt=e=>X.chinese.test(e),qt=()=>"startViewTransition"in document&&window.matchMedia("(prefers-reduced-motion: no-preference)").matches;var Yt=(e,t)=>{let r=e;return r.install=n=>{n.component(r.name||r.displayName,e),t&&(n.config.globalProperties[t]=e)},e};function Gt(e){if(!e)return e;let n=e,{matched:t}=n,r=Me(n,["matched"]);return J(M({},r),{matched:t?t.map(o=>({meta:o.meta,name:o.name,path:o.path})):void 0})}function ke(e,t){let{target:r="__blank",noopener:n=!0,noreferrer:o=!0}=t||{},c=[];n&&c.push("noopener=yes"),o&&c.push("noreferrer=yes"),window.open(e,r,c.join(","))}function Je(e,t,r="replace"){return t?e?Jt(e,t,(n,o)=>{if(qe(o)&&qe(n))switch(r){case"union":return Zt(n,o,Ke);case"intersection":return Vt(n,o,Ke);case"concat":return n.concat(o);case"replace":return o;default:throw new Error(`Unknown merge array strategy: ${r}`)}if(ne(o)&&ne(n))return Je(n,o,r)}):t:e}function Qt(e,t){if(!be(Object.keys(t)))return e;let r="";for(let n in t)r+=`${n}=${encodeURIComponent(t[n])}&`;return r=r.replace(/&$/,""),/\?$/.test(e)?e+r:e.replace(/\/?$/,"?")+r}function Xt(e){Kt(e)&&Object.keys(e).forEach(t=>{Reflect.deleteProperty(e,t)})}function er(e){return["$","(",")","*","+",".","[","]","?","\\","^","{","}","|"].includes(e)?`\\${e}`:e}function tr(e){let r=["",...[...e].map(n=>er(n)),""].join(".*");return new RegExp(r,"i")}function rr(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 f=c.measureText(e),s=Math.abs(f.actualBoundingBoxLeft)+Math.abs(f.actualBoundingBoxRight);return Math.ceil(Math.max(f.width,s))}k();function Ae(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((r,n)=>r+Ae(e,n),""):Object.keys(t).reduce((r,n)=>r+(t[n]?Ae(e,n):""),""):""}function Le(e){return(t,r)=>(t&&typeof t!="string"&&(r=t,t=""),t=t?`${e}__${t}`:e,`${t}${Ae(t,r)}`)}function nr(e,t=""){return[Le(`${t}-${e}`)]}function ir(e,t=""){let r=`${t}-${e}`;return[r,Le(r)]}k();var ge=Y(it(),1),Z=Y(ot(),1),dt=Y(ct(),1),lt=Y(ut(),1),ht=Y(ze(),1),Te=Y(De(),1),Fe=class{constructor(t){let{key:r,iv:n}=t;r&&(this.key=(0,Z.parse)(r)),n&&(this.iv=(0,Z.parse)(n))}get getOptions(){return{mode:lt.default,padding:dt.default,iv:this.iv}}encryptByAES(t){return(0,ge.encrypt)(t,this.key,this.getOptions).toString()}decryptByAES(t){return(0,ge.decrypt)(t,this.key,this.getOptions).toString(Z.default)}};function sr(e){return Z.default.parse(e).toString(Te.default)}function or(e){return Te.default.parse(e).toString(Z.default)}function ar(e){return(0,ht.default)(e).toString()}k();import{upperFirst as cr}from"lodash-es";var fr=()=>document.documentElement;function pt(e){return!e||!e.getBoundingClientRect?0:e.getBoundingClientRect()}function ur(e){return(e||"").replace(/^\s+|\s+$/g,"")}function Ie(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 dr(e,t,r){return r||(r=fr()),r.style.setProperty(e,t),{prop:t}}function lr(e,t){if(!e)return;let r=e.className,n=(t||"").split(" ");for(let o=0,c=n.length;o<c;o++){let f=n[o];f&&(e.classList?e.classList.add(f):Ie(e,f)||(r+=` ${f}`))}e.classList||(e.className=r)}function hr(e,t){if(!e||!t)return;let r=t.split(" "),n=` ${e.className} `;for(let o=0,c=r.length;o<c;o++){let f=r[o];f&&(e.classList?e.classList.remove(f):Ie(e,f)&&(n=n.replace(` ${f} `," ")))}e.classList||(e.className=ur(n))}function pr(e){let t=document.documentElement,r=t.scrollLeft,n=t.scrollTop,o=t.clientLeft,c=t.clientTop,f=window.scrollX,s=window.scrollY,y=pt(e);if(!y)return{};let{left:u,top:l,width:B,height:b}=y,C=(f||r)-(o||0),S=(s||n)-(c||0),F=u+f,L=l+s,i=F-C,a=L-S,x=window.document.documentElement.clientWidth,_=window.document.documentElement.clientHeight;return{left:i,top:a,right:x-B-i,bottom:_-b-a,rightIncludeBody:x-i,bottomIncludeBody:_-a}}function vr(e,t){let r=["webkit","Moz","ms","OT"],n={};return r.forEach(o=>{n[`${o}${cr(e)}`]=t}),J(M({},n),{[e]:t})}function mr(e,t,r){e&&t&&r&&e.addEventListener(t,r,!1)}function gr(e,t,r){e&&t&&r&&e.removeEventListener(t,r,!1)}function yr(e){let t=!1;return function(...r){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,r),t=!1}))}}k();import vt from"resize-observer-polyfill";function xr(e){for(let t of e){let r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}}function _r(e,t){ie||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new vt(xr),e.__ro__.observe(e)),e.__resizeListeners__.push(t))}function wr(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 br(){let e=new Event("resize",{bubbles:!0,cancelable:!0});window.dispatchEvent(e)}function Cr(e,t={}){function r(n){let o=window.history[n];return function(...c){let f=new Event(n);return f.arguments=c,window.dispatchEvent(f),o.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 Br,isNil as Sr}from"lodash-es";function mt(e){let t=e.split(","),n=t[0].match(/:(.*?);/)[1],o=window.atob(t[1]),c=o.length,f=new Uint8Array(c);for(;c--;)f[c]=o.charCodeAt(c);return new Blob([f],{type:n})}function gt(e,t){return new Promise((r,n)=>{let o=document.createElement("CANVAS"),c=o.getContext("2d"),f=new Image;f.crossOrigin="",f.onload=function(){if(!o||!c)return n();o.height=f.height,o.width=f.width,c.drawImage(f,0,0);let s=o.toDataURL(t||"image/png");o=null,r(s)},f.src=e})}function Er(e){let{loaded:t,total:r}=e;if(r<=0||Sr(r))return 0;let n=t/r;return Br((n>1?1:n)*100)}function kr(e,t,r,n){gt(e).then(o=>{yt(o,t,r,n)})}function yt(e,t,r,n){let o=mt(e);xt(o,t,r,n)}function xt(e,t,r,n){let o=typeof n!="undefined"?[n,e]:[e],c=new Blob(o,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")window.navigator.msSaveBlob(c,t);else{let f=window.URL.createObjectURL(c),s=document.createElement("a");s.style.display="none",s.href=f,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(f)}}function Ar({url:e,target:t="_blank",fileName:r}){if(/iP/.test(window.navigator.userAgent))return!1;if(Be||Se){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"),ke(e,{target:t}),!0}k();var Lr=(e,t,r="ig")=>{let n=new RegExp(t,r);return[...e.matchAll(n)].map(s=>({index:s.index,subString:s[0]}))};function Dr(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var zr=(e,t)=>{let r=e;if(!t)return r;let{tagName:n="mark",bgColor:o,color:c,style:f={},renderHighlightKeyword:s}=t;if(typeof s=="function")return s(e);f.backgroundColor=o,f.color=c;let u=`style="${Object.keys(f).map(l=>`${Dr(l)}:${f[l]}`).join(";")}"`;return`<${n} ${u}>${r}</${n}>`},$r=(e,t)=>{let r="";return t.forEach(n=>{let{start:o,end:c,option:f}=n,s=e.slice(o,c),y=zr(s,f);r+=y,n.subString=y}),r},Fr=(e,t)=>{let r=[];return t.forEach(n=>{let o={keyword:""};typeof n=="string"?o={keyword:n}:o=n;let{keyword:c,caseSensitive:f=!0}=o,s=Lr(e,c,f?"g":"gi"),y={keyword:c,indexList:s,option:o};r.push(y)}),r},Tr=(e,t)=>{let r=Fr(e,t),n=[],o=(f,s)=>{for(let y=0;y<n.length;y++){let u=n[y];if(f>u.start&&f<u.end||f+s>u.start&&f+s<u.end||u.start>f&&u.start<f+s||u.end>f&&u.end<f+s||f===u.start&&f+s===u.end)return-1;if(f+s<=u.start)return y}return n.length};r.forEach(({indexList:f,option:s})=>{f.forEach(y=>{let{index:u,subString:l}=y,B={start:u,end:u+l.length,option:s},b=o(u,l.length);b!==-1&&n.splice(b,0,B)})});let c=[];return n.forEach((f,s)=>{let{start:y,end:u}=f,l=n[s+1];s===0&&y>0&&c.push({start:0,end:y,subString:e.slice(0,y)}),c.push(J(M({},f),{subString:e.slice(y,u)})),(l==null?void 0:l.start)>u&&c.push({start:u,end:l.start,subString:e.slice(u,l.start)}),s===n.length-1&&u<e.length-1&&c.push({start:u,end:e.length-1,subString:e.slice(u,e.length)})}),c},Ir=(e,t)=>{let r=Tr(e,t);return{highText:$r(e,r),highList:r}};k();import{clearInterval as He,clearTimeout as wt,setInterval as bt,setTimeout as Ct}from"worker-timers";var V="active",Re="idle",_t="hidden",G,ee,te,K={},U={attach(e,t){K[e]||(K[e]=[]),K[e].push(t)},fire(e,t=[]){K[e]&&K[e].forEach(r=>{r(...t)})},remove(e,t){t||Reflect.deleteProperty(K,e),K[e]&&(K[e]=K[e].filter(r=>t!==r))},dom(e,t,r){return te||(e.addEventListener?te=(n,o,c)=>n.addEventListener(o,c,!1):typeof e.attachEvent=="function"?te=(n,o,c)=>n.attachEvent(`on${o}`,c,!1):te=(n,o,c)=>n[`on${o}`]=c),te(e,t,r)}},Oe=class{constructor(t,r,n){this.activity=t,this.seconds=r,this.callback=n,this.stopped=!1,this.start(),this.activity.on("statusChanged",o=>{this.stopped===!1&&(o.status===V?this.start():this.pause())})}start(){this.stopped=!1,He(this.token),this.token=bt(this.callback,this.seconds*1e3)}stop(){this.stopped=!0,He(this.token)}resume(){this.start()}pause(){this.stop()}},ye=class{constructor(){if(this.status=V,this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,document.hidden!==void 0?(G="hidden",ee="visibilitychange"):document.mozHidden!==void 0?(G="mozHidden",ee="mozvisibilitychange"):document.msHidden!==void 0?(G="msHidden",ee="msvisibilitychange"):document.webkitHidden!==void 0&&(G="webkitHidden",ee="webkitvisibilitychange"),G===void 0)this.legacyMode();else{let t=()=>{document[G]?this.blur():this.focus()};t(),U.dom(document,ee,t)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){this.isLegacyModeOn||(U.dom(window,"blur",()=>this.blur()),U.dom(window,"focus",()=>this.focus()),this.isLegacyModeOn=!0)}startIdleTimer(t){t instanceof MouseEvent&&t.movementX===0&&t.movementY===0||(this.timers.map(wt),this.timers.length=0,this.status===Re&&this.wakeUp(),this.idleStartedTime=+new Date,this.timers.push(Ct(()=>{if(this.status===V||this.status===_t)return this.idle()},this.idleTime)))}trackIdleStatus(){U.dom(document,"mousemove",this.startIdleTimer.bind(this)),U.dom(document,"mousedown",this.startIdleTimer.bind(this)),U.dom(document,"keyup",this.startIdleTimer.bind(this)),U.dom(document,"touchstart",this.startIdleTimer.bind(this)),U.dom(window,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(t,r){return U.attach(t,r),this}off(t,r){return U.remove(t,r),this}setIdleDuration(t){return this.idleTime=t*1e3,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let t=+new Date,r;if(this.status===Re)r={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;r={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:Number.parseFloat((100-n*100/this.idleTime).toFixed(2))}}return r}idle(t){return t?this.on("idle",t):(this.status=Re,U.fire("idle"),U.fire("statusChanged",[{status:this.status}])),this}blur(t){return t?this.on("blur",t):(this.status=_t,U.fire("blur"),U.fire("statusChanged",[{status:this.status}])),this}focus(t){return t?this.on("focus",t):this.status!==V&&(this.status=V,U.fire("focus"),U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}wakeUp(t){return t?this.on("wakeUp",t):this.status!==V&&(this.status=V,U.fire("wakeUp"),U.fire("statusChanged",[{status:this.status}])),this}onEvery(t,r){return new Oe(this,t,r)}now(t){return t!==void 0?this.status===t:this.status===V}};k();import{isFunction as Rr}from"lodash-es";function Bt(e,t="default",r){if(!e||!Reflect.has(e,t)||!Rr(e[t]))return null;let n=e[t];return n?n(r):null}function Hr(e,t=[]){let r=Object.keys(e),n={};return r.forEach(o=>{if(t.includes(o))return null;n[o]=c=>Bt(e,o,c)}),n}k();function Or(e,{type:t="text/javascript"}={}){return new Promise((r,n)=>{let o=!1,c=document.querySelector(`script[src="${e}"]`);if(!c)c=document.createElement("script"),c.type=t,c.async=!0,c.src=e,o=!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})}),o&&document.head.appendChild(c)})}function Pr(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 kt(e,t,r,!1)}function Ur(e,t,r){return kt(e,t,r,!0).length>0}function Et(e){return typeof e!="string"?e:e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=new Map;function St(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 Nr(e,t){t=M({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(Pe.has(r))return Pe.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Et(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Pe.set(r,o),o}function kt(e,t,r,n){if(e=St(e,"inputs"),t=St(t,"patterns"),t.length===0)return[];t=t.map(f=>Nr(f,r));let{allPatterns:o}=r||{},c=[];for(let f of e){let s,y=[...t].fill(!1);for(let[u,l]of t.entries())if(l.test(f)&&(y[u]=!0,s=!l.negated,!s))break;if(!(s===!1||s===void 0&&t.some(u=>!u.negated)||o&&y.some((u,l)=>!u&&!t[l].negated))&&(c.push(f),n))break}return c}k();var Mr={id:"id",children:"children",pid:"pid"},Q=e=>Object.assign({},Mr,e);function jr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e];for(let c of o){if(t(c))return c;c[n]&&o.push(...c[n])}return null}function qr(e,t,r={}){r=Q(r);let{children:n}=r,o=[...e],c=[];for(let f of o)t(f)&&c.push(f),f[n]&&o.push(...f[n]);return c}function Kr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=new Set,{children:f}=r;for(;o.length;){let s=o[0];if(c.has(s))n.pop(),o.shift();else if(c.add(s),s[f]&&o.unshift(...s[f]),n.push(s),t(s))return n}return null}function Jr(e,t,r={}){r=Q(r);let n=[],o=[...e],c=[],f=new Set,{children:s}=r;for(;o.length;){let y=o[0];f.has(y)?(n.pop(),o.shift()):(f.add(y),y[s]&&o.unshift(...y[s]),n.push(y),t(y)&&c.push([...n]))}return c}function Vr(e,t,r={}){r=Q(r);let n=r.children;function o(c){return c.map(f=>M({},f)).filter(f=>(f[n]=f[n]&&o(f[n]),t(f)||f[n]&&f[n].length))}return o(e)}function Zr(e,t,r={}){r=Q(r);let n=[...e],{children:o}=r;for(let c=0;c<n.length;c++){if(t(n[c]))return;o&&n[c][o]&&n.splice(c+1,0,...n[c][o])}}function Yr(e,t){return e.map(r=>We(r,t))}function We(e,{children:t="children",conversion:r}){let n=Array.isArray(e[t])&&e[t].length>0,o=r(e)||{};return n?J(M({},o),{[t]:e[t].map(c=>We(c,{children:t,conversion:r}))}):M({},o)}k();import{v4 as At}from"uuid";function Gr({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:At():At()}var Lt=0;function Qr(e=""){let t=Date.now(),r=Math.floor(Math.random()*1e9);return Lt++,`${e}_${r}${Lt}${String(t)}`}export{Fe as AesEncryption,ye as IfActivity,vt as ResizeObserver,lr as addClass,Cr as addLocationListener,_r as addResizeListener,Le as buildBEM,Qr as buildShortUUID,Gr as buildUUID,He as clearWorkerInterval,wt as clearWorkerTimeout,nr as createBEM,ir as createNamespace,tr as createSearchReg,mt as dataURLtoBlob,or as decodeByBase64,Je as deepMerge,gr as domOffEvent,mr as domOnEvent,yt as downloadByBase64,xt as downloadByData,kr as downloadByOnlineUrl,Ar as downloadByUrl,Er as downloadPercent,qt as enableTransitions,sr as encryptByBase64,ar as encryptByMd5,Et as escapeStringRegexp,Hr as extendSlots,Vr as filterTree,jr as findNode,qr as findNodeAll,Kr as findPath,Jr as findPathAll,Zr as forEachTree,rr as getActualWidthOfChars,pt as getBoundingClientRect,Gt as getRawRoute,Bt as getSlot,pr as getViewportOffset,vr as hackCss,Ie as hasClass,Ir as highlightHtml,je as is,Ee as isBrowser,jt as isChineseText,Be as isChrome,Ce as isClient,be as isIterableArray,Ur as isMatch,Ut as isNumeric,ne as isObject,Wt as isPositiveInteger,Se as isSafari,ie as isServer,Nt as isSupportNativeEllipsis,Mt as isSupportResizeObserver,Pt as isUrl,Or as loadScript,Wr as matcher,ke as openWindow,X as regexpMap,hr as removeClass,wr as removeResizeListener,dr as setCssVar,Qt as setObjToUrlParams,bt as setWorkerInterval,Ct as setWorkerTimeout,ui as titleCase,Yr as treeMap,We as treeMapEach,br as triggerWindowResize,Pr as unloadScript,Xt as unsetAllProperty,gt as urlToBase64,yr as useRafThrottle,Yt 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.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"description": "Web Dev Utils for GSC Basic Team",
|
|
6
6
|
"author": "wangll47 <wangll47@lenovo.com>",
|
|
7
7
|
"license": "UNLICENSED",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"lodash-es": "^4.17.21"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"crypto-js": "^4.2.0",
|
|
36
35
|
"resize-observer-polyfill": "^1.5.1",
|
|
37
36
|
"title-case": "^4.3.2",
|
|
38
37
|
"uuid": "^11.0.3",
|
|
39
38
|
"worker-timers": "^8.0.11"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
41
|
+
"crypto-js": "^4.2.0",
|
|
42
42
|
"lodash-es": "^4.17.21"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|