function NectarFitText(){this.fitties=[],this.usingMobileBrowser=!!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/),this.init(),this.bindEvents()}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).fitty=t()}(this,function(){"use strict";return function(e){if(e){var t=function(e){return[].slice.call(e)},i=3,n=[],r=null,o="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(r),r=e.requestAnimationFrame(function(){return s(n.filter(function(e){return e.dirty&&e.active}))})}:function(){},a=function(e){return function(){n.forEach(function(t){return t.dirty=e}),o()}},s=function(e){e.filter(function(e){return!e.styleComputed}).forEach(function(e){e.styleComputed=f(e)}),e.filter(d).forEach(p);var t=e.filter(l);t.forEach(u),t.forEach(function(e){p(e),c(e)}),t.forEach(h)},c=function(e){return e.dirty=0},u=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},l=function(e){return 2!==e.dirty||2===e.dirty&&e.element.parentNode.clientWidth!==e.availableWidth},f=function(t){var i=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(i.getPropertyValue("font-size")),t.display=i.getPropertyValue("display"),t.whiteSpace=i.getPropertyValue("white-space"),!0},d=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},p=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},h=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},m=function(e,t){return function(){e.dirty=t,e.active&&o()}},y=function(e){return function(){n=n.filter(function(t){return t.element!==e.element}),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},v=function(e){return function(){e.active||(e.active=!0,o())}},w=function(e){return function(){return e.active=!1}},S=function(e){e.observeMutations&&(e.observer=new MutationObserver(m(e,1)),e.observer.observe(e.element,e.observeMutations))},b={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},z=null,F=function(){e.clearTimeout(z),z=e.setTimeout(a(2),x.observeWindowDelay)},g=["resize","orientationchange"];return Object.defineProperty(x,"observeWindow",{set:function(t){var i="".concat(t?"add":"remove","EventListener");g.forEach(function(t){e[i](t,F)})}}),x.observeWindow=!0,x.observeWindowDelay=100,x.fitAll=a(i),x}function E(e,t){var r=Object.assign({},b,t),a=e.map(function(e){var t=Object.assign({},r,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},S(e),e.newbie=!0,e.dirty=!0,n.push(e)}(t),{element:e,fit:m(t,i),unfreeze:v(t),freeze:w(t),unsubscribe:y(t)}});return o(),a}function x(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?E(t(document.querySelectorAll(e)),i):E([e],i)[0]}}("undefined"==typeof window?null:window)}),NectarFitText.prototype.init=function(){this.fitties=[],this.fitties=fitty('[data-has-fit-text="true"]',{observeWindow:!1,maxSize:700}),this.fitties.forEach(e=>{e.element.addEventListener("fit",function(t){e.element.classList.add("fitty-fit")})})},NectarFitText.prototype.bindEvents=function(){const e=this;this.usingMobileBrowser?window.addEventListener("orientationchange",this.resizeFitties.bind(this)):window.addEventListener("resize",function(){e.resizeFitties()}),(!!!(window.nectarOptions&&window.nectarOptions.view_transitions_effect&&window.nectarOptions.view_transitions_effect.length>0)||window.innerWidth<1e3)&&window.addEventListener("load",function(){this.setTimeout(function(){e.resizeFitties()},100),this.setTimeout(function(){e.resizeFitties()},300)})},NectarFitText.prototype.resizeFitties=function(){this.fitties.forEach(e=>{e.fit()})};const fitTextElements=new NectarFitText;jQuery(document).ready(function(e){e(window).on("vc_reload",()=>{fitTextElements.init()})});