(()=>{var e={4570:(e,t,n)=>{"use strict";n.d(t,{Nn:()=>un});var i=n(1609),o=n.n(i);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a="(prefers-reduced-motion: reduce)";function s(e){e.length=0}function c(e,t,n){return Array.prototype.slice.call(e,t,n)}function l(e){return e.bind.apply(e,[null].concat(c(arguments,1)))}var u=setTimeout,d=function(){};function f(e){return requestAnimationFrame(e)}function m(e,t){return typeof t===e}function p(e){return!b(e)&&m("object",e)}var g=Array.isArray,v=l(m,"function"),h=l(m,"string"),y=l(m,"undefined");function b(e){return null===e}function k(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function w(e){return g(e)?e:[e]}function E(e,t){w(e).forEach(t)}function x(e,t){return e.indexOf(t)>-1}function S(e,t){return e.push.apply(e,w(t)),e}function _(e,t,n){e&&E(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function C(e,t){_(e,h(t)?t.split(" "):t,!0)}function I(e,t){E(t,e.appendChild.bind(e))}function z(e,t){E(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function P(e,t){return k(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function N(e,t){var n=e?c(e.children):[];return t?n.filter((function(e){return P(e,t)})):n}function L(e,t){return t?N(e,t)[0]:e.firstElementChild}var R=Object.keys;function D(e,t,n){return e&&(n?R(e).reverse():R(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function O(e){return c(arguments,1).forEach((function(t){D(t,(function(n,i){e[i]=t[i]}))})),e}function A(e){return c(arguments,1).forEach((function(t){D(t,(function(t,n){g(t)?e[n]=t.slice():p(t)?e[n]=A({},p(e[n])?e[n]:{},t):e[n]=t}))})),e}function M(e,t){E(t||R(e),(function(t){delete e[t]}))}function T(e,t){E(e,(function(e){E(t,(function(t){e&&e.removeAttribute(t)}))}))}function B(e,t,n){p(t)?D(t,(function(t,n){B(e,n,t)})):E(e,(function(e){b(n)||""===n?T(e,t):e.setAttribute(t,String(n))}))}function F(e,t,n){var i=document.createElement(e);return t&&(h(t)?C(i,t):B(i,t)),n&&I(n,i),i}function j(e,t,n){if(y(n))return getComputedStyle(e)[t];b(n)||(e.style[t]=""+n)}function q(e,t){j(e,"display",t)}function K(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function U(e,t){return e.getAttribute(t)}function W(e,t){return e&&e.classList.contains(t)}function G(e){return e.getBoundingClientRect()}function V(e){E(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function X(e){return L((new DOMParser).parseFromString(e,"text/html").body)}function H(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function Q(e,t){return e&&e.querySelector(t)}function Y(e,t){return t?c(e.querySelectorAll(t)):[]}function $(e,t){_(e,t,!1)}function J(e){return e.timeStamp}function Z(e){return h(e)?e:e?e+"px":""}var ee="splide",te="data-"+ee;function ne(e,t){if(!e)throw new Error("["+ee+"] "+(t||""))}var ie=Math.min,oe=Math.max,re=Math.floor,ae=Math.ceil,se=Math.abs;function ce(e,t,n){return se(e-t)<n}function le(e,t,n,i){var o=ie(t,n),r=oe(t,n);return i?o<e&&e<r:o<=e&&e<=r}function ue(e,t,n){var i=ie(t,n),o=oe(t,n);return ie(oe(i,e),o)}function de(e){return+(e>0)-+(e<0)}function fe(e,t){return E(t,(function(t){e=e.replace("%s",""+t)})),e}function me(e){return e<10?"0"+e:""+e}var pe={};function ge(){var e=[];function t(e,t,n){E(e,(function(e){e&&E(t,(function(t){t.split(" ").forEach((function(t){var i=t.split(".");n(e,i[0],i[1])}))}))}))}return{bind:function(n,i,o,r){t(n,i,(function(t,n,i){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,o,r):t.removeListener.bind(t,o);a?t.addEventListener(n,o,r):t.addListener(o),e.push([t,n,i,o,s])}))},unbind:function(n,i,o){t(n,i,(function(t,n,i){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==i||o&&e[3]!==o)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var i,o=!0;return"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:o,detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,o,!1,n),e.dispatchEvent(i),i},destroy:function(){e.forEach((function(e){e[4]()})),s(e)}}}var ve="mounted",he="ready",ye="move",be="moved",ke="click",we="active",Ee="inactive",xe="visible",Se="hidden",_e="refresh",Ce="updated",Ie="resize",ze="resized",Pe="drag",Ne="dragging",Le="dragged",Re="scroll",De="scrolled",Oe="destroy",Ae="arrows:mounted",Me="arrows:updated",Te="pagination:mounted",Be="pagination:updated",Fe="navigation:mounted",je="autoplay:play",qe="autoplay:playing",Ke="autoplay:pause",Ue="lazyload:loaded",We="ei";function Ge(e){var t=e?e.event.bus:document.createDocumentFragment(),n=ge();return e&&e.event.on(Oe,n.destroy),O(n,{bus:t,on:function(e,i){n.bind(t,w(e).join(" "),(function(e){i.apply(i,g(e.detail)?e.detail:[])}))},off:l(n.unbind,t),emit:function(e){n.dispatch(t,e,c(arguments,1))}})}function Ve(e,t,n,i){var o,r,a=Date.now,s=0,c=!0,l=0;function u(){if(!c){if(s=e?ie((a()-o)/e,1):1,n&&n(s),s>=1&&(t(),o=a(),i&&++l>=i))return d();r=f(u)}}function d(){c=!0}function m(){r&&cancelAnimationFrame(r),s=0,r=0,c=!0}return{start:function(t){t||m(),o=a()-(t?s*e:0),c=!1,r=f(u)},rewind:function(){o=a(),s=0,n&&n(s)},pause:d,cancel:m,set:function(t){e=t},isPaused:function(){return c}}}var Xe="Arrow",He=Xe+"Left",Qe=Xe+"Right",Ye=Xe+"Up",$e=Xe+"Down",Je="ttb",Ze={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ye,Qe],ArrowRight:[$e,He]},et="role",tt="tabindex",nt="aria-",it=nt+"controls",ot=nt+"current",rt=nt+"selected",at=nt+"label",st=nt+"labelledby",ct=nt+"hidden",lt=nt+"orientation",ut=nt+"roledescription",dt=nt+"live",ft=nt+"busy",mt=nt+"atomic",pt=[et,tt,"disabled",it,ot,at,st,ct,lt,ut],gt=ee+"__",vt="is-",ht=ee,yt=gt+"track",bt=gt+"list",kt=gt+"slide",wt=kt+"--clone",Et=kt+"__container",xt=gt+"arrows",St=gt+"arrow",_t=St+"--prev",Ct=St+"--next",It=gt+"pagination",zt=It+"__page",Pt=gt+"progress__bar",Nt=gt+"toggle",Lt=gt+"sr",Rt=vt+"initialized",Dt=vt+"active",Ot=vt+"prev",At=vt+"next",Mt=vt+"visible",Tt=vt+"loading",Bt=vt+"focus-in",Ft=vt+"overflow",jt=[Dt,Mt,Ot,At,Tt,Bt,Ft],qt={slide:kt,clone:wt,arrows:xt,arrow:St,prev:_t,next:Ct,pagination:It,page:zt,spinner:gt+"spinner"},Kt="touchstart mousedown",Ut="touchmove mousemove",Wt="touchend touchcancel mouseup click",Gt="slide",Vt="loop",Xt="fade";var Ht=te+"-interval",Qt={passive:!1,capture:!0},Yt={Spacebar:" ",Right:Qe,Left:He,Up:Ye,Down:$e};function $t(e){return e=h(e)?e:e.key,Yt[e]||e}var Jt="keydown",Zt=te+"-lazy",en=Zt+"-srcset",tn="["+Zt+"], ["+en+"]",nn=[" ","Enter"],on=Object.freeze({__proto__:null,Media:function(e,t,n){var i=e.state,o=n.breakpoints||{},r=n.reducedMotion||{},s=ge(),c=[];function l(e){e&&s.destroy()}function u(e,t){var n=matchMedia(t);s.bind(n,"change",d),c.push([e,n])}function d(){var t=i.is(7),o=n.direction,r=c.reduce((function(e,t){return A(e,t[1].matches?t[0]:{})}),{});M(n),f(r),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):o!==n.direction&&e.refresh()}function f(t,o,r){A(n,t),o&&A(Object.getPrototypeOf(n),t),!r&&i.is(1)||e.emit(Ce,n)}return{setup:function(){var e="min"===n.mediaQuery;R(o).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){u(o[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),u(r,a),d()},destroy:l,reduce:function(e){matchMedia(a).matches&&(e?A(n,r):M(n,R(r)))},set:f}},Direction:function(e,t,n){return{resolve:function(e,t,i){var o="rtl"!==(i=i||n.direction)||t?i===Je?0:-1:1;return Ze[e]&&Ze[e][o]||e.replace(/width|left|right/i,(function(e,t){var n=Ze[e.toLowerCase()][o]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var i,o,r,a=Ge(e),c=a.on,l=a.bind,u=e.root,d=n.i18n,f={},m=[],p=[],g=[];function h(){var e,t,r;i=k("."+yt),o=L(i,"."+bt),ne(i&&o,"A track/list element is missing."),S(m,N(o,"."+kt+":not(."+wt+")")),D({arrows:xt,pagination:It,prev:_t,next:Ct,bar:Pt,toggle:Nt},(function(e,t){f[t]=k("."+e)})),O(f,{root:u,track:i,list:o,slides:m}),t=u.id||""+(e=ee)+me(pe[e]=(pe[e]||0)+1),r=n.role,u.id=t,i.id=i.id||t+"-track",o.id=o.id||t+"-list",!U(u,et)&&"SECTION"!==u.tagName&&r&&B(u,et,r),B(u,ut,d.carousel),B(o,et,"presentation"),b()}function y(e){var t=pt.concat("style");s(m),$(u,p),$(i,g),T([i,o],t),T(u,e?t:["style",ut])}function b(){$(u,p),$(i,g),p=w(ht),g=w(yt),C(u,p),C(i,g),B(u,at,n.label),B(u,st,n.labelledby)}function k(e){var t=Q(u,e);return t&&function(e,t){if(v(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!P(n,t);)n=n.parentElement;return n}(t,"."+ht)===u?t:void 0}function w(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===ht&&Dt]}return O(f,{setup:h,mount:function(){c(_e,y),c(_e,h),c(Ce,b),l(document,Kt+" keydown",(function(e){r="keydown"===e.type}),{capture:!0}),l(u,"focusin",(function(){_(u,Bt,!!r)}))},destroy:y})},Slides:function(e,t,n){var i=Ge(e),o=i.on,r=i.emit,a=i.bind,c=t.Elements,u=c.slides,d=c.list,f=[];function m(){u.forEach((function(e,t){g(e,t,-1)}))}function p(){b((function(e){e.destroy()})),s(f)}function g(t,n,i){var o=function(e,t,n,i){var o,r=Ge(e),a=r.on,s=r.emit,c=r.bind,u=e.Components,d=e.root,f=e.options,m=f.isNavigation,p=f.updateOnMove,g=f.i18n,v=f.pagination,h=f.slideFocus,y=u.Direction.resolve,b=U(i,"style"),k=U(i,at),w=n>-1,E=L(i,"."+Et);function x(){var o=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");B(i,at,fe(g.slideX,(w?n:t)+1)),B(i,it,o),B(i,et,h?"button":""),h&&T(i,ut)}function S(){o||C()}function C(){if(!o){var n=e.index;(r=I())!==W(i,Dt)&&(_(i,Dt,r),B(i,ot,m&&r||""),s(r?we:Ee,z)),function(){var t=function(){if(e.is(Xt))return I();var t=G(u.Elements.track),n=G(i),o=y("left",!0),r=y("right",!0);return re(t[o])<=ae(n[o])&&re(n[r])<=ae(t[r])}(),n=!t&&(!I()||w);if(e.state.is([4,5])||B(i,ct,n||""),B(Y(i,f.focusableNodes||""),tt,n?-1:""),h&&B(i,tt,n?-1:0),t!==W(i,Mt)&&(_(i,Mt,t),s(t?xe:Se,z)),!t&&document.activeElement===i){var o=u.Slides.getAt(e.index);o&&K(o.slide)}}(),_(i,Ot,t===n-1),_(i,At,t===n+1)}var r}function I(){var i=e.index;return i===t||f.cloneStatus&&i===n}var z={index:t,slideIndex:n,slide:i,container:E,isClone:w,mount:function(){w||(i.id=d.id+"-slide"+me(t+1),B(i,et,v?"tabpanel":"group"),B(i,ut,g.slide),B(i,at,k||fe(g.slideLabel,[t+1,e.length]))),c(i,"click",l(s,ke,z)),c(i,"keydown",l(s,"sk",z)),a([be,"sh",De],C),a(Fe,x),p&&a(ye,S)},destroy:function(){o=!0,r.destroy(),$(i,jt),T(i,pt),B(i,"style",b),B(i,at,k||"")},update:C,style:function(e,t,n){j(n&&E||i,e,t)},isWithin:function(n,i){var o=se(n-t);return w||!f.rewind&&!e.is(Vt)||(o=ie(o,e.length-o)),o<=i}};return z}(e,n,i,t);o.mount(),f.push(o),f.sort((function(e,t){return e.index-t.index}))}function y(e){return e?S((function(e){return!e.isClone})):f}function b(e,t){y(t).forEach(e)}function S(e){return f.filter(v(e)?e:function(t){return h(e)?P(t.slide,e):x(w(e),t.index)})}return{mount:function(){m(),o(_e,p),o(_e,m)},destroy:p,update:function(){b((function(e){e.update()}))},register:g,get:y,getIn:function(e){var i=t.Controller,o=i.toIndex(e),r=i.hasFocus()?1:n.perPage;return S((function(e){return le(e.index,o,o+r-1)}))},getAt:function(e){return S(e)[0]},add:function(e,t){E(e,(function(e){if(h(e)&&(e=X(e)),k(e)){var i=u[t];i?z(e,i):I(d,e),C(e,n.classes.slide),o=e,s=l(r,Ie),c=Y(o,"img"),(f=c.length)?c.forEach((function(e){a(e,"load error",(function(){--f||s()}))})):s()}var o,s,c,f})),r(_e)},remove:function(e){V(S(e).map((function(e){return e.slide}))),r(_e)},forEach:b,filter:S,style:function(e,t,n){b((function(i){i.style(e,t,n)}))},getLength:function(e){return e?u.length:f.length},isEnough:function(){return f.length>n.perPage}}},Layout:function(e,t,n){var i,o,r,a=Ge(e),s=a.on,c=a.bind,u=a.emit,d=t.Slides,f=t.Direction.resolve,m=t.Elements,g=m.root,v=m.track,h=m.list,y=d.getAt,b=d.style;function k(){i=n.direction===Je,j(g,"maxWidth",Z(n.width)),j(v,f("paddingLeft"),E(!1)),j(v,f("paddingRight"),E(!0)),w(!0)}function w(e){var t,a=G(g);(e||o.width!==a.width||o.height!==a.height)&&(j(v,"height",(t="",i&&(ne(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+E(!1)+" - "+E(!0)+")"),t)),b(f("marginRight"),Z(n.gap)),b("width",n.autoWidth?null:Z(n.fixedWidth)||(i?"":S())),b("height",Z(n.fixedHeight)||(i?n.autoHeight?null:S():x()),!0),o=a,u(ze),r!==(r=L())&&(_(g,Ft,r),u("overflow",r)))}function E(e){var t=n.padding,i=f(e?"right":"left");return t&&Z(t[i]||(p(t)?0:t))||"0px"}function x(){return Z(n.height||G(h).width*n.heightRatio)}function S(){var e=Z(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function C(){return G(h)[f("width")]}function I(e,t){var n=y(e||0);return n?G(n.slide)[f("width")]+(t?0:N()):0}function z(e,t){var n=y(e);if(n){var i=G(n.slide)[f("right")],o=G(h)[f("left")];return se(i-o)+(t?0:N())}return 0}function P(t){return z(e.length-1)-z(0)+I(0,t)}function N(){var e=y(0);return e&&parseFloat(j(e.slide,f("marginRight")))||0}function L(){return e.is(Xt)||P(!0)>C()}return{mount:function(){var e,t;k(),c(window,"resize load",(e=l(u,Ie),t=Ve(0,e,null,1),function(){t.isPaused()&&t.start()})),s([Ce,_e],k),s(Ie,w)},resize:w,listSize:C,slideSize:I,sliderSize:P,totalSize:z,getPadding:function(e){return parseFloat(j(v,f("padding"+(e?"Right":"Left"))))||0},isOverflow:L}},Clones:function(e,t,n){var i,o=Ge(e),r=o.on,a=t.Elements,c=t.Slides,l=t.Direction.resolve,u=[];function d(){r(_e,f),r([Ce,Ie],p),(i=g())&&(function(t){var i=c.get().slice(),o=i.length;if(o){for(;i.length<t;)S(i,i);S(i.slice(-t),i.slice(0,t)).forEach((function(r,s){var l=s<t,d=function(t,i){var o=t.cloneNode(!0);return C(o,n.classes.clone),o.id=e.root.id+"-clone"+me(i+1),o}(r.slide,s);l?z(d,i[0].slide):I(a.list,d),S(u,d),c.register(d,s-t+(l?0:o),r.index)}))}}(i),t.Layout.resize(!0))}function f(){m(),d()}function m(){V(u),s(u),o.destroy()}function p(){var e=g();i!==e&&(i<e||!e)&&o.emit(_e)}function g(){var i=n.clones;if(e.is(Vt)){if(y(i)){var o=n[l("fixedWidth")]&&t.Layout.slideSize(0);i=o&&ae(G(a.track)[l("width")]/o)||n[l("autoWidth")]&&e.length||2*n.perPage}}else i=0;return i}return{mount:d,destroy:m}},Move:function(e,t,n){var i,o=Ge(e),r=o.on,a=o.emit,s=e.state.set,c=t.Layout,l=c.slideSize,u=c.getPadding,d=c.totalSize,f=c.listSize,m=c.sliderSize,p=t.Direction,g=p.resolve,v=p.orient,h=t.Elements,b=h.list,k=h.track;function w(){t.Controller.isBusy()||(t.Scroll.cancel(),E(e.index),t.Slides.update())}function E(e){x(I(e,!0))}function x(n,i){if(!e.is(Xt)){var o=i?n:function(n){if(e.is(Vt)){var i=C(n),o=i>t.Controller.getEnd();(i<0||o)&&(n=S(n,o))}return n}(n);j(b,"transform","translate"+g("X")+"("+o+"px)"),n!==o&&a("sh")}}function S(e,t){var n=e-P(t),i=m();return e-v(i*(ae(se(n)/i)||1))*(t?1:-1)}function _(){x(z(),!0),i.cancel()}function C(e){for(var n=t.Slides.get(),i=0,o=1/0,r=0;r<n.length;r++){var a=n[r].index,s=se(I(a,!0)-e);if(!(s<=o))break;o=s,i=a}return i}function I(t,i){var o=v(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-l(e,!0))/2:+t*l(e)||0}(t));return i?function(t){return n.trimSpace&&e.is(Gt)&&(t=ue(t,0,v(m(!0)-f()))),t}(o):o}function z(){var e=g("left");return G(b)[e]-G(k)[e]+v(u(!1))}function P(e){return I(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){i=t.Transition,r([ve,ze,Ce,_e],w)},move:function(e,t,n,o){var r,c;e!==t&&(r=e>n,c=v(S(z(),r)),r?c>=0:c<=b[g("scrollWidth")]-G(k)[g("width")])&&(_(),x(S(z(),e>n),!0)),s(4),a(ye,t,n,e),i.start(t,(function(){s(3),a(be,t,n,e),o&&o()}))},jump:E,translate:x,shift:S,cancel:_,toIndex:C,toPosition:I,getPosition:z,getLimit:P,exceededLimit:function(e,t){t=y(t)?z():t;var n=!0!==e&&v(t)<v(P(!1)),i=!1!==e&&v(t)>v(P(!0));return n||i},reposition:w}},Controller:function(e,t,n){var i,o,r,a,s=Ge(e),c=s.on,u=s.emit,d=t.Move,f=d.getPosition,m=d.getLimit,p=d.toPosition,g=t.Slides,v=g.isEnough,b=g.getLength,k=n.omitEnd,w=e.is(Vt),E=e.is(Gt),x=l(P,!1),S=l(P,!0),_=n.start||0,C=_;function I(){o=b(!0),r=n.perMove,a=n.perPage,i=R();var e=ue(_,0,k?i:o-1);e!==_&&(_=e,d.reposition())}function z(){i!==R()&&u(We)}function P(e,t){var n=r||(M()?1:a),o=N(_+n*(e?-1:1),_,!(r||M()));return-1===o&&E&&!ce(f(),m(!e),1)?e?0:i:t?o:L(o)}function N(t,s,c){if(v()||M()){var l=function(t){if(E&&"move"===n.trimSpace&&t!==_)for(var i=f();i===p(t,!0)&&le(t,0,e.length-1,!n.rewind);)t<_?--t:++t;return t}(t);l!==t&&(s=t,t=l,c=!1),t<0||t>i?t=r||!le(0,t,s,!0)&&!le(i,s,t,!0)?w?c?t<0?-(o%a||a):o:t:n.rewind?t<0?i:0:-1:D(O(t)):c&&t!==s&&(t=D(O(s)+(t<s?-1:1)))}else t=-1;return t}function L(e){return w?(e+o)%o||0:e}function R(){for(var e=o-(M()||w&&r?1:a);k&&e-- >0;)if(p(o-1,!0)!==p(e,!0)){e++;break}return ue(e,0,o-1)}function D(e){return ue(M()?e:a*e,0,i)}function O(e){return M()?ie(e,i):re((e>=i?o-1:e)/a)}function A(e){e!==_&&(C=_,_=e)}function M(){return!y(n.focus)||n.isNavigation}function T(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){I(),c([Ce,_e,We],I),c(ze,z)},go:function(e,t,n){if(!T()){var o=function(e){var t=_;if(h(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],o=n[1],r=n[2];"+"===o||"-"===o?t=N(_+ +(""+o+(+r||1)),_):">"===o?t=r?D(+r):x(!0):"<"===o&&(t=S(!0))}else t=w?e:ue(e,0,i);return t}(e),r=L(o);r>-1&&(t||r!==_)&&(A(r),d.move(o,r,C,n))}},scroll:function(e,n,o,r){t.Scroll.scroll(e,n,o,(function(){var e=L(d.toIndex(f()));A(k?ie(e,i):e),r&&r()}))},getNext:x,getPrev:S,getAdjacent:P,getEnd:R,setIndex:A,getIndex:function(e){return e?C:_},toIndex:D,toPage:O,toDest:function(e){var t=d.toIndex(e);return E?ue(t,0,i):t},hasFocus:M,isBusy:T}},Arrows:function(e,t,n){var i,o,r=Ge(e),a=r.on,s=r.bind,c=r.emit,u=n.classes,d=n.i18n,f=t.Elements,m=t.Controller,p=f.arrows,g=f.track,v=p,h=f.prev,y=f.next,b={};function k(){var e;!(e=n.arrows)||h&&y||(v=p||F("div",u.arrows),h=S(!0),y=S(!1),i=!0,I(v,[h,y]),!p&&z(v,g)),h&&y&&(O(b,{prev:h,next:y}),q(v,e?"":"none"),C(v,o=xt+"--"+n.direction),e&&(a([ve,be,_e,De,We],_),s(y,"click",l(x,">")),s(h,"click",l(x,"<")),_(),B([h,y],it,g.id),c(Ae,h,y))),a(Ce,w)}function w(){E(),k()}function E(){r.destroy(),$(v,o),i?(V(p?[h,y]:v),h=y=null):T([h,y],pt)}function x(e){m.go(e,!0)}function S(e){return X('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function _(){if(h&&y){var t=e.index,n=m.getPrev(),i=m.getNext(),o=n>-1&&t<n?d.last:d.prev,r=i>-1&&t>i?d.first:d.next;h.disabled=n<0,y.disabled=i<0,B(h,at,o),B(y,at,r),c(Me,h,y,n,i)}}return{arrows:b,mount:k,destroy:E,update:_}},Autoplay:function(e,t,n){var i,o,r=Ge(e),a=r.on,s=r.bind,c=r.emit,l=Ve(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&j(t,"width",100*e+"%"),c(qe,e)})),u=l.isPaused,d=t.Elements,f=t.Elements,m=f.root,p=f.toggle,g=n.autoplay,v="pause"===g;function h(){u()&&t.Slides.isEnough()&&(l.start(!n.resetProgress),o=i=v=!1,k(),c(je))}function y(e){void 0===e&&(e=!0),v=!!e,k(),u()||(l.pause(),c(Ke))}function b(){v||(i||o?y(!1):h())}function k(){p&&(_(p,Dt,!v),B(p,at,n.i18n[v?"play":"pause"]))}function w(e){var i=t.Slides.getAt(e);l.set(i&&+U(i.slide,Ht)||n.interval)}return{mount:function(){g&&(n.pauseOnHover&&s(m,"mouseenter mouseleave",(function(e){i="mouseenter"===e.type,b()})),n.pauseOnFocus&&s(m,"focusin focusout",(function(e){o="focusin"===e.type,b()})),p&&s(p,"click",(function(){v?h():y(!0)})),a([ye,Re,_e],l.rewind),a(ye,w),p&&B(p,it,d.track.id),v||h(),k())},destroy:l.cancel,play:h,pause:y,isPaused:u}},Cover:function(e,t,n){var i=Ge(e).on;function o(e){t.Slides.forEach((function(t){var n=L(t.container||t.slide,"img");n&&n.src&&r(e,n,t)}))}function r(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),q(t,e?"none":"")}return{mount:function(){n.cover&&(i(Ue,l(r,!0)),i([ve,Ce,_e],l(o,!0)))},destroy:l(o,!1)}},Scroll:function(e,t,n){var i,o,r=Ge(e),a=r.on,s=r.emit,c=e.state.set,u=t.Move,d=u.getPosition,f=u.getLimit,m=u.exceededLimit,p=u.translate,g=e.is(Gt),v=1;function h(e,n,r,a,f){var p=d();if(k(),r&&(!g||!m())){var h=t.Layout.sliderSize(),w=de(e)*h*re(se(e)/h)||0;e=u.toPosition(t.Controller.toDest(e%h))+w}var E=ce(p,e,1);v=1,n=E?0:n||oe(se(e-p)/1.5,800),o=a,i=Ve(n,y,l(b,p,e,f),1),c(5),s(Re),i.start()}function y(){c(3),o&&o(),s(De)}function b(e,t,i,r){var a,s,c=d(),l=(e+(t-e)*(a=r,(s=n.easingFunc)?s(a):1-Math.pow(1-a,4))-c)*v;p(c+l),g&&!i&&m()&&(v*=.6,se(l)<10&&h(f(m(!0)),600,!1,o,!0))}function k(){i&&i.cancel()}function w(){i&&!i.isPaused()&&(k(),y())}return{mount:function(){a(ye,k),a([Ce,_e],w)},destroy:k,scroll:h,cancel:w}},Drag:function(e,t,n){var i,o,r,a,s,c,l,u,f=Ge(e),m=f.on,g=f.emit,v=f.bind,h=f.unbind,y=e.state,b=t.Move,k=t.Scroll,w=t.Controller,E=t.Elements.track,x=t.Media.reduce,S=t.Direction,_=S.resolve,C=S.orient,I=b.getPosition,z=b.exceededLimit,N=!1;function L(){var e=n.drag;K(!e),a="free"===e}function R(e){if(c=!1,!l){var t=q(e);i=e.target,o=n.noDrag,P(i,"."+zt+", ."+St)||o&&P(i,o)||!t&&e.button||(w.isBusy()?H(e,!0):(u=t?E:window,s=y.is([4,5]),r=null,v(u,Ut,D,Qt),v(u,Wt,O,Qt),b.cancel(),k.cancel(),M(e)))}var i,o}function D(t){if(y.is(6)||(y.set(6),g(Pe)),t.cancelable)if(s){b.translate(i+T(t)/(N&&e.is(Gt)?5:1));var o=B(t)>200,r=N!==(N=z());(o||r)&&M(t),c=!0,g(Ne),H(t)}else(function(e){return se(T(e))>se(T(e,!0))})(t)&&(s=function(e){var t=n.dragMinThreshold,i=p(t),o=i&&t.mouse||0,r=(i?t.touch:+t)||10;return se(T(e))>(q(e)?r:o)}(t),H(t))}function O(i){y.is(6)&&(y.set(3),g(Le)),s&&(function(i){var o=function(t){if(e.is(Vt)||!N){var n=B(t);if(n&&n<200)return T(t)/n}return 0}(i),r=function(e){return I()+de(e)*ie(se(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(o),s=n.rewind&&n.rewindByDrag;x(!1),a?w.scroll(r,0,n.snap):e.is(Xt)?w.go(C(de(o))<0?s?"<":"-":s?">":"+"):e.is(Gt)&&N&&s?w.go(z(!0)?">":"<"):w.go(w.toDest(r),!0),x(!0)}(i),H(i)),h(u,Ut,D),h(u,Wt,O),s=!1}function A(e){!l&&c&&H(e,!0)}function M(e){r=o,o=e,i=I()}function T(e,t){return j(e,t)-j(F(e),t)}function B(e){return J(e)-J(F(e))}function F(e){return o===e&&r||o}function j(e,t){return(q(e)?e.changedTouches[0]:e)["page"+_(t?"Y":"X")]}function q(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function K(e){l=e}return{mount:function(){v(E,Ut,d,Qt),v(E,Wt,d,Qt),v(E,Kt,R,Qt),v(E,"click",A,{capture:!0}),v(E,"dragstart",H),m([ve,Ce],L)},disable:K,isDragging:function(){return s}}},Keyboard:function(e,t,n){var i,o,r=Ge(e),a=r.on,s=r.bind,c=r.unbind,l=e.root,d=t.Direction.resolve;function f(){var e=n.keyboard;e&&(i="global"===e?window:l,s(i,Jt,g))}function m(){c(i,Jt)}function p(){var e=o;o=!0,u((function(){o=e}))}function g(t){if(!o){var n=$t(t);n===d(He)?e.go("<"):n===d(Qe)&&e.go(">")}}return{mount:function(){f(),a(Ce,m),a(Ce,f),a(ye,p)},destroy:m,disable:function(e){o=e}}},LazyLoad:function(e,t,n){var i=Ge(e),o=i.on,r=i.off,a=i.bind,c=i.emit,u="sequential"===n.lazyLoad,d=[be,De],f=[];function m(){s(f),t.Slides.forEach((function(e){Y(e.slide,tn).forEach((function(t){var i=U(t,Zt),o=U(t,en);if(i!==t.src||o!==t.srcset){var r=n.classes.spinner,a=t.parentElement,s=L(a,"."+r)||F("span",r,a);f.push([t,e,s]),t.src||q(t,"none")}}))})),u?h():(r(d),o(d,p),p())}function p(){(f=f.filter((function(t){var i=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,i)||g(t)}))).length||r(d)}function g(e){var t=e[0];C(e[1].slide,Tt),a(t,"load error",l(v,e)),B(t,"src",U(t,Zt)),B(t,"srcset",U(t,en)),T(t,Zt),T(t,en)}function v(e,t){var n=e[0],i=e[1];$(i.slide,Tt),"error"!==t.type&&(V(e[2]),q(n,""),c(Ue,n,i),c(Ie)),u&&h()}function h(){f.length&&g(f.shift())}return{mount:function(){n.lazyLoad&&(m(),o(_e,m))},destroy:l(s,f),check:p}},Pagination:function(e,t,n){var i,o,r=Ge(e),a=r.on,u=r.emit,d=r.bind,f=t.Slides,m=t.Elements,p=t.Controller,g=p.hasFocus,v=p.getIndex,h=p.go,y=t.Direction.resolve,b=m.pagination,k=[];function w(){i&&(V(b?c(i.children):i),$(i,o),s(k),i=null),r.destroy()}function E(e){h(">"+e,!0)}function x(e,t){var n=k.length,i=$t(t),o=S(),r=-1;i===y(Qe,!1,o)?r=++e%n:i===y(He,!1,o)?r=(--e+n)%n:"Home"===i?r=0:"End"===i&&(r=n-1);var a=k[r];a&&(K(a.button),h(">"+r),H(t,!0))}function S(){return n.paginationDirection||n.direction}function _(e){return k[p.toPage(e)]}function I(){var e=_(v(!0)),t=_(v());if(e){var n=e.button;$(n,Dt),T(n,rt),B(n,tt,-1)}if(t){var o=t.button;C(o,Dt),B(o,rt,!0),B(o,tt,"")}u(Be,{list:i,items:k},e,t)}return{items:k,mount:function t(){w(),a([Ce,_e,We],t);var r=n.pagination;b&&q(b,r?"":"none"),r&&(a([ye,Re,De],I),function(){var t=e.length,r=n.classes,a=n.i18n,s=n.perPage,c=g()?p.getEnd()+1:ae(t/s);C(i=b||F("ul",r.pagination,m.track.parentElement),o=It+"--"+S()),B(i,et,"tablist"),B(i,at,a.select),B(i,lt,S()===Je?"vertical":"");for(var u=0;u<c;u++){var v=F("li",null,i),h=F("button",{class:r.page,type:"button"},v),y=f.getIn(u).map((function(e){return e.slide.id})),w=!g()&&s>1?a.pageX:a.slideX;d(h,"click",l(E,u)),n.paginationKeyboard&&d(h,"keydown",l(x,u)),B(v,et,"presentation"),B(h,et,"tab"),B(h,it,y.join(" ")),B(h,at,fe(w,u+1)),B(h,tt,-1),k.push({li:v,button:h,page:u})}}(),I(),u(Te,{list:i,items:k},_(e.index)))},destroy:w,getAt:_,update:I}},Sync:function(e,t,n){var i=n.isNavigation,o=n.slideFocus,r=[];function a(){var t,n;e.splides.forEach((function(t){t.isParent||(u(e,t.splide),u(t.splide,e))})),i&&((n=(t=Ge(e)).on)(ke,f),n("sk",m),n([ve,Ce],d),r.push(t),t.emit(Fe,e.splides))}function c(){r.forEach((function(e){e.destroy()})),s(r)}function u(e,t){var n=Ge(e);n.on(ye,(function(e,n,i){t.go(t.is(Vt)?i:e)})),r.push(n)}function d(){B(t.Elements.list,lt,n.direction===Je?"vertical":"")}function f(t){e.go(t.index)}function m(e,t){x(nn,$t(t))&&(f(e),H(t))}return{setup:l(t.Media.set,{slideFocus:y(o)?i:o},!0),mount:a,destroy:c,remount:function(){c(),a()}}},Wheel:function(e,t,n){var i=Ge(e).bind,o=0;function r(i){if(i.cancelable){var r=i.deltaY,a=r<0,s=J(i),c=n.wheelMinThreshold||0,l=n.wheelSleep||0;se(r)>c&&s-o>l&&(e.go(a?"<":">"),o=s),function(i){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(i)}(a)&&H(i)}}return{mount:function(){n.wheel&&i(t.Elements.track,"wheel",r,Qt)}}},Live:function(e,t,n){var i=Ge(e).on,o=t.Elements.track,r=n.live&&!n.isNavigation,a=F("span",Lt),s=Ve(90,l(c,!1));function c(e){B(o,ft,e),e?(I(o,a),s.start()):(V(a),s.cancel())}function u(e){r&&B(o,dt,e?"off":"polite")}return{mount:function(){r&&(u(!t.Autoplay.isPaused()),B(o,mt,!0),a.textContent="…",i(je,l(u,!0)),i(Ke,l(u,!1)),i([be,De],l(c,!0)))},disable:u,destroy:function(){T(o,[dt,mt,ft]),V(a)}}}}),rn={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:qt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function an(e,t,n){var i=t.Slides;function o(){i.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){Ge(e).on([ve,_e],o)},start:function(e,t){i.style("transition","opacity "+n.speed+"ms "+n.easing),u(t)},cancel:d}}function sn(e,t,n){var i,o=t.Move,r=t.Controller,a=t.Scroll,s=t.Elements.list,c=l(j,s,"transition");function u(){c(""),a.cancel()}return{mount:function(){Ge(e).bind(s,"transitionend",(function(e){e.target===s&&i&&(u(),i())}))},start:function(t,s){var l=o.toPosition(t,!0),u=o.getPosition(),d=function(t){var i=n.rewindSpeed;if(e.is(Gt)&&i){var o=r.getIndex(!0),a=r.getEnd();if(0===o&&t>=a||o>=a&&0===t)return i}return n.speed}(t);se(l-u)>=1&&d>=1?n.useScroll?a.scroll(l,d,!1,s):(c("transform "+d+"ms "+n.easing),o.translate(l,!0),i=s):(o.jump(t),s())},cancel:u}}var cn=function(){function e(t,n){var i;this.event=Ge(),this.Components={},this.state=(i=1,{set:function(e){i=e},is:function(e){return x(w(e),i)}}),this.splides=[],this._o={},this._E={};var o=h(t)?Q(document,t):t;ne(o,o+" is invalid."),this.root=o,n=A({label:U(o,at)||"",labelledby:U(o,st)||""},rn,e.defaults,n||{});try{A(n,JSON.parse(U(o,te)))}catch(e){ne(!1,"Invalid JSON")}this._o=Object.create(A({},n))}var t,n,i=e.prototype;return i.mount=function(e,t){var n=this,i=this.state,o=this.Components;return ne(i.is([1,7]),"Already mounted!"),i.set(1),this._C=o,this._T=t||this._T||(this.is(Xt)?an:sn),this._E=e||this._E,D(O({},on,this._E,{Transition:this._T}),(function(e,t){var i=e(n,o,n._o);o[t]=i,i.setup&&i.setup()})),D(o,(function(e){e.mount&&e.mount()})),this.emit(ve),C(this.root,Rt),i.set(3),this.emit(he),this},i.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},i.go=function(e){return this._C.Controller.go(e),this},i.on=function(e,t){return this.event.on(e,t),this},i.off=function(e){return this.event.off(e),this},i.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(c(arguments,1))),this},i.add=function(e,t){return this._C.Slides.add(e,t),this},i.remove=function(e){return this._C.Slides.remove(e),this},i.is=function(e){return this._o.type===e},i.refresh=function(){return this.emit(_e),this},i.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?Ge(this).on(he,this.destroy.bind(this,e)):(D(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Oe),t.destroy(),e&&s(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&r(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();cn.defaults={},cn.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function ln(...e){return e.filter(Boolean).join(" ")}var un=(o().Component,({children:e,className:t,...n})=>o().createElement("li",{className:ln("splide__slide",t),...n},e))},2485:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)i.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},1609:e=>{"use strict";e.exports=window.React},8468:e=>{"use strict";e.exports=window.lodash},9621:e=>{"use strict";e.exports=window.kadence.components},4510:e=>{"use strict";e.exports=window.kadence.helpers},9091:e=>{"use strict";e.exports=window.kadence.icons},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{metadata:()=>o,name:()=>b});var e=n(4997),t=n(1609);const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"Testimonial","name":"kadence/testimonial","parent":["kadence/testimonials"],"category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"url":{"type":"string","default":"","__experimentalRole":"content"},"id":{"type":"number","default":"","__experimentalRole":"content"},"alt":{"type":"string","default":""},"width":{"type":"number","default":""},"height":{"type":"number","default":""},"maxWidth":{"type":"number","default":""},"subtype":{"type":"string","default":""},"media":{"type":"string","default":"image"},"icon":{"type":"string","default":"fas_quote-left"},"isize":{"type":"number","default":50},"tabletIsize":{"type":"number","default":""},"mobileIsize":{"type":"number","default":""},"istroke":{"type":"number","default":2},"ititle":{"type":"string","default":""},"color":{"type":"string","default":""},"title":{"type":"string","default":"","__experimentalRole":"content"},"content":{"type":"string","default":"","__experimentalRole":"content"},"name":{"type":"string","default":"","__experimentalRole":"content"},"occupation":{"type":"string","default":"","__experimentalRole":"content"},"rating":{"type":"number","default":5},"sizes":{"type":"object","default":{}},"inQueryBlock":{"type":"boolean","default":false},"useBlockQuoteTags":{"type":"boolean","default":true},"anchor":{"type":"string","default":""}},"usesContext":["postId","queryId","kadence/testimonials-layout","kadence/testimonials-displayOccupation","kadence/testimonials-displayContent","kadence/testimonials-displayTitle","kadence/testimonials-displayRating","kadence/testimonials-displayName","kadence/testimonials-displayIcon","kadence/testimonials-iconStyles","kadence/testimonials-style","kadence/testimonials-containerMaxWidth","kadence/testimonials-displayMedia","kadence/testimonials-titleFont","kadence/testimonials-ratingStyles","kadence/testimonials-mediaStyles","kadence/testimonials-containerVAlign"],"supports":{"anchor":true,"html":false,"kbMetadata":true,"kbContentLabel":"title"}}');var r=n(4510),a=n(4570);function s(e){const{attributes:n,setAttributes:i,clientId:o,parentBlock:s,parentBlockClientId:c,context:l,previewDevice:u}=e,d=l["kadence/testimonials-layout"],f=l["kadence/testimonials-columns"],m=l["kadence/testimonials-gap"],p=l["kadence/testimonials-gap-unit"];if(d&&"carousel"!==d)return e.children;const g=(0,r.getPreviewSize)(u,void 0!==f?.[0]?f[0]:3,void 0!==f?.[3]?f[3]:"",void 0!==f?.[5]?f[5]:""),v=(0,r.getPreviewSize)(u,void 0!==m?.[0]?m[0]:"",void 0!==m?.[1]?m[1]:"",void 0!==m?.[2]?m[2]:""),h=(0,r.getGapSizeOptionOutput)(v,p||"px");return(0,t.createElement)(a.Nn,{style:{marginRight:h,width:"calc(((100% + "+h+") / "+g+") - "+h+")"}},e.children)}var c=n(9091),l=n(8468),u=n(9621),d=n(7723),f=n(6087),m=n(4715),p=n(7143),g=n(6427),v=n(5573);const h=(0,f.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(v.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),y=(0,f.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,f.createElement)(v.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));n(2485);const{name:b}=o;(0,e.registerBlockType)("kadence/testimonial",{...o,title:(0,d._x)("Testimonial","block title","kadence-blocks"),keywords:[(0,d.__)("testimonial","kadence-blocks"),(0,d.__)("rating","kadence-blocks"),"KB"],icon:{src:c.testimonialSingleBlockIcon},edit:function(e){const{attributes:n,setAttributes:i,className:a,clientId:c,isSelected:v,context:b}=e,{uniqueID:k,url:w,id:E,media:x,icon:S,isize:_,istroke:C,ititle:I,color:z,title:P,content:N,name:L,occupation:R,rating:D,sizes:O,tabletIsize:A,mobileIsize:M,inQueryBlock:T}=n,B=b["kadence/testimonials-displayContent"],F=b["kadence/testimonials-displayTitle"],j=b["kadence/testimonials-displayRating"],q=b["kadence/testimonials-displayName"],K=b["kadence/testimonials-displayIcon"],U=b["kadence/testimonials-iconStyles"],W=b["kadence/testimonials-style"],G=b["kadence/testimonials-titleFont"],V=b["kadence/testimonials-displayOccupation"],X=b["kadence/testimonials-displayMedia"],H=b["kadence/testimonials-containerMaxWidth"],Q=b["kadence/testimonials-mediaStyles"],Y=b["kadence/testimonials-ratingStyles"],[$,J]=(0,f.useState)("general"),{addUniqueID:Z}=(0,p.useDispatch)("kadenceblocks/data"),{isUniqueID:ee,isUniqueBlock:te,previewDevice:ne,parentData:ie}=(0,p.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,n)=>e("kadenceblocks/data").isUniqueBlock(t,n),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(c)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(c,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[c]);(0,f.useEffect)((()=>{(0,r.setBlockDefaults)(o.name,n);const t=(0,r.getPostOrFseId)(e,ie),a=(0,r.getUniqueId)(k,c,ee,te,t);a!==k?(n.uniqueID=a,i({uniqueID:a}),Z(a,c)):Z(k,c),b&&b.queryId&&b.postId?b.queryId!==T&&i({inQueryBlock:b.queryId}):T&&i({inQueryBlock:!1})}),[]);const oe=(0,r.getPreviewSize)(ne,void 0!==_?_:"",void 0!==A?A:"",void 0!==M?M:""),re=["url","title","content"],ae=(0,m.useBlockProps)({}),se=["image"],ce=()=>(0,t.createElement)("div",{className:"kt-svg-testimonial-global-icon-wrap"},(0,t.createElement)(u.IconRender,{className:`kt-svg-testimonial-global-icon kt-svg-testimonial-global-icon-${U[0].icon}`,name:U[0].icon,size:U[0].size,title:U[0].title?U[0].title:"",strokeWidth:"fe"===U[0].icon.substring(0,2)?U[0].stroke:void 0,style:{color:U[0].color?(0,r.KadenceColorOutput)(U[0].color):void 0,background:U[0].background?(0,r.KadenceColorOutput)(U[0].background,void 0!==U[0].backgroundOpacity?U[0].backgroundOpacity:1):void 0}})),le=()=>{let e=w;return(0,l.has)(O,"thumbnail")&&("card"===W&&H>500||Q[0].width>600?e=w:"card"===W&&H<=500&&H>100?O.large&&O.large.width>1e3&&(e=O.large.url):"card"===W&&H<=100?O.medium&&O.medium.width>200?e=O.medium.url:O.large&&O.large.width>200&&(e=O.large.url):Q[0].width<=600&&Q[0].width>100?O.large&&O.large.width>1e3&&(e=O.large.url):Q[0].width<=100&&Q[0].width>75?O.medium&&O.medium.width>200?e=O.medium.url:O.large&&O.large.width>200&&(e=O.large.url):Q[0].width<=75&&(O.thumbnail&&O.thumbnail.width>140?e=O.thumbnail.url:O.medium&&O.medium.width>140?e=O.medium.url:O.large&&O.large.width>200&&(e=O.large.url))),(0,t.createElement)("div",{className:"kt-testimonial-media-wrap"},(0,t.createElement)("div",{className:"kt-testimonial-media-inner-wrap"},(0,t.createElement)("div",{className:"kadence-testimonial-image-intrisic"},"icon"===x&&S&&(0,t.createElement)(u.IconRender,{className:`kt-svg-testimonial-icon kt-svg-testimonial-icon-${S}`,name:S,size:oe,title:I||"",strokeWidth:"fe"===S.substring(0,2)?C:void 0,style:{display:"flex",color:z?(0,r.KadenceColorOutput)(z):void 0}}),"icon"!==x&&w&&(0,t.createElement)(f.Fragment,null,(0,t.createElement)(m.MediaUpload,{onSelect:e=>{i({id:e.id,url:e.url,alt:e.alt,subtype:e.subtype,sizes:e.sizes})},type:"image",value:E||"",allowedTypes:se,render:({open:n})=>(0,t.createElement)(g.Tooltip,{text:(0,d.__)("Edit Image","kadence-blocks")},(0,t.createElement)(g.Button,{style:{backgroundImage:'url("'+e+'")',backgroundSize:"card"===W?Q[0].backgroundSize:void 0,borderRadius:Q[0].borderRadius+"px"},className:"kt-testimonial-image",onClick:n}))}),(0,t.createElement)(g.Button,{label:(0,d.__)("Remove Image","kadence-blocks"),className:"kt-remove-img kt-testimonial-remove-image",onClick:()=>{i({id:null,url:null,alt:null,subtype:null,sizes:null})},icon:h,showTooltip:!0})),"icon"!==x&&!w&&(0,t.createElement)(f.Fragment,null,"card"===W&&(0,t.createElement)(u.KadenceMediaPlaceholder,{onSelect:e=>{i({id:e.id,url:e.url,alt:e.alt,sizes:e.sizes,subtype:e.subtype})},value:"",allowedTypes:se,onSelectURL:e=>{e!==w&&i({id:null,url:e,alt:null,sizes:null,subtype:null})},accept:"image/*",className:"kadence-image-upload"}),"card"!==W&&(0,t.createElement)(m.MediaUpload,{onSelect:e=>{i({id:e.id,url:e.url,alt:e.alt,sizes:e.sizes,subtype:e.subtype})},type:"image",value:"",allowedTypes:se,render:({open:e})=>(0,t.createElement)(g.Button,{className:"kt-testimonial-image-placeholder","aria-label":(0,d.__)("Add Image","kadence-blocks"),icon:y,style:{borderRadius:Q[0].borderRadius+"px"},onClick:e})})))))};return(0,t.createElement)(s,{attributes:n,setAttributes:i,isSelected:v,clientId:c,context:b,previewDevice:ne},(0,t.createElement)("div",{...ae},(0,r.showSettings)("allSettings")&&(0,t.createElement)(f.Fragment,null,(0,t.createElement)(m.BlockControls,null,(0,t.createElement)(u.CopyPasteAttributes,{attributes:n,excludedAttrs:re,defaultAttributes:o.attributes,blockSlug:o.name,onPaste:e=>i(e)})),(0,t.createElement)(m.InspectorControls,null,(0,t.createElement)(u.SelectParentBlock,{clientId:c}),(0,t.createElement)(u.InspectorControlTabs,{panelName:"icon",allowedTabs:["general","advanced"],setActiveTab:e=>J(e),activeTab:$}),"general"===$&&(0,t.createElement)(f.Fragment,null,(0,r.showSettings)("individualSettings","kadence/testimonials")&&(0,t.createElement)(u.KadencePanelBody,{title:(0,d.__)("Individual Settings","kadence-blocks"),initialOpen:!0,panelName:"kb-testimonials-individual-settings"},(0,t.createElement)(f.Fragment,null,(0,t.createElement)(g.SelectControl,{label:(0,d.__)("Media Type","kadence-blocks"),value:x,options:[{value:"image",label:(0,d.__)("Image","kadence-blocks")},{value:"icon",label:(0,d.__)("Icon","kadence-blocks")}],onChange:e=>i({media:e})}),"icon"===x&&(0,t.createElement)(f.Fragment,null,(0,t.createElement)(u.KadenceIconPicker,{value:S,onChange:e=>{i({icon:e})}}),(0,t.createElement)(u.ResponsiveRangeControls,{label:(0,d.__)("Icon Size","kadence-blocks"),value:void 0!==_?_:"",onChange:e=>i({isize:e}),tabletValue:void 0!==A?A:"",onChangeTablet:e=>i({tabletIsize:e}),mobileValue:void 0!==M?M:"",onChangeMobile:e=>i({mobileIsize:e}),min:0,max:300,step:1,unit:"px",showUnit:!0,units:["px"]}),S&&"fe"===S.substring(0,2)&&(0,t.createElement)(g.RangeControl,{label:(0,d.__)("Line Width","kadence-blocks"),value:C,onChange:e=>{i({istroke:e})},step:.5,min:.5,max:4}),(0,t.createElement)(u.PopColorControl,{label:(0,d.__)("Icon Color","kadence-blocks"),value:z||"#555555",default:"#555555",onChange:e=>i({color:e})})),(0,t.createElement)(g.RangeControl,{label:(0,d.__)("Rating","kadence-blocks"),value:D,onChange:e=>{i({rating:e})},step:1,min:1,max:5})))),"advanced"===$&&(0,t.createElement)(f.Fragment,null,(0,t.createElement)(u.KadenceBlockDefaults,{attributes:n,defaultAttributes:o.attributes,blockSlug:o.name,excludedAttrs:re})))),(0,t.createElement)(f.Fragment,null,(0,t.createElement)("div",{className:`kt-testimonial-item-wrap kt-testimonial-item-${k}`},(0,t.createElement)("div",{className:"kt-testimonial-text-wrap"},K&&U[0].icon&&"card"!==W&&ce(),X&&("card"===W||"inlineimage"===W)&&le(),K&&U[0].icon&&"card"===W&&ce(),F&&(0,t.createElement)("div",{className:"kt-testimonial-title-wrap"},(0,t.createElement)(m.RichText,{tagName:"h"+G[0].level,value:P,onChange:e=>{i({title:e})},placeholder:(0,d.__)("Best product I have ever used!","kadence-blocks"),className:"kt-testimonial-title"})),j&&(0,t.createElement)("div",{className:`kt-testimonial-rating-wrap kt-testimonial-rating-${D}`},(0,t.createElement)(u.IconRender,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-1",name:"fas_star",size:void 0!==Y?.[0]?.size?Y[0].size:"1em",style:{color:void 0!==Y?.[0]?.color?(0,r.KadenceColorOutput)(Y[0].color):void 0}}),D>1&&(0,t.createElement)(u.IconRender,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-2",name:"fas_star",size:void 0!==Y?.[0]?.size?Y[0].size:"1em",style:{color:void 0!==Y?.[0]?.color?(0,r.KadenceColorOutput)(Y[0].color):void 0}}),D>2&&(0,t.createElement)(u.IconRender,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-3",name:"fas_star",size:void 0!==Y?.[0]?.size?Y[0].size:"1em",style:{color:void 0!==Y?.[0]?.color?(0,r.KadenceColorOutput)(Y[0].color):void 0}}),D>3&&(0,t.createElement)(u.IconRender,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-4",name:"fas_star",size:void 0!==Y?.[0]?.size?Y[0].size:"1em",style:{color:void 0!==Y?.[0]?.color?(0,r.KadenceColorOutput)(Y[0].color):void 0}}),D>4&&(0,t.createElement)(u.IconRender,{className:"kt-svg-testimonial-rating-icon kt-svg-testimonial-rating-icon-5",name:"fas_star",size:void 0!==Y?.[0]?.size?Y[0].size:"1em",style:{color:void 0!==Y?.[0]?.color?(0,r.KadenceColorOutput)(Y[0].color):void 0}})),B&&(0,t.createElement)("div",{className:"kt-testimonial-content-wrap"},(0,t.createElement)(m.RichText,{tagName:"div",placeholder:(0,d.__)("I have been looking for a product like this for years. I have tried everything and nothing did what I wanted until using this product. I am so glad I found it!","kadence-blocks"),value:N,onChange:e=>{i({content:e})},className:"kt-testimonial-content"}))),(X&&"card"!==W&&"inlineimage"!==W||V||q)&&(0,t.createElement)("div",{className:"kt-testimonial-meta-wrap"},X&&"card"!==W&&"inlineimage"!==W&&le(),(0,t.createElement)("div",{className:"kt-testimonial-meta-name-wrap"},q&&(0,t.createElement)("div",{className:"kt-testimonial-name-wrap"},(0,t.createElement)(m.RichText,{tagName:"div",placeholder:(0,d.__)("Sophia Reily","kadence-blocks"),value:L,onChange:e=>{i({name:e})},className:"kt-testimonial-name"})),V&&(0,t.createElement)("div",{className:"kt-testimonial-occupation-wrap"},(0,t.createElement)(m.RichText,{tagName:"div",placeholder:(0,d.__)("CEO of Company","kadence-blocks"),value:R,onChange:e=>{i({occupation:e})},className:"kt-testimonial-occupation"}))))))))},example:{}})})(),(this.kadence=this.kadence||{})["blocks-testimonial"]=i})();