New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@utools/universal

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@utools/universal - npm Package Compare versions

Comparing version 0.0.41 to 0.0.42

LICENSE

2

dist/universal.es5.min.js

@@ -1,2 +0,2 @@

function t(t,e=1){if(e<1)return[];let n=[],r=0;const o=t.length;for(;r<o;)n=[...n,t.slice(r,r+=e)];return n}function e(t){return t.filter((t=>!!t))}function n(t,e=1){return t.slice(e)}function r(t,e=1){const n=t.length;return t.slice(0,n-e>0?n-e:0)}function o(t,e,n=0,r=t.length){return t.fill(e,n,r)}function i(t){return t[0]}function s(t){return t[t.length-1]}function u(t){const e={};for(let n=0;n<t.length;n++){const[r,o]=t[n];Object.assign(e,{[r]:o})}return e}function a(t,e=","){return t.join(e)}function c(t,e){const n=t.length;return t[(e+n)%n]}const f={getCookie(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!=e)try{return unescape(decodeURI(e[2]))}catch(t){return e[2]}return null},getAllCookies(){const t={};try{document.cookie.split("; ").forEach((e=>{const n=e.split("=");t[n[0]]=n[1]}))}catch(t){throw new Error("Cookie解析失败,请检查Cookie格式!")}return t},deleteCookie(t,e,n){const r=new Date(0);e=e?`; domain=${e}`:"",n=n||"/",document.cookie=t+"=; expires="+r.toUTCString()+e+"; path="+n},deleteAllCookies(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++)n[r]&&this.deleteCookie(n[r].split("=")[0],t,e)},setCookie(t,e,n,r){let o="";if(n){const t=new Date;t.setTime(t.getTime()+24*n*60*60*1e3),o="; expires="+t.toUTCString()}let i="";r&&(i="; domain="+r),document.cookie=t+"="+e+o+i+"; path=/"}};class l{constructor(t,e,n,r=!1){"indexedDB"in window?(this._storeName=n,this._version=e,this._database=t,this._openLog=r):console.log("This browser doesn't support IndexedDB")}open(){return new Promise(((t,e)=>{try{const n=this;if(n._db)return t(n._db);const r=indexedDB.open(n._database,n._version);r.onsuccess=function(){n._db=r.result,n._db.onversionchange=t=>{console.log("onversionchange",t)},t(r.result),console.log("Open indexedDB success!")},r.onupgradeneeded=function(e){console.log("openDb.onupgradeneeded",e),n._db=r.result,n._db.objectStoreNames.contains(n._storeName)||n._db.createObjectStore(n._storeName),t(r.result)},r.onblocked=function(t){console.log("openDb onblocked",t)},r.onerror=function(t){console.log("Maybe you not allow my web app to use IndexedDB!"),e(t)}}catch(t){console.error(t),e(t)}}))}getObjectStore(t,e){if(this._db){return this._db.transaction([t],e).objectStore(t)}return null}add(t,e){return this.wrapStoreOperationPromise((function(n){return n.add(t,e)}))}set(t,e){return this.log("IndexedDB set",t,e),this.wrapStoreOperationPromise((function(n){return n.put(e,t)}))}get(t){return this.log("IndexedDB get",t),this.wrapStoreOperationPromise((function(e){return e.get(t)}))}delete(t){return this.wrapStoreOperationPromise((function(e){return e.delete(t)}))}clear(){return this.wrapStoreOperationPromise((function(t){return t.clear()}))}getStore(){return this.getObjectStore(this._storeName,"readwrite")}wrapStoreOperationPromise(t){return new Promise(((e,n)=>{try{const r=this.getObjectStore(this._storeName,"readwrite");if(r){const o=t(r);o.onsuccess=t=>e(t.target.result),o.onerror=t=>n(t)}}catch(t){console.error(t),n(t)}}))}log(...t){this._openLog&&console.log(...t)}}const h={set(t,e){e?window.localStorage[t]="object"==typeof e?JSON.stringify(e):e:delete window.localStorage[t]},get(t){const e=window.localStorage[t]||"";return function(t){return"{"===(t=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(t)).charAt(0)&&"}"===t.charAt(t.length-1)||"["===t.charAt(0)&&"]"===t.charAt(t.length-1)}(e)?JSON.parse(e):e},remove(t){delete window.localStorage[t]},clear(){window.localStorage.clear()}};function d(){const t={};if(m())return!0;const e=navigator.userAgent.toLowerCase();let n;return(n=e.match(/rv:([\d.]+)\) like gecko/))||(n=e.match(/msie ([\d.]+)/))?t.ie=n[1]:(n=e.match(/edge\/([\d.]+)/))?t.edge=n[1]:(n=e.match(/firefox\/([\d.]+)/))?t.firefox=n[1]:(n=e.match(/(?:opera|opr).([\d.]+)/))?t.opera=n[1]:(n=e.match(/chrome\/([\d.]+)/))?t.chrome=n[1]:(n=e.match(/version\/([\d.]+).*safari/))&&(t.safari=n[1]),!!(t.chrome&&parseInt(t.chrome.split(".")[0],10)>=66||t.firefox)}function m(){const t=navigator.userAgent.toLowerCase();return/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(t)}function g(){return navigator.userAgent.indexOf("Macintosh")>-1}function p(){return navigator.userAgent.indexOf("Windows")>-1}function $(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}function w(){return""+(new Date).getTime()+~~(1e6*Math.random())}function M(t){return/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(t)}function D(t){function e(t){const e=Math.random()*(t.length-1);return t.charAt(e)}let n="num",r="";for(let o=0;o<t;o++)"num"===n?(r+=e("0123456789"),n="lower"):"lower"===n?(r+=e("abcdefghijklmnopqrstuvwxyz"),n="upper"):"upper"===n&&(r+=e("ABCDEFGHIJKLMNOPQRSTUVXYZ"),n="num");return r}function S(t){let e=0;for(;t>=1024;)t=Number((t/1024).toFixed(2)),e++;return`${t} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}`}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var y={};({get exports(){return y},set exports(t){y=t}}).exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",u="day",a="week",c="month",f="quarter",l="year",h="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},w={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:a,d:u,D:h,h:s,m:i,s:o,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},M="en",D={};D[M]=p;var S=function(t){return t instanceof O},y=function t(e,n,r){var o;if(!e)return M;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(o=i),n&&(D[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var u=e.name;D[u]=e,o=u}return!r&&o&&(M=o),o||!r&&M},v=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},b=w;b.l=y,b.i=S,b.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function p(t){this.$L=y(t.locale,null,!0),this.parse(t)}var $=p.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return!(this.$d.toString()===d)},$.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},$.isAfter=function(t,e){return v(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<v(t)},$.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),d=function(t,e){var o=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(u)},m=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,p=this.$M,$=this.$D,w="set"+(this.$u?"UTC":"");switch(f){case l:return r?d(1,0):d(31,11);case c:return r?d(1,p):d(0,p+1);case a:var M=this.$locale().weekStart||0,D=(g<M?g+7:g)-M;return d(r?$-D:$+(6-D),p);case u:case h:return m(w+"Hours",0);case s:return m(w+"Minutes",1);case i:return m(w+"Seconds",2);case o:return m(w+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var n,a=b.p(t),f="set"+(this.$u?"UTC":""),d=(n={},n[u]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[i]=f+"Minutes",n[o]=f+"Seconds",n[r]=f+"Milliseconds",n)[a],m=a===u?this.$D+(e-this.$W):e;if(a===c||a===l){var g=this.clone().set(h,1);g.$d[d](m),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[b.p(t)]()},$.add=function(r,f){var h,d=this;r=Number(r);var m=b.p(f),g=function(t){var e=v(d);return b.w(e.date(e.date()+Math.round(t*r)),d)};if(m===c)return this.set(c,this.$M+r);if(m===l)return this.set(l,this.$y+r);if(m===u)return g(1);if(m===a)return g(7);var p=(h={},h[i]=e,h[s]=n,h[o]=t,h)[m]||1,$=this.$d.getTime()+r*p;return b.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),i=this.$H,s=this.$m,u=this.$M,a=n.weekdays,c=n.months,f=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},l=function(t){return b.s(i%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:b.s(u+1,2,"0"),MMM:f(n.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,a,2),ddd:f(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(i),HH:b.s(i,2,"0"),h:l(1),hh:l(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:b.s(s,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(t,e){return e||m[t]||o.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,h,d){var m,g=b.p(h),p=v(r),$=(p.utcOffset()-this.utcOffset())*e,w=this-p,M=b.m(this,p);return M=(m={},m[l]=M/12,m[c]=M,m[f]=M/3,m[a]=(w-$)/6048e5,m[u]=(w-$)/864e5,m[s]=w/n,m[i]=w/e,m[o]=w/t,m)[g]||w,d?M:b.a(M)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return D[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=y(t,e,!0);return r&&(n.$L=r),n},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),_=O.prototype;return v.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",u],["$M",c],["$y",l],["$D",h]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,O,v),t.$i=!0),v},v.locale=y,v.isDayjs=S,v.unix=function(t){return v(1e3*t)},v.en=D[M],v.Ls=D,v.p={},v}();var v=y;const b={formatDateTime:t=>v(t).format("YYYY-MM-DD HH:mm:ss"),formatDate:t=>v(t).format("YYYY-MM-DD"),formatDateHours:t=>v(t).format("YYYY-MM-DD HH:mm"),formatDayHours:t=>v(t).format("MM-DD HH:mm"),formatHours:t=>v(t).format("HH:mm"),formatMinute:t=>v(t).format("HH:mm:ss"),formatSecond(t=0){let e=0,n=0,r=0;var o;return function(t){e=t}(function(t){return n=Math.floor(t/60),t-60*n}((o=t,r=Math.floor(o/3600),o-3600*r))),`${r?r+"h":""}${n?n+"m":""}${e?e+"s":""}`||"0s"}};function O(t,e){return t+e}function _(t,e=0){const n=Math.pow(10,e);return Math.ceil(t*n)/n}function x(t,e){return t/e}function Y(t,e=0){const n=Math.pow(10,e);return Math.floor(t*n)/n}function H(t,e){return t*e}function k(t,e=0){const n=Math.pow(10,e);return Math.round(t*n)/n}function A(t,e){return t-e}function T(t){return Object.prototype.toString.call(t)}function C(t,...e){try{return t.call(void 0,...e)}catch(t){return"[object Error]"===T(t)?t:new Error(t)}}function B(t){return function(){return t}}function j(t){return function(e){const n=t.find((t=>t[0].call(this,e)));if(void 0!==n)return n[1].call(this,e)}}function N(t){return t}function I(t,e=N){return Array.from(new Array(t),((t,n)=>e(n)))}function L(t){return function(t){return"[object Number]"===T(t)}(t)&&t!==+t}function F(t,e){return function(t){return null==t}(t)||L(t)?e:t}console.log(I(3,String));export{l as LocalIndexedDB,O as add,C as attempt,d as browserCheck,_ as ceil,t as chunk,e as compact,j as cond,B as constant,S as convertBytes,f as cookie,b as dateTime,b as default,F as defaultTo,x as divide,n as drop,r as dropRight,o as fill,i as first,Y as floor,u as fromPairs,w as generateAKey,$ as getParameterByName,D as getRandomStr,i as head,N as identity,g as isMacOs,m as isMobileDevice,M as isPhoneNumber,p as isWindows,a as join,s as last,h as localDB,H as multiply,c as nth,k as round,A as subtract,s as tail,I as times};
function t(t,e=1){if(e<1)return[];let n=[],r=0;const o=t.length;for(;r<o;)n=[...n,t.slice(r,r+=e)];return n}function e(t){return t.filter((t=>!!t))}function n(t,e=1){return t.slice(e)}function r(t,e=1){const n=t.length;return t.slice(0,n-e>0?n-e:0)}function o(t,e,n=0,r=t.length){return t.fill(e,n,r)}function i(t){return t[0]}function s(t){return t[t.length-1]}function u(t){const e={};for(let n=0;n<t.length;n++){const[r,o]=t[n];Object.assign(e,{[r]:o})}return e}function a(t,e=","){return t.join(e)}function c(t,e){const n=t.length;return t[(e+n)%n]}const f={getCookie(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!=e)try{return unescape(decodeURI(e[2]))}catch(t){return e[2]}return null},getAllCookies(){const t={};try{document.cookie.split("; ").forEach((e=>{const n=e.split("=");t[n[0]]=n[1]}))}catch(t){throw new Error("Cookie解析失败,请检查Cookie格式!")}return t},deleteCookie(t,e,n){const r=new Date(0);e=e?`; domain=${e}`:"",n=n||"/",document.cookie=t+"=; expires="+r.toUTCString()+e+"; path="+n},deleteAllCookies(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++)n[r]&&this.deleteCookie(n[r].split("=")[0],t,e)},setCookie(t,e,n,r){let o="";if(n){const t=new Date;t.setTime(t.getTime()+24*n*60*60*1e3),o="; expires="+t.toUTCString()}let i="";r&&(i="; domain="+r),document.cookie=t+"="+e+o+i+"; path=/"}};class l{constructor(t,e,n,r=!1){"indexedDB"in window?(this._storeName=n,this._version=e,this._database=t,this._openLog=r):console.log("This browser doesn't support IndexedDB")}open(){return new Promise(((t,e)=>{try{const n=this;if(n._db)return t(n._db);const r=indexedDB.open(n._database,n._version);r.onsuccess=function(){n._db=r.result,n._db.onversionchange=t=>{console.log("onversionchange",t)},t(r.result),console.log("Open indexedDB success!")},r.onupgradeneeded=function(e){console.log("openDb.onupgradeneeded",e),n._db=r.result,n._db.objectStoreNames.contains(n._storeName)||n._db.createObjectStore(n._storeName),t(r.result)},r.onblocked=function(t){console.log("openDb onblocked",t)},r.onerror=function(t){console.log("Maybe you not allow my web app to use IndexedDB!"),e(t)}}catch(t){console.error(t),e(t)}}))}getObjectStore(t,e){if(this._db){return this._db.transaction([t],e).objectStore(t)}return null}add(t,e){return this.wrapStoreOperationPromise((function(n){return n.add(t,e)}))}set(t,e){return this.log("IndexedDB set",t,e),this.wrapStoreOperationPromise((function(n){return n.put(e,t)}))}get(t){return this.log("IndexedDB get",t),this.wrapStoreOperationPromise((function(e){return e.get(t)}))}delete(t){return this.wrapStoreOperationPromise((function(e){return e.delete(t)}))}clear(){return this.wrapStoreOperationPromise((function(t){return t.clear()}))}getStore(){return this.getObjectStore(this._storeName,"readwrite")}wrapStoreOperationPromise(t){return new Promise(((e,n)=>{try{const r=this.getObjectStore(this._storeName,"readwrite");if(r){const o=t(r);o.onsuccess=t=>e(t.target.result),o.onerror=t=>n(t)}}catch(t){console.error(t),n(t)}}))}log(...t){this._openLog&&console.log(...t)}}const h={set(t,e){e?window.localStorage[t]="object"==typeof e?JSON.stringify(e):e:delete window.localStorage[t]},get(t){const e=window.localStorage[t]||"";return function(t){return"{"===(t=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(t)).charAt(0)&&"}"===t.charAt(t.length-1)||"["===t.charAt(0)&&"]"===t.charAt(t.length-1)}(e)?JSON.parse(e):e},remove(t){delete window.localStorage[t]},clear(){window.localStorage.clear()}};function d(){const t={};if(m())return!0;const e=navigator.userAgent.toLowerCase();let n;return(n=e.match(/rv:([\d.]+)\) like gecko/))||(n=e.match(/msie ([\d.]+)/))?t.ie=n[1]:(n=e.match(/edge\/([\d.]+)/))?t.edge=n[1]:(n=e.match(/firefox\/([\d.]+)/))?t.firefox=n[1]:(n=e.match(/(?:opera|opr).([\d.]+)/))?t.opera=n[1]:(n=e.match(/chrome\/([\d.]+)/))?t.chrome=n[1]:(n=e.match(/version\/([\d.]+).*safari/))&&(t.safari=n[1]),!!(t.chrome&&parseInt(t.chrome.split(".")[0],10)>=66||t.firefox)}function m(){const t=navigator.userAgent.toLowerCase();return/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(t)}function g(){return navigator.userAgent.indexOf("Macintosh")>-1}function p(){return navigator.userAgent.indexOf("Windows")>-1}function $(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}function w(){return""+(new Date).getTime()+~~(1e6*Math.random())}function M(t){return/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(t)}function D(t){function e(t){const e=Math.random()*(t.length-1);return t.charAt(e)}let n="num",r="";for(let o=0;o<t;o++)"num"===n?(r+=e("0123456789"),n="lower"):"lower"===n?(r+=e("abcdefghijklmnopqrstuvwxyz"),n="upper"):"upper"===n&&(r+=e("ABCDEFGHIJKLMNOPQRSTUVXYZ"),n="num");return r}function y(t){let e=0;for(;t>=1024;)t=Number((t/1024).toFixed(2)),e++;return`${t} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}`}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var S={};({get exports(){return S},set exports(t){S=t}}).exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",u="day",a="week",c="month",f="quarter",l="year",h="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},w={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:a,d:u,D:h,h:s,m:i,s:o,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},M="en",D={};D[M]=p;var y=function(t){return t instanceof O},S=function t(e,n,r){var o;if(!e)return M;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(o=i),n&&(D[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var u=e.name;D[u]=e,o=u}return!r&&o&&(M=o),o||!r&&M},v=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},b=w;b.l=S,b.i=y,b.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function p(t){this.$L=S(t.locale,null,!0),this.parse(t)}var $=p.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return!(this.$d.toString()===d)},$.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},$.isAfter=function(t,e){return v(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<v(t)},$.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),d=function(t,e){var o=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(u)},m=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,p=this.$M,$=this.$D,w="set"+(this.$u?"UTC":"");switch(f){case l:return r?d(1,0):d(31,11);case c:return r?d(1,p):d(0,p+1);case a:var M=this.$locale().weekStart||0,D=(g<M?g+7:g)-M;return d(r?$-D:$+(6-D),p);case u:case h:return m(w+"Hours",0);case s:return m(w+"Minutes",1);case i:return m(w+"Seconds",2);case o:return m(w+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var n,a=b.p(t),f="set"+(this.$u?"UTC":""),d=(n={},n[u]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[i]=f+"Minutes",n[o]=f+"Seconds",n[r]=f+"Milliseconds",n)[a],m=a===u?this.$D+(e-this.$W):e;if(a===c||a===l){var g=this.clone().set(h,1);g.$d[d](m),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[b.p(t)]()},$.add=function(r,f){var h,d=this;r=Number(r);var m=b.p(f),g=function(t){var e=v(d);return b.w(e.date(e.date()+Math.round(t*r)),d)};if(m===c)return this.set(c,this.$M+r);if(m===l)return this.set(l,this.$y+r);if(m===u)return g(1);if(m===a)return g(7);var p=(h={},h[i]=e,h[s]=n,h[o]=t,h)[m]||1,$=this.$d.getTime()+r*p;return b.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),i=this.$H,s=this.$m,u=this.$M,a=n.weekdays,c=n.months,f=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},l=function(t){return b.s(i%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:b.s(u+1,2,"0"),MMM:f(n.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,a,2),ddd:f(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(i),HH:b.s(i,2,"0"),h:l(1),hh:l(2),a:h(i,s,!0),A:h(i,s,!1),m:String(s),mm:b.s(s,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(t,e){return e||m[t]||o.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,h,d){var m,g=b.p(h),p=v(r),$=(p.utcOffset()-this.utcOffset())*e,w=this-p,M=b.m(this,p);return M=(m={},m[l]=M/12,m[c]=M,m[f]=M/3,m[a]=(w-$)/6048e5,m[u]=(w-$)/864e5,m[s]=w/n,m[i]=w/e,m[o]=w/t,m)[g]||w,d?M:b.a(M)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return D[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),_=O.prototype;return v.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",u],["$M",c],["$y",l],["$D",h]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,O,v),t.$i=!0),v},v.locale=S,v.isDayjs=y,v.unix=function(t){return v(1e3*t)},v.en=D[M],v.Ls=D,v.p={},v}();var v=S;const b={formatDateTime:t=>v(t).format("YYYY-MM-DD HH:mm:ss"),formatDate:t=>v(t).format("YYYY-MM-DD"),formatDateHours:t=>v(t).format("YYYY-MM-DD HH:mm"),formatDayHours:t=>v(t).format("MM-DD HH:mm"),formatHours:t=>v(t).format("HH:mm"),formatMinute:t=>v(t).format("HH:mm:ss"),formatSecond(t=0){let e=0,n=0,r=0;var o;return function(t){e=t}(function(t){return n=Math.floor(t/60),t-60*n}((o=t,r=Math.floor(o/3600),o-3600*r))),`${r?r+"h":""}${n?n+"m":""}${e?e+"s":""}`||"0s"}};function O(t,e){return t+e}function _(t,e=0){const n=Math.pow(10,e);return Math.ceil(t*n)/n}function x(t,e){return t/e}function Y(t,e=0){const n=Math.pow(10,e);return Math.floor(t*n)/n}function H(t,e){return t*e}function k(t,e=0){const n=Math.pow(10,e);return Math.round(t*n)/n}function A(t,e){return t-e}function T(t){return Object.prototype.toString.call(t)}function C(t,...e){try{return t.call(void 0,...e)}catch(t){return"[object Error]"===T(t)?t:new Error(t)}}function B(t){return function(){return t}}function j(t){return function(e){const n=t.find((t=>t[0].call(this,e)));if(void 0!==n)return n[1].call(this,e)}}function N(t){return t}function I(t,e=N){return Array.from(new Array(t),((t,n)=>e(n)))}function L(t){return function(t){return"[object Number]"===T(t)}(t)&&t!==+t}function F(t,e){return function(t){return null==t}(t)||L(t)?e:t}export{l as LocalIndexedDB,O as add,C as attempt,d as browserCheck,_ as ceil,t as chunk,e as compact,j as cond,B as constant,y as convertBytes,f as cookie,b as dateTime,b as default,F as defaultTo,x as divide,n as drop,r as dropRight,o as fill,i as first,Y as floor,u as fromPairs,w as generateAKey,$ as getParameterByName,D as getRandomStr,i as head,N as identity,g as isMacOs,m as isMobileDevice,M as isPhoneNumber,p as isWindows,a as join,s as last,h as localDB,H as multiply,c as nth,k as round,A as subtract,s as tail,I as times};
//# sourceMappingURL=universal.es5.min.js.map

@@ -0,1 +1,8 @@

/*
* @utools/universal 0.0.41
* Licensed under the MIT License
* Author: 独立开发者彷丶徨丶
* WeChat: navalism1
* Blog: https://www.panghuang.tech
*/
(function (global, factory) {

@@ -741,3 +748,2 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

}
console.log(times(3, String));

@@ -744,0 +750,0 @@ /**

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).universal={})}(this,(function(t){"use strict";function e(t){return t[0]}function n(t){return t[t.length-1]}const r={getCookie(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!=e)try{return unescape(decodeURI(e[2]))}catch(t){return e[2]}return null},getAllCookies(){const t={};try{document.cookie.split("; ").forEach((e=>{const n=e.split("=");t[n[0]]=n[1]}))}catch(t){throw new Error("Cookie解析失败,请检查Cookie格式!")}return t},deleteCookie(t,e,n){const r=new Date(0);e=e?`; domain=${e}`:"",n=n||"/",document.cookie=t+"=; expires="+r.toUTCString()+e+"; path="+n},deleteAllCookies(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++)n[r]&&this.deleteCookie(n[r].split("=")[0],t,e)},setCookie(t,e,n,r){let o="";if(n){const t=new Date;t.setTime(t.getTime()+24*n*60*60*1e3),o="; expires="+t.toUTCString()}let i="";r&&(i="; domain="+r),document.cookie=t+"="+e+o+i+"; path=/"}};const o={set(t,e){e?window.localStorage[t]="object"==typeof e?JSON.stringify(e):e:delete window.localStorage[t]},get(t){const e=window.localStorage[t]||"";return function(t){return"{"===(t=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(t)).charAt(0)&&"}"===t.charAt(t.length-1)||"["===t.charAt(0)&&"]"===t.charAt(t.length-1)}(e)?JSON.parse(e):e},remove(t){delete window.localStorage[t]},clear(){window.localStorage.clear()}};function i(){const t=navigator.userAgent.toLowerCase();return/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var s={};!function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",u="day",a="week",c="month",f="quarter",l="year",d="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},w={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:a,d:u,D:d,h:s,m:i,s:o,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},M="en",y={};y[M]=p;var D=function(t){return t instanceof O},v=function t(e,n,r){var o;if(!e)return M;if("string"==typeof e){var i=e.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var u=e.name;y[u]=e,o=u}return!r&&o&&(M=o),o||!r&&M},S=function(t,e){if(D(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},b=w;b.l=v,b.i=D,b.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function p(t){this.$L=v(t.locale,null,!0),this.parse(t)}var $=p.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return!(this.$d.toString()===h)},$.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},$.isAfter=function(t,e){return S(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<S(t)},$.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),h=function(t,e){var o=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(u)},m=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,p=this.$M,$=this.$D,w="set"+(this.$u?"UTC":"");switch(f){case l:return r?h(1,0):h(31,11);case c:return r?h(1,p):h(0,p+1);case a:var M=this.$locale().weekStart||0,y=(g<M?g+7:g)-M;return h(r?$-y:$+(6-y),p);case u:case d:return m(w+"Hours",0);case s:return m(w+"Minutes",1);case i:return m(w+"Seconds",2);case o:return m(w+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var n,a=b.p(t),f="set"+(this.$u?"UTC":""),h=(n={},n[u]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[i]=f+"Minutes",n[o]=f+"Seconds",n[r]=f+"Milliseconds",n)[a],m=a===u?this.$D+(e-this.$W):e;if(a===c||a===l){var g=this.clone().set(d,1);g.$d[h](m),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[b.p(t)]()},$.add=function(r,f){var d,h=this;r=Number(r);var m=b.p(f),g=function(t){var e=S(h);return b.w(e.date(e.date()+Math.round(t*r)),h)};if(m===c)return this.set(c,this.$M+r);if(m===l)return this.set(l,this.$y+r);if(m===u)return g(1);if(m===a)return g(7);var p=(d={},d[i]=e,d[s]=n,d[o]=t,d)[m]||1,$=this.$d.getTime()+r*p;return b.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),i=this.$H,s=this.$m,u=this.$M,a=n.weekdays,c=n.months,f=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},l=function(t){return b.s(i%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:b.s(u+1,2,"0"),MMM:f(n.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,a,2),ddd:f(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(i),HH:b.s(i,2,"0"),h:l(1),hh:l(2),a:d(i,s,!0),A:d(i,s,!1),m:String(s),mm:b.s(s,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(t,e){return e||m[t]||o.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,d,h){var m,g=b.p(d),p=S(r),$=(p.utcOffset()-this.utcOffset())*e,w=this-p,M=b.m(this,p);return M=(m={},m[l]=M/12,m[c]=M,m[f]=M/3,m[a]=(w-$)/6048e5,m[u]=(w-$)/864e5,m[s]=w/n,m[i]=w/e,m[o]=w/t,m)[g]||w,h?M:b.a(M)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return y[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),_=O.prototype;return S.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",u],["$M",c],["$y",l],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,O,S),t.$i=!0),S},S.locale=v,S.isDayjs=D,S.unix=function(t){return S(1e3*t)},S.en=y[M],S.Ls=y,S.p={},S}()}({get exports(){return s},set exports(t){s=t}});var u=s;const a={formatDateTime:t=>u(t).format("YYYY-MM-DD HH:mm:ss"),formatDate:t=>u(t).format("YYYY-MM-DD"),formatDateHours:t=>u(t).format("YYYY-MM-DD HH:mm"),formatDayHours:t=>u(t).format("MM-DD HH:mm"),formatHours:t=>u(t).format("HH:mm"),formatMinute:t=>u(t).format("HH:mm:ss"),formatSecond(t=0){let e=0,n=0,r=0;var o;return function(t){e=t}(function(t){return n=Math.floor(t/60),t-60*n}((o=t,r=Math.floor(o/3600),o-3600*r))),`${r?r+"h":""}${n?n+"m":""}${e?e+"s":""}`||"0s"}};function c(t){return Object.prototype.toString.call(t)}function f(t){return t}function l(t,e=f){return Array.from(new Array(t),((t,n)=>e(n)))}function d(t){return function(t){return"[object Number]"===c(t)}(t)&&t!==+t}console.log(l(3,String)),t.LocalIndexedDB=class{constructor(t,e,n,r=!1){"indexedDB"in window?(this._storeName=n,this._version=e,this._database=t,this._openLog=r):console.log("This browser doesn't support IndexedDB")}open(){return new Promise(((t,e)=>{try{const n=this;if(n._db)return t(n._db);const r=indexedDB.open(n._database,n._version);r.onsuccess=function(){n._db=r.result,n._db.onversionchange=t=>{console.log("onversionchange",t)},t(r.result),console.log("Open indexedDB success!")},r.onupgradeneeded=function(e){console.log("openDb.onupgradeneeded",e),n._db=r.result,n._db.objectStoreNames.contains(n._storeName)||n._db.createObjectStore(n._storeName),t(r.result)},r.onblocked=function(t){console.log("openDb onblocked",t)},r.onerror=function(t){console.log("Maybe you not allow my web app to use IndexedDB!"),e(t)}}catch(t){console.error(t),e(t)}}))}getObjectStore(t,e){if(this._db){return this._db.transaction([t],e).objectStore(t)}return null}add(t,e){return this.wrapStoreOperationPromise((function(n){return n.add(t,e)}))}set(t,e){return this.log("IndexedDB set",t,e),this.wrapStoreOperationPromise((function(n){return n.put(e,t)}))}get(t){return this.log("IndexedDB get",t),this.wrapStoreOperationPromise((function(e){return e.get(t)}))}delete(t){return this.wrapStoreOperationPromise((function(e){return e.delete(t)}))}clear(){return this.wrapStoreOperationPromise((function(t){return t.clear()}))}getStore(){return this.getObjectStore(this._storeName,"readwrite")}wrapStoreOperationPromise(t){return new Promise(((e,n)=>{try{const r=this.getObjectStore(this._storeName,"readwrite");if(r){const o=t(r);o.onsuccess=t=>e(t.target.result),o.onerror=t=>n(t)}}catch(t){console.error(t),n(t)}}))}log(...t){this._openLog&&console.log(...t)}},t.add=function(t,e){return t+e},t.attempt=function(t,...e){try{return t.call(void 0,...e)}catch(t){return"[object Error]"===c(t)?t:new Error(t)}},t.browserCheck=function(){const t={};if(i())return!0;const e=navigator.userAgent.toLowerCase();let n;return(n=e.match(/rv:([\d.]+)\) like gecko/))||(n=e.match(/msie ([\d.]+)/))?t.ie=n[1]:(n=e.match(/edge\/([\d.]+)/))?t.edge=n[1]:(n=e.match(/firefox\/([\d.]+)/))?t.firefox=n[1]:(n=e.match(/(?:opera|opr).([\d.]+)/))?t.opera=n[1]:(n=e.match(/chrome\/([\d.]+)/))?t.chrome=n[1]:(n=e.match(/version\/([\d.]+).*safari/))&&(t.safari=n[1]),!!(t.chrome&&parseInt(t.chrome.split(".")[0],10)>=66||t.firefox)},t.ceil=function(t,e=0){const n=Math.pow(10,e);return Math.ceil(t*n)/n},t.chunk=function(t,e=1){if(e<1)return[];let n=[],r=0;const o=t.length;for(;r<o;)n=[...n,t.slice(r,r+=e)];return n},t.compact=function(t){return t.filter((t=>!!t))},t.cond=function(t){return function(e){const n=t.find((t=>t[0].call(this,e)));if(void 0!==n)return n[1].call(this,e)}},t.constant=function(t){return function(){return t}},t.convertBytes=function(t){let e=0;for(;t>=1024;)t=Number((t/1024).toFixed(2)),e++;return`${t} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}`},t.cookie=r,t.dateTime=a,t.default=a,t.defaultTo=function(t,e){return function(t){return null==t}(t)||d(t)?e:t},t.divide=function(t,e){return t/e},t.drop=function(t,e=1){return t.slice(e)},t.dropRight=function(t,e=1){const n=t.length;return t.slice(0,n-e>0?n-e:0)},t.fill=function(t,e,n=0,r=t.length){return t.fill(e,n,r)},t.first=e,t.floor=function(t,e=0){const n=Math.pow(10,e);return Math.floor(t*n)/n},t.fromPairs=function(t){const e={};for(let n=0;n<t.length;n++){const[r,o]=t[n];Object.assign(e,{[r]:o})}return e},t.generateAKey=function(){return""+(new Date).getTime()+~~(1e6*Math.random())},t.getParameterByName=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},t.getRandomStr=function(t){function e(t){const e=Math.random()*(t.length-1);return t.charAt(e)}let n="num",r="";for(let o=0;o<t;o++)"num"===n?(r+=e("0123456789"),n="lower"):"lower"===n?(r+=e("abcdefghijklmnopqrstuvwxyz"),n="upper"):"upper"===n&&(r+=e("ABCDEFGHIJKLMNOPQRSTUVXYZ"),n="num");return r},t.head=e,t.identity=f,t.isMacOs=function(){return navigator.userAgent.indexOf("Macintosh")>-1},t.isMobileDevice=i,t.isPhoneNumber=function(t){return/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(t)},t.isWindows=function(){return navigator.userAgent.indexOf("Windows")>-1},t.join=function(t,e=","){return t.join(e)},t.last=n,t.localDB=o,t.multiply=function(t,e){return t*e},t.nth=function(t,e){const n=t.length;return t[(e+n)%n]},t.round=function(t,e=0){const n=Math.pow(10,e);return Math.round(t*n)/n},t.subtract=function(t,e){return t-e},t.tail=n,t.times=l,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).universal={})}(this,(function(t){"use strict";function e(t){return t[0]}function n(t){return t[t.length-1]}const r={getCookie(t){const e=document.cookie.match(new RegExp("(^| )"+t+"=([^;]*)(;|$)"));if(null!=e)try{return unescape(decodeURI(e[2]))}catch(t){return e[2]}return null},getAllCookies(){const t={};try{document.cookie.split("; ").forEach((e=>{const n=e.split("=");t[n[0]]=n[1]}))}catch(t){throw new Error("Cookie解析失败,请检查Cookie格式!")}return t},deleteCookie(t,e,n){const r=new Date(0);e=e?`; domain=${e}`:"",n=n||"/",document.cookie=t+"=; expires="+r.toUTCString()+e+"; path="+n},deleteAllCookies(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++)n[r]&&this.deleteCookie(n[r].split("=")[0],t,e)},setCookie(t,e,n,r){let o="";if(n){const t=new Date;t.setTime(t.getTime()+24*n*60*60*1e3),o="; expires="+t.toUTCString()}let i="";r&&(i="; domain="+r),document.cookie=t+"="+e+o+i+"; path=/"}};const o={set(t,e){e?window.localStorage[t]="object"==typeof e?JSON.stringify(e):e:delete window.localStorage[t]},get(t){const e=window.localStorage[t]||"";return function(t){return"{"===(t=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}(t)).charAt(0)&&"}"===t.charAt(t.length-1)||"["===t.charAt(0)&&"]"===t.charAt(t.length-1)}(e)?JSON.parse(e):e},remove(t){delete window.localStorage[t]},clear(){window.localStorage.clear()}};function i(){const t=navigator.userAgent.toLowerCase();return/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var s={};!function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",s="hour",u="day",a="week",c="month",f="quarter",l="year",d="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},w={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,s=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-s:s-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:a,d:u,D:d,h:s,m:i,s:o,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},M="en",y={};y[M]=p;var D=function(t){return t instanceof O},v=function t(e,n,r){var o;if(!e)return M;if("string"==typeof e){var i=e.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var u=e.name;y[u]=e,o=u}return!r&&o&&(M=o),o||!r&&M},S=function(t,e){if(D(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},b=w;b.l=v,b.i=D,b.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function p(t){this.$L=v(t.locale,null,!0),this.parse(t)}var $=p.prototype;return $.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},$.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},$.$utils=function(){return b},$.isValid=function(){return!(this.$d.toString()===h)},$.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},$.isAfter=function(t,e){return S(t)<this.startOf(e)},$.isBefore=function(t,e){return this.endOf(e)<S(t)},$.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),h=function(t,e){var o=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(u)},m=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,p=this.$M,$=this.$D,w="set"+(this.$u?"UTC":"");switch(f){case l:return r?h(1,0):h(31,11);case c:return r?h(1,p):h(0,p+1);case a:var M=this.$locale().weekStart||0,y=(g<M?g+7:g)-M;return h(r?$-y:$+(6-y),p);case u:case d:return m(w+"Hours",0);case s:return m(w+"Minutes",1);case i:return m(w+"Seconds",2);case o:return m(w+"Milliseconds",3);default:return this.clone()}},$.endOf=function(t){return this.startOf(t,!1)},$.$set=function(t,e){var n,a=b.p(t),f="set"+(this.$u?"UTC":""),h=(n={},n[u]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[i]=f+"Minutes",n[o]=f+"Seconds",n[r]=f+"Milliseconds",n)[a],m=a===u?this.$D+(e-this.$W):e;if(a===c||a===l){var g=this.clone().set(d,1);g.$d[h](m),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},$.set=function(t,e){return this.clone().$set(t,e)},$.get=function(t){return this[b.p(t)]()},$.add=function(r,f){var d,h=this;r=Number(r);var m=b.p(f),g=function(t){var e=S(h);return b.w(e.date(e.date()+Math.round(t*r)),h)};if(m===c)return this.set(c,this.$M+r);if(m===l)return this.set(l,this.$y+r);if(m===u)return g(1);if(m===a)return g(7);var p=(d={},d[i]=e,d[s]=n,d[o]=t,d)[m]||1,$=this.$d.getTime()+r*p;return b.w($,this)},$.subtract=function(t,e){return this.add(-1*t,e)},$.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=b.z(this),i=this.$H,s=this.$m,u=this.$M,a=n.weekdays,c=n.months,f=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},l=function(t){return b.s(i%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:b.s(u+1,2,"0"),MMM:f(n.monthsShort,u,c,3),MMMM:f(c,u),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,a,2),ddd:f(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(i),HH:b.s(i,2,"0"),h:l(1),hh:l(2),a:d(i,s,!0),A:d(i,s,!1),m:String(s),mm:b.s(s,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(t,e){return e||m[t]||o.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(r,d,h){var m,g=b.p(d),p=S(r),$=(p.utcOffset()-this.utcOffset())*e,w=this-p,M=b.m(this,p);return M=(m={},m[l]=M/12,m[c]=M,m[f]=M/3,m[a]=(w-$)/6048e5,m[u]=(w-$)/864e5,m[s]=w/n,m[i]=w/e,m[o]=w/t,m)[g]||w,h?M:b.a(M)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return y[this.$L]},$.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=v(t,e,!0);return r&&(n.$L=r),n},$.clone=function(){return b.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},p}(),_=O.prototype;return S.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",s],["$W",u],["$M",c],["$y",l],["$D",d]].forEach((function(t){_[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,O,S),t.$i=!0),S},S.locale=v,S.isDayjs=D,S.unix=function(t){return S(1e3*t)},S.en=y[M],S.Ls=y,S.p={},S}()}({get exports(){return s},set exports(t){s=t}});var u=s;const a={formatDateTime:t=>u(t).format("YYYY-MM-DD HH:mm:ss"),formatDate:t=>u(t).format("YYYY-MM-DD"),formatDateHours:t=>u(t).format("YYYY-MM-DD HH:mm"),formatDayHours:t=>u(t).format("MM-DD HH:mm"),formatHours:t=>u(t).format("HH:mm"),formatMinute:t=>u(t).format("HH:mm:ss"),formatSecond(t=0){let e=0,n=0,r=0;var o;return function(t){e=t}(function(t){return n=Math.floor(t/60),t-60*n}((o=t,r=Math.floor(o/3600),o-3600*r))),`${r?r+"h":""}${n?n+"m":""}${e?e+"s":""}`||"0s"}};function c(t){return Object.prototype.toString.call(t)}function f(t){return t}function l(t){return function(t){return"[object Number]"===c(t)}(t)&&t!==+t}t.LocalIndexedDB=class{constructor(t,e,n,r=!1){"indexedDB"in window?(this._storeName=n,this._version=e,this._database=t,this._openLog=r):console.log("This browser doesn't support IndexedDB")}open(){return new Promise(((t,e)=>{try{const n=this;if(n._db)return t(n._db);const r=indexedDB.open(n._database,n._version);r.onsuccess=function(){n._db=r.result,n._db.onversionchange=t=>{console.log("onversionchange",t)},t(r.result),console.log("Open indexedDB success!")},r.onupgradeneeded=function(e){console.log("openDb.onupgradeneeded",e),n._db=r.result,n._db.objectStoreNames.contains(n._storeName)||n._db.createObjectStore(n._storeName),t(r.result)},r.onblocked=function(t){console.log("openDb onblocked",t)},r.onerror=function(t){console.log("Maybe you not allow my web app to use IndexedDB!"),e(t)}}catch(t){console.error(t),e(t)}}))}getObjectStore(t,e){if(this._db){return this._db.transaction([t],e).objectStore(t)}return null}add(t,e){return this.wrapStoreOperationPromise((function(n){return n.add(t,e)}))}set(t,e){return this.log("IndexedDB set",t,e),this.wrapStoreOperationPromise((function(n){return n.put(e,t)}))}get(t){return this.log("IndexedDB get",t),this.wrapStoreOperationPromise((function(e){return e.get(t)}))}delete(t){return this.wrapStoreOperationPromise((function(e){return e.delete(t)}))}clear(){return this.wrapStoreOperationPromise((function(t){return t.clear()}))}getStore(){return this.getObjectStore(this._storeName,"readwrite")}wrapStoreOperationPromise(t){return new Promise(((e,n)=>{try{const r=this.getObjectStore(this._storeName,"readwrite");if(r){const o=t(r);o.onsuccess=t=>e(t.target.result),o.onerror=t=>n(t)}}catch(t){console.error(t),n(t)}}))}log(...t){this._openLog&&console.log(...t)}},t.add=function(t,e){return t+e},t.attempt=function(t,...e){try{return t.call(void 0,...e)}catch(t){return"[object Error]"===c(t)?t:new Error(t)}},t.browserCheck=function(){const t={};if(i())return!0;const e=navigator.userAgent.toLowerCase();let n;return(n=e.match(/rv:([\d.]+)\) like gecko/))||(n=e.match(/msie ([\d.]+)/))?t.ie=n[1]:(n=e.match(/edge\/([\d.]+)/))?t.edge=n[1]:(n=e.match(/firefox\/([\d.]+)/))?t.firefox=n[1]:(n=e.match(/(?:opera|opr).([\d.]+)/))?t.opera=n[1]:(n=e.match(/chrome\/([\d.]+)/))?t.chrome=n[1]:(n=e.match(/version\/([\d.]+).*safari/))&&(t.safari=n[1]),!!(t.chrome&&parseInt(t.chrome.split(".")[0],10)>=66||t.firefox)},t.ceil=function(t,e=0){const n=Math.pow(10,e);return Math.ceil(t*n)/n},t.chunk=function(t,e=1){if(e<1)return[];let n=[],r=0;const o=t.length;for(;r<o;)n=[...n,t.slice(r,r+=e)];return n},t.compact=function(t){return t.filter((t=>!!t))},t.cond=function(t){return function(e){const n=t.find((t=>t[0].call(this,e)));if(void 0!==n)return n[1].call(this,e)}},t.constant=function(t){return function(){return t}},t.convertBytes=function(t){let e=0;for(;t>=1024;)t=Number((t/1024).toFixed(2)),e++;return`${t} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}`},t.cookie=r,t.dateTime=a,t.default=a,t.defaultTo=function(t,e){return function(t){return null==t}(t)||l(t)?e:t},t.divide=function(t,e){return t/e},t.drop=function(t,e=1){return t.slice(e)},t.dropRight=function(t,e=1){const n=t.length;return t.slice(0,n-e>0?n-e:0)},t.fill=function(t,e,n=0,r=t.length){return t.fill(e,n,r)},t.first=e,t.floor=function(t,e=0){const n=Math.pow(10,e);return Math.floor(t*n)/n},t.fromPairs=function(t){const e={};for(let n=0;n<t.length;n++){const[r,o]=t[n];Object.assign(e,{[r]:o})}return e},t.generateAKey=function(){return""+(new Date).getTime()+~~(1e6*Math.random())},t.getParameterByName=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},t.getRandomStr=function(t){function e(t){const e=Math.random()*(t.length-1);return t.charAt(e)}let n="num",r="";for(let o=0;o<t;o++)"num"===n?(r+=e("0123456789"),n="lower"):"lower"===n?(r+=e("abcdefghijklmnopqrstuvwxyz"),n="upper"):"upper"===n&&(r+=e("ABCDEFGHIJKLMNOPQRSTUVXYZ"),n="num");return r},t.head=e,t.identity=f,t.isMacOs=function(){return navigator.userAgent.indexOf("Macintosh")>-1},t.isMobileDevice=i,t.isPhoneNumber=function(t){return/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(t)},t.isWindows=function(){return navigator.userAgent.indexOf("Windows")>-1},t.join=function(t,e=","){return t.join(e)},t.last=n,t.localDB=o,t.multiply=function(t,e){return t*e},t.nth=function(t,e){const n=t.length;return t[(e+n)%n]},t.round=function(t,e=0){const n=Math.pow(10,e);return Math.round(t*n)/n},t.subtract=function(t,e){return t-e},t.tail=n,t.times=function(t,e=f){return Array.from(new Array(t),((t,n)=>e(n)))},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=universal.umd.min.js.map
{
"name": "@utools/universal",
"version": "0.0.41",
"version": "0.0.42",
"description": "",

@@ -11,5 +11,6 @@ "main": "dist/universal.js",

"test": "jest",
"build:utils": "rollup -c",
"start": "rollup -w -c",
"npm:published": "npm publish --access public"
"build:universal": "rollup -c",
"build:universal:watch": "rollup -w -c",
"npm:published": "npm publish --access public",
"npm:pack-verfy": "npm pack --dry-run"
},

@@ -23,3 +24,3 @@ "keywords": [],

"type": "module",
"files": ["dist","index.js"]
"files": ["dist","src/index.ts","LICENSE"]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc