/*!
  * CoreUI v3.0.0-beta.4 (https://coreui.io)
  * Copyright 2020 Łukasz Holeczek
  * Licensed under MIT (https://coreui.io)
  */ !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e=e||self).utilities={})}(this,function(e){"use strict";var i=function e(i,s){for(var t=0,o=Object.keys(s);t<o.length;t++){var r=o[t];s[r]instanceof Object&&Object.assign(s[r],e(i[r],s[r]))}return Object.assign(i||{},s),i},s=function e(){for(var i={},s=document.styleSheets,t="",o=s.length-1;o>-1;o--){for(var r=s[o].cssRules,n=r.length-1;n>-1;n--)if(".ie-custom-properties"===r[n].selectorText){t=r[n].cssText;break}if(t)break}return(t=t.substring(t.lastIndexOf("{")+1,t.lastIndexOf("}"))).split(";").forEach(function(e){if(e){var s=e.split(": ")[0],t=e.split(": ")[1];s&&t&&(i["--"+s.trim()]=t.trim())}}),i},t=function e(i,t){var o,r;return void 0===t&&(t=document.body),r=(o=i).match(/^--.*/i)&&Boolean(document.documentMode)&&document.documentMode>=10?s()[i]:window.getComputedStyle(t,null).getPropertyValue(i).replace(/^\s/,"")},o=function e(i,s){var o;return void 0===s&&(s=document.body),t("--"+i,s)||i},r=function e(i){var s,t,o;if(void 0===i)throw TypeError("Hex color is not defined");if(!i.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw Error(i+" is not a valid hex color");return 7===i.length?(s=parseInt(i.slice(1,3),16),t=parseInt(i.slice(3,5),16),o=parseInt(i.slice(5,7),16)):(s=parseInt(i.slice(1,2),16),t=parseInt(i.slice(2,3),16),o=parseInt(i.slice(3,5),16)),"rgba("+s+", "+t+", "+o+")"},n=function e(i,s){var t,o,r;if(void 0===s&&(s=100),void 0===i)throw TypeError("Hex color is not defined");if(!i.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw Error(i+" is not a valid hex color");return 7===i.length?(t=parseInt(i.slice(1,3),16),o=parseInt(i.slice(3,5),16),r=parseInt(i.slice(5,7),16)):(t=parseInt(i.slice(1,2),16),o=parseInt(i.slice(2,3),16),r=parseInt(i.slice(3,5),16)),"rgba("+t+", "+o+", "+r+", "+s/100+")"},a=function e(i){if(void 0===i)throw TypeError("Hex color is not defined");if("transparent"===i)return"#00000000";var s=i.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!s)throw Error(i+" is not a valid rgb color");var t="0"+parseInt(s[1],10).toString(16),o="0"+parseInt(s[2],10).toString(16),r="0"+parseInt(s[3],10).toString(16);return"#"+t.slice(-2)+o.slice(-2)+r.slice(-2)};e.asideMenuCssClasses=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],e.checkBreakpoint=function e(i,s){return s.indexOf(i)>-1},e.deepObjectsMerge=i,e.getColor=o,e.getStyle=t,e.hexToRgb=r,e.hexToRgba=n,e.rgbToHex=a,e.sidebarCssClasses=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],e.validBreakpoints=["sm","md","lg","xl"],Object.defineProperty(e,"__esModule",{value:!0})});