!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Cleave=t():e.Cleave=t()}(this,function(){return r=[function(t,e,i){!function(e){"use strict";function o(e,t){var i=this,r=!1;if("string"==typeof e?(i.element=document.querySelector(e),r=1e[2]||i[2]===e[2]&&(i[1]>e[1]||i[1]===e[1]&&i[0]>e[0]))?i:e},getFixedDate:function(e,t,i){return e=Math.min(e,31),t=Math.min(t,12),i=parseInt(i||0,10),[e=t<7&&t%2==0||8l.maxHourFirstDigit?i="0"+r:parseInt(i,10)>l.maxHours&&(i=l.maxHours+"");break;case"m":case"s":parseInt(r,10)>l.maxMinutesFirstDigit?i="0"+r:parseInt(i,10)>l.maxMinutes&&(i=l.maxMinutes+"")}o+=i,n=e}}),this.getFixedTimeString(o)},getFixedTimeString:function(e){var t,i,r,n=this,a=n.timePattern,o=[],l=0,s=0,c=0,u=0,d=0;return 6===e.length&&(a.forEach(function(e,t){switch(e){case"s":l=2*t;break;case"m":s=2*t;break;case"h":c=2*t}}),d=c,u=s,r=l,r=parseInt(e.slice(r,r+2),10),t=parseInt(e.slice(u,u+2),10),i=parseInt(e.slice(d,d+2),10),o=this.getFixedTime(i,t,r)),4===e.length&&n.timePattern.indexOf("s")<0&&(a.forEach(function(e,t){switch(e){case"m":s=2*t;break;case"h":c=2*t}}),d=c,u=s,r=0,t=parseInt(e.slice(u,u+2),10),i=parseInt(e.slice(d,d+2),10),o=this.getFixedTime(i,t,r)),0===(n.time=o).length?e:a.reduce(function(e,t){switch(t){case"s":return e+n.addLeadingZero(o[2]);case"m":return e+n.addLeadingZero(o[1]);case"h":return e+n.addLeadingZero(o[0])}},"")},getFixedTime:function(e,t,i){return i=Math.min(parseInt(i||0,10),60),t=Math.min(t,60),[e=Math.min(e,60),t,i]},addLeadingZero:function(e){return(e<10?"0":"")+e}},e.exports=i},function(e,t){"use strict";function i(e,t){this.delimiter=t||""===t?t:" ",this.delimiterRE=t?new RegExp("\\"+t,"g"):"",this.formatter=e}i.prototype={setFormatter:function(e){this.formatter=e},format:function(e){this.formatter.clear();for(var t,i="",r=!1,n=0,a=(e=(e=(e=e.replace(/[^\d+]/g,"")).replace(/^\+/,"B").replace(/\+/g,"").replace("B","+")).replace(this.delimiterRE,"")).length;n