var string=function(e){"use strict";function r(e,r,n,t){return new(n||(n=Promise))((function(a,o){function c(e){try{i(t.next(e))}catch(e){o(e)}}function u(e){try{i(t.throw(e))}catch(e){o(e)}}function i(e){var r;e.done?a(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(c,u)}i((t=t.apply(e,r||[])).next())}))}function n(e,r){var n,t,a,o,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(c=0)),c;)try{if(n=1,t&&(a=2&u[0]?t.return:u[0]?t.throw||((a=t.return)&&a.call(t),0):t.next)&&!(a=a.call(t,u[1])).done)return a;switch(t=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,t=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(a=c.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]0?"-":"")+e.toLowerCase()}))},e.pascalCase=function(e){var r=e.replace(/-|_/g," ").replace(/[A-Z]/g," $&");return(r=o(r,"multiple")).replaceAll(" ","")},e.random=function(e,r){void 0===e&&(e=11),void 0===r&&(r="");var n="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_~!@#$%^&*()+={}[]|:;<>,./?";"alphadash"===r?t=t.slice(0,64):"alphanumeric"===r?t=t.slice(0,62):"alpha"===r?t=t.slice(10,62):"hex"===r?t=t.slice(0,16):"numeric"===r&&(t=t.slice(0,10));for(var a=0;a0&&(t=t.slice(0,Number(r))),Number(n)>0&&(t=t+"-"+n),t},e.snakeCase=function(e){var r=e.replace(/-|_/g," ").replace(/[A-Z]/g," $&");return(r=o(r,"multiple")).replaceAll(" ","").replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(e,r){return(r>0?"_":"")+e.toLowerCase()}))},e.uniqid=function(e){void 0===e&&(e=0);var r="",n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",t=String(JSON.parse((new Date).toJSON().replace(/-|T|Z|:|\./g,"")));Number(e)>=1&&(r+=String(Number(e)+1));for(var a=0;a