File: /home/axxoncom/public_html/wp-content/plugins/elementor/assets/js/packages/utils/utils.min.js
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ElementorError:function(){return n},createError:function(){return r},debounce:function(){return c},decodeString:function(){return i},encodeString:function(){return l},ensureError:function(){return u},hash:function(){return s},useDebounceState:function(){return a},useSearchState:function(){return d}});class n extends Error{constructor(e,{code:t,context:n=null,cause:r=null}){super(e,{cause:r}),this.context=n,this.code=t}}const r=({code:e,message:t})=>class extends n{constructor({cause:n,context:r}={}){super(t,{cause:n,code:e,context:r})}},u=e=>{if(e instanceof Error)return e;let t,n=null;try{t=JSON.stringify(e)}catch(e){n=e,t="Unable to stringify the thrown value"}return new Error(`Unexpected non-error thrown: ${t}`,{cause:n})};var o=window.React;function c(e,t){let n=null;const r=()=>{n&&(clearTimeout(n),n=null)},u=(...u)=>{r(),n=setTimeout(()=>{e(...u),n=null},t)};return u.flush=(...t)=>{r(),e(...t)},u.cancel=r,u.pending=()=>!!n,u}function a(e={}){const{delay:t=300,initialValue:n=""}=e,[r,u]=(0,o.useState)(n),[a,l]=(0,o.useState)(n),i=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{i.current?.cancel?.()},[]);const s=(0,o.useCallback)(e=>{i.current?.cancel?.(),i.current=c(()=>{u(e)},t),i.current()},[t]);return{debouncedValue:r,inputValue:a,handleChange:e=>{l(e),s(e)},setInputValue:l}}const l=e=>btoa(e),i=(e,t="")=>{try{return atob(e)}catch{return t}};function s(e){return JSON.stringify(e,(e,t)=>function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function d({localStorageKey:e}){const{debouncedValue:t,inputValue:n,handleChange:r}=a({delay:300,initialValue:(()=>{if(e){const t=localStorage.getItem(e);if(t)return localStorage.removeItem(e),t}return""})()});return{debouncedValue:t,inputValue:n,handleChange:r}}(window.elementorV2=window.elementorV2||{}).utils=t}(),window.elementorV2.utils?.init?.();