minutool 1.0.0

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.
@@ -0,0 +1,4 @@
1
+ (function(o,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(o=typeof globalThis<"u"?globalThis:o||self,v(o.Minutool={}))})(this,function(o){"use strict";const v=(t,e)=>{let n=[];for(let i in t)n.push(t[i][e]);return n},dt=(t,e)=>{for(let n in t)if(t[n]===e)return n;return null},mt=t=>{let e=new Map;return t.filter(n=>{if(!e.has(n))return e.set(n,!0),!0})},ft=(t,e,n)=>{if(!t||!t.length)return t;let i={};if(t.forEach(s=>{let u=s[e];i[u]||(i[u]=[]),i[u].push(s)}),!n)return i;let a={};for(let s in i)a[s]=i[s][0];return a},gt=t=>Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}),ht=(t,e)=>{let n=t.length;if(e<1||!n)return[];if(e>n)return[t];let i=[],a=Math.floor(n/e),s=n%e;for(let u=1;u<=a;u++)i.push(t.splice(0,e));return s&&i.push(t.splice(0,s)),i},wt=t=>{let e=-1;for(let n=t.length-1;n>=0;n--)if(t[n]){e=n;break}return t.slice(0,e+1)};function B(t){return t&&t.charAt(0).toUpperCase()+t.slice(1)}const Et=t=>(t+"").replace(/\\(.?)/g,function(e,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}}),At=(t,e,n="...")=>{let i=/[^\x00-\xff]/g;if(t.replace(i,"mm").length<=e)return t;let a=Math.floor(e/2);for(let s=a;s<t.length;s++)if(t.substr(0,s).replace(i,"mm").length>=e)return t.substr(0,s)+n;return t},Tt=(t,e)=>{const n=Object.keys(e),i=Object.values(e);return new Function(...n,`return \`${t}\`;`)(...i)};function vt(t){return t.replace(/[-_](.)/g,(e,n)=>n.toUpperCase())}function bt(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function yt(t,e,n="..."){return t.length<=e?t:t.slice(0,e)+n}const M=t=>(t+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),P=t=>{let e="",n=0,i=0,a=0,s=0;for(;n<t.length;)i=t.charCodeAt(n),i<128?(e+=String.fromCharCode(i),n++):i>191&&i<224?(a=t.charCodeAt(n+1),e+=String.fromCharCode((i&31)<<6|a&63),n+=2):(a=t.charCodeAt(n+1),s=t.charCodeAt(n+2),e+=String.fromCharCode((i&15)<<12|(a&63)<<6|s&63),n+=3);return e},Mt=t=>{let e=!1;try{JSON.parse(t),e=!0}catch{}return e},x=t=>{t=t.replace(/\r\n/g,"n");let e="";for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(i&63|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(i&63|128))}return e},St=t=>{let e=0,n=t.length,i=-1;for(let a=0;a<n;a++)i=t.charCodeAt(a),i>=0&&i<=128?e+=1:e+=3;return e},_t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890",q=(t=6,e=_t)=>{let n="";for(let i=0;i<t;i++){let a=Math.round(Math.random()*(e.length-1));n+=e.substring(a,a+1)}return n},xt=(t=1,e=8)=>{let n=[];const i="bcdfghjklmnpqrstvwxyz",a="aeiou";for(;t-- >0;){let s="";for(let u=0;u<e;u=u+3)s+=i[Math.floor(Math.random()*i.length)],s+=a[Math.floor(Math.random()*a.length)],s+=i[Math.floor(Math.random()*i.length)];n.push(s)}return n},Nt=(t,e=!1)=>{let n=[];return t.replace(/[-_\s+]/g," ").split(" ").forEach((i,a)=>{n.push(a===0&&!e?i:B(i))}),n.join("")},N=0,C=1,G=2,Ct=(t,e="",n=N)=>{if(e.length){let i=new RegExp("^["+M(e)+"]+"),a=new RegExp("["+M(e)+"]+$");return n===C?t.replace(i,""):n===G?t.replace(a,""):t.replace(i,"").replace(a,"")}else return n===N?t.trim():n===C?t.trimStart():t.trimEnd()},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ot=t=>{let e="",n,i,a,s,u,r,c,l=0;for(t=t.replace(/\+\+[++^A-Za-z0-9+/=]/g,"");l<t.length;)s=w.indexOf(t.charAt(l++)),u=w.indexOf(t.charAt(l++)),r=w.indexOf(t.charAt(l++)),c=w.indexOf(t.charAt(l++)),n=s<<2|u>>4,i=(u&15)<<4|r>>2,a=(r&3)<<6|c,e=e+String.fromCharCode(n),r!==64&&(e=e+String.fromCharCode(i)),c!==64&&(e=e+String.fromCharCode(a));return e=P(e),e},Dt=t=>x(t).replace("+","-").replace("/","_"),Rt=t=>{let e="",n,i,a,s,u,r,c,l=0;for(t=x(t);l<t.length;)n=t.charCodeAt(l++),i=t.charCodeAt(l++),a=t.charCodeAt(l++),s=n>>2,u=(n&3)<<4|i>>4,r=(i&15)<<2|a>>6,c=a&63,isNaN(i)?r=c=64:isNaN(a)&&(c=64),e=e+w.charAt(s)+w.charAt(u)+w.charAt(r)+w.charAt(c);return e},W=async t=>await It(t),It=t=>new Promise((e,n)=>{const i=new FileReader;i.readAsDataURL(t),i.onload=()=>e(i.result),i.onerror=a=>n(a)}),z=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.webkitRequestFullScreen)return t.webkitRequestFullScreen();throw t.mozRequestFullScreen&&t.mozRequestFullScreen(),t.msRequestFullScreen&&t.msRequestFullScreen(),"Browser no allow full screen"},K=()=>document.exitFullscreen(),Ht=t=>new Promise((e,n)=>{$()?K().then(e).catch(n):z(t).then(e).catch(n)}),$=()=>!!document.fullscreenElement,Lt=t=>{const e=navigator.language||navigator.userLanguage;if(t.includes(e))return e;const n=e.split("-")[0],i=t.find(a=>a.startsWith(n));return i||t[0]},kt=(t,e,n,i="/")=>{let a="";if(n){let s=new Date;s.setTime(Date.now()+n*24*60*60*1e3),a="; expires="+s.toUTCString()}document.cookie=t+"="+(e||"")+a+"; path="+i},Ft=t=>{let e=t+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let a=n[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},Yt=t=>{document.cookie=t+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};let Ut=0;const j=(t="")=>"guid_"+(t||q(6))+ ++Ut,Bt=(t,e)=>{let n,i,a=0;return function(){let s=+new Date;n=this,i=arguments,s-a>e&&(t.apply(n,i),a=s)}},Pt=(t,e)=>{let n,i,a=0,s=!1;return function(){if(s)return;let u=+new Date;n=this,i=arguments;let r=e-(u-a);r<=0?(t.apply(n,i),a=u):(s=!0,setTimeout(()=>{t.apply(n,i),s=!1,a=u},r))}},qt=(t,e)=>{let n;return function(){let i=this,a=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(i,a)},e)}},Gt=t=>t&&typeof t=="object"&&t.then&&typeof t.then=="function",Wt=t=>{let e=!1;try{JSON.parse(t),e=!0}catch{}return e},zt=t=>t&&typeof t=="object"&&!Array.isArray(t),Kt=t=>t?Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function:!1,J=t=>typeof t!="string"||t.trim()===""?!1:/^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(t),$t=()=>{let t=new Error().stack;console.log(t)},jt=(1+Math.sqrt(5))/2-1,V=96,Jt=(t,e=V)=>t/25.4*e,h=(t,e,n,i=!0)=>i?t>=e&&t<=n:t>e&&t<n,Vt=(t,e)=>Math.floor(Math.random()*(e+1-t))+t,Xt=(t,e=2)=>{let n=Math.pow(10,e);return Math.round(t*n)/n},Zt=(...t)=>{let e=0;return t.forEach(n=>{if(typeof n=="number"&&!isNaN(n)){const i=n.toString().split(".")[1];i&&(e=Math.max(e,i.length))}}),e},Qt=t=>(t=Math.abs(Number(t)),t===0?1:Math.floor(Math.log10(t))+1),te=t=>{b(t).style.display="none"},ee=t=>{b(t).style.display=""},ne=t=>{let e=b(t);return e&&e.parentNode&&e.parentNode.removeChild(e)},O="disabled",X=(t,e="")=>D(t,e,!1),Z=(t,e="")=>D(t,e,!0),D=(t,e="",n=null)=>{let i=b(t),a=n===null?!i.classList.contains(O):!n;a&&tt(`.${O} {pointer-event:none !important;}`,"__element_lock_style__"),i.classList.toggle(O,a),i[a?"setAttribute":"removeAttribute"]("disabled","disabled"),i[a?"setAttribute":"removeAttribute"]("data-disabled","disabled"),e&&i.classList.toggle(e,a)},ie=(t,e)=>{X(t),e(()=>{Z(t)})},ae=t=>t.parentNode?Array.prototype.indexOf.call(t.parentNode.children,t):-1,R=(t,e=document)=>{if(typeof t=="string")return t=t.trim(),t.indexOf(":scope")!==0&&(t=":scope "+t),Array.from(e.querySelectorAll(t));if(Array.isArray(t)){let n=[];return t.forEach(i=>{n.push(...R(i))}),n}else return NodeList.prototype.isPrototypeOf(t)||HTMLCollection.prototype.isPrototypeOf(t)?Array.from(t):t instanceof HTMLElement?[t]:t},b=(t,e=document)=>typeof t=="string"?e.querySelector(t):t,oe=t=>{let e=document.getElementsByTagName("*"),n=[];for(n=[];t&&t.nodeType===1;t=t.parentNode)if(t.hasAttribute("id")){let i=0;for(let a=0;a<e.length&&(e[a].hasAttribute("id")&&e[a].id===t.id&&i++,!(i>1));a++);if(i===1)return n.unshift('id("'+t.getAttribute("id")+'")'),n.join("/");n.unshift(t.localName.toLowerCase()+'[@id="'+t.getAttribute("id")+'"]')}else if(t.hasAttribute("class"))n.unshift(t.localName.toLowerCase()+'[@class="'+t.getAttribute("class")+'"]');else{let i,a;for(i=1,a=t.previousSibling;a;a=a.previousSibling)a.localName===t.localName&&i++;n.unshift(t.localName.toLowerCase()+"["+i+"]")}return n.length?"/"+n.join("/"):null},re=(t,e,n=!0)=>{const i="ON_DOM_TREE_CHANGE_BIND_"+j();let a=()=>{R(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`,t).forEach(s=>{s.setAttribute(i,"1"),s.addEventListener("change",e)})};Q(t,{attributes:!0,subtree:!0,childList:!0},()=>{n&&a(),e()},10),n&&a()},Q=(t,e,n,i=10)=>{let a=0,s=!1,u=new MutationObserver(()=>{if(s)return;let r=i-(Date.now()-a);r>0?(s=!0,setTimeout(()=>{s=!1,a=Date.now(),n(u)},r)):(a=Date.now(),n(u))});u.observe(t,e)},le=(t,e={left:0,top:0,width:window.innerWidth,height:window.innerHeight})=>{let n={left:t.left,top:t.top};return t.width>e.width||t.height>e.height||(t.width+t.left>e.width+e.left&&(n.left=t.left-(t.width+t.left-(e.width+e.left))),t.height+t.top>e.height+e.top&&(n.top=t.top-(t.height+t.top-(e.height+e.top))),t.left<e.left&&(n.left=e.left),t.top<e.top&&(n.top=e.top)),n},ce=(t,e)=>t.left<=e.left?t.left+t.width>=e.left&&(h(e.top,t.top,t.top+t.height)||h(e.top+e.height,t.top,t.top+t.height)||e.top>=t.top&&e.height>=t.height):e.left+e.width>=t.left&&(h(t.top,e.top,e.top+e.height)||h(t.top+t.height,e.top,e.top+e.height)||t.top>=e.top&&t.height>=e.height),se=t=>t?!!(t.tabIndex>=0||t instanceof HTMLAnchorElement&&t.href||t instanceof HTMLButtonElement&&!t.disabled||t instanceof HTMLInputElement&&!t.disabled||t instanceof HTMLTextAreaElement&&!t.disabled):!1;let E={};const pe=(t,e=!1)=>(!e&&t in E||(E[t]=new Promise((n,i)=>{let a=document.createElement("link");a.rel="stylesheet",a.href=t,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),E[t]),ue=(t,e=!1)=>(!e&&t in E||(E[t]=new Promise((n,i)=>{let a=document.createElement("script");a.src=t,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),E[t]),de=t=>{let e=t.style.visibility,n=t.style.display,i,a;return t.style.visibility="hidden",t.style.display="block",i=t.clientWidth,a=t.clientHeight,t.style.visibility=e,t.style.display=n,{width:i,height:a}},tt=(t,e="",n=document)=>{if(e&&n.querySelector(`#${e}`))return n.querySelector(`#${e}`);let i=n.createElement("style");return n.head.appendChild(i),i.innerHTML=t,e&&(i.id=e),i},me=(t,e)=>h(t.top,e.top,e.top+e.height)&&h(t.left,e.left,e.left+e.width)&&h(t.top+t.height,e.top,e.top+e.height)&&h(t.left+t.width,e.left,e.left+e.width),fe=t=>Math.pow(10,-t),ge=(t,e)=>{try{return new URL(t,e).href}catch{return t}},he=(t,e=null)=>{let n=document.createElement("template");t=t.trim(),n.innerHTML=t;let i=[];return e?n.content.childNodes.forEach(a=>{i.push(e.appendChild(a))}):i=Array.from(n.content.childNodes),i.length===1?i[0]:i},et=(t,e=!1)=>{if(!t)throw new Error("el is null");const n=t.getBoundingClientRect();if(e&&!n.height){const i=t.style.visibility,a=t.style.display;t.style.visibility="hidden",t.style.display="block";const s=et(t);return t.style.visibility=i,t.style.display=a,s}return{top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},we=t=>{let e={};for(let n in t){const i=t[n];i!==void 0&&(e[`--${n}`]=`${i}`+(typeof i=="number"?"px":""))}return e},Ee=t=>t.replace(/[\\/:*?"<>|]/g,"_").replace(/[\0-\x1F]/g,"_").replace(/\s+/g," ").replace(/^\.+/,"").replace(/\.+$/,"").trim(),I=t=>new Promise((e,n)=>{const i=new FileReader;i.onload=()=>e(i.result),i.onerror=a=>n(a),i.readAsDataURL(t)}),nt={},H=(t,e=null)=>e!==null?(nt[t]=e,null):nt[t]||null,Ae=async t=>{if(!t)return null;if(typeof t=="string"&&t.startsWith("data:"))return t;try{if(typeof t=="string"&&J(t)){const e=await fetch(t);if(!e.ok)throw new Error(`Fetch failed: ${e.status}`);const n=await e.blob();return await I(n)}return t instanceof Blob?await I(t):null}catch(e){return console.warn("file2Base64DataURL failed:",e),null}},Te=(t,e)=>{const n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},L=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","CANVAS","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","NOSCRIPT","OL","P","PRE","SECTION","TABLE","TFOOT","UL","VIDEO"],ve=["A","ABBR","ACRONYM","B","BDO","BIG","BUTTON","CITE","CODE","DFN","EM","I","KBD","LABEL","MAP","OBJECT","OUTPUT","Q","S","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","TT","U","VAR"].concat(...L),be=["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"],it=["STYLE","COMMENT","SELECT","OPTION","SCRIPT","TITLE","HEAD","BUTTON","META","LINK","PARAM","SOURCE"],ye=t=>(it.forEach(n=>{t=t.replace(new RegExp(n,"ig"),"")}),t=t.replace(/[\r|\n]/g,""),t=t.replace(/<(\w+)([^>]*)>/g,function(n,i,a){return L.includes(i.toUpperCase())?`
2
+ `:""}),t=t.replace(/<\/(\w+)([^>]*)>/g,function(n,i,a){return""}),t=t.replace(/<[^>]+>/g,""),[[/&nbsp;/gi," "],[/&lt;/gi,"<"],[/&gt;/gi,">"],[/&quot;/gi,'"'],[/&apos;/gi,"'"]].forEach(([n,i])=>{t=t.replace(n,i)}),t=t.replace(/&#(\d+);/,function(n,i){return String.fromCharCode(parseInt(i))}),t=t.replace(/&amp;/gi,"&"),t=t.trim(),t),Me=t=>window.CSS&&CSS.escape?CSS.escape(t):t.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),Se=t=>{let e=t.split(";");return e.pop(),e.map(n=>String.fromCharCode(n[2]==="x"?parseInt(n.slice(3),16):parseInt(n.slice(2)))).join("")};let y;const _e=t=>(y||(y=document.createElement("div")),t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),t=t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),y.innerHTML=t,t=y.textContent||"",y.textContent="",t),xe=t=>{let e="";for(let n in t){let i=t[n]===null?"":t[n];e+=`<input type="hidden" name="${k(n)}" value="${k(i)}"/>`}return e},Ne=(t,e=2,n=!0)=>{let i=String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");return n&&(i=i.replace(/[\r\n]/g,"<br/>")),e&&(i=i.replace(/\t/g,"&nbsp;".repeat(e))),i=i.replace(/\s/g,"&nbsp;"),i},Ce=t=>String(t).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/<br.*>/,`
3
+ `),k=(t,e="")=>(e=e?"&#13;":`
4
+ `,(""+t).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n/g,e).replace(/[\r\n]/g,e)),Oe=(t,e)=>{let n=t.split("");return e=e||0,n.map(i=>`&#${e?"x"+i.charCodeAt(0).toString(16):i.charCodeAt(0)};`).join("")},De=(t,e,n='<span class="matched">%s</span>')=>e?t.replace(new RegExp(M(e),"ig"),i=>n.replace("%s",i)):t,Re=t=>{if(!t.src)return null;if(t.src.indexOf("data:")===0)return t.src;let e=document.createElement("canvas");e.width=t.width,e.height=t.height;let n=e.getContext("2d");return n?(n.drawImage(t,0,0,t.width,t.height),e.toDataURL("image/png")):null},Ie=(t,e=!1)=>new Promise((n,i)=>{if(e){const s=H(t);if(s)return n(s)}let a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="blob",a.onload=function(){if(this.status===200){let s=this.response;W(s).then(u=>{e&&H(t,u),n(u)}).catch(u=>{i(u)})}},a.onerror=function(){i("Error:"+this.statusText)},a.onabort=function(){i("Request abort")},a.send()}),A=(t,e)=>{let n=(t&65535)+(e&65535);return(t>>16)+(e>>16)+(n>>16)<<16|n&65535},He=(t,e)=>t<<e|t>>>32-e,S=(t,e,n,i,a,s)=>A(He(A(A(e,t),A(i,s)),a),n),d=(t,e,n,i,a,s,u)=>S(e&n|~e&i,t,e,a,s,u),m=(t,e,n,i,a,s,u)=>S(e&i|n&~i,t,e,a,s,u),f=(t,e,n,i,a,s,u)=>S(e^n^i,t,e,a,s,u),g=(t,e,n,i,a,s,u)=>S(n^(e|~i),t,e,a,s,u),_=(t,e)=>{t[e>>5]|=128<<e%32,t[(e+64>>>9<<4)+14]=e;let n,i,a,s,u,r=1732584193,c=-271733879,l=-1732584194,p=271733878;for(n=0;n<t.length;n+=16)i=r,a=c,s=l,u=p,r=d(r,c,l,p,t[n],7,-680876936),p=d(p,r,c,l,t[n+1],12,-389564586),l=d(l,p,r,c,t[n+2],17,606105819),c=d(c,l,p,r,t[n+3],22,-1044525330),r=d(r,c,l,p,t[n+4],7,-176418897),p=d(p,r,c,l,t[n+5],12,1200080426),l=d(l,p,r,c,t[n+6],17,-1473231341),c=d(c,l,p,r,t[n+7],22,-45705983),r=d(r,c,l,p,t[n+8],7,1770035416),p=d(p,r,c,l,t[n+9],12,-1958414417),l=d(l,p,r,c,t[n+10],17,-42063),c=d(c,l,p,r,t[n+11],22,-1990404162),r=d(r,c,l,p,t[n+12],7,1804603682),p=d(p,r,c,l,t[n+13],12,-40341101),l=d(l,p,r,c,t[n+14],17,-1502002290),c=d(c,l,p,r,t[n+15],22,1236535329),r=m(r,c,l,p,t[n+1],5,-165796510),p=m(p,r,c,l,t[n+6],9,-1069501632),l=m(l,p,r,c,t[n+11],14,643717713),c=m(c,l,p,r,t[n],20,-373897302),r=m(r,c,l,p,t[n+5],5,-701558691),p=m(p,r,c,l,t[n+10],9,38016083),l=m(l,p,r,c,t[n+15],14,-660478335),c=m(c,l,p,r,t[n+4],20,-405537848),r=m(r,c,l,p,t[n+9],5,568446438),p=m(p,r,c,l,t[n+14],9,-1019803690),l=m(l,p,r,c,t[n+3],14,-187363961),c=m(c,l,p,r,t[n+8],20,1163531501),r=m(r,c,l,p,t[n+13],5,-1444681467),p=m(p,r,c,l,t[n+2],9,-51403784),l=m(l,p,r,c,t[n+7],14,1735328473),c=m(c,l,p,r,t[n+12],20,-1926607734),r=f(r,c,l,p,t[n+5],4,-378558),p=f(p,r,c,l,t[n+8],11,-2022574463),l=f(l,p,r,c,t[n+11],16,1839030562),c=f(c,l,p,r,t[n+14],23,-35309556),r=f(r,c,l,p,t[n+1],4,-1530992060),p=f(p,r,c,l,t[n+4],11,1272893353),l=f(l,p,r,c,t[n+7],16,-155497632),c=f(c,l,p,r,t[n+10],23,-1094730640),r=f(r,c,l,p,t[n+13],4,681279174),p=f(p,r,c,l,t[n],11,-358537222),l=f(l,p,r,c,t[n+3],16,-722521979),c=f(c,l,p,r,t[n+6],23,76029189),r=f(r,c,l,p,t[n+9],4,-640364487),p=f(p,r,c,l,t[n+12],11,-421815835),l=f(l,p,r,c,t[n+15],16,530742520),c=f(c,l,p,r,t[n+2],23,-995338651),r=g(r,c,l,p,t[n],6,-198630844),p=g(p,r,c,l,t[n+7],10,1126891415),l=g(l,p,r,c,t[n+14],15,-1416354905),c=g(c,l,p,r,t[n+5],21,-57434055),r=g(r,c,l,p,t[n+12],6,1700485571),p=g(p,r,c,l,t[n+3],10,-1894986606),l=g(l,p,r,c,t[n+10],15,-1051523),c=g(c,l,p,r,t[n+1],21,-2054922799),r=g(r,c,l,p,t[n+8],6,1873313359),p=g(p,r,c,l,t[n+15],10,-30611744),l=g(l,p,r,c,t[n+6],15,-1560198380),c=g(c,l,p,r,t[n+13],21,1309151649),r=g(r,c,l,p,t[n+4],6,-145523070),p=g(p,r,c,l,t[n+11],10,-1120210379),l=g(l,p,r,c,t[n+2],15,718787259),c=g(c,l,p,r,t[n+9],21,-343485551),r=A(r,i),c=A(c,a),l=A(l,s),p=A(p,u);return[r,c,l,p]},at=t=>{let e,n="",i=t.length*32;for(e=0;e<i;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n},F=t=>{let e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;let i=t.length*8;for(e=0;e<i;e+=8)n[e>>5]|=(t.charCodeAt(e/8)&255)<<e%32;return n},Le=t=>at(_(F(t),t.length*8)),ke=(t,e)=>{let n,i=F(t),a=[],s=[],u;for(a[15]=s[15]=void 0,i.length>16&&(i=_(i,t.length*8)),n=0;n<16;n+=1)a[n]=i[n]^909522486,s[n]=i[n]^1549556828;return u=_(a.concat(F(e)),512+e.length*8),at(_(s.concat(u),640))},ot=t=>{let e="0123456789abcdef",n="",i,a;for(a=0;a<t.length;a+=1)i=t.charCodeAt(a),n+=e.charAt(i>>>4&15)+e.charAt(i&15);return n},Y=t=>unescape(encodeURIComponent(t)),rt=t=>Le(Y(t)),Fe=t=>ot(rt(t)),lt=(t,e)=>ke(Y(t),Y(e)),Ye=(t,e)=>ot(lt(t,e)),Ue=(t,e,n)=>e?n?lt(e,t):Ye(e,t):n?rt(t):Fe(t),Be="application/octet-stream",Pe={323:"text/h323",accdb:"application/msaccess",accde:"application/msaccess",accdt:"application/msaccess",acx:"application/internet-property-stream",ai:"application/postscript",aif:"audio/x-aiff",aifc:"audio/aiff",aiff:"audio/aiff",application:"application/x-ms-application",art:"image/x-jg",asf:"video/x-ms-asf",asm:"text/plain",asr:"video/x-ms-asf",asx:"video/x-ms-asf",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",axs:"application/olescript",bas:"text/plain",bcpio:"application/x-bcpio",bmp:"image/bmp",c:"text/plain",calx:"application/vnd.ms-office.calx",cat:"application/vnd.ms-pki.seccat",cdf:"application/x-cdf",class:"application/x-java-applet",clp:"application/x-msclip",cmx:"image/x-cmx",cnf:"text/plain",cod:"image/cis-cod",cpio:"application/x-cpio",cpp:"text/plain",crd:"application/x-mscardfile",crl:"application/pkix-crl",crt:"application/x-x509-ca-cert",csh:"application/x-csh",css:"text/css",dcr:"application/x-director",der:"application/x-x509-ca-cert",dib:"image/bmp",dir:"application/x-director",disco:"text/xml",dll:"application/x-msdownload","dll.config":"text/xml",dlm:"text/dlm",doc:"application/msword",docm:"application/vnd.ms-word.document.macroEnabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroEnabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",dtd:"text/xml",dvi:"application/x-dvi",dwf:"drawing/x-dwf",dxr:"application/x-director",eml:"message/rfc822",eps:"application/postscript",etx:"text/x-setext",evy:"application/envoy","exe.config":"text/xml",fdf:"application/vnd.fdf",fif:"application/fractals",flr:"x-world/x-vrml",flv:"video/x-flv",gif:"image/gif",gtar:"application/x-gtar",gz:"application/x-gzip",h:"text/plain",hdf:"application/x-hdf",hdml:"text/x-hdml",hhc:"application/x-oleobject",hlp:"application/winhlp",hqx:"application/mac-binhex40",hta:"application/hta",htc:"text/x-component",htm:"text/html",html:"text/html",htt:"text/webviewhtml",hxt:"text/html",ico:"image/x-icon",ief:"image/ief",iii:"application/x-iphone",ins:"application/x-internet-signup",isp:"application/x-internet-signup",IVF:"video/x-ivf",jar:"application/java-archive",jck:"application/liquidmotion",jcz:"application/liquidmotion",jfif:"image/pjpeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"application/x-javascript",jsx:"text/jscript",latex:"application/x-latex",lit:"application/x-ms-reader",lsf:"video/x-la-asf",lsx:"video/x-la-asf",m13:"application/x-msmediaview",m14:"application/x-msmediaview",m1v:"video/mpeg",m3u:"audio/x-mpegurl",man:"application/x-troff-man",manifest:"application/x-ms-manifest",map:"text/plain",mdb:"application/x-msaccess",me:"application/x-troff-me",mht:"message/rfc822",mhtml:"message/rfc822",mid:"audio/mid",midi:"audio/mid",mmf:"application/x-smaf",mno:"text/xml",mny:"application/x-msmoney",mov:"video/quicktime",movie:"video/x-sgi-movie",mp2:"video/mpeg",mp3:"audio/mpeg",mpa:"video/mpeg",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpp:"application/vnd.ms-project",mpv2:"video/mpeg",ms:"application/x-troff-ms",mvb:"application/x-msmediaview",mvc:"application/x-miva-compiled",nc:"application/x-netcdf",nsc:"video/x-ms-asf",nws:"message/rfc822",oda:"application/oda",odc:"text/x-ms-odc",ods:"application/oleobject",one:"application/onenote",onea:"application/onenote",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",osdx:"application/opensearchdescription+xml",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7c:"application/pkcs7-mime",p7m:"application/pkcs7-mime",p7r:"application/x-pkcs7-certreqresp",p7s:"application/pkcs7-signature",pbm:"image/x-portable-bitmap",pdf:"application/pdf",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pko:"application/vnd.ms-pki.pko",pma:"application/x-perfmon",pmc:"application/x-perfmon",pml:"application/x-perfmon",pmr:"application/x-perfmon",pmw:"application/x-perfmon",png:"image/png",pnm:"image/x-portable-anymap",pnz:"image/png",pot:"application/vnd.ms-powerpoint",potm:"application/vnd.ms-powerpoint.template.macroEnabled.12",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",ppam:"application/vnd.ms-powerpoint.addin.macroEnabled.12",ppm:"image/x-portable-pixmap",pps:"application/vnd.ms-powerpoint",ppsm:"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptm:"application/vnd.ms-powerpoint.presentation.macroEnabled.12",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",prf:"application/pics-rules",ps:"application/postscript",pub:"application/x-mspublisher",qt:"video/quicktime",qtl:"application/x-quicktimeplayer",ra:"audio/x-pn-realaudio",ram:"audio/x-pn-realaudio",ras:"image/x-cmu-raster",rf:"image/vnd.rn-realflash",rgb:"image/x-rgb",rm:"application/vnd.rn-realmedia",rmi:"audio/mid",roff:"application/x-troff",rpm:"audio/x-pn-realaudio-plugin",rtf:"application/rtf",rtx:"text/richtext",scd:"application/x-msschedule",sct:"text/scriptlet",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",sgml:"text/sgml",sh:"application/x-sh",shar:"application/x-shar",sit:"application/x-stuffit",sldm:"application/vnd.ms-powerpoint.slide.macroEnabled.12",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",smd:"audio/x-smd",smx:"audio/x-smd",smz:"audio/x-smd",snd:"audio/basic",spc:"application/x-pkcs7-certificates",spl:"application/futuresplash",src:"application/x-wais-source",ssm:"application/streamingmedia",sst:"application/vnd.ms-pki.certstore",stl:"application/vnd.ms-pki.stl",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",swf:"application/x-shockwave-flash",t:"application/x-troff",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",texi:"application/x-texinfo",texinfo:"application/x-texinfo",tgz:"application/x-compressed",thmx:"application/vnd.ms-officetheme",tif:"image/tiff",tiff:"image/tiff",tr:"application/x-troff",trm:"application/x-msterminal",tsv:"text/tab-separated-values",txt:"text/plain",uls:"text/iuls",ustar:"application/x-ustar",vbs:"text/vbscript",vcf:"text/x-vcard",vcs:"text/plain",vdx:"application/vnd.ms-visio.viewer",vml:"text/xml",vsd:"application/vnd.visio",vss:"application/vnd.visio",vst:"application/vnd.visio",vsto:"application/x-ms-vsto",vsw:"application/vnd.visio",vsx:"application/vnd.visio",vtx:"application/vnd.visio",wav:"audio/wav",wax:"audio/x-ms-wax",wbmp:"image/vnd.wap.wbmp",wcm:"application/vnd.ms-works",wdb:"application/vnd.ms-works",wks:"application/vnd.ms-works",wm:"video/x-ms-wm",wma:"audio/x-ms-wma",wmd:"application/x-ms-wmd",wmf:"application/x-msmetafile",wml:"text/vnd.wap.wml",wmlc:"application/vnd.wap.wmlc",wmls:"text/vnd.wap.wmlscript",wmlsc:"application/vnd.wap.wmlscriptc",wmp:"video/x-ms-wmp",wmv:"video/x-ms-wmv",wmx:"video/x-ms-wmx",wmz:"application/x-ms-wmz",wps:"application/vnd.ms-works",wri:"application/x-mswrite",wrl:"x-world/x-vrml",wrz:"x-world/x-vrml",wsdl:"text/xml",wvx:"video/x-ms-wvx",x:"application/directx",xaf:"x-world/x-vrml",xaml:"application/xaml+xml",xap:"application/x-silverlight-app",xbap:"application/x-ms-xbap",xbm:"image/x-xbitmap",xdr:"text/plain",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroEnabled.12",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroEnabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",xml:"text/xml",xof:"x-world/x-vrml",xpm:"image/x-xpixmap",xps:"application/vnd.ms-xpsdocument",xsd:"text/xml",xsf:"text/xml",xsl:"text/xml",xslt:"text/xml",xwd:"image/x-xwindowdump",z:"application/x-compress",zip:"application/x-zip-compressed"};function U(t){if(t===null||typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(e=>U(e));if(t instanceof Object){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=U(t[n]));return e}return t}function qe(t){return Object.keys(t).length===0}const Ge=(t,e)=>{let n={};for(let i in t)e[i]!==void 0?n[e[i]]=t[i]:n[i]=t[i];return n};function We(t,e,n){const i=e.split(".");let a=t;for(const s of i){if(a==null)return n;a=a[s]}return a!==void 0?a:n}function ze(t,e,n){const i=e.split("."),a=i.pop();let s=t;for(const u of i)(!(u in s)||typeof s[u]!="object")&&(s[u]={}),s=s[u];s[a]=n}function ct(t,...e){for(const n of e)for(const i in n)if(n.hasOwnProperty(i)){const a=n[i],s=t[i];a&&typeof a=="object"&&!Array.isArray(a)&&s&&typeof s=="object"&&!Array.isArray(s)?t[i]=ct(s,a):t[i]=a}return t}const st=(t,e=!1)=>{for(const n in t)t[n]===null?delete t[n]:e&&typeof t[n]=="object"&&st(t[n],!0);return t},Ke=new Date().getFullYear(),$e=new Date().getMonth()+1,je=new Date().getDate(),Je=60*1e3,Ve=60*60*1e3,T=24*60*60*1e3,Xe=7*T,Ze=30*T,Qe=31*T,tn=365*T,en=366*T,nn=0,an=1,on=2,rn=3,ln=4,cn=5,sn=6,pn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],un=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dn=["January","February","March","April","May","June","July","August","September","October","November","December"],mn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fn=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],gn=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],hn=["日","一","二","三","四","五","六"],wn=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],En=(t,e,n)=>{let i=()=>{if(e&&e(t),t-- >0){setTimeout(i,1e3);return}n&&n()};i()},An=t=>{if(!t||t<10)return"刚刚";t=Math.floor(t/1e3);const e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;let a="";return e>0&&(a+=e+"小时"),(n>0||e>0)&&(a+=n+"分钟"),a+=i+"秒前",a},pt={d:t=>{let e=t.getDate();return(e<10?"0":"")+e},D:t=>un[t.getDay()],j:t=>t.getDate(),l:t=>pn[t.getDay()],N:t=>{let e=t.getDay();return e===0?7:e},S:t=>{let e=t.getDate();return e%10===1&&e!==11?"st":e%10===2&&e!==12?"nd":e%10===3&&e!==13?"rd":"th"},w:t=>t.getDay(),z:t=>{let e=new Date(t.getFullYear(),0,1);return Math.ceil((t.getTime()-e.getTime())/864e5)},W:t=>{let e=new Date(t.valueOf()),n=(t.getDay()+6)%7;e.setDate(e.getDate()-n+3);let i=e.valueOf();e.setMonth(0,1),e.getDay()!==4&&e.setMonth(0,1+(4-e.getDay()+7)%7);let a=1+Math.ceil((i-e.getTime())/6048e5);return a<10?"0"+a:a},F:t=>dn[t.getMonth()],m:t=>{let e=t.getMonth();return(e<9?"0":"")+(e+1)},M:t=>mn[t.getMonth()],n:t=>t.getMonth()+1,t:t=>{let e=t.getFullYear(),n=t.getMonth()+1;return n===12&&(e=e++,n=0),new Date(e,n,0).getDate()},L:t=>{let e=t.getFullYear();return e%400===0||e%100!==0&&e%4===0},o:t=>{let e=new Date(t.valueOf());return e.setDate(e.getDate()-(t.getDay()+6)%7+3),e.getFullYear()},Y:t=>t.getFullYear(),y:t=>(""+t.getFullYear()).substr(2),a:t=>t.getHours()<12?"am":"pm",A:t=>t.getHours()<12?"AM":"PM",B:t=>Math.floor(((t.getUTCHours()+1)%24+t.getUTCMinutes()/60+t.getUTCSeconds()/3600)*1e3/24),g:t=>t.getHours()%12||12,G:t=>t.getHours(),h:t=>{let e=t.getHours();return((e%12||12)<10?"0":"")+(e%12||12)},H:t=>{let e=t.getHours();return(e<10?"0":"")+e},i:t=>{let e=t.getMinutes();return(e<10?"0":"")+e},s:t=>{let e=t.getSeconds();return(e<10?"0":"")+e},v:t=>{let e=t.getMilliseconds();return(e<10?"00":e<100?"0":"")+e},e:t=>Intl.DateTimeFormat().resolvedOptions().timeZone,I:t=>{let e=null;for(let n=0;n<12;++n){let a=new Date(t.getFullYear(),n,1).getTimezoneOffset();if(e===null)e=a;else if(a<e){e=a;break}else if(a>e)break}return t.getTimezoneOffset()===e?1:0},O:t=>{let e=t.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+(Math.abs(e%60)===0?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},P:t=>{let e=t.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+":"+(Math.abs(e%60)===0?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},T:t=>{let e=t.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return e[e.length-1]},Z:t=>-t.getTimezoneOffset()*60,c:t=>ut("Y-m-d\\TH:i:sP",t),r:t=>t.toString(),U:t=>Math.floor(t.getTime()/1e3)},ut=function(t,e=null){let n=null;return typeof e=="object"&&e!==null?n=e:n=new Date(e||Date.now()),t.replace(/(\\?)(.)/g,function(i,a,s){return a===""&&pt[s]?String(pt[s](n)):s})};o.BLOCK_TAGS=L,o.Base64Encode=Rt,o.DATE_NOW=je,o.DAY_FRIDAY=cn,o.DAY_MONDAY=an,o.DAY_SATURDAY=sn,o.DAY_SUNDAY=nn,o.DAY_THURSDAY=ln,o.DAY_TUESDAY=on,o.DAY_WEDNESDAY=rn,o.GOLDEN_RATIO=jt,o.MIME_BINARY_DEFAULT=Be,o.MIME_EXTENSION_MAP=Pe,o.MONTH_NAMES_CN=fn,o.MONTH_NAMES_SHORT_CN=gn,o.MONTH_NOW=$e,o.ONE_DAY=T,o.ONE_HOUR=Ve,o.ONE_MINUTE=Je,o.ONE_MONTH30=Ze,o.ONE_MONTH31=Qe,o.ONE_WEEK=Xe,o.ONE_YEAR365=tn,o.ONE_YEAR366=en,o.PAIR_TAGS=ve,o.REMOVABLE_TAGS=it,o.SELF_CLOSING_TAGS=be,o.STAND_DPI=V,o.TRIM_BOTH=N,o.TRIM_LEFT=C,o.TRIM_RIGHT=G,o.WEEK_DAY_NAMES_CN=wn,o.WEEK_DAY_NAMES_SHORT_CN=hn,o.YEAR_NOW=Ke,o.arrayChunk=ht,o.arrayColumn=v,o.arrayDistinct=mt,o.arrayGroup=ft,o.arrayIndex=dt,o.arraySortByKey=gt,o.arrayTrimTail=wt,o.base64Decode=Ot,o.base64UrlSafeEncode=Dt,o.between=h,o.blobToBase64=W,o.blobToDataUri=I,o.buildHtmlHidden=xe,o.buildStyleVars=we,o.camelCase=vt,o.capitalize=B,o.cleanNull=st,o.countDown=En,o.createDomByHtml=he,o.cssSelectorEscape=Me,o.cutString=At,o.debounce=qt,o.decodeHTMLEntities=_e,o.deepClone=U,o.deleteCookie=Yt,o.detectLanguage=Lt,o.detectedPrecision=Zt,o.digitCount=Qt,o.disabled=X,o.downloadFile=Te,o.enabled=Z,o.enterFullScreen=z,o.entityToString=Se,o.escapeAttr=k,o.escapeHtml=Ne,o.exitFullScreen=K,o.extract=Tt,o.fileToBase64DataUri=Ae,o.findAll=R,o.findOne=b,o.fixBaseUrl=ge,o.formatDate=ut,o.getBoundingClientRect=et,o.getCookie=Ft,o.getDomDimension=de,o.getNodeXPath=oe,o.getUTF8StrLen=St,o.guid=j,o.hide=te,o.highlightText=De,o.html2Text=ye,o.imgToBase64=Re,o.insertStyleSheet=tt,o.isEmptyObject=qe,o.isFocusable=se,o.isFunction=Kt,o.isInFullScreen=$,o.isJSON=Mt,o.isJson=Wt,o.isObject=zt,o.isPromise=Gt,o.isUrl=J,o.kebabCase=bt,o.keepRectInContainer=le,o.loadCss=pe,o.loadScript=ue,o.lockElementInteraction=ie,o.md5=Ue,o.mmToPx=Jt,o.msToHMS=An,o.mutationEffective=Q,o.nodeIndex=ae,o.objectGet=We,o.objectKeyMapping=Ge,o.objectMerge=ct,o.objectSet=ze,o.onDomTreeChange=re,o.precisionToStep=fe,o.printStack=$t,o.randomInt=Vt,o.randomString=q,o.randomWords=xt,o.rectAssoc=ce,o.rectInLayout=me,o.regQuote=M,o.remove=ne,o.round=Xt,o.sanitizeFileName=Ee,o.setCookie=kt,o.show=ee,o.srcToBase64=Ie,o.strToPascalCase=Nt,o.stringToEntity=Oe,o.stripSlashes=Et,o.throttle=Bt,o.throttleEffect=Pt,o.toggleDisabled=D,o.toggleFullScreen=Ht,o.trim=Ct,o.truncate=yt,o.unescapeHtml=Ce,o.urlB64DataCache=H,o.utf8Decode=P,o.utf8Encode=x,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "minutool",
3
+ "version": "1.0.0",
4
+ "description": "A collection of utility functions for time, string, object and more",
5
+ "type": "module",
6
+ "main": "./dist/minutool.umd.cjs",
7
+ "module": "./dist/minutool.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/minutool.js",
12
+ "require": "./dist/minutool.umd.cjs",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "sideEffects": false,
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "build": "tsc && vite build",
23
+ "prebuild": "npm run generate:index",
24
+ "preview": "vite preview",
25
+ "prepublishOnly": "npm run build",
26
+ "generate:index": "node scripts/generate-index.js"
27
+ },
28
+ "keywords": [
29
+ "utility",
30
+ "utils",
31
+ "time",
32
+ "string",
33
+ "object",
34
+ "helpers"
35
+ ],
36
+ "author": "Your Name <your-email@example.com>",
37
+ "license": "MIT",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/your-username/minutool.git"
41
+ },
42
+ "bugs": {
43
+ "url": "https://github.com/your-username/minutool/issues"
44
+ },
45
+ "homepage": "https://github.com/your-username/minutool#readme",
46
+ "devDependencies": {
47
+ "typescript": "^5.3.3",
48
+ "vite": "^5.0.11",
49
+ "vite-plugin-dts": "^3.7.0"
50
+ }
51
+ }