Framework
js
import { unique, ... } from 'wgl-utils';
unique();
js
const Wgl = require('wgl-utils/umd');
Wgl.unique();
Browser
html
<script type="module">
import { unique } from 'wgl-utils/main.mjs';
unique();
</script>
html
<script src="wgl-utils/main.js"></script>
<script>
Wgl.unique()
</script>
Code
js
// src/index.js
export { default as unique } from './unique';
export { default as verifyVar } from './verifyVar';
export { default as validation } from './validation';
export { default as deepCopy } from './deepCopy';
export { default as deepMerge } from './deepMerge';
export { default as recursionSegments } from './recursionSegments';
export { default as isArrayNested } from './isArrayNested';
export * from './formatDate';
export * from './debounce';
export * from './parseUrl';
export * from './hump';
export * from './rem';
js
// dist/main.mjs
var t={528:function(t,e,n){n.d(e,{Ds:function(){return o},P2:function(){return r},Wv:function(){return i},rn:function(){return u}});const r=(()=>{let t=0;return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=(new Date).valueOf();r-t>n&&(e?.(),t=r)}})(),o=(()=>{let t;return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;clearTimeout(t),t=setTimeout((()=>e?.()),n)}})(),i=()=>{let t;return e=>{let{el:n,time:r=300,fn:o}=e;n.addEventListener("scroll",(()=>{let e=n.scrollHeight,i=n.scrollTop,u=n.clientHeight;clearTimeout(t),t=setTimeout((()=>{i+u>e-20&&o&&o()}),r)}))}},u=()=>{let t;return e=>{let{el:n,time:r=300,fn:o}=e;n.addEventListener("keyup",(()=>{clearTimeout(t),t=setTimeout((()=>{o&&o()}),r)}))}}},488:function(t,e,n){function r(t){var e;if("object"==typeof t){e=Array.isArray(t)?[]:{};for(let n in t)e[n]="object"==typeof t[n]?r(t[n]):t[n]}else e=t;return e}n.d(e,{Z:function(){return r}})},481:function(t,e,n){function r(t,e){let n;for(n in e)t[n]&&Array.isArray(t[n])&&e[n]&&Array.isArray(e[n])?t[n]=t[n].concat(e[n]):t[n]&&"[object Object]"===t[n].toString()&&e[n]&&"[object Object]"===e[n].toString()?t[n]=r(t[n],e[n]):t[n]=e[n];return t}n.d(e,{Z:function(){return r}})},610:function(t,e,n){n.d(e,{I:function(){return o},p:function(){return r}});const r=(t,e)=>{if(!t)return"";10===String(t).length&&(t*=1e3);var n=new Date(t),r=n.getFullYear(),o=n.getMonth()+1,i=n.getDate(),u=n.getHours(),c=n.getMinutes(),a=n.getSeconds();return"YYYY"===e?r:"YYYY-MM"===e?r+"-"+(o<10?"0"+o:o):"YYYY-MM-DD"===e?r+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i):"HH:mm:ss"===e?(u<10?"0"+u:u)+":"+(c<10?"0"+c:c)+":"+(a<10?"0"+a:a):"YYYY-MM-DD HH:mm"===e?r+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i)+" "+(u<10?"0"+u:u)+":"+(c<10?"0"+c:c):"YYYY-MM-DD HH:mm:ss"===e?r+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i)+" "+(u<10?"0"+u:u)+":"+(c<10?"0"+c:c)+":"+(a<10?"0"+a:a):"--"},o=t=>t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate().toString():t.getDate().toString())},55:function(t,e,n){n.d(e,{$:function(){return o},S:function(){return r}});const r=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(/([A-Z])/g,`${e}$1`).toLowerCase()},o=t=>t.replace(/-(\w)/g,((t,e)=>e.toUpperCase()))},686:function(t,e){e.Z=t=>Array.isArray(t)&&t.length&&t.every((t=>Array.isArray(t)))},114:function(t,e,n){n.d(e,{Mx:function(){return i},Oh:function(){return o},dD:function(){return u},hx:function(){return r},jZ:function(){return a},nQ:function(){return c}});const r=(t,e)=>decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(t)||[null,""])[1].replace(/\+/g,"%20"))||null,o=t=>{let e="";for(let n in t)void 0===t[n]&&(t[n]=""),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n])+"&";return e},i=(t,e)=>{let n="";for(let r in t)e&&e!==r&&(n+=t[r]+"&");return n.slice(0,-1)},u=t=>{var e={};return t.substr(t.indexOf("?")+1).split("&").forEach((t=>{var n=t.split("=");e[n[0]]=n[1]})),e},c=t=>t.match(/([^?=&]+)(=([^&]*))/g).reduce(((t,e)=>(t[e.slice(0,e.indexOf("="))]=e.slice(e.indexOf("=")+1),t)),{}),a=(t,e)=>t.replace(new RegExp(`${e}=\\d*(&?)|(&?)${e}=\\d*`,"g"),"")},723:function(t,e,n){function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=t.shift();return t.length?(-1===Object.keys(e).indexOf(o)&&(e[o]={}),r(t,e[o],n)):e[o]=n,e}n.d(e,{Z:function(){return r}})},405:function(t,e,n){n.d(e,{Q:function(){return r},c:function(){return o}});const r=function(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\d+px/g,(e=>1*(parseInt(e)/parseInt(t)).toFixed(3)+"rem"))},o=function(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/(\d+\.?\d{0,3})rem/gi,((e,n)=>Math.floor(n*t)+"px"))}},977:function(t,e){var n={table:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],UTF16ToUTF8:function(t){for(var e=[],n=t.length,r=0;r<n;r++){var o=t.charCodeAt(r);if(o>0&&o<=127)e.push(t.charAt(r));else if(o>=128&&o<=2047){let t=192|o>>6&31,n=128|63&o;e.push(String.fromCharCode(t),String.fromCharCode(n))}else if(o>=2048&&o<=65535){let t=224|o>>12&15,n=128|o>>6&63,r=128|63&o;e.push(String.fromCharCode(t),String.fromCharCode(n),String.fromCharCode(r))}}return e.join("")},UTF8ToUTF16:function(t){for(var e=[],n=t.length,r=0;r<n;r++){var o=t.charCodeAt(r);if(0==(o>>7&255))e.push(t.charAt(r));else if(6==(o>>5&255)){let n=(31&o)<<6|63&t.charCodeAt(++r);e.push(String.fromCharCode(n))}else if(14==(o>>4&255)){let n=t.charCodeAt(++r),i=(255&(o<<4|n>>2&15))<<8|((3&n)<<6|63&t.charCodeAt(++r));e.push(String.fromCharCode(i))}}return e.join("")},encode:function(t){if(!t)return"";for(var e=this.UTF16ToUTF8(t),n=0,r=e.length,o=[];n<r;){var i=255&e.charCodeAt(n++);if(o.push(this.table[i>>2]),n===r){o.push(this.table[(3&i)<<4]),o.push("==");break}var u=e.charCodeAt(n++);if(n===r){o.push(this.table[(3&i)<<4|u>>4&15]),o.push(this.table[(15&u)<<2]),o.push("=");break}var c=e.charCodeAt(n++);o.push(this.table[(3&i)<<4|u>>4&15]),o.push(this.table[(15&u)<<2|(192&c)>>6]),o.push(this.table[63&c])}return o.join("")},decode:function(t){if(!t)return"";for(var e=t.length,n=0,r=[];n<e;){let e=this.table.indexOf(t.charAt(n++)),o=this.table.indexOf(t.charAt(n++)),i=this.table.indexOf(t.charAt(n++)),u=this.table.indexOf(t.charAt(n++)),c=e<<2|o>>4,a=(15&o)<<4|i>>2,s=(3&i)<<6|u;r.push(String.fromCharCode(c)),64!==i&&r.push(String.fromCharCode(a)),64!==u&&r.push(String.fromCharCode(s))}return this.UTF8ToUTF16(r.join(""))}};e.Z=()=>{var t=(new Date).getTime(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)}));return n.encode(e)}},908:function(t,e){e.Z=(()=>{const t={empty:t=>!(null==t||Array.isArray(t)&&0===t.length||"[object Object]"===Object.prototype.toString.call(t)&&"{}"===JSON.stringify(t)||"string"==typeof t&&0===t.replace(/\s+/g,"").length||"number"!=typeof t&&!t),url:t=>/^(http|https):/.test(t),money:t=>/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(t),alphabets:t=>/^[A-Za-z]+$/.test(t),float:t=>/^-?[1-9]\d*\.\d+$|^-?0\.\d+$|^-?[1-9]\d*$|^0$/.test(t),chinese:t=>/^[\u4e00-\u9fa5]{0,}$/.test(t),placeholder:()=>!0,email:t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)};return(e,n)=>{const r=(e=>(n,r)=>{const{type:o,validation:i,success:u,error:c}=r,a=i?i(e[n]):t[o](e[n]);return a?u?.(r):c?.(r),a})(n);for(let t in e)if(Array.isArray(e[t])){for(let n=0;n<e[t].length;n++)if(e[t]&&!r(t,e[t][n]))return e[t][n]}else if(!r(t,e[t]))return e[t];return!0}})()},490:function(t,e){e.Z=(t,e)=>{const n={"[object String]":"string","[object Object]":"object","[object Number]":"number","[object Boolean]":"boolean","[object Array]":"array","[object Undefined]":"undefined","[object Arguments]":"arguments","[object Function]":"function","[object Null]":"null","[object Date]":"date","[object JSON]":"json","[object RegExp]":"regexp"};let r=n[Object.prototype.toString.call(t)];return"string"===n[Object.prototype.toString.call(e)]?r===e.replace(/\s+/g,"").toLocaleLowerCase():r}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};!function(){n.d(r,{$z:function(){return h.$},AY:function(){return a.Z},Cw:function(){return e.Z},Ds:function(){return f.Ds},Ie:function(){return s.I},JS:function(){return c.Z},Mx:function(){return l.Mx},Oh:function(){return l.Oh},P2:function(){return f.P2},Q1:function(){return d.Q},RH:function(){return u.Z},SM:function(){return h.S},Tw:function(){return t.Z},Uf:function(){return o.Z},Wv:function(){return f.Wv},cv:function(){return d.c},dD:function(){return l.dD},hx:function(){return l.hx},jZ:function(){return l.jZ},nQ:function(){return l.nQ},p$:function(){return i.Z},p6:function(){return s.p},rn:function(){return f.rn}});var t=n(977),e=n(490),o=n(908),i=n(488),u=n(481),c=n(723),a=n(686),s=n(610),f=n(528),l=n(114),h=n(55),d=n(405)}();var o=r.Ds,i=r.p$,u=r.RH,c=r.p6,a=r.hx,s=r.SM,f=r.AY,l=r.rn,h=r.Wv,d=r.dD,p=r.nQ,g=r.Q1,x=r.jZ,b=r.JS,m=r.cv,v=r.$z,y=r.Oh,C=r.Mx,j=r.P2,A=r.Ie,S=r.Tw,O=r.Uf,T=r.Cw;export{o as debounce,i as deepCopy,u as deepMerge,c as formatDate,a as getUrlKey,s as humpToSplit,f as isArrayNested,l as mouseClick,h as mouseScroll,d as parseQueryString,p as parseQueryString2,g as pxToRem,x as queryStringSlice,b as recursionSegments,m as remToPx,v as splitToHump,y as stringifyQuery,C as stringifyQuerySlice,j as throttle,A as transDate,S as unique,O as validation,T as verifyVar};
//# sourceMappingURL=main.mjs.map
js
// dist/main.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Wgl",[],t):"object"==typeof exports?exports.Wgl=t():e.Wgl=t()}(self,(function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{debounce:function(){return g},deepCopy:function(){return u},deepMerge:function(){return l},formatDate:function(){return s},getUrlKey:function(){return b},humpToSplit:function(){return C},isArrayNested:function(){return c},mouseClick:function(){return p},mouseScroll:function(){return d},parseQueryString:function(){return x},parseQueryString2:function(){return j},pxToRem:function(){return A},queryStringSlice:function(){return v},recursionSegments:function(){return a},remToPx:function(){return T},splitToHump:function(){return S},stringifyQuery:function(){return y},stringifyQuerySlice:function(){return m},throttle:function(){return h},transDate:function(){return f},unique:function(){return n},validation:function(){return i},verifyVar:function(){return o}});var r={table:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],UTF16ToUTF8:function(e){for(var t=[],r=e.length,n=0;n<r;n++){var o=e.charCodeAt(n);if(o>0&&o<=127)t.push(e.charAt(n));else if(o>=128&&o<=2047){let e=192|o>>6&31,r=128|63&o;t.push(String.fromCharCode(e),String.fromCharCode(r))}else if(o>=2048&&o<=65535){let e=224|o>>12&15,r=128|o>>6&63,n=128|63&o;t.push(String.fromCharCode(e),String.fromCharCode(r),String.fromCharCode(n))}}return t.join("")},UTF8ToUTF16:function(e){for(var t=[],r=e.length,n=0;n<r;n++){var o=e.charCodeAt(n);if(0==(o>>7&255))t.push(e.charAt(n));else if(6==(o>>5&255)){let r=(31&o)<<6|63&e.charCodeAt(++n);t.push(String.fromCharCode(r))}else if(14==(o>>4&255)){let r=e.charCodeAt(++n),i=(255&(o<<4|r>>2&15))<<8|((3&r)<<6|63&e.charCodeAt(++n));t.push(String.fromCharCode(i))}}return t.join("")},encode:function(e){if(!e)return"";for(var t=this.UTF16ToUTF8(e),r=0,n=t.length,o=[];r<n;){var i=255&t.charCodeAt(r++);if(o.push(this.table[i>>2]),r===n){o.push(this.table[(3&i)<<4]),o.push("==");break}var u=t.charCodeAt(r++);if(r===n){o.push(this.table[(3&i)<<4|u>>4&15]),o.push(this.table[(15&u)<<2]),o.push("=");break}var l=t.charCodeAt(r++);o.push(this.table[(3&i)<<4|u>>4&15]),o.push(this.table[(15&u)<<2|(192&l)>>6]),o.push(this.table[63&l])}return o.join("")},decode:function(e){if(!e)return"";for(var t=e.length,r=0,n=[];r<t;){let t=this.table.indexOf(e.charAt(r++)),o=this.table.indexOf(e.charAt(r++)),i=this.table.indexOf(e.charAt(r++)),u=this.table.indexOf(e.charAt(r++)),l=t<<2|o>>4,a=(15&o)<<4|i>>2,c=(3&i)<<6|u;n.push(String.fromCharCode(l)),64!==i&&n.push(String.fromCharCode(a)),64!==u&&n.push(String.fromCharCode(c))}return this.UTF8ToUTF16(n.join(""))}},n=()=>{var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}));return r.encode(t)},o=(e,t)=>{const r={"[object String]":"string","[object Object]":"object","[object Number]":"number","[object Boolean]":"boolean","[object Array]":"array","[object Undefined]":"undefined","[object Arguments]":"arguments","[object Function]":"function","[object Null]":"null","[object Date]":"date","[object JSON]":"json","[object RegExp]":"regexp"};let n=r[Object.prototype.toString.call(e)];return"string"===r[Object.prototype.toString.call(t)]?n===t.replace(/\s+/g,"").toLocaleLowerCase():n},i=(()=>{const e={empty:e=>!(null==e||Array.isArray(e)&&0===e.length||"[object Object]"===Object.prototype.toString.call(e)&&"{}"===JSON.stringify(e)||"string"==typeof e&&0===e.replace(/\s+/g,"").length||"number"!=typeof e&&!e),url:e=>/^(http|https):/.test(e),money:e=>/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(e),alphabets:e=>/^[A-Za-z]+$/.test(e),float:e=>/^-?[1-9]\d*\.\d+$|^-?0\.\d+$|^-?[1-9]\d*$|^0$/.test(e),chinese:e=>/^[\u4e00-\u9fa5]{0,}$/.test(e),placeholder:()=>!0,email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)};return(t,r)=>{const n=(t=>(r,n)=>{const{type:o,validation:i,success:u,error:l}=n,a=i?i(t[r]):e[o](t[r]);return a?u?.(n):l?.(n),a})(r);for(let e in t)if(Array.isArray(t[e])){for(let r=0;r<t[e].length;r++)if(t[e]&&!n(e,t[e][r]))return t[e][r]}else if(!n(e,t[e]))return t[e];return!0}})();function u(e){var t;if("object"==typeof e){t=Array.isArray(e)?[]:{};for(let r in e)t[r]="object"==typeof e[r]?u(e[r]):e[r]}else t=e;return t}function l(e,t){let r;for(r in t)e[r]&&Array.isArray(e[r])&&t[r]&&Array.isArray(t[r])?e[r]=e[r].concat(t[r]):e[r]&&"[object Object]"===e[r].toString()&&t[r]&&"[object Object]"===t[r].toString()?e[r]=l(e[r],t[r]):e[r]=t[r];return e}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=e.shift();return e.length?(-1===Object.keys(t).indexOf(n)&&(t[n]={}),a(e,t[n],r)):t[n]=r,t}var c=e=>Array.isArray(e)&&e.length&&e.every((e=>Array.isArray(e)));const s=(e,t)=>{if(!e)return"";10===String(e).length&&(e*=1e3);var r=new Date(e),n=r.getFullYear(),o=r.getMonth()+1,i=r.getDate(),u=r.getHours(),l=r.getMinutes(),a=r.getSeconds();return"YYYY"===t?n:"YYYY-MM"===t?n+"-"+(o<10?"0"+o:o):"YYYY-MM-DD"===t?n+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i):"HH:mm:ss"===t?(u<10?"0"+u:u)+":"+(l<10?"0"+l:l)+":"+(a<10?"0"+a:a):"YYYY-MM-DD HH:mm"===t?n+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i)+" "+(u<10?"0"+u:u)+":"+(l<10?"0"+l:l):"YYYY-MM-DD HH:mm:ss"===t?n+"-"+(o<10?"0"+o:o)+"-"+(i<10?"0"+i:i)+" "+(u<10?"0"+u:u)+":"+(l<10?"0"+l:l)+":"+(a<10?"0"+a:a):"--"},f=e=>e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString()),h=(()=>{let e=0;return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=(new Date).valueOf();n-e>r&&(t?.(),e=n)}})(),g=(()=>{let e;return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;clearTimeout(e),e=setTimeout((()=>t?.()),r)}})(),d=()=>{let e;return t=>{let{el:r,time:n=300,fn:o}=t;r.addEventListener("scroll",(()=>{let t=r.scrollHeight,i=r.scrollTop,u=r.clientHeight;clearTimeout(e),e=setTimeout((()=>{i+u>t-20&&o&&o()}),n)}))}},p=()=>{let e;return t=>{let{el:r,time:n=300,fn:o}=t;r.addEventListener("keyup",(()=>{clearTimeout(e),e=setTimeout((()=>{o&&o()}),n)}))}},b=(e,t)=>decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(e)||[null,""])[1].replace(/\+/g,"%20"))||null,y=e=>{let t="";for(let r in e)void 0===e[r]&&(e[r]=""),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r])+"&";return t},m=(e,t)=>{let r="";for(let n in e)t&&t!==n&&(r+=e[n]+"&");return r.slice(0,-1)},x=e=>{var t={};return e.substr(e.indexOf("?")+1).split("&").forEach((e=>{var r=e.split("=");t[r[0]]=r[1]})),t},j=e=>e.match(/([^?=&]+)(=([^&]*))/g).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{}),v=(e,t)=>e.replace(new RegExp(`${t}=\\d*(&?)|(&?)${t}=\\d*`,"g"),""),C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(/([A-Z])/g,`${t}$1`).toLowerCase()},S=e=>e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())),A=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\d+px/g,(t=>1*(parseInt(t)/parseInt(e)).toFixed(3)+"rem"))},T=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/(\d+\.?\d{0,3})rem/gi,((t,r)=>Math.floor(r*e)+"px"))};return t}()}));
//# sourceMappingURL=main.js.map