var cfm_timer;function cfmsync_toaster(e,t,r=5){clearTimeout(cfm_timer);var n=document.querySelector(".cfm-toaster");n.className="success"==e?"cfm-toaster cfm-is-visible cfm-toast-success":"warning"==e?"cfm-toaster cfm-is-visible cfm-toast-warning":"info"==e?"cfm-toaster cfm-is-visible cfm-toast-info":"cfm-toaster cfm-is-visible cfm-toast-error",document.querySelector(".cfm-toaster-text").innerHTML=t,cfm_timer=setTimeout(function(){n.classList.remove("cfm-is-visible")},1e3*r)}function cfm_get_url_vars(){var e={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,r,n){e[r]=n});return e}function cfm_truncate(e,t){return e.length>t?e.substr(0,t-1)+"&hellip;":e}function cfm_convert_to_slug(e){return e.toLowerCase().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/[^\w-]+/g,"")}function cfm_milliseconds_to_str(e){function t(e){return e>1?"s":""}var r=Math.floor(e/1e3),n=Math.floor(r/31536e3),s=Math.floor((r%=31536e3)/86400),c=Math.floor((r%=86400)/3600),o=Math.floor((r%=3600)/60),i=r%60;return n?n+" year"+t(n)+", "+s+" day"+t(s)+", "+c+" hour"+t(c)+", "+o+" minute"+t(o)+", "+i+" second"+t(i):s?s+" day"+t(s)+", "+c+" hour"+t(c)+", "+o+" minute"+t(o)+", "+i+" second"+t(i):c?c+" hour"+t(c)+", "+o+" minute"+t(o)+", "+i+" second"+t(i):o?o+" minute"+t(o)+", "+i+" second"+t(i):i?i+" second"+t(i):"less than a second"}function cfm_is_datetime_future(e){return!(new Date>new Date(e))}document.querySelector(".cfm-toast-dismiss").addEventListener("click",function(){document.querySelector(".cfm-toaster").classList.remove("cfm-is-visible")},!1);var cfm_content_spinner='<div class="cfm-content-spinner d-flex justify-content-center align-items-center"><svg width="200px" height="200px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="lds-eclipse" style="background: none;"><path stroke="none" d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#C58FAC" transform="rotate(233.616 50 51)"><animateTransform attributeName="transform" type="rotate" calcMode="linear" values="0 50 51;360 50 51" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animateTransform></path></svg></div>';function cfm_ucwords(e){return(e+"").replace(/^([a-z])|\s+([a-z])/g,function(e){return e.toUpperCase()})}function cfm_validate_url(e){try{return new URL(e),!0}catch(e){return!1}}function cfm_validate_email(e){return/^(([^<>()\[\]\\.,;:\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(String(e).toLowerCase())}