File "index-20251105181206.js"

Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/build/vendor-16b6190b/index-20251105181206.js
File size: 15.75 KB
MIME-type: text/plain
Charset: utf-8

"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[691],{46885:(t,e,n)=>{n.d(e,{UE:()=>S,RK:()=>C,ll:()=>k,rD:()=>q,UU:()=>E,cY:()=>D,BN:()=>A,Ej:()=>P});var i=n(97193);function o(t,e,n){let{reference:o,floating:l}=t;const r=(0,i.TV)(e),s=(0,i.Dz)(e),a=(0,i.sq)(s),c=(0,i.C0)(e),f="y"===r,u=o.x+o.width/2-l.width/2,d=o.y+o.height/2-l.height/2,m=o[a]/2-l[a]/2;let g;switch(c){case"top":g={x:u,y:o.y-l.height};break;case"bottom":g={x:u,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:d};break;case"left":g={x:o.x-l.width,y:d};break;default:g={x:o.x,y:o.y}}switch((0,i.Sg)(e)){case"start":g[s]-=m*(n&&f?-1:1);break;case"end":g[s]+=m*(n&&f?-1:1)}return g}async function l(t,e){var n;void 0===e&&(e={});const{x:o,y:l,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=(0,i._3)(e,t),h=(0,i.nI)(g),p=a[m?"floating"===d?"reference":"floating":d],y=(0,i.B1)(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(p)))||n?p:p.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:c})),x="floating"===d?{x:o,y:l,width:s.floating.width,height:s.floating.height}:s.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),v=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},b=(0,i.B1)(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-b.top+h.top)/v.y,bottom:(b.bottom-y.bottom+h.bottom)/v.y,left:(y.left-b.left+h.left)/v.x,right:(b.right-y.right+h.right)/v.x}}const r=new Set(["left","top"]);var s=n(86635);function a(t){const e=(0,s.L9)(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=(0,s.sb)(t),r=l?t.offsetWidth:n,a=l?t.offsetHeight:o,c=(0,i.LI)(n)!==r||(0,i.LI)(o)!==a;return c&&(n=r,o=a),{width:n,height:o,$:c}}function c(t){return(0,s.vq)(t)?t:t.contextElement}function f(t){const e=c(t);if(!(0,s.sb)(e))return(0,i.Jx)(1);const n=e.getBoundingClientRect(),{width:o,height:l,$:r}=a(e);let f=(r?(0,i.LI)(n.width):n.width)/o,u=(r?(0,i.LI)(n.height):n.height)/l;return f&&Number.isFinite(f)||(f=1),u&&Number.isFinite(u)||(u=1),{x:f,y:u}}const u=(0,i.Jx)(0);function d(t){const e=(0,s.zk)(t);return(0,s.Tc)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:u}function m(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const l=t.getBoundingClientRect(),r=c(t);let a=(0,i.Jx)(1);e&&(o?(0,s.vq)(o)&&(a=f(o)):a=f(t));const u=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==(0,s.zk)(t))&&e}(r,n,o)?d(r):(0,i.Jx)(0);let m=(l.left+u.x)/a.x,g=(l.top+u.y)/a.y,h=l.width/a.x,p=l.height/a.y;if(r){const t=(0,s.zk)(r),e=o&&(0,s.vq)(o)?(0,s.zk)(o):o;let n=t,i=(0,s._m)(n);for(;i&&o&&e!==n;){const t=f(i),e=i.getBoundingClientRect(),o=(0,s.L9)(i),l=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;m*=t.x,g*=t.y,h*=t.x,p*=t.y,m+=l,g+=r,n=(0,s.zk)(i),i=(0,s._m)(n)}}return(0,i.B1)({width:h,height:p,x:m,y:g})}function g(t,e){const n=(0,s.CP)(t).scrollLeft;return e?e.left+n:m((0,s.ep)(t)).left+n}function h(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-g(t,n),y:n.top+e.scrollTop}}const p=new Set(["absolute","fixed"]);function y(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=(0,s.zk)(t),i=(0,s.ep)(t),o=n.visualViewport;let l=i.clientWidth,r=i.clientHeight,a=0,c=0;if(o){l=o.width,r=o.height;const t=(0,s.Tc)();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}const f=g(i);if(f<=0){const t=i.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(i.clientWidth-e.clientWidth-o);r<=25&&(l-=r)}else f<=25&&(l+=f);return{width:l,height:r,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=(0,s.ep)(t),n=(0,s.CP)(t),o=t.ownerDocument.body,l=(0,i.T9)(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=(0,i.T9)(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+g(t);const c=-n.scrollTop;return"rtl"===(0,s.L9)(o).direction&&(a+=(0,i.T9)(e.clientWidth,o.clientWidth)-l),{width:l,height:r,x:a,y:c}}((0,s.ep)(t));else if((0,s.vq)(e))o=function(t,e){const n=m(t,!0,"fixed"===e),o=n.top+t.clientTop,l=n.left+t.clientLeft,r=(0,s.sb)(t)?f(t):(0,i.Jx)(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:l*r.x,y:o*r.y}}(e,n);else{const n=d(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return(0,i.B1)(o)}function x(t,e){const n=(0,s.$4)(t);return!(n===e||!(0,s.vq)(n)||(0,s.eu)(n))&&("fixed"===(0,s.L9)(n).position||x(n,e))}function w(t,e,n){const o=(0,s.sb)(e),l=(0,s.ep)(e),r="fixed"===n,a=m(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=(0,i.Jx)(0);function u(){f.x=g(l)}if(o||!o&&!r)if(("body"!==(0,s.mq)(e)||(0,s.ZU)(l))&&(c=(0,s.CP)(e)),o){const t=m(e,!0,r,e);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else l&&u();r&&!o&&l&&u();const d=!l||o||r?(0,i.Jx)(0):h(l,c);return{x:a.left+c.scrollLeft-f.x-d.x,y:a.top+c.scrollTop-f.y-d.y,width:a.width,height:a.height}}function v(t){return"static"===(0,s.L9)(t).position}function b(t,e){if(!(0,s.sb)(t)||"fixed"===(0,s.L9)(t).position)return null;if(e)return e(t);let n=t.offsetParent;return(0,s.ep)(t)===n&&(n=n.ownerDocument.body),n}function T(t,e){const n=(0,s.zk)(t);if((0,s.Tf)(t))return n;if(!(0,s.sb)(t)){let e=(0,s.$4)(t);for(;e&&!(0,s.eu)(e);){if((0,s.vq)(e)&&!v(e))return e;e=(0,s.$4)(e)}return n}let i=b(t,e);for(;i&&(0,s.Lv)(i)&&v(i);)i=b(i,e);return i&&(0,s.eu)(i)&&v(i)&&!(0,s.sQ)(i)?n:i||(0,s.gJ)(t)||n}const R={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:l}=t;const r="fixed"===l,a=(0,s.ep)(o),c=!!e&&(0,s.Tf)(e.floating);if(o===a||c&&r)return n;let u={scrollLeft:0,scrollTop:0},d=(0,i.Jx)(1);const g=(0,i.Jx)(0),p=(0,s.sb)(o);if((p||!p&&!r)&&(("body"!==(0,s.mq)(o)||(0,s.ZU)(a))&&(u=(0,s.CP)(o)),(0,s.sb)(o))){const t=m(o);d=f(o),g.x=t.x+o.clientLeft,g.y=t.y+o.clientTop}const y=!a||p||r?(0,i.Jx)(0):h(a,u);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+g.x+y.x,y:n.y*d.y-u.scrollTop*d.y+g.y+y.y}},getDocumentElement:s.ep,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:l}=t;const r=[..."clippingAncestors"===n?(0,s.Tf)(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=(0,s.v9)(t,[],!1).filter(t=>(0,s.vq)(t)&&"body"!==(0,s.mq)(t)),o=null;const l="fixed"===(0,s.L9)(t).position;let r=l?(0,s.$4)(t):t;for(;(0,s.vq)(r)&&!(0,s.eu)(r);){const e=(0,s.L9)(r),n=(0,s.sQ)(r);n||"fixed"!==e.position||(o=null),(l?!n&&!o:!n&&"static"===e.position&&o&&p.has(o.position)||(0,s.ZU)(r)&&!n&&x(t,r))?i=i.filter(t=>t!==r):o=e,r=(0,s.$4)(r)}return e.set(t,i),i}(e,this._c):[].concat(n),o],a=r.reduce((t,n)=>{const o=y(e,n,l);return t.top=(0,i.T9)(o.top,t.top),t.right=(0,i.jk)(o.right,t.right),t.bottom=(0,i.jk)(o.bottom,t.bottom),t.left=(0,i.T9)(o.left,t.left),t},y(e,r[0],l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:T,getElementRects:async function(t){const e=this.getOffsetParent||T,n=this.getDimensions,i=await n(t.floating);return{reference:w(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=a(t);return{width:e,height:n}},getScale:f,isElement:s.vq,isRTL:function(t){return"rtl"===(0,s.L9)(t).direction}};function L(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function k(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:l=!0,ancestorResize:r=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:f="function"===typeof IntersectionObserver,animationFrame:u=!1}=o,d=c(t),g=l||r?[...d?(0,s.v9)(d):[],...(0,s.v9)(e)]:[];g.forEach(t=>{l&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const h=d&&f?function(t,e){let n,o=null;const l=(0,s.ep)(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),r();const f=t.getBoundingClientRect(),{left:u,top:d,width:m,height:g}=f;if(a||e(),!m||!g)return;const h={rootMargin:-(0,i.RI)(d)+"px "+-(0,i.RI)(l.clientWidth-(u+m))+"px "+-(0,i.RI)(l.clientHeight-(d+g))+"px "+-(0,i.RI)(u)+"px",threshold:(0,i.T9)(0,(0,i.jk)(1,c))||1};let p=!0;function y(e){const i=e[0].intersectionRatio;if(i!==c){if(!p)return s();i?s(!1,i):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||L(f,t.getBoundingClientRect())||s(),p=!1}try{o=new IntersectionObserver(y,{...h,root:l.ownerDocument})}catch(x){o=new IntersectionObserver(y,h)}o.observe(t)}(!0),r}(d,n):null;let p,y=-1,x=null;a&&(x=new ResizeObserver(t=>{let[i]=t;i&&i.target===d&&x&&(x.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var t;null==(t=x)||t.observe(e)})),n()}),d&&!u&&x.observe(d),x.observe(e));let w=u?m(t):null;return u&&function e(){const i=m(t);w&&!L(w,i)&&n(),w=i,p=requestAnimationFrame(e)}(),n(),()=>{var t;g.forEach(t=>{l&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==h||h(),null==(t=x)||t.disconnect(),x=null,u&&cancelAnimationFrame(p)}}const D=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:l,y:s,placement:a,middlewareData:c}=e,f=await async function(t,e){const{placement:n,platform:o,elements:l}=t,s=await(null==o.isRTL?void 0:o.isRTL(l.floating)),a=(0,i.C0)(n),c=(0,i.Sg)(n),f="y"===(0,i.TV)(n),u=r.has(a)?-1:1,d=s&&f?-1:1,m=(0,i._3)(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}="number"===typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&"number"===typeof p&&(h="end"===c?-1*p:p),f?{x:h*d,y:g*u}:{x:g*u,y:h*d}}(e,t);return a===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:l+f.x,y:s+f.y,data:{...f,placement:a}}}}},C=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,r;const{rects:s,middlewareData:a,placement:c,platform:f,elements:u}=e,{crossAxis:d=!1,alignment:m,allowedPlacements:g=i.DD,autoAlignment:h=!0,...p}=(0,i._3)(t,e),y=void 0!==m||g===i.DD?function(t,e,n){return(t?[...n.filter(e=>(0,i.Sg)(e)===t),...n.filter(e=>(0,i.Sg)(e)!==t)]:n.filter(t=>(0,i.C0)(t)===t)).filter(n=>!t||(0,i.Sg)(n)===t||!!e&&(0,i.aD)(n)!==n)}(m||null,h,g):g,x=await l(e,p),w=(null==(n=a.autoPlacement)?void 0:n.index)||0,v=y[w];if(null==v)return{};const b=(0,i.w7)(v,s,await(null==f.isRTL?void 0:f.isRTL(u.floating)));if(c!==v)return{reset:{placement:y[0]}};const T=[x[(0,i.C0)(v)],x[b[0]],x[b[1]]],R=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:T}],L=y[w+1];if(L)return{data:{index:w+1,overflows:R},reset:{placement:L}};const k=R.map(t=>{const e=(0,i.Sg)(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),D=(null==(r=k.filter(t=>t[2].slice(0,(0,i.Sg)(t[0])?2:3).every(t=>t<=0))[0])?void 0:r[0])||k[0][0];return D!==c?{data:{index:w+1,overflows:R},reset:{placement:D}}:{}}}},A=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...f}=(0,i._3)(t,e),u={x:n,y:o},d=await l(e,f),m=(0,i.TV)((0,i.C0)(r)),g=(0,i.PG)(m);let h=u[g],p=u[m];s&&(h=(0,i.qE)(h+d["y"===g?"top":"left"],h,h-d["y"===g?"bottom":"right"])),a&&(p=(0,i.qE)(p+d["y"===m?"top":"left"],p,p-d["y"===m?"bottom":"right"]));const y=c.fn({...e,[g]:h,[m]:p});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[g]:s,[m]:a}}}}}},E=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:c,platform:f,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...x}=(0,i._3)(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const w=(0,i.C0)(r),v=(0,i.TV)(c),b=(0,i.C0)(c)===c,T=await(null==f.isRTL?void 0:f.isRTL(u.floating)),R=g||(b||!y?[(0,i.bV)(c)]:(0,i.WJ)(c)),L="none"!==p;!g&&L&&R.push(...(0,i.lP)(c,y,p,T));const k=[c,...R],D=await l(e,x),C=[];let A=(null==(o=s.flip)?void 0:o.overflows)||[];if(d&&C.push(D[w]),m){const t=(0,i.w7)(r,a,T);C.push(D[t[0]],D[t[1]])}if(A=[...A,{placement:r,overflows:C}],!C.every(t=>t<=0)){var E,P;const t=((null==(E=s.flip)?void 0:E.index)||0)+1,e=k[t];if(e&&("alignment"!==m||v===(0,i.TV)(e)||A.every(t=>(0,i.TV)(t.placement)!==v||t.overflows[0]>0)))return{data:{index:t,overflows:A},reset:{placement:e}};let n=null==(P=A.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var S;const t=null==(S=A.filter(t=>{if(L){const e=(0,i.TV)(t.placement);return e===v||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:S[0];t&&(n=t);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},P=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:s,platform:a,elements:c}=e,{apply:f=()=>{},...u}=(0,i._3)(t,e),d=await l(e,u),m=(0,i.C0)(r),g=(0,i.Sg)(r),h="y"===(0,i.TV)(r),{width:p,height:y}=s.floating;let x,w;"top"===m||"bottom"===m?(x=m,w=g===(await(null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,x="end"===g?"top":"bottom");const v=y-d.top-d.bottom,b=p-d.left-d.right;let T=(0,i.jk)(y-d[x],v),R=(0,i.jk)(p-d[w],b);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(R=b),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(T=v),!e.middlewareData.shift&&!g){const t=(0,i.T9)(d.left,0),e=(0,i.T9)(d.right,0),n=(0,i.T9)(d.top,0),o=(0,i.T9)(d.bottom,0);h?R=p-2*(0!==t||0!==e?t+e:(0,i.T9)(d.left,d.right)):T=y-2*(0!==n||0!==o?n+o:(0,i.T9)(d.top,d.bottom))}await f({...e,availableWidth:R,availableHeight:T});const L=await a.getDimensions(c.floating);return p!==L.width||y!==L.height?{reset:{rects:!0}}:{}}}},S=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:l,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:f,padding:u=0}=(0,i._3)(t,e)||{};if(null==f)return{};const d=(0,i.nI)(u),m={x:n,y:o},g=(0,i.Dz)(l),h=(0,i.sq)(g),p=await s.getDimensions(f),y="y"===g,x=y?"top":"left",w=y?"bottom":"right",v=y?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[g]-m[g]-r.floating[h],T=m[g]-r.reference[g],R=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let L=R?R[v]:0;L&&await(null==s.isElement?void 0:s.isElement(R))||(L=a.floating[v]||r.floating[h]);const k=b/2-T/2,D=L/2-p[h]/2-1,C=(0,i.jk)(d[x],D),A=(0,i.jk)(d[w],D),E=C,P=L-p[h]-A,S=L/2-p[h]/2+k,q=(0,i.qE)(E,S,P),O=!c.arrow&&null!=(0,i.Sg)(l)&&S!==q&&r.reference[h]/2-(S<E?C:A)-p[h]/2<0,z=O?S<E?S-E:S-P:0;return{[g]:m[g]+z,data:{[g]:q,centerOffset:S-q-z,...O&&{alignmentOffset:z}},reset:O}}}),q=(t,e,n)=>{const i=new Map,l={platform:R,...n},r={...l.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:l}),{x:u,y:d}=o(f,i,c),m=i,g={},h=0;for(let p=0;p<a.length;p++){const{name:n,fn:r}=a[p],{x:y,y:x,data:w,reset:v}=await r({x:u,y:d,initialPlacement:i,placement:m,strategy:l,middlewareData:g,rects:f,platform:s,elements:{reference:t,floating:e}});u=null!=y?y:u,d=null!=x?x:d,g={...g,[n]:{...g[n],...w}},v&&h<=50&&(h++,"object"===typeof v&&(v.placement&&(m=v.placement),v.rects&&(f=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:l}):v.rects),({x:u,y:d}=o(f,m,c))),p=-1)}return{x:u,y:d,placement:m,strategy:l,middlewareData:g}})(t,e,{...l,platform:r})}}}]);