Your IP : 18.188.15.246


Current Path : /home/e/p/h/ephorei/www/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/dist/
Upload File :
Current File : /home/e/p/h/ephorei/www/wp-content/plugins/astra-sites/inc/lib/gutenberg-templates/dist/main.js

/*! For license information please see main.js.LICENSE.txt */
(()=>{var e,t,r,n,a={5223:(e,t,r)=>{"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{A:()=>n})},8979:(e,t,r)=>{"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{A:()=>n})},5581:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>o,sb:()=>i,vq:()=>a});var n=r(8979);function a(e){return e instanceof(0,n.A)(e).Element||e instanceof Element}function i(e){return e instanceof(0,n.A)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.A)(e).ShadowRoot||e instanceof ShadowRoot)}},6607:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5223),a=r(5581);const i={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];(0,a.sb)(o)&&(0,n.A)(o)&&(Object.assign(o.style,r),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});(0,a.sb)(i)&&(0,n.A)(i)&&(Object.assign(i.style,s),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},2784:(e,t,r)=>{"use strict";r.d(t,{n4:()=>ye});var n=r(5581),a=Math.max,i=Math.min,o=Math.round,s=r(8979);function l(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(l())}function u(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var a=e.getBoundingClientRect(),i=1,l=1;t&&(0,n.sb)(e)&&(i=e.offsetWidth>0&&o(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&o(a.height)/e.offsetHeight||1);var u=((0,n.vq)(e)?(0,s.A)(e):window).visualViewport,d=!c()&&r,p=(a.left+(d&&u?u.offsetLeft:0))/i,m=(a.top+(d&&u?u.offsetTop:0))/l,f=a.width/i,g=a.height/l;return{width:f,height:g,top:m,right:p+f,bottom:m+g,left:p,x:p,y:m}}function d(e){var t=(0,s.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var p=r(5223);function m(e){return(((0,n.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}function f(e){return u(m(e)).left+d(e).scrollLeft}function g(e){return(0,s.A)(e).getComputedStyle(e)}function h(e){var t=g(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function y(e,t,r){void 0===r&&(r=!1);var a,i,l=(0,n.sb)(t),c=(0,n.sb)(t)&&function(e){var t=e.getBoundingClientRect(),r=o(t.width)/e.offsetWidth||1,n=o(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),g=m(t),y=u(e,c,r),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(l||!l&&!r)&&(("body"!==(0,p.A)(t)||h(g))&&(b=(a=t)!==(0,s.A)(a)&&(0,n.sb)(a)?{scrollLeft:(i=a).scrollLeft,scrollTop:i.scrollTop}:d(a)),(0,n.sb)(t)?((v=u(t,!0)).x+=t.clientLeft,v.y+=t.clientTop):g&&(v.x=f(g))),{x:y.left+b.scrollLeft-v.x,y:y.top+b.scrollTop-v.y,width:y.width,height:y.height}}function b(e){var t=u(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function v(e){return"html"===(0,p.A)(e)?e:e.assignedSlot||e.parentNode||((0,n.Ng)(e)?e.host:null)||m(e)}function w(e){return["html","body","#document"].indexOf((0,p.A)(e))>=0?e.ownerDocument.body:(0,n.sb)(e)&&h(e)?e:w(v(e))}function x(e,t){var r;void 0===t&&(t=[]);var n=w(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),i=(0,s.A)(n),o=a?[i].concat(i.visualViewport||[],h(n)?n:[]):n,l=t.concat(o);return a?l:l.concat(x(v(o)))}function _(e){return["table","td","th"].indexOf((0,p.A)(e))>=0}function E(e){return(0,n.sb)(e)&&"fixed"!==g(e).position?e.offsetParent:null}function k(e){for(var t=(0,s.A)(e),r=E(e);r&&_(r)&&"static"===g(r).position;)r=E(r);return r&&("html"===(0,p.A)(r)||"body"===(0,p.A)(r)&&"static"===g(r).position)?t:r||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&(0,n.sb)(e)&&"fixed"===g(e).position)return null;var r=v(e);for((0,n.Ng)(r)&&(r=r.host);(0,n.sb)(r)&&["html","body"].indexOf((0,p.A)(r))<0;){var a=g(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}(e)||t}var S="top",C="bottom",R="right",A="left",P="auto",T=[S,C,R,A],N="start",I="end",O="viewport",L="popper",B=T.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+I])}),[]),j=[].concat(T,[P]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+I])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(e){var t=new Map,r=new Set,n=[];function a(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&a(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||a(e)})),n}var M={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function V(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,a=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?M:i;return function(e,t,r){void 0===r&&(r=o);var i,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},M,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(r){var i="function"==typeof r?r(l.options):r;p(),l.options=Object.assign({},o,l.options,i),l.scrollParents={reference:(0,n.vq)(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var s,u,m=function(e){var t=F(e);return D.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((s=[].concat(a,l.options.modifiers),u=s.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=m.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,a=e.effect;if("function"==typeof a){var i=a({state:l,name:t,instance:d,options:n});c.push(i||function(){})}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,r=e.popper;if(z(t,r)){l.rects={reference:y(t,k(r),"fixed"===l.options.strategy),popper:b(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var a=l.orderedModifiers[n],i=a.fn,o=a.options,s=void 0===o?{}:o,c=a.name;"function"==typeof i&&(l=i({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){p(),u=!0}};if(!z(e,t))return d;function p(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),d}}var W={passive:!0};const U={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=void 0===a||a,o=n.resize,l=void 0===o||o,c=(0,s.A)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,W)})),l&&c.addEventListener("resize",r.update,W),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,W)})),l&&c.removeEventListener("resize",r.update,W)}},data:{}};function H(e){return e.split("-")[0]}function $(e){return e.split("-")[1]}function Z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,r=e.reference,n=e.element,a=e.placement,i=a?H(a):null,o=a?$(a):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case S:t={x:s,y:r.y-n.height};break;case C:t={x:s,y:r.y+r.height};break;case R:t={x:r.x+r.width,y:l};break;case A:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Z(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case N:t[c]=t[c]-(r[u]/2-n[u]/2);break;case I:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}const q={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,h=l.x,y=void 0===h?0:h,b=l.y,v=void 0===b?0:b,w="function"==typeof p?p({x:y,y:v}):{x:y,y:v};y=w.x,v=w.y;var x=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),E=A,P=S,T=window;if(d){var N=k(r),O="clientHeight",L="clientWidth";N===(0,s.A)(r)&&"static"!==g(N=m(r)).position&&"absolute"===c&&(O="scrollHeight",L="scrollWidth"),(a===S||(a===A||a===R)&&i===I)&&(P=C,v-=(f&&N===T&&T.visualViewport?T.visualViewport.height:N[O])-n.height,v*=u?1:-1),a!==A&&(a!==S&&a!==C||i!==I)||(E=R,y-=(f&&N===T&&T.visualViewport?T.visualViewport.width:N[L])-n.width,y*=u?1:-1)}var B,j=Object.assign({position:c},d&&Y),D=!0===p?function(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:o(r*a)/a||0,y:o(n*a)/a||0}}({x:y,y:v},(0,s.A)(r)):{x:y,y:v};return y=D.x,v=D.y,u?Object.assign({},j,((B={})[P]=_?"0":"",B[E]=x?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+v+"px)":"translate3d("+y+"px, "+v+"px, 0)",B)):Object.assign({},j,((t={})[P]=_?v+"px":"",t[E]=x?y+"px":"",t.transform="",t))}const X={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,i=r.adaptive,o=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:H(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var J=r(6607);const Q={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=void 0===a?[0,0]:a,o=j.reduce((function(e,r){return e[r]=function(e,t,r){var n=H(e),a=[A,S].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[A,R].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}(r,t.rects,i),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var re={start:"end",end:"start"};function ne(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function ae(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Ng)(r)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t,r){return t===O?ie(function(e,t){var r=(0,s.A)(e),n=m(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,l=0,u=0;if(a){i=a.width,o=a.height;var d=c();(d||!d&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:o,x:l+f(e),y:u}}(e,r)):(0,n.vq)(t)?function(e,t){var r=u(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):ie(function(e){var t,r=m(e),n=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=a(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=a(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+f(e),c=-n.scrollTop;return"rtl"===g(i||r).direction&&(l+=a(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}(m(e)))}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function le(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ce(e,t){void 0===t&&(t={});var r=t,o=r.placement,s=void 0===o?e.placement:o,l=r.strategy,c=void 0===l?e.strategy:l,d=r.boundary,f=void 0===d?"clippingParents":d,h=r.rootBoundary,y=void 0===h?O:h,b=r.elementContext,w=void 0===b?L:b,_=r.altBoundary,E=void 0!==_&&_,A=r.padding,P=void 0===A?0:A,N=se("number"!=typeof P?P:le(P,T)),I=w===L?"reference":L,B=e.rects.popper,j=e.elements[E?I:w],D=function(e,t,r,o){var s="clippingParents"===t?function(e){var t=x(v(e)),r=["absolute","fixed"].indexOf(g(e).position)>=0&&(0,n.sb)(e)?k(e):e;return(0,n.vq)(r)?t.filter((function(e){return(0,n.vq)(e)&&ae(e,r)&&"body"!==(0,p.A)(e)})):[]}(e):[].concat(t),l=[].concat(s,[r]),c=l[0],u=l.reduce((function(t,r){var n=oe(e,r,o);return t.top=a(n.top,t.top),t.right=i(n.right,t.right),t.bottom=i(n.bottom,t.bottom),t.left=a(n.left,t.left),t}),oe(e,c,o));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}((0,n.vq)(j)?j:j.contextElement||m(e.elements.popper),f,y,c),F=u(e.elements.reference),M=G({reference:F,element:B,strategy:"absolute",placement:s}),z=ie(Object.assign({},B,M)),V=w===L?z:F,W={top:D.top-V.top+N.top,bottom:V.bottom-D.bottom+N.bottom,left:D.left-V.left+N.left,right:V.right-D.right+N.right},U=e.modifiersData.offset;if(w===L&&U){var H=U[s];Object.keys(W).forEach((function(e){var t=[R,C].indexOf(e)>=0?1:-1,r=[S,C].indexOf(e)>=0?"y":"x";W[e]+=H[r]*t}))}return W}const ue={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=void 0===a||a,o=r.altAxis,s=void 0===o||o,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,f=void 0===m||m,g=r.allowedAutoPlacements,h=t.options.placement,y=H(h),b=l||(y!==h&&f?function(e){if(H(e)===P)return[];var t=te(e);return[ne(e),t,ne(t)]}(h):[te(h)]),v=[h].concat(b).reduce((function(e,r){return e.concat(H(r)===P?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?j:l,u=$(n),d=u?s?B:B.filter((function(e){return $(e)===u})):T,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var m=p.reduce((function(t,r){return t[r]=ce(e,{placement:r,boundary:a,rootBoundary:i,padding:o})[H(r)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):r)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,E=!0,k=v[0],I=0;I<v.length;I++){var O=v[I],L=H(O),D=$(O)===N,F=[S,C].indexOf(L)>=0,M=F?"width":"height",z=ce(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),V=F?D?R:A:D?C:S;w[M]>x[M]&&(V=te(V));var W=te(V),U=[];if(i&&U.push(z[L]<=0),s&&U.push(z[V]<=0,z[W]<=0),U.every((function(e){return e}))){k=O,E=!1;break}_.set(O,U)}if(E)for(var Z=function(e){var t=v.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},G=f?3:1;G>0&&"break"!==Z(G);G--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,r){return a(e,i(t,r))}const pe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=void 0===o||o,l=r.altAxis,c=void 0!==l&&l,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.padding,f=r.tether,g=void 0===f||f,h=r.tetherOffset,y=void 0===h?0:h,v=ce(t,{boundary:u,rootBoundary:d,padding:m,altBoundary:p}),w=H(t.placement),x=$(t.placement),_=!x,E=Z(w),P="x"===E?"y":"x",T=t.modifiersData.popperOffsets,I=t.rects.reference,O=t.rects.popper,L="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,B="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(s){var F,M="y"===E?S:A,z="y"===E?C:R,V="y"===E?"height":"width",W=T[E],U=W+v[M],G=W-v[z],q=g?-O[V]/2:0,Y=x===N?I[V]:O[V],K=x===N?-O[V]:-I[V],X=t.elements.arrow,J=g&&X?b(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[M],te=Q[z],re=de(0,I[V],J[V]),ne=_?I[V]/2-q-re-ee-B.mainAxis:Y-re-ee-B.mainAxis,ae=_?-I[V]/2+q+re+te+B.mainAxis:K+re+te+B.mainAxis,ie=t.elements.arrow&&k(t.elements.arrow),oe=ie?"y"===E?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(F=null==j?void 0:j[E])?F:0,le=W+ae-se,ue=de(g?i(U,W+ne-se-oe):U,W,g?a(G,le):G);T[E]=ue,D[E]=ue-W}if(c){var pe,me="x"===E?S:A,fe="x"===E?C:R,ge=T[P],he="y"===P?"height":"width",ye=ge+v[me],be=ge-v[fe],ve=-1!==[S,A].indexOf(w),we=null!=(pe=null==j?void 0:j[P])?pe:0,xe=ve?ye:ge-I[he]-O[he]-we+B.altAxis,_e=ve?ge+I[he]+O[he]-we-B.altAxis:be,Ee=g&&ve?function(e,t,r){var n=de(e,t,r);return n>r?r:n}(xe,ge,_e):de(g?xe:ye,ge,g?_e:be);T[P]=Ee,D[P]=Ee-ge}t.modifiersData[n]=D}},requiresIfExists:["offset"]},me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=H(r.placement),l=Z(s),c=[A,R].indexOf(s)>=0?"height":"width";if(i&&o){var u=function(e,t){return se("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:le(e,T))}(a.padding,r),d=b(i),p="y"===l?S:A,m="y"===l?C:R,f=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],h=k(i),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,v=f/2-g/2,w=u[p],x=y-d[c]-u[m],_=y/2-d[c]/2+v,E=de(w,_,x),P=l;r.modifiersData[n]=((t={})[P]=E,t.centerOffset=E-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ae(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ge(e){return[S,R,C,A].some((function(t){return e[t]>=0}))}const he={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),l=fe(o,n),c=fe(s,a,i),u=ge(l),d=ge(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var ye=V({defaultModifiers:[U,q,X,J.A,Q,ue,pe,me,he]})},3771:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n=(e=!1)=>(...t)=>(...r)=>{const n=t.flat();return e&&n.reverse(),n.reduce(((e,t)=>[t(...e)]),r)[0]},a=(n(),n(!0))},6043:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(1635),a=r(7482);function i(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function o(e,t){return r=>{const n=e(r);return n.displayName=s(t,r),n}}const s=(e,t)=>{const r=t.displayName||t.name||"Component";var o,s;return`${o=null!=e?e:"",void 0===s&&(s={}),(0,a.W)(o,(0,n.Cl)({delimiter:"",transform:i},s))}(${r})`}},9637:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(1594),a=r(9166);const i=(0,n.createContext)(a.A),{Consumer:o,Provider:s}=i;function l(){return(0,n.useContext)(i)}},6597:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(9637);const a=e=>{const{dispatch:t}=(0,n.A)();return void 0===e?t:t(e)}},3914:(e,t,r)=>{"use strict";r.d(t,{A:()=>p}),r(8939);const n="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback;var a=r(1594),i=r(8671),o=r(9637);const s=(0,a.createContext)(!1),{Consumer:l,Provider:c}=s,u=(()=>{const e=new Map;let t=!1;const r=a=>{for(const[t,r]of e)if(e.delete(t),r(),"number"==typeof a||a.timeRemaining()<=0)break;0!==e.size?n(r):t=!1};return{add:(a,i)=>{e.set(a,i),t||(t=!0,n(r))},flush:t=>{const r=e.get(t);return void 0!==r&&(e.delete(t),r(),!0)},cancel:t=>e.delete(t),reset:()=>{e.clear(),t=!1}}})();function d(e,t,r){const n=(0,o.A)(),l=(0,a.useContext)(s),c=(0,a.useMemo)((()=>function(e,t){const r=t?e.suspendSelect:e.select,n={};let a,o,s,l,c=!1;const d=new Map;function p(t){var r;return null!==(r=e.stores[t]?.store?.getState?.())&&void 0!==r?r:{}}return(t,m)=>{function f(){if(c&&t===a)return o;const m={current:null},f=e.__unstableMarkListeningStores((()=>t(r,e)),m);if(l)l.updateStores(m.current);else{for(const e of m.current)d.set(e,p(e));l=(t=>{const r=[...t],a=new Set;return{subscribe:function(t){if(c)for(const e of r)d.get(e)!==p(e)&&(c=!1);d.clear();const i=()=>{c=!1,t()},o=()=>{s?u.add(n,i):i()},l=[];function m(t){l.push(e.subscribe(o,t))}for(const e of r)m(e);return a.add(m),()=>{a.delete(m);for(const e of l.values())e?.();u.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of a)e(t)}}}})(m.current)}(0,i.Ay)(o,f)||(o=f),a=t,c=!0}return s&&!m&&(c=!1,u.cancel(n)),f(),s=m,{subscribe:l.subscribe,getValue:function(){return f(),o}}}}(n,e)),[n,e]),d=(0,a.useCallback)(t,r),{subscribe:p,getValue:m}=c(d,l),f=(0,a.useSyncExternalStore)(p,m,m);return(0,a.useDebugValue)(f),f}function p(e,t){const r="function"!=typeof e,n=(0,a.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(i=e,(0,o.A)().select(i)):d(!1,e,t);var i}},7642:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1594),a=r(6043);const i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var o=r(9637);const s=e=>(0,a.f)((t=>r=>{const a=((e,t)=>{const r=(0,o.A)(),a=(0,n.useRef)(e);return i((()=>{a.current=e})),(0,n.useMemo)((()=>{const e=a.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>a.current(r.dispatch,r)[e](...t)]))))}),[r,...t])})(((t,n)=>e(t,r,n)),[]);return(0,n.createElement)(t,{...r,...a})}),"withDispatch")},8242:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(1594),a=r(6043),i=r(8671);const o=(0,a.f)((function(e){return e.prototype instanceof n.Component?class extends e{shouldComponentUpdate(e,t){return!(0,i.Ay)(e,this.props)||!(0,i.Ay)(t,this.state)}}:class extends n.Component{shouldComponentUpdate(e){return!(0,i.Ay)(e,this.props)}render(){return(0,n.createElement)(e,{...this.props})}}}),"pure");var s=r(3914);const l=e=>(0,a.f)((t=>o((r=>{const a=(0,s.A)(((t,n)=>e(t,r,n)));return(0,n.createElement)(t,{...r,...a})}))),"withSelect")},9166:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(1892),a=r(3473);const i={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)]))),subscribe:()=>()=>()=>{}}}};function o(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(r.add(e),()=>r.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}var s=r(7203);function l(e){return"string"==typeof e?e:e.name}const c=function(e={},t=null){const r={},c=o();let u=null;function d(){c.emit()}function p(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const a=n();if("function"!=typeof a.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof a.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof a.subscribe)throw new TypeError("store.subscribe must be a function");a.emitter=o();const i=a.subscribe;if(a.subscribe=e=>{const t=a.emitter.subscribe(e),r=i((()=>{a.emitter.isPaused?a.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=a,a.subscribe(d),t)try{(0,s.T)(a.store).registerPrivateActions((0,s.T)(t).privateActionsOf(e)),(0,s.T)(a.store).registerPrivateSelectors((0,s.T)(t).privateSelectorsOf(e))}catch(e){}return a}let m={batch:function(e){c.isPaused?e():(c.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),c.resume(),Object.values(r).forEach((e=>e.emitter.resume())))},stores:r,namespaces:r,subscribe:(e,n)=>{if(!n)return c.subscribe(e);const a=l(n),i=r[a];return i?i.subscribe(e):t?t.subscribe(e,n):c.subscribe(e)},select:function(e){const n=l(e);u?.add(n);const a=r[n];return a?a.getSelectors():t?.select(n)},resolveSelect:function(e){const n=l(e);u?.add(n);const a=r[n];return a?a.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=l(e);u?.add(n);const a=r[n];return a?a.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=l(e),a=r[n];return a?a.getActions():t&&t.dispatch(n)},use:function(e,t){if(e)return m={...m,...e(m,t)},m},register:function(e){p(e.name,(()=>e.instantiate(m)))},registerGenericStore:function(e,t){(0,n.A)("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),p(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return p(e,(()=>(0,a.A)(e,t).instantiate(m))).store},__unstableMarkListeningStores:function(e,t){u=new Set;try{return e.call(this)}finally{t.current=Array.from(u),u=null}}};m.register(i);for(const[t,r]of Object.entries(e))m.register((0,a.A)(t,r));t&&t.subscribe(d);const f=(g=m,Object.fromEntries(Object.entries(g).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return m[e].apply(null,arguments)}]))));var g;return(0,s.s)(f,{privateActionsOf:e=>{try{return(0,s.T)(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return(0,s.T)(r[e].store).privateSelectors}catch(e){return{}}}}),f}()},7203:(e,t,r)=>{"use strict";r.d(t,{s:()=>u,T:()=>d});const n=["@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/commands","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/format-library","@wordpress/interface","@wordpress/patterns","@wordpress/preferences","@wordpress/reusable-blocks","@wordpress/router","@wordpress/dataviews"],a=[];let i;try{i=!process.env.IS_WORDPRESS_CORE}catch(e){i=!0}function o(e,t){if(!e)throw new Error("Cannot lock an undefined object.");c in e||(e[c]={}),l.set(e[c],t)}function s(e){if(!e)throw new Error("Cannot unlock an undefined object.");if(!(c in e))throw new Error("Cannot unlock an object that was not locked before. ");return l.get(e[c])}const l=new WeakMap,c=Symbol("Private API ID"),{lock:u,unlock:d}=((e,t)=>{if(!n.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(!i&&a.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}" which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);return a.push(t),{lock:o,unlock:s}})(0,"@wordpress/data")},3473:(e,t,r)=>{"use strict";r.d(t,{A:()=>le});var n={};r.r(n),r.d(n,{countSelectorsByStatus:()=>q,getCachedResolvers:()=>Z,getIsResolving:()=>z,getResolutionError:()=>H,getResolutionState:()=>M,hasFinishedResolution:()=>W,hasResolutionFailed:()=>U,hasResolvingSelectors:()=>G,hasStartedResolution:()=>V,isResolving:()=>$});var a={};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}r.r(a),r.d(a,{failResolution:()=>X,failResolutions:()=>ee,finishResolution:()=>K,finishResolutions:()=>Q,invalidateResolution:()=>te,invalidateResolutionForStore:()=>re,invalidateResolutionForStoreSelector:()=>ne,startResolution:()=>Y,startResolutions:()=>J});var u="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function m(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(c(1));return r(m)(e,t)}if("function"!=typeof e)throw new Error(c(2));var a=e,i=t,o=[],s=o,l=!1;function d(){s===o&&(s=o.slice())}function f(){if(l)throw new Error(c(3));return i}function g(e){if("function"!=typeof e)throw new Error(c(4));if(l)throw new Error(c(5));var t=!0;return d(),s.push(e),function(){if(t){if(l)throw new Error(c(6));t=!1,d();var r=s.indexOf(e);s.splice(r,1),o=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(c(7));if(void 0===e.type)throw new Error(c(8));if(l)throw new Error(c(9));try{l=!0,i=a(i,e)}finally{l=!1}for(var t=o=s,r=0;r<t.length;r++)(0,t[r])();return e}return h({type:p.INIT}),(n={dispatch:h,subscribe:g,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(c(10));a=e,h({type:p.REPLACE})}})[u]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(c(11));function r(){e.next&&e.next(f())}return r(),{unsubscribe:t(r)}}})[u]=function(){return this},e},n}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(c(15))},a={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(a)}));return n=f.apply(void 0,i)(r.dispatch),l(l({},r),{},{dispatch:n})}}}var h=r(5055),y=r.n(h),b=r(5937);function v(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}var w=r(8270);function x(e){return(0,w.Q)(e)&&"string"==typeof e.type}function _(e={}){return t=>{const r=function(e={},t){const r=Object.entries(e).map((([e,t])=>(r,n,a,i,o)=>{if(l=e,!x(s=r)||s.type!==l)return!1;var s,l;const c=t(r);return v(c)?c.then(i,o):i(c),!0}));r.push(((e,r)=>!!x(e)&&(t(e),r(),!0)));const n=(0,b.create)(r);return e=>new Promise(((r,a)=>n(e,(e=>{x(e)&&t(e),r(e)}),a)))}(e,t.dispatch);return e=>t=>{return(n=t)&&"function"==typeof n[Symbol.iterator]&&"function"==typeof n.next?r(t):e(t);var n}}}var E=r(3771);function k(e){return e.isRegistryControl=!0,e}const S="@@data/SELECT",C="@@data/RESOLVE_SELECT",R="@@data/DISPATCH",A={[S]:k((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[C]:k((e=>({storeKey:t,selectorName:r,args:n})=>{const a=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[a](t)[r](...n)})),[R]:k((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))};var P=r(7203);const T=()=>e=>t=>v(t)?t.then((t=>{if(t)return e(t)})):e(t),N=(e,t)=>()=>r=>n=>{const a=e.select(t).getCachedResolvers();return Object.entries(a).forEach((([r,a])=>{const i=e.stores[t]?.resolvers?.[r];i&&i.shouldInvalidate&&a.forEach(((a,o)=>{void 0!==a&&("finished"!==a.status&&"error"!==a.status||i.shouldInvalidate(n,...o)&&e.dispatch(t).invalidateResolution(r,o))}))})),r(n)};function I(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const O=(e=>(t={},r)=>{const n=r.selectorName;if(void 0===n)return t;const a=e(t[n],r);return a===t[n]?t:{...t,[n]:a}})(((e=new(y()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(y())(e);return r.set(I(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(y())(e);return r.set(I(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(y())(e);return r.set(I(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(y())(e);for(const e of t.args)r.set(I(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(y())(e);for(const e of t.args)r.set(I(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(y())(e);return t.args.forEach(((e,n)=>{const a={status:"error",error:void 0},i=t.errors[n];i&&(a.error=i),r.set(I(e),a)})),r}case"INVALIDATE_RESOLUTION":{const r=new(y())(e);return r.delete(I(t.args)),r}}return e}));const L=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return O(e,t)}return e};var B=r(1892),j={};function D(e){return[e]}function F(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function M(e,t,r){const n=e[t];if(n)return n.get(I(r))}function z(e,t,r){(0,B.A)("wp.data.select( store ).getIsResolving",{since:"6.6",version:"6.8",alternative:"wp.data.select( store ).getResolutionState"});const n=M(e,t,r);return n&&"resolving"===n.status}function V(e,t,r){return void 0!==M(e,t,r)}function W(e,t,r){const n=M(e,t,r)?.status;return"finished"===n||"error"===n}function U(e,t,r){return"error"===M(e,t,r)?.status}function H(e,t,r){const n=M(e,t,r);return"error"===n?.status?n.error:null}function $(e,t,r){return"resolving"===M(e,t,r)?.status}function Z(e){return e}function G(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const q=function(e,t){var r,n=(e=>[e])||D;function a(){r=new WeakMap}function i(){var t,a,i,o,s,l=arguments.length;for(o=new Array(l),i=0;i<l;i++)o[i]=arguments[i];for(t=function(e){var t,n,a,i,o,s=r,l=!0;for(t=0;t<e.length;t++){if(!(o=n=e[t])||"object"!=typeof o){l=!1;break}s.has(n)?s=s.get(n):(a=new WeakMap,s.set(n,a),s=a)}return s.has(j)||((i=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(j,i)),s.get(j)}(s=n.apply(null,o)),t.isUniqueByDependants||(t.lastDependants&&!F(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),a=t.head;a;){if(F(a.args,o,1))return a!==t.head&&(a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=t.head,a.prev=null,t.head.prev=a,t.head=a),a.val;a=a.next}return a={val:e.apply(null,o)},o[0]=null,a.args=o,t.head&&(t.head.prev=a,a.next=t.head),t.head=a,a.val}return i.getDependants=n,i.clear=a,a(),i}((e=>{const t={};return Object.values(e).forEach((e=>Array.from(e._map.values()).forEach((e=>{var r;const n=null!==(r=e[1]?.status)&&void 0!==r?r:"error";t[n]||(t[n]=0),t[n]++})))),t}));function Y(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function K(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function X(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function J(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function Q(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ee(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function te(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function re(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function ne(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const ae=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},ie=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),oe=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function se(e){const t=new WeakMap;return{get(r,n){let a=t.get(r);return a||(a=e(r,n),t.set(r,a)),a}}}function le(e,t){const r={},i={},o={privateActions:r,registerPrivateActions:e=>{Object.assign(r,e)},privateSelectors:i,registerPrivateSelectors:e=>{Object.assign(i,e)}},s={name:e,instantiate:s=>{const l=new Set,c=t.reducer,u=function(e,t,r,n){const a={...t.controls,...A},i=ie(a,(e=>e.isRegistryControl?e(r):e)),o=[g(...[N(r,e),T,_(i),(s=n,()=>e=>t=>"function"==typeof t?t(s):e(t))])];var s;"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&o.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:oe}}));const{reducer:l,initialState:c}=t,u=function(e){const t=Object.keys(e);return function(r={},n){const a={};let i=!1;for(const o of t){const t=e[o],s=r[o],l=t(s,n);a[o]=l,i=i||l!==s}return i?a:r}}({metadata:L,root:l});return m(u,{root:c},(0,E.A)(o))}(e,t,s,{registry:s,get dispatch(){return v},get select(){return R},get resolveSelect(){return B()}});(0,P.s)(u,o);const d=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(ae(r)),clear(t,r){e[t]&&e[t].delete(ae(r))},markAsRunning(t,r){e[t]||(e[t]=new(y())),e[t].set(ae(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(u.dispatch(e(...t)))}const f={...ie(a,p),...ie(t.actions,p)},h=se(p),b=new Proxy((()=>{}),{get:(e,t)=>{const n=r[t];return n?h.get(n,t):f[t]}}),v=new Proxy(b,{apply:(e,t,[r])=>u.dispatch(r)});(0,P.s)(f,b);const w=t.resolvers?function(e){return ie(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(t.resolvers):{};function x(e,t){e.isRegistrySelector&&(e.registry=s);const r=(...t)=>{t=ce(e,t);const r=u.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=s),e(r.root,...t)};r.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const n=w[t];return n?function(e,t,r,n,a){const i=(...i)=>(function(e){const i=n.getState();if(a.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(i,...e))return;const{metadata:o}=n.__unstableOriginalGetState();V(o,t,e)||(a.markAsRunning(t,e),setTimeout((async()=>{a.clear(t,e),n.dispatch(Y(t,e));try{const a=r.fulfill(...e);a&&await n.dispatch(a),n.dispatch(K(t,e))}catch(r){n.dispatch(X(t,e,r))}}),0))}(i=ce(e,i)),e(...i));return i.hasResolver=!0,i}(r,t,n,u,d):(r.hasResolver=!1,r)}const k={...ie(n,(function(e){const r=(...r)=>{const n=u.__unstableOriginalGetState(),a=r&&r[0],i=r&&r[1],o=t?.selectors?.[a];return a&&o&&(r[1]=ce(o,i)),e(n.metadata,...r)};return r.hasResolver=!1,r})),...ie(t.selectors,x)},S=se(x);for(const[e,t]of Object.entries(i))S.get(t,e);const C=new Proxy((()=>{}),{get:(e,t)=>{const r=i[t];return r?S.get(r,t):k[t]}}),R=new Proxy(C,{apply:(e,t,[r])=>r(u.__unstableOriginalGetState())});(0,P.s)(k,C);const I=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:a,hasResolutionFailed:i,isResolving:o,getCachedResolvers:s,getResolutionState:l,getResolutionError:c,hasResolvingSelectors:u,countSelectorsByStatus:d,...p}=e;return ie(p,((r,n)=>r.hasResolver?(...a)=>new Promise(((i,o)=>{const s=()=>e.hasFinishedResolution(n,a),l=t=>{if(e.hasResolutionFailed(n,a)){const t=e.getResolutionError(n,a);o(t)}else i(t)},c=()=>r.apply(null,a),u=c();if(s())return l(u);const d=t.subscribe((()=>{s()&&(d(),l(c()))}))})):async(...e)=>r.apply(null,e)))}(k,u),O=function(e,t){return ie(e,((r,n)=>r.hasResolver?(...a)=>{const i=r.apply(null,a);if(e.hasFinishedResolution(n,a)){if(e.hasResolutionFailed(n,a))throw e.getResolutionError(n,a);return i}throw new Promise((r=>{const i=t.subscribe((()=>{e.hasFinishedResolution(n,a)&&(r(),i())}))}))}:r))}(k,u),B=()=>I;u.__unstableOriginalGetState=u.getState,u.getState=()=>u.__unstableOriginalGetState().root;const j=u&&(e=>(l.add(e),()=>l.delete(e)));let D=u.__unstableOriginalGetState();return u.subscribe((()=>{const e=u.__unstableOriginalGetState(),t=e!==D;if(D=e,t)for(const e of l)e()})),{reducer:c,store:u,actions:f,selectors:k,resolvers:w,getSelectors:()=>k,getResolveSelectors:B,getSuspendSelectors:()=>O,getActions:()=>f,subscribe:j}}};return(0,P.s)(s,o),s}function ce(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}},1892:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6619);const a=Object.create(null);function i(e,t={}){const{since:r,version:i,alternative:o,plugin:s,link:l,hint:c}=t,u=`${e} is deprecated${r?` since version ${r}`:""}${i?` and will be removed${s?` from ${s}`:""} in version ${i}`:""}.${o?` Please use ${o} instead.`:""}${l?` See: ${l}`:""}${c?` Note: ${c}`:""}`;u in a||((0,n.Eo)("deprecated",e,t,u),console.warn(u),a[u]=!0)}},6619:(e,t,r)=>{"use strict";r.d(t,{se:()=>m,Eo:()=>_});const n=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(e,t){return function(r,i,o,s=10){const l=e[t];if(!a(r))return;if(!n(i))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof s)return void console.error("If specified, the hook priority must be a number.");const c={callback:o,priority:s,namespace:i};if(l[r]){const e=l[r].handlers;let t;for(t=e.length;t>0&&!(s>=e[t-1].priority);t--);t===e.length?e[t]=c:e.splice(t,0,c),l.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++}))}else l[r]={handlers:[c],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,i,o,s)}},o=function(e,t,r=!1){return function(i,o){const s=e[t];if(!a(i))return;if(!r&&!n(o))return;if(!s[i])return 0;let l=0;if(r)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else{const e=s[i].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),l++,s.__current.forEach((e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,o),l}},s=function(e,t){return function(r,n){const a=e[t];return void 0!==n?r in a&&a[r].handlers.some((e=>e.namespace===n)):r in a}},l=function(e,t,r=!1){return function(n,...a){const i=e[t];i[n]||(i[n]={handlers:[],runs:0}),i[n].runs++;const o=i[n].handlers;if(!o||!o.length)return r?a[0]:void 0;const s={name:n,currentIndex:0};for(i.__current.push(s);s.currentIndex<o.length;){const e=o[s.currentIndex].callback.apply(null,a);r&&(a[0]=e),s.currentIndex++}return i.__current.pop(),r?a[0]:void 0}},c=function(e,t){return function(){var r;const n=e[t];return null!==(r=n.__current[n.__current.length-1]?.name)&&void 0!==r?r:null}},u=function(e,t){return function(r){const n=e[t];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}},d=function(e,t){return function(r){const n=e[t];if(a(r))return n[r]&&n[r].runs?n[r].runs:0}};class p{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=o(this,"actions"),this.removeFilter=o(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=o(this,"actions",!0),this.removeAllFilters=o(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")}}const m=new p,{addAction:f,addFilter:g,removeAction:h,removeFilter:y,hasAction:b,hasFilter:v,removeAllActions:w,removeAllFilters:x,doAction:_,applyFilters:E,currentAction:k,currentFilter:S,doingAction:C,doingFilter:R,didAction:A,didFilter:P,actions:T,filters:N}=m},1760:(e,t,r)=>{"use strict";r.d(t,{__:()=>y,_n:()=>b,nv:()=>o});var n=r(7604),a=r.n(n);const i=function(e,t){var r,n,a=0;function i(){var i,o,s=r,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue e}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];return s={args:i,val:e.apply(null,i)},r?(r.prev=s,s.next=r):n=s,a===t.maxSize?(n=n.prev).next=null:a++,r=s,s.val}return t=t||{},i.clear=function(){r=null,n=null,a=0},i}(console.error);function o(e,...t){try{return a().sprintf(e,...t)}catch(t){return t instanceof Error&&i("sprintf error: \n\n"+t.toString()),e}}var s,l,c,u;s={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},l=["(","?"],c={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var d={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};var p={contextDelimiter:"",onMissingKey:null};function m(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},p)this.options[r]=void 0!==t&&r in t?t[r]:p[r]}m.prototype.getPluralForm=function(e,t){var r,n,a,i,o=this.pluralForms[e];return o||("function"!=typeof(a=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(e){var t=function(e){for(var t,r,n,a,i=[],o=[];t=e.match(u);){for(r=t[0],(n=e.substr(0,t.index).trim())&&i.push(n);a=o.pop();){if(c[r]){if(c[r][0]===a){r=c[r][1]||r;break}}else if(l.indexOf(a)>=0||s[a]<s[r]){o.push(a);break}i.push(a)}c[r]||o.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&i.push(e),i.concat(o.reverse())}(e);return function(e){return function(e,t){var r,n,a,i,o,s,l=[];for(r=0;r<e.length;r++){if(o=e[r],i=d[o]){for(n=i.length,a=Array(n);n--;)a[n]=l.pop();try{s=i.apply(null,a)}catch(e){return e}}else s=t.hasOwnProperty(o)?t[o]:+o;l.push(s)}return l[0]}(t,e)}}(n),a=function(e){return+i({n:e})}),o=this.pluralForms[e]=a),o(t)},m.prototype.dcnpgettext=function(e,t,r,n,a){var i,o,s;return i=void 0===a?0:this.getPluralForm(e,a),o=r,t&&(o=t+this.options.contextDelimiter+r),(s=this.data[e][o])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)};const f={plural_forms:e=>1===e?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,h=((e,t,r)=>{const n=new m({}),a=new Set,i=()=>{a.forEach((e=>e()))},o=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...f,...n.data[t]?.[""]},delete n.pluralForms[t]},s=(e,t)=>{o(e,t),i()},l=(e="default",t,r,a,i)=>(n.data[e]||o(void 0,e),n.dcnpgettext(e,t,r,a,i)),c=(e="default")=>e,u=(e,t,n)=>{let a=l(n,t,e);return r?(a=r.applyFilters("i18n.gettext_with_context",a,e,t,n),r.applyFilters("i18n.gettext_with_context_"+c(n),a,e,t,n)):a};if(r){const e=e=>{g.test(e)&&i()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...f,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],i()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},s(e,t)},subscribe:e=>(a.add(e),()=>a.delete(e)),__:(e,t)=>{let n=l(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+c(t),n,e,t)):n},_x:u,_n:(e,t,n,a)=>{let i=l(a,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,a),r.applyFilters("i18n.ngettext_"+c(a),i,e,t,n,a)):i},_nx:(e,t,n,a,i)=>{let o=l(i,a,e,t,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,e,t,n,a,i),r.applyFilters("i18n.ngettext_with_context_"+c(i),o,e,t,n,a,i)):o},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,a)=>{const i=t?t+""+e:e;let o=!!n.data?.[null!=a?a:"default"]?.[i];return r&&(o=r.applyFilters("i18n.has_translation",o,e,t,a),o=r.applyFilters("i18n.has_translation_"+c(a),o,e,t,a)),o}}})(0,0,r(6619).se),y=(h.getLocaleData.bind(h),h.setLocaleData.bind(h),h.resetLocaleData.bind(h),h.subscribe.bind(h),h.__.bind(h)),b=(h._x.bind(h),h._n.bind(h));h._nx.bind(h),h.isRTL.bind(h),h.hasTranslation.bind(h)},8671:(e,t,r)=>{"use strict";function n(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return function(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;let a=0;for(;a<r.length;){const n=r[a],i=e[n];if(void 0===i&&!t.hasOwnProperty(n)||i!==t[n])return!1;a++}return!0}(e,t);if(Array.isArray(e)&&Array.isArray(t))return function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}(e,t)}return e===t}r.d(t,{Ay:()=>n})},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),i=a.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):a===t}))}return!0}},9583:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6134);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(null,arguments)}const{forwardRef:i}=wp.element,o=i((({variant:e="",isSmall:t=!1,hasSuffixIcon:r=!1,hasPrefixIcon:i=!1,type:o="button",className:s,onClick:l,children:c,disabled:u=!1,id:d="",...p},m)=>{const f=t?"small":"base",g={base:{default:"px-4 py-3",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-4 pr-4 py-3"},small:{default:"px-5 py-2 h-[2.625rem]",hasPrefixIcon:"pl-3 pr-5 py-2 h-[2.625rem]",hasSuffixIcon:"pl-5 pr-3 py-2 h-[2.625rem]"}};return React.createElement("button",a({type:o,className:(0,n.xW)("font-sans group flex items-center justify-center gap-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition duration-150 ease-in-out cursor-pointer border-0 disabled:bg-button-disabled disabled:text-secondary-text disabled:cursor-not-allowed disabled:border-button-disabled",{primary:"text-white bg-accent-spectra hover:bg-accent-hover-spectra focus-visible:ring-accent-spectra border border-solid border-accent-spectra","ai-primary":"text-white bg-accent-st hover:bg-accent-ai-hover focus-visible:ring-accent-st border border-solid border-accent-st",white:"text-accent-spectra bg-white border border-solid border-accent-spectra focus-visible:ring-accent-spectra","ai-white":"text-accent-st bg-white border border-solid border-accent-st focus-visible:ring-accent-st",dark:"text-white border border-white bg-transparent border-solid",link:"underline border-0 bg-transparent",blank:"bg-transparent border-transparent"}[e],!i&&!r&&g[f].default,{base:"h-[3rem]",small:"h-[2.25rem]"}[f],i&&g[f].hasPrefixIcon,r&&g[f].hasSuffixIcon,{base:"sp-text-base font-medium",small:"sp-text-sm font-medium"}[f],{base:"rounded-md",small:"rounded"}[f],s),onClick:e=>{l&&"function"==typeof l&&l(e)},ref:m,disabled:u,id:d},p),c)}))},6484:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(5446),a=r(1760),i=r(4715);const o=e=>{const t=e.message?e.message:e.data;(0,n.oR)((0,i.A)({title:(0,a.__)("Error Occurred!","astra-sites"),message:(0,a.nv)((0,a.__)("Error: %s","astra-sites"),t.toString())}),i.A.getOptions({type:"error"}))}},7497:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1594),a=r(9120),i=r(3630);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(null,arguments)}const s=(0,n.memo)((({children:e,...t})=>{const[r,s]=(0,a.xQ)(),l=(0,n.useMemo)((()=>({layout:!0,initial:"out",style:{position:r?"static":"absolute"},animate:r?"in":"out",variants:{in:{opacity:1},out:{opacity:0}},onAnimationComplete:()=>!r&&s()})),[r]);return React.createElement(i.P.div,o({},t,l),e)}))},9453:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(3771),a=r(3914),i=r(6597),o=r(8242),s=r(7642),l=r(1594),c=r(9583),u=r(6041),d=r(9431),p=r(2513),m=r(9392),f=r(8354),g=r(4403),h=r(6134),y=r(5446),b=r(4715),v=r(4118),w=r(1760);const{post:x}=wp.ajax,{parse:_}=wp.blocks,{bypassAuth:E}=ast_block_template_vars,k=(0,n.A)((0,o.A)((e=>{const{getImportItemInfo:t,getCurrentScreen:r,getSitePreview:n,getActiveBlockPaletteSlug:a,getActivePagePaletteSlug:i,getDisableAi:o,getAdaptiveMode:s}=e("astra-sites");return{importItemInfo:t(),sitePreview:n(),currentScreen:r(),activeBlockPaletteSlug:a(),activePagePaletteSlug:i(),disableAI:o(),adaptiveMode:s()}})),(0,s.A)((e=>{const{setImportItemInfo:t,setTogglePopup:r,setOnboardingAiPopup:n}=e("astra-sites"),{insertBlocks:a}=wp.data.dispatch("core/block-editor");return{setImportItemInfo:t,onSetTogglePopup:r,insertBlocks:a,setOnboardingAiPopup:n}})))((0,l.memo)((({onImportFail:e,setImportItemInfo:t,requiredPlugins:r,importItemInfo:n,title:o,btnClass:s,insertBlocks:k,onSetTogglePopup:S,item:C,onClick:R,onBlockImport:A,activeBlockPaletteSlug:P,activePagePaletteSlug:T,currentScreen:N,disableAI:I,importing:O=!1,adaptiveMode:L,showIcon:B=!0,children:j})=>{let[D]=(0,l.useState)(n),F=r||[];const M=s||"",[z]=(0,l.useState)(o||(0,w.__)("Import","astra-sites")),{index:V}=wp.data.select("core/block-editor").getBlockInsertionPoint(),{importInProgress:W,syncLibNotice:U,stepData:{token:H}}=(0,a.A)((e=>{const{getImportInProgress:t,getNotice:r,getAIStepData:n}=e(v.U);return{importInProgress:t(),syncLibNotice:r(),stepData:n()}}),[]),{setImportInProgress:$,toggleConnectZipAI:Z,setNotice:G}=(0,i.A)(v.U),q="info"===U?.type,Y=(0,h.Fx)(),K=(e,t,r)=>{(0,y.oR)((0,b.A)({title:e,message:t}),b.A.getOptions({type:r}))},X=async()=>{try{G({type:"import-info",message:(0,w.__)("Activating Spectra plugin…","astra-sites")}),await(0,d.s)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"})}catch(e){$(!1),K("Import failed!","Spectra activation failed!","error")}},J=async()=>{try{G({type:"import-info",message:(0,w.__)("Activating WPForms plugin…","astra-sites")}),await(0,d.s)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}),await re()}catch(e){$(!1),K("Import failed!","WPForms activation failed!","error")}},Q=()=>{const t=D.original_content,r="all-blocks-grid"===N?"block":"page",n="block"===r?D["blocks-category"][0]:D["pages-category"][0],a=D?.id;x({action:"ast_block_templates_import_block",content:t,category:n,id:a,_ajax_nonce:ast_block_template_vars._ajax_nonce,style:"all-blocks-grid"===N?P:T,disableAI:I,block_type:r,adaptiveMode:L}).done((e=>{$(!1);const t=(0,h.XD)(_(e));k(t,V,"",!1),ee(t[0].clientId),S(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),(Y.inactive||Y.notInstalled)&&(0,f.mP)(),"function"==typeof A&&A(e,V)})).fail((()=>{$(!1),e(),K("Import failed!","Failed to import the block. Please try again later or contact support for assistance.","error-import")}))},ee=e=>{e&&setTimeout((()=>{const t=te(),r="block-"+e,n=t.getElementById(r);n&&n.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),2500)},te=()=>{const e=document.getElementsByClassName("is-tablet-preview"),t=document.getElementsByClassName("is-mobile-preview");if(0!==e.length||0!==t.length){const r=e[0]||t[0];let n=!1;r&&(n=r.getElementsByTagName("iframe")[0]);const a=n?.contentWindow.document||n?.contentDocument;if(a)return a}return document},re=()=>{D?.["post-meta"]?.["astra-site-wpforms-path"]||""?x({action:"ast_block_templates_import_wpforms",id:D?.id,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((()=>{Q()})).fail((()=>{$(!1),K("Import failed!","WPForms import failed!","error")})):Q()},ne=async r=>{W||q||($(!0),"function"==typeof R&&R(r),Y.notInstalled?(await(async()=>{try{G({type:"import-info",message:(0,w.__)("Installing Spectra plugin…","astra-sites")}),await(0,d.o)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"})}catch(e){$(!1),K("Import failed!","Spectra installation failed!","error")}})(),await X()):Y.inactive&&await X(),(0,m.V)(C.ID,"astra-blocks").then((e=>{t(e),D=e,F=e?.["post-meta"]?.["astra-blocks-required-plugins"]?p.j.parse(e["post-meta"]["astra-blocks-required-plugins"]):[],F.length?"not-installed"===ast_block_template_vars.wpforms_status?(async()=>{try{G({type:"import-info",message:(0,w.__)("Installing WPForms plugin…","astra-sites")}),await(0,d.o)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}),await J()}catch(e){$(!1),K("Import failed!","WPForms installation failed!","error")}})():"inactive"===ast_block_template_vars.wpforms_status?J():re():re()})).catch((t=>{K("Import failed!",t,"error-import"),$(!1),e()})))},ae=async()=>{Z(),(0,h.HU)("ast-import",{blockId:C.ID,blockType:C.type,blockPaletteSlug:P,pagePaletteSlug:T})};return j&&"function"==typeof j?j({onClick:H||E?ne:ae,importInProgress:W,disableImport:q}):j&&"object"==typeof j&&(0,l.isValidElement)(j)?(0,l.cloneElement)(j,{...j?.props??{},importInProgress:W,disableImport:q,onClick:(0,h.OK)(j?.props?.onClick,H||E?ne:ae)}):React.createElement(c.A,{className:(0,h.xW)("min-w-fit h-7 hover:shadow-small sp-text-sm px-3",M,(W&&!O||q)&&"opacity-50 cursor-not-allowed"),type:"button",variant:"primary",onClick:H||E?ne:ae,isSmall:!0,hasPrefixIcon:!O&&B},O?React.createElement(u.A,{className:"size-4 !shrink-0"}):React.createElement(React.Fragment,null,React.createElement(g.A,{className:"size-4 !shrink-0 inline sm:hidden"}),React.createElement("span",{className:"truncate hidden sm:inline"},z)))})))},6041:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6134);const a=({widthClassName:e="w-5",heightClassName:t="h-5",colorClassName:r="text-white",className:a})=>React.createElement("svg",{className:(0,n.xW)("animate-spin",e,t,r,a),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},React.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),React.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}))},9260:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(3771),a=r(3914),i=r(8242),o=r(7642),s=r(6134),l=r(4361),c=r(860),u=r(2231),d=r(6484);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}const m=(0,n.A)((0,i.A)((e=>{const{getFilterBlocksByCategory:t,getFilterBlocksPagesByCategory:r,getFilterSitesByCategory:n}=e("astra-sites");return{filterBlocksByCategory:t(),filterBlocksPagesByCategory:r(),filterSitesByCategory:n()}})),(0,o.A)((e=>{const{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:n,setFilterSitesByCategory:a}=e("astra-sites");return{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:n,setFilterSitesByCategory:a}})))((({item:e,className:t,setFavorites:r,setFilterBlocksByCategory:n,filterBlocksByCategory:i,filterBlocksPagesByCategory:o,filterSitesByCategory:m,setFilterBlocksPagesByCategory:f,setFilterSitesByCategory:g,setFilterFavoritres:h,children:y,...b})=>{const{favorites:v,importInProgress:w}=(0,a.A)((e=>{const{getFavorites:t,getImportInProgress:r}=e("astra-sites");return{favorites:t(),importInProgress:r()}}),[]),x=[...Array.isArray(v?.block)?v?.block:[],...Array.isArray(v?.page)?v?.page:[],...Array.isArray(v?.site)?v?.site:[]],_=x?.map(Number).includes(+e.ID),E=async t=>{t?.preventDefault(),t?.stopPropagation();const a=e?.type??"site";try{const t=await(0,s.nr)({path:"gutenberg-templates/v1/favorite",data:{type:a,block_id:e.ID,status:!_},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}});if(!t.success)throw r(t?.data),new Error(t?.message);r(t?.data)}catch(e){(0,d.v)(e)}"favorite"!==i&&"favorite"!==o&&"favorite"!==m||("block"===a&&n(""),"page"===a&&f(""),"site"===a&&g(""),c.A.emit("reset-list-count"))};return y?"function"==typeof y&&y({isFavorite:_,onClickFavorite:E}):React.createElement("button",p({className:(0,s.xW)("flex items-center justify-center rounded-full p-2 bg-white cursor-pointer border border-solid border-border-primary focus:outline-none",_?"":"text-icon-secondary",w&&"disable-click-action",t),onClick:E},b),React.createElement(u.A,{content:_?"Remove from favorites":"Add to favorites"},React.createElement(l.A,{className:(0,s.xW)("w-5 h-5 transition-colors ease-out duration-75",_?"fill-favorite text-favorite":"hover:fill-favorite hover:text-favorite")})))}))},7510:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});const n=e=>{const t=["skip","logo","fav-icon"];for(const r of t)if(e.includes(r))return!0;return!1}},4715:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(6867);const a=({title:e="",message:t="",progress:r=0,progressBar:n=!1})=>{const a=e.trim(),i="string"==typeof t?t.trim():t;return React.createElement("div",{className:"space-y-2"},React.createElement("div",{className:"space-y-2 !w-full"},!!a&&React.createElement("h6",{className:"text-background-primary text-sm font-semibold leading-5 m-0 p-0 !w-auto !h-auto"},a),!!i&&React.createElement("p",{className:"text-zip-light-border-primary text-sm font-normal leading- !w-auto !h-auto break-words"},i)),!!n&&React.createElement("div",{className:"py-2 w-full"},React.createElement("div",{className:"w-full max-w-full h-1.5 flex items-center justify-start bg-background-tertiary rounded-full overflow-hidden"},React.createElement("div",{style:{width:`${r}%`},className:"h-full rounded-full bg-accent-spectra transition-[width] ease-in-out duration-150"}))))};var i=r(2988),o=r(2944);const s=({title:e,message:t,showProgress:r=!1,progress:n=0})=>React.createElement(a,{title:e,message:t,progress:n,progressBar:r}),l=()=>React.createElement(n.Lm,{className:"animate-spin w-10 h-10"}),c=()=>React.createElement(i.A,{className:"text-accent-spectra"}),u=()=>React.createElement(o.A,{className:"w-6 h-6 text-accent-spectra"}),d=5e3;s.getOptions=({type:e="success"})=>{switch(e){case"success":return{icon:n.vd,autoClose:d};case"error-import":return{icon:n.is};case"error":return{icon:n.is,autoClose:d};case"sync":return{icon:l};case"personalize":return{icon:c};case"sync-lib-start":return{icon:l,closeButton:!1};case"sync-lib-success":return{icon:n.vd,closeButton:!0,autoClose:d};case"sync-lib-error":return{icon:n.is,closeButton:!0,autoClose:d};case"importing-site":return{icon:u,closeButton:!1};default:return{icon:n.vd}}};const p=new Proxy(s,{get:(e,t)=>t in e?e[t]:s})},2231:(e,t,r)=>{"use strict";r.d(t,{A:()=>le});var n=r(1594),a=r.n(n),i=r(2784),o=r(6607),s="tippy-content",l="tippy-backdrop",c="tippy-arrow",u="tippy-svg-arrow",d={passive:!0,capture:!0},p=function(){return document.body};function m(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function f(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function g(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout((function(){e(n)}),t)};var r}function y(e){return[].concat(e)}function b(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return[].slice.call(e)}function w(e){return Object.keys(e).reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})}function x(){return document.createElement("div")}function _(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function E(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function k(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function S(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function C(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var R={isTouch:!1},A=0;function P(){R.isTouch||(R.isTouch=!0,window.performance&&document.addEventListener("mousemove",T))}function T(){var e=performance.now();e-A<20&&(R.isTouch=!1,document.removeEventListener("mousemove",T)),A=e}function N(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var I=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),O=Object.assign({appendTo:p,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),L=Object.keys(O);function B(e){var t=(e.plugins||[]).reduce((function(t,r){var n,a=r.name,i=r.defaultValue;return a&&(t[a]=void 0!==e[a]?e[a]:null!=(n=O[a])?n:i),t}),{});return Object.assign({},e,t)}function j(e,t){var r=Object.assign({},t,{content:g(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(B(Object.assign({},O,{plugins:t}))):L).reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},O.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}var D=function(){return"innerHTML"};function F(e,t){e[D()]=t}function M(e){var t=x();return!0===e?t.className=c:(t.className=u,_(e)?t.appendChild(e):F(t,e)),t}function z(e,t){_(t.content)?(F(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?F(e,t.content):e.textContent=t.content)}function V(e){var t=e.firstElementChild,r=v(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(s)})),arrow:r.find((function(e){return e.classList.contains(c)||e.classList.contains(u)})),backdrop:r.find((function(e){return e.classList.contains(l)}))}}function W(e){var t=x(),r=x();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=x();function a(r,n){var a=V(t),i=a.box,o=a.content,s=a.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||z(o,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(M(n.arrow))):i.appendChild(M(n.arrow)):s&&i.removeChild(s)}return n.className=s,n.setAttribute("data-state","hidden"),z(n,e.props),t.appendChild(r),r.appendChild(n),a(e.props,e.props),{popper:t,onUpdate:a}}W.$$tippy=!0;var U=1,H=[],$=[];function Z(e,t){var r,n,a,o,s,l,c,u,_=j(e,Object.assign({},O,B(w(t)))),A=!1,P=!1,T=!1,N=!1,L=[],D=h(be,_.interactiveDebounce),F=U++,M=(u=_.plugins).filter((function(e,t){return u.indexOf(e)===t})),z={id:F,reference:e,popper:x(),popperInstance:null,props:_,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:M,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(a)},setProps:function(t){if(!z.state.isDestroyed){ae("onBeforeUpdate",[z,t]),he();var r=z.props,n=j(e,Object.assign({},r,w(t),{ignoreAttributes:!0}));z.props=n,ge(),r.interactiveDebounce!==n.interactiveDebounce&&(se(),D=h(be,n.interactiveDebounce)),r.triggerTarget&&!n.triggerTarget?y(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded"),oe(),ne(),G&&G(r,n),z.popperInstance&&(_e(),ke().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ae("onAfterUpdate",[z,t])}},setContent:function(e){z.setProps({content:e})},show:function(){var e=z.state.isVisible,t=z.state.isDestroyed,r=!z.state.isEnabled,n=R.isTouch&&!z.props.touch,a=m(z.props.duration,0,O.duration);if(!(e||t||r||n||Q().hasAttribute("disabled")||(ae("onShow",[z],!1),!1===z.props.onShow(z)))){if(z.state.isVisible=!0,J()&&(Z.style.visibility="visible"),ne(),de(),z.state.isMounted||(Z.style.transition="none"),J()){var i=te();E([i.box,i.content],0)}var o,s,c;l=function(){var e;if(z.state.isVisible&&!N){if(N=!0,Z.offsetHeight,Z.style.transition=z.props.moveTransition,J()&&z.props.animation){var t=te(),r=t.box,n=t.content;E([r,n],a),k([r,n],"visible")}ie(),oe(),b($,z),null==(e=z.popperInstance)||e.forceUpdate(),ae("onMount",[z]),z.props.animation&&J()&&function(e,t){me(e,(function(){z.state.isShown=!0,ae("onShown",[z])}))}(a)}},s=z.props.appendTo,c=Q(),(o=z.props.interactive&&s===p||"parent"===s?c.parentNode:g(s,[c])).contains(Z)||o.appendChild(Z),z.state.isMounted=!0,_e()}},hide:function(){var e=!z.state.isVisible,t=z.state.isDestroyed,r=!z.state.isEnabled,n=m(z.props.duration,1,O.duration);if(!(e||t||r)&&(ae("onHide",[z],!1),!1!==z.props.onHide(z))){if(z.state.isVisible=!1,z.state.isShown=!1,N=!1,A=!1,J()&&(Z.style.visibility="hidden"),se(),pe(),ne(!0),J()){var a=te(),i=a.box,o=a.content;z.props.animation&&(E([i,o],n),k([i,o],"hidden"))}ie(),oe(),z.props.animation?J()&&function(e,t){me(e,(function(){!z.state.isVisible&&Z.parentNode&&Z.parentNode.contains(Z)&&t()}))}(n,z.unmount):z.unmount()}},hideWithInteractivity:function(e){ee().addEventListener("mousemove",D),b(H,D),D(e)},enable:function(){z.state.isEnabled=!0},disable:function(){z.hide(),z.state.isEnabled=!1},unmount:function(){z.state.isVisible&&z.hide(),z.state.isMounted&&(Ee(),ke().forEach((function(e){e._tippy.unmount()})),Z.parentNode&&Z.parentNode.removeChild(Z),$=$.filter((function(e){return e!==z})),z.state.isMounted=!1,ae("onHidden",[z]))},destroy:function(){z.state.isDestroyed||(z.clearDelayTimeouts(),z.unmount(),he(),delete e._tippy,z.state.isDestroyed=!0,ae("onDestroy",[z]))}};if(!_.render)return z;var W=_.render(z),Z=W.popper,G=W.onUpdate;Z.setAttribute("data-tippy-root",""),Z.id="tippy-"+z.id,z.popper=Z,e._tippy=z,Z._tippy=z;var q=M.map((function(e){return e.fn(z)})),Y=e.hasAttribute("aria-expanded");return ge(),oe(),ne(),ae("onCreate",[z]),_.showOnCreate&&Se(),Z.addEventListener("mouseenter",(function(){z.props.interactive&&z.state.isVisible&&z.clearDelayTimeouts()})),Z.addEventListener("mouseleave",(function(){z.props.interactive&&z.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",D)})),z;function K(){var e=z.props.touch;return Array.isArray(e)?e:[e,0]}function X(){return"hold"===K()[0]}function J(){var e;return!(null==(e=z.props.render)||!e.$$tippy)}function Q(){return c||e}function ee(){var e,t,r=Q().parentNode;return r?null!=(t=y(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function te(){return V(Z)}function re(e){return z.state.isMounted&&!z.state.isVisible||R.isTouch||o&&"focus"===o.type?0:m(z.props.delay,e?0:1,O.delay)}function ne(e){void 0===e&&(e=!1),Z.style.pointerEvents=z.props.interactive&&!e?"":"none",Z.style.zIndex=""+z.props.zIndex}function ae(e,t,r){var n;void 0===r&&(r=!0),q.forEach((function(r){r[e]&&r[e].apply(r,t)})),r&&(n=z.props)[e].apply(n,t)}function ie(){var t=z.props.aria;if(t.content){var r="aria-"+t.content,n=Z.id;y(z.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(z.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var a=t&&t.replace(n,"").trim();a?e.setAttribute(r,a):e.removeAttribute(r)}}))}}function oe(){!Y&&z.props.aria.expanded&&y(z.props.triggerTarget||e).forEach((function(e){z.props.interactive?e.setAttribute("aria-expanded",z.state.isVisible&&e===Q()?"true":"false"):e.removeAttribute("aria-expanded")}))}function se(){ee().removeEventListener("mousemove",D),H=H.filter((function(e){return e!==D}))}function le(t){if(!R.isTouch||!T&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!z.props.interactive||!C(Z,r)){if(y(z.props.triggerTarget||e).some((function(e){return C(e,r)}))){if(R.isTouch)return;if(z.state.isVisible&&z.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[z,t]);!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),P=!0,setTimeout((function(){P=!1})),z.state.isMounted||pe())}}}function ce(){T=!0}function ue(){T=!1}function de(){var e=ee();e.addEventListener("mousedown",le,!0),e.addEventListener("touchend",le,d),e.addEventListener("touchstart",ue,d),e.addEventListener("touchmove",ce,d)}function pe(){var e=ee();e.removeEventListener("mousedown",le,!0),e.removeEventListener("touchend",le,d),e.removeEventListener("touchstart",ue,d),e.removeEventListener("touchmove",ce,d)}function me(e,t){var r=te().box;function n(e){e.target===r&&(S(r,"remove",n),t())}if(0===e)return t();S(r,"remove",s),S(r,"add",n),s=n}function fe(t,r,n){void 0===n&&(n=!1),y(z.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,n),L.push({node:e,eventType:t,handler:r,options:n})}))}function ge(){var e;X()&&(fe("touchstart",ye,{passive:!0}),fe("touchend",ve,{passive:!0})),(e=z.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(fe(e,ye),e){case"mouseenter":fe("mouseleave",ve);break;case"focus":fe(I?"focusout":"blur",we);break;case"focusin":fe("focusout",we)}}))}function he(){L.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,a=e.options;t.removeEventListener(r,n,a)})),L=[]}function ye(e){var t,r=!1;if(z.state.isEnabled&&!xe(e)&&!P){var n="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,oe(),!z.state.isVisible&&f(e,"MouseEvent")&&H.forEach((function(t){return t(e)})),"click"===e.type&&(z.props.trigger.indexOf("mouseenter")<0||A)&&!1!==z.props.hideOnClick&&z.state.isVisible?r=!0:Se(e),"click"===e.type&&(A=!r),r&&!n&&Ce(e)}}function be(e){var t=e.target,r=Q().contains(t)||Z.contains(t);if("mousemove"!==e.type||!r){var n=ke().concat(Z).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:_}:null})).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,a=e.popperState,i=e.props.interactiveBorder,o=a.placement.split("-")[0],s=a.modifiersData.offset;if(!s)return!0;var l="bottom"===o?s.top.y:0,c="top"===o?s.bottom.y:0,u="right"===o?s.left.x:0,d="left"===o?s.right.x:0,p=t.top-n+l>i,m=n-t.bottom-c>i,f=t.left-r+u>i,g=r-t.right-d>i;return p||m||f||g}))})(n,e)&&(se(),Ce(e))}}function ve(e){xe(e)||z.props.trigger.indexOf("click")>=0&&A||(z.props.interactive?z.hideWithInteractivity(e):Ce(e))}function we(e){z.props.trigger.indexOf("focusin")<0&&e.target!==Q()||z.props.interactive&&e.relatedTarget&&Z.contains(e.relatedTarget)||Ce(e)}function xe(e){return!!R.isTouch&&X()!==e.type.indexOf("touch")>=0}function _e(){Ee();var t=z.props,r=t.popperOptions,n=t.placement,a=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,c=J()?V(Z).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||Q()}:e,d=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(J()){var r=te().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];J()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==r?void 0:r.modifiers)||[]),z.popperInstance=(0,i.n4)(u,Z,Object.assign({},r,{placement:n,onFirstUpdate:l,modifiers:d}))}function Ee(){z.popperInstance&&(z.popperInstance.destroy(),z.popperInstance=null)}function ke(){return v(Z.querySelectorAll("[data-tippy-root]"))}function Se(e){z.clearDelayTimeouts(),e&&ae("onTrigger",[z,e]),de();var t=re(!0),n=K(),a=n[0],i=n[1];R.isTouch&&"hold"===a&&i&&(t=i),t?r=setTimeout((function(){z.show()}),t):z.show()}function Ce(e){if(z.clearDelayTimeouts(),ae("onUntrigger",[z,e]),z.state.isVisible){if(!(z.props.trigger.indexOf("mouseenter")>=0&&z.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&A)){var t=re(!1);t?n=setTimeout((function(){z.state.isVisible&&z.hide()}),t):a=requestAnimationFrame((function(){z.hide()}))}}else pe()}}function G(e,t){void 0===t&&(t={});var r=O.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",P,d),window.addEventListener("blur",N);var n,a=Object.assign({},t,{plugins:r}),i=(n=e,_(n)?[n]:function(e){return f(e,"NodeList")}(n)?v(n):Array.isArray(n)?n:v(document.querySelectorAll(n))).reduce((function(e,t){var r=t&&Z(t,a);return r&&e.push(r),e}),[]);return _(e)?i[0]:i}G.defaultProps=O,G.setDefaultProps=function(e){Object.keys(e).forEach((function(t){O[t]=e[t]}))},G.currentInput=R,Object.assign({},o.A,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),G.setDefaultProps({render:W});const q=G;var Y=r(5206);function K(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var X="undefined"!=typeof window&&"undefined"!=typeof document;function J(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Q(){return X&&document.createElement("div")}function ee(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e){if(!t.hasOwnProperty(r))return!1;if(!ee(e[r],t[r]))return!1}return!0}return!1}function te(e){var t=[];return e.forEach((function(e){t.find((function(t){return ee(e,t)}))||t.push(e)})),t}var re=X?n.useLayoutEffect:n.useEffect;function ne(e,t,r){r.split(/\s+/).forEach((function(r){r&&e.classList[t](r)}))}var ae={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,r=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){e.props.className&&!r()||ne(t,"add",e.props.className)}return{onCreate:n,onBeforeUpdate:function(){r()&&ne(t,"remove",e.props.className)},onAfterUpdate:n}}};function ie(e){return function(t){var r,i,o=t.children,s=t.content,l=t.visible,c=t.singleton,u=t.render,d=t.reference,p=t.disabled,m=void 0!==p&&p,f=t.ignoreAttributes,g=void 0===f||f,h=(t.__source,t.__self,K(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),y=void 0!==l,b=void 0!==c,v=(0,n.useState)(!1),w=v[0],x=v[1],_=(0,n.useState)({}),E=_[0],k=_[1],S=(0,n.useState)(),C=S[0],R=S[1],A=(r=function(){return{container:Q(),renders:1}},(i=(0,n.useRef)()).current||(i.current="function"==typeof r?r():r),i.current),P=Object.assign({ignoreAttributes:g},h,{content:A.container});y&&(P.trigger="manual",P.hideOnClick=!1),b&&(m=!0);var T=P,N=P.plugins||[];u&&(T=Object.assign({},P,{plugins:b&&null!=c.data?[].concat(N,[{fn:function(){return{onTrigger:function(e,t){var r=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=r.instance,R(r.content)}}}}]):N,render:function(){return{popper:A.container}}}));var I=[d].concat(o?[o.type]:[]);return re((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var r=e(t||A.ref||Q(),Object.assign({},T,{plugins:[ae].concat(P.plugins||[])}));return A.instance=r,m&&r.disable(),l&&r.show(),b&&c.hook({instance:r,content:s,props:T,setSingletonContent:R}),x(!0),function(){r.destroy(),null==c||c.cleanup(r)}}),I),re((function(){var e,t,r,n,a;if(1!==A.renders){var i=A.instance;i.setProps((t=i.props,r=T,Object.assign({},r,{popperOptions:Object.assign({},t.popperOptions,r.popperOptions,{modifiers:te([].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],(null==(a=r.popperOptions)?void 0:a.modifiers)||[]))})}))),null==(e=i.popperInstance)||e.forceUpdate(),m?i.disable():i.enable(),y&&(l?i.show():i.hide()),b&&c.hook({instance:i,content:s,props:T,setSingletonContent:R})}else A.renders++})),re((function(){var e;if(u){var t=A.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,r=e.state,n=null==(t=r.modifiersData)?void 0:t.hide;E.placement===r.placement&&E.referenceHidden===(null==n?void 0:n.isReferenceHidden)&&E.escaped===(null==n?void 0:n.hasPopperEscaped)||k({placement:r.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),r.attributes.popper={}}}])})})}}),[E.placement,E.referenceHidden,E.escaped].concat(I)),a().createElement(a().Fragment,null,o?(0,n.cloneElement)(o,{ref:function(e){A.ref=e,J(o.ref,e)}}):null,w&&(0,Y.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(E),C,A.instance):s,A.container))}}var oe=function(e,t){return(0,n.forwardRef)((function(r,i){var o=r.children,s=K(r,["children"]);return a().createElement(e,Object.assign({},t,s),o?(0,n.cloneElement)(o,{ref:function(e){J(i,e),J(o.ref,e)}}):null)}))};const se=oe(ie(q)),le=({content:e,children:t,placement:r="bottom"})=>e?React.createElement(se,{content:e,className:"!bg-tooltip",trigger:"mouseenter",hideOnClick:!0,placement:r,popperOptions:{modifiers:[{name:"preventOverflow",options:{boundary:document.querySelector("#ast-block-templates-modal")}}]},arrow:!0},React.createElement("div",{className:"inline-flex"},t)):React.createElement(n.Fragment,null,t)},6867:(e,t,r)=>{"use strict";r.d(t,{AW:()=>s,C1:()=>_,DE:()=>E,Fi:()=>y,It:()=>l,Lm:()=>d,NR:()=>o,Rk:()=>i,ev:()=>a,fp:()=>v,g9:()=>u,ik:()=>f,is:()=>m,ky:()=>h,oW:()=>g,pd:()=>b,ug:()=>x,vd:()=>p,wT:()=>w,y0:()=>c});const n="var(--colors-accent-spectra)",a=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",x:"0px",y:"0px",width:t,height:r,className:e},React.createElement("path",{fill:"currentColor",d:"M4.015.729C4.828.094 6.391-.087 7.034.037c.644.123.98.48.984.916L8.055 6.5c.003.436-.225.836-.507.89-.283.053-.7-.206-.93-.577L3.685 2.056c-.227-.371-.685-.535.33-1.327zm-.974 10.55 2.953-1.037c.411-.145.78-.548.821-.898.04-.35-.259-.766-.665-.925L3.031 7.192c-.406-.16-.875.218-.998.836 0 0-.074 2.153 0 2.598.075.446.596.799 1.008.653zm5.151.519c.008-.437-.226-.814-.522-.841-.296-.027-.766.223-1.047.556l-2.06 2.452c-.28.333-.141 1.115.268 1.264l2.154.742c.41.148 1.132-.29 1.14-.726l.067-3.447zm5.119-.571-2.583-.737c-.419-.12-.894-.108-1.055.027-.161.133-.121.556.09.938l1.63 2.961c.21.381 1.054.316 1.286-.054 0 0 .982-1.438 1.163-1.978.181-.541-.112-1.038-.531-1.157zm.629-4.164c-.116-.375-.924-1.479-1.361-1.855-.437-.377-.937-.33-1.218.001L9.696 7.178c-.282.331-.358.857-.17 1.165.188.309.689.484 1.115.389l2.879-.53c.52-.124.539-.764.42-1.139z"})),i=({className:e})=>React.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},React.createElement("path",{d:"M12.0003 9.00043V12.7504M2.69702 16.1261C1.83163 17.6261 2.9142 19.5004 4.64593 19.5004H19.3546C21.0863 19.5004 22.1689 17.6261 21.3035 16.1261L13.9492 3.37855C13.0833 1.87772 10.9172 1.87772 10.0513 3.37855L2.69702 16.1261ZM12.0003 15.7504H12.0078V15.7579H12.0003V15.7504Z",stroke:"url(#paint0_linear_17495_33324)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_17495_33324",x1:"12.0003",y1:"2.25293",x2:"12.0003",y2:"19.5004",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#B809A7"}),React.createElement("stop",{offset:"0.46875",stopColor:"#E90B76"}),React.createElement("stop",{offset:"1",stopColor:"#FC8536"})))),o=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:r,viewBox:"0 0 24 24",className:e},React.createElement("path",{fill:"currentColor",d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032 s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2 C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"})),s=({className:e})=>React.createElement("svg",{className:e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M12.5 5L15 7.5M5 17.5L17.5 5L15 2.5L2.5 15L5 17.5ZM7.5 2.5C7.5 2.94203 7.67559 3.36595 7.98816 3.67851C8.30072 3.99107 8.72464 4.16667 9.16667 4.16667C8.72464 4.16667 8.30072 4.34226 7.98816 4.65482C7.67559 4.96738 7.5 5.39131 7.5 5.83333C7.5 5.39131 7.3244 4.96738 7.01184 4.65482C6.69928 4.34226 6.27536 4.16667 5.83333 4.16667C6.27536 4.16667 6.69928 3.99107 7.01184 3.67851C7.3244 3.36595 7.5 2.94203 7.5 2.5ZM15.8333 10.8333C15.8333 11.2754 16.0089 11.6993 16.3215 12.0118C16.634 12.3244 17.058 12.5 17.5 12.5C17.058 12.5 16.634 12.6756 16.3215 12.9882C16.0089 13.3007 15.8333 13.7246 15.8333 14.1667C15.8333 13.7246 15.6577 13.3007 15.3452 12.9882C15.0326 12.6756 14.6087 12.5 14.1667 12.5C14.6087 12.5 15.0326 12.3244 15.3452 12.0118C15.6577 11.6993 15.8333 11.2754 15.8333 10.8333Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),l=({className:e})=>React.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",fill:"var(--colors-accent-st)"}),React.createElement("path",{d:"M8.25 12.375L11.25 15.375L15.75 8.625",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23",rx:"11.5",stroke:"var(--colors-accent-st)"})),c=({className:e})=>React.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 40C31.0457 40 40 31.0457 40 20C40 8.95429 31.0457 0 20 0C8.95429 0 0 8.95429 0 20C0 31.0457 8.95429 40 20 40ZM26.1503 25.86C27.3066 25.129 27.9999 23.9058 28 22.5969C28.0001 20.7781 26.6721 19.1963 24.7885 18.7718L19.1451 17.371C18.6131 17.2511 18.4857 16.5951 18.9382 16.3065L23.3349 13.5021C25.3814 12.1967 25.9135 9.58069 24.5234 7.65897C24.3497 7.41874 24.0014 7.35629 23.7455 7.51949L13.8134 14.2191C12.6791 14.9426 12 16.1466 12 17.4342C12 19.2313 13.3121 20.7941 15.1731 21.2135L20.9084 22.635C21.4416 22.7552 21.568 23.4133 21.1131 23.7009L16.6842 26.5008C14.6319 27.7982 14.0882 30.4121 15.4699 32.3392C15.6426 32.5801 15.9906 32.6439 16.2471 32.4817L26.1503 25.86Z",fill:"#5A03EF"})),u=({className:e})=>React.createElement("svg",{className:e,width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.5",width:"40",height:"40",rx:"5",fill:"#FF580E"}),React.createElement("path",{d:"M35.3703 14.3008C29.723 14.8988 26.1666 14.8553 25.103 14.8009C24.9934 14.8094 24.9573 14.6297 25.0416 14.5775C28.1077 12.286 29.2383 10.6467 29.5505 10.1205C29.611 10.0473 29.5364 9.93905 29.4487 9.94586C27.9885 9.89943 18.8162 9.72129 13.3453 10.6021C8.50536 11.3656 5.63443 15.0338 5.6516 19.8013C5.66877 24.5688 8.62351 28.5151 12.8936 29.5072C23.7242 31.9981 31.0796 24.1258 32.2937 22.7082C32.3761 22.6333 32.2997 22.5024 32.1883 22.4882L26.6251 22.4635C26.4934 22.4737 26.4556 22.2713 26.5837 22.2157C33.2052 19.1008 35.1223 15.3697 35.4941 14.4738C35.5309 14.3796 35.4581 14.294 35.3484 14.3025L35.3703 14.3008Z",fill:"white"})),d=({className:e})=>React.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#CADAFE"}),React.createElement("path",{d:"M26 13.334V17.334H22",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M14 20.0004C14.0011 18.8426 14.3371 17.7098 14.9675 16.7388C15.5979 15.7677 16.4959 14.9997 17.553 14.5275C18.6101 14.0553 19.7813 13.8991 20.9252 14.0776C22.0692 14.2562 23.137 14.7619 24 15.5337L26 17.3337",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M14 26.666V22.666H18",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M26 20C25.9989 21.1578 25.6629 22.2905 25.0325 23.2616C24.4021 24.2327 23.5041 25.0007 22.447 25.4729C21.3899 25.9451 20.2187 26.1013 19.0748 25.9228C17.9308 25.7442 16.863 25.2385 16 24.4667L14 22.6667",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),p=({className:e})=>React.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#A2FCBC"}),React.createElement("path",{d:"M25.3332 16L17.9998 23.3333L14.6665 20",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),m=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#FEB9AF"}),React.createElement("path",{d:"M26.4866 23.9995L21.1533 14.6662C21.037 14.461 20.8684 14.2903 20.6646 14.1715C20.4608 14.0528 20.2291 13.9902 19.9933 13.9902C19.7574 13.9902 19.5258 14.0528 19.322 14.1715C19.1182 14.2903 18.9496 14.461 18.8333 14.6662L13.5 23.9995C13.3824 24.2031 13.3208 24.4341 13.3213 24.6692C13.3218 24.9042 13.3845 25.135 13.5029 25.338C13.6214 25.5411 13.7914 25.7092 13.9957 25.8254C14.2001 25.9415 14.4316 26.0016 14.6666 25.9995H25.3333C25.5672 25.9993 25.797 25.9375 25.9995 25.8204C26.202 25.7032 26.3701 25.5349 26.487 25.3322C26.6038 25.1296 26.6653 24.8998 26.6653 24.6658C26.6652 24.4319 26.6036 24.2021 26.4866 23.9995Z",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M20 18V20.6667",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M20 23.334H20.0067",stroke:"#111827",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),f=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{width:t,height:r,className:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{id:"Icon"},React.createElement("path",{id:"Vector",d:"M2.89 2H17.12C17.61 2 18 2.39 18 2.88V17.12C18 17.6 17.61 18 17.12 18H13.04V11.8H15.12L15.43 9.39H13.04V7.85C13.04 7.15 13.24 6.67 14.24 6.67H15.52V4.51C15.3 4.48 14.54 4.42 13.66 4.42C11.81 4.42 10.55 5.54 10.55 7.61V9.39H8.46V11.8H10.55V18H2.89C2.65568 18 2.43081 17.9076 2.26418 17.7429C2.09756 17.5781 2.00263 17.3543 2 17.12V2.88C2 2.39 2.4 2 2.89 2Z",fill:"currentColor"}))),g=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{width:t,height:r,className:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{id:"Icon"},React.createElement("path",{id:"Vector",d:"M12.7 10C12.7 8.5 11.5 7.3 10 7.3C8.5 7.3 7.3 8.5 7.3 10C7.3 11.5 8.5 12.7 10 12.7C11.5 12.7 12.7 11.5 12.7 10ZM14.1 10C14.1 12.3 12.3 14.1 10 14.1C7.7 14.1 5.9 12.3 5.9 10C5.9 7.7 7.7 5.9 10 5.9C12.3 5.9 14.1 7.7 14.1 10ZM15.2 5.7C15.2 6.3 14.8 6.7 14.2 6.7C13.6 6.7 13.2 6.3 13.2 5.7C13.2 5.1 13.6 4.7 14.2 4.7C14.8 4.7 15.2 5.2 15.2 5.7ZM10 3.4C8.8 3.4 6.3 3.3 5.3 3.7C4.6 4 4 4.6 3.8 5.3C3.4 6.3 3.5 8.8 3.5 10C3.5 11.2 3.4 13.7 3.8 14.7C4 15.4 4.6 16 5.3 16.2C6.3 16.6 8.9 16.5 10 16.5C11.1 16.5 13.7 16.6 14.7 16.2C15.4 15.9 15.9 15.4 16.2 14.7C16.6 13.6 16.5 11.1 16.5 10C16.5 8.9 16.6 6.3 16.2 5.3C16 4.6 15.4 4 14.7 3.8C13.7 3.3 11.2 3.4 10 3.4ZM18 10V13.3C18 14.5 17.6 15.7 16.7 16.7C15.8 17.6 14.6 18 13.3 18H6.7C5.5 18 4.3 17.6 3.3 16.7C2.5 15.8 2 14.6 2 13.3V10V6.7C2 5.4 2.5 4.2 3.3 3.3C4.3 2.5 5.5 2 6.7 2H13.3C14.5 2 15.7 2.4 16.7 3.3C17.5 4.2 18 5.4 18 6.7V10Z",fill:"currentColor"}))),h=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{width:t,height:r,className:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{id:"Icon"},React.createElement("path",{id:"Vector",d:"M2.5002 18H5.5002V6.9H2.5002V18ZM4.0002 2C3.0002 2 2.2002 2.8 2.2002 3.8C2.2002 4.8 3.0002 5.6 4.0002 5.6C5.0002 5.6 5.8002 4.8 5.8002 3.8C5.8002 2.8 5.0002 2 4.0002 2ZM10.6002 8.6V6.9H7.60019V18H10.6002V12.3C10.6002 9.1 14.7002 8.9 14.7002 12.3V18H17.7002V11.2C17.7002 5.8 12.0002 6 10.6002 8.6Z",fill:"currentColor"}))),y=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{width:t,height:r,className:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{id:"Icon"},React.createElement("path",{id:"Vector",d:"M18.9396 4.46023C18.4496 5.19023 17.8296 5.84023 17.1096 6.36023C17.1196 6.51023 17.1196 6.67023 17.1196 6.83023C17.1196 11.6802 13.4296 17.2702 6.68957 17.2702C4.61957 17.2702 2.68957 16.6602 1.05957 15.6202C1.34957 15.6502 1.63957 15.6702 1.93957 15.6702C3.65957 15.6702 5.23957 15.0802 6.48957 14.1002C5.72491 14.0844 4.98429 13.8302 4.37115 13.373C3.758 12.9158 3.30296 12.2786 3.06957 11.5502C3.28957 11.5902 3.51957 11.6202 3.75957 11.6202C4.08957 11.6202 4.41957 11.5702 4.71957 11.4902C3.89017 11.32 3.14485 10.8689 2.60929 10.2131C2.07373 9.55734 1.78068 8.73693 1.77957 7.89023V7.85023C2.27957 8.12023 2.83957 8.29024 3.43957 8.31024C2.93737 7.97337 2.52593 7.51794 2.24163 6.98422C1.95733 6.4505 1.80893 5.85495 1.80957 5.25023C1.80957 4.58023 1.98957 3.95023 2.30957 3.41023C4.11957 5.63023 6.81957 7.09023 9.86957 7.24023C9.80957 6.97023 9.76957 6.69023 9.76957 6.40023C9.77222 5.42862 10.16 4.49771 10.848 3.81161C11.536 3.12552 12.468 2.74023 13.4396 2.74023C14.4996 2.74023 15.4496 3.18023 16.1196 3.90023C16.9496 3.73023 17.7396 3.43023 18.4496 3.01023C18.1696 3.86023 17.5896 4.58023 16.8296 5.03023C17.5582 4.9506 18.27 4.7583 18.9396 4.46023Z",fill:"currentColor"}))),b=({className:e,width:t=20,height:r=20})=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:r,viewBox:"0 0 50 50",className:e},React.createElement("path",{fill:"currentColor",d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})),v=({className:e})=>React.createElement("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.6229 2.95082H7.37705C4.93251 2.95082 2.95082 4.93251 2.95082 7.37705V28.6229C2.95082 31.0675 4.93251 33.0492 7.37705 33.0492H28.6229C31.0675 33.0492 33.0492 31.0675 33.0492 28.6229V7.37705C33.0492 4.93251 31.0675 2.95082 28.6229 2.95082ZM7.37705 0C3.30282 0 0 3.30282 0 7.37705V28.6229C0 32.6972 3.30282 36 7.37705 36H28.6229C32.6972 36 36 32.6972 36 28.6229V7.37705C36 3.30282 32.6972 0 28.6229 0H7.37705Z",fill:"url(#paint0_linear_368_736)"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7535 11.3258C21.6843 11.264 21.6113 11.2047 21.5345 11.1482C20.8682 10.6576 19.9639 10.4123 18.8217 10.4123C18.0456 10.4123 17.3903 10.5221 16.8558 10.7418C16.3213 10.9541 15.9113 11.2507 15.6258 11.6314C15.3191 12.0511 14.7967 12.3913 14.345 12.134C13.9904 11.932 13.663 11.6828 13.3721 11.392C12.8297 10.8496 12.432 10.1798 12.2155 9.44392C12.1201 9.11973 12.2045 8.76546 12.4597 8.54398C13.0306 8.04862 13.6979 7.63171 14.4616 7.29323C15.7502 6.72213 17.2146 6.43658 18.8547 6.43658C20.5241 6.43658 21.9811 6.72213 23.2258 7.29323C24.4778 7.86434 25.4516 8.65875 26.1472 9.67648C26.4016 10.0488 26.611 10.4426 26.7753 10.858C27.2626 12.0899 26.1379 13.2129 24.8132 13.2129C23.7792 13.2129 22.9514 12.4395 22.1693 11.7088C22.0296 11.5782 21.8913 11.449 21.7535 11.3258ZM14.9448 13.7623C15.1411 13.6856 15.3513 13.8017 15.461 13.9817C15.6514 14.2819 15.9113 14.5418 16.2408 14.7615C16.5703 14.9738 16.951 15.1605 17.383 15.3216C17.815 15.4753 18.2763 15.6071 18.7668 15.717L20.7876 16.2002C21.7688 16.4199 22.6693 16.7127 23.4894 17.0788C24.3094 17.4449 25.0196 17.8952 25.62 18.4297C26.2204 18.9642 26.6853 19.5939 27.0148 20.3187C27.3516 21.0436 27.5237 21.8746 27.531 22.8118C27.5237 24.1883 27.1722 25.3817 26.4767 26.3921C25.7884 27.3952 24.7927 28.175 23.4894 28.7315C22.1934 29.2806 20.6302 29.5552 18.7998 29.5552C16.984 29.5552 15.4025 29.2769 14.0552 28.7205C12.7154 28.164 11.6683 27.3403 10.9142 26.2494C10.5661 25.7375 10.2952 25.1692 10.1014 24.5445C9.71055 23.2844 10.8247 22.1748 12.144 22.1748H12.3151C13.4554 22.1748 14.3025 23.1531 14.9888 24.0638C15.3768 24.5617 15.893 24.9388 16.5373 25.195C17.189 25.444 17.9248 25.5684 18.7449 25.5684C19.5503 25.5684 20.2495 25.4513 20.8426 25.217C21.4429 24.9827 21.9079 24.6569 22.2374 24.2395C22.5668 23.8222 22.7316 23.3426 22.7316 22.8008C22.7316 22.2956 22.5815 21.8709 22.2813 21.5268C21.9884 21.1827 21.5564 20.8898 20.9853 20.6482C20.4215 20.4066 19.7296 20.1869 18.9096 19.9892L16.4605 19.3742C14.8539 18.9834 13.5337 18.4061 12.4999 17.6421C12.2205 17.4356 12.1174 17.0721 12.2155 16.7387C12.432 16.0029 12.8296 15.3332 13.3719 14.7908C13.8206 14.3421 14.3564 13.9924 14.9448 13.7623ZM12.0346 10.6595L11.8194 9.92824C11.8101 9.89649 11.7908 9.86859 11.7643 9.84875C11.7379 9.8289 11.7057 9.81818 11.6726 9.81818C11.6395 9.81818 11.6073 9.8289 11.5809 9.84875C11.5544 9.86859 11.5351 9.89649 11.5259 9.92824L11.3109 10.6595C11.1665 11.15 10.9014 11.5965 10.5397 11.958C10.1781 12.3196 9.73163 12.5847 9.24108 12.729L8.50975 12.9442C8.36331 12.9876 8.36331 13.1949 8.50975 13.2377L9.24108 13.453C9.73157 13.5973 10.178 13.8624 10.5396 14.224C10.9011 14.5855 11.1662 15.0319 11.3106 15.5224L11.5259 16.254C11.569 16.4002 11.7763 16.4002 11.8194 16.254L12.0346 15.5227C12.1789 15.0322 12.444 14.5857 12.8056 14.2241C13.1671 13.8625 13.6136 13.5974 14.1041 13.453L14.8358 13.2377C14.9819 13.1946 14.9819 12.9873 14.8358 12.9445L14.1044 12.7293C13.6139 12.5849 13.1673 12.3198 12.8057 11.9582C12.4441 11.5966 12.179 11.1501 12.0346 10.6595ZM9.42575 14.9796L9.49032 15.199C9.53363 15.3462 9.61317 15.4801 9.72166 15.5886C9.83014 15.6971 9.9641 15.7766 10.1113 15.8199L10.3307 15.8845C10.3745 15.8973 10.3745 15.9595 10.3307 15.9725L10.1112 16.037C9.96402 16.0804 9.83008 16.1599 9.72162 16.2684C9.61315 16.3769 9.53363 16.5108 9.49032 16.658L9.42575 16.8773C9.41282 16.9212 9.35063 16.9212 9.3377 16.8773L9.27313 16.6579C9.22981 16.5107 9.15028 16.3768 9.04181 16.2683C8.93335 16.1599 8.79941 16.0803 8.65227 16.037L8.43287 15.9725C8.38893 15.9596 8.38893 15.8974 8.43287 15.8844L8.65227 15.8198C8.79943 15.7765 8.93339 15.697 9.04187 15.5886C9.15035 15.4801 9.22989 15.3462 9.27322 15.199L9.3377 14.9796C9.34048 14.9701 9.34627 14.9617 9.35421 14.9558C9.36215 14.9498 9.3718 14.9466 9.38172 14.9466C9.39165 14.9466 9.4013 14.9498 9.40924 14.9558C9.41718 14.9617 9.42297 14.9701 9.42575 14.9796ZM9.00521 9.01037L8.90476 8.6691C8.90044 8.65428 8.89143 8.64127 8.87908 8.632C8.86673 8.62274 8.85171 8.61774 8.83628 8.61774C8.82084 8.61774 8.80582 8.62274 8.79347 8.632C8.78112 8.64127 8.77211 8.65428 8.76779 8.6691L8.66749 9.01037C8.60009 9.23928 8.47636 9.44762 8.30761 9.61634C8.13886 9.78506 7.93049 9.90876 7.70156 9.97612L7.36028 10.0766C7.29194 10.0968 7.29194 10.1936 7.36028 10.2135L7.70156 10.314C7.93046 10.3814 8.1388 10.5051 8.30753 10.6738C8.47625 10.8425 8.59996 11.0508 8.66735 11.2797L8.76779 11.6211C8.78791 11.6893 8.88464 11.6893 8.90476 11.6211L9.00521 11.2799C9.07257 11.0509 9.19627 10.8426 9.365 10.6738C9.53372 10.5051 9.74208 10.3814 9.97099 10.314L10.3124 10.2135C10.3806 10.1934 10.3806 10.0967 10.3124 10.0767L9.97113 9.97626C9.74219 9.90889 9.53381 9.78517 9.36506 9.61642C9.19631 9.44768 9.07258 9.2393 9.00521 9.01037Z",fill:"url(#paint1_linear_368_736)"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_368_736",x1:"2.34446",y1:"35.5775",x2:"14.0671",y2:"-5.20766",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#C639FF"}),React.createElement("stop",{offset:"1",stopColor:"#3662FF"})),React.createElement("linearGradient",{id:"paint1_linear_368_736",x1:"8.62596",y1:"29.2838",x2:"17.0353",y2:"3.69184",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#C639FF"}),React.createElement("stop",{offset:"1",stopColor:"#3662FF"})))),w=({className:e})=>React.createElement("svg",{className:e,width:"27",height:"22",viewBox:"0 0 27 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1 6C1 3.23858 3.23858 1 6 1H21C23.7614 1 26 3.23858 26 6V16C26 18.7614 23.7614 21 21 21H6C3.23858 21 1 18.7614 1 16V6Z",stroke:"url(#paint0_linear_4073_37202)",strokeWidth:"2"}),React.createElement("path",{d:"M13.854 16L10.102 6.2H12.02L15.884 16H13.854ZM6.112 16L9.976 6.2H11.894L8.142 16H6.112ZM7.932 13.844V12.15H14.078V13.844H7.932ZM17.0581 16V6.2H18.9761V16H17.0581Z",fill:"url(#paint1_linear_4073_37202)"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4073_37202",x1:"27",y1:"22",x2:"5.45342",y2:"-4.44353",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#FE5BE4"}),React.createElement("stop",{offset:"1",stopColor:n})),React.createElement("linearGradient",{id:"paint1_linear_4073_37202",x1:"21",y1:"16",x2:"11.7692",y2:"2.15385",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#FE5BE4"}),React.createElement("stop",{offset:"1",stopColor:n})))),x=({className:e})=>React.createElement("svg",{className:e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M4.1665 18.3333H15.8332",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M4.1665 1.66675H15.8332",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M14.1668 18.3333V14.8567C14.1667 14.4147 13.9911 13.9908 13.6785 13.6783L10.0002 10L6.32183 13.6783C6.00925 13.9908 5.83359 14.4147 5.8335 14.8567V18.3333",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M5.8335 1.66675V5.14341C5.83359 5.58541 6.00925 6.00926 6.32183 6.32175L10.0002 10.0001L13.6785 6.32175C13.9911 6.00926 14.1667 5.58541 14.1668 5.14341V1.66675",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),_=({className:e})=>React.createElement("svg",{className:e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_739_49927)"},React.createElement("path",{d:"M18.3334 9.23355V10.0002C18.3323 11.7972 17.7504 13.5458 16.6745 14.9851C15.5985 16.4244 14.0861 17.4773 12.3628 17.9868C10.6395 18.4963 8.79774 18.4351 7.11208 17.8124C5.42642 17.1896 3.98723 16.0386 3.00915 14.5311C2.03108 13.0236 1.56651 11.2403 1.68475 9.44714C1.80299 7.65402 2.49769 5.94715 3.66525 4.58111C4.83281 3.21506 6.41067 2.26303 8.16351 1.867C9.91635 1.47097 11.7502 1.65216 13.3917 2.38355",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M7.5 9.16683L10 11.6668L18.3333 3.3335",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_739_49927"},React.createElement("rect",{width:"20",height:"20",fill:"white"})))),E=()=>React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_901_38537)"},React.createElement("path",{d:"M18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18C13.9706 18 18 13.9706 18 9Z",fill:"url(#paint0_linear_901_38537)"}),React.createElement("path",{d:"M13.7502 5.84406C13.652 5.75804 13.5327 5.70272 13.406 5.6844C13.2793 5.66609 13.1503 5.68552 13.0336 5.74048L10.8624 6.75372L9.60092 4.36699C9.54062 4.25556 9.45327 4.1629 9.34774 4.09843C9.24222 4.03396 9.1223 4 9.0002 4C8.8781 4 8.75819 4.03396 8.65266 4.09843C8.54714 4.1629 8.45978 4.25556 8.39949 4.36699L7.13798 6.75372L4.96682 5.74048C4.8499 5.6856 4.72068 5.66614 4.59377 5.68431C4.46686 5.70247 4.34733 5.75753 4.24867 5.84326C4.15002 5.929 4.07619 6.04198 4.03552 6.16945C3.99486 6.29692 3.98898 6.43379 4.01855 6.56458L5.10842 11.4416C5.12926 11.536 5.16815 11.625 5.22273 11.7032C5.27731 11.7814 5.34644 11.8471 5.42594 11.8964C5.53358 11.964 5.65664 11.9998 5.78208 12C5.84306 11.9999 6 12 6 12C6 12 9.96618 12 12 12C12.1992 12 12.4081 11.9955 12.5702 11.8964C12.6502 11.8477 12.7197 11.7822 12.7743 11.7039C12.829 11.6256 12.8676 11.5363 12.8877 11.4416L13.9819 6.56458C14.0111 6.43375 14.0049 6.29695 13.964 6.16963C13.923 6.0423 13.849 5.92953 13.7502 5.84406Z",fill:"white"}),React.createElement("path",{d:"M12.5 13H5.5C5.22386 13 5 13.2239 5 13.5C5 13.7761 5.22386 14 5.5 14H12.5C12.7761 14 13 13.7761 13 13.5C13 13.2239 12.7761 13 12.5 13Z",fill:"white"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_901_38537",x1:"8.175",y1:"1.18801e-05",x2:"22.2753",y2:"0.536807",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#492CDD"}),React.createElement("stop",{offset:"1",stopColor:"#AD38E2"})),React.createElement("clipPath",{id:"clip0_901_38537"},React.createElement("rect",{width:"18",height:"18",fill:"white"}))))},4118:(e,t,r)=>{"use strict";r.d(t,{U:()=>we});var n={};r.r(n),r.d(n,{DYNAMIC_CONTENT_FLAGS_RESET:()=>B,DYNAMIC_CONTENT_FLAG_SET:()=>L,DYNAMIC_CONTENT_RESYNC_STATUS:()=>O,DYNAMIC_CONTENT_SYNC_COMPLETE:()=>I,DYNAMIC_CONTENT_SYNC_MESSAGE:()=>Z,DYNAMIC_CONTENT_SYNC_START:()=>N,FETCH_FROM_API:()=>te,LOADING_NEXT_STEP:()=>oe,RESET_KEYWORDS_IMAGES_AI_STEP:()=>_,RESET_ONBOARDING_AI_STEPS:()=>R,SET_ALL_SITES:()=>X,SET_BACKGROUND_SYNC_IN_PROGRESS:()=>ie,SET_CREDITS_DETAILS:()=>z,SET_CURRENT_AI_STEP:()=>le,SET_CURRENT_CATEGORY:()=>D,SET_DYNAMIC_CONTENT:()=>j,SET_FILTER_SITES_BY_CATEGORY:()=>Y,SET_FILTER_SITES_BY_SEARCH_TERM:()=>q,SET_HIDE_NOTICE:()=>Q,SET_IMPORT_IN_PROGRESS:()=>F,SET_IS_NEW_USER_ONBOARDING:()=>H,SET_LOADING_BLOCKS_AND_SITES:()=>re,SET_NEXT_AI_STEP:()=>S,SET_NEXT_ONBOARDING_PAGE_AI_STEP:()=>W,SET_ONBOARDING_AI_DETAILS:()=>se,SET_OPEN_AI_API_KEY_AI_STEP:()=>f,SET_PREVIOUS_AI_STEP:()=>k,SET_PREVIOUS_ONBOARDING_PAGE_AI_STEP:()=>U,SET_SHOW_PAGES_ONBOARDING:()=>M,SET_WEBSITE_CONTACT_AI_STEP:()=>E,SET_WEBSITE_DETAILS_AI_STEP:()=>y,SET_WEBSITE_DETAILS_HISTORY_AI_STEP:()=>b,SET_WEBSITE_IMAGES_AI_STEP:()=>w,SET_WEBSITE_IMAGES_PRE_SELECTED_AI_STEP:()=>x,SET_WEBSITE_KEYWORDS_AI_STEP:()=>v,SET_WEBSITE_LANGUAGE_AI_STEP:()=>ae,SET_WEBSITE_LANGUAGE_LIST_AI_STEP:()=>ne,SET_WEBSITE_NAME_AI_STEP:()=>h,SET_WEBSITE_TYPE_AI_STEP:()=>g,SET_WEBSITE_TYPE_LIST_AI_STEP:()=>ee,TOGGLE_ADAPTIVE_MODE:()=>P,TOGGLE_CONNECT_ZIP_AI:()=>J,TOGGLE_DISABLE_AI_CONTENT:()=>A,TOGGLE_DISABLE_LIVE_PREVIEW:()=>T,TOGGLE_ONBOARDING_AI_STEP:()=>C,TOGGLE_ONBOARDING_PAGE_AI:()=>V,TOGGLE_SKIP_ZIP_AI_ONBOARDING:()=>G,TOGGLE_UPDATE_ONBOARDING_IMAGES:()=>$,UPDATE_LICENSE_STATUS:()=>K});var a=r(3473),i=r(9166);i.A.resolveSelect,i.A.suspendSelect,i.A.subscribe,i.A.registerGenericStore,i.A.registerStore,i.A.use;const o=i.A.register;var s=r(2543),l=r(8354);const c=(e,t,r,n,a,i)=>p(t,r,n,a,e,i,"block"),u=(e,t,r,n,a,i)=>p(t,r,n,a,e,i,"page"),d=(e,t,r,n)=>p(e,t,r,n,(0,l.iW)()),p=(e,t,r,n,a,i,o)=>{a||(a=ast_block_template_vars.allBlocks);let l=[];e&&(l=a.filter((t=>t.title.toLowerCase().includes(e.toLowerCase()))));let c=[];if(r&&(c=a.filter((e=>{const t=Object.values(e.tag);if(t.length){for(const e in t)if(t[e].toLowerCase().includes(r.toLowerCase()))return!0;return!1}return!1}))),(e||r)&&(a=(0,s.unionBy)(l,c,"ID")),t)if("favorite"===t){const e=i[o];a=a.filter((t=>e.includes(parseInt(+t.ID))))}else a=a.filter((e=>parseInt(t)===parseInt(e.category)));return n&&(a=a.filter((e=>n===e.filter))),a},m=e=>{let t=[];for(const e in ast_block_template_vars.allSites){const r=ast_block_template_vars.allSites[e],n=r.pages||{};if(Object.values(n).length)for(const e in n)n[e]["site-ID"]=r.ID,n[e]["site-title"]=r.title,t.push(n[e])}let r=[];e&&(r=t.filter((t=>t.title.toLowerCase().includes(e.toLowerCase()))));let n=[];e&&(n=t.filter((t=>t["site-title"].toLowerCase().includes(e.toLowerCase()))));let a=[];return e&&(a=t.filter((t=>{if("tag"in t){const r=Object.values(t.tag)||[];if(r.length)for(const t in r)if(r[t].toLowerCase().includes(e.toLowerCase()))return!0;return!1}return!0}))),e&&(t=(0,s.unionBy)(r,a,n,"ID")),t},f="SET_OPEN_AI_API_KEY_AI_STEP",g="SET_WEBSITE_TYPE_AI_STEP",h="SET_WEBSITE_NAME_AI_STEP",y="SET_WEBSITE_DETAILS_AI_STEP",b="SET_WEBSITE_DETAILS_HISTORY_AI_STEP",v="SET_WEBSITE_KEYWORDS_AI_STEP",w="SET_WEBSITE_IMAGES_AI_STEP",x="SET_WEBSITE_IMAGES_PRE_SELECTED_AI_STEP",_="RESET_KEYWORDS_IMAGES_AI_STEP",E="SET_WEBSITE_CONTACT_AI_STEP",k="SET_PREVIOUS_AI_STEP",S="SET_NEXT_AI_STEP",C="TOGGLE_ONBOARDING_AI_STEP",R="RESET_ONBOARDING_AI_STEPS",A="TOGGLE_DISABLE_AI_CONTENT",P="TOGGLE_ADAPTIVE_MODE",T="TOGGLE_DISABLE_LIVE_PREVIEW",N="DYNAMIC_CONTENT_SYNC_START",I="DYNAMIC_CONTENT_SYNC_COMPLETE",O="DYNAMIC_CONTENT_RESYNC_STATUS",L="DYNAMIC_CONTENT_FLAG_SET",B="DYNAMIC_CONTENT_FLAGS_RESET",j="SET_DYNAMIC_CONTENT",D="SET_CURRENT_CATEGORY",F="SET_IMPORT_IN_PROGRESS",M="SET_SHOW_PAGES_ONBOARDING",z="SET_CREDITS_DETAILS",V="TOGGLE_ONBOARDING_PAGE_AI",W="SET_NEXT_ONBOARDING_PAGE_AI_STEP",U="SET_PREVIOUS_ONBOARDING_PAGE_AI_STEP",H="SET_IS_NEW_USER_ONBOARDING",$="TOGGLE_UPDATE_ONBOARDING_IMAGES",Z="DYNAMIC_CONTENT_SYNC_MESSAGE",G="TOGGLE_SKIP_ZIP_AI_ONBOARDING",q="SET_FILTER_SITES_BY_SEARCH_TERM",Y="SET_FILTER_SITES_BY_CATEGORY",K="UPDATE_LICENSE_STATUS",X="SET_ALL_SITES",J="TOGGLE_CONNECT_ZIP_AI",Q="SET_HIDE_NOTICE",ee="SET_WEBSITE_TYPE_LIST_AI_STEP",te="FETCH_FROM_API",re="SET_LOADING_BLOCKS_AND_SITES",ne="SET_WEBSITE_LANGUAGE_LIST_AI_STEP",ae="SET_WEBSITE_LANGUAGE_AI_STEP",ie="SET_BACKGROUND_SYNC_IN_PROGRESS",oe="LOADING_NEXT_STEP",se="SET_ONBOARDING_AI_DETAILS",le="SET_CURRENT_AI_STEP";var ce=r(6134),ue=r(5878);const de=ast_block_template_vars?.business_details,{selectedImages:pe}=(0,ce._9)(ue.Jm,{}),me=!!ast_block_template_vars.skip_zip_ai_onboarding,fe={togglePopup:!1,loadingBlocksAndSites:!1,importing:!1,allPatternsAndPages:{patterns:[],pages:[]},allBlocks:[],allPatterns:[],allFavorites:[],allPatternsCategories:[],allBlocksPages:[],allPagesCategories:[],allWireframes:(0,l.iW)(),allSites:[],allPages:[],dynamicContent:ast_block_template_vars.dynamic_content,allCategories:[],favorites:ast_block_template_vars.favorites,dynamicContentSyncStatus:{pages:!1,patterns:!1},dynamicContentReSyncStatus:!1,dynamicContentSyncMessage:null,dynamicContentSyncFlags:{patterns:{},pages:{}},currentCategory:{pages:{},patterns:{}},showPagesOnboarding:ast_block_template_vars.show_pages_onboarding,credits:{flatRates:(0,ce.BP)(ast_block_template_vars.flat_rates),...ast_block_template_vars.spec_credit_details},currentScreen:"all-blocks-grid",previousScreen:"",filterSitesByCategory:"",filterSitesBySearchTerm:"",filterBlocksByCategory:"",filterBlocksByColor:"",filterBlocksBySearchTerm:"",filterBlocksPagesByCategory:"",filterBlocksPagesByColor:"",filterBlocksPagesBySearchTerm:"",filterFavoritesBySearchTerm:"",filterPagesByPageType:"",filterPagesBySearchTerm:"",pagePreview:{},sitePreview:{},fullWidthPagePreview:{},fullWidthBlockPreview:{},notice:{},importItemInfo:{},displayDynamicPopup:!1,activeBlockPaletteSlug:"default",activePagePaletteSlug:"default",defaultBlockPalette:(0,l.ob)(),defaultPagePalette:(0,l.Wb)(),activeBlockPalette:{},activePagePalette:{},blockColorPaletteObj:ast_block_template_vars.block_color_palette,pageColorPaletteObj:ast_block_template_vars.page_color_palette,onboardingAI:{showOnboarding:!1,updateImages:!1,currentStep:de?.token?2:1,isNewUser:!!ast_block_template_vars.is_new_user,stepData:{token:de?.token||"",businessType:de?.business_category_name,businessName:de?.business_name||"",businessDetails:de?.business_description||"",businessDetailsHistory:de?.business_description?[de?.business_description]:[],keywords:de?.image_keyword||[],selectedImages:pe?.length?pe:de?.images,imagesPreSelected:!!de?.images?.length||!!de?.images?.length||!1,businessContact:{phone:de?.business_phone||"",email:de?.business_email||"",address:de?.business_address||"",socialMedia:de?.social_profiles||[]},descriptionListStore:{list:[],currentPage:0},siteLanguage:de?.language||"en"}},disableAi:!!ast_block_template_vars?.disable_ai,adaptiveMode:!!ast_block_template_vars?.adaptive_mode,disablePreview:!!ast_block_template_vars?.disable_preview,regeneratingContentCategory:null,importInProgress:!1,skipZipAIOnboarding:me,connectZipAI:!1,onboardingPageAI:{showOnboarding:!1,currentStep:1,stepData:{type:{},description:""},pageContent:{},loadingNextStep:!1},aiDesignCopilot:ast_block_template_vars.ai_design_copilot,aiAssistant:ast_block_template_vars.ai_assistant,licenseStatus:ast_block_template_vars.license_status?"active":"inactive",hideNotice:(0,ce.BP)(ast_block_template_vars.hide_notice),isSyncBusinessDetails:ast_block_template_vars.is_sync_business_details,isPersonalized:ast_block_template_vars.is_personalized,backgroundSyncInProgress:"no"},ge={getTogglePopup:({togglePopup:e})=>e,getAllWireframes:({allWireframes:e})=>e,getAllPatternsAndPages:({allPatternsAndPages:e})=>e,getAllPatterns:({allPatterns:e})=>e,getAllPatternsCategories:({allPatternsCategories:e})=>e,getImporting:({importing:e})=>e,getAllPagesCategories:({allPagesCategories:e})=>e,getDynamicContentSyncFlags:({dynamicContentSyncFlags:e})=>e,getDynamicContentSyncStatus:({dynamicContentSyncStatus:e})=>e,getDynamicContentReSyncStatus:({dynamicContentReSyncStatus:e})=>e,getAllBlocksPages:({allBlocksPages:e})=>e,getAllCategories:({allCategories:e})=>e,getDynamicContent:({dynamicContent:e})=>e,getCurrentCategory:({currentCategory:e})=>e,getFavorites:({favorites:e})=>e,getAllBlocks:({allBlocks:e})=>e,getAllSites:({allSites:e})=>e,getCount:({count:e})=>e,getCurrentScreen:({currentScreen:e})=>e,getPreviousScreen:({previousScreen:e})=>e,getSearchTerm:({searchTerm:e})=>e,getSitePreview:({sitePreview:e})=>e,getNotice:({notice:e})=>e,getImportItemInfo:({importItemInfo:e})=>e,getPagePreview:({pagePreview:e})=>e,getFullWidthPreview:({fullWidthPreview:e})=>e,getFilterBlocksByCategory:({filterBlocksByCategory:e})=>e,getFilterBlocksByColor:({filterBlocksByColor:e})=>e,getDefaultBlockColorPalette:({defaultBlockPalette:e})=>e,getActiveBlockPalette:({activeBlockPalette:e})=>e,getActiveBlockPaletteSlug:({activeBlockPaletteSlug:e})=>e,getDefaultPageColorPalette:({defaultPagePalette:e})=>e,getActivePagePalette:({activePagePalette:e})=>e,getActivePagePaletteSlug:({activePagePaletteSlug:e})=>e,getFilterBlocksBySearchTerm:({filterBlocksBySearchTerm:e})=>e,getFilterPagesByPageType:({filterPagesByPageType:e})=>e,getFilterPagesBySearchTerm:({filterPagesBySearchTerm:e})=>e,getFilterBlocksPagesByCategory:({filterBlocksPagesByCategory:e})=>e,getFilterBlocksPagesByColor:({filterBlocksPagesByColor:e})=>e,getFilterBlocksPagesBySearchTerm:({filterBlocksPagesBySearchTerm:e})=>e,getFilterFavoritres:({filterFavoritesBySearchTerm:e})=>e,getFullWidthPagePreview:({fullWidthPagePreview:e})=>e,getFullWidthBlockPreview:({fullWidthBlockPreview:e})=>e,getAllPages:({allPages:e})=>e,getBlockSearchInput:({blockSearchInput:e})=>e,getDisplayDynamicPopup:({displayDynamicPopup:e})=>e,getOnboardingAI:({onboardingAI:e})=>e,getCurrentAIStep:({onboardingAI:{currentStep:e}})=>e,getAIStepData:({onboardingAI:{stepData:e}})=>e,getDisableAi:({disableAi:e})=>e,getAdaptiveMode:({adaptiveMode:e})=>e,getDisablePreview:({disablePreview:e})=>e,getRegeneratingContentCategory:({regeneratingContentCategory:e})=>e,getImportInProgress:({importInProgress:e})=>e,getShowPagesOnboarding:({showPagesOnboarding:e})=>e,getCreditsDetails:({credits:e})=>e,getOnboardingPageAI:({onboardingPageAI:e})=>e,getDynamicContentSyncMessage:({dynamicContentSyncMessage:e})=>e,getSkipZipAIOnboarding:({skipZipAIOnboarding:e})=>e,getAiDesignCopilotStatus:({aiDesignCopilot:e})=>e,getIsPersonalized:({isPersonalized:e})=>e,getAiAssistantStatus:({aiAssistant:e})=>e,getFilterSitesBySearchTerm:({filterSitesBySearchTerm:e})=>e,getFilterSitesByCategory:({filterSitesByCategory:e})=>e,getLicenseStatus:({licenseStatus:e})=>e,getBlockColorPaletteObj:({blockColorPaletteObj:e})=>e,getPageColorPaletteObj:({pageColorPaletteObj:e})=>e,getConnectZipAI:({connectZipAI:e})=>e,getHideNotice:({hideNotice:e})=>e,getLoadingBlocksAndSites:({loadingBlocksAndSites:e})=>e,getIsSyncBusinessDetails:({isSyncBusinessDetails:e})=>e,getBackgroundSyncStatus:({backgroundSyncInProgress:e})=>e,getLoadingNextStep:({onboardingAI:{loadingNextStep:e}})=>e};function he(e){return i.A.select(e)}const ye={setImporting:e=>({type:"SET_IMPORTING",importing:e}),setTogglePopup:()=>({type:"TOGGLE_POPUP"}),setOnboardingAiPopup:()=>({type:"SET_ONBOARDING_AI_POPUP"}),setFullWidthPagePreview:e=>({type:"FULL_WIDTH_PAGE_PREVIEW",fullWidthPagePreview:e}),setFullWidthBlockPreview:e=>({type:"FULL_WIDTH_BLOCK_PREVIEW",fullWidthBlockPreview:e}),*setCurrentScreen(e){return he(we).getConnectZipAI()&&(yield ye.toggleConnectZipAI()),{type:"SET_CURRENT_SCREEN",currentScreen:e}},setPreviousScreen:e=>({type:"SET_PREVIOUS_SCREEN",previousScreen:e}),setSitePreview:e=>({type:"SET_SITE_PREVIEW",sitePreview:e}),setSearchPagePreview:e=>({type:"SET_SEARCH_PAGE_PREVIEW",item:e}),setNotice:e=>({type:"SET_NOTICE",notice:e}),setPagePreview:e=>({type:"SET_PAGE_PREVIEW",pagePreview:e}),setFullWidthPreview:e=>({type:"SET_FULL_PREVIEW",fullWidthPreview:e}),setSearchTerm:e=>({type:"SEARCH_TERM",searchTerm:e}),setFilterBlocksByCategory:e=>({type:"SET_FILTER_BLOCKS_BY_CATEGORY",filterBlocksByCategory:e}),setFilterBlocksByColor:e=>({type:"SET_FILTER_BLOCKS_BY_COLOR",filterBlocksByColor:e}),setDefaultBlockPalette:e=>({type:"SET_DEFAULT_BLOCK_PALETTE",defaultBlockPalette:e}),setActiveBlockPalette:e=>({type:"SET_ACTIVE_BLOCK_PALETTE",activeBlockPalette:e}),setActiveBlockPaletteSlug:e=>({type:"SET_ACTIVE_BLOCK_PALETTE_SLUG",activeBlockPaletteSlug:e}),setDefaultPagePalette:e=>({type:"SET_DEFAULT_PAGE_PALETTE",defaultPagePalette:e}),setActivePagePalette:e=>({type:"SET_ACTIVE_PAGE_PALETTE",activePagePalette:e}),setActivePagePaletteSlug:e=>({type:"SET_ACTIVE_PAGE_PALETTE_SLUG",activePagePaletteSlug:e}),setImportItemInfo:e=>({type:"SET_IMPORT_ITEM_INFO",importItemInfo:e}),setFilterBlocksBySearchTerm:e=>({type:"SET_FILTER_BLOCKS_BY_SEARCH_TERM",filterBlocksBySearchTerm:e}),setFilterBlocksPagesByCategory:e=>({type:"SET_FILTER_BLOCKS_PAGES_BY_CATEGORY",filterBlocksPagesByCategory:e}),setFilterBlocksPagesByColor:e=>({type:"SET_FILTER_BLOCKS_PAGES_BY_COLOR",filterBlocksPagesByColor:e}),setFilterBlocksPagesBySearchTerm:e=>({type:"SET_FILTER_BLOCKS_PAGES_BY_SEARCH_TERM",filterBlocksPagesBySearchTerm:e}),setFilterFavoritres:e=>({type:"SET_FILTER_FAVORITRES",filterFavoritesBySearchTerm:e}),setFilterSitesByCategory:e=>({type:Y,payload:e}),*setFilterSitesBySearchTerm(e){return yield ye.setFilterSitesByCategory(""),{type:q,payload:e}},setFilterPagesByPageType:e=>({type:"SET_FILTER_PAGES_BY_PAGE_TYPE",filterPagesByPageType:e}),setFilterPagesBySearchTerm:e=>({type:"SET_FILTER_PAGES_BY_SEARCH_TERM",filterPagesBySearchTerm:e}),setAllPages:e=>({type:"SET_ALL_PAGES",allPages:e}),setAllSites:e=>({type:X,payload:e}),setAllPatterns:e=>({type:"SET_ALL_PATTERNS",allPatterns:e}),setCurrentCategory:(e,t)=>({type:"SET_CURRENT_CATEGORY",payload:{type:e,category:t}}),setAllCategories:e=>({type:"SET_ALL_CATEGORIES",allCategories:e}),setDynamicContent:e=>({type:"SET_DYNAMIC_CONTENT",dynamicContent:e}),setFavorites:e=>({type:"SET_FAVORITES",favorites:e}),setState:e=>({type:"SET_STATE",state:e}),setDisplayDynamicPopup:e=>({type:"SET_DISPLAY_DYNAMIC_POPUP",displayDynamicPopup:e}),toggleOnboardingAIStep:e=>({type:C,...!!e&&{payload:e}}),setNextAIStep:()=>({type:S}),setPreviousAIStep:()=>({type:k}),setCurrentAIStep:e=>({type:le,payload:e}),setTokenStep:e=>({type:f,payload:e}),setWebsiteTypeAIStep:e=>({type:g,payload:e}),setWebsiteNameAIStep:e=>({type:h,payload:e}),setWebsiteDetailsAIStep:e=>({type:y,payload:e}),setWebsiteDetailsHistoryAIStep:e=>({type:b,payload:e}),setWebsiteKeywordsAIStep:e=>({type:v,payload:e}),setWebsiteImagesAIStep:e=>({type:w,payload:e}),setWebsiteImagesPreSelectedAIStep:e=>({type:x,payload:e}),resetKeywordsImagesAIStep:()=>({type:_}),setWebsiteContactAIStep:e=>({type:E,payload:e}),resetOnboardingAISteps:()=>({type:R}),toggleDisableAiContent:e=>({type:A,...!!e&&{payload:e}}),toggleAdaptiveMode:e=>({type:P,...!!e&&{payload:e}}),toggleDisableLivePreview:e=>({type:T,...!!e&&{payload:e}}),*dynamicContentSyncStart(e){return he(we).getDynamicContentSyncMessage()&&(yield ye.setDynamicContentSyncMessage(null)),{type:N,payload:e}},*dynamicContentSyncComplete(e,t=null){return t&&(yield ye.setDynamicContentSyncMessage(t)),{type:I,payload:e}},setDynamicContentSyncMessage:e=>({type:Z,payload:e}),dynamicContentReSyncStatus:()=>({type:O}),dynamicContentFlagSet:(e,t)=>({type:L,payload:{key:e,value:t}}),dynamicContentFlagReset(e,t){const r={type:e};return t&&(r.flags=t),{type:B,payload:r}},setAllBlocksData:e=>({type:"SET_ALL_BLOCKS",payload:e}),setRegeneratingContentCategory:e=>({type:"SET_REGENERATING_CONTENT_CATEGORY",regeneratingContentCategory:e}),setImportInProgress:e=>({type:F,payload:e}),setShowPagesOnboarding:()=>({type:M}),setCreditsDetails:e=>({type:z,payload:(0,ce.BP)(e)}),toggleOnboardingPageAI:()=>({type:V}),setNextOnboardingPagesAIStep:()=>({type:W}),setPreviousOnboardingPagesAIStep:()=>({type:U}),setIsNewUserOnboarding:()=>({type:H}),toggleUpdateOnboardingImages:()=>({type:$}),toggleSkipZipAIOnboarding:()=>({type:G}),updateLicenseStatus:e=>({type:K,payload:e}),setBlockColorPaletteObj:e=>({type:"SET_BLOCK_COLOR_PALETTE_OBJ",blockColorPaletteObj:e}),setPageColorPaletteObj:e=>({type:"SET_PAGE_COLOR_PALETTE_OBJ",pageColorPaletteObj:e}),toggleConnectZipAI:()=>({type:J}),setHideNotice:e=>({type:Q,payload:e}),setLoadingBlocksAndSites:e=>({type:re,payload:e}),setIsSyncBusinessDetails:e=>({type:"SET_IS_SYNC_BUSINESS_DETAILS",isSyncBusinessDetails:e}),setIsPersonalized:e=>({type:"SET_IS_PERSONALIZED",isPersonalized:e}),fetchFromAPI:e=>({type:te,path:e}),setBackgroundSyncStatus:e=>({type:ie,payload:e}),*initializeBlocksAndSites(){const e=he(we).getAllPatternsAndPages();if(!(e.patterns.length&&e.pages.length||he(we).getLoadingBlocksAndSites())){yield ye.setLoadingBlocksAndSites(!0);try{const e=yield ye.fetchFromAPI(ue.Uc);if(!e?.success)return ye.setLoadingBlocksAndSites(!0);"yes"===e?.syncing&&(yield ye.setBackgroundSyncStatus("yes"));const t=yield ye.fetchFromAPI("gutenberg-templates/v1/categories"),r=t?.total_requests,n=2,a=Math.ceil(r/n);let i=[],o=[];for(let e=0;e<n;e++){const t=e*a+1,n=Math.min((e+1)*a,r),s=yield ye.fetchFromAPI(`gutenberg-templates/v1/blocks?start=${t}&end=${n}`);i=[...i,...s?.allBlocks],o=[...o,...s?.allBlocksPages]}const s=yield ye.fetchFromAPI("gutenberg-templates/v1/sites");yield ye.setAllCategories(t?.categories),yield ye.setAllSites(s?.sites),yield ye.setAllBlocksData({blocks:i,blocks_pages:o})}catch(e){console.error(e)}finally{return ye.setLoadingBlocksAndSites(!1)}}},setBusinessTypeListAIStep:e=>({type:ee,payload:e}),setSiteLanguageListAIStep:e=>({type:ne,payload:e}),setWebsiteLanguageAIStep:e=>({type:ae,payload:e}),setLoadingNextStep:e=>({type:oe,payload:e}),setOnboardingAIDetails:e=>({type:se,payload:e})},be=ye,ve={FETCH_FROM_API:({path:e})=>(0,ce.nr)({path:e,headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}})},we="astra-sites";o((0,a.A)(we,{reducer:(e=fe,t)=>{if("SET_DISPLAY_DYNAMIC_POPUP"===t.type)return{...e,displayDynamicPopup:t.displayDynamicPopup};if("SET_STATE"===t.type)return{...e,...t.state};if("FULL_WIDTH_PAGE_PREVIEW"===t.type)return{...e,fullWidthPagePreview:t.fullWidthPagePreview};if("SET_IMPORTING"===t.type)return{...e,importing:t.importing};if("SET_CURRENT_CATEGORY"===t.type){const{type:r,category:n}=t.payload,a={...e.currentCategory};return{...e,currentCategory:{...a,[r]:n}}}if("FULL_WIDTH_BLOCK_PREVIEW"===t.type)return{...e,fullWidthBlockPreview:t.fullWidthBlockPreview};if("SET_IMPORT_ITEM_INFO"===t.type)return{...e,importItemInfo:t.importItemInfo};if("SET_NOTICE"===t.type)return{...e,notice:t.notice};if("SET_SEARCH_PAGE_PREVIEW"===t.type){let r=[];const n=t.item["site-ID"]||"";return n&&(r=e.allSites.filter((e=>n===e.ID)),r&&(r=r[0])),{...e,sitePreview:r,pagePreview:t.item}}if("SET_CURRENT_SCREEN"===t.type){const r="all-sites-grid"===t.currentScreen||"all-blocks-grid"===t.currentScree?"":e.currentScreen;return{...e,currentScreen:t.currentScreen,previousScreen:r}}if("SET_PREVIOUS_SCREEN"===t.type)return{...e,previousScreen:t.previousScreen};if("TOGGLE_POPUP"===t.type){const t="gt-current-screen-"+ast_block_template_vars.site_host,r="all-single-site-pages"!==localStorage.getItem(t)?localStorage.getItem(t):"";return{...fe,currentScreen:r||fe.currentScreen,togglePopup:!e.togglePopup,filterBlocksByCategory:e.filterBlocksByCategory,filterBlocksByColor:e.filterBlocksByColor,allPatterns:e.allPatterns,allFavorites:e.allFavorites,allBlocksPages:e.allBlocksPages,allWireframes:e.allWireframes,allCategories:e.allCategories,filterBlocksBySearchTerm:e.filterBlocksBySearchTerm,activePalette:e.activePalette,filterBlocksPagesByCategory:e.filterBlocksPagesByCategory,filterBlocksPagesByColor:e.filterBlocksPagesByColor,filterBlocksPagesBySearchTerm:e.filterBlocksPagesBySearchTerm,filterFavoritesBySearchTerm:e.filterFavoritesBySearchTerm,dynamicContent:{...e.dynamicContent},onboardingAI:{...e.onboardingAI},disableAi:e.disableAi,adaptiveMode:e.adaptiveMode,disablePreview:e.disablePreview,showPagesOnboarding:e.showPagesOnboarding,credits:{...e.credits},dynamicContentSyncStatus:{...e.dynamicContentSyncStatus},dynamicContentReSyncStatus:e.dynamicContentReSyncStatus,dynamicContentSyncFlags:{...e.dynamicContentSyncFlags},currentCategory:{...e.currentCategory},regeneratingContentCategory:e.regeneratingContentCategory,skipZipAIOnboarding:e.skipZipAIOnboarding,licenseStatus:e.licenseStatus,hideNotice:{...e.hideNotice},allPagesCategories:e.allPagesCategories,allPatternsCategories:e.allPatternsCategories,allPatternsAndPages:e.allPatternsAndPages,allSites:e.allSites,loadingBlocksAndSites:e.loadingBlocksAndSites,isSyncBusinessDetails:e.isSyncBusinessDetails,isPersonalized:e.isPersonalized,backgroundSyncInProgress:e.backgroundSyncInProgress,importInProgress:e.importInProgress,favorites:e.favorites}}if("SET_ONBOARDING_AI_POPUP"===t.type){const t={...e.onboardingAI};return t.showOnboarding=!e.onboardingAI.showOnboarding,{...e,onboardingAI:t}}if("SET_SITE_PREVIEW"===t.type)return{...e,sitePreview:t.sitePreview};if("SET_PAGE_PREVIEW"===t.type)return{...e,pagePreview:t.pagePreview};if("SET_FULL_PREVIEW"===t.type)return{...e,fullWidthPreview:t.fullWidthPreview};if("SET_DEFAULT_BLOCK_PALETTE"===t.type)return{...e,defaultBlockPalette:t.defaultBlockPalette};if("SET_DEFAULT_PAGE_PALETTE"===t.type)return{...e,defaultPagePalette:t.defaultPagePalette};if("SET_ACTIVE_BLOCK_PALETTE"===t.type)return{...e,activeBlockPalette:t.activeBlockPalette};if("SET_ACTIVE_BLOCK_PALETTE_SLUG"===t.type)return{...e,activeBlockPaletteSlug:t.activeBlockPaletteSlug};if("SET_ACTIVE_PAGE_PALETTE"===t.type)return{...e,activePagePalette:t.activePagePalette};if("SET_ACTIVE_PAGE_PALETTE_SLUG"===t.type)return{...e,activePagePaletteSlug:t.activePagePaletteSlug};if("SET_FILTER_BLOCKS_BY_CATEGORY"===t.type){const r={...e,filterBlocksBySearchTerm:"",filterBlocksByCategory:t.filterBlocksByCategory};return"all-wireframe-grid"===e.currentScreen?r.allWireframes=d("",t.filterBlocksByCategory,"",e.filterBlocksByColor):r.allPatterns=p("",t.filterBlocksByCategory,"",e.filterBlocksByColor,e.allPatternsAndPages.patterns,e.favorites,"block"),r}if("SET_FILTER_BLOCKS_BY_COLOR"===t.type){const r={...e,filterBlocksBySearchTerm:"",filterBlocksByColor:t.filterBlocksByColor};return"all-wireframe-grid"===e.currentScreen?r.allWireframes=d("",e.filterBlocksByCategory,"",t.filterBlocksByColor):r.allPatterns=c("",e.filterBlocksByCategory,"",t.filterBlocksByColor,e.favorites),r}if(t.type===ee)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessTypeList:t.payload}}};if(t.type===ne)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,siteLanguageList:t.payload}}};if(t.type===ae)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,siteLanguage:t.payload},limitExceedModal:{...e.onboardingAI.limitExceedModal,limitExceedModal:t.payload}}};if("SET_FILTER_FAVORITRES"===t.type){const r={...e,filterFavoritesBySearchTerm:t.filterFavoritesBySearchTerm};return r.allFavorites=p(t.filterFavoritesBySearchTerm,r.filterBlocksPagesByCategory,"","",e.allPatternsAndPages.patterns,e.favorites,"block"),r}if("SET_FILTER_BLOCKS_BY_SEARCH_TERM"===t.type){const r={...e,filterBlocksByColor:"",filterBlocksByCategory:"",filterBlocksBySearchTerm:t.filterBlocksBySearchTerm};return"all-wireframe-grid"===e.currentScreen?r.allWireframes=d(t.filterBlocksBySearchTerm,"",t.filterBlocksBySearchTerm,""):r.allPatterns=p(t.filterBlocksBySearchTerm,r.filterBlocksByCategory,"","",e.allPatternsAndPages.patterns,e.favorites,"block"),r}if("SET_FILTER_BLOCKS_PAGES_BY_CATEGORY"===t.type){const r={...e,filterBlocksPagesBySearchTerm:"",filterBlocksPagesByCategory:t.filterBlocksPagesByCategory};return r.allBlocksPages=p(r.filterBlocksPagesBySearchTerm,t.filterBlocksPagesByCategory,"","",e.allPatternsAndPages.pages,e.favorites,"page"),r}if("SET_FILTER_BLOCKS_PAGES_BY_COLOR"===t.type){const r={...e,filterBlocksPagesBySearchTerm:"",filterBlocksPagesByColor:t.filterBlocksPagesByColor};return r.allBlocksPages=u("",e.filterBlocksPagesByCategory,"",t.filterBlocksPagesByColor,e.favorites),r}if("SET_FILTER_BLOCKS_PAGES_BY_SEARCH_TERM"===t.type){const r={...e,filterBlocksPagesByColor:"",filterBlocksPagesByCategory:"",filterBlocksPagesBySearchTerm:t.filterBlocksPagesBySearchTerm};return r.allBlocksPages=p(t.filterBlocksPagesBySearchTerm,r.filterBlocksPagesByCategory,"","",e.allPatternsAndPages.pages,e.favorites,"page"),r}if("SET_FILTER_PAGES_BY_SEARCH_TERM"===t.type)return t.filterPagesBySearchTerm.length?{...e,allPages:m(t.filterPagesBySearchTerm),filterPagesBySearchTerm:t.filterPagesBySearchTerm}:{...e,allPages:[],filterPagesBySearchTerm:t.filterPagesBySearchTerm};if(t.type===C)return{...e,onboardingAI:{...e.onboardingAI,showOnboarding:n?.payload??!e.onboardingAI.showOnboarding,currentStep:e.onboardingAI.stepData.token?2:1,updateImages:!1}};if(t.type===T)return{...e,disablePreview:n?.payload??!e.disablePreview};if(t.type===A)return{...e,disableAi:n?.payload??!e.disableAi};if(t.type===P)return{...e,adaptiveMode:n?.payload??!e.adaptiveMode};if(t.type===S){const t=5,r=e.onboardingAI.currentStep+1;return r>t?e:{...e,onboardingAI:{...e.onboardingAI,currentStep:r}}}if(t.type===k){const t=e.onboardingAI.currentStep-1;return t<0||0===t?e:{...e,onboardingAI:{...e.onboardingAI,currentStep:t}}}if(t.type===le)return{...e,onboardingAI:{...e.onboardingAI,currentStep:t.payload}};if(t.type===g)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessType:t.payload}}};if(t.type===h)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessName:t.payload}}};if(t.type===y)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessDetails:t.payload}}};if(t.type===b)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessDetailsHistory:t.payload}}};if(t.type===E)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,businessContact:t.payload}}};if(t.type===v)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,keywords:t.payload}}};if(t.type===w)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,selectedImages:t.payload}}};if(t.type===x)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,imagesPreSelected:t.payload}}};if(t.type===_)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,keywords:[],selectedImages:[],imagesPreSelected:!1}}};if(t.type===f)return{...e,onboardingAI:{...e.onboardingAI,stepData:{...e.onboardingAI.stepData,token:t.payload}}};if(t.type===R)return{...e,onboardingAI:{...e.onboardingAI,currentStep:1,stepData:{token:"",businessType:"",businessName:"",businessDetails:"",keywords:[],selectedImages:[],imagesPreSelected:!1,businessContact:{phone:"",email:"",address:"",socialMedia:[]}}}};if("SET_ALL_PAGES"===t.type)return{...e,allPages:t.allPages};if("SET_ALL_PATTERNS"===t.type)return{...e,allPatterns:t.allPatterns};if("SET_ALL_CATEGORIES"===t.type)return{...e,allCategories:t.allCategories};if("SET_DYNAMIC_CONTENT"===t.type)return{...e,dynamicContent:t.dynamicContent};if("SET_IS_SYNC_BUSINESS_DETAILS"===t.type)return{...e,isSyncBusinessDetails:t.isSyncBusinessDetails};if("SET_IS_PERSONALIZED"===t.type)return{...e,isPersonalized:t.isPersonalized};if("SET_FAVORITES"===t.type){const{currentScreen:r,filterBlocksPagesByCategory:n,filterBlocksByCategory:a}=e,i={...e,favorites:t.favorites};return"favorite"!==a&&"favorite"!==n||("all-blocks-grid"===r&&(i.allPatterns=c(e.allPatterns,"","favorite","",e.filterBlocksByColor,t.favorites)),"all-block-pages-grid"===r&&(i.allBlocksPages=u(e.allBlocksPages,"","favorite","",e.filterBlocksPagesByColor,t.favorites))),i}if(t.type===N){let r={...e.dynamicContentSyncStatus};return t.payload?r[t.payload]=!0:r={pages:!0,patterns:!0},{...e,dynamicContentSyncStatus:r}}if(t.type===I){let r={...e.dynamicContentSyncStatus};return t.payload?r[t.payload]=!1:r={pages:!1,patterns:!1},{...e,dynamicContentSyncStatus:r}}if(t.type===Z)return{...e,dynamicContentSyncMessage:t.payload};if(t.type===O)return{...e,dynamicContentReSyncStatus:!e.dynamicContentReSyncStatus};if(t.type===L){const r={...e.dynamicContentSyncFlags};return r.patterns?.hasOwnProperty(t.payload.key)&&(r.patterns[t.payload.key]=t.payload.value),r.pages?.hasOwnProperty(t.payload.key)&&(r.pages[t.payload.key]=t.payload.value),{...e,dynamicContentSyncFlags:r}}if(t.type===B){const{dynamicContentSyncFlags:r,allPatternsCategories:n,allPagesCategories:a}=e,i="patterns"===t.payload.type?n:a;return t.payload?.flags&&(r[t.payload.type]=Object.fromEntries(t.payload.flags.map((e=>[e,!1])))),t.payload.flags||i.length===r[t.payload.type]?.length||(r[t.payload.type]=Object.fromEntries(i.map((e=>[e.id,!1])))),Object.keys(r[t.payload.type]).forEach((e=>{r[t.payload.type][e]=!1})),{...e,dynamicContentSyncFlags:{...r}}}if("SET_ALL_BLOCKS"===t.type){let{blocks:r,blocks_pages:n}=t.payload;const a=(0,ce.Sk)(r,e.allCategories),i=(0,ce.NI)(n,e.allCategories);return r=(0,ce.uc)(r,a.categories,"block"),n=(0,ce.uc)(n,i.categories,"page"),{...e,allPatternsAndPages:{patterns:r,pages:n},allPatterns:p(e.filterBlocksBySearchTerm,e.filterBlocksByCategory,"","",r,e.favorites,"block"),allBlocksPages:p(e.filterBlocksPagesBySearchTerm,e.filterBlocksPagesByCategory,"","",n,e.favorites,"page"),allPatternsCategories:a.categories,allPagesCategories:i.categories,dynamicContentSyncFlags:{patterns:Object.fromEntries(a.categories.map((e=>[e.id,!1]))),pages:Object.fromEntries(i.categories.map((e=>[e.id,!1])))}}}if("SET_REGENERATING_CONTENT_CATEGORY"===t.type)return{...e,regeneratingContentCategory:t.regeneratingContentCategory};if(t.type===F)return{...e,importInProgress:t.payload};if(M===t.type)return{...e,showPagesOnboarding:!1};if(t.type===z)return{...e,credits:{...e.credits,...t.payload}};if(t.type===V){const t={...e.onboardingPageAI};return{...fe,onboardingPageAI:{...t,showOnboarding:!t.showOnboarding},togglePopup:!e.togglePopup}}if(t.type===W){const t=3,r=e.onboardingPageAI.currentStep+1;return r>t?e:{...e,onboardingPageAI:{...e.onboardingPageAI,currentStep:r}}}if(t.type===U){const t=e.onboardingPageAI.currentStep-1;return t<0||0===t?e:{...e,onboardingPageAI:{...e.onboardingPageAI,currentStep:t}}}return t.type===H?{...e,onboardingAI:{...e.onboardingAI,isNewUser:!1}}:t.type===$?{...e,onboardingAI:{...e.onboardingAI,showOnboarding:!e.onboardingAI.showOnboarding,updateImages:!e.onboardingAI.updateImages,currentStep:e.onboardingAI.updateImages?1:5}}:t.type===G?{...e,skipZipAIOnboarding:!e.skipZipAIOnboarding}:q===t.type?{...e,filterSitesBySearchTerm:t.payload}:Y===t.type?{...e,filterSitesByCategory:t.payload}:t.type===K?{...e,licenseStatus:t.payload}:t.type===X?{...e,allSites:t.payload}:"SET_BLOCK_COLOR_PALETTE_OBJ"===t.type?{...e,blockColorPaletteObj:t.blockColorPaletteObj}:"SET_PAGE_COLOR_PALETTE_OBJ"===t.type?{...e,pageColorPaletteObj:t.pageColorPaletteObj}:t.type===J?{...e,connectZipAI:!e.connectZipAI}:t.type===Q?{...e,hideNotice:{...e.hideNotice,...t.payload}}:t.type===re?{...e,loadingBlocksAndSites:t.payload}:t.type===ie?{...e,backgroundSyncInProgress:t.payload}:t.type===oe?{...e,onboardingAI:{...e.onboardingAI,loadingNextStep:t.payload}}:t.type===se?{...e,onboardingAI:t.payload}:e},actions:be,selectors:ge,controls:ve}))},5878:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,Jm:()=>n,Uc:()=>a}),ast_block_template_vars.home_url;const n="astra-sites",a="gutenberg-templates/v1/setup",i=1e6},5034:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});const n={linearTween:(e,t,r,n)=>r*e/n+t,easeInQuad:(e,t,r,n)=>r*(e/=n)*e+t,easeOutQuad:(e,t,r,n)=>-r*(e/=n)*(e-2)+t,easeInOutQuad:(e,t,r,n)=>(e/=n/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t,easeInCubic:(e,t,r,n)=>r*(e/=n)*e*e+t,easeOutCubic:(e,t,r,n)=>(e/=n,r*(--e*e*e+1)+t),easeInOutCubic:(e,t,r,n)=>(e/=n/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t};Object.seal(n);const a=n},860:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(()=>{const e={};return Object.seal({on:(t,r)=>{e[t]||(e[t]=[]),e[t].push(r)},emit:(t,...r)=>{const n=e[t];n&&n.forEach((e=>e(...r)))},removeListener:(t,r)=>{const n=e[t];if(n){const e=n.findIndex((e=>e===r));-1!==e&&n.splice(e,1)}},removeAllListeners:t=>{e[t]&&delete e[t]}})})()},8354:(e,t,r)=>{"use strict";r.d(t,{R2:()=>f,Wb:()=>m,i9:()=>h,iW:()=>c,iZ:()=>l,mP:()=>u,ob:()=>p,yL:()=>g});var n=r(2543),a=r.n(n),i=r(6134),o=r(1760),s=r(6484);const l=(e="")=>(e=(e=e.replace("&#038;","&")).replace("&amp;","&"),(e=a()(e)).__wrapped__),c=()=>(()=>{const e={patterns:[],wireframes:[]},{allBlocks:t}=ast_block_template_vars;for(const r in t){const n=t[r].wireframe||{};Object.keys(n).length?e.wireframes.push(t[r]):e.patterns.push(t[r])}return e})().wireframes,u=async()=>{const e=wp.data.select("core/editor")?.getCurrentPostId();if(e){let t;try{t=(0,o.__)("Installed the required plugin. The page will be saved and refreshed.","astra-sites"),d("success",t),await wp.data.dispatch("core/editor").savePost(e),window.location.reload()}catch(e){t=(0,o.nv)((0,o.__)("Error saving the page: %s","astra-sites"),e),d("error",t)}}},d=(e,t)=>{window.wp.data.dispatch("core/notices").createNotice(e,t,{isDismissible:!0})},p=()=>ast_block_template_vars.block_color_palette["style-1"],m=()=>ast_block_template_vars.page_color_palette["style-1"],f=async(e,t,r,n,a,o,s)=>{const l=[];let c=!1;for(const[s,u]of e.entries())if(u?.id){n(u);try{s===e.length-1&&(c=!0);const n=new window.FormData;n.append("action","ast-block-templates-regenerate"),n.append("security",ast_block_template_vars.ai_content_ajax_nonce),n.append("category",u.id),n.append("regenerate",!1),n.append("block_type",o),n.append("is_last_category",c);const d=await(0,i.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:n});if(d.success)t(d.data.data),r(u.id,!0),a(d.data.spec_credit_details),l.push(!0);else if("api_throttle_error"===d.data.code)throw d}catch(e){if("api_throttle_error"===e.data.code)throw e;l.push(!1)}}return s(!0),l.some((e=>!!e))},g=async e=>{const t={personalizeAi:"personalize-ai",creditWarning:"credit-warning",creditDanger:"credit-danger",buildPageAi:"build-page-ai"};if(t[e])try{const r=new FormData;r.append("action","ast_block_templates_hide_notices"),r.append("notice_type",t[e]),r.append("_ajax_nonce",ast_block_template_vars._ajax_nonce),(await(0,i.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:r})).success}catch(e){(0,s.v)(e)}},h=()=>{const{spec_ai_auth_url:e}=ast_block_template_vars,t=window.location.href+"&ast_action=auth&nonce="+ast_block_template_vars.zipwp_ai_auth_nonce;return`${e}&redirect_url=${encodeURIComponent(t)}`}},6134:(e,t,r)=>{"use strict";r.d(t,{R7:()=>de,nr:()=>ge,OK:()=>K,xW:()=>Y,D6:()=>oe,sg:()=>X,GU:()=>be,ZV:()=>me,Lv:()=>ue,Iq:()=>fe,h7:()=>re,_9:()=>ie,qj:()=>ne,NI:()=>Q,Sk:()=>J,Zz:()=>te,Fx:()=>ce,Bh:()=>ye,XD:()=>se,BP:()=>pe,HU:()=>ae,yI:()=>he,uc:()=>ee});const n="-";function a(e){const t=function(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]},a=function(e,t){return t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e}(Object.entries(e.classGroups),r);return a.forEach((([e,r])=>{s(r,n,e,t)})),n}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:function(e){const r=e.split(n);return""===r[0]&&1!==r.length&&r.shift(),i(r,t)||function(e){if(o.test(e)){const t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const n=r[e]||[];return t&&a[e]?[...n,...a[e]]:n}}}function i(e,t){if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?i(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join(n);return t.validators.find((({validator:e})=>e(s)))?.classGroupId}const o=/^\[(.+)\]$/;function s(e,t,r,n){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void s(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,a])=>{s(a,l(t,e),r,n)}))}else(""===e?t:l(t,e)).classGroupId=r}))}function l(e,t){let r=e;return t.split(n).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function c(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function a(a,i){r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(a(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):a(e,t)}}}const u="!";function d(e){const t=e.separator,r=1===t.length,n=t[0],a=t.length;return function(e){const i=[];let o,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===n&&(r||e.slice(c,c+a)===t)){i.push(e.slice(l,c)),l=c+a;continue}if("/"===u){o=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===i.length?e:e.substring(l),d=c.startsWith(u);return{modifiers:i,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}const p=/\s+/;function m(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=f(e))&&(n&&(n+=" "),n+=t);return n}function f(e){if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=f(e[n]))&&(r&&(r+=" "),r+=t);return r}function g(e,...t){let r,n,i,o=function(l){const u=t.reduce(((e,t)=>t(e)),e());return r=function(e){return{cache:c(e.cacheSize),splitModifiers:d(e),...a(e)}}(u),n=r.cache.get,i=r.cache.set,o=s,s(l)};function s(e){const t=n(e);if(t)return t;const a=function(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=new Set;return e.trim().split(p).map((e=>{const{modifiers:t,hasImportantModifier:a,baseClassName:i,maybePostfixModifierPosition:o}=r(e);let s=n(o?i.substring(0,o):i),l=Boolean(o);if(!s){if(!o)return{isTailwindClass:!1,originalClassName:e};if(s=n(i),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:a?c+u:c,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,o=t+r;return!i.has(o)&&(i.add(o),a(r,n).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,r);return i(e,a),a}return function(){return o(m.apply(null,arguments))}}function h(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const y=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,v=new Set(["px","full","screen"]),w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,k=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function S(e){return R(e)||v.has(e)||b.test(e)}function C(e){return z(e,"length",V)}function R(e){return Boolean(e)&&!Number.isNaN(Number(e))}function A(e){return z(e,"number",R)}function P(e){return Boolean(e)&&Number.isInteger(Number(e))}function T(e){return e.endsWith("%")&&R(e.slice(0,-1))}function N(e){return y.test(e)}function I(e){return w.test(e)}const O=new Set(["length","size","percentage"]);function L(e){return z(e,O,W)}function B(e){return z(e,"position",W)}const j=new Set(["image","url"]);function D(e){return z(e,j,H)}function F(e){return z(e,"",U)}function M(){return!0}function z(e,t,r){const n=y.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function V(e){return x.test(e)&&!_.test(e)}function W(){return!1}function U(e){return E.test(e)}function H(e){return k.test(e)}function $(){const e=h("colors"),t=h("spacing"),r=h("blur"),n=h("brightness"),a=h("borderColor"),i=h("borderRadius"),o=h("borderSpacing"),s=h("borderWidth"),l=h("contrast"),c=h("grayscale"),u=h("hueRotate"),d=h("invert"),p=h("gap"),m=h("gradientColorStops"),f=h("gradientColorStopPositions"),g=h("inset"),y=h("margin"),b=h("opacity"),v=h("padding"),w=h("saturate"),x=h("scale"),_=h("sepia"),E=h("skew"),k=h("space"),O=h("translate"),j=()=>["auto",N,t],z=()=>[N,t],V=()=>["",S,C],W=()=>["auto",R,N],U=()=>["","0",N],H=()=>[R,A],$=()=>[R,N];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[S,C],blur:["none","",I,N],brightness:H(),borderColor:[e],borderRadius:["none","","full",I,N],borderSpacing:z(),borderWidth:V(),contrast:H(),grayscale:U(),hueRotate:$(),invert:U(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[T,C],inset:j(),margin:j(),opacity:H(),padding:z(),saturate:H(),scale:H(),sepia:U(),skew:$(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",N]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",P,N]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",P,N]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",P,N]},N]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[P,N]},N]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",I,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",A]}],"font-family":[{font:[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",R,A]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,C]}],"underline-offset":[{"underline-offset":["auto",S,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",L]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[S,N]}],"outline-w":[{outline:[S,C]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[S,C]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,F]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",I,N]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[P,N]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,C,A]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}Symbol.toStringTag;const Z=g($);function G(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=G(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var q=r(6156);const Y=(...e)=>Z(function(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=G(e))&&(n&&(n+=" "),n+=t);return n}(...e)),K=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),X=(e,t,r)=>{let n;return(...a)=>{const i=r&&!n;clearTimeout(n),n=setTimeout((()=>{n=null,r||e(...a)}),t),i&&e(...a)}},J=(e=[],t=[],r="block")=>{const n=new Map,a=new Array;return t?.forEach((t=>{const i=e.find((e=>t.id===e.category)),o=e.filter((e=>t.id===e.category&&e.type===r));i?.category&&t&&(n.has(i.category)||n.set(i.category,t)),a.push(...o)})),{patterns:a,categories:Array.from(n.values())}},Q=(e=[],t=[],r="page")=>{const n=new Map,a=new Array;return t?.forEach((t=>{const i=e.find((e=>t.id===e.category)),o=e.filter((e=>t.id===e.category&&e.type===r));i?.category&&t&&(n.has(i.category)||n.set(i.category,t)),a.push(...o)})),{pages:a,categories:Array.from(n.values())}},ee=(e=[],t=[],r="block")=>{const n=[];return t?.forEach((t=>{const a=e.filter((e=>t.id===e.category&&e.type===r));n.push(...a)})),n},te=e=>Math.floor(e/3)+1,re=e=>e%3+1,ne=(e,t)=>[1,2,3][(t-1+(e-1)%3)%3],ae=(e,t)=>{const r=window.sessionStorage;try{r.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},ie=(e,t=void 0)=>{const r="undefined"!=typeof sessionStorage?sessionStorage:window.sessionStorage;try{const n=r.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}},oe=e=>{const t="undefined"!=typeof sessionStorage?sessionStorage:window.sessionStorage;try{t.removeItem(e)}catch(e){console.error(e)}},se=e=>(e.forEach((e=>{e?.attributes&&(e.attributes.block_id=((e=8)=>{let t="";for(let r=e;r>0;--r)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return t.toLowerCase()})()),e?.innerBlocks?.length>0&&se(e.innerBlocks)})),e),le=e=>{const t={active:!1,inactive:!1,notInstalled:!1};switch(e){case"active":t.active=!0;break;case"inactive":t.inactive=!0;break;default:t.notInstalled=!0}return t},ce=()=>{const{spectra_status:e}=ast_block_template_vars;return le(e)},ue=()=>{const{astra_sites_pro_status:e}=ast_block_template_vars;return le(e)},de=(e,t=400)=>{e&&(e.style.height="auto",e.scrollHeight>t?(e.style.height=`${t}px`,e.style.overflowY="auto"):(e.style.height=`${e.scrollHeight}px`,e.style.overflowY="hidden"))},pe=e=>{const t={};for(const[r,n]of Object.entries(e))t[r.replace(/_([a-z])/g,((e,t)=>t.toUpperCase()))]=n;return t},me=e=>{if(!e)return"0";const{magnitude:t,suffix:r}=[{magnitude:1e12,suffix:"T"},{magnitude:1e9,suffix:"B"},{magnitude:1e6,suffix:"M"},{magnitude:1e3,suffix:"K"},{magnitude:1,suffix:""}].find((({magnitude:t})=>e>=t)),n=(e/t).toFixed(1).replace(/\.0$/,"");return e<1e3?e.toString():n+r+(e%t>0?"+":"")},fe=e=>e<=10?"text-credit-danger":e<=20?"text-credit-warning":"",ge=window.wp.apiFetch,he=({title:e,message:t})=>e&&t?React.createElement("div",{className:"min-w-[224px]"},React.createElement("p",{className:"text-sm font-semibold text-white leading-5"},e),React.createElement("p",{className:"mt-1 text-sm font-normal text-white leading-5"},t)):React.createElement("span",{className:"text-white text-sm min-w-[224px]"},t),ye=e=>!!(e=>{try{return new URL(e),!0}catch(e){return!1}})(e)&&!!/^[a-zA-Z0-9_\-\. :/]+$/.test(e),be={autoClose:4e3,icon:React.createElement("div",{className:"h-10 !w-10 bg-toast-error-icon flex items-center justify-center rounded-full"},React.createElement(q.A,{className:"w-4 h-4 [&>path]:stroke-[2px]",stroke:"#111827"}))}},9431:(e,t,r)=>{"use strict";r.d(t,{o:()=>i,s:()=>a});var n=r(6484);const a=e=>new Promise(((t,r)=>{const a=new window.FormData;a.append("action","ast_block_templates_activate_plugin"),a.append("init",e.init),a.append("security",ast_block_template_vars._ajax_nonce),wp.apiFetch({url:ast_block_template_vars.ajax_url,method:"POST",body:a}).then((e=>{e.success?t(e):r(e)})).catch((e=>{(0,n.v)(e)}))})),i=e=>new Promise(((t,r)=>{wp.updates.queue.push({action:"install-plugin",data:{slug:e.slug,init:e.init,name:e.name,success(r){t(r,e)},error(t){r(t,e)}}}),wp.updates.queueChecker()}))},9392:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});const{post:n}=wp.ajax,a=(e,t)=>n({action:"ast_block_templates_data_option",id:e,type:t,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((e=>e))},2513:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){const r=[];let n,a=!0,i=!1;try{for(let n,i=e[Symbol.iterator]();!(a=(n=i.next()).done)&&(r.push(n.value),!t||r.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null===_i.return||_i.return()}finally{if(i)throw n}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(t,{j:()=>a});const a={stdClass:function(){},stringify:function(e){const t=new Map([[1/0,"d:INF;"],[-1/0,"d:-INF;"],[NaN,"d:NAN;"],[null,"N;"],[void 0,"N;"]]),r=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"".concat((r=e,r?encodeURI(r).match(/(%.)?./g).length:0),":").concat(t[0]).concat(e).concat(t[t.length-1]);var r};let a=0;return function e(i){const o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.has(i))return t.get(i);if(a+=o,"string"==typeof i)return"s:".concat(r(i),";");if("number"==typeof i)return"".concat(Math.round(i)===i?"i":"d",":").concat(`${i}`.toUpperCase().replace(/(-?\d)E/,"$1.0E"),";");if("boolean"==typeof i)return"b:".concat(+i,";");const s=Array.isArray(i)||i.constructor===Object;if(t.set(i,"".concat("rR"[+s],":").concat(a,";")),"function"==typeof i.serialize)return"C:".concat(r(i.constructor.name),":").concat(r(i.serialize(),"{}"));const l=Object.entries(i).filter((e=>{const t=n(e,2);return t[0],"function"!=typeof t[1]}));return(s?"a":"O:".concat(r(i.constructor.name)))+":".concat(l.length,":{").concat(l.map((t=>{const r=n(t,2),a=r[0],i=r[1];return e(s&&/^\d{1,16}$/.test(a)?+a:a,!1)+e(i)})).join(""),"}")}(e)},parse:function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.stdClass=a.stdClass;let r=0;const n=[null],i={INF:1/0,"-INF":-1/0,NAN:NaN},o=function(t){const n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;throw new Error("Error at ".concat(n,": ").concat(t,"\n").concat(e,"\n").concat(" ".repeat(n),"^"))},s=function(t,n){return t===e.slice(r,r+=t.length)?n:o("Expected '".concat(t,"'"),r-t.length)};function l(t,n){const a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:";";s(":");const i=t.exec(e.slice(r));return i||o("Exected ".concat(n,", but got '").concat(e.slice(r).match(/^[:;{}]|[^:;{}]*/)[0],"'")),r+=i[0].length,s(a,i[0])}function c(t){const n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=r;for(;t>0;){const n=e.charCodeAt(r++);t-=n<128?1:n<2048||n>>11==27?2:3}return t?o("Invalid string length",a-2):s(n,e.slice(a,r))}const u=function(e){return e?t[e]?Object.create(t[e].prototype):new((r={},n=e,a=()=>{},n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r)[e]):{};var r,n,a},d=function(){return l(/^[01]/,"a '0' or '1'",";")},p=function(){return+l(/^-?\d+/,"an integer",";")},m=function(e){return+l(/^\d+/,"an unsigned integer",e)},f=function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c(m(':"'),`"${e}`)};function g(){const t=e[r++];return"s"===t?f(";"):"i"===t?m(";"):o("Expected 's' or 'i' as type for a key, but got ${str[offset-1]}",r-1)}function h(e){for(let t=0,r=m(":{");t<r;t++)e[g()]=y();return s("}",e)}function y(){const t=e[r++].toLowerCase(),a=n.push(null)-1,g="n"===t?s(";",null):"s"===t?f(";"):"b"===t?d():"i"===t?p():"d"===t?function(){const e=l(/^-?(\d+(\.\d+)?(E[+-]\d+)?|INF)|NAN/,"a decimal number",";");return e in i?i[e]:+e}():"a"===t?function(){const e=h({});return Object.keys(e).some(((e,t)=>e!=t))?e:Object.values(e)}():"o"===t?h(u(f())):"c"===t?("function"!=typeof(y=u(f())).unserialize&&o("Instance of ".concat(y.constructor.name,' does not have an "unserialize" method')),y.unserialize(c(m(":{"))),s("}",y)):"r"===t?n[p()]:o("Unexpected type ".concat(t),r-1);var y;return"r"!==t&&(n[a]=g),g}const b=y();return r!==e.length&&o("Unexpected trailing character"),b}}},8723:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,":root {\n  --toastify-color-light: #fff;\n  --toastify-color-dark: #121212;\n  --toastify-color-info: #3498db;\n  --toastify-color-success: #07bc0c;\n  --toastify-color-warning: #f1c40f;\n  --toastify-color-error: #e74c3c;\n  --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n  --toastify-icon-color-info: var(--toastify-color-info);\n  --toastify-icon-color-success: var(--toastify-color-success);\n  --toastify-icon-color-warning: var(--toastify-color-warning);\n  --toastify-icon-color-error: var(--toastify-color-error);\n  --toastify-toast-width: 320px;\n  --toastify-toast-background: #fff;\n  --toastify-toast-min-height: 64px;\n  --toastify-toast-max-height: 800px;\n  --toastify-font-family: sans-serif;\n  --toastify-z-index: 9999;\n  --toastify-text-color-light: #757575;\n  --toastify-text-color-dark: #fff;\n  --toastify-text-color-info: #fff;\n  --toastify-text-color-success: #fff;\n  --toastify-text-color-warning: #fff;\n  --toastify-text-color-error: #fff;\n  --toastify-spinner-color: #616161;\n  --toastify-spinner-color-empty-area: #e0e0e0;\n  --toastify-color-progress-light: linear-gradient(\n    to right,\n    #4cd964,\n    #5ac8fa,\n    #007aff,\n    #34aadc,\n    #5856d6,\n    #ff2d55\n  );\n  --toastify-color-progress-dark: #bb86fc;\n  --toastify-color-progress-info: var(--toastify-color-info);\n  --toastify-color-progress-success: var(--toastify-color-success);\n  --toastify-color-progress-warning: var(--toastify-color-warning);\n  --toastify-color-progress-error: var(--toastify-color-error);\n}\n\n.Toastify__toast-container {\n  z-index: var(--toastify-z-index);\n  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));\n  position: fixed;\n  padding: 4px;\n  width: var(--toastify-toast-width);\n  box-sizing: border-box;\n  color: #fff;\n}\n\n.Toastify__toast-container--top-left {\n  top: 1em;\n  left: 1em;\n}\n\n.Toastify__toast-container--top-center {\n  top: 1em;\n  left: 50%;\n  transform: translateX(-50%);\n}\n\n.Toastify__toast-container--top-right {\n  top: 1em;\n  right: 1em;\n}\n\n.Toastify__toast-container--bottom-left {\n  bottom: 1em;\n  left: 1em;\n}\n\n.Toastify__toast-container--bottom-center {\n  bottom: 1em;\n  left: 50%;\n  transform: translateX(-50%);\n}\n\n.Toastify__toast-container--bottom-right {\n  bottom: 1em;\n  right: 1em;\n}\n\n@media only screen and (max-width : 480px) {\n  .Toastify__toast-container {\n    width: 100vw;\n    padding: 0;\n    left: 0;\n    margin: 0;\n  }\n  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {\n    top: 0;\n    transform: translateX(0);\n  }\n  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {\n    bottom: 0;\n    transform: translateX(0);\n  }\n  .Toastify__toast-container--rtl {\n    right: 0;\n    left: initial;\n  }\n}\n\n.Toastify__toast {\n  position: relative;\n  min-height: var(--toastify-toast-min-height);\n  box-sizing: border-box;\n  margin-bottom: 1rem;\n  padding: 8px;\n  border-radius: 4px;\n  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);\n  display: flex;\n  justify-content: space-between;\n  max-height: var(--toastify-toast-max-height);\n  overflow: hidden;\n  font-family: var(--toastify-font-family);\n  cursor: default;\n  direction: ltr;\n  /* webkit only issue #791 */\n  z-index: 0;\n}\n\n.Toastify__toast--rtl {\n  direction: rtl;\n}\n\n.Toastify__toast--close-on-click {\n  cursor: pointer;\n}\n\n.Toastify__toast-body {\n  margin: auto 0;\n  flex: 1 1 auto;\n  padding: 6px;\n  display: flex;\n  align-items: center;\n}\n\n.Toastify__toast-body > div:last-child {\n  word-break: break-word;\n  flex: 1;\n}\n\n.Toastify__toast-icon {\n  margin-inline-end: 10px;\n  width: 20px;\n  flex-shrink: 0;\n  display: flex;\n}\n\n.Toastify--animate {\n  animation-fill-mode: both;\n  animation-duration: 0.7s;\n}\n\n.Toastify--animate-icon {\n  animation-fill-mode: both;\n  animation-duration: 0.3s;\n}\n\n@media only screen and (max-width : 480px) {\n  .Toastify__toast {\n    margin-bottom: 0;\n    border-radius: 0;\n  }\n}\n\n.Toastify__toast-theme--dark {\n  background: var(--toastify-color-dark);\n  color: var(--toastify-text-color-dark);\n}\n\n.Toastify__toast-theme--light {\n  background: var(--toastify-color-light);\n  color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--default {\n  background: var(--toastify-color-light);\n  color: var(--toastify-text-color-light);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--info {\n  color: var(--toastify-text-color-info);\n  background: var(--toastify-color-info);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--success {\n  color: var(--toastify-text-color-success);\n  background: var(--toastify-color-success);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--warning {\n  color: var(--toastify-text-color-warning);\n  background: var(--toastify-color-warning);\n}\n\n.Toastify__toast-theme--colored.Toastify__toast--error {\n  color: var(--toastify-text-color-error);\n  background: var(--toastify-color-error);\n}\n\n.Toastify__progress-bar-theme--light {\n  background: var(--toastify-color-progress-light);\n}\n\n.Toastify__progress-bar-theme--dark {\n  background: var(--toastify-color-progress-dark);\n}\n\n.Toastify__progress-bar--info {\n  background: var(--toastify-color-progress-info);\n}\n\n.Toastify__progress-bar--success {\n  background: var(--toastify-color-progress-success);\n}\n\n.Toastify__progress-bar--warning {\n  background: var(--toastify-color-progress-warning);\n}\n\n.Toastify__progress-bar--error {\n  background: var(--toastify-color-progress-error);\n}\n\n.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {\n  background: var(--toastify-color-transparent);\n}\n\n.Toastify__close-button {\n  color: #fff;\n  background: transparent;\n  outline: none;\n  border: none;\n  padding: 0;\n  cursor: pointer;\n  opacity: 0.7;\n  transition: 0.3s ease;\n  align-self: flex-start;\n}\n\n.Toastify__close-button--light {\n  color: #000;\n  opacity: 0.3;\n}\n\n.Toastify__close-button > svg {\n  fill: currentColor;\n  height: 16px;\n  width: 14px;\n}\n\n.Toastify__close-button:hover, .Toastify__close-button:focus {\n  opacity: 1;\n}\n\n@keyframes Toastify__trackProgress {\n  0% {\n    transform: scaleX(1);\n  }\n  100% {\n    transform: scaleX(0);\n  }\n}\n\n.Toastify__progress-bar {\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  height: 5px;\n  z-index: var(--toastify-z-index);\n  opacity: 0.7;\n  transform-origin: left;\n}\n\n.Toastify__progress-bar--animated {\n  animation: Toastify__trackProgress linear 1 forwards;\n}\n\n.Toastify__progress-bar--controlled {\n  transition: transform 0.2s;\n}\n\n.Toastify__progress-bar--rtl {\n  right: 0;\n  left: initial;\n  transform-origin: right;\n}\n\n.Toastify__spinner {\n  width: 20px;\n  height: 20px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: var(--toastify-spinner-color-empty-area);\n  border-right-color: var(--toastify-spinner-color);\n  animation: Toastify__spin 0.65s linear infinite;\n}\n\n@keyframes Toastify__bounceInRight {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  from {\n    opacity: 0;\n    transform: translate3d(3000px, 0, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(-25px, 0, 0);\n  }\n  75% {\n    transform: translate3d(10px, 0, 0);\n  }\n  90% {\n    transform: translate3d(-5px, 0, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n\n@keyframes Toastify__bounceOutRight {\n  20% {\n    opacity: 1;\n    transform: translate3d(-20px, 0, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(2000px, 0, 0);\n  }\n}\n\n@keyframes Toastify__bounceInLeft {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  0% {\n    opacity: 0;\n    transform: translate3d(-3000px, 0, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(25px, 0, 0);\n  }\n  75% {\n    transform: translate3d(-10px, 0, 0);\n  }\n  90% {\n    transform: translate3d(5px, 0, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n\n@keyframes Toastify__bounceOutLeft {\n  20% {\n    opacity: 1;\n    transform: translate3d(20px, 0, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(-2000px, 0, 0);\n  }\n}\n\n@keyframes Toastify__bounceInUp {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  from {\n    opacity: 0;\n    transform: translate3d(0, 3000px, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n  75% {\n    transform: translate3d(0, 10px, 0);\n  }\n  90% {\n    transform: translate3d(0, -5px, 0);\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes Toastify__bounceOutUp {\n  20% {\n    transform: translate3d(0, -10px, 0);\n  }\n  40%, 45% {\n    opacity: 1;\n    transform: translate3d(0, 20px, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(0, -2000px, 0);\n  }\n}\n\n@keyframes Toastify__bounceInDown {\n  from, 60%, 75%, 90%, to {\n    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n  }\n  0% {\n    opacity: 0;\n    transform: translate3d(0, -3000px, 0);\n  }\n  60% {\n    opacity: 1;\n    transform: translate3d(0, 25px, 0);\n  }\n  75% {\n    transform: translate3d(0, -10px, 0);\n  }\n  90% {\n    transform: translate3d(0, 5px, 0);\n  }\n  to {\n    transform: none;\n  }\n}\n\n@keyframes Toastify__bounceOutDown {\n  20% {\n    transform: translate3d(0, 10px, 0);\n  }\n  40%, 45% {\n    opacity: 1;\n    transform: translate3d(0, -20px, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate3d(0, 2000px, 0);\n  }\n}\n\n.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {\n  animation-name: Toastify__bounceInLeft;\n}\n\n.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {\n  animation-name: Toastify__bounceInRight;\n}\n\n.Toastify__bounce-enter--top-center {\n  animation-name: Toastify__bounceInDown;\n}\n\n.Toastify__bounce-enter--bottom-center {\n  animation-name: Toastify__bounceInUp;\n}\n\n.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {\n  animation-name: Toastify__bounceOutLeft;\n}\n\n.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {\n  animation-name: Toastify__bounceOutRight;\n}\n\n.Toastify__bounce-exit--top-center {\n  animation-name: Toastify__bounceOutUp;\n}\n\n.Toastify__bounce-exit--bottom-center {\n  animation-name: Toastify__bounceOutDown;\n}\n\n@keyframes Toastify__zoomIn {\n  from {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n  50% {\n    opacity: 1;\n  }\n}\n\n@keyframes Toastify__zoomOut {\n  from {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0;\n    transform: scale3d(0.3, 0.3, 0.3);\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n.Toastify__zoom-enter {\n  animation-name: Toastify__zoomIn;\n}\n\n.Toastify__zoom-exit {\n  animation-name: Toastify__zoomOut;\n}\n\n@keyframes Toastify__flipIn {\n  from {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    animation-timing-function: ease-in;\n    opacity: 0;\n  }\n  40% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    animation-timing-function: ease-in;\n  }\n  60% {\n    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);\n    opacity: 1;\n  }\n  80% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);\n  }\n  to {\n    transform: perspective(400px);\n  }\n}\n\n@keyframes Toastify__flipOut {\n  from {\n    transform: perspective(400px);\n  }\n  30% {\n    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);\n    opacity: 1;\n  }\n  to {\n    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);\n    opacity: 0;\n  }\n}\n\n.Toastify__flip-enter {\n  animation-name: Toastify__flipIn;\n}\n\n.Toastify__flip-exit {\n  animation-name: Toastify__flipOut;\n}\n\n@keyframes Toastify__slideInRight {\n  from {\n    transform: translate3d(110%, 0, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideInLeft {\n  from {\n    transform: translate3d(-110%, 0, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideInUp {\n  from {\n    transform: translate3d(0, 110%, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideInDown {\n  from {\n    transform: translate3d(0, -110%, 0);\n    visibility: visible;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideOutRight {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(110%, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideOutLeft {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(-110%, 0, 0);\n  }\n}\n\n@keyframes Toastify__slideOutDown {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(0, 500px, 0);\n  }\n}\n\n@keyframes Toastify__slideOutUp {\n  from {\n    transform: translate3d(0, 0, 0);\n  }\n  to {\n    visibility: hidden;\n    transform: translate3d(0, -500px, 0);\n  }\n}\n\n.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {\n  animation-name: Toastify__slideInLeft;\n}\n\n.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {\n  animation-name: Toastify__slideInRight;\n}\n\n.Toastify__slide-enter--top-center {\n  animation-name: Toastify__slideInDown;\n}\n\n.Toastify__slide-enter--bottom-center {\n  animation-name: Toastify__slideInUp;\n}\n\n.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {\n  animation-name: Toastify__slideOutLeft;\n}\n\n.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {\n  animation-name: Toastify__slideOutRight;\n}\n\n.Toastify__slide-exit--top-center {\n  animation-name: Toastify__slideOutUp;\n}\n\n.Toastify__slide-exit--bottom-center {\n  animation-name: Toastify__slideOutDown;\n}\n\n@keyframes Toastify__spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}",""]);const i=a},8087:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const i=a},9552:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".ast-block-templates-content{height:calc(100vh - 55px);overflow-y:auto;color:#444}.ast-block-templates-content img{max-width:100%;vertical-align:middle}.ast-block-templates-content .title{margin:0;font-size:14px;color:#444;margin-bottom:5px}.ast-block-templates-content .title b{font-weight:900}.ast-block-templates-content .sub-title{font-weight:300;font-size:13px}",""]);const i=a},7274:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".ast-block-templates-full-preview{max-height:calc(100vh - 210px);overflow-y:auto;box-shadow:0 0 16px 0 rgba(0,0,0,.12);margin:1.1%}",""]);const i=a},8074:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".ast-block-templates-full-preview{text-align:center}",""]);const i=a},8359:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".back-to-templates{display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;background:#fafafa;border-color:#999;color:#23282d;margin-top:25px}",""]);const i=a},7979:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".ast-block-templates-popup-wrap{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(49,49,49,.5);z-index:9}.ast-block-templates-popup-wrap.hide{display:none;opacity:0}.ast-block-templates-popup{background:#f2f2f2;margin:0 auto;width:660px;max-height:420px;transform:translate(-50%, -40%);box-sizing:border-box;position:fixed;background-color:#f1f3f5;z-index:100059;text-align:left;top:40%;left:50%;box-shadow:0 3px 6px rgba(0,0,0,.3);border-radius:2px}.ast-block-templates-popup-header{background:#fff;margin-top:0;box-shadow:0 0 8px rgba(0,0,0,.1);margin-bottom:.5em;display:flex;justify-content:space-between}.ast-block-templates-popup-footer{padding:1em 1em 1em 2em;z-index:30;box-sizing:border-box;border-top:1px solid #dcdcdc}.ast-block-templates-popup-footer .button{margin-right:10px}.ast-block-templates-popup-content{display:block;padding:1em 1em 1em 2em;background:#f1f3f5;min-height:200px;overflow:auto;position:relative}.ast-block-templates-popup-heading{font-size:1.3em;margin:0;font-weight:600;padding:1em 1em 1em 2em}.ast-block-templates-popup-close-icon{width:53px;cursor:pointer;border-left:1px solid #eee;color:#aaa;display:flex;align-items:center;justify-content:center;padding:1em 1em 1em 1em}",""]);const i=a},8830:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,'.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=,.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::before,.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::after{border-radius:50%;width:.8em;height:.8em;animation:AsXXEZcf3aQheVWYK96Mjw\\=\\= 1.8s infinite ease-in-out;animation-fill-mode:both}.zZbdFPV0asSP-N8Oh\\+qevA\\=\\={color:#374151;font-size:4px;position:relative;right:-2.5em;text-indent:-9999em;transform:translateZ(0);animation-delay:-0.16s}.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::before,.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::after{content:"";position:absolute;top:0}.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::before{left:-2em;animation-delay:-0.32s}.zZbdFPV0asSP-N8Oh\\+qevA\\=\\=::after{left:2em}@keyframes AsXXEZcf3aQheVWYK96Mjw\\=\\={0%,80%,100%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}',""]),a.locals={loaderDots:"zZbdFPV0asSP-N8Oh+qevA==",bblFadInOut:"AsXXEZcf3aQheVWYK96Mjw=="};const i=a},2277:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,".ast-block-templates-content .ast-block-templates-notice-message{margin:.5em 0;padding:2px}.ast-block-templates-content .ast-block-templates-notice{position:relative;margin:25px 50px;margin-bottom:0}.ast-block-templates-grid-blocks .ast-block-templates-notice{margin:0 1.4%}",""]);const i=a},7226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(6314),a=r.n(n)()(!1);a.push([e.id,'*,::before,::after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media(min-width: 640px){.container{max-width:640px}}@media(min-width: 768px){.container{max-width:768px}}@media(min-width: 1024px){.container{max-width:1024px}}@media(min-width: 1280px){.container{max-width:1280px}}@media(min-width: 1536px){.container{max-width:1536px}}.gt-library-styles :is(.sr-only){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.gt-library-styles :is(.pointer-events-none){pointer-events:none}.gt-library-styles :is(.visible){visibility:visible}.gt-library-styles :is(.invisible){visibility:hidden}.gt-library-styles :is(.static){position:static}.gt-library-styles :is(.fixed){position:fixed}.gt-library-styles :is(.absolute){position:absolute}.gt-library-styles :is(.relative){position:relative}.gt-library-styles :is(.sticky){position:sticky}.gt-library-styles :is(.inset-0){inset:0px}.gt-library-styles :is(.inset-10){inset:2.5rem}.gt-library-styles :is(.inset-x-0){left:0px;right:0px}.gt-library-styles :is(.inset-y-0){top:0px;bottom:0px}.gt-library-styles :is(.\\!left-auto){left:auto !important}.gt-library-styles :is(.\\!right-5){right:1.25rem !important}.gt-library-styles :is(.-top-1){top:-0.25rem}.gt-library-styles :is(.-top-1\\.5){top:-0.375rem}.gt-library-styles :is(.bottom-0){bottom:0px}.gt-library-styles :is(.bottom-0\\.5){bottom:.125rem}.gt-library-styles :is(.bottom-28){bottom:7rem}.gt-library-styles :is(.bottom-8){bottom:2rem}.gt-library-styles :is(.left-0){left:0px}.gt-library-styles :is(.left-2){left:.5rem}.gt-library-styles :is(.left-2\\.5){left:.625rem}.gt-library-styles :is(.left-4){left:1rem}.gt-library-styles :is(.right-0){right:0px}.gt-library-styles :is(.right-2){right:.5rem}.gt-library-styles :is(.right-3){right:.75rem}.gt-library-styles :is(.right-4){right:1rem}.gt-library-styles :is(.right-\\[6\\.5rem\\]){right:6.5rem}.gt-library-styles :is(.top-0){top:0px}.gt-library-styles :is(.top-2){top:.5rem}.gt-library-styles :is(.top-3){top:.75rem}.gt-library-styles :is(.top-4){top:1rem}.gt-library-styles :is(.top-\\[0\\.875rem\\]){top:.875rem}.gt-library-styles :is(.top-\\[4\\.5rem\\]){top:4.5rem}.gt-library-styles :is(.z-10){z-index:10}.gt-library-styles :is(.z-50){z-index:50}.gt-library-styles :is(.z-\\[1\\]){z-index:1}.gt-library-styles :is(.z-\\[2\\]){z-index:2}.gt-library-styles :is(.z-\\[99999999\\]){z-index:99999999}.gt-library-styles :is(.z-\\[99999\\]){z-index:99999}.gt-library-styles :is(.z-\\[9999\\]){z-index:9999}.gt-library-styles :is(.col-span-12){grid-column:span 12/span 12}.gt-library-styles :is(.col-span-5){grid-column:span 5/span 5}.gt-library-styles :is(.col-span-7){grid-column:span 7/span 7}.gt-library-styles :is(.row-span-2){grid-row:span 2/span 2}.gt-library-styles :is(.row-span-4){grid-row:span 4/span 4}.gt-library-styles :is(.float-none){float:none}.gt-library-styles :is(.\\!m-0){margin:0px !important}.gt-library-styles :is(.m-0){margin:0px}.gt-library-styles :is(.m-auto){margin:auto}.gt-library-styles :is(.\\!mx-0){margin-left:0px !important;margin-right:0px !important}.gt-library-styles :is(.\\!my-0){margin-top:0px !important;margin-bottom:0px !important}.gt-library-styles :is(.\\!my-3){margin-top:.75rem !important;margin-bottom:.75rem !important}.gt-library-styles :is(.-mx-1){margin-left:-0.25rem;margin-right:-0.25rem}.gt-library-styles :is(.mx-1){margin-left:.25rem;margin-right:.25rem}.gt-library-styles :is(.mx-10){margin-left:2.5rem;margin-right:2.5rem}.gt-library-styles :is(.mx-2){margin-left:.5rem;margin-right:.5rem}.gt-library-styles :is(.mx-auto){margin-left:auto;margin-right:auto}.gt-library-styles :is(.my-0){margin-top:0px;margin-bottom:0px}.gt-library-styles :is(.my-2){margin-top:.5rem;margin-bottom:.5rem}.gt-library-styles :is(.my-32){margin-top:8rem;margin-bottom:8rem}.gt-library-styles :is(.my-4){margin-top:1rem;margin-bottom:1rem}.gt-library-styles :is(.my-8){margin-top:2rem;margin-bottom:2rem}.gt-library-styles :is(.\\!-mb-2){margin-bottom:-0.5rem !important}.gt-library-styles :is(.\\!-mr-2){margin-right:-0.5rem !important}.gt-library-styles :is(.\\!mb-1){margin-bottom:.25rem !important}.gt-library-styles :is(.\\!mb-2){margin-bottom:.5rem !important}.gt-library-styles :is(.\\!mb-6){margin-bottom:1.5rem !important}.gt-library-styles :is(.\\!mt-0){margin-top:0px !important}.gt-library-styles :is(.\\!mt-1){margin-top:.25rem !important}.gt-library-styles :is(.\\!mt-5){margin-top:1.25rem !important}.gt-library-styles :is(.-mt-2){margin-top:-0.5rem}.gt-library-styles :is(.-mt-8){margin-top:-2rem}.gt-library-styles :is(.mb-0){margin-bottom:0px}.gt-library-styles :is(.mb-1){margin-bottom:.25rem}.gt-library-styles :is(.mb-10){margin-bottom:2.5rem}.gt-library-styles :is(.mb-12){margin-bottom:3rem}.gt-library-styles :is(.mb-2){margin-bottom:.5rem}.gt-library-styles :is(.mb-4){margin-bottom:1rem}.gt-library-styles :is(.mb-5){margin-bottom:1.25rem}.gt-library-styles :is(.mb-6){margin-bottom:1.5rem}.gt-library-styles :is(.mb-8){margin-bottom:2rem}.gt-library-styles :is(.ml-0){margin-left:0px}.gt-library-styles :is(.ml-1){margin-left:.25rem}.gt-library-styles :is(.ml-2){margin-left:.5rem}.gt-library-styles :is(.ml-auto){margin-left:auto}.gt-library-styles :is(.mr-1){margin-right:.25rem}.gt-library-styles :is(.mr-1\\.5){margin-right:.375rem}.gt-library-styles :is(.mr-2){margin-right:.5rem}.gt-library-styles :is(.mr-3){margin-right:.75rem}.gt-library-styles :is(.mr-auto){margin-right:auto}.gt-library-styles :is(.mt-1){margin-top:.25rem}.gt-library-styles :is(.mt-10){margin-top:2.5rem}.gt-library-styles :is(.mt-12){margin-top:3rem}.gt-library-styles :is(.mt-2){margin-top:.5rem}.gt-library-styles :is(.mt-3){margin-top:.75rem}.gt-library-styles :is(.mt-4){margin-top:1rem}.gt-library-styles :is(.mt-6){margin-top:1.5rem}.gt-library-styles :is(.mt-8){margin-top:2rem}.gt-library-styles :is(.mt-9){margin-top:2.25rem}.gt-library-styles :is(.mt-auto){margin-top:auto}.gt-library-styles :is(.block){display:block}.gt-library-styles :is(.inline-block){display:inline-block}.gt-library-styles :is(.inline){display:inline}.gt-library-styles :is(.flex){display:flex}.gt-library-styles :is(.inline-flex){display:inline-flex}.gt-library-styles :is(.grid){display:grid}.gt-library-styles :is(.hidden){display:none}.gt-library-styles :is(.aspect-\\[1\\/1\\]){aspect-ratio:1/1}.gt-library-styles :is(.aspect-\\[1\\/2\\]){aspect-ratio:1/2}.gt-library-styles :is(.aspect-\\[12\\/8\\]){aspect-ratio:12/8}.gt-library-styles :is(.aspect-\\[13\\/16\\]){aspect-ratio:13/16}.gt-library-styles :is(.aspect-\\[2\\/1\\]){aspect-ratio:2/1}.gt-library-styles :is(.aspect-\\[2\\/2\\]){aspect-ratio:2/2}.gt-library-styles :is(.aspect-\\[3\\/3\\]){aspect-ratio:3/3}.gt-library-styles :is(.aspect-\\[3\\/4\\]){aspect-ratio:3/4}.gt-library-styles :is(.aspect-\\[4\\/3\\]){aspect-ratio:4/3}.gt-library-styles :is(.aspect-\\[6\\/7\\]){aspect-ratio:6/7}.gt-library-styles :is(.aspect-video){aspect-ratio:16/9}.gt-library-styles :is(.size-10){width:2.5rem;height:2.5rem}.gt-library-styles :is(.size-3){width:.75rem;height:.75rem}.gt-library-styles :is(.size-4){width:1rem;height:1rem}.gt-library-styles :is(.size-5){width:1.25rem;height:1.25rem}.gt-library-styles :is(.size-6){width:1.5rem;height:1.5rem}.gt-library-styles :is(.\\!h-6){height:1.5rem !important}.gt-library-styles :is(.\\!h-auto){height:auto !important}.gt-library-styles :is(.h-0){height:0px}.gt-library-styles :is(.h-0\\.5){height:.125rem}.gt-library-styles :is(.h-1){height:.25rem}.gt-library-styles :is(.h-1\\.5){height:.375rem}.gt-library-styles :is(.h-10){height:2.5rem}.gt-library-styles :is(.h-12){height:3rem}.gt-library-styles :is(.h-14){height:3.5rem}.gt-library-styles :is(.h-2){height:.5rem}.gt-library-styles :is(.h-2\\.5){height:.625rem}.gt-library-styles :is(.h-20){height:5rem}.gt-library-styles :is(.h-3){height:.75rem}.gt-library-styles :is(.h-4){height:1rem}.gt-library-styles :is(.h-5){height:1.25rem}.gt-library-styles :is(.h-6){height:1.5rem}.gt-library-styles :is(.h-7){height:1.75rem}.gt-library-styles :is(.h-8){height:2rem}.gt-library-styles :is(.h-\\[1\\.0625rem\\]){height:1.0625rem}.gt-library-styles :is(.h-\\[1\\.8rem\\]){height:1.8rem}.gt-library-styles :is(.h-\\[14px\\]){height:14px}.gt-library-styles :is(.h-\\[2\\.25rem\\]){height:2.25rem}.gt-library-styles :is(.h-\\[2\\.625rem\\]){height:2.625rem}.gt-library-styles :is(.h-\\[3rem\\]){height:3rem}.gt-library-styles :is(.h-\\[4\\.5rem\\]){height:4.5rem}.gt-library-styles :is(.h-\\[50px\\]){height:50px}.gt-library-styles :is(.h-\\[calc\\(100\\%_-_4\\.5rem\\)\\]){height:calc(100% - 4.5rem)}.gt-library-styles :is(.h-\\[calc\\(100vh_-_5rem\\)\\]){height:calc(100vh - 5rem)}.gt-library-styles :is(.h-\\[calc\\(100vh_-_9\\.5rem\\)\\]){height:calc(100vh - 9.5rem)}.gt-library-styles :is(.h-\\[calc\\(100vh_\\/_3\\)\\]){height:33.3333333333vh}.gt-library-styles :is(.h-auto){height:auto}.gt-library-styles :is(.h-fit){height:-moz-fit-content;height:fit-content}.gt-library-styles :is(.h-full){height:100%}.gt-library-styles :is(.h-max){height:max-content}.gt-library-styles :is(.h-px){height:1px}.gt-library-styles :is(.h-screen){height:100vh}.gt-library-styles :is(.max-h-60){max-height:15rem}.gt-library-styles :is(.max-h-\\[150px\\]){max-height:150px}.gt-library-styles :is(.max-h-\\[1600px\\]){max-height:1600px}.gt-library-styles :is(.max-h-\\[248px\\]){max-height:248px}.gt-library-styles :is(.max-h-fit){max-height:-moz-fit-content;max-height:fit-content}.gt-library-styles :is(.max-h-full){max-height:100%}.gt-library-styles :is(.\\!min-h-0){min-height:0px !important}.gt-library-styles :is(.min-h-\\[2rem\\]){min-height:2rem}.gt-library-styles :is(.min-h-\\[3\\.125rem\\]){min-height:3.125rem}.gt-library-styles :is(.min-h-\\[36px\\]){min-height:36px}.gt-library-styles :is(.min-h-\\[45px\\]){min-height:45px}.gt-library-styles :is(.min-h-\\[48px\\]){min-height:48px}.gt-library-styles :is(.min-h-\\[80px\\]){min-height:80px}.gt-library-styles :is(.min-h-\\[auto\\]){min-height:auto}.gt-library-styles :is(.min-h-full){min-height:100%}.gt-library-styles :is(.\\!w-10){width:2.5rem !important}.gt-library-styles :is(.\\!w-\\[30rem\\]){width:30rem !important}.gt-library-styles :is(.\\!w-auto){width:auto !important}.gt-library-styles :is(.\\!w-full){width:100% !important}.gt-library-styles :is(.w-1\\/2){width:50%}.gt-library-styles :is(.w-1\\/3){width:33.333333%}.gt-library-styles :is(.w-1\\/4){width:25%}.gt-library-styles :is(.w-1\\/5){width:20%}.gt-library-styles :is(.w-10){width:2.5rem}.gt-library-styles :is(.w-10\\/12){width:83.333333%}.gt-library-styles :is(.w-11){width:2.75rem}.gt-library-styles :is(.w-11\\/12){width:91.666667%}.gt-library-styles :is(.w-2\\/12){width:16.666667%}.gt-library-styles :is(.w-2\\/4){width:50%}.gt-library-styles :is(.w-2\\/5){width:40%}.gt-library-styles :is(.w-2\\/6){width:33.333333%}.gt-library-styles :is(.w-3){width:.75rem}.gt-library-styles :is(.w-3\\/12){width:25%}.gt-library-styles :is(.w-3\\/4){width:75%}.gt-library-styles :is(.w-3\\/5){width:60%}.gt-library-styles :is(.w-4){width:1rem}.gt-library-styles :is(.w-4\\/5){width:80%}.gt-library-styles :is(.w-4\\/6){width:66.666667%}.gt-library-styles :is(.w-48){width:12rem}.gt-library-styles :is(.w-5){width:1.25rem}.gt-library-styles :is(.w-6){width:1.5rem}.gt-library-styles :is(.w-60){width:15rem}.gt-library-styles :is(.w-64){width:16rem}.gt-library-styles :is(.w-8){width:2rem}.gt-library-styles :is(.w-80){width:20rem}.gt-library-styles :is(.w-\\[1\\.8rem\\]){width:1.8rem}.gt-library-styles :is(.w-\\[100px\\]){width:100px}.gt-library-styles :is(.w-\\[1200px\\]){width:1200px}.gt-library-styles :is(.w-\\[15\\.5rem\\]){width:15.5rem}.gt-library-styles :is(.w-\\[18\\.25rem\\]){width:18.25rem}.gt-library-styles :is(.w-\\[300px\\]){width:300px}.gt-library-styles :is(.w-\\[358px\\]){width:358px}.gt-library-styles :is(.w-\\[45\\%\\]){width:45%}.gt-library-styles :is(.w-\\[48\\%\\]){width:48%}.gt-library-styles :is(.w-\\[520px\\]){width:520px}.gt-library-styles :is(.w-\\[55\\%\\]){width:55%}.gt-library-styles :is(.w-\\[calc\\(100\\%_\\+_2px\\)\\]){width:calc(100% + 2px)}.gt-library-styles :is(.w-auto){width:auto}.gt-library-styles :is(.w-fit){width:-moz-fit-content;width:fit-content}.gt-library-styles :is(.w-full){width:100%}.gt-library-styles :is(.w-max){width:max-content}.gt-library-styles :is(.w-px){width:1px}.gt-library-styles :is(.\\!min-w-\\[50px\\]){min-width:50px !important}.gt-library-styles :is(.min-w-32){min-width:8rem}.gt-library-styles :is(.min-w-\\[10\\.25rem\\]){min-width:10.25rem}.gt-library-styles :is(.min-w-\\[100px\\]){min-width:100px}.gt-library-styles :is(.min-w-\\[224px\\]){min-width:224px}.gt-library-styles :is(.min-w-\\[50px\\]){min-width:50px}.gt-library-styles :is(.min-w-\\[5rem\\]){min-width:5rem}.gt-library-styles :is(.min-w-fit){min-width:-moz-fit-content;min-width:fit-content}.gt-library-styles :is(.min-w-min){min-width:min-content}.gt-library-styles :is(.max-w-60){max-width:15rem}.gt-library-styles :is(.max-w-\\[27\\.375rem\\]){max-width:27.375rem}.gt-library-styles :is(.max-w-\\[35rem\\]){max-width:35rem}.gt-library-styles :is(.max-w-\\[37\\.5rem\\]){max-width:37.5rem}.gt-library-styles :is(.max-w-\\[504px\\]){max-width:504px}.gt-library-styles :is(.max-w-\\[560px\\]){max-width:560px}.gt-library-styles :is(.max-w-\\[590px\\]){max-width:590px}.gt-library-styles :is(.max-w-container){max-width:48rem}.gt-library-styles :is(.max-w-fit){max-width:-moz-fit-content;max-width:fit-content}.gt-library-styles :is(.max-w-full){max-width:100%}.gt-library-styles :is(.max-w-max){max-width:max-content}.gt-library-styles :is(.max-w-xs){max-width:20rem}.gt-library-styles :is(.flex-1){flex:1 1 0%}.gt-library-styles :is(.flex-auto){flex:1 1 auto}.gt-library-styles :is(.flex-shrink-0){flex-shrink:0}.gt-library-styles :is(.\\!shrink-0){flex-shrink:0 !important}.gt-library-styles :is(.shrink-0){flex-shrink:0}.gt-library-styles :is(.flex-grow){flex-grow:1}.gt-library-styles :is(.origin-top-left){transform-origin:top left}.gt-library-styles :is(.origin-top-right){transform-origin:top right}.gt-library-styles :is(.-translate-x-full){--tw-translate-x: -100%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.translate-x-0){--tw-translate-x: 0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.translate-x-5){--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.translate-y-0){--tw-translate-y: 0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.translate-y-4){--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.\\!rotate-45){--tw-rotate: 45deg !important;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important}.gt-library-styles :is(.scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.scale-95){--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.transform){transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hourglass{0%,25%{transform:rotate(0deg)}50%,75%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}.gt-library-styles :is(.animate-hour-glass){animation:hourglass 3s linear infinite}.gt-library-styles :is(.animate-none){animation:none}@keyframes pulse{50%{opacity:.5}}.gt-library-styles :is(.animate-pulse){animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.gt-library-styles :is(.animate-spin){animation:spin 1s linear infinite}.gt-library-styles :is(.\\!cursor-not-allowed){cursor:not-allowed !important}.gt-library-styles :is(.cursor-default){cursor:default}.gt-library-styles :is(.cursor-not-allowed){cursor:not-allowed}.gt-library-styles :is(.cursor-pointer){cursor:pointer}.gt-library-styles :is(.select-none){-webkit-user-select:none;user-select:none}.gt-library-styles :is(.resize){resize:both}.gt-library-styles :is(.scroll-p-0){scroll-padding:0px}.gt-library-styles :is(.appearance-none){appearance:none}.gt-library-styles :is(.auto-rows-auto){grid-auto-rows:auto}.gt-library-styles :is(.auto-rows-min){grid-auto-rows:min-content}.gt-library-styles :is(.grid-cols-1){grid-template-columns:repeat(1, minmax(0, 1fr))}.gt-library-styles :is(.grid-cols-12){grid-template-columns:repeat(12, minmax(0, 1fr))}.gt-library-styles :is(.grid-cols-2){grid-template-columns:repeat(2, minmax(0, 1fr))}.gt-library-styles :is(.grid-cols-4){grid-template-columns:repeat(4, minmax(0, 1fr))}.gt-library-styles :is(.grid-cols-\\[4rem_1fr_4rem\\]){grid-template-columns:4rem 1fr 4rem}.gt-library-styles :is(.grid-rows-1){grid-template-rows:repeat(1, minmax(0, 1fr))}.gt-library-styles :is(.grid-rows-2){grid-template-rows:repeat(2, minmax(0, 1fr))}.gt-library-styles :is(.grid-rows-6){grid-template-rows:repeat(6, minmax(0, 1fr))}.gt-library-styles :is(.grid-rows-\\[4\\.5rem_1fr\\]){grid-template-rows:4.5rem 1fr}.gt-library-styles :is(.grid-rows-\\[80px_1fr\\]){grid-template-rows:80px 1fr}.gt-library-styles :is(.flex-row){flex-direction:row}.gt-library-styles :is(.flex-col){flex-direction:column}.gt-library-styles :is(.flex-wrap){flex-wrap:wrap}.gt-library-styles :is(.flex-nowrap){flex-wrap:nowrap}.gt-library-styles :is(.place-items-end){place-items:end}.gt-library-styles :is(.place-items-center){place-items:center}.gt-library-styles :is(.content-start){align-content:flex-start}.gt-library-styles :is(.content-stretch){align-content:stretch}.gt-library-styles :is(.items-start){align-items:flex-start}.gt-library-styles :is(.items-end){align-items:flex-end}.gt-library-styles :is(.items-center){align-items:center}.gt-library-styles :is(.items-baseline){align-items:baseline}.gt-library-styles :is(.items-stretch){align-items:stretch}.gt-library-styles :is(.justify-start){justify-content:flex-start}.gt-library-styles :is(.justify-end){justify-content:flex-end}.gt-library-styles :is(.justify-center){justify-content:center}.gt-library-styles :is(.justify-between){justify-content:space-between}.gt-library-styles :is(.justify-around){justify-content:space-around}.gt-library-styles :is(.justify-stretch){justify-content:stretch}.gt-library-styles :is(.gap-0){gap:0px}.gt-library-styles :is(.gap-0\\.5){gap:.125rem}.gt-library-styles :is(.gap-1){gap:.25rem}.gt-library-styles :is(.gap-1\\.5){gap:.375rem}.gt-library-styles :is(.gap-10){gap:2.5rem}.gt-library-styles :is(.gap-12){gap:3rem}.gt-library-styles :is(.gap-2){gap:.5rem}.gt-library-styles :is(.gap-2\\.5){gap:.625rem}.gt-library-styles :is(.gap-3){gap:.75rem}.gt-library-styles :is(.gap-4){gap:1rem}.gt-library-styles :is(.gap-5){gap:1.25rem}.gt-library-styles :is(.gap-6){gap:1.5rem}.gt-library-styles :is(.gap-7){gap:1.75rem}.gt-library-styles :is(.gap-8){gap:2rem}.gt-library-styles :is(.gap-x-2){column-gap:.5rem}.gt-library-styles :is(.gap-x-6){column-gap:1.5rem}.gt-library-styles :is(.gap-x-8){column-gap:2rem}.gt-library-styles :is(.gap-y-1){row-gap:.25rem}.gt-library-styles :is(.gap-y-2){row-gap:.5rem}.gt-library-styles :is(.gap-y-5){row-gap:1.25rem}.gt-library-styles :is(.gap-y-6){row-gap:1.5rem}.gt-library-styles :is(.\\!space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse))) !important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse)) !important}.gt-library-styles :is(.\\!space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse))) !important;margin-bottom:calc(1rem*var(--tw-space-y-reverse)) !important}.gt-library-styles :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem*var(--tw-space-x-reverse));margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.space-x-4>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.space-x-5>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(1.25rem*var(--tw-space-x-reverse));margin-left:calc(1.25rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-2\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.625rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-3>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-7>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.75rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.gt-library-styles :is(.\\!divide-y>:not([hidden])~:not([hidden])){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse))) !important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse)) !important}.gt-library-styles :is(.divide-x-0>:not([hidden])~:not([hidden])){--tw-divide-x-reverse: 0;border-right-width:calc(0px*var(--tw-divide-x-reverse));border-left-width:calc(0px*(1 - var(--tw-divide-x-reverse)))}.gt-library-styles :is(.divide-y>:not([hidden])~:not([hidden])){--tw-divide-y-reverse: 0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.gt-library-styles :is(.divide-solid>:not([hidden])~:not([hidden])){border-style:solid}.gt-library-styles :is(.\\!divide-border-primary>:not([hidden])~:not([hidden])){--tw-divide-opacity: 1 !important;border-color:rgb(209 213 219/var(--tw-divide-opacity)) !important}.gt-library-styles :is(.divide-border-primary>:not([hidden])~:not([hidden])){--tw-divide-opacity: 1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}.gt-library-styles :is(.self-start){align-self:flex-start}.gt-library-styles :is(.self-center){align-self:center}.gt-library-styles :is(.self-stretch){align-self:stretch}.gt-library-styles :is(.justify-self-end){justify-self:end}.gt-library-styles :is(.justify-self-center){justify-self:center}.gt-library-styles :is(.overflow-auto){overflow:auto}.gt-library-styles :is(.overflow-hidden){overflow:hidden}.gt-library-styles :is(.overflow-visible){overflow:visible}.gt-library-styles :is(.overflow-x-auto){overflow-x:auto}.gt-library-styles :is(.overflow-y-auto){overflow-y:auto}.gt-library-styles :is(.overflow-x-hidden){overflow-x:hidden}.gt-library-styles :is(.overflow-y-scroll){overflow-y:scroll}.gt-library-styles :is(.truncate){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gt-library-styles :is(.whitespace-nowrap){white-space:nowrap}.gt-library-styles :is(.whitespace-pre){white-space:pre}.gt-library-styles :is(.text-nowrap){text-wrap:nowrap}.gt-library-styles :is(.break-words){overflow-wrap:break-word}.gt-library-styles :is(.break-keep){word-break:keep-all}.gt-library-styles :is(.\\!rounded-lg){border-radius:.5rem !important}.gt-library-styles :is(.\\!rounded-none){border-radius:0px !important}.gt-library-styles :is(.rounded){border-radius:.25rem}.gt-library-styles :is(.rounded-\\[25px\\]){border-radius:25px}.gt-library-styles :is(.rounded-full){border-radius:9999px}.gt-library-styles :is(.rounded-lg){border-radius:.5rem}.gt-library-styles :is(.rounded-md){border-radius:.375rem}.gt-library-styles :is(.rounded-none){border-radius:0px}.gt-library-styles :is(.rounded-sm){border-radius:.125rem}.gt-library-styles :is(.rounded-xl){border-radius:.75rem}.gt-library-styles :is(.rounded-b-md){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.gt-library-styles :is(.rounded-b-none){border-bottom-right-radius:0px;border-bottom-left-radius:0px}.gt-library-styles :is(.rounded-t-lg){border-top-left-radius:.5rem;border-top-right-radius:.5rem}.gt-library-styles :is(.\\!border){border-width:1px !important}.gt-library-styles :is(.\\!border-0){border-width:0px !important}.gt-library-styles :is(.border){border-width:1px}.gt-library-styles :is(.border-0){border-width:0px}.gt-library-styles :is(.border-2){border-width:2px}.gt-library-styles :is(.border-x){border-left-width:1px;border-right-width:1px}.gt-library-styles :is(.border-x-4){border-left-width:4px;border-right-width:4px}.gt-library-styles :is(.\\!border-b-0){border-bottom-width:0px !important}.gt-library-styles :is(.\\!border-r-0){border-right-width:0px !important}.gt-library-styles :is(.border-b){border-bottom-width:1px}.gt-library-styles :is(.border-b-0){border-bottom-width:0px}.gt-library-styles :is(.border-l-0){border-left-width:0px}.gt-library-styles :is(.border-r){border-right-width:1px}.gt-library-styles :is(.border-r-0){border-right-width:0px}.gt-library-styles :is(.border-t){border-top-width:1px}.gt-library-styles :is(.border-t-0){border-top-width:0px}.gt-library-styles :is(.border-solid){border-style:solid}.gt-library-styles :is(.border-dashed){border-style:dashed}.gt-library-styles :is(.border-none){border-style:none}.gt-library-styles :is(.\\!border-border-primary){--tw-border-opacity: 1 !important;border-color:rgb(209 213 219/var(--tw-border-opacity)) !important}.gt-library-styles :is(.\\!border-transparent){border-color:rgba(0,0,0,0) !important}.gt-library-styles :is(.border-accent-spectra){--tw-border-opacity: 1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.gt-library-styles :is(.border-accent-st){--tw-border-opacity: 1;border-color:rgb(61 69 146/var(--tw-border-opacity))}.gt-library-styles :is(.border-alert-error){--tw-border-opacity: 1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.gt-library-styles :is(.border-alert-error-text){--tw-border-opacity: 1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.gt-library-styles :is(.border-black\\/\\[0\\.12\\]){border-color:rgba(0,0,0,.12)}.gt-library-styles :is(.border-border-primary){--tw-border-opacity: 1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.gt-library-styles :is(.border-border-secondary){--tw-border-opacity: 1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.gt-library-styles :is(.border-border-tertiary){--tw-border-opacity: 1;border-color:rgb(216 223 233/var(--tw-border-opacity))}.gt-library-styles :is(.border-button-disabled){--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.gt-library-styles :is(.border-credit-danger\\/5){border-color:rgba(234,21,34,.05)}.gt-library-styles :is(.border-credit-warning){--tw-border-opacity: 1;border-color:rgb(251 126 10/var(--tw-border-opacity))}.gt-library-styles :is(.border-credit-warning\\/5){border-color:rgba(251,126,10,.05)}.gt-library-styles :is(.border-gray-200){--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.gt-library-styles :is(.border-image-selection){--tw-border-opacity: 1;border-color:rgb(255 88 14/var(--tw-border-opacity))}.gt-library-styles :is(.border-secondary-text){--tw-border-opacity: 1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.gt-library-styles :is(.border-step-connector){--tw-border-opacity: 1;border-color:rgb(226 232 240/var(--tw-border-opacity))}.gt-library-styles :is(.border-transparent){border-color:rgba(0,0,0,0)}.gt-library-styles :is(.border-white){--tw-border-opacity: 1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.gt-library-styles :is(.border-zip-dark-theme-border){--tw-border-opacity: 1;border-color:rgb(51 62 82/var(--tw-border-opacity))}.gt-library-styles :is(.border-zip-light-border-primary){--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.gt-library-styles :is(.border-b-border-primary){--tw-border-opacity: 1;border-bottom-color:rgb(209 213 219/var(--tw-border-opacity))}.gt-library-styles :is(.border-t-border-primary){--tw-border-opacity: 1;border-top-color:rgb(209 213 219/var(--tw-border-opacity))}.gt-library-styles :is(.\\!bg-tooltip){--tw-bg-opacity: 1 !important;background-color:rgb(51 65 85/var(--tw-bg-opacity)) !important}.gt-library-styles :is(.\\!bg-transparent){background-color:rgba(0,0,0,0) !important}.gt-library-styles :is(.\\!bg-zip-app-light-bg){--tw-bg-opacity: 1 !important;background-color:rgb(240 244 250/var(--tw-bg-opacity)) !important}.gt-library-styles :is(.bg-\\[\\#0BC16A\\]\\/\\[0\\.08\\]){background-color:rgba(11,193,106,.08)}.gt-library-styles :is(.bg-\\[\\#E6FFFA\\]){--tw-bg-opacity: 1;background-color:rgb(230 255 250/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-\\[\\#F0F0FF\\]\\/\\[0\\.9\\]){background-color:rgba(240,240,255,.9)}.gt-library-styles :is(.bg-\\[\\#F6FAFE\\]){--tw-bg-opacity: 1;background-color:rgb(246 250 254/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-accent-spectra){--tw-bg-opacity: 1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-accent-st){--tw-bg-opacity: 1;background-color:rgb(61 69 146/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-alert-error){--tw-bg-opacity: 1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-alert-error-bg){--tw-bg-opacity: 1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-alert-error-text){--tw-bg-opacity: 1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-alert-info-bg){--tw-bg-opacity: 1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-background-primary){--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-background-secondary){--tw-bg-opacity: 1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-background-tertiary){--tw-bg-opacity: 1;background-color:rgb(235 240 251/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-background-tertiary\\/80){background-color:rgba(235,240,251,.8)}.gt-library-styles :is(.bg-background-tertiary\\/\\[0\\.85\\]){background-color:rgba(235,240,251,.85)}.gt-library-styles :is(.bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-border-primary){--tw-bg-opacity: 1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-border-secondary){--tw-bg-opacity: 1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-border-secondary\\/80){background-color:rgba(107,114,128,.8)}.gt-library-styles :is(.bg-border-tertiary){--tw-bg-opacity: 1;background-color:rgb(216 223 233/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-button-disabled){--tw-bg-opacity: 1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-credit-danger){--tw-bg-opacity: 1;background-color:rgb(234 21 34/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-credit-danger\\/5){background-color:rgba(234,21,34,.05)}.gt-library-styles :is(.bg-credit-warning){--tw-bg-opacity: 1;background-color:rgb(251 126 10/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-credit-warning\\/5){background-color:rgba(251,126,10,.05)}.gt-library-styles :is(.bg-gray-200){--tw-bg-opacity: 1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-gray-500\\/50){background-color:rgba(107,114,128,.5)}.gt-library-styles :is(.bg-gt-container-background){--tw-bg-opacity: 1;background-color:rgb(247 247 249/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-image-selection){--tw-bg-opacity: 1;background-color:rgb(255 88 14/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-nav-active){--tw-bg-opacity: 1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-nav-inactive){--tw-bg-opacity: 1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-orange-50){--tw-bg-opacity: 1;background-color:rgb(255 247 237/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-premium-badge){--tw-bg-opacity: 1;background-color:rgb(255 193 7/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-secondary-text){--tw-bg-opacity: 1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-slate-300){--tw-bg-opacity: 1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-toast-error-icon){--tw-bg-opacity: 1;background-color:rgb(254 185 175/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-transparent){background-color:rgba(0,0,0,0)}.gt-library-styles :is(.bg-white){--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-white\\/95){background-color:rgba(255,255,255,.95)}.gt-library-styles :is(.bg-white\\/\\[0\\.85\\]){background-color:rgba(255,255,255,.85)}.gt-library-styles :is(.bg-zip-app-light-bg){--tw-bg-opacity: 1;background-color:rgb(240 244 250/var(--tw-bg-opacity))}.gt-library-styles :is(.bg-opacity-50){--tw-bg-opacity: 0.5}.gt-library-styles :is(.bg-gradient-to-l){background-image:linear-gradient(to left, var(--tw-gradient-stops))}.gt-library-styles :is(.bg-gradient-to-r){background-image:linear-gradient(to right, var(--tw-gradient-stops))}.gt-library-styles :is(.from-gradient-color-1\\/50){--tw-gradient-from: rgb(184 9 167 / 0.5) var(--tw-gradient-from-position);--tw-gradient-to: rgb(184 9 167 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.gt-library-styles :is(.from-white){--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.gt-library-styles :is(.from-70\\%){--tw-gradient-from-position: 70%}.gt-library-styles :is(.via-gradient-color-2\\/50){--tw-gradient-to: rgb(233 11 118 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(233 11 118 / 0.5) var(--tw-gradient-via-position), var(--tw-gradient-to)}.gt-library-styles :is(.to-gradient-color-3\\/50){--tw-gradient-to: rgb(252 133 54 / 0.5) var(--tw-gradient-to-position)}.gt-library-styles :is(.to-transparent){--tw-gradient-to: transparent var(--tw-gradient-to-position)}.gt-library-styles :is(.bg-\\[length\\:100\\%_6px\\]){background-size:100% 6px}.gt-library-styles :is(.bg-cover){background-size:cover}.gt-library-styles :is(.bg-bottom){background-position:bottom}.gt-library-styles :is(.bg-top){background-position:top}.gt-library-styles :is(.bg-no-repeat){background-repeat:no-repeat}.gt-library-styles :is(.fill-favorite){fill:#fd3997}.gt-library-styles :is(.stroke-2){stroke-width:2}.gt-library-styles :is(.stroke-\\[1\\]){stroke-width:1}.gt-library-styles :is(.\\!p-0){padding:0px !important}.gt-library-styles :is(.\\!p-2){padding:.5rem !important}.gt-library-styles :is(.\\!p-6){padding:1.5rem !important}.gt-library-styles :is(.p-0){padding:0px}.gt-library-styles :is(.p-0\\.5){padding:.125rem}.gt-library-styles :is(.p-1){padding:.25rem}.gt-library-styles :is(.p-10){padding:2.5rem}.gt-library-styles :is(.p-2){padding:.5rem}.gt-library-styles :is(.p-3){padding:.75rem}.gt-library-styles :is(.p-4){padding:1rem}.gt-library-styles :is(.p-5){padding:1.25rem}.gt-library-styles :is(.p-8){padding:2rem}.gt-library-styles :is(.\\!px-0){padding-left:0px !important;padding-right:0px !important}.gt-library-styles :is(.\\!px-3){padding-left:.75rem !important;padding-right:.75rem !important}.gt-library-styles :is(.\\!px-4){padding-left:1rem !important;padding-right:1rem !important}.gt-library-styles :is(.\\!px-4\\.5){padding-left:1.125rem !important;padding-right:1.125rem !important}.gt-library-styles :is(.\\!py-1){padding-top:.25rem !important;padding-bottom:.25rem !important}.gt-library-styles :is(.\\!py-1\\.5){padding-top:.375rem !important;padding-bottom:.375rem !important}.gt-library-styles :is(.px-0){padding-left:0px;padding-right:0px}.gt-library-styles :is(.px-1){padding-left:.25rem;padding-right:.25rem}.gt-library-styles :is(.px-1\\.5){padding-left:.375rem;padding-right:.375rem}.gt-library-styles :is(.px-10){padding-left:2.5rem;padding-right:2.5rem}.gt-library-styles :is(.px-2){padding-left:.5rem;padding-right:.5rem}.gt-library-styles :is(.px-2\\.5){padding-left:.625rem;padding-right:.625rem}.gt-library-styles :is(.px-3){padding-left:.75rem;padding-right:.75rem}.gt-library-styles :is(.px-3\\.5){padding-left:.875rem;padding-right:.875rem}.gt-library-styles :is(.px-4){padding-left:1rem;padding-right:1rem}.gt-library-styles :is(.px-5){padding-left:1.25rem;padding-right:1.25rem}.gt-library-styles :is(.px-6){padding-left:1.5rem;padding-right:1.5rem}.gt-library-styles :is(.px-7){padding-left:1.75rem;padding-right:1.75rem}.gt-library-styles :is(.px-8){padding-left:2rem;padding-right:2rem}.gt-library-styles :is(.px-\\[1rem\\]){padding-left:1rem;padding-right:1rem}.gt-library-styles :is(.px-\\[4\\.875rem\\]){padding-left:4.875rem;padding-right:4.875rem}.gt-library-styles :is(.px-\\[78px\\]){padding-left:78px;padding-right:78px}.gt-library-styles :is(.py-0){padding-top:0px;padding-bottom:0px}.gt-library-styles :is(.py-0\\.5){padding-top:.125rem;padding-bottom:.125rem}.gt-library-styles :is(.py-1){padding-top:.25rem;padding-bottom:.25rem}.gt-library-styles :is(.py-1\\.5){padding-top:.375rem;padding-bottom:.375rem}.gt-library-styles :is(.py-11){padding-top:2.75rem;padding-bottom:2.75rem}.gt-library-styles :is(.py-12){padding-top:3rem;padding-bottom:3rem}.gt-library-styles :is(.py-2){padding-top:.5rem;padding-bottom:.5rem}.gt-library-styles :is(.py-2\\.5){padding-top:.625rem;padding-bottom:.625rem}.gt-library-styles :is(.py-3){padding-top:.75rem;padding-bottom:.75rem}.gt-library-styles :is(.py-4){padding-top:1rem;padding-bottom:1rem}.gt-library-styles :is(.py-5){padding-top:1.25rem;padding-bottom:1.25rem}.gt-library-styles :is(.py-7){padding-top:1.75rem;padding-bottom:1.75rem}.gt-library-styles :is(.py-8){padding-top:2rem;padding-bottom:2rem}.gt-library-styles :is(.py-\\[3\\.125rem\\]){padding-top:3.125rem;padding-bottom:3.125rem}.gt-library-styles :is(.py-\\[50px\\]){padding-top:50px;padding-bottom:50px}.gt-library-styles :is(.py-px){padding-top:1px;padding-bottom:1px}.gt-library-styles :is(.\\!pl-10){padding-left:2.5rem !important}.gt-library-styles :is(.\\!pl-11){padding-left:2.75rem !important}.gt-library-styles :is(.\\!pl-8){padding-left:2rem !important}.gt-library-styles :is(.\\!pr-0){padding-right:0px !important}.gt-library-styles :is(.\\!pr-10){padding-right:2.5rem !important}.gt-library-styles :is(.\\!pr-11){padding-right:2.75rem !important}.gt-library-styles :is(.pb-0){padding-bottom:0px}.gt-library-styles :is(.pb-10){padding-bottom:2.5rem}.gt-library-styles :is(.pb-2){padding-bottom:.5rem}.gt-library-styles :is(.pb-3){padding-bottom:.75rem}.gt-library-styles :is(.pb-4){padding-bottom:1rem}.gt-library-styles :is(.pb-5){padding-bottom:1.25rem}.gt-library-styles :is(.pb-6){padding-bottom:1.5rem}.gt-library-styles :is(.pb-8){padding-bottom:2rem}.gt-library-styles :is(.pb-px){padding-bottom:1px}.gt-library-styles :is(.pl-0){padding-left:0px}.gt-library-styles :is(.pl-1){padding-left:.25rem}.gt-library-styles :is(.pl-2){padding-left:.5rem}.gt-library-styles :is(.pl-2\\.5){padding-left:.625rem}.gt-library-styles :is(.pl-3){padding-left:.75rem}.gt-library-styles :is(.pl-4){padding-left:1rem}.gt-library-styles :is(.pl-5){padding-left:1.25rem}.gt-library-styles :is(.pl-6){padding-left:1.5rem}.gt-library-styles :is(.pl-8){padding-left:2rem}.gt-library-styles :is(.pl-\\[23px\\]){padding-left:23px}.gt-library-styles :is(.pr-1){padding-right:.25rem}.gt-library-styles :is(.pr-12){padding-right:3rem}.gt-library-styles :is(.pr-2){padding-right:.5rem}.gt-library-styles :is(.pr-3){padding-right:.75rem}.gt-library-styles :is(.pr-4){padding-right:1rem}.gt-library-styles :is(.pr-5){padding-right:1.25rem}.gt-library-styles :is(.pr-6){padding-right:1.5rem}.gt-library-styles :is(.pr-8){padding-right:2rem}.gt-library-styles :is(.pr-9){padding-right:2.25rem}.gt-library-styles :is(.pr-\\[25px\\]){padding-right:25px}.gt-library-styles :is(.pt-0){padding-top:0px}.gt-library-styles :is(.pt-0\\.5){padding-top:.125rem}.gt-library-styles :is(.pt-1){padding-top:.25rem}.gt-library-styles :is(.pt-10){padding-top:2.5rem}.gt-library-styles :is(.pt-12){padding-top:3rem}.gt-library-styles :is(.pt-2){padding-top:.5rem}.gt-library-styles :is(.pt-3){padding-top:.75rem}.gt-library-styles :is(.pt-4){padding-top:1rem}.gt-library-styles :is(.pt-5){padding-top:1.25rem}.gt-library-styles :is(.pt-6){padding-top:1.5rem}.gt-library-styles :is(.pt-8){padding-top:2rem}.gt-library-styles :is(.text-left){text-align:left}.gt-library-styles :is(.text-center){text-align:center}.gt-library-styles :is(.text-right){text-align:right}.gt-library-styles :is(.align-text-top){vertical-align:text-top}.gt-library-styles :is(.font-sans){font-family:Figtree,sans-serif}.gt-library-styles :is(.\\!text-\\[1\\.375rem\\]){font-size:1.375rem !important}.gt-library-styles :is(.\\!text-base){font-size:1rem !important;line-height:1.5rem !important}.gt-library-styles :is(.\\!text-sm){font-size:.875rem !important;line-height:1.25rem !important}.gt-library-styles :is(.\\!text-xs){font-size:.75rem !important;line-height:1rem !important}.gt-library-styles :is(.text-2xl){font-size:1.5rem;line-height:2rem}.gt-library-styles :is(.text-\\[0\\.625rem\\]){font-size:.625rem}.gt-library-styles :is(.text-\\[0\\.92rem\\]){font-size:.92rem}.gt-library-styles :is(.text-\\[0\\.9rem\\]){font-size:.9rem}.gt-library-styles :is(.text-\\[1\\.15rem\\]){font-size:1.15rem}.gt-library-styles :is(.text-\\[1\\.75rem\\]){font-size:1.75rem}.gt-library-styles :is(.text-\\[10px\\]){font-size:10px}.gt-library-styles :is(.text-\\[16px\\]){font-size:16px}.gt-library-styles :is(.text-\\[2rem\\]){font-size:2rem}.gt-library-styles :is(.text-base){font-size:1rem;line-height:1.5rem}.gt-library-styles :is(.text-lg){font-size:1.125rem;line-height:1.75rem}.gt-library-styles :is(.text-sm){font-size:.875rem;line-height:1.25rem}.gt-library-styles :is(.text-xl){font-size:1.25rem;line-height:1.75rem}.gt-library-styles :is(.text-xs){font-size:.75rem;line-height:1rem}.gt-library-styles :is(.\\!font-medium){font-weight:500 !important}.gt-library-styles :is(.\\!font-normal){font-weight:400 !important}.gt-library-styles :is(.\\!font-semibold){font-weight:600 !important}.gt-library-styles :is(.font-bold){font-weight:700}.gt-library-styles :is(.font-medium){font-weight:500}.gt-library-styles :is(.font-normal){font-weight:400}.gt-library-styles :is(.font-semibold){font-weight:600}.gt-library-styles :is(.uppercase){text-transform:uppercase}.gt-library-styles :is(.\\!leading-4){line-height:1rem !important}.gt-library-styles :is(.\\!leading-6){line-height:1.5rem !important}.gt-library-styles :is(.leading-10){line-height:2.5rem}.gt-library-styles :is(.leading-3){line-height:.75rem}.gt-library-styles :is(.leading-4){line-height:1rem}.gt-library-styles :is(.leading-5){line-height:1.25rem}.gt-library-styles :is(.leading-6){line-height:1.5rem}.gt-library-styles :is(.leading-7){line-height:1.75rem}.gt-library-styles :is(.leading-8){line-height:2rem}.gt-library-styles :is(.leading-9){line-height:2.25rem}.gt-library-styles :is(.leading-\\[1\\.875rem\\]){line-height:1.875rem}.gt-library-styles :is(.leading-\\[150\\%\\]){line-height:150%}.gt-library-styles :is(.leading-\\[15px\\]){line-height:15px}.gt-library-styles :is(.leading-\\[2\\.625rem\\]){line-height:2.625rem}.gt-library-styles :is(.leading-\\[21px\\]){line-height:21px}.gt-library-styles :is(.leading-\\[24px\\]){line-height:24px}.gt-library-styles :is(.leading-tight){line-height:1.25}.gt-library-styles :is(.\\!text-accent-spectra){--tw-text-opacity: 1 !important;color:rgb(37 99 235/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-alert-error){--tw-text-opacity: 1 !important;color:rgb(239 68 68/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-black){--tw-text-opacity: 1 !important;color:rgb(0 0 0/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-nav-active){--tw-text-opacity: 1 !important;color:rgb(17 24 39/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-secondary-text){--tw-text-opacity: 1 !important;color:rgb(156 163 175/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-zip-app-heading){--tw-text-opacity: 1 !important;color:rgb(15 23 42/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-zip-app-inactive-icon){--tw-text-opacity: 1 !important;color:rgb(148 163 184/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-zip-app-label){--tw-text-opacity: 1 !important;color:rgb(3 7 18/var(--tw-text-opacity)) !important}.gt-library-styles :is(.\\!text-zip-body-text){--tw-text-opacity: 1 !important;color:rgb(71 85 105/var(--tw-text-opacity)) !important}.gt-library-styles :is(.text-\\[\\#0BC16A\\]){--tw-text-opacity: 1;color:rgb(11 193 106/var(--tw-text-opacity))}.gt-library-styles :is(.text-\\[\\#0F172A\\]){--tw-text-opacity: 1;color:rgb(15 23 42/var(--tw-text-opacity))}.gt-library-styles :is(.text-\\[\\#111827\\]){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.text-\\[\\#475569\\]){--tw-text-opacity: 1;color:rgb(71 85 105/var(--tw-text-opacity))}.gt-library-styles :is(.text-accent-spectra){--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.gt-library-styles :is(.text-accent-st){--tw-text-opacity: 1;color:rgb(61 69 146/var(--tw-text-opacity))}.gt-library-styles :is(.text-alert-error){--tw-text-opacity: 1;color:rgb(239 68 68/var(--tw-text-opacity))}.gt-library-styles :is(.text-alert-info){--tw-text-opacity: 1;color:rgb(59 130 246/var(--tw-text-opacity))}.gt-library-styles :is(.text-background-primary){--tw-text-opacity: 1;color:rgb(255 255 255/var(--tw-text-opacity))}.gt-library-styles :is(.text-black){--tw-text-opacity: 1;color:rgb(0 0 0/var(--tw-text-opacity))}.gt-library-styles :is(.text-body-text){--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.gt-library-styles :is(.text-border-secondary){--tw-text-opacity: 1;color:rgb(107 114 128/var(--tw-text-opacity))}.gt-library-styles :is(.text-border-tertiary){--tw-text-opacity: 1;color:rgb(216 223 233/var(--tw-text-opacity))}.gt-library-styles :is(.text-credit-danger){--tw-text-opacity: 1;color:rgb(234 21 34/var(--tw-text-opacity))}.gt-library-styles :is(.text-credit-notice){--tw-text-opacity: 1;color:rgb(35 78 82/var(--tw-text-opacity))}.gt-library-styles :is(.text-credit-warning){--tw-text-opacity: 1;color:rgb(251 126 10/var(--tw-text-opacity))}.gt-library-styles :is(.text-favorite){--tw-text-opacity: 1;color:rgb(253 57 151/var(--tw-text-opacity))}.gt-library-styles :is(.text-heading-text){--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.gt-library-styles :is(.text-icon-primary){--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.gt-library-styles :is(.text-icon-secondary){--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.gt-library-styles :is(.text-inherit){color:inherit}.gt-library-styles :is(.text-nav-active){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.text-nav-inactive){--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}.gt-library-styles :is(.text-orange-400){--tw-text-opacity: 1;color:rgb(251 146 60/var(--tw-text-opacity))}.gt-library-styles :is(.text-secondary-text){--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.gt-library-styles :is(.text-slate-500){--tw-text-opacity: 1;color:rgb(100 116 139/var(--tw-text-opacity))}.gt-library-styles :is(.text-white){--tw-text-opacity: 1;color:rgb(255 255 255/var(--tw-text-opacity))}.gt-library-styles :is(.text-zip-app-heading){--tw-text-opacity: 1;color:rgb(15 23 42/var(--tw-text-opacity))}.gt-library-styles :is(.text-zip-app-inactive-icon){--tw-text-opacity: 1;color:rgb(148 163 184/var(--tw-text-opacity))}.gt-library-styles :is(.text-zip-app-label){--tw-text-opacity: 1;color:rgb(3 7 18/var(--tw-text-opacity))}.gt-library-styles :is(.text-zip-body-text){--tw-text-opacity: 1;color:rgb(71 85 105/var(--tw-text-opacity))}.gt-library-styles :is(.text-zip-light-border-primary){--tw-text-opacity: 1;color:rgb(229 231 235/var(--tw-text-opacity))}.gt-library-styles :is(.underline){text-decoration-line:underline}.gt-library-styles :is(.no-underline){text-decoration-line:none}.gt-library-styles :is(.\\!opacity-80){opacity:.8 !important}.gt-library-styles :is(.opacity-0){opacity:0}.gt-library-styles :is(.opacity-100){opacity:1}.gt-library-styles :is(.opacity-25){opacity:.25}.gt-library-styles :is(.opacity-50){opacity:.5}.gt-library-styles :is(.opacity-75){opacity:.75}.gt-library-styles :is(.\\!shadow-none){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow) !important}.gt-library-styles :is(.\\!shadow-xlarge){--tw-shadow: 0px 24px 48px -12px rgba(0, 0, 0, 0.10) !important;--tw-shadow-colored: 0px 24px 48px -12px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow) !important}.gt-library-styles :is(.shadow){--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-action-buttons){--tw-shadow: 0px 0px 40px -8px rgba(0, 0, 0, 0.20);--tw-shadow-colored: 0px 0px 40px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-large){--tw-shadow: 0px 8px 8px -4px rgba(0, 0, 0, 0.03), 0px 20px 24px -4px rgba(0, 0, 0, 0.08);--tw-shadow-colored: 0px 8px 8px -4px var(--tw-shadow-color), 0px 20px 24px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-md){--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-medium){--tw-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.03), 0px 12px 16px -4px rgba(0, 0, 0, 0.08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-none){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-sm){--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-small){--tw-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06), 0px 4px 8px -2px rgba(0, 0, 0, 0.10);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-sync-badge){--tw-shadow: 0px 4px 4px 0px rgba(251, 126, 10, 0.14);--tw-shadow-colored: 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-xl){--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.shadow-xlarge){--tw-shadow: 0px 24px 48px -12px rgba(0, 0, 0, 0.10);--tw-shadow-colored: 0px 24px 48px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.outline-none){outline:2px solid rgba(0,0,0,0);outline-offset:2px}.gt-library-styles :is(.ring-0){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.ring-1){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.ring-2){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.ring-inset){--tw-ring-inset: inset}.gt-library-styles :is(.ring-accent-spectra){--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.gt-library-styles :is(.ring-black){--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.gt-library-styles :is(.ring-transparent){--tw-ring-color: transparent}.gt-library-styles :is(.ring-opacity-5){--tw-ring-opacity: 0.05}.gt-library-styles :is(.ring-offset-4){--tw-ring-offset-width: 4px}.gt-library-styles :is(.blur){--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gt-library-styles :is(.filter){filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.gt-library-styles :is(.backdrop-blur-\\[20px\\]){--tw-backdrop-blur: blur(20px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.gt-library-styles :is(.backdrop-blur-\\[3px\\]){--tw-backdrop-blur: blur(3px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.gt-library-styles :is(.backdrop-blur-\\[6px\\]){--tw-backdrop-blur: blur(6px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.gt-library-styles :is(.backdrop-blur-md){--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.gt-library-styles :is(.backdrop-blur-sm){--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.gt-library-styles :is(.transition){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.transition-\\[width\\]){transition-property:width;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.transition-all){transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.transition-colors){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.transition-opacity){transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.transition-transform){transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.gt-library-styles :is(.duration-100){transition-duration:100ms}.gt-library-styles :is(.duration-150){transition-duration:150ms}.gt-library-styles :is(.duration-200){transition-duration:200ms}.gt-library-styles :is(.duration-300){transition-duration:300ms}.gt-library-styles :is(.duration-75){transition-duration:75ms}.gt-library-styles :is(.ease-in){transition-timing-function:cubic-bezier(0.4, 0, 1, 1)}.gt-library-styles :is(.ease-in-out){transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.gt-library-styles :is(.ease-out){transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.gt-library-styles :is(.sp-text-base){font-size:1rem;line-height:1.3125rem}.gt-library-styles :is(.sp-text-sm){font-size:.875rem;line-height:1.3125rem}.gt-library-styles :is(.\\[grid-area\\:1\\/3\\]){grid-area:1/3}:root{--colors-heading: #030712;--colors-accent-spectra: #2563eb;--colors-accent-st: #3d4592}html:has(.ast-block-templates-lightbox.open,.uag-block-templates-lightbox.open){font-size:16px}html:not(:has(.ast-block-templates-lightbox.open,.uag-block-templates-lightbox.open)) .invisible{visibility:initial}#ast-block-templates-modal-wrap *{font-family:Figtree,sans-serif !important}.spectra-ai{font-size:16px}.spectra-ai *{font-family:Figtree,sans-serif !important}.spectra-ai h1{margin:0px;padding:0px;font-size:3.5rem;font-weight:600;line-height:120%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai h2{margin:0px;padding:0px;font-size:3rem;font-weight:600;line-height:120%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai h3{margin:0px;padding:0px;font-size:2.5rem;font-weight:600;line-height:120%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai h4{margin:0px;padding:0px;font-size:30px;font-weight:600;line-height:130%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai h5{margin:0px;padding:0px;font-size:1.5rem;font-weight:600;line-height:140%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai h6{margin:0px;padding:0px;font-size:1.25rem;font-weight:600;line-height:140%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai label{margin:0px;padding:0px;font-weight:500;line-height:150%;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity))}.spectra-ai input{height:2.8rem;padding-left:1rem;padding-right:1rem}.spectra-ai textarea{padding-left:1rem;padding-right:1rem}.spectra-ai input,.spectra-ai textarea{border-radius:.375rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219/var(--tw-border-opacity));font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(60 67 74/var(--tw-text-opacity));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.spectra-ai input::placeholder,.spectra-ai textarea::placeholder{font-size:1rem;line-height:1.5rem;font-weight:400;line-height:150%}.spectra-ai input ::placeholder,.spectra-ai textarea ::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.spectra-ai a{--tw-text-opacity: 1;color:rgb(37 99 235/var(--tw-text-opacity))}.spectra-ai ::-webkit-scrollbar{width:8px}.spectra-ai ::-webkit-scrollbar-track{border-radius:0}.spectra-ai ::-webkit-scrollbar-thumb{background:#d5d6d7;border-radius:0}.spectra-ai ::-webkit-scrollbar-thumb:hover{background:#cacbcb;cursor:pointer}.spectra-ai :disabled,.spectra-ai [data-disabled=true]{pointer-events:none;opacity:.7}.spectra-ai div:has(>:disabled),.spectra-ai div:has(>[data-disabled=true]){cursor:not-allowed !important}*,::before,::after{margin:0;padding:0;box-sizing:border-box}#ast-block-templates-button-wrap{flex-basis:100%}#ast-block-templates-button{margin:2px;font-size:14px;align-items:center;display:flex;gap:8px;color:#fff}#ast-block-templates-button .logo{width:16px;height:16px;max-width:-moz-fit-content;max-width:fit-content;padding:0}#ast-block-templates-button .logo-btn-label{display:none}@media(min-width: 768px){#ast-block-templates-button .logo-btn-label{display:inline}}#ast-block-templates-button .uagb-template-button-logo{height:16px;width:16px;align-self:center}.ast-block-templates-button{padding:10px}#ast-block-templates-modal{box-shadow:2px 8px 23px 3px rgba(0,0,0,.2);overflow:hidden;background-color:#f1f3f5;max-width:85%;height:calc(100vh - 4em);z-index:9999;margin:2em auto}#ast-block-templates-modal>.inner{position:relative}.ast-block-templates-grid-blocks .button-actions.import-action-start{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .importing .inner .button-actions,.ast-block-templates-grid-blocks .inner:hover .button-actions{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .button-actions{opacity:0;visibility:hidden;margin:0 auto}.ast-block-templates-grid-blocks .heading-wrap .title{margin-bottom:0}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner img,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover img{filter:blur(1px)}.ast-block-templates-grid-blocks .ast-block-templates-grid .item.importing .inner .heading-wrap,.ast-block-templates-grid-blocks .ast-block-templates-grid .item .inner:hover .heading-wrap{opacity:1;visibility:visible}.ast-block-templates-grid-blocks .ast-block-templates-grid .item .heading-wrap{padding:5px 0;flex-direction:row;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;visibility:hidden;transition:transform .5s}.ast-block-templates-grid-pages{padding:35px 25px 0 25px}.ast-block-templates-grid-pages .heading-wrap{cursor:pointer}.ast-block-templates-grid-pages,.ast-block-templates-grid-blocks{display:none}.ast-block-templates-grid-pages.active,.ast-block-templates-grid-blocks.active{display:block}@media only screen and (min-width: 768px){.ast-block-templates-single-site-preview .ast-block-templates-grid .item,.ast-block-templates-grid-pages .ast-block-templates-grid .item{width:25%}}.ast-block-templates-grid .item{border:none;margin:0 4% 4% 0;position:relative;width:30.6%;box-sizing:border-box;align-content:flex-start}.ast-block-templates-grid .item.importing .inner,.ast-block-templates-grid .item:hover .inner{box-shadow:0 6px 14px 0 rgba(0,0,0,.12)}.ast-block-templates-grid .item .inner{margin:0;background:#fff;box-shadow:0 4px 10px 0 rgba(0,0,0,.07);position:relative;border-radius:3px;transition:all .4s;padding:5px}.ast-block-templates-grid .item .screenshot{background-position:center top;background-size:100%;background-repeat:no-repeat;border-top-left-radius:2px;border-top-right-radius:2px;overflow:hidden;background-color:#e5e5e5;position:relative;display:block}.ast-block-templates-grid .item .screenshot::after{content:"";display:block;padding-top:118%}.ast-block-templates-grid .item .heading-wrap{display:flex;justify-content:space-between;line-height:1;padding:12px 15px;font-weight:400;border:none;border-bottom-left-radius:2px;border-bottom-right-radius:2px;flex-direction:column}.ast-block-templates-grid .item .heading-wrap .ast-template-import-block-button{padding:6px 14px;min-height:auto;line-height:normal;border-radius:2px}.ast-block-templates-grid .item.importing .preview,.ast-block-templates-grid .item .inner:hover .preview{opacity:1;visibility:visible}.ast-block-templates-grid .item .preview{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0;visibility:hidden;float:none;transition:all .3s;background:rgba(0,0,0,.5)}.ast-block-templates-grid .item .preview .preview-inner{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);font-size:20px;color:#d5dadf}.ast-block-templates-grid .item .import{cursor:pointer;position:relative}.ast-block-templates-grid .item .import .components-spinner{position:absolute;left:-25px;margin:0;top:-2px}.ast-block-templates-grid .item .import .dashicons{height:auto;width:auto;font-size:initial;padding-right:3px}.ast-block-templates-grid-pages .ast-block-templates-grid .item .preview{background:unset}.image-loading{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:image-placeholder;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(to right, #fafafa 8%, #f4f4f4 38%, #fafafa 54%);position:relative}@keyframes image-placeholder{0%{background-position:-150px 0}100%{background-position:150px 0}}.ast-block-templates-grid{display:flex;flex-wrap:wrap}@media only screen and (min-width: 768px){.ast-block-templates-grid{margin:0}.ast-block-templates-grid .item{width:25%;padding:1.4%;margin:0;box-shadow:none}}.blocks-color{width:100%}.block-color-item{padding:6px 18px;display:inline-block;border:1px solid #c8cfd6;cursor:pointer;text-transform:capitalize}.block-color-item:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.block-color-item:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.block-color-item.active,.block-color-item:hover{background:#2271b1;border-color:#2271b1;color:#fff}.block-color-item:nth-child(2){border-right:none;border-left:none}.block-color-list{display:inline-flex}#ast-block-templates-modal-wrap{opacity:0;visibility:hidden;position:fixed;height:100%;width:100%;bottom:0;left:0;background-color:rgba(0,0,0,.8);z-index:99999999}#ast-block-templates-modal-wrap .ast-block-templates-grid>.components-spinner{margin:8em auto auto}#ast-block-templates-modal-wrap.open{opacity:1;visibility:visible}#ast-block-templates-modal-wrap .filter-wrap{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px 0;padding-left:12.55px}#ast-block-templates-modal-wrap .filter-wrap select{margin-right:10px;position:relative;background-size:12px 12px;height:28px;color:#6d7882;border-radius:3px;border-color:#d5dadf;font-size:12px;padding:0 20px 0 10px;appearance:none;-webkit-appearance:none;-moz-appearance:none}#ast-block-templates-modal-wrap .loading{position:relative;background-color:#e2e2e2}#ast-block-templates-modal-wrap .loading::after{display:block;content:"";position:absolute;width:100%;height:100%;transform:translateX(-100%);background:linear-gradient(90deg, rgba(255, 255, 255, 0.1098039216), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.168627451));animation:loading 1.5s infinite}@keyframes loading{100%{transform:translateX(100%)}}#ast-block-templates-modal{width:100%;max-width:100%;box-shadow:none;height:100%;margin:0}.st-block-category{display:flex;align-items:center;justify-content:space-between;cursor:pointer;margin-bottom:12px;color:#6d7882}.st-block-category:hover,.st-block-category.active{color:#2271b1}#ast-block-templates-modal .ast-block-templates-grid-blocks{display:flex;align-items:flex-start}#ast-block-templates-modal .ast-block-templates-grid-blocks .filter-wrap{align-items:flex-start;width:250px;padding:10px 30px 30px 30px;position:fixed;height:calc(100vh - 55px);background-color:rgba(255,255,255,.5);flex-grow:0;overflow-y:auto;box-shadow:2px 8px 23px 3px rgba(0,0,0,.05);z-index:2}#ast-block-templates-modal .ast-block-templates-pattern-grid{width:calc(100% - 250px);margin-left:auto;padding:3em}#ast-block-templates-modal .ast-block-templates-pattern-grid .notice{margin-bottom:1.5em}#ast-block-templates-modal .blocks-color{margin-bottom:40px}#ast-block-templates-modal .filters{margin-top:2em;width:100%}#ast-block-templates-modal .filters h3{color:#1e1e1e;font-size:14px;margin-bottom:20px;margin-top:0}.ast-block-templates-content .single-site .grid-item-badge{background:#ffc107;color:#000;padding:4px 12px;font-size:11px;top:0;right:-5px;text-transform:uppercase;position:absolute;z-index:1;border-radius:2px;font-weight:600;letter-spacing:.3px;transform:translateY(-30%)}.hide-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbar::-webkit-scrollbar{display:none}#ast-block-templates-modal [data-placeholder]::after{content:" ";box-shadow:0 0 50px 9px #fefefe;position:absolute;top:0;left:-100%;height:100%;animation:loading 1s infinite}@keyframes loading{0%{left:-100%}100%{left:150%}}.scrollbar-hover{scrollbar-width:none;-ms-overflow-style:none}.scrollbar-hover::-webkit-scrollbar,.scrollbar-hover::-webkit-scrollbar-thumb{visibility:hidden}.scrollbar-hover:hover{scrollbar-width:auto;-ms-overflow-style:auto}.scrollbar-hover:hover::-webkit-scrollbar,.scrollbar-hover:hover::-webkit-scrollbar-thumb{visibility:visible !important}@keyframes fade-in-fwd{0%{transform:translateZ(-80px);opacity:0}100%{transform:translateZ(0);opacity:1}}@keyframes fade-out-bck{0%{transform:translateZ(0);opacity:1}100%{transform:translateZ(-80px);opacity:0}}.fade-in-fwd{animation:fade-in-fwd 250ms cubic-bezier(0.39, 0.575, 0.565, 1) both}.fade-out-bck{animation:fade-out-bck 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both}[data-tippy-root]{z-index:99999999 !important}.tippy-content{font-size:.75rem;font-weight:400;line-height:1rem}.tippy-arrow{--tw-text-opacity: 1;color:rgb(51 65 85/var(--tw-text-opacity))}.spectra-ai ::-webkit-scrollbar{width:4px;height:128px}.spectra-ai ::-webkit-scrollbar-thumb{border-radius:2px;opacity:.2;background:var(--dark-background, rgba(31, 39, 51, 0.2))}.ast-thin-scrollbar::-webkit-scrollbar{width:4px}.ast-thin-scrollbar::-webkit-scrollbar-track{border-radius:0}.ast-thin-scrollbar::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px}.ast-thin-scrollbar::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3);cursor:pointer}.ast-hide-scrollbar::-webkit-scrollbar{display:none}.ast-block-templates-modal-open .media-modal{z-index:99999999}@media(min-width: 768px){.ast-block-templates-modal{height:100vh;width:100vh}}.disable-click-action{cursor:not-allowed;pointer-events:none}.gt-library-styles :is(.placeholder\\:\\!text-\\[0\\.9rem\\])::placeholder{font-size:.9rem !important}.gt-library-styles :is(.placeholder\\:\\!text-sm)::placeholder{font-size:.875rem !important;line-height:1.25rem !important}.gt-library-styles :is(.placeholder\\:text-sm)::placeholder{font-size:.875rem;line-height:1.25rem}.gt-library-styles :is(.placeholder\\:\\!text-zip-app-inactive-icon)::placeholder{--tw-text-opacity: 1 !important;color:rgb(148 163 184/var(--tw-text-opacity)) !important}.gt-library-styles :is(.placeholder\\:text-secondary-text)::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.gt-library-styles :is(.before\\:invisible)::before{content:var(--tw-content);visibility:hidden}.gt-library-styles :is(.before\\:relative)::before{content:var(--tw-content);position:relative}.gt-library-styles :is(.before\\:-top-\\[5px\\])::before{content:var(--tw-content);top:-5px}.gt-library-styles :is(.before\\:mx-2)::before{content:var(--tw-content);margin-left:.5rem;margin-right:.5rem}.gt-library-styles :is(.before\\:mx-2\\.5)::before{content:var(--tw-content);margin-left:.625rem;margin-right:.625rem}.gt-library-styles :is(.before\\:block)::before{content:var(--tw-content);display:block}.gt-library-styles :is(.before\\:inline-block)::before{content:var(--tw-content);display:inline-block}.gt-library-styles :is(.before\\:h-0)::before{content:var(--tw-content);height:0px}.gt-library-styles :is(.before\\:h-px)::before{content:var(--tw-content);height:1px}.gt-library-styles :is(.before\\:w-5)::before{content:var(--tw-content);width:1.25rem}.gt-library-styles :is(.before\\:text-sm)::before{content:var(--tw-content);font-size:.875rem;line-height:1.25rem}.gt-library-styles :is(.before\\:font-bold)::before{content:var(--tw-content);font-weight:700}.gt-library-styles :is(.before\\:content-\\[\\\'\\\'\\])::before{--tw-content: "";content:var(--tw-content)}.gt-library-styles :is(.before\\:content-\\[attr\\(data-title\\)\\])::before{--tw-content: attr(data-title);content:var(--tw-content)}.gt-library-styles :is(.after\\:absolute)::after{content:var(--tw-content);position:absolute}.gt-library-styles :is(.after\\:relative)::after{content:var(--tw-content);position:relative}.gt-library-styles :is(.after\\:-top-\\[5px\\])::after{content:var(--tw-content);top:-5px}.gt-library-styles :is(.after\\:bottom-0)::after{content:var(--tw-content);bottom:0px}.gt-library-styles :is(.after\\:right-0)::after{content:var(--tw-content);right:0px}.gt-library-styles :is(.after\\:mx-2)::after{content:var(--tw-content);margin-left:.5rem;margin-right:.5rem}.gt-library-styles :is(.after\\:mx-2\\.5)::after{content:var(--tw-content);margin-left:.625rem;margin-right:.625rem}.gt-library-styles :is(.after\\:inline-block)::after{content:var(--tw-content);display:inline-block}.gt-library-styles :is(.after\\:h-px)::after{content:var(--tw-content);height:1px}.gt-library-styles :is(.after\\:w-5)::after{content:var(--tw-content);width:1.25rem}.gt-library-styles :is(.after\\:w-full)::after{content:var(--tw-content);width:100%}.gt-library-styles :is(.after\\:bg-accent-spectra)::after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.gt-library-styles :is(.after\\:content-\\[\\"\\"\\])::after{--tw-content: "";content:var(--tw-content)}.gt-library-styles :is(.after\\:content-\\[\\\'\\\'\\])::after{--tw-content: "";content:var(--tw-content)}.gt-library-styles :is(.last\\:\\!mt-2:last-child){margin-top:.5rem !important}.gt-library-styles :is(.last\\:\\!mt-2\\.5:last-child){margin-top:.625rem !important}.gt-library-styles :is(.last\\:\\!mt-5:last-child){margin-top:1.25rem !important}.gt-library-styles :is(.only\\:\\!p-0:only-child){padding:0px !important}.gt-library-styles :is(.only\\:\\!py-0:only-child){padding-top:0px !important;padding-bottom:0px !important}.gt-library-styles :is(.focus-within\\:\\!border-0:focus-within){border-width:0px !important}.gt-library-styles :is(.focus-within\\:border-accent-st:focus-within){--tw-border-opacity: 1;border-color:rgb(61 69 146/var(--tw-border-opacity))}.gt-library-styles :is(.focus-within\\:outline-none:focus-within){outline:2px solid rgba(0,0,0,0);outline-offset:2px}.gt-library-styles :is(.focus-within\\:ring-1:focus-within){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.focus-within\\:ring-accent-spectra:focus-within){--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.gt-library-styles :is(.focus-within\\:ring-accent-st:focus-within){--tw-ring-opacity: 1;--tw-ring-color: rgb(61 69 146 / var(--tw-ring-opacity))}.gt-library-styles :is(.hover\\:border-accent-spectra:hover){--tw-border-opacity: 1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.gt-library-styles :is(.hover\\:\\!bg-zip-app-light-bg:hover){--tw-bg-opacity: 1 !important;background-color:rgb(240 244 250/var(--tw-bg-opacity)) !important}.gt-library-styles :is(.hover\\:bg-accent-ai-hover:hover){--tw-bg-opacity: 1;background-color:rgb(73 83 178/var(--tw-bg-opacity))}.gt-library-styles :is(.hover\\:bg-accent-hover-spectra:hover){--tw-bg-opacity: 1;background-color:rgb(53 116 253/var(--tw-bg-opacity))}.gt-library-styles :is(.hover\\:bg-accent-st\\/90:hover){background-color:rgba(61,69,146,.9)}.gt-library-styles :is(.hover\\:bg-background-secondary:hover){--tw-bg-opacity: 1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.gt-library-styles :is(.hover\\:bg-background-tertiary:hover){--tw-bg-opacity: 1;background-color:rgb(235 240 251/var(--tw-bg-opacity))}.gt-library-styles :is(.hover\\:fill-favorite:hover){fill:#fd3997}.gt-library-styles :is(.hover\\:\\!text-zip-app-heading:hover){--tw-text-opacity: 1 !important;color:rgb(15 23 42/var(--tw-text-opacity)) !important}.gt-library-styles :is(.hover\\:text-\\[\\#111827\\]:hover){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.hover\\:text-favorite:hover){--tw-text-opacity: 1;color:rgb(253 57 151/var(--tw-text-opacity))}.gt-library-styles :is(.hover\\:text-inherit:hover){color:inherit}.gt-library-styles :is(.hover\\:text-nav-active:hover){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.hover\\:shadow-medium:hover){--tw-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.03), 0px 12px 16px -4px rgba(0, 0, 0, 0.08);--tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 12px 16px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.hover\\:shadow-small:hover){--tw-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.06), 0px 4px 8px -2px rgba(0, 0, 0, 0.10);--tw-shadow-colored: 0px 2px 4px -2px var(--tw-shadow-color), 0px 4px 8px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.hover\\:shadow-xl:hover){--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.focus\\:\\!border-0:focus){border-width:0px !important}.gt-library-styles :is(.focus\\:border-accent-st:focus){--tw-border-opacity: 1;border-color:rgb(61 69 146/var(--tw-border-opacity))}.gt-library-styles :is(.focus\\:\\!bg-zip-app-light-bg:focus){--tw-bg-opacity: 1 !important;background-color:rgb(240 244 250/var(--tw-bg-opacity)) !important}.gt-library-styles :is(.focus\\:\\!shadow-none:focus){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow) !important}.gt-library-styles :is(.focus\\:shadow-none:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.gt-library-styles :is(.focus\\:\\!outline-none:focus){outline:2px solid rgba(0,0,0,0) !important;outline-offset:2px !important}.gt-library-styles :is(.focus\\:outline-none:focus){outline:2px solid rgba(0,0,0,0);outline-offset:2px}.gt-library-styles :is(.focus\\:\\!ring-0:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0)) !important}.gt-library-styles :is(.focus\\:ring-0:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.focus\\:ring-1:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.focus\\:ring-2:focus){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.gt-library-styles :is(.focus\\:ring-accent-spectra:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.gt-library-styles :is(.focus\\:ring-accent-st:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(61 69 146 / var(--tw-ring-opacity))}.gt-library-styles :is(.focus\\:ring-offset-2:focus){--tw-ring-offset-width: 2px}.gt-library-styles :is(.focus-visible\\:outline-none:focus-visible){outline:2px solid rgba(0,0,0,0);outline-offset:2px}.gt-library-styles :is(.focus-visible\\:outline:focus-visible){outline-style:solid}.gt-library-styles :is(.focus-visible\\:outline-2:focus-visible){outline-width:2px}.gt-library-styles :is(.focus-visible\\:outline-offset-2:focus-visible){outline-offset:2px}.gt-library-styles :is(.focus-visible\\:ring-accent-spectra:focus-visible){--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.gt-library-styles :is(.focus-visible\\:ring-accent-st:focus-visible){--tw-ring-opacity: 1;--tw-ring-color: rgb(61 69 146 / var(--tw-ring-opacity))}.gt-library-styles :is(.active\\:border-accent-st:active){--tw-border-opacity: 1;border-color:rgb(61 69 146/var(--tw-border-opacity))}.gt-library-styles :is(.active\\:bg-background-tertiary:active){--tw-bg-opacity: 1;background-color:rgb(235 240 251/var(--tw-bg-opacity))}.gt-library-styles :is(.active\\:outline-none:active){outline:2px solid rgba(0,0,0,0);outline-offset:2px}.gt-library-styles :is(.active\\:focus\\:text-nav-active:focus:active){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.disabled\\:cursor-not-allowed:disabled){cursor:not-allowed}.gt-library-styles :is(.disabled\\:border-button-disabled:disabled){--tw-border-opacity: 1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.gt-library-styles :is(.disabled\\:bg-accent-st\\/90:disabled){background-color:rgba(61,69,146,.9)}.gt-library-styles :is(.disabled\\:bg-button-disabled:disabled){--tw-bg-opacity: 1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.gt-library-styles :is(.disabled\\:text-gray-300:disabled){--tw-text-opacity: 1;color:rgb(209 213 219/var(--tw-text-opacity))}.gt-library-styles :is(.disabled\\:text-secondary-text:disabled){--tw-text-opacity: 1;color:rgb(156 163 175/var(--tw-text-opacity))}.gt-library-styles :is(.group:hover .group-hover\\:visible){visibility:visible}.gt-library-styles :is(.group:hover .group-hover\\:border-accent-spectra){--tw-border-opacity: 1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.gt-library-styles :is(.group\\/favorites:hover .group-hover\\/favorites\\:fill-favorite){fill:#fd3997}.gt-library-styles :is(.group\\/favorites:hover .group-hover\\/favorites\\:text-favorite){--tw-text-opacity: 1;color:rgb(253 57 151/var(--tw-text-opacity))}.gt-library-styles :is(.group:hover .group-hover\\:opacity-100){opacity:1}.gt-library-styles :is(.group:active .group-active\\:text-nav-active){--tw-text-opacity: 1;color:rgb(17 24 39/var(--tw-text-opacity))}.gt-library-styles :is(.peer:focus~.peer-focus\\:text-nav-inactive){--tw-text-opacity: 1;color:rgb(55 65 81/var(--tw-text-opacity))}@media not all and (min-width: 1536px){.gt-library-styles :is(.max-2xl\\:hidden){display:none}.gt-library-styles :is(.max-2xl\\:items-start){align-items:flex-start}}@media(max-width: 1024px){.gt-library-styles :is(.max-\\[1024px\\]\\:flex-col){flex-direction:column}}@media(min-width: 640px){.gt-library-styles :is(.sm\\:my-8){margin-top:2rem;margin-bottom:2rem}.gt-library-styles :is(.sm\\:block){display:block}.gt-library-styles :is(.sm\\:inline-block){display:inline-block}.gt-library-styles :is(.sm\\:inline){display:inline}.gt-library-styles :is(.sm\\:flex){display:flex}.gt-library-styles :is(.sm\\:hidden){display:none}.gt-library-styles :is(.sm\\:size-5){width:1.25rem;height:1.25rem}.gt-library-styles :is(.sm\\:size-6){width:1.5rem;height:1.5rem}.gt-library-styles :is(.sm\\:w-52){width:13rem}.gt-library-styles :is(.sm\\:w-full){width:100%}.gt-library-styles :is(.sm\\:max-w-\\[24rem\\]){max-width:24rem}.gt-library-styles :is(.sm\\:max-w-\\[29rem\\]){max-width:29rem}.gt-library-styles :is(.sm\\:max-w-\\[32\\.5rem\\]){max-width:32.5rem}.gt-library-styles :is(.sm\\:max-w-\\[35rem\\]){max-width:35rem}.gt-library-styles :is(.sm\\:max-w-\\[40rem\\]){max-width:40rem}.gt-library-styles :is(.sm\\:translate-y-0){--tw-translate-y: 0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.sm\\:scale-100){--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.sm\\:scale-95){--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.gt-library-styles :is(.sm\\:flex-row){flex-direction:row}.gt-library-styles :is(.sm\\:items-center){align-items:center}.gt-library-styles :is(.sm\\:justify-start){justify-content:flex-start}.gt-library-styles :is(.sm\\:gap-1){gap:.25rem}.gt-library-styles :is(.sm\\:gap-4){gap:1rem}.gt-library-styles :is(.sm\\:gap-5){gap:1.25rem}.gt-library-styles :is(.sm\\:p-0){padding:0px}.gt-library-styles :is(.sm\\:text-sm){font-size:.875rem;line-height:1.25rem}.gt-library-styles :is(.sm\\:before\\:w-12)::before{content:var(--tw-content);width:3rem}.gt-library-styles :is(.sm\\:after\\:w-12)::after{content:var(--tw-content);width:3rem}}@media(min-width: 768px){.gt-library-styles :is(.md\\:ml-12){margin-left:3rem}.gt-library-styles :is(.md\\:ml-auto){margin-left:auto}.gt-library-styles :is(.md\\:mr-0){margin-right:0px}.gt-library-styles :is(.md\\:mt-16){margin-top:4rem}.gt-library-styles :is(.md\\:inline){display:inline}.gt-library-styles :is(.md\\:flex){display:flex}.gt-library-styles :is(.md\\:h-\\[4\\.5rem\\]){height:4.5rem}.gt-library-styles :is(.md\\:w-60){width:15rem}.gt-library-styles :is(.md\\:w-\\[270px\\]){width:270px}.gt-library-styles :is(.md\\:w-fit){width:-moz-fit-content;width:fit-content}.gt-library-styles :is(.md\\:max-w-\\[calc\\(100\\%_-_246px\\)\\]){max-width:calc(100% - 246px)}.gt-library-styles :is(.md\\:grid-cols-2){grid-template-columns:repeat(2, minmax(0, 1fr))}.gt-library-styles :is(.md\\:flex-row){flex-direction:row}.gt-library-styles :is(.md\\:flex-wrap){flex-wrap:wrap}.gt-library-styles :is(.md\\:flex-nowrap){flex-wrap:nowrap}.gt-library-styles :is(.md\\:items-center){align-items:center}.gt-library-styles :is(.md\\:justify-start){justify-content:flex-start}.gt-library-styles :is(.md\\:justify-between){justify-content:space-between}.gt-library-styles :is(.md\\:gap-3){gap:.75rem}.gt-library-styles :is(.md\\:p-0){padding:0px}.gt-library-styles :is(.md\\:px-10){padding-left:2.5rem;padding-right:2.5rem}.gt-library-styles :is(.md\\:px-5){padding-left:1.25rem;padding-right:1.25rem}.gt-library-styles :is(.md\\:px-7){padding-left:1.75rem;padding-right:1.75rem}.gt-library-styles :is(.md\\:py-10){padding-top:2.5rem;padding-bottom:2.5rem}.gt-library-styles :is(.md\\:py-3){padding-top:.75rem;padding-bottom:.75rem}.gt-library-styles :is(.md\\:pb-10){padding-bottom:2.5rem}.gt-library-styles :is(.md\\:pt-10){padding-top:2.5rem}.gt-library-styles :is(.md\\:pt-12){padding-top:3rem}.gt-library-styles :is(.md\\:pt-14){padding-top:3.5rem}.gt-library-styles :is(.md\\:text-base){font-size:1rem;line-height:1.5rem}.gt-library-styles :is(.md\\:opacity-0){opacity:0}@media not all and (min-width: 1024px){.gt-library-styles :is(.md\\:max-lg\\:mx-5){margin-left:1.25rem;margin-right:1.25rem}.gt-library-styles :is(.md\\:max-lg\\:max-w-\\[246px\\]){max-width:246px}.gt-library-styles :is(.md\\:max-lg\\:p-6){padding:1.5rem}.gt-library-styles :is(.md\\:max-lg\\:px-5){padding-left:1.25rem;padding-right:1.25rem}.gt-library-styles :is(.md\\:max-lg\\:py-2){padding-top:.5rem;padding-bottom:.5rem}}}@media(min-width: 1024px){.gt-library-styles :is(.lg\\:mt-24){margin-top:6rem}.gt-library-styles :is(.lg\\:inline){display:inline}.gt-library-styles :is(.lg\\:w-\\[35\\%\\]){width:35%}.gt-library-styles :is(.lg\\:w-\\[65\\%\\]){width:65%}.gt-library-styles :is(.lg\\:w-auto){width:auto}.gt-library-styles :is(.lg\\:w-full){width:100%}.gt-library-styles :is(.lg\\:max-w-\\[280px\\]){max-width:280px}.gt-library-styles :is(.lg\\:flex-1){flex:1 1 0%}.gt-library-styles :is(.lg\\:grow){flex-grow:1}.gt-library-styles :is(.lg\\:grow-\\[2\\]){flex-grow:2}.gt-library-styles :is(.lg\\:grid-cols-2){grid-template-columns:repeat(2, minmax(0, 1fr))}.gt-library-styles :is(.lg\\:grid-cols-3){grid-template-columns:repeat(3, minmax(0, 1fr))}.gt-library-styles :is(.lg\\:flex-nowrap){flex-wrap:nowrap}.gt-library-styles :is(.lg\\:gap-5){gap:1.25rem}.gt-library-styles :is(.lg\\:gap-6){gap:1.5rem}.gt-library-styles :is(.lg\\:p-0){padding:0px}.gt-library-styles :is(.lg\\:p-8){padding:2rem}.gt-library-styles :is(.lg\\:px-0){padding-left:0px;padding-right:0px}.gt-library-styles :is(.lg\\:px-14){padding-left:3.5rem;padding-right:3.5rem}.gt-library-styles :is(.lg\\:px-16){padding-left:4rem;padding-right:4rem}.gt-library-styles :is(.lg\\:px-8){padding-left:2rem;padding-right:2rem}.gt-library-styles :is(.lg\\:pl-3){padding-left:.75rem}.gt-library-styles :is(.lg\\:pt-14){padding-top:3.5rem}.gt-library-styles :is(.lg\\:pt-8){padding-top:2rem}@media not all and (min-width: 1280px){.gt-library-styles :is(.lg\\:max-xl\\:max-w-\\[260px\\]){max-width:260px}}}@media(min-width: 1280px){.gt-library-styles :is(.xl\\:mt-32){margin-top:8rem}.gt-library-styles :is(.xl\\:w-1\\/2){width:50%}.gt-library-styles :is(.xl\\:w-\\[28\\%\\]){width:28%}.gt-library-styles :is(.xl\\:w-\\[72\\%\\]){width:72%}.gt-library-styles :is(.xl\\:max-w-\\[280px\\]){max-width:280px}.gt-library-styles :is(.xl\\:grid-cols-2){grid-template-columns:repeat(2, minmax(0, 1fr))}.gt-library-styles :is(.xl\\:grid-cols-4){grid-template-columns:repeat(4, minmax(0, 1fr))}.gt-library-styles :is(.xl\\:flex-nowrap){flex-wrap:nowrap}.gt-library-styles :is(.xl\\:gap-10){gap:2.5rem}.gt-library-styles :is(.xl\\:p-0){padding:0px}.gt-library-styles :is(.xl\\:px-20){padding-left:5rem;padding-right:5rem}.gt-library-styles :is(.xl\\:pb-20){padding-bottom:5rem}.gt-library-styles :is(.xl\\:pt-12){padding-top:3rem}.gt-library-styles :is(.xl\\:pt-16){padding-top:4rem}}@media(min-width: 1536px){.gt-library-styles :is(.\\32 xl\\:col-span-4){grid-column:span 4/span 4}.gt-library-styles :is(.\\32 xl\\:col-start-5){grid-column-start:5}.gt-library-styles :is(.\\32 xl\\:mb-10){margin-bottom:2.5rem}.gt-library-styles :is(.\\32 xl\\:mb-20){margin-bottom:5rem}.gt-library-styles :is(.\\32 xl\\:mr-5){margin-right:1.25rem}.gt-library-styles :is(.\\32 xl\\:mt-24){margin-top:6rem}.gt-library-styles :is(.\\32 xl\\:hidden){display:none}.gt-library-styles :is(.\\32 xl\\:h-10){height:2.5rem}.gt-library-styles :is(.\\32 xl\\:h-14){height:3.5rem}.gt-library-styles :is(.\\32 xl\\:h-3){height:.75rem}.gt-library-styles :is(.\\32 xl\\:h-4){height:1rem}.gt-library-styles :is(.\\32 xl\\:h-5){height:1.25rem}.gt-library-styles :is(.\\32 xl\\:h-6){height:1.5rem}.gt-library-styles :is(.\\32 xl\\:grid-rows-1){grid-template-rows:repeat(1, minmax(0, 1fr))}.gt-library-styles :is(.\\32 xl\\:gap-5){gap:1.25rem}.gt-library-styles :is(.\\32 xl\\:gap-6){gap:1.5rem}.gt-library-styles :is(.\\32 xl\\:space-x-8>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(2rem*var(--tw-space-x-reverse));margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.\\32 xl\\:space-x-9>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(2.25rem*var(--tw-space-x-reverse));margin-left:calc(2.25rem*(1 - var(--tw-space-x-reverse)))}.gt-library-styles :is(.\\32 xl\\:px-8){padding-left:2rem;padding-right:2rem}.gt-library-styles :is(.\\32 xl\\:pt-\\[3\\.375rem\\]){padding-top:3.375rem}}.gt-library-styles :is(.\\[\\&\\.Toastify\\\\_\\\\_toast-container--top-right\\]\\:right-\\[4rem\\].Toastify__toast-container--top-right){right:4rem}.gt-library-styles :is(.\\[\\&\\.Toastify\\\\_\\\\_toast-container--top-right\\]\\:top-\\[8rem\\].Toastify__toast-container--top-right){top:8rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-thumb\\:hover\\]\\:bg-black\\/\\[0\\.15\\])::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.15)}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:w-2)::-webkit-scrollbar-thumb{width:.5rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-md)::-webkit-scrollbar-thumb{border-radius:.375rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-none)::-webkit-scrollbar-thumb{border-radius:0px}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-black\\/10)::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.1)}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:my-1)::-webkit-scrollbar-track{margin-top:.25rem;margin-bottom:.25rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:rounded-md)::-webkit-scrollbar-track{border-radius:.375rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:bg-white)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1)::-webkit-scrollbar{width:.25rem}.gt-library-styles :is(.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1\\.5)::-webkit-scrollbar{width:.375rem}.gt-library-styles :is(.\\[\\&\\:has\\(\\.animate-none\\)\\]\\:\\!visible:has(.animate-none)){visibility:visible !important}.gt-library-styles :is(.\\[\\&\\:has\\(\\.max-w-container\\)\\]\\:pb-4:has(.max-w-container)){padding-bottom:1rem}@media(min-width: 768px){.gt-library-styles :is(.md\\:\\[\\&\\:has\\(\\.max-w-container\\)\\]\\:pb-6:has(.max-w-container)){padding-bottom:1.5rem}}@media(min-width: 1024px){.gt-library-styles :is(.lg\\:\\[\\&\\:has\\(\\.max-w-container\\)\\]\\:pb-8:has(.max-w-container)){padding-bottom:2rem}}@media(min-width: 1280px){.gt-library-styles :is(.xl\\:\\[\\&\\:has\\(\\.max-w-container\\)\\]\\:pb-10:has(.max-w-container)){padding-bottom:2.5rem}}.gt-library-styles :is(.\\[\\&\\>\\:first-child\\]\\:pb-2\\.5>:first-child){padding-bottom:.625rem}.gt-library-styles :is(.\\[\\&\\>\\:first-child\\]\\:pb-3>:first-child){padding-bottom:.75rem}.gt-library-styles :is(.\\[\\&\\>\\:last-child\\]\\:pt-2\\.5>:last-child){padding-top:.625rem}.gt-library-styles :is(.\\[\\&\\>\\:last-child\\]\\:pt-3>:last-child){padding-top:.75rem}.gt-library-styles :is(.\\[\\&\\>\\:not\\(\\:first-child\\,\\:last-child\\)\\]\\:py-2\\.5>:not(:first-child,:last-child)){padding-top:.625rem;padding-bottom:.625rem}.gt-library-styles :is(.\\[\\&\\>\\:not\\(\\:first-child\\,\\:last-child\\)\\]\\:py-3>:not(:first-child,:last-child)){padding-top:.75rem;padding-bottom:.75rem}.gt-library-styles :is(.\\[\\&\\>div\\]\\:gap-6>div){gap:1.5rem}.gt-library-styles :is(.\\[\\&\\>div\\]\\:border-x-0>div){border-left-width:0px;border-right-width:0px}.gt-library-styles :is(.\\[\\&\\>path\\]\\:stroke-\\[2px\\]>path){stroke-width:2px}.gt-library-styles :is(.\\[\\&_\\:first-child\\]\\:\\!m-0 :first-child){margin:0px !important}.gt-library-styles :is(.\\[\\&_\\:first-child\\]\\:mr-auto :first-child){margin-right:auto}.gt-library-styles :is(.\\[\\&_\\:first-child\\]\\:w-10 :first-child){width:2.5rem}.gt-library-styles :is(.\\[\\&_\\:last-child\\]\\:w-auto :last-child){width:auto}.gt-library-styles :is(.\\[\\&_svg\\]\\:flex-shrink-0 svg){flex-shrink:0}',""]);const i=a},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r,n,a,i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var s=(r=o,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(a," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),t.push(l))}},t}},5055:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,a=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),o=Array.isArray(t)?n:a,s=0;s<i.length;s++){var l=i[s];if(void 0===(o=o.get(l)))return;var c=t[l];if(void 0===(o=o.get(c)))return}var u=o.get("_ekm_value");return u?(r.delete(u[0]),u[0]=t,o.set("_ekm_value",u),r.set(t,u),u):void 0}var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var a,i;return a=e,i=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var a=Object.keys(r).sort(),i=[r,n],o=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,s=0;s<a.length;s++){var l=a[s];o.has(l)||o.set(l,new e),o=o.get(l);var c=r[l];o.has(c)||o.set(c,new e),o=o.get(c)}var u=o.get("_ekm_value");return u&&this._map.delete(u[0]),o.set("_ekm_value",i),this._map.set(r,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,i){null!==i&&"object"===t(i)&&(a=a[1]),e.call(n,a,i,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],i&&r(a.prototype,i),e}();e.exports=a},2543:function(e,t,r){var n;e=r.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,p=NaN,m=4294967295,f=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",h="[object Array]",y="[object Boolean]",b="[object Date]",v="[object Error]",w="[object Function]",x="[object GeneratorFunction]",_="[object Map]",E="[object Number]",k="[object Object]",S="[object Promise]",C="[object RegExp]",R="[object Set]",A="[object String]",P="[object Symbol]",T="[object WeakMap]",N="[object ArrayBuffer]",I="[object DataView]",O="[object Float32Array]",L="[object Float64Array]",B="[object Int8Array]",j="[object Int16Array]",D="[object Int32Array]",F="[object Uint8Array]",M="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,G=RegExp($.source),q=RegExp(Z.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ae=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="["+xe+"]",Pe="["+Re+"]",Te="["+_e+"]",Ne="\\d+",Ie="["+Ee+"]",Oe="["+ke+"]",Le="[^"+xe+Re+Ne+Ee+ke+Se+"]",Be="\\ud83c[\\udffb-\\udfff]",je="[^"+xe+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+Se+"]",ze="\\u200d",Ve="(?:"+Oe+"|"+Le+")",We="(?:"+Me+"|"+Le+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Te+"|"+Be+")?",Ze="["+Ce+"]?",Ge=Ze+$e+"(?:"+ze+"(?:"+[je,De,Fe].join("|")+")"+Ze+$e+")*",qe="(?:"+[Ie,De,Fe].join("|")+")"+Ge,Ye="(?:"+[je+Te+"?",Te,De,Fe,Ae].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(Te,"g"),Je=RegExp(Be+"(?="+Be+")|"+Ye+Ge,"g"),Qe=RegExp([Me+"?"+Oe+"+"+Ue+"(?="+[Pe,Me,"$"].join("|")+")",We+"+"+He+"(?="+[Pe,Me+Ve,"$"].join("|")+")",Me+"?"+Ve+"+"+Ue,Me+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,qe].join("|"),"g"),et=RegExp("["+ze+xe+_e+Ce+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,at={};at[O]=at[L]=at[B]=at[j]=at[D]=at[F]=at[M]=at[z]=at[V]=!0,at[g]=at[h]=at[N]=at[y]=at[I]=at[b]=at[v]=at[w]=at[_]=at[E]=at[k]=at[C]=at[R]=at[A]=at[T]=!1;var it={};it[g]=it[h]=it[N]=it[I]=it[y]=it[b]=it[O]=it[L]=it[B]=it[j]=it[D]=it[_]=it[E]=it[k]=it[C]=it[R]=it[A]=it[P]=it[F]=it[M]=it[z]=it[V]=!0,it[v]=it[w]=it[T]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),pt=t&&!t.nodeType&&t,mt=pt&&e&&!e.nodeType&&e,ft=mt&&mt.exports===pt,gt=ft&&ct.process,ht=function(){try{return mt&&mt.require&&mt.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),yt=ht&&ht.isArrayBuffer,bt=ht&&ht.isDate,vt=ht&&ht.isMap,wt=ht&&ht.isRegExp,xt=ht&&ht.isSet,_t=ht&&ht.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function kt(e,t,r,n){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(n,o,r(o),e)}return n}function St(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ct(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Rt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function At(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function Pt(e,t){return!(null==e||!e.length)&&Mt(e,t,0)>-1}function Tt(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}function Nt(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}function It(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function Ot(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r}function Lt(e,t,r,n){var a=null==e?0:e.length;for(n&&a&&(r=e[--a]);a--;)r=t(r,e[a],a,e);return r}function Bt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var jt=Ut("length");function Dt(e,t,r){var n;return r(e,(function(e,r,a){if(t(e,r,a))return n=r,!1})),n}function Ft(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Mt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}(e,t,r):Ft(e,Vt,r)}function zt(e,t,r,n){for(var a=r-1,i=e.length;++a<i;)if(n(e[a],t))return a;return-1}function Vt(e){return e!=e}function Wt(e,t){var r=null==e?0:e.length;return r?Zt(e,t)/r:p}function Ut(e){return function(t){return null==t?a:t[e]}}function Ht(e){return function(t){return null==e?a:e[t]}}function $t(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r}function Zt(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);o!==a&&(r=r===a?o:r+o)}return r}function Gt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function qt(e){return e?e.slice(0,dr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Kt(e,t){return Nt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var r=-1,n=e.length;++r<n&&Mt(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Mt(t,e[r],0)>-1;);return r}var er=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+ot[e]}function nr(e){return et.test(e)}function ar(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ir(e,t){return function(r){return e(t(r))}}function or(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r];o!==t&&o!==s||(e[r]=s,i[a++]=r)}return i}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):jt(e)}function ur(e){return nr(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function dr(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var pr=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),mr=function e(t){var r,n=(t=null==t?dt:mr.defaults(dt.Object(),t,mr.pick(dt,rt))).Array,ae=t.Date,xe=t.Error,_e=t.Function,Ee=t.Math,ke=t.Object,Se=t.RegExp,Ce=t.String,Re=t.TypeError,Ae=n.prototype,Pe=_e.prototype,Te=ke.prototype,Ne=t["__core-js_shared__"],Ie=Pe.toString,Oe=Te.hasOwnProperty,Le=0,Be=(r=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",je=Te.toString,De=Ie.call(ke),Fe=dt._,Me=Se("^"+Ie.call(Oe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ft?t.Buffer:a,Ve=t.Symbol,We=t.Uint8Array,Ue=ze?ze.allocUnsafe:a,He=ir(ke.getPrototypeOf,ke),$e=ke.create,Ze=Te.propertyIsEnumerable,Ge=Ae.splice,qe=Ve?Ve.isConcatSpreadable:a,Ye=Ve?Ve.iterator:a,Je=Ve?Ve.toStringTag:a,et=function(){try{var e=li(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ae&&ae.now!==dt.Date.now&&ae.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=Ee.ceil,mt=Ee.floor,gt=ke.getOwnPropertySymbols,ht=ze?ze.isBuffer:a,jt=t.isFinite,Ht=Ae.join,fr=ir(ke.keys,ke),gr=Ee.max,hr=Ee.min,yr=ae.now,br=t.parseInt,vr=Ee.random,wr=Ae.reverse,xr=li(t,"DataView"),_r=li(t,"Map"),Er=li(t,"Promise"),kr=li(t,"Set"),Sr=li(t,"WeakMap"),Cr=li(ke,"create"),Rr=Sr&&new Sr,Ar={},Pr=ji(xr),Tr=ji(_r),Nr=ji(Er),Ir=ji(kr),Or=ji(Sr),Lr=Ve?Ve.prototype:a,Br=Lr?Lr.valueOf:a,jr=Lr?Lr.toString:a;function Dr(e){if(es(e)&&!Uo(e)&&!(e instanceof Vr)){if(e instanceof zr)return e;if(Oe.call(e,"__wrapped__"))return Di(e)}return new zr(e)}var Fr=function(){function e(){}return function(t){if(!Qo(t))return{};if($e)return $e(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Mr(){}function zr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ur(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Hr;++t<r;)this.add(e[t])}function Zr(e){var t=this.__data__=new Ur(e);this.size=t.size}function Gr(e,t){var r=Uo(e),n=!r&&Wo(e),a=!r&&!n&&Go(e),i=!r&&!n&&!a&&ls(e),o=r||n||a||i,s=o?Gt(e.length,Ce):[],l=s.length;for(var c in e)!t&&!Oe.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,l))||s.push(c);return s}function qr(e){var t=e.length;return t?e[$n(0,t-1)]:a}function Yr(e,t){return Ni(Ca(e),an(t,0,e.length))}function Kr(e){return Ni(Ca(e))}function Xr(e,t,r){(r!==a&&!Mo(e[t],r)||r===a&&!(t in e))&&rn(e,t,r)}function Jr(e,t,r){var n=e[t];Oe.call(e,t)&&Mo(n,r)&&(r!==a||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Mo(e[r][0],t))return r;return-1}function en(e,t,r,n){return un(e,(function(e,a,i){t(n,e,r(e),i)})),n}function tn(e,t){return e&&Ra(t,Ts(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,i=t.length,o=n(i),s=null==e;++r<i;)o[r]=s?a:Ss(e,t[r]);return o}function an(e,t,r){return e==e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function on(e,t,r,n,i,o){var s,l=1&t,c=2&t,u=4&t;if(r&&(s=i?r(e,n,i,o):r(e)),s!==a)return s;if(!Qo(e))return e;var d=Uo(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return Ca(e,s)}else{var p=di(e),m=p==w||p==x;if(Go(e))return wa(e,l);if(p==k||p==g||m&&!i){if(s=c||m?{}:mi(e),!l)return c?function(e,t){return Ra(e,ui(e),t)}(e,function(e,t){return e&&Ra(t,Ns(t),e)}(s,e)):function(e,t){return Ra(e,ci(e),t)}(e,tn(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,r){var n,a=e.constructor;switch(t){case N:return xa(e);case y:case b:return new a(+e);case I:return function(e,t){var r=t?xa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case O:case L:case B:case j:case D:case F:case M:case z:case V:return _a(e,r);case _:return new a;case E:case A:return new a(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new a;case P:return n=e,Br?ke(Br.call(n)):{}}}(e,p,l)}}o||(o=new Zr);var f=o.get(e);if(f)return f;o.set(e,s),is(e)?e.forEach((function(n){s.add(on(n,t,r,n,e,o))})):ts(e)&&e.forEach((function(n,a){s.set(a,on(n,t,r,a,e,o))}));var h=d?a:(u?c?ti:ei:c?Ns:Ts)(e);return St(h||e,(function(n,a){h&&(n=e[a=n]),Jr(s,a,on(n,t,r,a,e,o))})),s}function sn(e,t,r){var n=r.length;if(null==e)return!n;for(e=ke(e);n--;){var i=r[n],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function ln(e,t,r){if("function"!=typeof e)throw new Re(i);return Ri((function(){e.apply(a,r)}),t)}function cn(e,t,r,n){var a=-1,i=Pt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=Nt(t,Yt(r))),n?(i=Tt,o=!1):t.length>=200&&(i=Xt,o=!1,t=new $r(t));e:for(;++a<s;){var u=e[a],d=null==r?u:r(u);if(u=n||0!==u?u:0,o&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,n)||l.push(u)}return l}Dr.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Dr}},Dr.prototype=Mr.prototype,Dr.prototype.constructor=Dr,zr.prototype=Fr(Mr.prototype),zr.prototype.constructor=zr,Vr.prototype=Fr(Mr.prototype),Vr.prototype.constructor=Vr,Wr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Cr){var r=t[e];return r===o?a:r}return Oe.call(t,e)?t[e]:a},Wr.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==a:Oe.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===a?o:t,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():Ge.call(t,r,1),--this.size,0))},Ur.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?a:t[r][1]},Ur.prototype.has=function(e){return Qr(this.__data__,e)>-1},Ur.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new(_r||Ur),string:new Wr}},Hr.prototype.delete=function(e){var t=oi(this,e).delete(e);return this.size-=t?1:0,t},Hr.prototype.get=function(e){return oi(this,e).get(e)},Hr.prototype.has=function(e){return oi(this,e).has(e)},Hr.prototype.set=function(e,t){var r=oi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},$r.prototype.add=$r.prototype.push=function(e){return this.__data__.set(e,o),this},$r.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Ur,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ur){var n=r.__data__;if(!_r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(e,t),this.size=r.size,this};var un=Ta(bn),dn=Ta(vn,!0);function pn(e,t){var r=!0;return un(e,(function(e,n,a){return r=!!t(e,n,a)})),r}function mn(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=t(o);if(null!=s&&(l===a?s==s&&!ss(s):r(s,l)))var l=s,c=o}return c}function fn(e,t){var r=[];return un(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function gn(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=fi),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?gn(s,t-1,r,n,a):It(a,s):n||(a[a.length]=s)}return a}var hn=Na(),yn=Na(!0);function bn(e,t){return e&&hn(e,t,Ts)}function vn(e,t){return e&&yn(e,t,Ts)}function wn(e,t){return At(t,(function(t){return Ko(e[t])}))}function xn(e,t){for(var r=0,n=(t=ha(t,e)).length;null!=e&&r<n;)e=e[Bi(t[r++])];return r&&r==n?e:a}function _n(e,t,r){var n=t(e);return Uo(e)?n:It(n,r(e))}function En(e){return null==e?e===a?"[object Undefined]":"[object Null]":Je&&Je in ke(e)?function(e){var t=Oe.call(e,Je),r=e[Je];try{e[Je]=a;var n=!0}catch(e){}var i=je.call(e);return n&&(t?e[Je]=r:delete e[Je]),i}(e):function(e){return je.call(e)}(e)}function kn(e,t){return e>t}function Sn(e,t){return null!=e&&Oe.call(e,t)}function Cn(e,t){return null!=e&&t in ke(e)}function Rn(e,t,r){for(var i=r?Tt:Pt,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Nt(p,Yt(t))),u=hr(p.length,u),c[l]=!r&&(t||o>=120&&p.length>=120)?new $r(l&&p):a}p=e[0];var m=-1,f=c[0];e:for(;++m<o&&d.length<u;){var g=p[m],h=t?t(g):g;if(g=r||0!==g?g:0,!(f?Xt(f,h):i(d,h,r))){for(l=s;--l;){var y=c[l];if(!(y?Xt(y,h):i(e[l],h,r)))continue e}f&&f.push(h),d.push(g)}}return d}function An(e,t,r){var n=null==(e=ki(e,t=ha(t,e)))?e:e[Bi(qi(t))];return null==n?a:Et(n,e,r)}function Pn(e){return es(e)&&En(e)==g}function Tn(e,t,r,n,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var s=Uo(e),l=Uo(t),c=s?h:di(e),u=l?h:di(t),d=(c=c==g?k:c)==k,p=(u=u==g?k:u)==k,m=c==u;if(m&&Go(e)){if(!Go(t))return!1;s=!0,d=!1}if(m&&!d)return o||(o=new Zr),s||ls(e)?Ja(e,t,r,n,i,o):function(e,t,r,n,a,i,o){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case y:case b:case E:return Mo(+e,+t);case v:return e.name==t.name&&e.message==t.message;case C:case A:return e==t+"";case _:var s=ar;case R:var l=1&n;if(s||(s=sr),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Ja(s(e),s(t),n,a,i,o);return o.delete(e),u;case P:if(Br)return Br.call(e)==Br.call(t)}return!1}(e,t,c,r,n,i,o);if(!(1&r)){var f=d&&Oe.call(e,"__wrapped__"),w=p&&Oe.call(t,"__wrapped__");if(f||w){var x=f?e.value():e,S=w?t.value():t;return o||(o=new Zr),i(x,S,r,n,o)}}return!!m&&(o||(o=new Zr),function(e,t,r,n,i,o){var s=1&r,l=ei(e),c=l.length;if(c!=ei(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:Oe.call(t,d)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var f=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<c;){var h=e[d=l[u]],y=t[d];if(n)var b=s?n(y,h,d,t,e,o):n(h,y,d,e,t,o);if(!(b===a?h===y||i(h,y,r,n,o):b)){f=!1;break}g||(g="constructor"==d)}if(f&&!g){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,i,o))}(e,t,r,n,Tn,i))}function Nn(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;for(e=ke(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=r[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var p=new Zr;if(n)var m=n(u,d,c,e,t,p);if(!(m===a?Tn(d,u,3,n,p):m))return!1}}return!0}function In(e){return!(!Qo(e)||(t=e,Be&&Be in t))&&(Ko(e)?Me:ge).test(ji(e));var t}function On(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Uo(e)?Fn(e[0],e[1]):Dn(e):dl(e)}function Ln(e){if(!wi(e))return fr(e);var t=[];for(var r in ke(e))Oe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Bn(e,t){return e<t}function jn(e,t){var r=-1,a=$o(e)?n(e.length):[];return un(e,(function(e,n,i){a[++r]=t(e,n,i)})),a}function Dn(e){var t=si(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(r){return r===e||Nn(r,e,t)}}function Fn(e,t){return yi(e)&&xi(t)?_i(Bi(e),t):function(r){var n=Ss(r,e);return n===a&&n===t?Cs(r,e):Tn(t,n,3)}}function Mn(e,t,r,n,i){e!==t&&hn(t,(function(o,s){if(i||(i=new Zr),Qo(o))!function(e,t,r,n,i,o,s){var l=Si(e,r),c=Si(t,r),u=s.get(c);if(u)Xr(e,r,u);else{var d=o?o(l,c,r+"",e,t,s):a,p=d===a;if(p){var m=Uo(c),f=!m&&Go(c),g=!m&&!f&&ls(c);d=c,m||f||g?Uo(l)?d=l:Zo(l)?d=Ca(l):f?(p=!1,d=wa(c,!0)):g?(p=!1,d=_a(c,!0)):d=[]:ns(c)||Wo(c)?(d=l,Wo(l)?d=hs(l):Qo(l)&&!Ko(l)||(d=mi(c))):p=!1}p&&(s.set(c,d),i(d,c,n,o,s),s.delete(c)),Xr(e,r,d)}}(e,t,s,r,Mn,n,i);else{var l=n?n(Si(e,s),o,s+"",e,t,i):a;l===a&&(l=o),Xr(e,s,l)}}),Ns)}function zn(e,t){var r=e.length;if(r)return gi(t+=t<0?r:0,r)?e[t]:a}function Vn(e,t,r){t=t.length?Nt(t,(function(e){return Uo(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[rl];var n=-1;t=Nt(t,Yt(ii()));var a=jn(e,(function(e,r,a){var i=Nt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,o=a.length,s=r.length;++n<o;){var l=Ea(a[n],i[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(a)}function Wn(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var o=t[n],s=xn(e,o);r(s,o)&&Kn(i,ha(o,e),s)}return i}function Un(e,t,r,n){var a=n?zt:Mt,i=-1,o=t.length,s=e;for(e===t&&(t=Ca(t)),r&&(s=Nt(e,Yt(r)));++i<o;)for(var l=0,c=t[i],u=r?r(c):c;(l=a(s,u,l,n))>-1;)s!==e&&Ge.call(s,l,1),Ge.call(e,l,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var a=t[r];if(r==n||a!==i){var i=a;gi(a)?Ge.call(e,a,1):la(e,a)}}return e}function $n(e,t){return e+mt(vr()*(t-e+1))}function Zn(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return Ai(Ei(e,t,rl),e+"")}function qn(e){return qr(Ms(e))}function Yn(e,t){var r=Ms(e);return Ni(r,an(t,0,r.length))}function Kn(e,t,r,n){if(!Qo(e))return e;for(var i=-1,o=(t=ha(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=Bi(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=n?n(d,c,l):a)===a&&(u=Qo(d)?d:gi(t[i+1])?[]:{})}Jr(l,c,u),l=l[c]}return e}var Xn=Rr?function(e,t){return Rr.set(e,t),e}:rl,Jn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:rl;function Qn(e){return Ni(Ms(e))}function ea(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a<i;)o[a]=e[a+t];return o}function ta(e,t){var r;return un(e,(function(e,n,a){return!(r=t(e,n,a))})),!!r}function ra(e,t,r){var n=0,a=null==e?n:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;n<a;){var i=n+a>>>1,o=e[i];null!==o&&!ss(o)&&(r?o<=t:o<t)?n=i+1:a=i}return a}return na(e,t,rl,r)}function na(e,t,r,n){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,l=null===t,c=ss(t),u=t===a;i<o;){var d=mt((i+o)/2),p=r(e[d]),m=p!==a,f=null===p,g=p==p,h=ss(p);if(s)var y=n||g;else y=u?g&&(n||m):l?g&&m&&(n||!f):c?g&&m&&!f&&(n||!h):!f&&!h&&(n?p<=t:p<t);y?i=d+1:o=d}return hr(o,4294967294)}function aa(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!Mo(s,l)){var l=s;i[a++]=0===o?0:o}}return i}function ia(e){return"number"==typeof e?e:ss(e)?p:+e}function oa(e){if("string"==typeof e)return e;if(Uo(e))return Nt(e,oa)+"";if(ss(e))return jr?jr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function sa(e,t,r){var n=-1,a=Pt,i=e.length,o=!0,s=[],l=s;if(r)o=!1,a=Tt;else if(i>=200){var c=t?null:Za(e);if(c)return sr(c);o=!1,a=Xt,l=new $r}else l=t?[]:s;e:for(;++n<i;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,o&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}function la(e,t){return null==(e=ki(e,t=ha(t,e)))||delete e[Bi(qi(t))]}function ca(e,t,r,n){return Kn(e,t,r(xn(e,t)),n)}function ua(e,t,r,n){for(var a=e.length,i=n?a:-1;(n?i--:++i<a)&&t(e[i],i,e););return r?ea(e,n?0:i,n?i+1:a):ea(e,n?i+1:0,n?a:i)}function da(e,t){var r=e;return r instanceof Vr&&(r=r.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function pa(e,t,r){var a=e.length;if(a<2)return a?sa(e[0]):[];for(var i=-1,o=n(a);++i<a;)for(var s=e[i],l=-1;++l<a;)l!=i&&(o[i]=cn(o[i]||s,e[l],t,r));return sa(gn(o,1),t,r)}function ma(e,t,r){for(var n=-1,i=e.length,o=t.length,s={};++n<i;){var l=n<o?t[n]:a;r(s,e[n],l)}return s}function fa(e){return Zo(e)?e:[]}function ga(e){return"function"==typeof e?e:rl}function ha(e,t){return Uo(e)?e:yi(e,t)?[e]:Li(ys(e))}var ya=Gn;function ba(e,t,r){var n=e.length;return r=r===a?n:r,!t&&r>=n?e:ea(e,t,r)}var va=ot||function(e){return dt.clearTimeout(e)};function wa(e,t){if(t)return e.slice();var r=e.length,n=Ue?Ue(r):new e.constructor(r);return e.copy(n),n}function xa(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function _a(e,t){var r=t?xa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ea(e,t){if(e!==t){var r=e!==a,n=null===e,i=e==e,o=ss(e),s=t!==a,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||n&&s&&c||!r&&c||!i)return 1;if(!n&&!o&&!u&&e<t||u&&r&&i&&!n&&!o||l&&r&&i||!s&&i||!c)return-1}return 0}function ka(e,t,r,a){for(var i=-1,o=e.length,s=r.length,l=-1,c=t.length,u=gr(o-s,0),d=n(c+u),p=!a;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<o)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Sa(e,t,r,a){for(var i=-1,o=e.length,s=-1,l=r.length,c=-1,u=t.length,d=gr(o-l,0),p=n(d+u),m=!a;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(m||i<o)&&(p[f+r[s]]=e[i++]);return p}function Ca(e,t){var r=-1,a=e.length;for(t||(t=n(a));++r<a;)t[r]=e[r];return t}function Ra(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=n?n(r[l],e[l],l,r,e):a;c===a&&(c=e[l]),i?rn(r,l,c):Jr(r,l,c)}return r}function Aa(e,t){return function(r,n){var a=Uo(r)?kt:en,i=t?t():{};return a(r,e,ii(n,2),i)}}function Pa(e){return Gn((function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:a,s=i>2?r[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&hi(r[0],r[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++n<i;){var l=r[n];l&&e(t,l,n,o)}return t}))}function Ta(e,t){return function(r,n){if(null==r)return r;if(!$o(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=ke(r);(t?i--:++i<a)&&!1!==n(o[i],i,o););return r}}function Na(e){return function(t,r,n){for(var a=-1,i=ke(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}function Ia(e){return function(t){var r=nr(t=ys(t))?ur(t):a,n=r?r[0]:t.charAt(0),i=r?ba(r,1).join(""):t.slice(1);return n[e]()+i}}function Oa(e){return function(t){return Ot(Ks(Ws(t).replace(Ke,"")),e,"")}}function La(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fr(e.prototype),n=e.apply(r,t);return Qo(n)?n:r}}function Ba(e){return function(t,r,n){var i=ke(t);if(!$o(t)){var o=ii(r,3);t=Ts(t),r=function(e){return o(i[e],e,i)}}var s=e(t,r,n);return s>-1?i[o?t[s]:s]:a}}function ja(e){return Qa((function(t){var r=t.length,n=r,o=zr.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Re(i);if(o&&!l&&"wrapper"==ni(s))var l=new zr([],!0)}for(n=l?n:r;++n<r;){var c=ni(s=t[n]),u="wrapper"==c?ri(s):a;l=u&&bi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ni(u[0])].apply(l,u[3]):1==s.length&&bi(s)?l[c]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Uo(n))return l.plant(n).value();for(var a=0,i=r?t[a].apply(this,e):n;++a<r;)i=t[a].call(this,i);return i}}))}function Da(e,t,r,i,o,s,l,u,d,p){var m=t&c,f=1&t,g=2&t,h=24&t,y=512&t,b=g?a:La(e);return function c(){for(var v=arguments.length,w=n(v),x=v;x--;)w[x]=arguments[x];if(h)var _=ai(c),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,_);if(i&&(w=ka(w,i,o,h)),s&&(w=Sa(w,s,l,h)),v-=E,h&&v<p){var k=or(w,_);return Ha(e,t,Da,c.placeholder,r,w,k,u,d,p-v)}var S=f?r:this,C=g?S[e]:e;return v=w.length,u?w=function(e,t){for(var r=e.length,n=hr(t.length,r),i=Ca(e);n--;){var o=t[n];e[n]=gi(o,r)?i[o]:a}return e}(w,u):y&&v>1&&w.reverse(),m&&d<v&&(w.length=d),this&&this!==dt&&this instanceof c&&(C=b||La(C)),C.apply(S,w)}}function Fa(e,t){return function(r,n){return function(e,t,r,n){return bn(e,(function(e,a,i){t(n,r(e),a,i)})),n}(r,e,t(n),{})}}function Ma(e,t){return function(r,n){var i;if(r===a&&n===a)return t;if(r!==a&&(i=r),n!==a){if(i===a)return n;"string"==typeof r||"string"==typeof n?(r=oa(r),n=oa(n)):(r=ia(r),n=ia(n)),i=e(r,n)}return i}}function za(e){return Qa((function(t){return t=Nt(t,Yt(ii())),Gn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function Va(e,t){var r=(t=t===a?" ":oa(t)).length;if(r<2)return r?Zn(t,e):t;var n=Zn(t,pt(e/cr(t)));return nr(t)?ba(ur(n),0,e).join(""):n.slice(0,e)}function Wa(e){return function(t,r,i){return i&&"number"!=typeof i&&hi(t,r,i)&&(r=i=a),t=ps(t),r===a?(r=t,t=0):r=ps(r),function(e,t,r,a){for(var i=-1,o=gr(pt((t-e)/(r||1)),0),s=n(o);o--;)s[a?o:++i]=e,e+=r;return s}(t,r,i=i===a?t<r?1:-1:ps(i),e)}}function Ua(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gs(t),r=gs(r)),e(t,r)}}function Ha(e,t,r,n,i,o,s,c,u,d){var p=8&t;t|=p?l:64,4&(t&=~(p?64:l))||(t&=-4);var m=[e,t,i,p?o:a,p?s:a,p?a:o,p?a:s,c,u,d],f=r.apply(a,m);return bi(e)&&Ci(f,m),f.placeholder=n,Pi(f,e,t)}function $a(e){var t=Ee[e];return function(e,r){if(e=gs(e),(r=null==r?0:hr(ms(r),292))&&jt(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Za=kr&&1/sr(new kr([,-0]))[1]==u?function(e){return new kr(e)}:sl;function Ga(e){return function(t){var r=di(t);return r==_?ar(t):r==R?lr(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function qa(e,t,r,o,u,d,p,m){var f=2&t;if(!f&&"function"!=typeof e)throw new Re(i);var g=o?o.length:0;if(g||(t&=-97,o=u=a),p=p===a?p:gr(ms(p),0),m=m===a?m:ms(m),g-=u?u.length:0,64&t){var h=o,y=u;o=u=a}var b=f?a:ri(e),v=[e,t,r,o,u,h,y,d,p,m];if(b&&function(e,t){var r=e[1],n=t[1],a=r|n,i=a<131,o=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!o)return e;1&n&&(e[2]=t[2],a|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?ka(u,l,t[4]):l,e[4]=u?or(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Sa(u,l,t[6]):l,e[6]=u?or(e[5],s):t[6]),(l=t[7])&&(e[7]=l),n&c&&(e[8]=null==e[8]?t[8]:hr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a}(v,b),e=v[0],t=v[1],r=v[2],o=v[3],u=v[4],!(m=v[9]=v[9]===a?f?0:e.length:gr(v[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,r){var i=La(e);return function o(){for(var s=arguments.length,l=n(s),c=s,u=ai(o);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:or(l,u);return(s-=d.length)<r?Ha(e,t,Da,o.placeholder,a,l,d,a,a,r-s):Et(this&&this!==dt&&this instanceof o?i:e,this,l)}}(e,t,m):t!=l&&33!=t||u.length?Da.apply(a,v):function(e,t,r,a){var i=1&t,o=La(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=a.length,d=n(u+l),p=this&&this!==dt&&this instanceof t?o:e;++c<u;)d[c]=a[c];for(;l--;)d[c++]=arguments[++s];return Et(p,i?r:this,d)}}(e,t,r,o);else var w=function(e,t,r){var n=1&t,a=La(e);return function t(){return(this&&this!==dt&&this instanceof t?a:e).apply(n?r:this,arguments)}}(e,t,r);return Pi((b?Xn:Ci)(w,v),e,t)}function Ya(e,t,r,n){return e===a||Mo(e,Te[r])&&!Oe.call(n,r)?t:e}function Ka(e,t,r,n,i,o){return Qo(e)&&Qo(t)&&(o.set(t,e),Mn(e,t,a,Ka,o),o.delete(t)),e}function Xa(e){return ns(e)?a:e}function Ja(e,t,r,n,i,o){var s=1&r,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,m=!0,f=2&r?new $r:a;for(o.set(e,t),o.set(t,e);++p<l;){var g=e[p],h=t[p];if(n)var y=s?n(h,g,p,t,e,o):n(g,h,p,e,t,o);if(y!==a){if(y)continue;m=!1;break}if(f){if(!Bt(t,(function(e,t){if(!Xt(f,t)&&(g===e||i(g,e,r,n,o)))return f.push(t)}))){m=!1;break}}else if(g!==h&&!i(g,h,r,n,o)){m=!1;break}}return o.delete(e),o.delete(t),m}function Qa(e){return Ai(Ei(e,a,Ui),e+"")}function ei(e){return _n(e,Ts,ci)}function ti(e){return _n(e,Ns,ui)}var ri=Rr?function(e){return Rr.get(e)}:sl;function ni(e){for(var t=e.name+"",r=Ar[t],n=Oe.call(Ar,t)?r.length:0;n--;){var a=r[n],i=a.func;if(null==i||i==e)return a.name}return t}function ai(e){return(Oe.call(Dr,"placeholder")?Dr:e).placeholder}function ii(){var e=Dr.iteratee||nl;return e=e===nl?On:e,arguments.length?e(arguments[0],arguments[1]):e}function oi(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function si(e){for(var t=Ts(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,xi(a)]}return t}function li(e,t){var r=function(e,t){return null==e?a:e[t]}(e,t);return In(r)?r:a}var ci=gt?function(e){return null==e?[]:(e=ke(e),At(gt(e),(function(t){return Ze.call(e,t)})))}:fl,ui=gt?function(e){for(var t=[];e;)It(t,ci(e)),e=He(e);return t}:fl,di=En;function pi(e,t,r){for(var n=-1,a=(t=ha(t,e)).length,i=!1;++n<a;){var o=Bi(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Jo(a)&&gi(o,a)&&(Uo(e)||Wo(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:Fr(He(e))}function fi(e){return Uo(e)||Wo(e)||!!(qe&&e&&e[qe])}function gi(e,t){var r=typeof e;return!!(t=null==t?d:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function hi(e,t,r){if(!Qo(r))return!1;var n=typeof t;return!!("number"==n?$o(r)&&gi(t,r.length):"string"==n&&t in r)&&Mo(r[t],e)}function yi(e,t){if(Uo(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ss(e))||Q.test(e)||!J.test(e)||null!=t&&e in ke(t)}function bi(e){var t=ni(e),r=Dr[t];if("function"!=typeof r||!(t in Vr.prototype))return!1;if(e===r)return!0;var n=ri(r);return!!n&&e===n[0]}(xr&&di(new xr(new ArrayBuffer(1)))!=I||_r&&di(new _r)!=_||Er&&di(Er.resolve())!=S||kr&&di(new kr)!=R||Sr&&di(new Sr)!=T)&&(di=function(e){var t=En(e),r=t==k?e.constructor:a,n=r?ji(r):"";if(n)switch(n){case Pr:return I;case Tr:return _;case Nr:return S;case Ir:return R;case Or:return T}return t});var vi=Ne?Ko:gl;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function xi(e){return e==e&&!Qo(e)}function _i(e,t){return function(r){return null!=r&&r[e]===t&&(t!==a||e in ke(r))}}function Ei(e,t,r){return t=gr(t===a?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=gr(a.length-t,0),s=n(o);++i<o;)s[i]=a[t+i];i=-1;for(var l=n(t+1);++i<t;)l[i]=a[i];return l[t]=r(s),Et(e,this,l)}}function ki(e,t){return t.length<2?e:xn(e,ea(t,0,-1))}function Si(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ci=Ti(Xn),Ri=ut||function(e,t){return dt.setTimeout(e,t)},Ai=Ti(Jn);function Pi(e,t,r){var n=t+"";return Ai(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return St(f,(function(r){var n="_."+r[0];t&r[1]&&!Pt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(n),r)))}function Ti(e){var t=0,r=0;return function(){var n=yr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ni(e,t){var r=-1,n=e.length,i=n-1;for(t=t===a?n:t;++r<t;){var o=$n(r,i),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Ii,Oi,Li=(Ii=Oo((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,a){t.push(n?a.replace(ue,"$1"):r||e)})),t}),(function(e){return 500===Oi.size&&Oi.clear(),e})),Oi=Ii.cache,Ii);function Bi(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Di(e){if(e instanceof Vr)return e.clone();var t=new zr(e.__wrapped__,e.__chain__);return t.__actions__=Ca(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Gn((function(e,t){return Zo(e)?cn(e,gn(t,1,Zo,!0)):[]})),Mi=Gn((function(e,t){var r=qi(t);return Zo(r)&&(r=a),Zo(e)?cn(e,gn(t,1,Zo,!0),ii(r,2)):[]})),zi=Gn((function(e,t){var r=qi(t);return Zo(r)&&(r=a),Zo(e)?cn(e,gn(t,1,Zo,!0),a,r):[]}));function Vi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:ms(r);return a<0&&(a=gr(n+a,0)),Ft(e,ii(t,3),a)}function Wi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==a&&(i=ms(r),i=r<0?gr(n+i,0):hr(i,n-1)),Ft(e,ii(t,3),i,!0)}function Ui(e){return null!=e&&e.length?gn(e,1):[]}function Hi(e){return e&&e.length?e[0]:a}var $i=Gn((function(e){var t=Nt(e,fa);return t.length&&t[0]===e[0]?Rn(t):[]})),Zi=Gn((function(e){var t=qi(e),r=Nt(e,fa);return t===qi(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Rn(r,ii(t,2)):[]})),Gi=Gn((function(e){var t=qi(e),r=Nt(e,fa);return(t="function"==typeof t?t:a)&&r.pop(),r.length&&r[0]===e[0]?Rn(r,a,t):[]}));function qi(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Yi=Gn(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?Un(e,t):e}var Xi=Qa((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return Hn(e,Nt(t,(function(e){return gi(e,r)?+e:e})).sort(Ea)),n}));function Ji(e){return null==e?e:wr.call(e)}var Qi=Gn((function(e){return sa(gn(e,1,Zo,!0))})),eo=Gn((function(e){var t=qi(e);return Zo(t)&&(t=a),sa(gn(e,1,Zo,!0),ii(t,2))})),to=Gn((function(e){var t=qi(e);return t="function"==typeof t?t:a,sa(gn(e,1,Zo,!0),a,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Zo(e))return t=gr(e.length,t),!0})),Gt(t,(function(t){return Nt(e,Ut(t))}))}function no(e,t){if(!e||!e.length)return[];var r=ro(e);return null==t?r:Nt(r,(function(e){return Et(t,a,e)}))}var ao=Gn((function(e,t){return Zo(e)?cn(e,t):[]})),io=Gn((function(e){return pa(At(e,Zo))})),oo=Gn((function(e){var t=qi(e);return Zo(t)&&(t=a),pa(At(e,Zo),ii(t,2))})),so=Gn((function(e){var t=qi(e);return t="function"==typeof t?t:a,pa(At(e,Zo),a,t)})),lo=Gn(ro),co=Gn((function(e){var t=e.length,r=t>1?e[t-1]:a;return r="function"==typeof r?(e.pop(),r):a,no(e,r)}));function uo(e){var t=Dr(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var mo=Qa((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Vr&&gi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:a}),new zr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)})),fo=Aa((function(e,t,r){Oe.call(e,r)?++e[r]:rn(e,r,1)})),go=Ba(Vi),ho=Ba(Wi);function yo(e,t){return(Uo(e)?St:un)(e,ii(t,3))}function bo(e,t){return(Uo(e)?Ct:dn)(e,ii(t,3))}var vo=Aa((function(e,t,r){Oe.call(e,r)?e[r].push(t):rn(e,r,[t])})),wo=Gn((function(e,t,r){var a=-1,i="function"==typeof t,o=$o(e)?n(e.length):[];return un(e,(function(e){o[++a]=i?Et(t,e,r):An(e,t,r)})),o})),xo=Aa((function(e,t,r){rn(e,r,t)}));function _o(e,t){return(Uo(e)?Nt:jn)(e,ii(t,3))}var Eo=Aa((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),ko=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&hi(e,t[0],t[1])?t=[]:r>2&&hi(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,gn(t,1),[])})),So=ct||function(){return dt.Date.now()};function Co(e,t,r){return t=r?a:t,t=e&&null==t?e.length:t,qa(e,c,a,a,a,a,t)}function Ro(e,t){var r;if("function"!=typeof t)throw new Re(i);return e=ms(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Ao=Gn((function(e,t,r){var n=1;if(r.length){var a=or(r,ai(Ao));n|=l}return qa(e,n,t,r,a)})),Po=Gn((function(e,t,r){var n=3;if(r.length){var a=or(r,ai(Po));n|=l}return qa(t,n,e,r,a)}));function To(e,t,r){var n,o,s,l,c,u,d=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw new Re(i);function g(t){var r=n,i=o;return n=o=a,d=t,l=e.apply(i,r)}function h(e){var r=e-u;return u===a||r>=t||r<0||m&&e-d>=s}function y(){var e=So();if(h(e))return b(e);c=Ri(y,function(e){var r=t-(e-u);return m?hr(r,s-(e-d)):r}(e))}function b(e){return c=a,f&&n?g(e):(n=o=a,l)}function v(){var e=So(),r=h(e);if(n=arguments,o=this,u=e,r){if(c===a)return function(e){return d=e,c=Ri(y,t),p?g(e):l}(u);if(m)return va(c),c=Ri(y,t),g(u)}return c===a&&(c=Ri(y,t)),l}return t=gs(t)||0,Qo(r)&&(p=!!r.leading,s=(m="maxWait"in r)?gr(gs(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f),v.cancel=function(){c!==a&&va(c),d=0,n=u=o=c=a},v.flush=function(){return c===a?l:b(So())},v}var No=Gn((function(e,t){return ln(e,1,t)})),Io=Gn((function(e,t,r){return ln(e,gs(t)||0,r)}));function Oo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(i);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(Oo.Cache||Hr),r}function Lo(e){if("function"!=typeof e)throw new Re(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oo.Cache=Hr;var Bo=ya((function(e,t){var r=(t=1==t.length&&Uo(t[0])?Nt(t[0],Yt(ii())):Nt(gn(t,1),Yt(ii()))).length;return Gn((function(n){for(var a=-1,i=hr(n.length,r);++a<i;)n[a]=t[a].call(this,n[a]);return Et(e,this,n)}))})),jo=Gn((function(e,t){var r=or(t,ai(jo));return qa(e,l,a,t,r)})),Do=Gn((function(e,t){var r=or(t,ai(Do));return qa(e,64,a,t,r)})),Fo=Qa((function(e,t){return qa(e,256,a,a,a,t)}));function Mo(e,t){return e===t||e!=e&&t!=t}var zo=Ua(kn),Vo=Ua((function(e,t){return e>=t})),Wo=Pn(function(){return arguments}())?Pn:function(e){return es(e)&&Oe.call(e,"callee")&&!Ze.call(e,"callee")},Uo=n.isArray,Ho=yt?Yt(yt):function(e){return es(e)&&En(e)==N};function $o(e){return null!=e&&Jo(e.length)&&!Ko(e)}function Zo(e){return es(e)&&$o(e)}var Go=ht||gl,qo=bt?Yt(bt):function(e){return es(e)&&En(e)==b};function Yo(e){if(!es(e))return!1;var t=En(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Ko(e){if(!Qo(e))return!1;var t=En(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ms(e)}function Jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Qo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=vt?Yt(vt):function(e){return es(e)&&di(e)==_};function rs(e){return"number"==typeof e||es(e)&&En(e)==E}function ns(e){if(!es(e)||En(e)!=k)return!1;var t=He(e);if(null===t)return!0;var r=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ie.call(r)==De}var as=wt?Yt(wt):function(e){return es(e)&&En(e)==C},is=xt?Yt(xt):function(e){return es(e)&&di(e)==R};function os(e){return"string"==typeof e||!Uo(e)&&es(e)&&En(e)==A}function ss(e){return"symbol"==typeof e||es(e)&&En(e)==P}var ls=_t?Yt(_t):function(e){return es(e)&&Jo(e.length)&&!!at[En(e)]},cs=Ua(Bn),us=Ua((function(e,t){return e<=t}));function ds(e){if(!e)return[];if($o(e))return os(e)?ur(e):Ca(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=di(e);return(t==_?ar:t==R?sr:Ms)(e)}function ps(e){return e?(e=gs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=ps(e),r=t%1;return t==t?r?t-r:t:0}function fs(e){return e?an(ms(e),0,m):0}function gs(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var r=fe.test(e);return r||he.test(e)?lt(e.slice(2),r?2:8):me.test(e)?p:+e}function hs(e){return Ra(e,Ns(e))}function ys(e){return null==e?"":oa(e)}var bs=Pa((function(e,t){if(wi(t)||$o(t))Ra(t,Ts(t),e);else for(var r in t)Oe.call(t,r)&&Jr(e,r,t[r])})),vs=Pa((function(e,t){Ra(t,Ns(t),e)})),ws=Pa((function(e,t,r,n){Ra(t,Ns(t),e,n)})),xs=Pa((function(e,t,r,n){Ra(t,Ts(t),e,n)})),_s=Qa(nn),Es=Gn((function(e,t){e=ke(e);var r=-1,n=t.length,i=n>2?t[2]:a;for(i&&hi(t[0],t[1],i)&&(n=1);++r<n;)for(var o=t[r],s=Ns(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===a||Mo(d,Te[u])&&!Oe.call(e,u))&&(e[u]=o[u])}return e})),ks=Gn((function(e){return e.push(a,Ka),Et(Os,a,e)}));function Ss(e,t,r){var n=null==e?a:xn(e,t);return n===a?r:n}function Cs(e,t){return null!=e&&pi(e,t,Cn)}var Rs=Fa((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=r}),Qs(rl)),As=Fa((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Oe.call(e,t)?e[t].push(r):e[t]=[r]}),ii),Ps=Gn(An);function Ts(e){return $o(e)?Gr(e):Ln(e)}function Ns(e){return $o(e)?Gr(e,!0):function(e){if(!Qo(e))return function(e){var t=[];if(null!=e)for(var r in ke(e))t.push(r);return t}(e);var t=wi(e),r=[];for(var n in e)("constructor"!=n||!t&&Oe.call(e,n))&&r.push(n);return r}(e)}var Is=Pa((function(e,t,r){Mn(e,t,r)})),Os=Pa((function(e,t,r,n){Mn(e,t,r,n)})),Ls=Qa((function(e,t){var r={};if(null==e)return r;var n=!1;t=Nt(t,(function(t){return t=ha(t,e),n||(n=t.length>1),t})),Ra(e,ti(e),r),n&&(r=on(r,7,Xa));for(var a=t.length;a--;)la(r,t[a]);return r})),Bs=Qa((function(e,t){return null==e?{}:function(e,t){return Wn(e,t,(function(t,r){return Cs(e,r)}))}(e,t)}));function js(e,t){if(null==e)return{};var r=Nt(ti(e),(function(e){return[e]}));return t=ii(t),Wn(e,r,(function(e,r){return t(e,r[0])}))}var Ds=Ga(Ts),Fs=Ga(Ns);function Ms(e){return null==e?[]:Kt(e,Ts(e))}var zs=Oa((function(e,t,r){return t=t.toLowerCase(),e+(r?Vs(t):t)}));function Vs(e){return Ys(ys(e).toLowerCase())}function Ws(e){return(e=ys(e))&&e.replace(be,er).replace(Xe,"")}var Us=Oa((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Hs=Oa((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),$s=Ia("toLowerCase"),Zs=Oa((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Gs=Oa((function(e,t,r){return e+(r?" ":"")+Ys(t)})),qs=Oa((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ys=Ia("toUpperCase");function Ks(e,t,r){return e=ys(e),(t=r?a:t)===a?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Gn((function(e,t){try{return Et(e,a,t)}catch(e){return Yo(e)?e:new xe(e)}})),Js=Qa((function(e,t){return St(t,(function(t){t=Bi(t),rn(e,t,Ao(e[t],e))})),e}));function Qs(e){return function(){return e}}var el=ja(),tl=ja(!0);function rl(e){return e}function nl(e){return On("function"==typeof e?e:on(e,1))}var al=Gn((function(e,t){return function(r){return An(r,e,t)}})),il=Gn((function(e,t){return function(r){return An(e,r,t)}}));function ol(e,t,r){var n=Ts(t),a=wn(t,n);null!=r||Qo(t)&&(a.length||!n.length)||(r=t,t=e,e=this,a=wn(t,Ts(t)));var i=!(Qo(r)&&"chain"in r&&!r.chain),o=Ko(e);return St(a,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ca(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function sl(){}var ll=za(Nt),cl=za(Rt),ul=za(Bt);function dl(e){return yi(e)?Ut(Bi(e)):function(e){return function(t){return xn(t,e)}}(e)}var pl=Wa(),ml=Wa(!0);function fl(){return[]}function gl(){return!1}var hl,yl=Ma((function(e,t){return e+t}),0),bl=$a("ceil"),vl=Ma((function(e,t){return e/t}),1),wl=$a("floor"),xl=Ma((function(e,t){return e*t}),1),_l=$a("round"),El=Ma((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Re(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=Co,Dr.assign=bs,Dr.assignIn=vs,Dr.assignInWith=ws,Dr.assignWith=xs,Dr.at=_s,Dr.before=Ro,Dr.bind=Ao,Dr.bindAll=Js,Dr.bindKey=Po,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Uo(e)?e:[e]},Dr.chain=uo,Dr.chunk=function(e,t,r){t=(r?hi(e,t,r):t===a)?1:gr(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=n(pt(i/t));o<i;)l[s++]=ea(e,o,o+=t);return l},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,a=[];++t<r;){var i=e[t];i&&(a[n++]=i)}return a},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return It(Uo(r)?Ca(r):[r],gn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=ii();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new Re(i);return[r(e[0]),e[1]]})):[],Gn((function(r){for(var n=-1;++n<t;){var a=e[n];if(Et(a[0],this,r))return Et(a[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Ts(e);return function(r){return sn(r,e,t)}}(on(e,1))},Dr.constant=Qs,Dr.countBy=fo,Dr.create=function(e,t){var r=Fr(e);return null==t?r:tn(r,t)},Dr.curry=function e(t,r,n){var i=qa(t,8,a,a,a,a,a,r=n?a:r);return i.placeholder=e.placeholder,i},Dr.curryRight=function e(t,r,n){var i=qa(t,16,a,a,a,a,a,r=n?a:r);return i.placeholder=e.placeholder,i},Dr.debounce=To,Dr.defaults=Es,Dr.defaultsDeep=ks,Dr.defer=No,Dr.delay=Io,Dr.difference=Fi,Dr.differenceBy=Mi,Dr.differenceWith=zi,Dr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ea(e,(t=r||t===a?1:ms(t))<0?0:t,n):[]},Dr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ea(e,0,(t=n-(t=r||t===a?1:ms(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?ua(e,ii(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?ua(e,ii(t,3),!0):[]},Dr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&hi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=ms(r))<0&&(r=-r>i?0:i+r),(n=n===a||n>i?i:ms(n))<0&&(n+=i),n=r>n?0:fs(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Dr.filter=function(e,t){return(Uo(e)?At:fn)(e,ii(t,3))},Dr.flatMap=function(e,t){return gn(_o(e,t),1)},Dr.flatMapDeep=function(e,t){return gn(_o(e,t),u)},Dr.flatMapDepth=function(e,t,r){return r=r===a?1:ms(r),gn(_o(e,t),r)},Dr.flatten=Ui,Dr.flattenDeep=function(e){return null!=e&&e.length?gn(e,u):[]},Dr.flattenDepth=function(e,t){return null!=e&&e.length?gn(e,t=t===a?1:ms(t)):[]},Dr.flip=function(e){return qa(e,512)},Dr.flow=el,Dr.flowRight=tl,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n},Dr.functions=function(e){return null==e?[]:wn(e,Ts(e))},Dr.functionsIn=function(e){return null==e?[]:wn(e,Ns(e))},Dr.groupBy=vo,Dr.initial=function(e){return null!=e&&e.length?ea(e,0,-1):[]},Dr.intersection=$i,Dr.intersectionBy=Zi,Dr.intersectionWith=Gi,Dr.invert=Rs,Dr.invertBy=As,Dr.invokeMap=wo,Dr.iteratee=nl,Dr.keyBy=xo,Dr.keys=Ts,Dr.keysIn=Ns,Dr.map=_o,Dr.mapKeys=function(e,t){var r={};return t=ii(t,3),bn(e,(function(e,n,a){rn(r,t(e,n,a),e)})),r},Dr.mapValues=function(e,t){var r={};return t=ii(t,3),bn(e,(function(e,n,a){rn(r,n,t(e,n,a))})),r},Dr.matches=function(e){return Dn(on(e,1))},Dr.matchesProperty=function(e,t){return Fn(e,on(t,1))},Dr.memoize=Oo,Dr.merge=Is,Dr.mergeWith=Os,Dr.method=al,Dr.methodOf=il,Dr.mixin=ol,Dr.negate=Lo,Dr.nthArg=function(e){return e=ms(e),Gn((function(t){return zn(t,e)}))},Dr.omit=Ls,Dr.omitBy=function(e,t){return js(e,Lo(ii(t)))},Dr.once=function(e){return Ro(2,e)},Dr.orderBy=function(e,t,r,n){return null==e?[]:(Uo(t)||(t=null==t?[]:[t]),Uo(r=n?a:r)||(r=null==r?[]:[r]),Vn(e,t,r))},Dr.over=ll,Dr.overArgs=Bo,Dr.overEvery=cl,Dr.overSome=ul,Dr.partial=jo,Dr.partialRight=Do,Dr.partition=Eo,Dr.pick=Bs,Dr.pickBy=js,Dr.property=dl,Dr.propertyOf=function(e){return function(t){return null==e?a:xn(e,t)}},Dr.pull=Yi,Dr.pullAll=Ki,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Un(e,t,ii(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Un(e,t,a,r):e},Dr.pullAt=Xi,Dr.range=pl,Dr.rangeRight=ml,Dr.rearg=Fo,Dr.reject=function(e,t){return(Uo(e)?At:fn)(e,Lo(ii(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,a=[],i=e.length;for(t=ii(t,3);++n<i;){var o=e[n];t(o,n,e)&&(r.push(o),a.push(n))}return Hn(e,a),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new Re(i);return Gn(e,t=t===a?t:ms(t))},Dr.reverse=Ji,Dr.sampleSize=function(e,t,r){return t=(r?hi(e,t,r):t===a)?1:ms(t),(Uo(e)?Yr:Yn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Kn(e,t,r)},Dr.setWith=function(e,t,r,n){return n="function"==typeof n?n:a,null==e?e:Kn(e,t,r,n)},Dr.shuffle=function(e){return(Uo(e)?Kr:Qn)(e)},Dr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&hi(e,t,r)?(t=0,r=n):(t=null==t?0:ms(t),r=r===a?n:ms(r)),ea(e,t,r)):[]},Dr.sortBy=ko,Dr.sortedUniq=function(e){return e&&e.length?aa(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?aa(e,ii(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&hi(e,t,r)&&(t=r=a),(r=r===a?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=oa(t))&&nr(e)?ba(ur(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Re(i);return t=null==t?0:gr(ms(t),0),Gn((function(r){var n=r[t],a=ba(r,0,t);return n&&It(a,n),Et(e,this,a)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?ea(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?ea(e,0,(t=r||t===a?1:ms(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ea(e,(t=n-(t=r||t===a?1:ms(t)))<0?0:t,n):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?ua(e,ii(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?ua(e,ii(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new Re(i);return Qo(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),To(e,t,{leading:n,maxWait:t,trailing:a})},Dr.thru=po,Dr.toArray=ds,Dr.toPairs=Ds,Dr.toPairsIn=Fs,Dr.toPath=function(e){return Uo(e)?Nt(e,Bi):ss(e)?[e]:Ca(Li(ys(e)))},Dr.toPlainObject=hs,Dr.transform=function(e,t,r){var n=Uo(e),a=n||Go(e)||ls(e);if(t=ii(t,4),null==r){var i=e&&e.constructor;r=a?n?new i:[]:Qo(e)&&Ko(i)?Fr(He(e)):{}}return(a?St:bn)(e,(function(e,n,a){return t(r,e,n,a)})),r},Dr.unary=function(e){return Co(e,1)},Dr.union=Qi,Dr.unionBy=eo,Dr.unionWith=to,Dr.uniq=function(e){return e&&e.length?sa(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?sa(e,ii(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?sa(e,a,t):[]},Dr.unset=function(e,t){return null==e||la(e,t)},Dr.unzip=ro,Dr.unzipWith=no,Dr.update=function(e,t,r){return null==e?e:ca(e,t,ga(r))},Dr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:a,null==e?e:ca(e,t,ga(r),n)},Dr.values=Ms,Dr.valuesIn=function(e){return null==e?[]:Kt(e,Ns(e))},Dr.without=ao,Dr.words=Ks,Dr.wrap=function(e,t){return jo(ga(t),e)},Dr.xor=io,Dr.xorBy=oo,Dr.xorWith=so,Dr.zip=lo,Dr.zipObject=function(e,t){return ma(e||[],t||[],Jr)},Dr.zipObjectDeep=function(e,t){return ma(e||[],t||[],Kn)},Dr.zipWith=co,Dr.entries=Ds,Dr.entriesIn=Fs,Dr.extend=vs,Dr.extendWith=ws,ol(Dr,Dr),Dr.add=yl,Dr.attempt=Xs,Dr.camelCase=zs,Dr.capitalize=Vs,Dr.ceil=bl,Dr.clamp=function(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=(r=gs(r))==r?r:0),t!==a&&(t=(t=gs(t))==t?t:0),an(gs(e),t,r)},Dr.clone=function(e){return on(e,4)},Dr.cloneDeep=function(e){return on(e,5)},Dr.cloneDeepWith=function(e,t){return on(e,5,t="function"==typeof t?t:a)},Dr.cloneWith=function(e,t){return on(e,4,t="function"==typeof t?t:a)},Dr.conformsTo=function(e,t){return null==t||sn(e,t,Ts(t))},Dr.deburr=Ws,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=vl,Dr.endsWith=function(e,t,r){e=ys(e),t=oa(t);var n=e.length,i=r=r===a?n:an(ms(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Dr.eq=Mo,Dr.escape=function(e){return(e=ys(e))&&q.test(e)?e.replace(Z,tr):e},Dr.escapeRegExp=function(e){return(e=ys(e))&&re.test(e)?e.replace(te,"\\$&"):e},Dr.every=function(e,t,r){var n=Uo(e)?Rt:pn;return r&&hi(e,t,r)&&(t=a),n(e,ii(t,3))},Dr.find=go,Dr.findIndex=Vi,Dr.findKey=function(e,t){return Dt(e,ii(t,3),bn)},Dr.findLast=ho,Dr.findLastIndex=Wi,Dr.findLastKey=function(e,t){return Dt(e,ii(t,3),vn)},Dr.floor=wl,Dr.forEach=yo,Dr.forEachRight=bo,Dr.forIn=function(e,t){return null==e?e:hn(e,ii(t,3),Ns)},Dr.forInRight=function(e,t){return null==e?e:yn(e,ii(t,3),Ns)},Dr.forOwn=function(e,t){return e&&bn(e,ii(t,3))},Dr.forOwnRight=function(e,t){return e&&vn(e,ii(t,3))},Dr.get=Ss,Dr.gt=zo,Dr.gte=Vo,Dr.has=function(e,t){return null!=e&&pi(e,t,Sn)},Dr.hasIn=Cs,Dr.head=Hi,Dr.identity=rl,Dr.includes=function(e,t,r,n){e=$o(e)?e:Ms(e),r=r&&!n?ms(r):0;var a=e.length;return r<0&&(r=gr(a+r,0)),os(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Mt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:ms(r);return a<0&&(a=gr(n+a,0)),Mt(e,t,a)},Dr.inRange=function(e,t,r){return t=ps(t),r===a?(r=t,t=0):r=ps(r),function(e,t,r){return e>=hr(t,r)&&e<gr(t,r)}(e=gs(e),t,r)},Dr.invoke=Ps,Dr.isArguments=Wo,Dr.isArray=Uo,Dr.isArrayBuffer=Ho,Dr.isArrayLike=$o,Dr.isArrayLikeObject=Zo,Dr.isBoolean=function(e){return!0===e||!1===e||es(e)&&En(e)==y},Dr.isBuffer=Go,Dr.isDate=qo,Dr.isElement=function(e){return es(e)&&1===e.nodeType&&!ns(e)},Dr.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Uo(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||ls(e)||Wo(e)))return!e.length;var t=di(e);if(t==_||t==R)return!e.size;if(wi(e))return!Ln(e).length;for(var r in e)if(Oe.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Tn(e,t)},Dr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:a)?r(e,t):a;return n===a?Tn(e,t,a,r):!!n},Dr.isError=Yo,Dr.isFinite=function(e){return"number"==typeof e&&jt(e)},Dr.isFunction=Ko,Dr.isInteger=Xo,Dr.isLength=Jo,Dr.isMap=ts,Dr.isMatch=function(e,t){return e===t||Nn(e,t,si(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:a,Nn(e,t,si(t),r)},Dr.isNaN=function(e){return rs(e)&&e!=+e},Dr.isNative=function(e){if(vi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return In(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=rs,Dr.isObject=Qo,Dr.isObjectLike=es,Dr.isPlainObject=ns,Dr.isRegExp=as,Dr.isSafeInteger=function(e){return Xo(e)&&e>=-9007199254740991&&e<=d},Dr.isSet=is,Dr.isString=os,Dr.isSymbol=ss,Dr.isTypedArray=ls,Dr.isUndefined=function(e){return e===a},Dr.isWeakMap=function(e){return es(e)&&di(e)==T},Dr.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==En(e)},Dr.join=function(e,t){return null==e?"":Ht.call(e,t)},Dr.kebabCase=Us,Dr.last=qi,Dr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==a&&(i=(i=ms(r))<0?gr(n+i,0):hr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Ft(e,Vt,i,!0)},Dr.lowerCase=Hs,Dr.lowerFirst=$s,Dr.lt=cs,Dr.lte=us,Dr.max=function(e){return e&&e.length?mn(e,rl,kn):a},Dr.maxBy=function(e,t){return e&&e.length?mn(e,ii(t,2),kn):a},Dr.mean=function(e){return Wt(e,rl)},Dr.meanBy=function(e,t){return Wt(e,ii(t,2))},Dr.min=function(e){return e&&e.length?mn(e,rl,Bn):a},Dr.minBy=function(e,t){return e&&e.length?mn(e,ii(t,2),Bn):a},Dr.stubArray=fl,Dr.stubFalse=gl,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xl,Dr.nth=function(e,t){return e&&e.length?zn(e,ms(t)):a},Dr.noConflict=function(){return dt._===this&&(dt._=Fe),this},Dr.noop=sl,Dr.now=So,Dr.pad=function(e,t,r){e=ys(e);var n=(t=ms(t))?cr(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return Va(mt(a),r)+e+Va(pt(a),r)},Dr.padEnd=function(e,t,r){e=ys(e);var n=(t=ms(t))?cr(e):0;return t&&n<t?e+Va(t-n,r):e},Dr.padStart=function(e,t,r){e=ys(e);var n=(t=ms(t))?cr(e):0;return t&&n<t?Va(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),br(ys(e).replace(ne,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&hi(e,t,r)&&(t=r=a),r===a&&("boolean"==typeof t?(r=t,t=a):"boolean"==typeof e&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=ps(e),t===a?(t=e,e=0):t=ps(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=vr();return hr(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return $n(e,t)},Dr.reduce=function(e,t,r){var n=Uo(e)?Ot:$t,a=arguments.length<3;return n(e,ii(t,4),r,a,un)},Dr.reduceRight=function(e,t,r){var n=Uo(e)?Lt:$t,a=arguments.length<3;return n(e,ii(t,4),r,a,dn)},Dr.repeat=function(e,t,r){return t=(r?hi(e,t,r):t===a)?1:ms(t),Zn(ys(e),t)},Dr.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var n=-1,i=(t=ha(t,e)).length;for(i||(i=1,e=a);++n<i;){var o=null==e?a:e[Bi(t[n])];o===a&&(n=i,o=r),e=Ko(o)?o.call(e):o}return e},Dr.round=_l,Dr.runInContext=e,Dr.sample=function(e){return(Uo(e)?qr:qn)(e)},Dr.size=function(e){if(null==e)return 0;if($o(e))return os(e)?cr(e):e.length;var t=di(e);return t==_||t==R?e.size:Ln(e).length},Dr.snakeCase=Zs,Dr.some=function(e,t,r){var n=Uo(e)?Bt:ta;return r&&hi(e,t,r)&&(t=a),n(e,ii(t,3))},Dr.sortedIndex=function(e,t){return ra(e,t)},Dr.sortedIndexBy=function(e,t,r){return na(e,t,ii(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ra(e,t);if(n<r&&Mo(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ra(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return na(e,t,ii(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ra(e,t,!0)-1;if(Mo(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=ys(e),r=null==r?0:an(ms(r),0,e.length),t=oa(t),e.slice(r,r+t.length)==t},Dr.subtract=El,Dr.sum=function(e){return e&&e.length?Zt(e,rl):0},Dr.sumBy=function(e,t){return e&&e.length?Zt(e,ii(t,2)):0},Dr.template=function(e,t,r){var n=Dr.templateSettings;r&&hi(e,t,r)&&(t=a),e=ys(e),t=ws({},t,n,Ya);var i,o,s=ws({},t.imports,n.imports,Ya),l=Ts(s),c=Kt(s,l),u=0,d=t.interpolate||ve,p="__p += '",m=Se((t.escape||ve).source+"|"+d.source+"|"+(d===X?de:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(Oe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(m,(function(t,r,n,a,s,l){return n||(n=a),p+=e.slice(u,l).replace(we,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var g=Oe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(W,""):p).replace(U,"$1").replace(H,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var h=Xs((function(){return _e(l,f+"return "+p).apply(a,c)}));if(h.source=p,Yo(h))throw h;return h},Dr.times=function(e,t){if((e=ms(e))<1||e>d)return[];var r=m,n=hr(e,m);t=ii(t),e-=m;for(var a=Gt(n,t);++r<e;)t(r);return a},Dr.toFinite=ps,Dr.toInteger=ms,Dr.toLength=fs,Dr.toLower=function(e){return ys(e).toLowerCase()},Dr.toNumber=gs,Dr.toSafeInteger=function(e){return e?an(ms(e),-9007199254740991,d):0===e?e:0},Dr.toString=ys,Dr.toUpper=function(e){return ys(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ys(e))&&(r||t===a))return qt(e);if(!e||!(t=oa(t)))return e;var n=ur(e),i=ur(t);return ba(n,Jt(n,i),Qt(n,i)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===a))return e.slice(0,dr(e)+1);if(!e||!(t=oa(t)))return e;var n=ur(e);return ba(n,0,Qt(n,ur(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===a))return e.replace(ne,"");if(!e||!(t=oa(t)))return e;var n=ur(e);return ba(n,Jt(n,ur(t))).join("")},Dr.truncate=function(e,t){var r=30,n="...";if(Qo(t)){var i="separator"in t?t.separator:i;r="length"in t?ms(t.length):r,n="omission"in t?oa(t.omission):n}var o=(e=ys(e)).length;if(nr(e)){var s=ur(e);o=s.length}if(r>=o)return e;var l=r-cr(n);if(l<1)return n;var c=s?ba(s,0,l).join(""):e.slice(0,l);if(i===a)return c+n;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Se(i.source,ys(pe.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===a?l:p)}}else if(e.indexOf(oa(i),l)!=l){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+n},Dr.unescape=function(e){return(e=ys(e))&&G.test(e)?e.replace($,pr):e},Dr.uniqueId=function(e){var t=++Le;return ys(e)+t},Dr.upperCase=qs,Dr.upperFirst=Ys,Dr.each=yo,Dr.eachRight=bo,Dr.first=Hi,ol(Dr,(hl={},bn(Dr,(function(e,t){Oe.call(Dr.prototype,t)||(hl[t]=e)})),hl),{chain:!1}),Dr.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),St(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===a?1:gr(ms(r),0);var n=this.__filtered__&&!t?new Vr(this):this.clone();return n.__filtered__?n.__takeCount__=hr(r,n.__takeCount__):n.__views__.push({size:hr(r,m),type:e+(n.__dir__<0?"Right":"")}),n},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),St(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),St(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(rl)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return An(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Lo(ii(e)))},Vr.prototype.slice=function(e,t){e=ms(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(r=(t=ms(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(m)},bn(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Dr[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,l=t instanceof Vr,c=s[0],u=l||Uo(t),d=function(e){var t=i.apply(Dr,It([e],s));return n&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,m=!!this.__actions__.length,f=o&&!p,g=l&&!m;if(!o&&u){t=g?t:new Vr(this);var h=e.apply(t,s);return h.__actions__.push({func:po,args:[d],thisArg:a}),new zr(h,p)}return f&&g?e.apply(this,s):(h=this.thru(d),f?n?h.value()[0]:h.value():h)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(Uo(a)?a:[],e)}return this[r]((function(r){return t.apply(Uo(r)?r:[],e)}))}})),bn(Vr.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Oe.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Da(a,2).name]=[{name:"wrapper",func:a}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ca(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ca(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ca(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Uo(e),n=t<0,a=r?e.length:0,i=function(e,t,r){for(var n=-1,a=r.length;++n<a;){var i=r[n],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=hr(t,e+o);break;case"takeRight":e=gr(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=i.start,s=i.end,l=s-o,c=n?s:o-1,u=this.__iteratees__,d=u.length,p=0,m=hr(l,this.__takeCount__);if(!r||!n&&a==l&&m==l)return da(e,this.__actions__);var f=[];e:for(;l--&&p<m;){for(var g=-1,h=e[c+=t];++g<d;){var y=u[g],b=y.iteratee,v=y.type,w=b(h);if(2==v)h=w;else if(!w){if(1==v)continue e;break e}}f[p++]=h}return f},Dr.prototype.at=mo,Dr.prototype.chain=function(){return uo(this)},Dr.prototype.commit=function(){return new zr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===a&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Mr;){var n=Di(r);n.__index__=0,n.__values__=a,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:po,args:[Ji],thisArg:a}),new zr(t,this.__chain__)}return this.thru(Ji)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return da(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();dt._=mr,(n=function(){return mr}.call(t,r,t,e))===a||(e.exports=n)}.call(this)},7482:(e,t,r)=>{"use strict";function n(e){return e.toLowerCase()}r.d(t,{W:()=>o});var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function o(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,o=void 0===r?a:r,l=t.stripRegexp,c=void 0===l?i:l,u=t.transform,d=void 0===u?n:u,p=t.delimiter,m=void 0===p?" ":p,f=s(s(e,o,"$1\0$2"),c,"\0"),g=0,h=f.length;"\0"===f.charAt(g);)g++;for(;"\0"===f.charAt(h-1);)h--;return f.slice(g,h).split("\0").map(d).join(m)}function s(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}},2694:(e,t,r)=>{"use strict";var n=r(6925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},5556:(e,t,r)=>{e.exports=r(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7614:function(e,t,r){var n;e.exports=(n=r(1594),function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){e.exports=r(2)()},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(3);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,i,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t);var n=r(1),a=r.n(n),i=r(0),o=r.n(i),s=function(e){return 0!==e};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,e);var t,r,n=p(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),g(m(t=n.call(this,e)),"continueOpenCollapsible",(function(){var e=m(t).innerRef;t.setState({height:e.scrollHeight,transition:"height ".concat(t.props.transitionTime,"ms ").concat(t.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:s(e.scrollHeight),shouldOpenOnNextCycle:!1})})),g(m(t),"handleTriggerClick",(function(e){t.props.triggerDisabled||t.state.inTransition||(e.preventDefault(),t.props.handleTriggerClick?t.props.handleTriggerClick(t.props.accordionPosition):!0===t.state.isClosed?(t.openCollapsible(),t.props.onOpening(),t.props.onTriggerOpening()):(t.closeCollapsible(),t.props.onClosing(),t.props.onTriggerClosing()))})),g(m(t),"handleTransitionEnd",(function(e){e.target===t.innerRef&&(t.state.isClosed?(t.setState({inTransition:!1}),t.props.onClose()):(t.setState({height:"auto",overflow:t.props.overflowWhenOpen,inTransition:!1}),t.props.onOpen()))})),g(m(t),"setInnerRef",(function(e){return t.innerRef=e})),t.timeout=void 0,t.contentId=e.contentElementId||"collapsible-content-".concat(Date.now()),t.triggerId=e.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),e.open?t.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:e.overflowWhenOpen,inTransition:!1}:t.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(e.transitionTime,"ms ").concat(e.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},t}return t=i,(r=[{key:"componentDidUpdate",value:function(e,t){var r=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==t.height&&0!==t.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){r.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),e.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var e=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:e.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:s(e.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:s(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var e=this.props,t=e.triggerSibling,r=e.classParentString;if(!t)return null;switch(c(t)){case"string":return a.a.createElement("span",{className:"".concat(r,"__trigger-sibling")},t);case"function":return t();case"object":return t;default:return null}}},{key:"render",value:function(){var e=this,t={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},r=this.state.isClosed?"is-closed":"is-open",n=this.props.triggerDisabled?"is-disabled":"",i=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,o=this.props.contentContainerTagName,s=this.props.triggerTagName,c=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,u=this.props,d=u.classParentString,p=u.contentOuterClassName,m=u.contentInnerClassName,f="".concat(d,"__trigger ").concat(r," ").concat(n," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),g="".concat(d," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),h="".concat(d,"__contentOuter ").concat(p),y="".concat(d,"__contentInner ").concat(m);return a.a.createElement(o,l({className:g.trim()},this.props.containerElementProps),a.a.createElement(s,l({id:this.triggerId,className:f.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(t){var r=t.key;(" "===r&&"button"!==e.props.triggerTagName.toLowerCase()||"Enter"===r)&&e.handleTriggerClick(t)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),i),this.renderNonClickableTriggerElement(),a.a.createElement("div",{id:this.contentId,className:h.trim(),style:t,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},a.a.createElement("div",{className:y.trim()},c)))}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);h.propTypes={transitionTime:o.a.number,transitionCloseTime:o.a.number,triggerTagName:o.a.string,easing:o.a.string,open:o.a.bool,containerElementProps:o.a.object,triggerElementProps:o.a.object,contentElementId:o.a.string,classParentString:o.a.string,className:o.a.string,openedClassName:o.a.string,triggerStyle:o.a.object,triggerClassName:o.a.string,triggerOpenedClassName:o.a.string,contentOuterClassName:o.a.string,contentInnerClassName:o.a.string,accordionPosition:o.a.oneOfType([o.a.string,o.a.number]),handleTriggerClick:o.a.func,onOpen:o.a.func,onClose:o.a.func,onOpening:o.a.func,onClosing:o.a.func,onTriggerOpening:o.a.func,onTriggerClosing:o.a.func,trigger:o.a.oneOfType([o.a.string,o.a.element]),triggerWhenOpen:o.a.oneOfType([o.a.string,o.a.element]),triggerDisabled:o.a.bool,lazyRender:o.a.bool,overflowWhenOpen:o.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:o.a.bool,triggerSibling:o.a.oneOfType([o.a.string,o.a.element,o.a.func]),tabIndex:o.a.number,contentContainerTagName:o.a.string,children:o.a.oneOfType([o.a.string,o.a.element])},h.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},t.default=h}]))},5338:(e,t,r)=>{"use strict";var n=r(5206);t.H=n.createRoot,n.hydrateRoot},1020:(e,t,r)=>{"use strict";var n=r(1594),a=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,l={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!s.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:l,_owner:o.current}}},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},8939:(e,t,r)=>{var n,a;void 0===(a="function"==typeof(n=function(){"use strict";var e,t,n,a,i,o,s,l,c="undefined"!=typeof window?window:null!=typeof r.g?r.g:this||{},u=c.cancelRequestAnimationFrame&&c.requestAnimationFrame||setTimeout,d=c.cancelRequestAnimationFrame||clearTimeout,p=[],m=0,f=!1,g=7,h=35,y=125,b=0,v=0,w=0,x={get didTimeout(){return!1},timeRemaining:function(){var e=g-(Date.now()-v);return e<0?0:e}},_=(i=function(){g=22,y=66,h=0},l=function(){var e=Date.now()-s;e<99?o=setTimeout(l,99-e):(o=null,i())},function(){s=Date.now(),o||(o=setTimeout(l,99))});function E(){125!=y&&(g=7,y=125,h=35,f&&(f&&(a&&d(a),n&&clearTimeout(n),f=!1),C())),_()}function k(){a=null,n=setTimeout(R,0)}function S(){n=null,u(k)}function C(){f||(t=y-(Date.now()-v),e=Date.now(),f=!0,h&&t<h&&(t=h),t>9?n=setTimeout(S,t):(t=0,S()))}function R(){var r,a,i,o=g>9?9:1;if(v=Date.now(),f=!1,n=null,m>2||v-t-50<e)for(a=0,i=p.length;a<i&&x.timeRemaining()>o;a++)r=p.shift(),w++,r&&r(x);p.length?C():m=0}function A(e){return b++,p.push(e),C(),b}function P(e){var t=e-1-w;p[t]&&(p[t]=null)}if(c.requestIdleCallback&&c.cancelIdleCallback)try{c.requestIdleCallback((function(){}),{timeout:0})}catch(e){!function(e){var t,r;if(c.requestIdleCallback=function(t,r){return r&&"number"==typeof r.timeout?e(t,r.timeout):e(t)},c.IdleCallbackDeadline&&(t=IdleCallbackDeadline.prototype)){if(!(r=Object.getOwnPropertyDescriptor(t,"timeRemaining"))||!r.configurable||!r.get)return;Object.defineProperty(t,"timeRemaining",{value:function(){return r.get.call(this)},enumerable:!0,configurable:!0})}}(c.requestIdleCallback)}else c.requestIdleCallback=A,c.cancelIdleCallback=P,c.document&&document.addEventListener&&(c.addEventListener("scroll",E,!0),c.addEventListener("resize",E),document.addEventListener("focus",E,!0),document.addEventListener("mouseover",E,!0),["click","keypress","touchstart","mousedown"].forEach((function(e){document.addEventListener(e,E,{capture:!0,passive:!0})})),c.MutationObserver&&new MutationObserver(E).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}));return{request:A,cancel:P}})?n.apply(t,[]):n)||(e.exports=a)},6080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.race=t.join=t.fork=t.promise=void 0;var n=o(r(6439)),a=r(3090),i=o(r(6270));function o(e){return e&&e.__esModule?e:{default:e}}var s=t.promise=function(e,t,r,a,i){return!!n.default.promise(e)&&(e.then(t,i),!0)},l=new Map,c=t.fork=function(e,t,r){if(!n.default.fork(e))return!1;var o=Symbol("fork"),s=(0,i.default)();l.set(o,s),r(e.iterator.apply(null,e.args),(function(e){return s.dispatch(e)}),(function(e){return s.dispatch((0,a.error)(e))}));var c=s.subscribe((function(){c(),l.delete(o)}));return t(o),!0},u=t.join=function(e,t,r,a,i){if(!n.default.join(e))return!1;var o,s=l.get(e.task);return s?o=s.subscribe((function(e){o(),t(e)})):i("join error : task not found"),!0},d=t.race=function(e,t,r,a,i){if(!n.default.race(e))return!1;var o,s=!1,l=function(e,r,n){s||(s=!0,e[r]=n,t(e))},c=function(e){s||i(e)};return n.default.array(e.competitors)?(o=e.competitors.map((function(){return!1})),e.competitors.forEach((function(e,t){r(e,(function(e){return l(o,t,e)}),c)}))):function(){var t=Object.keys(e.competitors).reduce((function(e,t){return e[t]=!1,e}),{});Object.keys(e.competitors).forEach((function(n){r(e.competitors[n],(function(e){return l(t,n,e)}),c)}))}(),!0};t.default=[s,c,u,d,function(e,t){if(!n.default.subscribe(e))return!1;if(!n.default.channel(e.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var r=e.channel.subscribe((function(e){r&&r(),t(e)}));return!0}]},323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.array=t.object=t.error=t.any=void 0;var n,a=(n=r(6439))&&n.__esModule?n:{default:n},i=t.any=function(e,t,r,n){return n(e),!0},o=t.error=function(e,t,r,n,i){return!!a.default.error(e)&&(i(e.error),!0)},s=t.object=function(e,t,r,n,i){if(!a.default.all(e)||!a.default.obj(e.value))return!1;var o={},s=Object.keys(e.value),l=0,c=!1;return s.map((function(t){r(e.value[t],(function(e){return function(e,t){c||(o[e]=t,++l===s.length&&n(o))}(t,e)}),(function(e){return function(e,t){c||(c=!0,i(t))}(0,e)}))})),!0},l=t.array=function(e,t,r,n,i){if(!a.default.all(e)||!a.default.array(e.value))return!1;var o=[],s=0,l=!1;return e.value.map((function(t,a){r(t,(function(t){return function(t,r){l||(o[t]=r,++s===e.value.length&&n(o))}(a,t)}),(function(e){return function(e,t){l||(l=!0,i(t))}(0,e)}))})),!0},c=t.iterator=function(e,t,r,n,i){return!!a.default.iterator(e)&&(r(e,t,i),!0)};t.default=[o,c,l,s,i]},2682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cps=t.call=void 0;var n,a=(n=r(6439))&&n.__esModule?n:{default:n},i=t.call=function(e,t,r,n,i){if(!a.default.call(e))return!1;try{t(e.func.apply(e.context,e.args))}catch(e){i(e)}return!0},o=t.cps=function(e,t,r,n,i){var o;return!!a.default.cps(e)&&((o=e.func).call.apply(o,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e.args),[function(e,r){e?i(e):t(r)}])),!0)};t.default=[i,o]},8249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(323)),a=i(r(6439));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}t.default=function(){var e=[].concat(o(arguments.length<=0||void 0===arguments[0]?[]:arguments[0]),o(n.default));return function t(r){var n,i,o,s=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],l=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2],c=a.default.iterator(r)?r:regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r;case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))();n=c,i=function(e){return function(t){try{var r=e?n.throw(t):n.next(t),a=r.value;if(r.done)return s(a);o(a)}catch(e){return l(e)}}},o=function r(n){e.some((function(e){return e(n,r,t,i(!1),i(!0))}))},i(!1)()}}},5937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapControls=t.asyncControls=t.create=void 0;var n=r(3090);Object.keys(n).forEach((function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}));var a=s(r(8249)),i=s(r(6080)),o=s(r(2682));function s(e){return e&&e.__esModule?e:{default:e}}t.create=a.default,t.asyncControls=i.default,t.wrapControls=o.default},6270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},dispatch:function(t){e.slice().forEach((function(e){return e(t)}))}}}},3090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChannel=t.subscribe=t.cps=t.apply=t.call=t.invoke=t.delay=t.race=t.join=t.fork=t.error=t.all=void 0;var n,a=(n=r(9907))&&n.__esModule?n:{default:n};t.all=function(e){return{type:a.default.all,value:e}},t.error=function(e){return{type:a.default.error,error:e}},t.fork=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:a.default.fork,iterator:e,args:r}},t.join=function(e){return{type:a.default.join,task:e}},t.race=function(e){return{type:a.default.race,competitors:e}},t.delay=function(e){return new Promise((function(t){setTimeout((function(){return t(!0)}),e)}))},t.invoke=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:a.default.call,func:e,context:null,args:r}},t.call=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return{type:a.default.call,func:e,context:t,args:n}},t.apply=function(e,t,r){return{type:a.default.call,func:e,context:t,args:r}},t.cps=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:a.default.cps,func:e,args:r}},t.subscribe=function(e){return{type:a.default.subscribe,channel:e}},t.createChannel=function(e){var t=[];return e((function(e){return t.forEach((function(t){return t(e)}))})),{subscribe:function(e){return t.push(e),function(){return t.splice(t.indexOf(e),1)}}}}},6439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=(n=r(9907))&&n.__esModule?n:{default:n},o={obj:function(e){return"object"===(void 0===e?"undefined":a(e))&&!!e},all:function(e){return o.obj(e)&&e.type===i.default.all},error:function(e){return o.obj(e)&&e.type===i.default.error},array:Array.isArray,func:function(e){return"function"==typeof e},promise:function(e){return e&&o.func(e.then)},iterator:function(e){return e&&o.func(e.next)&&o.func(e.throw)},fork:function(e){return o.obj(e)&&e.type===i.default.fork},join:function(e){return o.obj(e)&&e.type===i.default.join},race:function(e){return o.obj(e)&&e.type===i.default.race},call:function(e){return o.obj(e)&&e.type===i.default.call},cps:function(e){return o.obj(e)&&e.type===i.default.cps},subscribe:function(e){return o.obj(e)&&e.type===i.default.subscribe},channel:function(e){return o.obj(e)&&o.func(e.subscribe)}};t.default=o},9907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};t.default=r},7604:(e,t,r)=>{var n;!function(){"use strict";var a={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var r,n,o,s,l,c,u,d,p,m=1,f=e.length,g="";for(n=0;n<f;n++)if("string"==typeof e[n])g+=e[n];else if("object"==typeof e[n]){if((s=e[n]).keys)for(r=t[m],o=0;o<s.keys.length;o++){if(null==r)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?t[s.param_no]:t[m++];if(a.not_type.test(s.type)&&a.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),a.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(i("[sprintf] expecting number but found %T",r));switch(a.number.test(s.type)&&(d=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}a.json.test(s.type)?g+=r:(!a.number.test(s.type)||d&&!s.sign?p="":(p=d?"+":"-",r=r.toString().replace(a.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",u=s.width-(p+r).length,l=s.width&&u>0?c.repeat(u):"",g+=s.align?p+r+l:"0"===c?p+l+r:l+p+r)}return g}(function(e){if(s[e])return s[e];for(var t,r=e,n=[],i=0;r;){if(null!==(t=a.text.exec(r)))n.push(t[0]);else if(null!==(t=a.modulo.exec(r)))n.push("%");else{if(null===(t=a.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],l=t[2],c=[];if(null===(c=a.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=a.key_access.exec(l)))o.push(c[1]);else{if(null===(c=a.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}t[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return s[e]=n}(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=i,t.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=o,void 0===(n=function(){return{sprintf:i,vsprintf:o}}.call(t,r,t,e))||(e.exports=n))}()},5138:(e,t,r)=>{var n=r(5072),a=r(8723);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},1726:(e,t,r)=>{var n=r(5072),a=r(8087);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},2919:(e,t,r)=>{var n=r(5072),a=r(9552);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},7525:(e,t,r)=>{var n=r(5072),a=r(7274);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},8509:(e,t,r)=>{var n=r(5072),a=r(8074);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},7948:(e,t,r)=>{var n=r(5072),a=r(8359);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},1032:(e,t,r)=>{var n=r(5072),a=r(7979);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},6723:(e,t,r)=>{var n=r(5072),a=r(8830);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},6574:(e,t,r)=>{var n=r(5072),a=r(2277);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},4473:(e,t,r)=>{var n=r(5072),a=r(7226);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);n(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},5072:(e,t,r)=>{"use strict";var n,a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function o(e){for(var t=-1,r=0;r<i.length;r++)if(i[r].identifier===e){t=r;break}return t}function s(e,t){for(var r={},n=[],a=0;a<e.length;a++){var s=e[a],l=t.base?s[0]+t.base:s[0],c=r[l]||0,u="".concat(l," ").concat(c);r[l]=c+1;var d=o(u),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(i[d].references++,i[d].updater(p)):i.push({identifier:u,updater:g(p,t),references:1}),n.push(u)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=r.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,r,n){var a=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function p(e,t,r){var n=r.css,a=r.media,i=r.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var m=null,f=0;function g(e,t){var r,n,a;if(t.singleton){var i=f++;r=m||(m=l(t)),n=d.bind(null,r,i,!1),a=d.bind(null,r,i,!0)}else r=l(t),n=p.bind(null,r,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n));var r=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var a=o(r[n]);i[a].references--}for(var l=s(e,t),c=0;c<r.length;c++){var u=o(r[c]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}r=l}}}},1594:e=>{"use strict";e.exports=React},5206:e=>{"use strict";e.exports=ReactDOM},2944:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1594);function a({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const i=n.forwardRef(a)},2988:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1594);function a({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const i=n.forwardRef(a)},6156:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1594);function a({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const i=n.forwardRef(a)},4361:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1594);function a({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))}const i=n.forwardRef(a)},4403:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(1594);function a({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const i=n.forwardRef(a)},6542:(e,t,r)=>{"use strict";r.d(t,{L:()=>le});var n=r(3659);const a=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function i(e,t,r,i){if(e===t&&r===i)return n.l;return n=>0===n||1===n?n:a(function(e,t,r,n,i){let o,s,l=0;do{s=t+(r-t)/2,o=a(s,n,i)-e,o>0?r=s:t=s}while(Math.abs(o)>1e-7&&++l<12);return s}(n,0,1,e,r),t,i)}const o=i(.42,0,1,1),s=i(0,0,.58,1),l=i(.42,0,.58,1),c=e=>Array.isArray(e)&&"number"!=typeof e[0];var u=r(5238),d=r(4868),p=r(3041),m=r(2946);const f=i(.33,1.53,.69,.99),g=(0,m.G)(f),h=(0,p.V)(g),y={linear:n.l,easeIn:o,easeInOut:l,easeOut:s,circIn:d.po,circInOut:d.tn,circOut:d.yT,backIn:g,backInOut:h,backOut:f,anticipate:e=>(e*=2)<1?.5*g(e):.5*(2-Math.pow(2,-10*(e-1)))},b=e=>{if(Array.isArray(e)){(0,u.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,a]=e;return i(t,r,n,a)}return"string"==typeof e?((0,u.V)(void 0!==y[e],`Invalid easing type '${e}'`),y[e]):e};var v=r(7739),w=r(2464),x=r(2839);function _(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var E=r(5252),k=r(3735),S=r(2027);const C=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},R=[E.u,k.B,S.V];function A(e){const t=(r=e,R.find((e=>e.test(r))));var r;(0,u.V)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===S.V&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let a=0,i=0,o=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;a=_(s,n,e+1/3),i=_(s,n,e),o=_(s,n,e-1/3)}else a=i=o=r;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*o),alpha:n}}(n)),n}const P=(e,t)=>{const r=A(e),n=A(t),a={...r};return e=>(a.red=C(r.red,n.red,e),a.green=C(r.green,n.green,e),a.blue=C(r.blue,n.blue,e),a.alpha=(0,x.j)(r.alpha,n.alpha,e),k.B.transform(a))};var T=r(1339),N=r(1614);const I=(e,t)=>r=>`${r>0?t:e}`;function O(e,t){return"number"==typeof e?r=>(0,x.j)(e,t,r):v.y.test(e)?P(e,t):e.startsWith("var(")?I(e,t):j(e,t)}const L=(e,t)=>{const r=[...e],n=r.length,a=e.map(((e,r)=>O(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=a[t](e);return r}},B=(e,t)=>{const r={...e,...t},n={};for(const a in r)void 0!==e[a]&&void 0!==t[a]&&(n[a]=O(e[a],t[a]));return e=>{for(const t in n)r[t]=n[t](e);return r}},j=(e,t)=>{const r=N.f.createTransformer(t),n=(0,N.V)(e),a=(0,N.V)(t);return n.numVars===a.numVars&&n.numColors===a.numColors&&n.numNumbers>=a.numNumbers?(0,T.F)(L(n.values,a.values),r):((0,u.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),I(e,t))};var D=r(7170);const F=(e,t)=>r=>(0,x.j)(e,t,r);function M(e,t,{clamp:r=!0,ease:a,mixer:i}={}){const o=e.length;if((0,u.V)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,r){const a=[],i=r||("number"==typeof(o=e[0])?F:"string"==typeof o?v.y.test(o)?P:j:Array.isArray(o)?L:"object"==typeof o?B:F);var o;const s=e.length-1;for(let r=0;r<s;r++){let o=i(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||n.l:t;o=(0,T.F)(e,o)}a.push(o)}return a}(t,a,i),l=s.length,c=t=>{let r=0;if(l>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=(0,D.q)(e[r],e[r+1],t);return s[r](n)};return r?t=>c((0,w.q)(e[0],e[o-1],t)):c}function z({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const a=c(n)?n.map(b):b(n),i={done:!1,value:t[0]},o=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const a=(0,D.q)(0,t,n);e.push((0,x.j)(r,1,a))}}(t,e.length-1),t}(t),e),s=M(o,t,{ease:Array.isArray(a)?a:(u=t,d=a,u.map((()=>d||l)).splice(0,u.length-1))});var u,d;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}var V=r(4833),W=r(7177);const U=5;function H(e,t,r){const n=Math.max(t-U,0);return(0,W.f)(r-e(n),t-n)}const $=.001,Z=.01,G=10,q=.05,Y=1;const K=12;function X(e,t){return e*Math.sqrt(1-t*t)}const J=["duration","bounce"],Q=["stiffness","damping","mass"];function ee(e,t){return t.some((t=>void 0!==e[t]))}function te({keyframes:e,restDelta:t,restSpeed:r,...n}){const a=e[0],i=e[e.length-1],o={done:!1,value:a},{stiffness:s,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ee(e,Q)&&ee(e,J)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let a,i;(0,u.$)(e<=(0,V.f)(G),"Spring duration must be 10 seconds or less");let o=1-t;o=(0,w.q)(q,Y,o),e=(0,w.q)(Z,G,(0,V.X)(e)),o<1?(a=t=>{const n=t*o,a=n*e,i=n-r,s=X(t,o),l=Math.exp(-a);return $-i/s*l},i=t=>{const n=t*o*e,i=n*r+r,s=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=X(Math.pow(t,2),o);return(-a(t)+$>0?-1:1)*((i-s)*l)/c}):(a=t=>Math.exp(-t*e)*((t-r)*e+1)-$,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<K;r++)n-=e(n)/t(n);return n}(a,i,5/e);if(e=(0,V.f)(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-(0,V.X)(n.velocity||0)}),f=p||0,g=l/(2*Math.sqrt(s*c)),h=i-a,y=(0,V.X)(Math.sqrt(s/c)),b=Math.abs(h)<5;let v;if(r||(r=b?.01:2),t||(t=b?.005:.5),g<1){const e=X(y,g);v=t=>{const r=Math.exp(-g*y*t);return i-r*((f+g*y*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===g)v=e=>i-Math.exp(-y*e)*(h+(f+y*h)*e);else{const e=y*Math.sqrt(g*g-1);v=t=>{const r=Math.exp(-g*y*t),n=Math.min(e*t,300);return i-r*((f+g*y*h)*Math.sinh(n)+e*h*Math.cosh(n))/e}}return{calculatedDuration:m&&d||null,next:e=>{const n=v(e);if(m)o.done=e>=d;else{let a=f;0!==e&&(a=g<1?H(v,e,n):0);const s=Math.abs(a)<=r,l=Math.abs(i-n)<=t;o.done=s&&l}return o.value=o.done?i:n,o}}}function re({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=r*t;const g=d+f,h=void 0===o?g:o(g);h!==g&&(f=h-d);const y=e=>-f*Math.exp(-e/n),b=e=>h+y(e),v=e=>{const t=y(e),r=b(e);p.done=Math.abs(t)<=c,p.value=p.done?h:r};let w,x;const _=e=>{var t;t=p.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=te({keyframes:[p.value,m(p.value)],velocity:H(b,e,p.value),damping:a,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,v(e),_(e)),void 0!==w&&e>w?x.next(e-w):(!t&&v(e),p)}}}var ne=r(7745);const ae=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ne.Gt.update(t,!0),stop:()=>(0,ne.WG)(t),now:()=>ne.uv.isProcessing?ne.uv.timestamp:performance.now()}},ie=2e4;function oe(e){let t=0,r=e.next(t);for(;!r.done&&t<ie;)t+=50,r=e.next(t);return t>=ie?1/0:t}const se={decay:re,inertia:re,tween:z,keyframes:z,spring:te};function le({autoplay:e=!0,delay:t=0,driver:r=ae,keyframes:n,type:a="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,f,g=1,h=!1;const y=()=>{f=new Promise((e=>{m=e}))};let b;y();const v=se[a]||z;let x;v!==z&&"number"!=typeof n[0]&&(x=M([0,100],n,{clamp:!1}),n=[0,100]);const _=v({...p,keyframes:n});let E;"mirror"===s&&(E=v({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let k="idle",S=null,C=null,R=null;null===_.calculatedDuration&&i&&(_.calculatedDuration=oe(_));const{calculatedDuration:A}=_;let P=1/0,T=1/0;null!==A&&(P=A+o,T=P*(i+1)-o);let N=0;const I=e=>{if(null===C)return;g>0&&(C=Math.min(C,e)),g<0&&(C=Math.min(e-T/g,C)),N=null!==S?S:Math.round(e-C)*g;const r=N-t*(g>=0?1:-1),a=g>=0?r<0:r>T;N=Math.max(r,0),"finished"===k&&null===S&&(N=T);let l=N,c=_;if(i){const e=Math.min(N,T)/P;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,i+1),Boolean(t%2)&&("reverse"===s?(r=1-r,o&&(r-=o/P)):"mirror"===s&&(c=E)),l=(0,w.q)(0,1,r)*P}const u=a?{done:!1,value:n[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;a||null===A||(p=g>=0?N>=T:N<=0);const m=null===S&&("finished"===k||"running"===k&&p);return d&&d(u.value),m&&B(),u},O=()=>{b&&b.stop(),b=void 0},L=()=>{k="idle",O(),m(),y(),C=R=null},B=()=>{k="finished",u&&u(),O(),m()},j=()=>{if(h)return;b||(b=r(I));const e=b.now();l&&l(),null!==S?C=e-S:C&&"finished"!==k||(C=e),"finished"===k&&y(),R=C,S=null,k="running",b.start()};e&&j();const D={then:(e,t)=>f.then(e,t),get time(){return(0,V.X)(N)},set time(e){e=(0,V.f)(e),N=e,null===S&&b&&0!==g?C=b.now()-e/g:S=e},get duration(){const e=null===_.calculatedDuration?oe(_):_.calculatedDuration;return(0,V.X)(e)},get speed(){return g},set speed(e){e!==g&&b&&(g=e,D.time=(0,V.X)(N))},get state(){return k},play:j,pause:()=>{k="paused",S=N},stop:()=>{h=!0,"idle"!==k&&(k="idle",c&&c(),L())},cancel:()=>{null!==R&&I(R),L()},complete:()=>{k="finished"},sample:e=>(C=0,I(e))};return D}},9120:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>i});var n=r(1594),a=r(6719);function i(){const e=(0,n.useContext)(a.t);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,o=(0,n.useId)();return(0,n.useEffect)((()=>i(o)),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}},9473:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(0,r(1594).createContext)({})},3065:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});const n=(0,r(1594).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},6719:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});const n=(0,r(1594).createContext)(null)},4868:(e,t,r)=>{"use strict";r.d(t,{po:()=>i,tn:()=>s,yT:()=>o});var n=r(3041),a=r(2946);const i=e=>1-Math.sin(Math.acos(e)),o=(0,a.G)(i),s=(0,n.V)(i)},3041:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});const n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},2946:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=e=>t=>1-e(1-t)},7745:(e,t,r)=>{"use strict";r.d(t,{WG:()=>s,Gt:()=>o,uv:()=>l,Ci:()=>c});var n=r(3659);class a{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const i=["prepare","read","update","preRender","render","postRender"],{schedule:o,cancel:s,state:l,steps:c}=function(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=i.reduce(((e,t)=>(e[t]=function(e){let t=new a,r=new a,n=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(e,a=!1,o=!1)=>{const l=o&&i,c=l?t:r;return a&&s.add(e),c.add(e)&&l&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:a=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;r<n;r++){const n=t.order[r];n(a),s.has(n)&&(l.schedule(n),e())}i=!1,o&&(o=!1,l.process(a))}}};return l}((()=>r=!0)),e)),{}),l=e=>s[e].process(o),c=()=>{const t=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(t-o.timestamp,40),1),o.timestamp=t,o.isProcessing=!0,i.forEach(l),o.isProcessing=!1,r&&(n=!1,e(c))};return{schedule:i.reduce(((t,a)=>{const i=s[a];return t[a]=(t,a=!1,s=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(c)),i.schedule(t,a,s)),t}),{}),cancel:e=>i.forEach((t=>s[t].cancel(e))),state:o,steps:s}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l)},3630:(e,t,r)=>{"use strict";r.d(t,{P:()=>ga});var n=r(1594),a=r(3065);const i=(0,n.createContext)({});var o=r(6719),s=r(5128);const l=(0,n.createContext)({strict:!1}),c=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u="data-"+c("framerAppearId");function d(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function p(e){return"string"==typeof e||Array.isArray(e)}function m(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g=["initial",...f];function h(e){return m(e.animate)||g.some((t=>p(e[t])))}function y(e){return Boolean(h(e)||e.variants)}function b(e){return Array.isArray(e)?e.join(" "):e}const v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},w={};for(const e in v)w[e]={isEnabled:t=>v[e].some((e=>!!t[e]))};var x=r(8288),_=r(9473);const E=(0,n.createContext)({}),k=Symbol.for("motionComponentSymbol");function S({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:c,Component:m}){e&&function(e){for(const t in e)w[t]={...w[t],...e[t]}}(e);const f=(0,n.forwardRef)((function(f,g){let y;const v={...(0,n.useContext)(a.Q),...f,layoutId:C(f)},{isStatic:w}=v,_=function(e){const{initial:t,animate:r}=function(e,t){if(h(e)){const{initial:t,animate:r}=e;return{initial:!1===t||p(t)?t:void 0,animate:p(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(i));return(0,n.useMemo)((()=>({initial:t,animate:r})),[b(t),b(r)])}(f),k=c(f,w);if(!w&&x.B){_.visualElement=function(e,t,r,c){const{visualElement:d}=(0,n.useContext)(i),p=(0,n.useContext)(l),m=(0,n.useContext)(o.t),f=(0,n.useContext)(a.Q).reducedMotion,g=(0,n.useRef)();c=c||p.renderer,!g.current&&c&&(g.current=c(e,{visualState:t,parent:d,props:r,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:f}));const h=g.current;(0,n.useInsertionEffect)((()=>{h&&h.update(r,m)}));const y=(0,n.useRef)(Boolean(r[u]&&!window.HandoffComplete));return(0,s.E)((()=>{h&&(h.render(),y.current&&h.animationState&&h.animationState.animateChanges())})),(0,n.useEffect)((()=>{h&&(h.updateFeatures(),!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))})),h}(m,k,v,t);const r=(0,n.useContext)(E),c=(0,n.useContext)(l).strict;_.visualElement&&(y=_.visualElement.loadFeatures(v,c,e,r))}return n.createElement(i.Provider,{value:_},y&&_.visualElement?n.createElement(y,{visualElement:_.visualElement,...v}):null,r(m,f,function(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):d(r)&&(r.current=n))}),[t])}(k,_.visualElement,g),k,w,_.visualElement))}));return f[k]=m,f}function C({layoutId:e}){const t=(0,n.useContext)(_.L).id;return t&&void 0!==e?t+"-"+e:e}function R(e){function t(t,r={}){return S(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const A=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function P(e){return"string"==typeof e&&!e.includes("-")&&!!(A.indexOf(e)>-1||/[A-Z]/.test(e))}const T={},N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set(N);function O(e,{layout:t,layoutId:r}){return I.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!T[e]||"opacity"===e)}var L=r(9896);const B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j=N.length;var D=r(568);const F=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var M=r(563),z=r(5269);const V={...M.ai,transform:Math.round},W={borderWidth:z.px,borderTopWidth:z.px,borderRightWidth:z.px,borderBottomWidth:z.px,borderLeftWidth:z.px,borderRadius:z.px,radius:z.px,borderTopLeftRadius:z.px,borderTopRightRadius:z.px,borderBottomRightRadius:z.px,borderBottomLeftRadius:z.px,width:z.px,maxWidth:z.px,height:z.px,maxHeight:z.px,size:z.px,top:z.px,right:z.px,bottom:z.px,left:z.px,padding:z.px,paddingTop:z.px,paddingRight:z.px,paddingBottom:z.px,paddingLeft:z.px,margin:z.px,marginTop:z.px,marginRight:z.px,marginBottom:z.px,marginLeft:z.px,rotate:z.uj,rotateX:z.uj,rotateY:z.uj,rotateZ:z.uj,scale:M.hs,scaleX:M.hs,scaleY:M.hs,scaleZ:M.hs,skew:z.uj,skewX:z.uj,skewY:z.uj,distance:z.px,translateX:z.px,translateY:z.px,translateZ:z.px,x:z.px,y:z.px,z:z.px,perspective:z.px,transformPerspective:z.px,opacity:M.X4,originX:z.gQ,originY:z.gQ,originZ:z.px,zIndex:V,fillOpacity:M.X4,strokeOpacity:M.X4,numOctaves:V};function U(e,t,r,n){const{style:a,vars:i,transform:o,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const r=t[e];if((0,D.j4)(e)){i[e]=r;continue}const n=W[e],d=F(r,n);if(I.has(e)){if(l=!0,o[e]=d,!u)continue;r!==(n.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):a[e]=d}if(t.transform||(l||n?a.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,a){let i="";for(let t=0;t<j;t++){const r=N[t];void 0!==e[r]&&(i+=`${B[r]||r}(${e[r]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),a?i=a(e,n?"":i):r&&n&&(i="none"),i}(e.transform,r,u,n):a.transform&&(a.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;a.transformOrigin=`${e} ${t} ${r}`}}const H=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $(e,t,r){for(const n in t)(0,L.S)(t[n])||O(n,r)||(e[n]=t[n])}function Z(e,t,r){const a={},i=function(e,t,r){const a={};return $(a,e.style||{},e),Object.assign(a,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=H();return U(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),e.transformValues?e.transformValues(a):a}(e,t,r);return e.drag&&!1!==e.dragListener&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}const G=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function q(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G.has(e)}let Y=e=>!q(e);try{(K=require("@emotion/is-prop-valid").default)&&(Y=e=>e.startsWith("on")?!q(e):K(e))}catch(e){}var K;function X(e,t,r){return"string"==typeof e?e:z.px.transform(t+r*e)}const J={offset:"stroke-dashoffset",array:"stroke-dasharray"},Q={offset:"strokeDashoffset",array:"strokeDasharray"};function ee(e,{attrX:t,attrY:r,attrScale:n,originX:a,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(U(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:f,dimensions:g}=e;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==a||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,r){return`${X(t,e.x,e.width)} ${X(r,e.y,e.height)}`}(g,void 0!==a?a:.5,void 0!==i?i:.5)),void 0!==t&&(m.x=t),void 0!==r&&(m.y=r),void 0!==n&&(m.scale=n),void 0!==o&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;const i=a?J:Q;e[i.offset]=z.px.transform(-n);const o=z.px.transform(t),s=z.px.transform(r);e[i.array]=`${o} ${s}`}(m,o,s,l,!1)}const te=()=>({...H(),attrs:{}}),re=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ne(e,t,r,a){const i=(0,n.useMemo)((()=>{const r=te();return ee(r,t,{enableHardwareAcceleration:!1},re(a),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};$(t,e.style,e),i.style={...t,...i.style}}return i}function ae(e=!1){return(t,r,a,{latestValues:i},o)=>{const s=(P(t)?ne:Z)(r,i,o,t),l=function(e,t,r){const n={};for(const a in e)"values"===a&&"object"==typeof e.values||(Y(a)||!0===r&&q(a)||!t&&!q(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(r,"string"==typeof t,e),c={...l,...s,ref:a},{children:u}=r,d=(0,n.useMemo)((()=>(0,L.S)(u)?u.get():u),[u]);return(0,n.createElement)(t,{...c,children:d})}}function ie(e,{style:t,vars:r},n,a){Object.assign(e.style,t,a&&a.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}const oe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function se(e,t,r,n){ie(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(oe.has(r)?r:c(r),t.attrs[r])}function le(e,t){const{style:r}=e,n={};for(const a in r)((0,L.S)(r[a])||t.style&&(0,L.S)(t.style[a])||O(a,e))&&(n[a]=r[a]);return n}function ce(e,t){const r=le(e,t);for(const n in e)((0,L.S)(e[n])||(0,L.S)(t[n]))&&(r[-1!==N.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function ue(e,t,r,n={},a={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,a)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,a)),t}var de=r(8601);const pe=e=>Array.isArray(e),me=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),fe=e=>pe(e)?e[e.length-1]||0:e;function ge(e){const t=(0,L.S)(e)?e.get():e;return me(t)?t.toValue():t}const he=e=>(t,r)=>{const a=(0,n.useContext)(i),s=(0,n.useContext)(o.t),l=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,a,i){const o={latestValues:ye(n,a,i,e),renderState:t()};return r&&(o.mount=e=>r(n,e,o)),o}(e,t,a,s);return r?l():(0,de.M)(l)};function ye(e,t,r,n){const a={},i=n(e,{});for(const e in i)a[e]=ge(i[e]);let{initial:o,animate:s}=e;const l=h(e),c=y(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===o;const d=u?s:o;return d&&"boolean"!=typeof d&&!m(d)&&(Array.isArray(d)?d:[d]).forEach((t=>{const r=ue(e,t);if(!r)return;const{transitionEnd:n,transition:i,...o}=r;for(const e in o){let t=o[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(a[e]=t)}for(const e in n)a[e]=n[e]})),a}var be=r(7745);const ve={useVisualState:he({scrapeMotionValuesFromProps:ce,createRenderState:te,onMount:(e,t,{renderState:r,latestValues:n})=>{be.Gt.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),be.Gt.render((()=>{ee(r,n,{enableHardwareAcceleration:!1},re(t.tagName),e.transformTemplate),se(t,r)}))}})},we={useVisualState:he({scrapeMotionValuesFromProps:le,createRenderState:H})};function xe(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const _e=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Ee(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ke=e=>t=>_e(t)&&e(t,Ee(t));function Se(e,t,r,n){return xe(e,t,ke(r),n)}var Ce=r(1339);function Re(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const Ae=Re("dragHorizontal"),Pe=Re("dragVertical");function Te(e){let t=!1;if("y"===e)t=Pe();else if("x"===e)t=Ae();else{const e=Ae(),r=Pe();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function Ne(){const e=Te(!0);return!e||(e(),!1)}class Ie{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Oe(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return Se(e.current,r,((r,a)=>{if("touch"===r.pointerType||Ne())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&be.Gt.update((()=>i[n](r,a)))}),{passive:!e.getProps()[n]})}const Le=(e,t)=>!!t&&(e===t||Le(e,t.parentElement));var Be=r(3659);function je(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ee(r))}const De=new WeakMap,Fe=new WeakMap,Me=e=>{const t=De.get(e.target);t&&t(e)},ze=e=>{e.forEach(Me)};const Ve={some:0,all:1},We={inView:{Feature:class extends Ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:a}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:Ve[n]};return function(e,t,r){const n=function({root:e,...t}){const r=e||document;Fe.has(r)||Fe.set(r,{});const n=Fe.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(ze,{root:e,...t})),n[a]}(t);return De.set(e,r),n.observe(e),()=>{De.delete(e),n.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,a&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ie{constructor(){super(...arguments),this.removeStartListeners=Be.l,this.removeEndListeners=Be.l,this.removeAccessibleListeners=Be.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=Se(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:a}=this.node.getProps();be.Gt.update((()=>{a||Le(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),a=Se(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,Ce.F)(n,a),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=xe(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=xe(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&je("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&be.Gt.update((()=>r(e,t)))}))})),je("down",((e,t)=>{this.startPress(e,t)})))})),t=xe(this.node.current,"blur",(()=>{this.isPressing&&je("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=(0,Ce.F)(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&be.Gt.update((()=>r(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ne()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&be.Gt.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=Se(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xe(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,Ce.F)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ie{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,Ce.F)(xe(this.node.current,"focus",(()=>this.onFocus())),xe(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ie{mount(){this.unmount=(0,Ce.F)(Oe(this.node,!0),Oe(this.node,!1))}unmount(){}}}};function Ue(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function He(e,t,r){const n=e.getProps();return ue(n,t,void 0!==r?r:n.custom,function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}var $e=r(5238),Ze=r(4833);const Ge=e=>Array.isArray(e)&&"number"==typeof e[0];function qe(e){return Boolean(!e||"string"==typeof e&&Ke[e]||Ge(e)||Array.isArray(e)&&e.every(qe))}const Ye=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ke={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ye([0,.65,.55,1]),circOut:Ye([.55,0,1,.45]),backIn:Ye([.31,.01,.66,-.59]),backOut:Ye([.33,1.53,.69,.99])};function Xe(e){if(e)return Ge(e)?Ye(e):Array.isArray(e)?e.map(Xe):Ke[e]}var Je=r(6542);const Qe=function(e){let t;return()=>(void 0===t&&(t=Object.hasOwnProperty.call(Element.prototype,"animate")),t)}(),et=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);const tt={type:"spring",stiffness:500,damping:25,restSpeed:10},rt={type:"keyframes",duration:.8},nt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},at=(e,{keyframes:t})=>t.length>2?rt:I.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tt:nt;var it=r(1614);const ot=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!it.f.test(t)&&"0"!==t||t.startsWith("url(")));var st=r(7296);const lt=new Set(["brightness","contrast","saturate","opacity"]);function ct(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(st.SY)||[];if(!n)return e;const a=r.replace(n,"");let i=lt.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+a+")"}const ut=/([a-z-]*)\(.*?\)/g,dt={...it.f,getAnimatableNone:e=>{const t=e.match(ut);return t?t.map(ct).join(" "):e}};var pt=r(7739);const mt={...W,color:pt.y,backgroundColor:pt.y,outlineColor:pt.y,fill:pt.y,stroke:pt.y,borderColor:pt.y,borderTopColor:pt.y,borderRightColor:pt.y,borderBottomColor:pt.y,borderLeftColor:pt.y,filter:dt,WebkitFilter:dt},ft=e=>mt[e];function gt(e,t){let r=ft(e);return r!==dt&&(r=it.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const ht=e=>/^0[^.\s]+$/.test(e);function yt(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ht(e):void 0}function bt(e,t){return e[t]||e.default||e}const vt=(e,t,r,n={})=>a=>{const i=bt(n,e)||{},o=i.delay||n.delay||0;let{elapsed:s=0}=n;s-=(0,Ze.f)(o);const l=function(e,t,r,n){const a=ot(t,r);let i;i=Array.isArray(r)?[...r]:[null,r];const o=void 0!==n.from?n.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?o:i[e-1]),yt(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(a&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=gt(t,s);return i}(t,e,r,i),c=l[0],u=l[l.length-1],d=ot(e,c),p=ot(e,u);(0,$e.$)(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{a(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(m={...m,...at(e,m)}),m.duration&&(m.duration=(0,Ze.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,Ze.f)(m.repeatDelay)),!d||!p||!1===i.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const a=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Be.l,pause:Be.l,stop:Be.l,then:e=>(e(),Promise.resolve()),cancel:Be.l,complete:Be.l});return t?(0,Je.L)({keyframes:[0,1],duration:0,delay:t,onComplete:a}):a()}(m);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=function(e,t,{onUpdate:r,onComplete:n,...a}){if(!Qe()||!et.has(t)||a.repeatDelay||"mirror"===a.repeatType||0===a.damping||"inertia"===a.type)return!1;let i,o,s=!1,l=!1;const c=()=>{o=new Promise((e=>{i=e}))};c();let{keyframes:u,duration:d=300,ease:p,times:m}=a;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!qe(t.ease))(t,a)){const e=(0,Je.L)({...a,repeat:0,delay:0});let t={done:!1,value:u[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;m=void 0,u=r,d=n-10,p="linear"}const f=function(e,t,r,{delay:n=0,duration:a,repeat:i=0,repeatType:o="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Xe(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"})}(e.owner.current,t,u,{...a,duration:d,ease:p,times:m}),g=()=>{l=!1,f.cancel()},h=()=>{l=!0,be.Gt.update(g),i(),c()};return f.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(u,a)),n&&n(),h())},{then:(e,t)=>o.then(e,t),attachTimeline:e=>(f.timeline=e,f.onfinish=null,Be.l),get time(){return(0,Ze.X)(f.currentTime||0)},set time(e){f.currentTime=(0,Ze.f)(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return(0,Ze.X)(d)},play:()=>{s||(f.play(),(0,be.WG)(g))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const r=(0,Je.L)({...a,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}h()},complete:()=>{l||f.finish()},cancel:h}}(t,e,m);if(r)return r}return(0,Je.L)(m)};function wt(e){return Boolean((0,L.S)(e)&&e.add)}const xt=e=>/^\-?\d*\.?\d+$/.test(e);var _t=r(4785);const Et=e=>t=>t.test(e),kt=[M.ai,z.px,z.KN,z.uj,z.vw,z.vh,{test:e=>"auto"===e,parse:e=>e}],St=e=>kt.find(Et(e)),Ct=[...kt,pt.y,it.f];function Rt(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,_t.OQ)(r))}function At(e,t){if(t)return(t[e]||t.default||t).from}function Pt({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function Tt(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}function Nt(e,t,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(i=n);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const t in s){const n=e.getValue(t),a=s[t];if(!n||void 0===a||d&&Pt(d,t))continue;const o={delay:r,elapsed:0,...bt(i||{},t)};if(window.HandoffAppearAnimations){const r=e.getProps()[u];if(r){const e=window.HandoffAppearAnimations(r,t,n,be.Gt);null!==e&&(o.elapsed=e,o.isHandoff=!0)}}let p=!o.isHandoff&&!Tt(n,a);if("spring"===o.type&&(n.getVelocity()||o.velocity)&&(p=!1),n.animation&&(p=!1),p)continue;n.start(vt(t,n,a,e.shouldReduceMotion&&I.has(t)?{type:!1}:o));const m=n.animation;wt(l)&&(l.add(t),m.then((()=>l.remove(t)))),c.push(m)}return o&&Promise.all(c).then((()=>{o&&function(e,t){const r=He(e,t);let{transitionEnd:n={},transition:a={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const t in i)Rt(e,t,fe(i[t]))}(e,o)})),c}function It(e,t,r={}){const n=He(e,t,r.custom);let{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const i=n?()=>Promise.all(Nt(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,r=0,n=0,a=1,i){const o=[],s=(e.variantChildren.size-1)*n,l=1===a?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(Ot).forEach(((e,n)=>{e.notify("AnimationStart",t),o.push(It(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(o)}(e,t,i+n,o,s,r)}:()=>Promise.resolve(),{when:s}=a;if(s){const[e,t]="beforeChildren"===s?[i,o]:[o,i];return e().then((()=>t()))}return Promise.all([i(),o(r.delay)])}function Ot(e,t){return e.sortNodePosition(t)}const Lt=[...f].reverse(),Bt=f.length;function jt(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const a=t.map((t=>It(e,t,r)));n=Promise.all(a)}else if("string"==typeof t)n=It(e,t,r);else{const a="function"==typeof t?He(e,t,r.custom):t;n=Promise.all(Nt(e,a,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}(e);const r={animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()};let n=!0;const a=(t,r)=>{const n=He(e,r);if(n){const{transition:e,transitionEnd:r,...a}=n;t={...t,...a,...r}}return t};function i(i,o){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<Bt;t++){const y=Lt[t],b=r[y],v=void 0!==s[y]?s[y]:l[y],w=p(v),x=y===o?b.isActive:null;!1===x&&(f=t);let _=v===l[y]&&v!==s[y]&&w;if(_&&n&&e.manuallyAnimateOnMount&&(_=!1),b.protectedKeys={...d},!b.isActive&&null===x||!v&&!b.prevProp||m(v)||"boolean"==typeof v)continue;let E=(g=b.prevProp,("string"==typeof(h=v)?h!==g:!!Array.isArray(h)&&!Ue(h,g))||y===o&&b.isActive&&!_&&w||t>f&&w),k=!1;const S=Array.isArray(v)?v:[v];let C=S.reduce(a,{});!1===x&&(C={});const{prevResolvedValues:R={}}=b,A={...R,...C},P=e=>{E=!0,u.has(e)&&(k=!0,u.delete(e)),b.needsAnimating[e]=!0};for(const e in A){const t=C[e],r=R[e];if(d.hasOwnProperty(e))continue;let n=!1;n=pe(t)&&pe(r)?!Ue(t,r):t!==r,n?void 0!==t?P(e):u.add(e):void 0!==t&&u.has(e)?P(e):b.protectedKeys[e]=!0}b.prevProp=v,b.prevResolvedValues=C,b.isActive&&(d={...d,...C}),n&&e.blockInitialAnimation&&(E=!1),!E||_&&!k||c.push(...S.map((e=>({animation:e,options:{type:y,...i}}))))}var g,h;if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),c.push({animation:t})}let y=Boolean(c.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(y=!1),n=!1,y?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,n,a){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=i(a,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function Dt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Ft=0;const Mt={animation:{Feature:class extends Ie{constructor(e){super(e),e.animationState||(e.animationState=jt(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),m(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Ie{constructor(){super(...arguments),this.id=Ft++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const a=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&a.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},zt=(e,t)=>Math.abs(e-t);class Vt{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ht(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=zt(e.x,t.x),n=zt(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:a}=be.uv;this.history.push({...n,timestamp:a});const{onStart:i,onMove:o}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Wt(t,this.transformPagePoint),be.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:a}=this.handlers;if(this.dragSnapToOrigin&&a&&a(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Ht("pointercancel"===e.type?this.lastMoveEventInfo:Wt(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!_e(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const i=Wt(Ee(e),this.transformPagePoint),{point:o}=i,{timestamp:s}=be.uv;this.history=[{...o,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Ht(i,this.history)),this.removeListeners=(0,Ce.F)(Se(this.contextWindow,"pointermove",this.handlePointerMove),Se(this.contextWindow,"pointerup",this.handlePointerUp),Se(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,be.WG)(this.updatePoint)}}function Wt(e,t){return t?{point:t(e.point)}:e}function Ut(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ht({point:e},t){return{point:e,delta:Ut(e,Zt(t)),offset:Ut(e,$t(t)),velocity:Gt(t,.1)}}function $t(e){return e[0]}function Zt(e){return e[e.length-1]}function Gt(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const a=Zt(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>(0,Ze.f)(t)));)r--;if(!n)return{x:0,y:0};const i=(0,Ze.X)(a.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const o={x:(a.x-n.x)/i,y:(a.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var qt=r(7170),Yt=r(2839);function Kt(e){return e.max-e.min}function Xt(e,t=0,r=.01){return Math.abs(e-t)<=r}function Jt(e,t,r,n=.5){e.origin=n,e.originPoint=(0,Yt.j)(t.min,t.max,e.origin),e.scale=Kt(r)/Kt(t),(Xt(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,Yt.j)(r.min,r.max,e.origin)-e.originPoint,(Xt(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qt(e,t,r,n){Jt(e.x,t.x,r.x,n?n.originX:void 0),Jt(e.y,t.y,r.y,n?n.originY:void 0)}function er(e,t,r){e.min=r.min+t.min,e.max=e.min+Kt(t)}function tr(e,t,r){e.min=t.min-r.min,e.max=e.min+Kt(t)}function rr(e,t,r){tr(e.x,t.x,r.x),tr(e.y,t.y,r.y)}var nr=r(2464);function ar(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ir(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const or=.35;function sr(e,t,r){return{min:lr(e,t),max:lr(e,r)}}function lr(e,t){return"number"==typeof e?e:e[t]||0}const cr=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),ur=()=>({x:{min:0,max:0},y:{min:0,max:0}});function dr(e){return[e("x"),e("y")]}function pr({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function mr(e){return void 0===e||1===e}function fr({scale:e,scaleX:t,scaleY:r}){return!mr(e)||!mr(t)||!mr(r)}function gr(e){return fr(e)||hr(e)||e.z||e.rotate||e.rotateX||e.rotateY}function hr(e){return yr(e.x)||yr(e.y)}function yr(e){return e&&"0%"!==e}function br(e,t,r){return r+t*(e-r)}function vr(e,t,r,n,a){return void 0!==a&&(e=br(e,a,n)),br(e,r,n)+t}function wr(e,t=0,r=1,n,a){e.min=vr(e.min,t,r,n,a),e.max=vr(e.max,t,r,n,a)}function xr(e,{x:t,y:r}){wr(e.x,t.translate,t.scale,t.originPoint),wr(e.y,r.translate,r.scale,r.originPoint)}function _r(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Er(e,t){e.min=e.min+t,e.max=e.max+t}function kr(e,t,[r,n,a]){const i=void 0!==t[a]?t[a]:.5,o=(0,Yt.j)(e.min,e.max,i);wr(e,t[r],t[n],o,t.scale)}const Sr=["x","scaleX","originX"],Cr=["y","scaleY","originY"];function Rr(e,t){kr(e.x,t,Sr),kr(e.y,t,Cr)}function Ar(e,t){return pr(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Pr=({current:e})=>e?e.ownerDocument.defaultView:null,Tr=new WeakMap;class Nr{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ur(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new Vt(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Ee(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:a}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Te(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dr((e=>{let t=this.getAxisMotionValue(e).get()||0;if(z.KN.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];n&&(t=Kt(n)*(parseFloat(t)/100))}}this.originPoint[e]=t})),a&&be.Gt.update((()=>a(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:a,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:o}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),void(null!==this.currentDirection&&a&&a(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>dr((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Pr(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:a}=this.getProps();a&&be.Gt.update((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!Ir(e,n,this.currentDirection))return;const a=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,Yt.j)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,Yt.j)(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),a.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,a=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:a}){return{x:ar(e.x,r,a),y:ar(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=or){return!1===e?e=0:!0===e&&(e=or),{x:sr(e,"left","right"),y:sr(e,"top","bottom")}}(r),a!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&dr((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!d(e))return!1;const r=e.current;(0,$e.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const a=function(e,t,r){const n=Ar(e,r),{scroll:a}=t;return a&&(Er(n.x,a.offset.x),Er(n.y,a.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ir(e.x,t.x),y:ir(e.y,t.y)}}(n.layout.layoutBox,a);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=pr(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},l=dr((o=>{if(!Ir(o,t,this.currentDirection))return;let l=s&&s[o]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[o]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(o,d)}));return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(vt(e,r,0,t))}stopAnimation(){dr((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){dr((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){dr((t=>{const{drag:r}=this.getProps();if(!Ir(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,a=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];a.set(e[t]-(0,Yt.j)(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!d(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};dr((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=Kt(e),a=Kt(t);return a>n?r=(0,qt.q)(t.min,t.max-n,e.min):n>a&&(r=(0,qt.q)(e.min,e.max-a,t.min)),(0,nr.q)(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),dr((t=>{if(!Ir(t,e,null))return;const r=this.getAxisMotionValue(t),{min:a,max:i}=this.constraints[t];r.set((0,Yt.j)(a,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;Tr.set(this.visualElement,this);const e=Se(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();d(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const a=xe(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dr((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{a(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:i=or,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:a,dragElastic:i,dragMomentum:o}}}function Ir(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const Or=e=>(t,r)=>{e&&be.Gt.update((()=>e(t,r)))};var Lr=r(9120);const Br={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function jr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Dr={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!z.px.test(e))return e;e=parseFloat(e)}return`${jr(e,t.target.x)}% ${jr(e,t.target.y)}%`}},Fr={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,a=it.f.parse(e);if(a.length>5)return n;const i=it.f.createTransformer(e),o="number"!=typeof a[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;a[0+o]/=s,a[1+o]/=l;const c=(0,Yt.j)(s,l,.5);return"number"==typeof a[2+o]&&(a[2+o]/=c),"number"==typeof a[3+o]&&(a[3+o]/=c),i(a)}};class Mr extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:a}=e;var i;i=Vr,Object.assign(T,i),a&&(t.group&&t.group.add(a),r&&r.register&&n&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",(()=>{this.safeToRemove()})),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Br.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:a}=this.props,i=r.projection;return i?(i.isPresent=a,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?i.promote():i.relegate()||be.Gt.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zr(e){const[t,r]=(0,Lr.xQ)(),a=(0,n.useContext)(_.L);return n.createElement(Mr,{...e,layoutGroup:a,switchLayoutGroup:(0,n.useContext)(E),isPresent:t,safeToRemove:r})}const Vr={borderRadius:{...Dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dr,borderTopRightRadius:Dr,borderBottomLeftRadius:Dr,borderBottomRightRadius:Dr,boxShadow:Fr};var Wr=r(2606),Ur=r(4868);const Hr=["TopLeft","TopRight","BottomLeft","BottomRight"],$r=Hr.length,Zr=e=>"string"==typeof e?parseFloat(e):e,Gr=e=>"number"==typeof e||z.px.test(e);function qr(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Yr=Xr(0,.5,Ur.yT),Kr=Xr(.5,.95,Be.l);function Xr(e,t,r){return n=>n<e?0:n>t?1:r((0,qt.q)(e,t,n))}function Jr(e,t){e.min=t.min,e.max=t.max}function Qr(e,t){Jr(e.x,t.x),Jr(e.y,t.y)}function en(e,t,r,n,a){return e=br(e-=t,1/r,n),void 0!==a&&(e=br(e,1/a,n)),e}function tn(e,t,[r,n,a],i,o){!function(e,t=0,r=1,n=.5,a,i=e,o=e){if(z.KN.test(t)&&(t=parseFloat(t),t=(0,Yt.j)(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=(0,Yt.j)(i.min,i.max,n);e===i&&(s-=t),e.min=en(e.min,t,r,s,a),e.max=en(e.max,t,r,s,a)}(e,t[r],t[n],t[a],t.scale,i,o)}const rn=["x","scaleX","originX"],nn=["y","scaleY","originY"];function an(e,t,r,n){tn(e.x,t,rn,r?r.x:void 0,n?n.x:void 0),tn(e.y,t,nn,r?r.y:void 0,n?n.y:void 0)}function on(e){return 0===e.translate&&1===e.scale}function sn(e){return on(e.x)&&on(e.y)}function ln(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function cn(e){return Kt(e.x)/Kt(e.y)}var un=r(2358);class dn{constructor(){this.members=[]}add(e){(0,un.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,un.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pn(e,t,r){let n="";const a=e.x.translate/t.x,i=e.y.translate/t.y;if((a||i)&&(n=`translate3d(${a}px, ${i}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:a}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),a&&(n+=`rotateY(${a}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return 1===o&&1===s||(n+=`scale(${o}, ${s})`),n||"none"}const mn=(e,t)=>e.depth-t.depth;class fn{constructor(){this.children=[],this.isDirty=!1}add(e){(0,un.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,un.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(mn),this.isDirty=!1,this.children.forEach(e)}}const gn=["","X","Y","Z"],hn={visibility:"hidden"};let yn=0;const bn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vn({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=yn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,bn.totalNodes=bn.resolvedTargetDeltas=bn.recalculatedProjection=0,this.nodes.forEach(_n),this.nodes.forEach(Pn),this.nodes.forEach(Tn),this.nodes.forEach(En),e=bn,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new fn)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Wr.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var n;this.isSVG=(n=t)instanceof SVGElement&&"svg"!==n.tagName,this.instance=t;const{layoutId:a,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||a)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=performance.now(),n=({timestamp:t})=>{const a=t-r;a>=250&&((0,be.WG)(n),e(a-250))};return be.Gt.read(n,!0),()=>(0,be.WG)(n)}(n),Br.hasAnimatedSinceResize&&(Br.hasAnimatedSinceResize=!1,this.nodes.forEach(An))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&o&&(a||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||o.getDefaultTransition()||jn,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!ln(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...bt(a,"layout"),onPlay:i,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||An(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,be.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Nn),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Sn);this.isUpdating||this.nodes.forEach(Cn),this.isUpdating=!1,this.nodes.forEach(Rn),this.nodes.forEach(wn),this.nodes.forEach(xn),this.clearAllSnapshots();const e=performance.now();be.uv.delta=(0,nr.q)(0,1e3/60,e-be.uv.timestamp),be.uv.timestamp=e,be.uv.isProcessing=!0,be.Ci.update.process(be.uv),be.Ci.preRender.process(be.uv),be.Ci.render.process(be.uv),be.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(kn),this.sharedNodes.forEach(In)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.Gt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ur(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!a)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!sn(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||gr(this.latestValues)||i)&&(a(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),Mn((n=r).x),Mn(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return ur();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(Er(t.x,r.offset.x),Er(t.y,r.offset.y)),t}removeElementScroll(e){const t=ur();Qr(t,e);for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:a,options:i}=n;if(n!==this.root&&a&&i.layoutScroll){if(a.isRoot){Qr(t,e);const{scroll:r}=this.root;r&&(Er(t.x,-r.offset.x),Er(t.y,-r.offset.y))}Er(t.x,a.offset.x),Er(t.y,a.offset.y)}}return t}applyTransform(e,t=!1){const r=ur();Qr(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Rr(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),gr(n.latestValues)&&Rr(r,n.latestValues)}return gr(this.latestValues)&&Rr(r,this.latestValues),r}removeTransform(e){const t=ur();Qr(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!gr(r.latestValues))continue;fr(r.latestValues)&&r.updateSnapshot();const n=ur();Qr(n,r.measurePageBox()),an(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return gr(this.latestValues)&&an(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==be.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:a,layoutId:i}=this.options;if(this.layout&&(a||i)){if(this.resolvedRelativeTargetAt=be.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ur(),this.relativeTargetOrigin=ur(),rr(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,s,l;if(this.target||(this.target=ur(),this.targetWithTransforms=ur()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,l=this.relativeParent.target,er(o.x,s.x,l.x),er(o.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Qr(this.target,this.layout.layoutBox),xr(this.target,this.targetDelta)):Qr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ur(),this.relativeTargetOrigin=ur(),rr(this.relativeTargetOrigin,this.target,e.target),Qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}bn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fr(this.parent.latestValues)&&!hr(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===be.uv.timestamp&&(n=!1),n)return;const{layout:a,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!a&&!i)return;Qr(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){const a=r.length;if(!a)return;let i,o;t.x=t.y=1;for(let s=0;s<a;s++){i=r[s],o=i.projectionDelta;const a=i.instance;a&&a.style&&"contents"===a.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Rr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,xr(e,o)),n&&gr(i.latestValues)&&Rr(e,i.latestValues))}t.x=_r(t.x),t.y=_r(t.y)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=cr(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=cr(),this.projectionDeltaWithTransform=cr());const c=this.projectionTransform;Qt(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=pn(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),bn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},a={...this.latestValues},i=cr();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const o=ur(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Bn));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,p,m,f,g,h;On(i.x,e.x,r),On(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rr(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,g=o,h=r,Ln(m.x,f.x,g.x,h),Ln(m.y,f.y,g.y,h),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=ur()),Qr(d,this.relativeTarget)),s&&(this.animationValues=a,function(e,t,r,n,a,i){a?(e.opacity=(0,Yt.j)(0,void 0!==r.opacity?r.opacity:1,Yr(n)),e.opacityExit=(0,Yt.j)(void 0!==t.opacity?t.opacity:1,0,Kr(n))):i&&(e.opacity=(0,Yt.j)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a<$r;a++){const i=`border${Hr[a]}Radius`;let o=qr(t,i),s=qr(r,i);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||Gr(o)===Gr(s)?(e[i]=Math.max((0,Yt.j)(Zr(o),Zr(s),n),0),(z.KN.test(s)||z.KN.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,Yt.j)(t.rotate||0,r.rotate||0,n))}(a,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,be.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.Gt.update((()=>{Br.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=(0,L.S)(0)?0:(0,_t.OQ)(0);return n.start(vt("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:a}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&zn(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||ur();const t=Kt(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=Kt(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}Qr(t,r),Rr(t,a),Qt(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new dn),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let t=0;t<gn.length;t++){const a="rotate"+gn[t];r[a]&&(n[a]=r[a],e.setStaticValue(a,0))}e.render();for(const t in n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hn;const n={visibility:""},a=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ge(null==e?void 0:e.pointerEvents)||"",n.transform=a?a(this.latestValues,""):"none",n;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ge(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!gr(this.latestValues)&&(t.transform=a?a({},""):"none",this.hasProjected=!1),t}const o=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=pn(this.projectionDeltaWithTransform,this.treeScale,o),a&&(n.transform=a(o,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=o.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=i===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const e in T){if(void 0===o[e])continue;const{correct:t,applyTo:r}=T[e],a="none"===n.transform?o[e]:t(o[e],i);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=a}else n[e]=a}return this.options.layoutId&&(n.pointerEvents=i===this?ge(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Sn),this.root.sharedNodes.clear()}}}function wn(e){e.updateLayout()}function xn(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;"size"===a?dr((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],a=Kt(n);n.min=t[e].min,n.max=n.min+a})):zn(a,r.layoutBox,t)&&dr((n=>{const a=i?r.measuredBox[n]:r.layoutBox[n],o=Kt(t[n]);a.max=a.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)}));const o=cr();Qt(o,t,r.layoutBox);const s=cr();i?Qt(s,e.applyTransform(n,!0),r.measuredBox):Qt(s,t,r.layoutBox);const l=!sn(o);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:a,layout:i}=n;if(a&&i){const o=ur();rr(o,r.layoutBox,a.layoutBox);const s=ur();rr(s,t,i.layoutBox),ln(o,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function _n(e){bn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function En(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kn(e){e.clearSnapshot()}function Sn(e){e.clearMeasurements()}function Cn(e){e.isLayoutDirty=!1}function Rn(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function An(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pn(e){e.resolveTargetDelta()}function Tn(e){e.calcProjection()}function Nn(e){e.resetRotation()}function In(e){e.removeLeadSnapshot()}function On(e,t,r){e.translate=(0,Yt.j)(t.translate,0,r),e.scale=(0,Yt.j)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ln(e,t,r,n){e.min=(0,Yt.j)(t.min,r.min,n),e.max=(0,Yt.j)(t.max,r.max,n)}function Bn(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const jn={duration:.45,ease:[.4,0,.1,1]},Dn=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),Fn=Dn("applewebkit/")&&!Dn("chrome/")?Math.round:Be.l;function Mn(e){e.min=Fn(e.min),e.max=Fn(e.max)}function zn(e,t,r){return"position"===e||"preserve-aspect"===e&&!Xt(cn(t),cn(r),.2)}const Vn=vn({attachResizeListener:(e,t)=>xe(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wn={current:void 0},Un=vn({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wn.current){const e=new Vn({});e.mount(window),e.setOptions({layoutScroll:!0}),Wn.current=e}return Wn.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Hn={pan:{Feature:class extends Ie{constructor(){super(...arguments),this.removePointerDownListener=Be.l}onPointerDown(e){this.session=new Vt(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Or(e),onStart:Or(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&be.Gt.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=Se(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ie{constructor(e){super(e),this.removeGroupControls=Be.l,this.removeListeners=Be.l,this.controls=new Nr(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Be.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Un,MeasureLayout:zr}},$n=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zn(e,t,r=1){(0,$e.V)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,a]=function(e){const t=$n.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return xt(e)?parseFloat(e):e}return(0,D.pG)(a)?Zn(a,t,r+1):a}const Gn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),qn=e=>Gn.has(e),Yn=e=>e===M.ai||e===z.px,Kn=(e,t)=>parseFloat(e.split(", ")[t]),Xn=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/);if(a)return Kn(a[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?Kn(t[1],e):0}},Jn=new Set(["x","y","z"]),Qn=N.filter((e=>!Jn.has(e))),ea={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xn(4,13),y:Xn(5,14)};ea.translateX=ea.x,ea.translateY=ea.y;function ta(e,t,r,n){return(e=>Object.keys(e).some(qn))(t)?((e,t,r={},n={})=>{t={...t},n={...n};const a=Object.keys(t).filter(qn);let i=[],o=!1;const s=[];if(a.forEach((a=>{const l=e.getValue(a);if(!e.hasValue(a))return;let c=r[a],u=St(c);const d=t[a];let p;if(pe(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=St(c);for(let r=t;r<e&&null!==d[r];r++)p?(0,$e.V)(St(d[r])===p,"All keyframes must be of the same type"):(p=St(d[r]),(0,$e.V)(p===u||Yn(u)&&Yn(p),"Keyframes must be of the same dimension as the current value"))}else p=St(d);if(u!==p)if(Yn(u)&&Yn(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[a]=parseFloat(d):Array.isArray(d)&&p===z.px&&(t[a]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[a]=u.transform(d):(o||(i=function(e){const t=[];return Qn.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),o=!0),s.push(a),n[a]=void 0!==n[a]?n[a]:t[a],l.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,a=((e,t,r)=>{const n=t.measureViewportBox(),a=t.current,i=getComputedStyle(a),{display:o}=i,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=ea[e](n,i)})),t.render();const l=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=ea[r](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),x.B&&null!==r&&window.scrollTo({top:r}),{target:a,transitionEnd:n}}return{target:t,transitionEnd:n}})(e,t,r,n):{target:t,transitionEnd:n}}const ra={current:null},na={current:!1},aa=new WeakMap,ia=Object.keys(w),oa=ia.length,sa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],la=g.length;class ca{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>be.Gt.render(this.render,!1,!0);const{latestValues:o,renderState:s}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=h(t),this.isVariantNode=y(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==o[e]&&(0,L.S)(t)&&(t.set(o[e],!1),wt(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,aa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),na.current||function(){if(na.current=!0,x.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ra.current=e.matches;e.addListener(t),t()}else ra.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ra.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){aa.delete(this.current),this.projection&&this.projection.unmount(),(0,be.WG)(this.notifyUpdate),(0,be.WG)(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=I.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&be.Gt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),a()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,a){let i,o;for(let e=0;e<oa;e++){const r=ia[e],{isEnabled:n,Feature:a,ProjectionNode:s,MeasureLayout:l}=w[r];s&&(i=s),n(t)&&(!this.features[r]&&a&&(this.features[r]=new a(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:n,dragConstraints:o,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(n)||o&&d(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:a,layoutScroll:s,layoutRoot:l})}return o}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ur()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<sa.length;t++){const r=sa[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const a in t){const i=t[a],o=r[a];if((0,L.S)(i))e.addValue(a,i),wt(n)&&n.add(a);else if((0,L.S)(o))e.addValue(a,(0,_t.OQ)(i,{owner:e})),wt(n)&&n.remove(a);else if(o!==i)if(e.hasValue(a)){const t=e.getValue(a);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(a);e.addValue(a,(0,_t.OQ)(void 0!==t?t:i,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<la;e++){const r=g[e],n=this.props[r];(p(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,_t.OQ)(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=ue(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const a=this.getBaseTargetFromProps(this.props,e);return void 0===a||(0,L.S)(a)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new Wr.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ua extends ca{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},a){let i=function(e,t,r){const n={};for(const a in e){const e=At(a,t);if(void 0!==e)n[a]=e;else{const e=r.getValue(a);e&&(n[a]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),i&&(i=n(i))),a){!function(e,t,r){var n,a;const i=Object.keys(t).filter((t=>!e.hasValue(t))),o=i.length;var s;if(o)for(let l=0;l<o;l++){const o=i[l],c=t[o];let u=null;Array.isArray(c)&&(u=c[0]),null===u&&(u=null!==(a=null!==(n=r[o])&&void 0!==n?n:e.readValue(o))&&void 0!==a?a:t[o]),null!=u&&("string"==typeof u&&(xt(u)||ht(u))?u=parseFloat(u):(s=u,!Ct.find(Et(s))&&it.f.test(c)&&(u=gt(o,c))),e.addValue(o,(0,_t.OQ)(u,{owner:e})),void 0===r[o]&&(r[o]=u),null!==u&&e.setBaseTarget(o,u))}}(this,r,i);const e=((e,t,r,n)=>{const a=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!(0,D.pG)(t))return;const r=Zn(t,n);r&&e.set(r)}));for(const e in t){const a=t[e];if(!(0,D.pG)(a))continue;const i=Zn(a,n);i&&(t[e]=i,r||(r={}),void 0===r[e]&&(r[e]=a))}return{target:t,transitionEnd:r}}(e,t,n);return ta(e,t=a.target,r,n=a.transitionEnd)})(this,r,i,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class da extends ua{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(I.has(t)){const e=ft(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),a=((0,D.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof a?a.trim():a}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ar(e,t)}build(e,t,r,n){U(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return le(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;(0,L.S)(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){ie(e,t,r,n)}}class pa extends ua{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(I.has(t)){const e=ft(t);return e&&e.default||0}return t=oe.has(t)?t:c(t),e.getAttribute(t)}measureInstanceViewportBox(){return ur()}scrapeMotionValuesFromProps(e,t){return ce(e,t)}build(e,t,r,n){ee(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){se(e,t,0,n)}mount(e){this.isSVGTag=re(e.tagName),super.mount(e)}}const ma=(e,t)=>P(e)?new pa(t,{enableHardwareAcceleration:!1}):new da(t,{enableHardwareAcceleration:!0}),fa={...Mt,...We,...Hn,layout:{ProjectionNode:Un,MeasureLayout:zr}},ga=R(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...P(e)?ve:we,preloadedFeatures:r,useRender:ae(t),createVisualElement:n,Component:e}}(e,t,fa,ma)))},568:(e,t,r)=>{"use strict";r.d(t,{j4:()=>a,pG:()=>i,z2:()=>o});const n=e=>t=>"string"==typeof t&&t.startsWith(e),a=n("--"),i=n("var(--"),o=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},2358:(e,t,r)=>{"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function a(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>a,Kq:()=>n})},2464:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});const n=(e,t,r)=>Math.min(Math.max(r,e),t)},5238:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,V:()=>i});var n=r(3659);let a=n.l,i=n.l},8288:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});const n="undefined"!=typeof document},2839:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});const n=(e,t,r)=>-r*e+r*t+e},3659:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});const n=e=>e},1339:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});const n=(e,t)=>r=>t(e(r)),a=(...e)=>e.reduce(n)},7170:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});const n=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n}},2606:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(2358);class a{constructor(){this.subscriptions=[]}add(e){return(0,n.Kq)(this.subscriptions,e),()=>(0,n.Ai)(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let a=0;a<n;a++){const n=this.subscriptions[a];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},4833:(e,t,r)=>{"use strict";r.d(t,{X:()=>a,f:()=>n});const n=e=>1e3*e,a=e=>e/1e3},8601:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(1594);function a(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5128:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var n=r(1594);const a=r(8288).B?n.useLayoutEffect:n.useEffect},7177:(e,t,r)=>{"use strict";function n(e,t){return t?e*(1e3/t):0}r.d(t,{f:()=>n})},4785:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>l});var n=r(2606),a=r(7177),i=r(7745);const o={current:void 0};class s{constructor(e,t={}){var r;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:r,timestamp:n}=i.uv;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,i.Gt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>i.Gt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.v);const r=this.events[e].add(t);return"change"===e?()=>{r(),i.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,a.f)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(e,t){return new s(e,t)}},5252:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(3735);const a={test:(0,r(8304).$)("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:n.B.transform}},2027:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r(563),a=r(5269),i=r(7296),o=r(8304);const s={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+a.KN.transform((0,i.aj)(t))+", "+a.KN.transform((0,i.aj)(r))+", "+(0,i.aj)(n.X4.transform(o))+")"}},7739:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(7296),a=r(5252),i=r(2027),o=r(3735);const s={test:e=>o.B.test(e)||a.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):a.u.parse(e),transform:e=>(0,n.Kg)(e)?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e)}},3735:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n=r(2464),a=r(563),i=r(7296),o=r(8304);const s={...a.ai,transform:e=>Math.round((e=>(0,n.q)(0,255,e))(e))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(r)+", "+(0,i.aj)(a.X4.transform(n))+")"}},8304:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,q:()=>i});var n=r(7296);const a=(e,t)=>r=>Boolean((0,n.Kg)(r)&&n.Fl.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),i=(e,t,r)=>a=>{if(!(0,n.Kg)(a))return a;const[i,o,s,l]=a.match(n.SY);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},1614:(e,t,r)=>{"use strict";r.d(t,{V:()=>p,f:()=>h});var n=r(568),a=r(3659),i=r(7739),o=r(563),s=r(7296);const l={regex:n.z2,countKey:"Vars",token:"${v}",parse:a.l},c={regex:s.ne,countKey:"Colors",token:"${c}",parse:i.y.parse},u={regex:s.SY,countKey:"Numbers",token:"${n}",parse:o.ai.parse};function d(e,{regex:t,countKey:r,token:n,parse:a}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(a)))}function p(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&d(r,l),d(r,c),d(r,u),r}function m(e){return p(e).values}function f(e){const{values:t,numColors:r,numVars:n,tokenised:a}=p(e),o=t.length;return e=>{let t=a;for(let a=0;a<o;a++)t=a<n?t.replace(l.token,e[a]):a<n+r?t.replace(c.token,i.y.transform(e[a])):t.replace(u.token,(0,s.aj)(e[a]));return t}}const g=e=>"number"==typeof e?0:e,h={test:function(e){var t,r;return isNaN(e)&&(0,s.Kg)(e)&&((null===(t=e.match(s.SY))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(s.ne))||void 0===r?void 0:r.length)||0)>0},parse:m,createTransformer:f,getAnimatableNone:function(e){const t=m(e);return f(e)(t.map(g))}}},563:(e,t,r)=>{"use strict";r.d(t,{X4:()=>i,ai:()=>a,hs:()=>o});var n=r(2464);const a={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...a,transform:e=>(0,n.q)(0,1,e)},o={...a,default:1}},5269:(e,t,r)=>{"use strict";r.d(t,{KN:()=>o,gQ:()=>u,px:()=>s,uj:()=>i,vh:()=>l,vw:()=>c});var n=r(7296);const a=e=>({test:t=>(0,n.Kg)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=a("deg"),o=a("%"),s=a("px"),l=a("vh"),c=a("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},7296:(e,t,r)=>{"use strict";r.d(t,{Fl:()=>o,Kg:()=>s,SY:()=>a,aj:()=>n,ne:()=>i});const n=e=>Math.round(1e5*e)/1e5,a=/(-)?([\d]*\.?[\d])+/g,i=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,o=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s(e){return"string"==typeof e}},9896:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});const n=e=>Boolean(e&&e.getVelocity)},8270:(e,t,r)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}r.d(t,{Q:()=>a})},5446:(e,t,r)=>{"use strict";r.d(t,{N9:()=>S,nk:()=>d,oR:()=>B});var n=r(1594);function a(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=a(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const i=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a(e))&&(n&&(n+=" "),n+=t);return n},o=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>s(e)||l(e)?e:null,u=e=>(0,n.isValidElement)(e)||s(e)||l(e)||o(e);function d(e){let{enter:t,exit:r,appendPosition:a=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p}=e;const m=a?`${t}--${l}`:t,f=a?`${r}--${l}`:r,g=(0,n.useRef)(0);return(0,n.useLayoutEffect)((()=>{const e=d.current,t=m.split(" "),r=n=>{n.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,n.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r){void 0===r&&(r=300);const{scrollHeight:n,style:a}=e;requestAnimationFrame((()=>{a.minHeight="initial",a.height=n+"px",a.transition=`all ${r}ms`,requestAnimationFrame((()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,r)}))}))}(e,u,o):u()};p||(c?t():(g.current=1,e.className+=` ${f}`,e.addEventListener("animationend",t)))}),[p]),n.createElement(n.Fragment,null,s)}}function p(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const m={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter((e=>e!==t));return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const r=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)}))}},f=e=>{let{theme:t,type:r,...a}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...a})},g={info:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(f,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function h(e){const[,t]=(0,n.useReducer)((e=>e+1),0),[r,a]=(0,n.useState)([]),i=(0,n.useRef)(null),d=(0,n.useRef)(new Map).current,f=e=>-1!==r.indexOf(e),h=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:f,getToast:e=>d.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:r}=h.props;!r||t&&h.containerId!==t||(h.count-=h.queue.length,h.queue=[])}function b(e){a((t=>null==e?[]:t.filter((t=>t!==e))))}function v(){const{toastContent:e,toastProps:t,staleId:r}=h.queue.shift();x(e,t,r)}function w(e,r){let{delay:a,staleId:f,...y}=r;if(!u(e)||function(e){return!i.current||h.props.enableMultiContainer&&e.containerId!==h.props.containerId||d.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:w,updateId:_,data:E}=y,{props:k}=h,S=()=>b(w),C=null==_;C&&h.count++;const R={...k,style:k.toastStyle,key:h.toastKey++,...Object.fromEntries(Object.entries(y).filter((e=>{let[t,r]=e;return null!=r}))),toastId:w,updateId:_,data:E,closeToast:S,isIn:!1,className:c(y.className||k.toastClassName),bodyClassName:c(y.bodyClassName||k.bodyClassName),progressClassName:c(y.progressClassName||k.progressClassName),autoClose:!y.isLoading&&(A=y.autoClose,P=k.autoClose,!1===A||o(A)&&A>0?A:P),deleteToast(){const e=p(d.get(w),"removed");d.delete(w),m.emit(4,e);const r=h.queue.length;if(h.count=null==w?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),r>0){const e=null==w?h.props.limit:1;if(1===r||1===e)h.displayedToast++,v();else{const t=e>r?r:e;h.displayedToast=t;for(let e=0;e<t;e++)v()}}else t()}};var A,P;R.iconOut=function(e){let{theme:t,type:r,isLoading:a,icon:i}=e,c=null;const u={theme:t,type:r};return!1===i||(l(i)?c=i(u):(0,n.isValidElement)(i)?c=(0,n.cloneElement)(i,u):s(i)||o(i)?c=i:a?c=g.spinner():(e=>e in g)(r)&&(c=g[r](u))),c}(R),l(y.onOpen)&&(R.onOpen=y.onOpen),l(y.onClose)&&(R.onClose=y.onClose),R.closeButton=k.closeButton,!1===y.closeButton||u(y.closeButton)?R.closeButton=y.closeButton:!0===y.closeButton&&(R.closeButton=!u(k.closeButton)||k.closeButton);let T=e;(0,n.isValidElement)(e)&&!s(e.type)?T=(0,n.cloneElement)(e,{closeToast:S,toastProps:R,data:E}):l(e)&&(T=e({closeToast:S,toastProps:R,data:E})),k.limit&&k.limit>0&&h.count>k.limit&&C?h.queue.push({toastContent:T,toastProps:R,staleId:f}):o(a)?setTimeout((()=>{x(T,R,f)}),a):x(T,R,f)}function x(e,t,r){const{toastId:n}=t;r&&d.delete(r);const i={content:e,props:t};d.set(n,i),a((e=>[...e,n].filter((e=>e!==r)))),m.emit(4,p(i,null==i.props.updateId?"added":"updated"))}return(0,n.useEffect)((()=>(h.containerId=e.containerId,m.cancelEmit(3).on(0,w).on(1,(e=>i.current&&b(e))).on(5,y).emit(2,h),()=>{d.clear(),m.emit(3,h)})),[]),(0,n.useEffect)((()=>{h.props=e,h.isToastActive=f,h.displayedToast=r.length})),{getToastToRender:function(t){const r=new Map,n=Array.from(d.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:f}}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function b(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function v(e){const[t,r]=(0,n.useState)(!1),[a,i]=(0,n.useState)(!1),o=(0,n.useRef)(null),s=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:p,onClick:m,closeOnClick:f}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",x),document.addEventListener("mouseup",_),document.addEventListener("touchmove",x),document.addEventListener("touchend",_);const r=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=r.getBoundingClientRect(),r.style.transition="",s.x=y(t.nativeEvent),s.y=b(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(s.boundingRect){const{top:r,bottom:n,left:a,right:i}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=a&&s.x<=i&&s.y>=r&&s.y<=n?w():v()}}function v(){r(!0)}function w(){r(!1)}function x(r){const n=o.current;s.canDrag&&n&&(s.didMove=!0,t&&w(),s.x=y(r),s.y=b(r),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function _(){document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",_);const t=o.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)((()=>{c.current=e})),(0,n.useEffect)((()=>(o.current&&o.current.addEventListener("d",v,{once:!0}),l(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;l(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)})),[]),(0,n.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||w(),window.addEventListener("focus",v),window.addEventListener("blur",w)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",w))})),[e.pauseOnFocusLoss]);const E={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return u&&d&&(E.onMouseEnter=w,E.onMouseLeave=v),f&&(E.onClick=e=>{m&&m(e),s.canCloseOnClick&&p()}),{playToast:v,pauseToast:w,isRunning:t,preventExitTransition:a,toastRef:o,eventHandlers:E}}function w(e){let{closeToast:t,theme:r,ariaLabel:a="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":a},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function x(e){let{delay:t,isRunning:r,closeToast:a,type:o="default",hide:s,className:c,style:u,controlledProgress:d,progress:p,rtl:m,isIn:f,theme:g}=e;const h=s||d&&0===p,y={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${p})`);const b=i("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":m}),v=l(c)?c({rtl:m,type:o,defaultClassName:b}):i(b,c);return n.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:v,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{f&&a()}})}const _=e=>{const{isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:o}=v(e),{closeButton:s,children:c,autoClose:u,onClick:d,type:p,hideProgressBar:m,closeToast:f,transition:g,position:h,className:y,style:b,bodyClassName:_,bodyStyle:E,progressClassName:k,progressStyle:S,updateId:C,role:R,progress:A,rtl:P,toastId:T,deleteToast:N,isIn:I,isLoading:O,iconOut:L,closeOnClick:B,theme:j}=e,D=i("Toastify__toast",`Toastify__toast-theme--${j}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":B}),F=l(y)?y({rtl:P,position:h,type:p,defaultClassName:D}):i(D,y),M=!!A||!u,z={closeToast:f,type:p,theme:j};let V=null;return!1===s||(V=l(s)?s(z):(0,n.isValidElement)(s)?(0,n.cloneElement)(s,z):w(z)),n.createElement(g,{isIn:I,done:N,position:h,preventExitTransition:r,nodeRef:a},n.createElement("div",{id:T,onClick:d,className:F,...o,style:b,ref:a},n.createElement("div",{...I&&{role:R},className:l(_)?_({type:p}):i("Toastify__toast-body",_),style:E},null!=L&&n.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},L),n.createElement("div",null,c)),V,n.createElement(x,{...C&&!M?{key:`pb-${C}`}:{},rtl:P,theme:j,delay:u,isRunning:t,isIn:I,closeToast:f,hide:m,type:p,style:S,className:k,controlledProgress:M,progress:A||0})))},E=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},k=d(E("bounce",!0)),S=(d(E("slide",!0)),d(E("zoom")),d(E("flip")),(0,n.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:a,isToastActive:o}=h(e),{className:s,style:u,rtl:d,containerId:p}=e;function m(e){const t=i("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return l(s)?s({position:e,rtl:d,defaultClassName:t}):i(t,c(s))}return(0,n.useEffect)((()=>{t&&(t.current=a.current)}),[]),n.createElement("div",{ref:a,className:"Toastify",id:p},r(((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return n.createElement("div",{className:m(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:a,props:i}=e;return n.createElement(_,{...i,isIn:o(i.toastId),style:{...i.style,"--nth":r+1,"--len":t.length},key:`toast-${i.key}`},a)})))})))})));S.displayName="ToastContainer",S.defaultProps={position:"top-right",transition:k,autoClose:5e3,closeButton:w,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let C,R=new Map,A=[],P=1;function T(){return""+P++}function N(e){return e&&(s(e.toastId)||o(e.toastId))?e.toastId:T()}function I(e,t){return R.size>0?m.emit(0,e,t):A.push({content:e,options:t}),t.toastId}function O(e,t){return{...t,type:t&&t.type||e,toastId:N(t)}}function L(e){return(t,r)=>I(t,O(e,r))}function B(e,t){return I(e,O("default",t))}B.loading=(e,t)=>I(e,O("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),B.promise=function(e,t,r){let n,{pending:a,error:i,success:o}=t;a&&(n=s(a)?B.loading(a,r):B.loading(a.render,{...r,...a}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,a)=>{if(null==t)return void B.dismiss(n);const i={type:e,...c,...r,data:a},o=s(t)?{render:t}:t;return n?B.update(n,{...i,...o}):B(o.render,{...i,...o}),a},d=l(e)?e():e;return d.then((e=>u("success",o,e))).catch((e=>u("error",i,e))),d},B.success=L("success"),B.info=L("info"),B.error=L("error"),B.warning=L("warning"),B.warn=B.warning,B.dark=(e,t)=>I(e,O("default",{theme:"dark",...t})),B.dismiss=e=>{R.size>0?m.emit(1,e):A=A.filter((t=>null!=e&&t.options.toastId!==e))},B.clearWaitingQueue=function(e){return void 0===e&&(e={}),m.emit(5,e)},B.isActive=e=>{let t=!1;return R.forEach((r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)})),t},B.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const r=function(e,t){let{containerId:r}=t;const n=R.get(r||C);return n&&n.getToast(e)}(e,t);if(r){const{props:n,content:a}=r,i={delay:100,...n,...t,toastId:t.toastId||e,updateId:T()};i.toastId!==e&&(i.staleId=e);const o=i.render||a;delete i.render,I(o,i)}}),0)},B.done=e=>{B.update(e,{progress:1})},B.onChange=e=>(m.on(4,e),()=>{m.off(4,e)}),B.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},B.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},m.on(2,(e=>{C=e.containerId||e,R.set(C,e),A.forEach((e=>{m.emit(0,e.content,e.options)})),A=[]})).on(3,(e=>{R.delete(e.containerId||e),0===R.size&&m.off(0).off(1).off(5)}))},1635:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,YH:()=>i,fX:()=>s,sH:()=>a,zs:()=>o});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};function a(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function s(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return a[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,o.d(a,i),a},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="ast-block-templates:",o.l=(e,t,a,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",n+a),s.src=e),r[e]=[t];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(m);var a=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,a)=>n=e[t]=[r,a]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,l]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);l&&l(o)}for(t&&t(r);c<i.length;c++)a=i[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=globalThis.webpackChunkast_block_templates=globalThis.webpackChunkast_block_templates||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),o.nc=void 0;var s={};(()=>{"use strict";o.d(s,{c:()=>wb});var e=o(3771),t=o(3914),r=o(6597),n=o(7642),a=o(8242),i=o(1594),l=o.t(i,2),c=o.n(i),u=o(1760);function d({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const p=i.forwardRef(d);function m({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const f=i.forwardRef(m);var g=o(4118);const h=(e="",t="")=>((e="",t="",r="#9E9E9E")=>{e&&console.log(`%c ${e}  `,`color: ${r}; font-weight: lighter;`,t)})(e,t,"#F20404");var y=o(6134),b=o(2231);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}const{forwardRef:w}=wp.element,x=w((({className:e,tooltip:r,children:n,...a},i)=>{const{importInProgress:o}=(0,t.A)((e=>{const{getImportInProgress:t}=e(g.U);return{importInProgress:t()}}),[]);return React.createElement(b.A,{content:r},React.createElement("button",v({ref:i,className:(0,y.xW)("flex items-center justify-center w-10 h-10 rounded-full p-2 text-nav-inactive active:focus:text-nav-active disabled:cursor-not-allowed disabled:text-gray-300 hover:bg-background-tertiary active:bg-background-tertiary transition duration-150 ease-in-out bg-transparent border-0 [&_svg]:flex-shrink-0 cursor-pointer flex-col",o&&"disable-click-action",e)},a),n))}));function _({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const E=i.forwardRef(_);function k({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"}))}const S=i.forwardRef(k);function C({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const R=i.forwardRef(C);function A({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))}const P=i.forwardRef(A);function T({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM9 8.25a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h.75a.75.75 0 0 0 .75-.75V9a.75.75 0 0 0-.75-.75H9Zm5.25 0a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75H15a.75.75 0 0 0 .75-.75V9a.75.75 0 0 0-.75-.75h-.75Z",clipRule:"evenodd"}))}const N=i.forwardRef(T);function I({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M1.5 7.125c0-1.036.84-1.875 1.875-1.875h6c1.036 0 1.875.84 1.875 1.875v3.75c0 1.036-.84 1.875-1.875 1.875h-6A1.875 1.875 0 0 1 1.5 10.875v-3.75Zm12 1.5c0-1.036.84-1.875 1.875-1.875h5.25c1.035 0 1.875.84 1.875 1.875v8.25c0 1.035-.84 1.875-1.875 1.875h-5.25a1.875 1.875 0 0 1-1.875-1.875v-8.25ZM3 16.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875v2.25c0 1.035-.84 1.875-1.875 1.875h-5.25A1.875 1.875 0 0 1 3 18.375v-2.25Z",clipRule:"evenodd"}))}const O=i.forwardRef(I);function L(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function B(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function j(e){let t=null;return()=>(null==t&&(t=e()),t)}const D=j((function(){return B(/^Mac/i)})),F=j((function(){return B(/^iPhone/i)})),M=j((function(){return B(/^iPad/i)||D()&&navigator.maxTouchPoints>1})),z=j((function(){return F()||M()})),V=(j((function(){return D()||z()})),j((function(){return L(/AppleWebKit/i)&&!V()})),j((function(){return L(/Chrome/i)}))),W=j((function(){return L(/Android/i)}));j((function(){return L(/Firefox/i)}));const U=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},H=e=>e&&"window"in e&&e.window===e?e:U(e).defaultView||window;let $=null,Z=new Set,G=new Map,q=!1,Y=!1;const K={Tab:!0,Escape:!0};function X(e,t){for(let r of Z)r(e,t)}function J(e){q=!0,function(e){return!(e.metaKey||!D()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($="keyboard",X("keyboard",e))}function Q(e){$="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(q=!0,X("pointer",e))}function ee(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(W()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(q=!0,$="virtual")}function te(e){e.target!==window&&e.target!==document&&(q||Y||($="virtual",X("virtual",e)),q=!1,Y=!1)}function re(){q=!1,Y=!0}function ne(e){if("undefined"==typeof window||G.get(H(e)))return;const t=H(e),r=U(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){q=!0,n.apply(this,arguments)},r.addEventListener("keydown",J,!0),r.addEventListener("keyup",J,!0),r.addEventListener("click",ee,!0),t.addEventListener("focus",te,!0),t.addEventListener("blur",re,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",Q,!0),r.addEventListener("pointermove",Q,!0),r.addEventListener("pointerup",Q,!0)):(r.addEventListener("mousedown",Q,!0),r.addEventListener("mousemove",Q,!0),r.addEventListener("mouseup",Q,!0)),t.addEventListener("beforeunload",(()=>{ae(e)}),{once:!0}),G.set(t,{focus:n})}const ae=(e,t)=>{const r=H(e),n=U(e);t&&n.removeEventListener("DOMContentLoaded",t),G.has(r)&&(r.HTMLElement.prototype.focus=G.get(r).focus,n.removeEventListener("keydown",J,!0),n.removeEventListener("keyup",J,!0),n.removeEventListener("click",ee,!0),r.removeEventListener("focus",te,!0),r.removeEventListener("blur",re,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",Q,!0),n.removeEventListener("pointermove",Q,!0),n.removeEventListener("pointerup",Q,!0)):(n.removeEventListener("mousedown",Q,!0),n.removeEventListener("mousemove",Q,!0),n.removeEventListener("mouseup",Q,!0)),G.delete(r))};function ie(){return"pointer"!==$}"undefined"!=typeof document&&function(e){const t=U(e);let r;"loading"!==t.readyState?ne(e):(r=()=>{ne(e)},t.addEventListener("DOMContentLoaded",r))}();const oe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const se="undefined"!=typeof document?i.useLayoutEffect:()=>{};class le{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function ce(e){let t=(0,i.useRef)({isFocused:!1,observer:null});se((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=function(e){const t=(0,i.useRef)(null);return se((()=>{t.current=e}),[e]),(0,i.useCallback)(((...e)=>{const r=t.current;return null==r?void 0:r(...e)}),[])}((t=>{null==e||e(t)}));return(0,i.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,a=e=>{t.current.isFocused=!1,n.disabled&&r(new le("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}function ue(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,a=(0,i.useRef)({isFocused:!1,isFocusVisible:t||ie()}),[o,s]=(0,i.useState)(!1),[l,c]=(0,i.useState)((()=>a.current.isFocused&&a.current.isFocusVisible)),u=(0,i.useCallback)((()=>c(a.current.isFocused&&a.current.isFocusVisible)),[]),d=(0,i.useCallback)((e=>{a.current.isFocused=e,s(e),u()}),[u]);var p,m,f;p=e=>{a.current.isFocusVisible=e,u()},m=[],f={isTextInput:r},ne(),(0,i.useEffect)((()=>{let e=(e,t)=>{(function(e,t,r){var n;const a="undefined"!=typeof window?H(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?H(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?H(null==r?void 0:r.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?H(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof a&&!oe.has(null==r||null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof i||(null==r?void 0:r.target)instanceof o&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof s&&!K[r.key])})(!!(null==f?void 0:f.isTextInput),e,t)&&p(ie())};return Z.add(e),()=>{Z.delete(e)}}),m);let{focusProps:g}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e;const o=(0,i.useCallback)((e=>{if(e.target===e.currentTarget)return n&&n(e),a&&a(!1),!0}),[n,a]),s=ce(o),l=(0,i.useCallback)((e=>{const t=U(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),a&&a(!0),s(e))}),[a,r,s]);return{focusProps:{onFocus:!t&&(r||a||n)?l:void 0,onBlur:t||!n&&!a?void 0:o}}}({isDisabled:n,onFocusChange:d}),{focusWithinProps:h}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,o=(0,i.useRef)({isFocusWithin:!1}),s=(0,i.useCallback)((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),a&&a(!1))}),[r,a,o]),l=ce(s),c=(0,i.useCallback)((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(n&&n(e),a&&a(!0),o.current.isFocusWithin=!0,l(e))}),[n,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}({isDisabled:!n,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:l,focusProps:n?h:g}}let de=!1,pe=0;function me(){de=!0,setTimeout((()=>{de=!1}),50)}function fe(e){"touch"===e.pointerType&&me()}function ge(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",fe):document.addEventListener("touchend",me),pe++,()=>{pe--,pe>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",fe):document.removeEventListener("touchend",me))}}function he(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:a}=e,[o,s]=(0,i.useState)(!1),l=(0,i.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,i.useEffect)(ge,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,i.useMemo)((()=>{let e=(e,n)=>{if(l.pointerType=n,a||"touch"===n||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let i=e.currentTarget;l.target=i,t&&t({type:"hoverstart",target:i,pointerType:n}),r&&r(!0),s(!0)},i=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let a=e.currentTarget;n&&n({type:"hoverend",target:a,pointerType:t}),r&&r(!1),s(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{de&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!a&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||de||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!a&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,r,n,a,l]);return(0,i.useEffect)((()=>{a&&u({currentTarget:l.target},l.pointerType)}),[a]),{hoverProps:c,isHovered:o}}var ye=o(5206),be=Object.defineProperty,ve=(e,t,r)=>(((e,t,r)=>{t in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let we=new class{constructor(){ve(this,"current",this.detect()),ve(this,"handoffState","pending"),ve(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function xe(e){return we.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function _e(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Ee(){let e=[],t={addEventListener:(e,r,n,a)=>(e.addEventListener(r,n,a),t.add((()=>e.removeEventListener(r,n,a)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return _e((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:n})}))},group(e){let t=Ee();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function ke(){let[e]=(0,i.useState)(Ee);return(0,i.useEffect)((()=>()=>e.dispose()),[e]),e}let Se=(e,t)=>{we.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)};function Ce(e){let t=(0,i.useRef)(e);return Se((()=>{t.current=e}),[e]),t}let Re=function(e){let t=Ce(e);return i.useCallback(((...e)=>t.current(...e)),[t])};function Ae({disabled:e=!1}={}){let t=(0,i.useRef)(null),[r,n]=(0,i.useState)(!1),a=ke(),o=Re((()=>{t.current=null,n(!1),a.dispose()})),s=Re((e=>{if(a.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=xe(e.currentTarget);a.addEventListener(r,"pointerup",o,!1),a.addEventListener(r,"pointermove",(e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);n(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}}),!1),a.addEventListener(r,"pointercancel",o,!1)}}}));return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}function Pe(e,t){let r=(0,i.useRef)({left:0,top:0});if(Se((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(r.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let n=t.getBoundingClientRect();return n.top!==r.current.top||n.left!==r.current.left}function Te(e,t=!1){let[r,n]=(0,i.useReducer)((()=>({})),{}),a=(0,i.useMemo)((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}(e)),[e,r]);return Se((()=>{if(!e)return;let t=new ResizeObserver(n);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}class Ne extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function Ie(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...a){let i=t[e].call(r,...a);i&&(r=i,n.forEach((e=>e())))}}}function Oe(e){return(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let Le=new Ne((()=>Ie((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let r=this.slice();return r.splice(t,1),r}})));function Be(e,t){let r=Le.get(t),n=(0,i.useId)(),a=Oe(r);if(Se((()=>{if(e)return r.dispatch("ADD",n),()=>r.dispatch("REMOVE",n)}),[r,e]),!e)return!1;let o=a.indexOf(n),s=a.length;return-1===o&&(o=s,s+=1),o===s-1}let je=new Map,De=new Map;function Fe(e){var t;let r=null!=(t=De.get(e))?t:0;return De.set(e,r+1),0!==r||(je.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let r=null!=(t=De.get(e))?t:1;if(1===r?De.delete(e):De.set(e,r-1),1!==r)return;let n=je.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,je.delete(e))}(e)}function Me(e,{allowed:t,disallowed:r}={}){let n=Be(e,"inert-others");Se((()=>{var e,a;if(!n)return;let i=Ee();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&i.add(Fe(t));let o=null!=(a=null==t?void 0:t())?a:[];for(let e of o){if(!e)continue;let t=xe(e);if(!t)continue;let r=e.parentElement;for(;r&&r!==t.body;){for(let e of r.children)o.some((t=>e.contains(t)))||i.add(Fe(e));r=r.parentElement}}return i.dispose}),[n,t,r])}function ze(e,t,r){let n=Ce((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()}));(0,i.useEffect)((()=>{if(!e)return;let r=null===t?null:t instanceof HTMLElement?t:t.current;if(!r)return;let a=Ee();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>n.current(r)));e.observe(r),a.add((()=>e.disconnect()))}return()=>a.dispose()}),[t,n,e])}function Ve(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ve),n}let We=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),Ue=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var He,$e,Ze=(($e=Ze||{})[$e.First=1]="First",$e[$e.Previous=2]="Previous",$e[$e.Next=4]="Next",$e[$e.Last=8]="Last",$e[$e.WrapAround=16]="WrapAround",$e[$e.NoScroll=32]="NoScroll",$e[$e.AutoFocus=64]="AutoFocus",$e),Ge=((He=Ge||{})[He.Error=0]="Error",He[He.Overflow=1]="Overflow",He[He.Success=2]="Success",He[He.Underflow=3]="Underflow",He),qe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(qe||{});function Ye(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(We)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Ke=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ke||{});function Xe(e,t=0){var r;return e!==(null==(r=xe(e))?void 0:r.body)&&Ve(t,{0:()=>e.matches(We),1(){let t=e;for(;null!==t;){if(t.matches(We))return!0;t=t.parentElement}return!1}})}function Je(e){let t=xe(e);Ee().nextFrame((()=>{t&&!Xe(t.activeElement,0)&&et(e)}))}var Qe=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Qe||{});function et(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let tt=["textarea","input"].join(",");function rt(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let n=t(e),a=t(r);if(null===n||null===a)return 0;let i=n.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function nt(e,t){return at(Ye(),t,{relativeTo:e})}function at(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:a=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?r?rt(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ue)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Ye(e);a.length>0&&o.length>1&&(o=o.filter((e=>!a.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),n=null!=n?n:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(n))-1;if(4&t)return Math.max(0,o.indexOf(n))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=o.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=o[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,tt))&&r}(s)&&s.select(),2}function it(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ot(){return it()||/Android/gi.test(window.navigator.userAgent)}function st(e,t,r,n){let a=Ce(r);(0,i.useEffect)((()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}function lt(e,t,r,n){let a=Ce(r);(0,i.useEffect)((()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){a.current(e)}}),[e,t,n])}function ct(e,t,r){let n=Be(e,"outside-click"),a=Ce(r),o=(0,i.useCallback)((function(e,r){if(e.defaultPrevented)return;let n=r(e);if(null===n||!n.getRootNode().contains(n)||!n.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(n)||e.composed&&e.composedPath().includes(t)))return;return!Xe(n,Ke.Loose)&&-1!==n.tabIndex&&e.preventDefault(),a.current(e,n)}),[a,t]),s=(0,i.useRef)(null);st(n,"pointerdown",(e=>{var t,r;s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),st(n,"mousedown",(e=>{var t,r;s.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target}),!0),st(n,"click",(e=>{ot()||s.current&&(o(e,(()=>s.current)),s.current=null)}),!0);let l=(0,i.useRef)({x:0,y:0});st(n,"touchstart",(e=>{l.current.x=e.touches[0].clientX,l.current.y=e.touches[0].clientY}),!0),st(n,"touchend",(e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-l.current.x)>=30||Math.abs(r-l.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),lt(n,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function ut(...e){return(0,i.useMemo)((()=>xe(...e)),[...e])}function dt(e,t){return(0,i.useMemo)((()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function pt(){let e;return{before({doc:t}){var r;let n=t.documentElement,a=null!=(r=t.defaultView)?r:window;e=Math.max(0,a.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,a=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-a);r.style(n,"paddingRight",`${i}px`)}}}function mt(){return it()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Ee();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let a=null!=(r=window.scrollY)?r:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:a}=new URL(r.href),o=e.querySelector(a);o&&!n(o)&&(i=o)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{}}function ft(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let gt=Ie((()=>new Map),{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Ee(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:ft(r)},a=[mt(),pt(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach((({before:e})=>null==e?void 0:e(n))),a.forEach((({after:e})=>null==e?void 0:e(n)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function ht(e,t,r=(()=>[document.body])){!function(e,t,r=(()=>({containers:[]}))){let n=Oe(gt),a=t?n.get(t):void 0;!!a&&a.count;Se((()=>{if(t&&e)return gt.dispatch("PUSH",t,r),()=>gt.dispatch("POP",t,r)}),[e,t])}(Be(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}gt.subscribe((()=>{let e=gt.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&gt.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&gt.dispatch("TEARDOWN",r)}}));let yt=Symbol();function bt(...e){let t=(0,i.useRef)(e);(0,i.useEffect)((()=>{t.current=e}),[e]);let r=Re((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[yt])))?void 0:r}let vt=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function wt(e){var t,r;let n=null!=(t=e.innerText)?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return n;let i=!1;for(let e of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let o=i?null!=(r=a.innerText)?r:"":n;return vt.test(o)&&(o=o.replace(vt,"")),o}function xt(e){let t=(0,i.useRef)(""),r=(0,i.useRef)("");return Re((()=>{let n=e.current;if(!n)return"";let a=n.innerText;if(t.current===a)return r.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():wt(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return wt(e).trim()}(n).trim().toLowerCase();return t.current=a,r.current=i,i}))}function _t(e){return[e.screenX,e.screenY]}function Et(){let e=(0,i.useRef)([-1,-1]);return{wasMoved(t){let r=_t(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=_t(t)}}}var kt,St;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(kt=null==process?void 0:process.env)?void 0:kt.NODE_ENV)&&void 0===(null==(St=null==Element?void 0:Element.prototype)?void 0:St.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Ct,Rt=((Ct=Rt||{})[Ct.None=0]="None",Ct[Ct.Closed=1]="Closed",Ct[Ct.Enter=2]="Enter",Ct[Ct.Leave=4]="Leave",Ct);function At(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Pt(e,t,r,n){let[a,o]=(0,i.useState)(r),{hasFlag:s,addFlag:l,removeFlag:c}=function(e=0){let[t,r]=(0,i.useState)(e),n=(0,i.useCallback)((e=>r(e)),[t]),a=(0,i.useCallback)((e=>r((t=>t|e))),[t]),o=(0,i.useCallback)((e=>(t&e)===e),[t]),s=(0,i.useCallback)((e=>r((t=>t&~e))),[r]),l=(0,i.useCallback)((e=>r((t=>t^e))),[r]);return{flags:t,setFlag:n,addFlag:a,hasFlag:o,removeFlag:s,toggleFlag:l}}(e&&a?3:0),u=(0,i.useRef)(!1),d=(0,i.useRef)(!1),p=ke();return Se((()=>{var a;if(e)return r&&o(!0),t?(null==(a=null==n?void 0:n.start)||a.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:a}){let i=Ee();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:a}),i.nextFrame((()=>{r(),i.requestAnimationFrame((()=>{i.add(function(e,t){var r,n;let a=Ee();if(!e)return a.dispose;let i=!1;a.add((()=>{i=!0}));let o=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter((e=>e instanceof CSSTransition)))?n:[];return 0===o.length?(t(),a.dispose):(Promise.allSettled(o.map((e=>e.finished))).then((()=>{i||t()})),a.dispose)}(e,n))}))})),i.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(r?(l(3),c(4)):(l(4),c(2)))},run(){d.current?r?(c(3),l(4)):(c(4),l(3)):r?c(1):l(1)},done(){var e;d.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,c(7),r||o(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})):void(r&&l(3))}),[e,r,t,p]),e?[a,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}const Tt=Math.min,Nt=Math.max,It=Math.round,Ot=Math.floor,Lt=e=>({x:e,y:e}),Bt={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function Dt(e,t,r){return Nt(e,Tt(t,r))}function Ft(e,t){return"function"==typeof e?e(t):e}function Mt(e){return e.split("-")[0]}function zt(e){return e.split("-")[1]}function Vt(e){return"x"===e?"y":"x"}function Wt(e){return"y"===e?"height":"width"}function Ut(e){return["top","bottom"].includes(Mt(e))?"y":"x"}function Ht(e){return Vt(Ut(e))}function $t(e){return e.replace(/start|end/g,(e=>jt[e]))}function Zt(e){return e.replace(/left|right|bottom|top/g,(e=>Bt[e]))}function Gt(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function qt(){return"undefined"!=typeof window}function Yt(e){return Jt(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xt(e){var t;return null==(t=(Jt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Jt(e){return!!qt()&&(e instanceof Node||e instanceof Kt(e).Node)}function Qt(e){return!!qt()&&(e instanceof Element||e instanceof Kt(e).Element)}function er(e){return!!qt()&&(e instanceof HTMLElement||e instanceof Kt(e).HTMLElement)}function tr(e){return!(!qt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot)}function rr(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function nr(e){return["table","td","th"].includes(Yt(e))}function ar(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ir(e){const t=or(),r=Qt(e)?lr(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function or(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function sr(e){return["html","body","#document"].includes(Yt(e))}function lr(e){return Kt(e).getComputedStyle(e)}function cr(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if("html"===Yt(e))return e;const t=e.assignedSlot||e.parentNode||tr(e)&&e.host||Xt(e);return tr(t)?t.host:t}function dr(e){const t=ur(e);return sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:er(t)&&rr(t)?t:dr(t)}function pr(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const a=dr(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),o=Kt(a);if(i){const e=function(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}(o);return t.concat(o,o.visualViewport||[],rr(a)?a:[],e&&r?pr(e):[])}return t.concat(a,pr(a,[],r))}function mr(e,t,r){let{reference:n,floating:a}=e;const i=Ut(t),o=Ht(t),s=Wt(o),l=Mt(t),c="y"===i,u=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,p=n[s]/2-a[s]/2;let m;switch(l){case"top":m={x:u,y:n.y-a.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-a.width,y:d};break;default:m={x:n.x,y:n.y}}switch(zt(t)){case"start":m[o]-=p*(r&&c?-1:1);break;case"end":m[o]+=p*(r&&c?-1:1)}return m}async function fr(e,t){var r;void 0===t&&(t={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Ft(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(m),g=s[p?"floating"===d?"reference":"floating":d],h=Gt(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Gt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(h.top-w.top+f.top)/v.y,bottom:(w.bottom-h.bottom+f.bottom)/v.y,left:(h.left-w.left+f.left)/v.x,right:(w.right-h.right+f.right)/v.x}}function gr(e){const t=lr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=er(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=It(r)!==i||It(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function hr(e){return Qt(e)?e:e.contextElement}function yr(e){const t=hr(e);if(!er(t))return Lt(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=gr(t);let o=(i?It(r.width):r.width)/n,s=(i?It(r.height):r.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const br=Lt(0);function vr(e){const t=Kt(e);return or()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:br}function wr(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),i=hr(e);let o=Lt(1);t&&(n?Qt(n)&&(o=yr(n)):o=yr(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Kt(e))&&t}(i,r,n)?vr(i):Lt(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const e=Kt(i),t=n&&Qt(n)?Kt(n):n;let r=e,a=r.frameElement;for(;a&&n&&t!==r;){const e=yr(a),t=a.getBoundingClientRect(),n=lr(a),i=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=o,r=Kt(a),a=r.frameElement}}return Gt({width:u,height:d,x:l,y:c})}function xr(e){return wr(Xt(e)).left+cr(e).scrollLeft}function _r(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Kt(e),n=Xt(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const e=or();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Xt(e),r=cr(e),n=e.ownerDocument.body,a=Nt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Nt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+xr(e);const s=-r.scrollTop;return"rtl"===lr(n).direction&&(o+=Nt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}(Xt(e));else if(Qt(t))n=function(e,t){const r=wr(e,!0,"fixed"===t),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=er(e)?yr(e):Lt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:a*i.x,y:n*i.y}}(t,r);else{const r=vr(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Gt(n)}function Er(e,t){const r=ur(e);return!(r===t||!Qt(r)||sr(r))&&("fixed"===lr(r).position||Er(r,t))}function kr(e,t,r){const n=er(t),a=Xt(t),i="fixed"===r,o=wr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Lt(0);if(n||!n&&!i)if(("body"!==Yt(t)||rr(a))&&(s=cr(t)),n){const e=wr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=xr(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Sr(e){return"static"===lr(e).position}function Cr(e,t){return er(e)&&"fixed"!==lr(e).position?t?t(e):e.offsetParent:null}function Rr(e,t){const r=Kt(e);if(ar(e))return r;if(!er(e)){let t=ur(e);for(;t&&!sr(t);){if(Qt(t)&&!Sr(t))return t;t=ur(t)}return r}let n=Cr(e,t);for(;n&&nr(n)&&Sr(n);)n=Cr(n,t);return n&&sr(n)&&Sr(n)&&!ir(n)?r:n||function(e){let t=ur(e);for(;er(t)&&!sr(t);){if(ir(t))return t;if(ar(t))return null;t=ur(t)}return null}(e)||r}const Ar={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i="fixed"===a,o=Xt(n),s=!!t&&ar(t.floating);if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Lt(1);const u=Lt(0),d=er(n);if((d||!d&&!i)&&(("body"!==Yt(n)||rr(o))&&(l=cr(n)),er(n))){const e=wr(n);c=yr(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Xt,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[..."clippingAncestors"===r?ar(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=pr(e,[],!1).filter((e=>Qt(e)&&"body"!==Yt(e))),a=null;const i="fixed"===lr(e).position;let o=i?ur(e):e;for(;Qt(o)&&!sr(o);){const t=lr(o),r=ir(o);r||"fixed"!==t.position||(a=null),(i?!r&&!a:!r&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||rr(o)&&!r&&Er(e,o))?n=n.filter((e=>e!==o)):a=t,o=ur(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=i[0],s=i.reduce(((e,r)=>{const n=_r(t,r,a);return e.top=Nt(n.top,e.top),e.right=Tt(n.right,e.right),e.bottom=Tt(n.bottom,e.bottom),e.left=Nt(n.left,e.left),e}),_r(t,o,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Rr,getElementRects:async function(e){const t=this.getOffsetParent||Rr,r=this.getDimensions,n=await r(e.floating);return{reference:kr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=gr(e);return{width:t,height:r}},getScale:yr,isElement:Qt,isRTL:function(e){return"rtl"===lr(e).direction}};function Pr(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=hr(e),u=a||i?[...c?pr(c):[],...pr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const a=Xt(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const m={rootMargin:-Ot(u)+"px "+-Ot(a.clientWidth-(c+d))+"px "+-Ot(a.clientHeight-(u+p))+"px "+-Ot(c)+"px",threshold:Nt(0,Tt(1,l))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return o();t?o(!1,t):r=setTimeout((()=>{o(!1,1e-7)}),1e3)}f=!1}try{n=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),i}(c,r):null;let p,m=-1,f=null;o&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!l&&f.observe(c),f.observe(t));let g=l?wr(e):null;return l&&function t(){const n=wr(e);!g||n.x===g.x&&n.y===g.y&&n.width===g.width&&n.height===g.height||r(),g=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Tr=fr,Nr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:a}=e,i=await(null==n.isRTL?void 0:n.isRTL(a.floating)),o=Mt(r),s=zt(r),l="y"===Ut(r),c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=Ft(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof f&&(m="end"===s?-1*f:f),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}(t,e);return o===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},Ir=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Ft(e,t),c={x:r,y:n},u=await fr(t,l),d=Ut(Mt(a)),p=Vt(d);let m=c[p],f=c[d];if(i){const e="y"===p?"bottom":"right";m=Dt(m+u["y"===p?"top":"left"],m,m-u[e])}if(o){const e="y"===d?"bottom":"right";f=Dt(f+u["y"===d?"top":"left"],f,f-u[e])}const g=s.fn({...t,[p]:m,[d]:f});return{...g,data:{x:g.x-r,y:g.y-n}}}}},Or=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...h}=Ft(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Mt(a),b=Ut(s),v=Mt(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(v||!g?[Zt(s)]:function(e){const t=Zt(e);return[$t(e),t,$t(t)]}(s)),_="none"!==f;!p&&_&&x.push(...function(e,t,r,n){const a=zt(e);let i=function(e,t,r){const n=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?i:o;default:return[]}}(Mt(e),"start"===r,n);return a&&(i=i.map((e=>e+"-"+a)),t&&(i=i.concat(i.map($t)))),i}(s,g,f,w));const E=[s,...x],k=await fr(t,h),S=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=zt(e),a=Ht(e),i=Wt(a);let o="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Zt(o)),[o,Zt(o)]}(a,o,w);S.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:a,overflows:S}],!S.every((e=>e<=0))){var R,A;const e=((null==(R=i.flip)?void 0:R.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let r=null==(A=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!r)switch(m){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(_){const t=Ut(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(a!==r)return{reset:{placement:r}}}return{}}}},Lr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:a,elements:i}=t,{apply:o=(()=>{}),...s}=Ft(e,t),l=await fr(t,s),c=Mt(r),u=zt(r),d="y"===Ut(r),{width:p,height:m}=n.floating;let f,g;"top"===c||"bottom"===c?(f=c,g=u===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,f="end"===u?"top":"bottom");const h=m-l.top-l.bottom,y=p-l.left-l.right,b=Tt(m-l[f],h),v=Tt(p-l[g],y),w=!t.middlewareData.shift;let x=b,_=v;if(d?_=u||w?Tt(v,y):y:x=u||w?Tt(b,h):h,w&&!u){const e=Nt(l.left,0),t=Nt(l.right,0),r=Nt(l.top,0),n=Nt(l.bottom,0);d?_=p-2*(0!==e||0!==t?e+t:Nt(l.left,l.right)):x=m-2*(0!==r||0!==n?r+n:Nt(l.top,l.bottom))}await o({...t,availableWidth:_,availableHeight:x});const E=await a.getDimensions(i.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},Br=(e,t,r)=>{const n=new Map,a={platform:Ar,...r},i={...a.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=mr(c,n,l),p=n,m={},f=0;for(let r=0;r<s.length;r++){const{name:i,fn:g}=s[r],{x:h,y,data:b,reset:v}=await g({x:u,y:d,initialPlacement:n,placement:p,strategy:a,middlewareData:m,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=y?y:d,m={...m,[i]:{...m[i],...b}},v&&f<=50&&(f++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):v.rects),({x:u,y:d}=mr(c,p,l))),r=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:m}})(e,t,{...a,platform:i})};var jr="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function Dr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!Dr(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){const r=a[n];if(!("_owner"===r&&e.$$typeof||Dr(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function Fr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mr(e,t){const r=Fr(e);return Math.round(t*r)/r}function zr(e){const t=i.useRef(e);return jr((()=>{t.current=e})),t}const Vr=(e,t)=>({...Nr(e),options:[e,t]}),Wr=(e,t)=>({...Or(e),options:[e,t]}),Ur=(e,t)=>({...Lr(e),options:[e,t]}),Hr={...l},$r=Hr.useInsertionEffect||(e=>e());function Zr(e){const t=i.useRef((()=>{}));return $r((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}var Gr="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let qr=!1,Yr=0;const Kr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Yr++,Xr=Hr.useId||function(){const[e,t]=i.useState((()=>qr?Kr():void 0));return Gr((()=>{null==e&&t(Kr())}),[]),i.useEffect((()=>{qr=!0}),[]),e};const Jr=i.createContext(null),Qr=i.createContext(null),en=()=>{var e;return(null==(e=i.useContext(Jr))?void 0:e.id)||null},tn=()=>i.useContext(Qr),rn="data-floating-ui-focusable";function nn(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:n}=e,a=Xr(),o=i.useRef({}),[s]=i.useState((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),l=null!=en(),[c,u]=i.useState(n.reference),d=Zr(((e,t,n)=>{o.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),p=i.useMemo((()=>({setPositionReference:u})),[]),m=i.useMemo((()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference})),[c,n.reference,n.floating]);return i.useMemo((()=>({dataRef:o,open:t,onOpenChange:d,elements:m,events:s,floatingId:a,refs:p})),[t,d,m,s,a,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,a=n.elements,[o,s]=i.useState(null),[l,c]=i.useState(null),u=(null==a?void 0:a.reference)||o,d=i.useRef(null),p=tn();Gr((()=>{u&&(d.current=u)}),[u]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=i.useState(n);Dr(m,n)||f(n);const[g,h]=i.useState(null),[y,b]=i.useState(null),v=i.useCallback((e=>{e!==E.current&&(E.current=e,h(e))}),[]),w=i.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),x=o||g,_=s||y,E=i.useRef(null),k=i.useRef(null),S=i.useRef(d),C=null!=c,R=zr(c),A=zr(a),P=zr(u),T=i.useCallback((()=>{if(!E.current||!k.current)return;const e={placement:t,strategy:r,middleware:m};A.current&&(e.platform=A.current),Br(E.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};N.current&&!Dr(S.current,t)&&(S.current=t,ye.flushSync((()=>{p(t)})))}))}),[m,t,r,A,P]);jr((()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const N=i.useRef(!1);jr((()=>(N.current=!0,()=>{N.current=!1})),[]),jr((()=>{if(x&&(E.current=x),_&&(k.current=_),x&&_){if(R.current)return R.current(x,_,T);T()}}),[x,_,T,R,C]);const I=i.useMemo((()=>({reference:E,floating:k,setReference:v,setFloating:w})),[v,w]),O=i.useMemo((()=>({reference:x,floating:_})),[x,_]),L=i.useMemo((()=>{const e={position:r,left:0,top:0};if(!O.floating)return e;const t=Mr(O.floating,d.x),n=Mr(O.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Fr(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,O.floating,d.x,d.y]);return i.useMemo((()=>({...d,update:T,refs:I,elements:O,floatingStyles:L})),[d,T,I,O,L])}({...e,elements:{...a,...l&&{reference:l}}}),f=i.useCallback((e=>{const t=Qt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),m.refs.setReference(t)}),[m.refs]),g=i.useCallback((e=>{(Qt(e)||null===e)&&(d.current=e,s(e)),(Qt(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!Qt(e))&&m.refs.setReference(e)}),[m.refs]),h=i.useMemo((()=>({...m.refs,setReference:g,setPositionReference:f,domReference:d})),[m.refs,g,f]),y=i.useMemo((()=>({...m.elements,domReference:u})),[m.elements,u]),b=i.useMemo((()=>({...m,...n,refs:h,elements:y,nodeId:t})),[m,h,y,t,n]);return Gr((()=>{n.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),i.useMemo((()=>({...m,context:b,refs:h,elements:y})),[m,h,y,b])}const an="active",on="selected";function sn(e,t,r){const n=new Map,a="item"===r;let i=e;if(a&&e){const{[an]:t,[on]:r,...n}=e;i=n}return{..."floating"===r&&{tabIndex:-1,[rn]:""},...i,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,i]=t;var o;a&&[an,on].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof i&&(null==(o=n.get(r))||o.push(i),e[r]=function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return null==(e=n.get(r))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[r]=i)})),e):e),{})}}function ln(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let cn=(0,i.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});cn.displayName="FloatingContext";let un=(0,i.createContext)(null);function dn(e){return(0,i.useMemo)((()=>e?"string"==typeof e?{to:e}:e:null),[e])}function pn(){return(0,i.useContext)(cn).setReference}function mn(){return(0,i.useContext)(cn).getReferenceProps}function fn(){let{getFloatingProps:e,slot:t}=(0,i.useContext)(cn);return(0,i.useCallback)(((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor})),[e,t])}function gn(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,i.useContext)(un),r=(0,i.useMemo)((()=>e),[JSON.stringify(e,((e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t}))]);Se((()=>{null==t||t(null!=r?r:null)}),[t,r]);let n=(0,i.useContext)(cn);return(0,i.useMemo)((()=>[n.setFloating,e?n.styles:{}]),[n.setFloating,e,n.styles])}un.displayName="PlacementContext";function hn({children:e,enabled:t=!0}){let[r,n]=(0,i.useState)(null),[a,o]=(0,i.useState)(0),s=(0,i.useRef)(null),[l,c]=(0,i.useState)(null);!function(e){Se((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(l);let u=t&&null!==r&&null!==l,{to:d="bottom",gap:p=0,offset:m=0,padding:f=0,inner:g}=function(e,t){var r,n,a;let i=yn(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),o=yn(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),s=yn(null!=(a=null==e?void 0:e.padding)?a:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:o,padding:s}}(r,l),[h,y="center"]=d.split(" ");Se((()=>{u&&o(0)}),[u]);let{refs:b,floatingStyles:v,context:w}=nn({open:u,placement:"selection"===h?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${h}`:`${h}-${y}`,strategy:"absolute",transform:!1,middleware:[Vr({mainAxis:"selection"===h?0:p,crossAxis:m}),(k={padding:f},{...Ir(k),options:[k,S]}),"selection"!==h&&Wr({padding:f}),"selection"===h&&g?(E={...g,padding:f,overflowRef:s,offset:a,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,r;if(!e)return;let n=w.elements.floating;if(!n)return;let a=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,i=Math.min(4,n.childElementCount),s=0,l=0;for(let e of null!=(r=null==(t=w.elements.floating)?void 0:t.childNodes)?r:[])if(e instanceof HTMLElement){let t=e.offsetTop,r=t+e.clientHeight+a,o=n.scrollTop,c=o+n.clientHeight;if(!(t>=o&&r<=c)){l=Math.max(0,Math.min(r,c)-Math.max(t,o)),s=e.clientHeight;break}i--}i>=1&&o((e=>{let t=s*i-l+a;return e>=t?e:t}))}},{name:"inner",options:E,async fn(e){const{listRef:t,overflowRef:r,onFallbackChange:n,offset:a=0,index:i=0,minItemsVisible:o=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=Ft(E,e),{rects:u,elements:{floating:d}}=e,p=t.current[i],m=(null==l?void 0:l.current)||d,f=d.clientTop||m.clientTop,g=0!==d.clientTop,h=0!==m.clientTop,y=d===m;if(!p)return{};const b={...e,...await Vr(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-a).fn(e)},v=await Tr(ln(b,m.scrollHeight+f+d.clientTop),c),w=await Tr(b,{...c,elementContext:"reference"}),x=Nt(0,v.top),_=b.y+x,k=m.scrollHeight>m.clientHeight,S=k?e=>e:It,C=S(Nt(0,m.scrollHeight+(g&&y||h?2*f:0)-x-Nt(0,v.bottom)));if(m.style.maxHeight=C+"px",m.scrollTop=x,n){const e=k&&m.offsetHeight<p.offsetHeight*o-1||w.top>=-s||w.bottom>=-s;ye.flushSync((()=>n(e)))}return r&&(r.current=await Tr(ln({...b,y:_},m.offsetHeight+f+d.clientTop),c)),{y:_}}}):null,Ur({padding:f,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Pr}),[x=h,_=y]=w.placement.split("-");var E,k,S;"selection"===h&&(x="selection");let C=(0,i.useMemo)((()=>({anchor:[x,_].filter(Boolean).join(" ")})),[x,_]),R=function(e,t){const{open:r,elements:n}=e,{enabled:a=!0,overflowRef:o,scrollRef:s,onChange:l}=t,c=Zr(l),u=i.useRef(!1),d=i.useRef(null),p=i.useRef(null);i.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const r=e.deltaY,n=o.current.top>=-.5,a=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=r<0?-1:1,l=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!a&&r<0?(e.preventDefault(),ye.flushSync((()=>{c((e=>e+Math[l](r,i*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==s?void 0:s.current)||n.floating;return r&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=o.current&&(p.current={...o.current})})),()=>{d.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,r,n.floating,o,s,c]);const m=i.useMemo((()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||n.floating;if(o.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&ye.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[n.floating,c,o,s]);return i.useMemo((()=>a?{floating:m}:{}),[a,m])}(w,{overflowRef:s,onChange:o}),{getReferenceProps:A,getFloatingProps:P}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),n=e.map((e=>null==e?void 0:e.item)),a=i.useCallback((t=>sn(t,e,"reference")),t),o=i.useCallback((t=>sn(t,e,"floating")),r),s=i.useCallback((t=>sn(t,e,"item")),n);return i.useMemo((()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s})),[a,o,s])}([R]),T=Re((e=>{c(e),b.setFloating(e)}));return i.createElement(un.Provider,{value:n},i.createElement(cn.Provider,{value:{setFloating:T,setReference:b.setReference,styles:v,getReferenceProps:A,getFloatingProps:P,slot:C}},e))}function yn(e,t,r=void 0){let n=ke(),a=Re(((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let a=vn(e,t);return[a,r=>{let i=bn(e);{let o=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));n.requestAnimationFrame((function s(){n.nextFrame(s);let l=!1;for(let[e,r]of i.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(o[e]!==n){o[e]=n,l=!0;break}}if(!l)return;let c=vn(e,t);a!==c&&(r(c),a=c)}))}return n.dispose}]}return[r,null]})),o=(0,i.useMemo)((()=>a(e,t)[0]),[e,t]),[s=o,l]=(0,i.useState)();return Se((()=>{let[r,n]=a(e,t);if(l(r),n)return n(l)}),[e,t]),s}function bn(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...bn(n)]:[r]}return[]}function vn(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}let wn=(0,i.createContext)(null);wn.displayName="OpenClosedContext";var xn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(xn||{});function _n(){return(0,i.useContext)(wn)}function En({value:e,children:t}){return i.createElement(wn.Provider,{value:e},t)}function kn({children:e}){return i.createElement(wn.Provider,{value:null},e)}function Sn(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}var Cn,Rn=((Cn=Rn||{})[Cn.First=0]="First",Cn[Cn.Previous=1]="Previous",Cn[Cn.Next=2]="Next",Cn[Cn.Last=3]="Last",Cn[Cn.Specific=4]="Specific",Cn[Cn.Nothing=5]="Nothing",Cn);function An(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),a=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===a&&(a=r.length);for(let e=a-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=a+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Pn(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Tn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Tn||{}),Nn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Nn||{});function In(){let e=function(){let e=(0,i.useRef)([]),t=(0,i.useCallback)((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}),[]);return(...r)=>{if(!r.every((e=>null==e)))return e.current=r,t}}();return(0,i.useCallback)((t=>function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:i=!0,name:o,mergeRefs:s}){s=null!=s?s:Ln;let l=Bn(t,e);if(i)return On(l,r,n,o,s);let c=null!=a?a:0;if(2&c){let{static:e=!1,...t}=l;if(e)return On(t,r,n,o,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ve(e?0:1,{0:()=>null,1:()=>On({...t,hidden:!0,style:{display:"none"}},r,n,o,s)})}return On(l,r,n,o,s)}({mergeRefs:e,...t})),[e])}function On(e,t={},r,n,a){let{as:o=r,children:s,refName:l="ref",...c}=Mn(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let p={};if(t){let e=!1,r=[];for(let[n,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&r.push(n.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){p["data-headlessui-state"]=r.join(" ");for(let e of r)p[`data-${e}`]=""}}if(o===i.Fragment&&(Object.keys(Fn(c)).length>0||Object.keys(Fn(p)).length>0)){if((0,i.isValidElement)(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>Pn(t(...e),c.className):Pn(t,c.className),n=r?{className:r}:{},o=Bn(d.props,Fn(Mn(c,["ref"])));for(let e in p)e in o&&delete p[e];return(0,i.cloneElement)(d,Object.assign({},o,p,u,{ref:a(d.ref,u.ref)},n))}if(Object.keys(Fn(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Fn(c)).concat(Object.keys(Fn(p))).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"))}return(0,i.createElement)(o,Object.assign({},Mn(c,["ref"]),o!==i.Fragment&&u,o!==i.Fragment&&p),d)}function Ln(...e){return e.every((e=>null==e))?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function Bn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function jn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){let n=r[e];for(let e of n)null==e||e(...t)}});return t}function Dn(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Fn(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Mn(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let zn=(0,i.createContext)(void 0);function Vn(){return(0,i.useContext)(zn)}let Wn=(0,i.createContext)(null);function Un(){let e=(0,i.useContext)(Wn);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Un),e}return e}function Hn(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)((()=>function(e){let r=Re((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),n=(0,i.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value})),[r,e.slot,e.name,e.props,e.value]);return i.createElement(Wn.Provider,{value:n},e.children)}),[t])]}Wn.displayName="DescriptionContext";let $n=Dn((function(e,t){let r=(0,i.useId)(),n=Vn(),{id:a=`headlessui-description-${r}`,...o}=e,s=Un(),l=bt(t);Se((()=>s.register(a)),[a,s.register]);let c=n||!1,u=(0,i.useMemo)((()=>({...s.slot,disabled:c})),[s.slot,c]),d={ref:l,...s.props,id:a};return In()({ourProps:d,theirProps:o,slot:u,defaultTag:"p",name:s.name||"Description"})})),Zn=Object.assign($n,{});var Gn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Gn||{});let qn=(0,i.createContext)(void 0);function Yn(){return(0,i.useContext)(qn)}let Kn=(0,i.createContext)(null);function Xn(){let e=(0,i.useContext)(Kn);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Xn),e}return e}function Jn(e){var t,r,n;let a=null!=(r=null==(t=(0,i.useContext)(Kn))?void 0:t.value)?r:void 0;return(null!=(n=null==e?void 0:e.length)?n:0)>0?[a,...e].filter(Boolean).join(" "):a}function Qn({inherit:e=!1}={}){let t=Jn(),[r,n]=(0,i.useState)([]),a=e?[t,...r].filter(Boolean):r;return[a.length>0?a.join(" "):void 0,(0,i.useMemo)((()=>function(e){let t=Re((e=>(n((t=>[...t,e])),()=>n((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),r=(0,i.useMemo)((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return i.createElement(Kn.Provider,{value:r},e.children)}),[n])]}Kn.displayName="LabelContext";let ea=Dn((function(e,t){var r;let n=(0,i.useId)(),a=Xn(),o=Yn(),s=Vn(),{id:l=`headlessui-label-${n}`,htmlFor:c=(null!=o?o:null==(r=a.props)?void 0:r.htmlFor),passive:u=!1,...d}=e,p=bt(t);Se((()=>a.register(l)),[l,a.register]);let m=Re((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),a.props&&"onClick"in a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),f=s||!1,g=(0,i.useMemo)((()=>({...a.slot,disabled:f})),[a.slot,f]),h={ref:p,...a.props,id:l,htmlFor:c,onClick:m};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in d&&delete d.onClick),In()({ourProps:h,theirProps:d,slot:g,defaultTag:c?"label":"div",name:a.name||"Label"})})),ta=Object.assign(ea,{});function ra(e){let t=Re(e),r=(0,i.useRef)(!1);(0,i.useEffect)((()=>(r.current=!1,()=>{r.current=!0,_e((()=>{r.current&&t()}))})),[t])}function na(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in l&&(e=>e.useSyncExternalStore)(l)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,r]=i.useState(we.isHandoffComplete);return t&&!1===we.isHandoffComplete&&r(!1),i.useEffect((()=>{!0!==t&&r(!0)}),[t]),i.useEffect((()=>we.handoff()),[]),!e&&t}let aa=(0,i.createContext)(!1);function ia(e){return i.createElement(aa.Provider,{value:e.force},e.children)}let oa=i.Fragment,sa=Dn((function(e,t){let r=e,n=(0,i.useRef)(null),a=bt(function(e,t=!0){return Object.assign(e,{[yt]:t})}((e=>{n.current=e})),t),o=ut(n),s=function(e){let t=(0,i.useContext)(aa),r=(0,i.useContext)(ca),n=ut(e),[a,o]=(0,i.useState)((()=>{var e;if(!t&&null!==r)return null!=(e=r.current)?e:null;if(we.isServer)return null;let a=null==n?void 0:n.getElementById("headlessui-portal-root");if(a)return a;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)}));return(0,i.useEffect)((()=>{null!==a&&(null!=n&&n.body.contains(a)||null==n||n.body.appendChild(a))}),[a,n]),(0,i.useEffect)((()=>{t||null!==r&&o(r.current)}),[r,o,t]),a}(n),[l]=(0,i.useState)((()=>{var e;return we.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),c=(0,i.useContext)(ua),u=na();Se((()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))}),[s,l]),Se((()=>{if(l&&c)return c.register(l)}),[c,l]),ra((()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}));let d=In();return u&&s&&l?(0,ye.createPortal)(d({ourProps:{ref:a},theirProps:r,slot:{},defaultTag:oa,name:"Portal"}),l):null})),la=i.Fragment,ca=(0,i.createContext)(null),ua=(0,i.createContext)(null),da=Dn((function(e,t){let r=bt(t),{enabled:n=!0,...a}=e,o=In();return n?i.createElement(sa,{...a,ref:r}):o({ourProps:{ref:r},theirProps:a,slot:{},defaultTag:oa,name:"Portal"})})),pa=Dn((function(e,t){let{target:r,...n}=e,a={ref:bt(t)},o=In();return i.createElement(ca.Provider,{value:r},o({ourProps:a,theirProps:n,defaultTag:la,name:"Popover.Group"}))})),ma=Object.assign(da,{Group:pa});var fa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fa||{}),ga=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ga||{}),ha=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(ha||{});function ya(e,t=(e=>e)){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=rt(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{items:n,activeItemIndex:a}}let ba={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var r,n,a,i,o;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===Rn.Nothing)return{...s,activeItemIndex:null};if(t.focus===Rn.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Rn.Previous){let r=e.activeItemIndex;if(null!==r){let i=e.items[r].dataRef.current.domRef,o=An(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(n=i.current)?void 0:n.previousElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.previousElementSibling))return{...s,activeItemIndex:o}}}}else if(t.focus===Rn.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,a=An(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(i=n.current)?void 0:i.nextElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.nextElementSibling))return{...s,activeItemIndex:a}}}}let l=ya(e),c=An(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled})),i=a?e.items.indexOf(a):-1;return-1===i||i===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=ya(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...r}},6:(e,t)=>{let r=ya(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},va=(0,i.createContext)(null);function wa(e){let t=(0,i.useContext)(va);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wa),t}return t}function xa(e,t){return Ve(t.type,ba,e,t)}va.displayName="MenuContext";let _a=i.Fragment,Ea=Tn.RenderStrategy|Tn.Static,ka=i.Fragment,Sa=Dn((function(e,t){let{__demoMode:r=!1,...n}=e,a=(0,i.useReducer)(xa,{__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:s,buttonElement:l},c]=a,u=bt(t);ct(0===o,[l,s],((e,t)=>{c({type:1}),Xe(t,Ke.Loose)||(e.preventDefault(),null==l||l.focus())}));let d=Re((()=>{c({type:1})})),p=(0,i.useMemo)((()=>({open:0===o,close:d})),[o,d]),m={ref:u},f=In();return i.createElement(hn,null,i.createElement(va.Provider,{value:a},i.createElement(En,{value:Ve(o,{0:xn.Open,1:xn.Closed})},f({ourProps:m,theirProps:n,slot:p,defaultTag:_a,name:"Menu"}))))})),Ca=Dn((function(e,t){var r;let n=(0,i.useId)(),{id:a=`headlessui-menu-button-${n}`,disabled:o=!1,autoFocus:s=!1,...l}=e,[c,u]=wa("Menu.Button"),d=mn(),p=bt(t,pn(),Re((e=>u({type:7,element:e})))),m=Re((e=>{switch(e.key){case Gn.Space:case Gn.Enter:case Gn.ArrowDown:e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>u({type:0}))),u({type:2,focus:Rn.First});break;case Gn.ArrowUp:e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>u({type:0}))),u({type:2,focus:Rn.Last})}})),f=Re((e=>{e.key===Gn.Space&&e.preventDefault()})),g=Re((e=>{var t;if(Sn(e.currentTarget))return e.preventDefault();o||(0===c.menuState?((0,ye.flushSync)((()=>u({type:1}))),null==(t=c.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),u({type:0})))})),{isFocusVisible:h,focusProps:y}=ue({autoFocus:s}),{isHovered:b,hoverProps:v}=he({isDisabled:o}),{pressed:w,pressProps:x}=Ae({disabled:o}),_=(0,i.useMemo)((()=>({open:0===c.menuState,active:w||0===c.menuState,disabled:o,hover:b,focus:h,autofocus:s})),[c,b,h,w,o,s]),E=jn(d(),{ref:p,id:a,type:dt(e,c.buttonElement),"aria-haspopup":"menu","aria-controls":null==(r=c.itemsElement)?void 0:r.id,"aria-expanded":0===c.menuState,disabled:o||void 0,autoFocus:s,onKeyDown:m,onKeyUp:f,onClick:g},y,v,x);return In()({ourProps:E,theirProps:l,slot:_,defaultTag:"button",name:"Menu.Button"})})),Ra=Dn((function(e,t){var r,n;let a=(0,i.useId)(),{id:o=`headlessui-menu-items-${a}`,anchor:s,portal:l=!1,modal:c=!0,transition:u=!1,...d}=e,p=dn(s),[m,f]=wa("Menu.Items"),[g,h]=gn(p),y=fn(),[b,v]=(0,i.useState)(null),w=bt(t,p?g:null,Re((e=>f({type:8,element:e}))),v),x=ut(m.itemsElement);p&&(l=!0);let _=_n(),[E,k]=Pt(u,b,null!==_?(_&xn.Open)===xn.Open:0===m.menuState);ze(E,m.buttonElement,(()=>{f({type:1})})),ht(!m.__demoMode&&c&&0===m.menuState,x),Me(!m.__demoMode&&c&&0===m.menuState,{allowed:(0,i.useCallback)((()=>[m.buttonElement,m.itemsElement]),[m.buttonElement,m.itemsElement])});let S=!Pe(0!==m.menuState,m.buttonElement)&&E;(0,i.useEffect)((()=>{let e=m.itemsElement;e&&0===m.menuState&&e!==(null==x?void 0:x.activeElement)&&e.focus({preventScroll:!0})}),[m.menuState,m.itemsElement,x]),function(e,{container:t,accept:r,walk:n}){let a=(0,i.useRef)(r),o=(0,i.useRef)(n);(0,i.useEffect)((()=>{a.current=r,o.current=n}),[r,n]),Se((()=>{if(!t||!e)return;let r=xe(t);if(!r)return;let n=a.current,i=o.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)i(l.currentNode)}),[t,e,a,o])}(0===m.menuState,{container:m.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let C=ke(),R=Re((e=>{var t,r,n;switch(C.dispose(),e.key){case Gn.Space:if(""!==m.searchQuery)return e.preventDefault(),e.stopPropagation(),f({type:3,value:e.key});case Gn.Enter:if(e.preventDefault(),e.stopPropagation(),f({type:1}),null!==m.activeItemIndex){let{dataRef:e}=m.items[m.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}Je(m.buttonElement);break;case Gn.ArrowDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Rn.Next});case Gn.ArrowUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Rn.Previous});case Gn.Home:case Gn.PageUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Rn.First});case Gn.End:case Gn.PageDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:Rn.Last});case Gn.Escape:e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>f({type:1}))),null==(n=m.buttonElement)||n.focus({preventScroll:!0});break;case Gn.Tab:e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>f({type:1}))),nt(m.buttonElement,e.shiftKey?Ze.Previous:Ze.Next);break;default:1===e.key.length&&(f({type:3,value:e.key}),C.setTimeout((()=>f({type:4})),350))}})),A=Re((e=>{e.key===Gn.Space&&e.preventDefault()})),P=(0,i.useMemo)((()=>({open:0===m.menuState})),[m.menuState]),T=jn(p?y():{},{"aria-activedescendant":null===m.activeItemIndex||null==(r=m.items[m.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(n=m.buttonElement)?void 0:n.id,id:o,onKeyDown:R,onKeyUp:A,role:"menu",tabIndex:0===m.menuState?0:void 0,ref:w,style:{...d.style,...h,"--button-width":Te(m.buttonElement,!0).width},...At(k)}),N=In();return i.createElement(ma,{enabled:!!l&&(e.static||E)},N({ourProps:T,theirProps:d,slot:P,defaultTag:"div",features:Ea,visible:S,name:"Menu.Items"}))})),Aa=Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-menu-item-${r}`,disabled:a=!1,...o}=e,[s,l]=wa("Menu.Item"),c=null!==s.activeItemIndex&&s.items[s.activeItemIndex].id===n,u=(0,i.useRef)(null),d=bt(t,u);Se((()=>{if(!s.__demoMode&&0===s.menuState&&c&&0!==s.activationTrigger)return Ee().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[s.__demoMode,u,c,s.menuState,s.activationTrigger,s.activeItemIndex]);let p=xt(u),m=(0,i.useRef)({disabled:a,domRef:u,get textValue(){return p()}});Se((()=>{m.current.disabled=a}),[m,a]),Se((()=>(l({type:5,id:n,dataRef:m}),()=>l({type:6,id:n}))),[m,n]);let f=Re((()=>{l({type:1})})),g=Re((e=>{if(a)return e.preventDefault();l({type:1}),Je(s.buttonElement)})),h=Re((()=>{if(a)return l({type:2,focus:Rn.Nothing});l({type:2,focus:Rn.Specific,id:n})})),y=Et(),b=Re((e=>{y.update(e),!a&&(c||l({type:2,focus:Rn.Specific,id:n,trigger:0}))})),v=Re((e=>{y.wasMoved(e)&&(a||c||l({type:2,focus:Rn.Specific,id:n,trigger:0}))})),w=Re((e=>{y.wasMoved(e)&&(a||c&&l({type:2,focus:Rn.Nothing}))})),[x,_]=Qn(),[E,k]=Hn(),S=(0,i.useMemo)((()=>({active:c,focus:c,disabled:a,close:f})),[c,a,f]),C={id:n,ref:d,role:"menuitem",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-labelledby":x,"aria-describedby":E,disabled:void 0,onClick:g,onFocus:h,onPointerEnter:b,onMouseEnter:b,onPointerMove:v,onMouseMove:v,onPointerLeave:w,onMouseLeave:w},R=In();return i.createElement(_,null,i.createElement(k,null,R({ourProps:C,theirProps:o,slot:S,defaultTag:ka,name:"Menu.Item"})))})),Pa=Dn((function(e,t){let[r,n]=Qn(),a=e,o={ref:t,"aria-labelledby":r,role:"group"},s=In();return i.createElement(n,null,s({ourProps:o,theirProps:a,slot:{},defaultTag:"div",name:"Menu.Section"}))})),Ta=Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-menu-heading-${r}`,...a}=e,o=Xn();Se((()=>o.register(n)),[n,o.register]);let s={id:n,ref:t,role:"presentation",...o.props};return In()({ourProps:s,theirProps:a,slot:{},defaultTag:"header",name:"Menu.Heading"})})),Na=Dn((function(e,t){let r=e,n={ref:t,role:"separator"};return In()({ourProps:n,theirProps:r,slot:{},defaultTag:"div",name:"Menu.Separator"})})),Ia=Object.assign(Sa,{Button:Ca,Items:Ra,Item:Aa,Section:Pa,Heading:Ta,Separator:Na});function Oa(){let e=(0,i.useRef)(!1);return Se((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function La(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:za)!==i.Fragment||1===i.Children.count(e.children)}let Ba=(0,i.createContext)(null);Ba.displayName="TransitionContext";var ja=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ja||{});let Da=(0,i.createContext)(null);function Fa(e){return"children"in e?Fa(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ma(e,t){let r=Ce(e),n=(0,i.useRef)([]),a=Oa(),o=ke(),s=Re(((e,t=Nn.Hidden)=>{let i=n.current.findIndex((({el:t})=>t===e));-1!==i&&(Ve(t,{[Nn.Unmount](){n.current.splice(i,1)},[Nn.Hidden](){n.current[i].state="hidden"}}),o.microTask((()=>{var e;!Fa(n)&&a.current&&(null==(e=r.current)||e.call(r))})))})),l=Re((e=>{let t=n.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>s(e,Nn.Unmount)})),c=(0,i.useRef)([]),u=(0,i.useRef)(Promise.resolve()),d=(0,i.useRef)({enter:[],leave:[]}),p=Re(((e,r,n)=>{c.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter((([t])=>t!==e))),null==t||t.chains.current[r].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[r].push([e,new Promise((e=>{Promise.all(d.current[r].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===r?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>n(r))):n(r)})),m=Re(((e,t,r)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>r(t)))}));return(0,i.useMemo)((()=>({children:n,register:l,unregister:s,onStart:p,onStop:m,wait:u,chains:d})),[l,s,n,p,m,d,u])}Da.displayName="NestingContext";let za=i.Fragment,Va=Tn.RenderStrategy,Wa=Dn((function(e,t){let{show:r,appear:n=!1,unmount:a=!0,...o}=e,s=(0,i.useRef)(null),l=bt(...La(e)?[s,t]:null===t?[]:[t]);na();let c=_n();if(void 0===r&&null!==c&&(r=(c&xn.Open)===xn.Open),void 0===r)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,i.useState)(r?"visible":"hidden"),p=Ma((()=>{r||d("hidden")})),[m,f]=(0,i.useState)(!0),g=(0,i.useRef)([r]);Se((()=>{!1!==m&&g.current[g.current.length-1]!==r&&(g.current.push(r),f(!1))}),[g,r]);let h=(0,i.useMemo)((()=>({show:r,appear:n,initial:m})),[r,n,m]);Se((()=>{r?d("visible"):!Fa(p)&&null!==s.current&&d("hidden")}),[r,p]);let y={unmount:a},b=Re((()=>{var t;m&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),v=Re((()=>{var t;m&&f(!1),null==(t=e.beforeLeave)||t.call(e)})),w=In();return i.createElement(Da.Provider,{value:p},i.createElement(Ba.Provider,{value:h},w({ourProps:{...y,as:i.Fragment,children:i.createElement(Ua,{ref:l,...y,...o,beforeEnter:b,beforeLeave:v})},theirProps:{},defaultTag:i.Fragment,features:Va,visible:"visible"===u,name:"Transition"})))})),Ua=Dn((function(e,t){var r,n;let{transition:a=!0,beforeEnter:o,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:m,leave:f,leaveFrom:g,leaveTo:h,...y}=e,[b,v]=(0,i.useState)(null),w=(0,i.useRef)(null),x=La(e),_=bt(...x?[w,t,v]:null===t?[]:[t]),E=null==(r=y.unmount)||r?Nn.Unmount:Nn.Hidden,{show:k,appear:S,initial:C}=function(){let e=(0,i.useContext)(Ba);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[R,A]=(0,i.useState)(k?"visible":"hidden"),P=function(){let e=(0,i.useContext)(Da);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:T,unregister:N}=P;Se((()=>T(w)),[T,w]),Se((()=>{if(E===Nn.Hidden&&w.current)return k&&"visible"!==R?void A("visible"):Ve(R,{hidden:()=>N(w),visible:()=>T(w)})}),[R,w,T,N,k,E]);let I=na();Se((()=>{if(x&&I&&"visible"===R&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,R,I,x]);let O=C&&!S,L=S&&k&&C,B=(0,i.useRef)(!1),j=Ma((()=>{B.current||(A("hidden"),N(w))}),P),D=Re((e=>{B.current=!0;let t=e?"enter":"leave";j.onStart(w,t,(e=>{"enter"===e?null==o||o():"leave"===e&&(null==l||l())}))})),F=Re((e=>{let t=e?"enter":"leave";B.current=!1,j.onStop(w,t,(e=>{"enter"===e?null==s||s():"leave"===e&&(null==c||c())})),"leave"===t&&!Fa(j)&&(A("hidden"),N(w))}));(0,i.useEffect)((()=>{x&&a||(D(k),F(k))}),[k,x,a]);let M=!(!a||!x||!I||O),[,z]=Pt(M,b,k,{start:D,end:F}),V=Fn({ref:_,className:(null==(n=Pn(y.className,L&&u,L&&d,z.enter&&u,z.enter&&z.closed&&d,z.enter&&!z.closed&&p,z.leave&&f,z.leave&&!z.closed&&g,z.leave&&z.closed&&h,!z.transition&&k&&m))?void 0:n.trim())||void 0,...At(z)}),W=0;"visible"===R&&(W|=xn.Open),"hidden"===R&&(W|=xn.Closed),z.enter&&(W|=xn.Opening),z.leave&&(W|=xn.Closing);let U=In();return i.createElement(Da.Provider,{value:j},i.createElement(En,{value:W},U({ourProps:V,theirProps:y,defaultTag:za,features:Va,visible:"visible"===R,name:"Transition.Child"})))})),Ha=Dn((function(e,t){let r=null!==(0,i.useContext)(Ba),n=null!==_n();return i.createElement(i.Fragment,null,!r&&n?i.createElement(Wa,{ref:t,...e}):i.createElement(Ua,{ref:t,...e}))})),$a=Object.assign(Wa,{Child:Ha,Root:Wa});var Za=o(2784);const{useRef:Ga,useCallback:qa,useMemo:Ya}=wp.element,Ka=e=>{const t=Ga(null),r=Ga(null),n=Ga((()=>{})),a=qa((()=>{t.current&&r.current&&(n.current&&n.current(),n.current=(0,Za.n4)(t.current,r.current,e).destroy)}),[t,r,n,e]);return Ya((()=>[e=>{t.current=e,a()},e=>{r.current=e,a()}]),[t,r,a])},Xa=({placement:e="right",width:t="w-48",contentClassName:r="py-1 bg-white",trigger:n,offset:a=[0,0],children:o,disabled:s=!1,mainClassName:l=""})=>{let c="bottom-end";switch(e){case"left":c="bottom-start";break;case"right":default:c="bottom-end";break;case"top-start":c="top-start"}const[u,d]=Ka({placement:c,strategy:"fixed",modifiers:[{name:"offset",options:{offset:a}}]});switch(t?.toString()){case"48":t="w-48";break;case"60":t="w-60";break;case"72.5":t="w-[18.25rem]";break;case"80":t="w-80";break;default:t=t||"w-48"}return React.createElement(Ia,{as:"div",className:(0,y.xW)("relative",l)},(({open:e})=>React.createElement(React.Fragment,null,React.createElement(Ca,{ref:u,as:i.Fragment,disabled:s},n),React.createElement("div",{ref:d,className:"z-50"},React.createElement($a,{show:e,as:i.Fragment,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95"},React.createElement("div",{className:(0,y.xW)("mb-2 mt-4 !-mr-2 rounded-md shadow-lg",t)},React.createElement(Ra,{className:(0,y.xW)("rounded-md focus:outline-none ring-1 ring-black ring-opacity-5",r)},o)))))))};Xa.Item=Aa;const Ja=Xa,Qa=({className:e})=>React.createElement("hr",{className:(0,y.xW)("border-t-0 border-l-0 border-r-0 border-b border-border-primary",e)});var ei=o(6867),ti=o(6484);function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ri.apply(null,arguments)}const ni=(0,e.A)((0,a.A)((e=>{const{getDisableAi:t,getDisablePreview:r,getAdaptiveMode:n,getAiDesignCopilotStatus:a,getIsPersonalized:i}=e("astra-sites");return{disableAi:t(),adaptiveMode:n(),disablePreview:r(),aiCopilotStatus:a(),isPersonalized:i()}})),(0,n.A)((e=>{const{setCurrentScreen:t,setAllBlocksData:r,setFilterBlocksByCategory:n,setTokenStep:a,setActiveBlockPaletteSlug:i,setActiveBlockPalette:o,setActivePagePaletteSlug:s,setActivePagePalette:l,setBlockColorPaletteObj:c,setPageColorPaletteObj:u}=e("astra-sites");return{setCurrentScreen:t,setAllBlocksData:r,setFilterBlocksByCategory:n,setTokenStep:a,setActiveBlockPaletteSlug:i,setActiveBlockPalette:o,setActivePagePaletteSlug:s,setActivePagePalette:l,setBlockColorPaletteObj:c,setPageColorPaletteObj:u}})))((0,i.memo)((({disableAi:e,adaptiveMode:n,isPersonalized:a,setAllBlocksData:i,setFilterBlocksByCategory:o,setTokenStep:s,setActiveBlockPaletteSlug:l,setActiveBlockPalette:c,setActivePagePaletteSlug:d,setActivePagePalette:p,setBlockColorPaletteObj:m,setPageColorPaletteObj:f})=>{const{toggleOnboardingAIStep:h,resetOnboardingAISteps:b,toggleDisableAiContent:v,toggleAdaptiveMode:w,setDynamicContent:_,setFilterBlocksPagesByCategory:k,setNotice:C,toggleUpdateOnboardingImages:A}=(0,r.A)(g.U),{aiStepData:{token:T,businessDetails:I,selectedImages:L}}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return{aiStepData:t()}}),[]),{dynamicContentSyncStatus:B}=(0,t.A)((e=>{const{getDynamicContentSyncStatus:t}=e(g.U);return{dynamicContentSyncStatus:t()}})),j=async(e,t)=>{const r={key:e,value:t};try{const e=await(0,y.nr)({path:"gutenberg-templates/v1/settings",data:r,method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}});if(e.success&&i(e.blocks),!e.success)throw new Error(e?.data?.data)}catch(e){(0,ti.v)(e)}},D=[{label:()=>T&&I?(0,u.__)("Update AI","astra-sites"):React.createElement("span",{className:"flex items-center justify-start gap-2"},(0,u.__)("Personalize Library","astra-sites"),React.createElement(ei.wT,null)),description:()=>T&&I?(0,u.__)("Update the details for the AI to suggest new text and images.","astra-sites"):(0,u.__)("Add details for the AI to suggest relevant text and images.","astra-sites"),icon:React.createElement(E,{className:"text-icon-secondary h-5 w-5"}),onClick:e=>{e.preventDefault(),h(!0)},isHide:!1,isDisabled:e||!n},{label:()=>(0,u.__)("Update images","astra-sites"),description:(0,u.__)("Revise the previously entered information from AI setup.","astra-sites"),icon:React.createElement(P,{className:"text-icon-secondary h-5 w-5"}),onClick:e=>{e.preventDefault(),A()},isHide:!T||!L?.length||!a,isDisabled:e||!n||!T||!I},{label:()=>(0,u.__)("Reset AI Information","astra-sites"),description:(0,u.__)("Reset the previously entered information from AI setup and erase all the generated AI content.","astra-sites"),icon:React.createElement(S,{className:"text-icon-secondary h-5 w-5"}),onClick:()=>{if(!confirm("Are you sure you want to reset the business details and erase the generated content?"))return;const e=new window.FormData;e.append("action","ast-block-templates-reset-business-details"),e.append("security",ast_block_template_vars.reset_details_ajax_nonce),wp.apiFetch({url:ast_block_template_vars.ajax_url,method:"POST",body:e}).then((e=>{e.success?(C({type:"success",message:"Reset done successfully!"}),b(),e.data.token&&s(e.data.token),_({}),k(""),o("")):C({type:"error",message:"Reset Failed!"})}))},isHide:e||"yes"!==ast_block_template_vars.debug_mode||!n,isDisabled:!1},{label:()=>React.createElement("div",{className:"flex justify-between"},React.createElement("span",null,(0,u.__)("Disable AI","astra-sites")),React.createElement("button",{type:"button",className:(0,y.xW)("bg-gray-200 relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-accent-spectra focus:ring-offset-2",e?"bg-accent-spectra":"bg-gray-200"),role:"switch","aria-checked":"false",onClick:()=>{v(!e),j("disable_ai",!e)}},React.createElement("span",{className:"sr-only"},"Use setting"),React.createElement("span",{"aria-hidden":"true",className:(0,y.xW)("translate-x-0 pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",e?"translate-x-5":"translate-x-0")}))),description:(0,u.__)("This option will preview & import only wireframe (default) content and images.","astra-sites"),icon:React.createElement(N,{className:"text-icon-secondary h-5 w-5"}),onClick:()=>{},isHide:!I,isDisabled:!n},{label:()=>React.createElement("div",{className:"flex justify-between"},React.createElement("span",null,(0,u.__)("Adaptive Mode","astra-sites")),React.createElement("button",{type:"button",className:(0,y.xW)("bg-gray-200 relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-accent-spectra focus:ring-offset-2",n?"bg-accent-spectra":"bg-gray-200"),role:"switch","aria-checked":"true",onClick:async()=>{w(!0),j("adaptive_mode",!n),n&&!e&&v(!0),!n&&e&&v(!0);const t=new window.FormData;t.append("action","ast_block_templates_color_palette"),t.append("_ajax_nonce",ast_block_template_vars._ajax_nonce),t.append("adaptive_mode",!n);const r=await(0,y.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:t});r&&(l("style-1"),c(r.data?.block["style-1"]),m(r.data?.block),d("style-1"),p(r.data?.page["style-1"]),f(r.data?.page))}},React.createElement("span",{className:"sr-only"},"Use setting"),React.createElement("span",{"aria-hidden":"true",className:(0,y.xW)("translate-x-0 pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",n?"translate-x-5":"translate-x-0")}))),description:(0,u.__)("Disabling Adaptive Mode shows templates without personalized text, images, and theme styling.","astra-sites"),icon:React.createElement(O,{className:"text-icon-secondary h-5 w-5"}),onClick:()=>{}}];return React.createElement(Ja,{trigger:React.createElement(x,{disabled:Object.values(B).some((e=>!!e)),tooltip:"Settings"},React.createElement(R,{className:"h-6 w-6"})),align:"top",placement:"right",width:"w-[358px]",contentClassName:"px-2 py-3 bg-white border border-solid border-border-primary",wrapperClassName:"shadow-large"},D.map(((e,t)=>e.isHide?null:React.createElement("div",{key:t},React.createElement(Ja.Item,ri({as:"div",className:(0,y.xW)(e.isHide?"hidden":"","px-2 py-3 grid grid-cols-1 gap-y-1 gap-x-2 justify-center h-fit transition duration-150 ease-in-out rounded-md hover:bg-background-secondary",e.isDisabled&&"opacity-50 cursor-not-allowed pointer-events-none")},{onClick:e.onClick}),React.createElement("div",{className:"flex flex-col items-start gap-1"},React.createElement("span",{className:"text-base font-medium leading-6 text-nav-inactive w-full"},e.label()),React.createElement("p",{className:"m-0 text-sm text-border-secondary leading-5 font-normal"},"function"==typeof e.description?e.description():e.description))),t!==D.length-1&&React.createElement(Qa,{className:"p-0 mx-2 my-4"})))))})));var ai=o(2988),ii=o(9583);const oi=()=>{const{setCreditsDetails:e}=(0,r.A)(g.U),{percentage:n,total:a,used:i,status:o,flatRates:{patternsLibrary:s,pagesLibrary:l,patternsCategory:c,pagesCategory:u},free_user:d}=(0,t.A)((e=>{const{getCreditsDetails:t}=e(g.U);return t()}),[]),p=a-i,m=p/a*100,f=e=>{const t={normal:!1,warning:!1,danger:!1};return e<=10?t.danger=!0:e<=20?t.warning=!0:t.normal=!0,t};return{percentage:n,remainingPercentage:m,total:a,used:i,remaining:p,status:o,patternsLibraryRate:s,pagesLibraryRate:l,patternsCategoryRate:c,pagesCategoryRate:u,creditsColorClassName:(0,y.Iq)(n),formatNumber:y.ZV,setCreditsDetails:e,currentBalanceStatus:f(m),getBalanceStatus:f,isFreeUser:d}};function si(e,t,r,n){let a=Ce(r);(0,i.useEffect)((()=>{function r(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}),[e,t,n])}var li=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(li||{});let ci=Dn((function(e,t){var r;let{features:n=1,...a}=e,i={ref:t,"aria-hidden":!(2&~n)||(null!=(r=a["aria-hidden"])?r:void 0),hidden:!(4&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}};return In()({ourProps:i,theirProps:a,slot:{},defaultTag:"span",name:"Hidden"})})),ui=(0,i.createContext)(null);function di({children:e,node:t}){let[r,n]=(0,i.useState)(null),a=pi(null!=t?t:r);return i.createElement(ui.Provider,{value:a},e,null===a&&i.createElement(ci,{features:li.Hidden,ref:e=>{var t,r;if(e)for(let a of null!=(r=null==(t=xe(e))?void 0:t.querySelectorAll("html > *, body > *"))?r:[])if(a!==document.body&&a!==document.head&&a instanceof HTMLElement&&null!=a&&a.contains(e)){n(a);break}}}))}function pi(e=null){var t;return null!=(t=(0,i.useContext)(ui))?t:e}let mi=(0,i.createContext)((()=>{}));function fi({value:e,children:t}){return i.createElement(mi.Provider,{value:e},t)}var gi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(gi||{});function hi(e,t){let r=(0,i.useRef)([]),n=Re(e);(0,i.useEffect)((()=>{let e=[...r.current];for(let[a,i]of t.entries())if(r.current[a]!==i){let a=n(t,e);return r.current=t,a}}),[n,...t])}let yi=[];function bi(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||yi[0]===e.target)return;let t=e.target;t=t.closest(We),yi.unshift(null!=t?t:e.target),yi=yi.filter((e=>null!=e&&e.isConnected)),yi.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();var vi=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(vi||{});let wi=Dn((function(e,t){let r=(0,i.useRef)(null),n=bt(r,t),{initialFocus:a,initialFocusFallback:o,containers:s,features:l=15,...c}=e;na()||(l=0);let u=ut(r);!function(e,{ownerDocument:t}){let r=!!(8&e),n=function(e=!0){let t=(0,i.useRef)(yi.slice());return hi((([e],[r])=>{!0===r&&!1===e&&_e((()=>{t.current.splice(0)})),!1===r&&!0===e&&(t.current=yi.slice())}),[e,yi,t]),Re((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(r);hi((()=>{r||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&et(n())}),[r]),ra((()=>{r&&et(n())}))}(l,{ownerDocument:u});let d=function(e,{ownerDocument:t,container:r,initialFocus:n,initialFocusFallback:a}){let o=(0,i.useRef)(null),s=Be(!!(1&e),"focus-trap#initial-focus"),l=Oa();return hi((()=>{if(0===e)return;if(!s)return void(null!=a&&a.current&&et(a.current));let i=r.current;i&&_e((()=>{if(!l.current)return;let r=null==t?void 0:t.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===r)return void(o.current=r)}else if(i.contains(r))return void(o.current=r);if(null!=n&&n.current)et(n.current);else{if(16&e){if(at(i,Ze.First|Ze.AutoFocus)!==Ge.Error)return}else if(at(i,Ze.First)!==Ge.Error)return;if(null!=a&&a.current&&(et(a.current),(null==t?void 0:t.activeElement)===a.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=null==t?void 0:t.activeElement}))}),[a,s,e]),o}(l,{ownerDocument:u,container:r,initialFocus:a,initialFocusFallback:o});!function(e,{ownerDocument:t,container:r,containers:n,previousActiveElement:a}){let i=Oa(),o=!!(4&e);si(null==t?void 0:t.defaultView,"focus",(e=>{if(!o||!i.current)return;let t=bi(n);r.current instanceof HTMLElement&&t.add(r.current);let s=a.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?_i(t,l)?(a.current=l,et(l)):(e.preventDefault(),e.stopPropagation(),et(s)):et(a.current)}),!0)}(l,{ownerDocument:u,container:r,containers:s,previousActiveElement:d});let p=function(){let e=(0,i.useRef)(0);return lt(!0,"keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=Re((e=>{let t=r.current;t&&Ve(p.current,{[gi.Forwards]:()=>{at(t,Ze.First,{skipElements:[e.relatedTarget,o]})},[gi.Backwards]:()=>{at(t,Ze.Last,{skipElements:[e.relatedTarget,o]})}})})),f=Be(!!(2&l),"focus-trap#tab-lock"),g=ke(),h=(0,i.useRef)(!1),y={ref:n,onKeyDown(e){"Tab"==e.key&&(h.current=!0,g.requestAnimationFrame((()=>{h.current=!1})))},onBlur(e){if(!(4&l))return;let t=bi(s);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(_i(t,n)||(h.current?at(r.current,Ve(p.current,{[gi.Forwards]:()=>Ze.Next,[gi.Backwards]:()=>Ze.Previous})|Ze.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&et(e.target)))}},b=In();return i.createElement(i.Fragment,null,f&&i.createElement(ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:li.Focusable}),b({ourProps:y,theirProps:c,defaultTag:"div",name:"FocusTrap"}),f&&i.createElement(ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:li.Focusable}))})),xi=Object.assign(wi,{features:vi});function _i(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var Ei=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ei||{}),ki=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ki||{});let Si={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Ci=(0,i.createContext)(null);function Ri(e){let t=(0,i.useContext)(Ci);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ri),t}return t}function Ai(e,t){return Ve(t.type,Si,e,t)}Ci.displayName="DialogContext";let Pi=Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-dialog-${r}`,open:a,onClose:o,initialFocus:s,role:l="dialog",autoFocus:c=!0,__demoMode:u=!1,unmount:d=!1,...p}=e,m=(0,i.useRef)(!1);l="dialog"===l||"alertdialog"===l?l:(m.current||(m.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let f=_n();void 0===a&&null!==f&&(a=(f&xn.Open)===xn.Open);let g=(0,i.useRef)(null),h=bt(g,t),y=ut(g),b=a?0:1,[v,w]=(0,i.useReducer)(Ai,{titleId:null,descriptionId:null,panelRef:(0,i.createRef)()}),x=Re((()=>o(!1))),_=Re((e=>w({type:0,id:e}))),E=!!na()&&0===b,[k,S]=function(){let e=(0,i.useContext)(ua),t=(0,i.useRef)([]),r=Re((r=>(t.current.push(r),e&&e.register(r),()=>n(r)))),n=Re((r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)})),a=(0,i.useMemo)((()=>({register:r,unregister:n,portals:t})),[r,n,t]);return[t,(0,i.useMemo)((()=>function({children:e}){return i.createElement(ua.Provider,{value:a},e)}),[a])]}(),C={get current(){var e;return null!=(e=v.panelRef.current)?e:g.current}},R=pi(),{resolveContainers:A}=function({defaultContainers:e=[],portals:t,mainTreeNode:r}={}){let n=ut(r),a=Re((()=>{var a,i;let o=[];for(let t of e)null!==t&&(t instanceof HTMLElement?o.push(t):"current"in t&&t.current instanceof HTMLElement&&o.push(t.current));if(null!=t&&t.current)for(let e of t.current)o.push(e);for(let e of null!=(a=null==n?void 0:n.querySelectorAll("html > *, body > *"))?a:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(r&&(e.contains(r)||e.contains(null==(i=null==r?void 0:r.getRootNode())?void 0:i.host))||o.some((t=>e.contains(t)))||o.push(e));return o}));return{resolveContainers:a,contains:Re((e=>a().some((t=>t.contains(e)))))}}({mainTreeNode:R,portals:k,defaultContainers:[C]}),P=null!==f&&(f&xn.Closing)===xn.Closing;Me(!u&&!P&&E,{allowed:Re((()=>{var e,t;return[null!=(t=null==(e=g.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]})),disallowed:Re((()=>{var e;return[null!=(e=null==R?void 0:R.closest("body > *:not(#headlessui-portal-root)"))?e:null]}))}),ct(E,A,(e=>{e.preventDefault(),x()})),function(e,t=("undefined"!=typeof document?document.defaultView:null),r){let n=Be(e,"escape");si(t,"keydown",(e=>{n&&(e.defaultPrevented||e.key===Gn.Escape&&r(e))}))}(E,null==y?void 0:y.defaultView,(e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),x()})),ht(!u&&!P&&E,y,A),ze(E,g,x);let[T,N]=Hn(),I=(0,i.useMemo)((()=>[{dialogState:b,close:x,setTitleId:_,unmount:d},v]),[b,v,x,_,d]),O=(0,i.useMemo)((()=>({open:0===b})),[b]),L={ref:h,id:n,role:l,tabIndex:-1,"aria-modal":u?void 0:0===b||void 0,"aria-labelledby":v.titleId,"aria-describedby":T,unmount:d},B=!function(){var e;let[t]=(0,i.useState)((()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null)),[r,n]=(0,i.useState)(null!=(e=null==t?void 0:t.matches)&&e);return Se((()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){n(e.matches)}}),[t]),r}(),j=vi.None;E&&!u&&(j|=vi.RestoreFocus,j|=vi.TabLock,c&&(j|=vi.AutoFocus),B&&(j|=vi.InitialFocus));let D=In();return i.createElement(kn,null,i.createElement(ia,{force:!0},i.createElement(ma,null,i.createElement(Ci.Provider,{value:I},i.createElement(pa,{target:g},i.createElement(ia,{force:!1},i.createElement(N,{slot:O},i.createElement(S,null,i.createElement(xi,{initialFocus:s,initialFocusFallback:g,containers:A,features:j},i.createElement(fi,{value:x},D({ourProps:L,theirProps:p,slot:O,defaultTag:Ti,features:Ni,visible:0===b,name:"Dialog"})))))))))))})),Ti="div",Ni=Tn.RenderStrategy|Tn.Static,Ii=Dn((function(e,t){let{transition:r=!1,open:n,...a}=e,o=_n(),s=e.hasOwnProperty("open")||null!==o,l=e.hasOwnProperty("onClose");if(!s&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===n&&!r||a.static?i.createElement(di,null,i.createElement(Pi,{ref:t,open:n,...a})):i.createElement(di,null,i.createElement($a,{show:n,transition:r,unmount:a.unmount},i.createElement(Pi,{ref:t,...a})))})),Oi=Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-dialog-panel-${r}`,transition:a=!1,...o}=e,[{dialogState:s,unmount:l},c]=Ri("Dialog.Panel"),u=bt(t,c.panelRef),d=(0,i.useMemo)((()=>({open:0===s})),[s]),p={ref:u,id:n,onClick:Re((e=>{e.stopPropagation()}))},m=a?Ha:i.Fragment,f=a?{unmount:l}:{},g=In();return i.createElement(m,{...f},g({ourProps:p,theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Panel"}))})),Li=(Dn((function(e,t){let{transition:r=!1,...n}=e,[{dialogState:a,unmount:o}]=Ri("Dialog.Backdrop"),s=(0,i.useMemo)((()=>({open:0===a})),[a]),l={ref:t,"aria-hidden":!0},c=r?Ha:i.Fragment,u=r?{unmount:o}:{},d=In();return i.createElement(c,{...u},d({ourProps:l,theirProps:n,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))})),Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-dialog-title-${r}`,...a}=e,[{dialogState:o,setTitleId:s}]=Ri("Dialog.Title"),l=bt(t);(0,i.useEffect)((()=>(s(n),()=>s(null))),[n,s]);let c=(0,i.useMemo)((()=>({open:0===o})),[o]),u={ref:l,id:n};return In()({ourProps:u,theirProps:a,slot:c,defaultTag:"h2",name:"Dialog.Title"})}))),Bi=Object.assign(Ii,{Panel:Oi,Title:Li,Description:Zn});const ji=({open:e=!1,setOpen:t,width:r=520,overflowHidden:n=!0,children:a,overlayClassName:o="",closeButton:s=!0,className:l})=>{let c="max-w-[35rem]";switch(r?.toString()){case"640":c="sm:max-w-[40rem]";break;case"520":c="sm:max-w-[32.5rem]";break;case"464":c="sm:max-w-[29rem]";break;case"300":c="sm:max-w-[24rem]";break;default:c="sm:max-w-[35rem]"}return React.createElement($a.Root,{show:e||!1,as:i.Fragment},React.createElement(Bi,{as:"div",className:"spectra-ai relative z-[99999999]",onClose:t},React.createElement($a.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},React.createElement("div",{className:(0,y.xW)("fixed inset-10 bg-background-tertiary/80 transition-opacity backdrop-blur-[20px] rounded-lg",o)})),React.createElement("div",{className:"fixed inset-0 z-10 overflow-y-auto"},React.createElement("div",{className:"flex min-h-full items-center justify-center p-4 text-center sm:items-center sm:p-0"},React.createElement($a.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},React.createElement(Bi.Panel,{className:(0,y.xW)("relative w-full transform rounded-lg bg-white px-8 pt-8 pb-6 text-left shadow-xl transition-all sm:my-8 sm:w-full",c,n&&"overflow-hidden",l)},s&&React.createElement("div",{className:"absolute right-0 top-0 pr-3 pt-3 block"},React.createElement("button",{type:"button",className:"rounded-md bg-white text-nav-inactive hover:text-nav-active outline-none border-0 focus:outline-none transition duration-150 ease-in-out cursor-pointer",onClick:()=>t(!1)},React.createElement("span",{className:"sr-only"},"Close"),React.createElement(f,{className:"h-5 w-5","aria-hidden":"true"}))),React.createElement("div",{className:"space-y-6"},a)))))))},Di=({children:e,className:t,as:r="h5"})=>React.createElement(Bi.Title,{as:r,className:(0,y.xW)("flex items-center text-2xl font-semibold leading-8 text-heading-text space-x-3",t)},e);ji.Title=Di;const Fi=ji;function Mi({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const zi=i.forwardRef(Mi);var Vi=o(6041);const Wi=({open:e,setOpen:t,title:r,description:n,confirmBtnTitle:a="Confirm",cancelBtnTitle:o="Cancel",onClickConfirm:s,onClickCancel:l,variant:c="danger"})=>{const[u,d]=(0,i.useState)(!1),p={iconBackground:{info:"bg-alert-info-bg",danger:"bg-alert-error-bg"},icon:{info:React.createElement(zi,{className:"w-8 h-8 text-alert-info"}),danger:React.createElement(zi,{className:"w-8 h-8 text-alert-error"})},confirmButton:{info:{className:"!w-auto"},danger:{className:"bg-alert-error border-alert-error text-white"}}};return React.createElement(Fi,{open:e,setOpen:t,overlayClassName:"bg-border-secondary/80",width:640},React.createElement("div",{className:"flex items-start justify-start gap-4"},React.createElement("span",{className:(0,y.xW)("w-auto h-auto flex items-center justify-center p-3 bg-alert-error-bg rounded-full",p.iconBackground[c])},p.icon[c]??p.icon.danger),React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"space-y-2"},React.createElement(Fi.Title,{className:"!text-[1.375rem]"},r),React.createElement("p",{className:"m-0 text-base font-normal text-body-text"},n)),React.createElement("div",{className:"flex items-center justify-start gap-3"},React.createElement(ii.A,{ref:e=>{e&&setTimeout((()=>{if(0===e.offsetWidth)return;const t=e.offsetWidth;e.style.width=`${t}px`}),350)},className:(0,y.xW)(p.confirmButton[c].className),variant:"primary",onClick:async e=>{u||(d(!0),"function"==typeof s&&(await s(e),d(!1)))}},u?React.createElement(Vi.A,null):a),React.createElement(ii.A,{className:"bg-white border-border-primary text-nav-inactive",variant:"primary",onClick:e=>{"function"==typeof l&&l(e,!1)}},o)))))},Ui=()=>{const{resetOnboardingAISteps:e}=(0,r.A)(g.U),{token:n,importInProgress:a}=(0,t.A)((e=>{const{getAIStepData:t,getImportInProgress:r}=e(g.U);return{importInProgress:r(),token:t()}}),[]),{status:o,remaining:s,currentBalanceStatus:l}=oi(),[c,d]=(0,i.useState)(!1),p=e=>()=>{window.open(ast_block_template_vars.get_more_credits_url,"_blank"),"function"==typeof e&&e()},m=(0,i.useCallback)((async()=>{try{(await(0,y.nr)({path:"gutenberg-templates/v1/revoke-access",method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}})).success&&e()}catch(e){(0,ti.v)(e)}finally{d(!1)}}),[]);return"success"===o&&n?React.createElement(React.Fragment,null,React.createElement(Ja,{trigger:({open:e})=>React.createElement("button",{className:(0,y.xW)("min-h-[36px] flex items-center justify-center group text-sm leading-[21px] font-normal text-body-text border border-solid border-border-primary focus:outline-none bg-transparent lg:pl-3 rounded cursor-pointer pl-0",e&&"bg-background-secondary",l.danger&&"bg-credit-danger/5 text-credit-danger border-credit-danger/5",l.warning&&"bg-credit-warning/5 text-credit-warning border-credit-warning/5",a&&"disable-click-action")},React.createElement("span",{className:"hidden lg:inline"},(0,y.ZV)(s)),React.createElement("span",{className:"p-2 flex items-center justify-center"},React.createElement(ai.A,{className:(0,y.xW)("w-5 h-5 text-nav-inactive group-active:text-nav-active transition-colors duration-150 ease-in-out",l.danger&&"text-credit-danger",l.warning&&"text-credit-warning")}))),placement:"right",width:"w-64",contentClassName:"border border-solid border-border-primary pt-3 pb-4 px-4 bg-white"},React.createElement(Ja.Item,null,(({close:e})=>React.createElement("div",{className:"w-full space-y-4",onClick:e=>{e.stopPropagation(),e.preventDefault()},role:"button",tabIndex:"0",onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault())}},React.createElement("div",{className:"w-full space-y-2"},React.createElement("div",{className:"flex items-center justify-between w-"},React.createElement("span",{className:"text-sm font-medium text-heading-text"},s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ",(0,u.__)("AI Credits in Your Account","astra-sites")))),React.createElement("p",{className:"m-0 text-border-secondary text-sm font-normal leading-5"},"Credits are used to personalize templates with AI."),React.createElement(ii.A,{className:"w-full bg-background-tertiary text-accent-spectra",variant:"blank",onClick:p(e),isSmall:!0},(0,u.__)("Buy AI Credits","astra-sites")))))),React.createElement(Wi,{open:c,setOpen:d,title:(0,u.__)("Revoke Access","astra-sites"),description:`${(0,u.__)("Are you sure you wish to revoke the authorization token?","astra-sites")}\n${(0,u.__)("You will need to re-authorize Zip to use it again.","astra-sites")}`,confirmBtnTitle:(0,u.__)("Revoke","astra-sites"),cancelBtnTitle:(0,u.__)("Cancel","astra-sites"),onClickCancel:()=>d(!1),onClickConfirm:m})):null};function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hi.apply(null,arguments)}const{post:$i}=wp.ajax,Zi=(0,e.A)((0,n.A)((e=>{const{setNotice:t}=e(g.U),{setAllPages:r,setSitePreview:n,setCurrentScreen:a,setFilterPagesBySearchTerm:i,setFilterBlocksBySearchTerm:o,setAllBlocksData:s,setAllCategories:l,setOnboardingAiPopup:c}=e(g.U);return{setNotice:t,updateCurrentScreen(e){r([]),n({}),i(""),o(""),a(e)},setAllBlocksData:s,setAllCategories:l,setOnboardingAiPopup:c}})),(0,a.A)((e=>{const{getNotice:t,getDynamicContentSyncStatus:r,getCurrentScreen:n,getShowPagesOnboarding:a,getAdaptiveMode:i,getDisableAi:o}=e(g.U);return{notice:t(),dynamicContentSyncStatus:r(),currentScreen:n(),showPagesOnboarding:a(),adaptiveMode:i(),disableAi:o()}})))((0,i.memo)((({setNotice:e,dynamicContentSyncStatus:n,setAllBlocksData:a,setAllCategories:o,adaptiveMode:s,disableAi:l})=>{const c=e=>(e.returnValue=(0,u.__)("Are you sure you want to cancel the content generation process?","astra-sites"),e);(0,i.useEffect)((()=>{if(Object.values(n).some((e=>!!e)))return window.addEventListener("beforeunload",c),()=>window.removeEventListener("beforeunload",c)}),[n]);const{setTogglePopup:d,setAllSites:m,setBackgroundSyncStatus:b}=(0,r.A)(g.U),{stepData:v,syncProgressStatus:w}=(0,t.A)((e=>{const{getOnboardingAI:t,getBackgroundSyncStatus:r}=e(g.U);return{...t(),syncProgressStatus:r()}}),[]),_="yes"===w?"Library syncing is in progress. Refresh the page for updates.":"Sync Library",[E,k]=(0,i.useState)({isProcessing:"",buttonText:_}),{isProcessing:S,buttonText:C}=E,R=async(t,r)=>{await $i({action:"ast-block-templates-import-sites",page_no:t,total:r,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((n=>{n.status?(k({isProcessing:"process",buttonText:`Imported ${t} of ${r} site..`}),t===r&&(o(n.data?.categories),a(n.data?.allBlocks),m(n.data?.allSites),e({type:"success"}),b("no"),k({isProcessing:"complete",buttonText:"Sync Complete"}))):k({isProcessing:"error",buttonText:`Error ${n.data}`})}))},A=async(e,t)=>{await $i({action:"ast-block-templates-import-blocks",page_no:e,total:t,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((r=>{r.status?(k({isProcessing:"process",buttonText:`Imported ${e} of ${t} block..`}),e===t&&(async()=>{await $i({action:"ast-block-templates-get-sites-request-count",_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((e=>{if(e.status){k({isProcessing:"process",buttonText:"Importing Sites.."});const t=e.data;for(let e=1;e<=t;e++)R(e,t)}else k({isProcessing:"complete",buttonText:"Importing Sites Failed"})})).fail((e=>{h("fail",e)}))})()):k({isProcessing:"error",buttonText:`Error ${r.data}`})}))};return React.createElement("div",{className:"justify-self-end flex items-center gap-0.5 sm:gap-1 md:gap-3 w-max"},React.createElement("span",{className:"hidden sm:inline"},s&&!l&&React.createElement(Ui,null)),(()=>{let e=!0;return v.token&&(e=!0),e})()&&React.createElement(x,Hi({className:(0,y.xW)("relative","process"===S&&"cursor-not-allowed"),disabled:Object.values(n).some((e=>!!e)),tooltip:_},"process"!==S&&{onClick:t=>{t.preventDefault(),Object.values(n).some((e=>!!e))||(e({type:"info"}),k({isProcessing:"process",buttonText:"Syncing library.."}),(async()=>{try{await $i({action:"ast-block-templates-check-sync-library-status",_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((async t=>{if(t.status)if("updated"===t.data)k({isProcessing:"complete",buttonText:"Library is up-to date!"}),e({type:"success"}),b("no");else{const e=t.data.pages;for(let t=1;t<=e;t++)await A(t,e)}else e({type:"error",message:`Error! ${t.message}`}),k({isProcessing:"complete",buttonText:`Error! ${t.message}`})})).fail((e=>{h("fail",e)}))}catch(e){h("Complete: Failed",e)}})())}}),React.createElement("span",{className:(0,y.xW)("inline-flex","process"===S&&"animate-spin")},React.createElement(p,{className:"h-6 w-6"})),React.createElement("span",{className:"sr-only"},C),"yes"===w&&React.createElement("div",{className:"absolute bottom-0.5 flex justify-center items-center gap-2 px-1 pb-px rounded border border-solid border-credit-warning bg-credit-warning shadow-sync-badge"},React.createElement("span",{className:"text-white text-[10px] font-medium leading-[15px]"},(0,u.__)("Syncing","astra-sites")))),React.createElement("span",{className:"sm:flex hidden"},React.createElement(ni,null)),React.createElement("div",{className:"w-px h-5 bg-border-primary"}),React.createElement(x,{onClick:()=>{d(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),(0,y.D6)("ast-import-id"),(0,y.D6)("ast-free-ai-content"),(0,y.D6)("ast-sites-visible-items"),(0,y.D6)("ast-sites-scroll-position"),(0,y.D6)("ast-pages-scroll-position"),(0,y.D6)("ast-pages-visible-items")},tooltip:"Close"},React.createElement(f,{className:"size-4 sm:size-6"})))}))),Gi=()=>React.createElement("div",{className:"flex items-center gap-2"},!ast_block_template_vars.is_white_label&&("active"===ast_block_template_vars.astra_sites_status||"active"===ast_block_template_vars.astra_sites_pro_status?React.createElement(ei.fp,{className:"w-[1.8rem] h-[1.8rem]"}):React.createElement(ei.y0,{className:"w-[1.8rem] h-[1.8rem]"})),React.createElement("span",{className:"text-[1.15rem] font-semibold text-heading-text leading-[1.875rem] hidden md:inline"},(0,u.__)("Design Library","astra-sites")));function qi({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Yi=i.forwardRef(qi);function Ki({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Xi=i.forwardRef(Ki),Ji=[{name:(0,u.__)("Patterns","astra-sites"),slug:"all-blocks-grid"},{name:(0,u.__)("Pages","astra-sites"),slug:"all-block-pages-grid",childScreens:["single-block-page-full-preview"]},{name:(0,u.__)("Kits","astra-sites"),slug:"all-sites-grid",childScreens:["all-single-site-pages"]},{name:(0,u.__)("Favorites","astra-sites"),slug:"all-favorites"}],Qi=(0,e.A)((0,a.A)((e=>{const{getFavorites:t,getSitePreview:r,getCurrentScreen:n}=e("astra-sites");return{favorites:t(),preview:r(),currentScreen:n()}})),(0,n.A)((e=>{const{setAllPages:t,setSitePreview:r,setTogglePopup:n,setCurrentScreen:a,setFilterPagesBySearchTerm:i,setFilterBlocksBySearchTerm:o,setFilterBlocksPagesBySearchTerm:s,setFilterSitesBySearchTerm:l}=e("astra-sites");return{updateCurrentScreen(e){t([]),r({}),i(""),o(""),s(""),l(""),a(e)},onSetSitePreview:r,onSetTogglePopup:n}})))((0,i.memo)((({currentScreen:e,updateCurrentScreen:r})=>{const{importInProgress:n}=(0,t.A)((e=>{const{getImportInProgress:t}=e(g.U);return{importInProgress:t()}}),[]),[a,o]=(0,i.useState)(0),[s,l]=(0,i.useState)(window.innerWidth<830);(0,i.useEffect)((()=>{const e=()=>l(window.innerWidth<830);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[window.innerWidth]);const c=(t,n)=>{t.preventDefault(),n!==e&&"function"==typeof r&&(r(n),(0,y.D6)("ast-sites-scroll-position"),(0,y.D6)("ast-pages-scroll-position"))},u=e=>()=>{o((t=>Math.max(0,Math.min(t+e,Ji.length-2))))},d=s?Ji.slice(a,a+2):Ji;return React.createElement("div",{className:"h-full flex items-center justify-self-center sm:justify-start mx-2 md:ml-12"},s&&a>0&&React.createElement(Yi,{className:"h-5 w-5 text-secondary-text cursor-pointer",onClick:u(-1)}),d.map(((t,r)=>{return React.createElement("div",{key:r,className:(0,y.xW)("cursor-pointer h-full flex items-center relative px-3.5 md:px-7 py-1.5 md:py-3 font-semibold text-sm md:text-base text-secondary-text md:max-lg:px-5 md:max-lg:py-2",(a=t.slug,(a===e||t?.childScreens?.includes(e))&&'text-nav-active bg-background-tertiary after:content-[""] after:absolute after:bottom-0 after:right-0 after:w-full after:h-px after:bg-accent-spectra transition duration-150 ease-in-out'),n&&"disable-click-action"),onClick:e=>c(e,t.slug),role:"button",tabIndex:"0",onKeyDown:e=>"Enter"===e.key?c(e,t.slug):null},React.createElement("span",null,t.name));var a})),s&&a<Ji.length-2&&React.createElement(Xi,{className:"h-5 w-5 text-secondary-text cursor-pointer",onClick:u(1)}))}))),eo=()=>React.createElement("div",{className:"spectra-ai h-14 md:h-[4.5rem] w-full flex justify-between items-center bg-white border-0 border-b border-solid border-b-border-primary px-2.5 md:px-5"},React.createElement(Gi,null),React.createElement(Qi,null),React.createElement(Zi,null));function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},to.apply(null,arguments)}const ro=(0,i.forwardRef)((({type:e=1,className:t,...r},n)=>React.createElement("div",to({ref:n,className:(0,y.xW)("p-4 w-full h-[calc(100vh_/_3)]",t)},r),(()=>{switch(e.toString()){case"1":return React.createElement("div",{className:"w-full h-full grid grid-cols-12 grid-rows-1 items-stretch space-x-5 2xl:space-x-9 bg-white pt-8 2xl:pt-[3.375rem] px-4 2xl:px-8 border border-solid border-border-primary overflow-hidden"},React.createElement("div",{className:"col-span-5 space-y-2.5"},React.createElement("div",{className:"h-3 2xl:h-6 w-full overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-6 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-3 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-3 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"w-2/5 flex items-center gap-2"},React.createElement("div",{className:"h-2.5 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2.5 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-2/5 last:!mt-5 flex justify-between items-center"},React.createElement("div",{className:"h-3 2xl:h-5 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-5 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}))),React.createElement("div",{className:"col-span-7 h-full overflow-hidden relative bg-gray-200","data-placeholder":!0}));case"2":return React.createElement("div",{className:"w-full h-full grid grid-cols-1 grid-rows-6 gap-y-2 items-stretch bg-white pt-8 2xl:pt-[3.375rem] px-4 2xl:px-8 border border-solid border-border-primary overflow-hidden"},React.createElement("div",{className:"row-span-2 flex items-start justify-between gap-8"},React.createElement("div",{className:"w-1/2 space-y-2"},React.createElement("div",{className:"h-3 2xl:h-6 w-full overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-6 w-4/5 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-1/2 space-y-2"},React.createElement("div",{className:"h-2 2xl:h-3 w-full overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-3 w-3/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-6 w-1/4 last:!mt-2.5 overflow-hidden relative bg-gray-200","data-placeholder":!0}))),React.createElement("div",{className:"row-span-4 h-full overflow-hidden relative bg-gray-200","data-placeholder":!0}));case"3":return React.createElement("div",{className:"w-full h-full grid grid-cols-1 grid-rows-6 items-stretch bg-white pt-8 2xl:pt-[3.375rem] px-4 2xl:px-8 border border-solid border-border-primary overflow-hidden"},React.createElement("div",{className:"row-span-4 flex items-start space-x-4 2xl:space-x-8 justify-between"},React.createElement("div",{className:"w-1/2 space-y-2.5"},React.createElement("div",{className:"h-3 2xl:h-6 w-3/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-6 w-2/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-3 w-3/5 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-3 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-1/2 h-full flex items-center gap-2"},React.createElement("div",{className:"h-full w-full overflow-hidden relative bg-gray-200","data-placeholder":!0}))),React.createElement("div",{className:"row-span-2 w-full flex items-center justify-between gap-2"},React.createElement("div",{className:"w-1/3 space-y-2.5"},React.createElement("div",{className:"h-2 2xl:h-4 w-2/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-1/3 space-y-2.5"},React.createElement("div",{className:"h-2 2xl:h-4 w-2/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-1/3 space-y-2.5"},React.createElement("div",{className:"h-2 2xl:h-4 w-2/4 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}))));default:return React.createElement("div",{className:"w-full h-full grid grid-cols-12 grid-rows-1 items-stretch space-x-3 2xl:space-x-9 bg-white pt-8 2xl:pt-[3.375rem] px-4 2xl:px-8 border border-solid border-border-primary overflow-hidden"},React.createElement("div",{className:"col-span-5 space-y-2.5"},React.createElement("div",{className:"h-3 2xl:h-6 w-full overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-3 2xl:h-6 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-1.5 2xl:h-3 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-1.5 2xl:h-3 w-10/12 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"w-2/5 flex items-center gap-2"},React.createElement("div",{className:"h-2 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2 2xl:h-4 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0})),React.createElement("div",{className:"w-2/5 last:!mt-5 flex justify-between items-center"},React.createElement("div",{className:"h-2.5 2xl:h-5 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}),React.createElement("div",{className:"h-2.5 2xl:h-5 w-1/3 overflow-hidden relative bg-gray-200","data-placeholder":!0}))),React.createElement("div",{className:"col-span-7 h-full overflow-hidden relative bg-gray-200","data-placeholder":!0}))}})()))),no=ro,ao=(0,i.lazy)((()=>o.e(910).then(o.bind(o,1910)))),io=(0,e.A)((0,n.A)((e=>{const{setImportItemInfo:t,setFullWidthBlockPreview:r,setCurrentScreen:n}=e("astra-sites");return{setImportItemInfo:t,updateFullWidthBlockPreview(e){r(e),n("full-width-block-preview")}}})))((0,i.memo)((({index:e,setImportItemInfo:t,updateFullWidthBlockPreview:r,item:n,content:a,stylesheet:o,astraCustomizer:s,globalStylesheet:l,colorPalette:u,dynamicContent:d,selectedImages:p,email:m,phone:f,address:g,onClickBlock:h})=>c().createElement(i.Suspense,{fallback:c().createElement(no,{type:(0,y.qj)((0,y.Zz)(e),(0,y.h7)(e))})},c().createElement(ao,{setImportItemInfo:t,updateFullWidthBlockPreview:r,item:n,content:a,stylesheet:o,astraCustomizer:s,globalStylesheet:l,colorPalette:u,dynamicContent:d,selectedImages:p,email:m,phone:f,address:g,onClickBlock:h}))),((e,t)=>!(JSON.stringify(e.item)!==JSON.stringify(t.item)||e.content!==t.content||e.stylesheet!==t.stylesheet||e.astraCustomizer!==t.astraCustomizer||e.globalStylesheet!==t.globalStylesheet||e.colorPalette!==t.colorPalette||JSON.stringify(e.dynamicContent)!==JSON.stringify(t.dynamicContent)||JSON.stringify(e.selectedImages)!==JSON.stringify(t.selectedImages)||e.email!==t.email||e.phone!==t.phone||e.address!==t.address)))),{compose:oo}=wp.compose,{memo:so}=wp.element,{withSelect:lo}=wp.data,co=oo(lo((e=>{const{getFilterBlocksBySearchTerm:t}=e("astra-sites");return{filterBlocksBySearchTerm:t()}})))(so((({value:e,options:t,allCount:r,onChange:n,filterBlocksBySearchTerm:a})=>React.createElement("div",{className:"st-block-categories-wrap"},React.createElement("h3",null,(0,u.__)("Categories","astra-sites")),React.createElement("div",{className:"st-block-categories-list"},React.createElement("div",{className:"st-block-category "+(a||""!==e?"":"active"),onClick:e=>{"function"==typeof n&&n(e,"")},role:"button",tabIndex:0,onKeyDown:e=>{"function"==typeof n&&n(e,"")}},React.createElement("span",{className:"st-block-category-title"},"All"),React.createElement("span",{className:"st-block-category-count"},r)),Object.values(t).map((t=>React.createElement("div",{key:t.id,className:"st-block-category "+(e===t.id?"active":""),onClick:e=>{"function"==typeof n&&n(e,t)},role:"button",tabIndex:0,onKeyDown:e=>{"function"==typeof n&&n(e,t)}},React.createElement("span",{className:"st-block-category-title"},t.name),React.createElement("span",{className:"st-block-category-count"},t.count))))))))),{compose:uo}=wp.compose,{memo:po}=wp.element,{withSelect:mo,withDispatch:fo}=wp.data,go=uo(mo((e=>{const{getFilterBlocksByCategory:t,getFilterBlocksByColor:r}=e("astra-sites");return{filterBlocksByCategory:t(),filterBlocksByColor:r()}})),fo((e=>{const{setFilterBlocksByCategory:t}=e("astra-sites");return{setFilterBlocksByCategory:t}})))(po((({filterBlocksByCategory:e,setFilterBlocksByCategory:t,filterBlocksByColor:r})=>{const n=[];let a=0;for(const e in ast_block_template_vars.allBlocks){const t=ast_block_template_vars.allBlocks[e].filter||"",i=ast_block_template_vars.allBlocks[e].wireframe||{};if(Object.keys(i).length){const i="object"==typeof ast_block_template_vars.allBlocks[e].category?0:parseInt(ast_block_template_vars.allBlocks[e].category);if(!n[i]){const e=ast_block_template_vars.allCategories.filter((e=>e.id===i)),t=e.length?e[0]:{};t.id=i,t.count=0,n[i]=t}(!r||r&&t===r)&&(n[i].count=parseInt(n[i].count)+1,a+=1)}}return n.sort(((e,t)=>{const r=e.name?e.name.toUpperCase():"",n=t.name?t.name.toUpperCase():"";return r<n?-1:r>n?1:0})),React.createElement(co,{value:e,allCount:a,options:n,onChange:(e,r)=>{t(r?r.id:"")}})}))),{compose:ho}=wp.compose,{memo:yo}=wp.element,{withSelect:bo,withDispatch:vo}=wp.data,wo=ho(bo((e=>{const{getFilterBlocksByColor:t,getAllBlocks:r}=e("astra-sites");return{filterBlocksByColor:t(),allBlocks:r()}})),vo((e=>{const{setFilterBlocksByColor:t}=e("astra-sites");return{setFilterBlocksByColor:t}})))(yo((({filterBlocksByColor:e,setFilterBlocksByColor:t,allBlocks:r})=>{if(!r)return;const n=[];return r.map((e=>(e.filter&&!n.includes(e.filter)&&n.push(e.filter),null))),n.length<=1?"":React.createElement("div",{className:"blocks-color"},React.createElement("h3",null,(0,u.__)("Filter by Color","astra-sites")),React.createElement("div",{className:"block-color-list"},React.createElement("div",{className:"block-color-item "+(e?"":"active"),onClick:()=>t(""),role:"button",tabIndex:0,onKeyDown:()=>t("")},"astra-sites"),n.map((r=>React.createElement("div",{key:r,className:"block-color-item "+(e===r?"active":""),onClick:()=>t(r),role:"button",tabIndex:0,onKeyDown:()=>t(r)},r)))))}))),{memo:xo}=wp.element,_o=xo((()=>React.createElement("div",{className:"filter-wrap ast-block-templates-block-grid-filters"},React.createElement("div",{className:"filters"},React.createElement(wo,null),React.createElement(go,null)))));function Eo({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const ko=i.forwardRef(Eo),So=({keyword:e})=>React.createElement("div",{className:"flex flex-col sm:flex-row items-start justify-start gap-6 p-5 bg-background-secondary w-full h-fit rounded-lg"},React.createElement(ko,{className:"w-10 h-10 text-accent-spectra"}),React.createElement("div",{className:"space-y-1"},React.createElement("h6",{className:"text-heading-text text-xl font-semibold leading-7 m-0 p-0"},"Your search - ",e," - did not match any pattern designs."),React.createElement("p",{className:"m-0 p-0 text-body-text text-base font-normal leading-6"},"Try searching with different keywords")));o(7948);const Co=({afterClick:e})=>React.createElement("span",null,React.createElement("span",{className:"back-to-templates",onClick:t=>{e&&e(t)},role:"button",tabIndex:0,onKeyDown:t=>{e&&e(t)}},(0,u.__)("Back to Templates","astra-sites")));o(6574);const Ro=(0,e.A)((0,n.A)((e=>{const{setNotice:t}=e(g.U);return{setNotice:t}})),(0,a.A)((e=>{const{getNotice:t}=e(g.U);return{notice:t()}})))((0,i.memo)((({notice:e,setNotice:t})=>{if(!Object.keys(e).length)return null;const{type:r,message:n}=e;return React.createElement("div",{className:`ast-block-templates-notice notice notice-${r}`},React.createElement("div",{className:"ast-block-templates-notice-message"},n),React.createElement("button",{type:"button",className:"notice-dismiss",onClick:()=>t({})},React.createElement("span",{className:"screen-reader-text"},"Dismiss")))}))),{compose:Ao}=wp.compose,{withSelect:Po,withDispatch:To}=wp.data,{memo:No,useEffect:Io,useState:Oo}=wp.element,Lo=Ao(To((e=>{const{setFilterBlocksBySearchTerm:t,setFilterBlocksByCategory:r,setActivePalette:n}=e("astra-sites");return{setFilterBlocksByCategory:r,setFilterBlocksBySearchTerm:t,setActivePalette:n}})),Po((e=>{const{getAllWireframes:t,getFilterBlocksByCategory:r,getFilterBlocksByColor:n,getDefaultColorPalette:a,getActivePalette:i,getAllCategories:o}=e("astra-sites");return{filterBlocksByCategory:r(),filterBlocksByColor:n(),allWireframes:t(),defaultPalette:a(),activePalette:i(),allCategories:o()}})))(No((({filterBlocksByColor:e,setFilterBlocksBySearchTerm:t,allWireframes:r,defaultPalette:n,activePalette:a,allCategories:i})=>{const o=[],s=[];let l=0;const[c,u]=Oo(!1);for(const t in r){const n=r[t].filter||"",a="object"==typeof r[t].category?0:parseInt(r[t].category);if(!s[a]){const e=i.filter((e=>e.id===a)),t=e.length?e[0]:{};t.id=a,t.count=0,s[a]=t}(!e||e&&n===e)&&(s[a].count=parseInt(s[a].count)+1,l+=1,o.push(r[t]))}Io((()=>{c&&(d(),p())}),[c]);const d=()=>{document.querySelectorAll(".sd-container").forEach((e=>{const t=e.querySelector(".thumbnail");if(t){const r=t.offsetHeight,n=t.style.transform.match(/scale\((.*?)\)/);if(n){const t=parseFloat(n[1]);e.style.height=r*t+"px"}}}))},p=()=>{const e=document.getElementById("ast-block-templates-grid-blocks");e&&new Masonry(e)},[m,f]=Oo(10),g=Object.keys(a).length>0?a.colors:n.colors,h=()=>{window.innerHeight+window.scrollY>=document.body.offsetHeight-500&&o.length>m&&f((e=>e+10))};Io((()=>{const e=((e,t)=>{let r;return(...t)=>{clearTimeout(r),r=setTimeout((()=>e(...t)),200)}})(h),t=document.getElementsByClassName("ast-block-templates-content");if(t.length>0){const r=t[0];return r.addEventListener("scroll",e),()=>r.removeEventListener("scroll",e)}}),[h]);const y=o.slice(0,m);return React.createElement("div",{className:"ast-block-templates-grid-blocks active"},React.createElement(_o,null),React.createElement("div",{className:"ast-block-templates-pattern-grid"},React.createElement(Ro,null),React.createElement("div",{className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},y.length?y.map(((e,t)=>React.createElement(io,{key:e.ID,item:e,InitMasonry:p,content:e.content,stylesheet:e.stylesheet,astraCustomizer:e.astra_customizer,colorPalette:g,onMount:()=>(e=>{e===o.length-1&&u(!0)})(t)}))):React.createElement(So,null,React.createElement(Co,{afterClick:()=>{t("")}})))))})));const Bo=(e,t,r)=>{let n,a,i,o,s,l=0,c=0,u=!1,d=!1,p=!0;function m(t){const r=n,o=a;return n=void 0,a=void 0,c=t,i=e.apply(o,r),i}function f(e,t){o=setTimeout(e,t)}function g(e){return e-(s||0)}function h(e){const r=g(e);return void 0===s||r>=t||r<0||d&&e-c>=l}function y(){const e=Date.now();if(h(e))return v(e);f(y,function(e){const r=g(e),n=e-c,a=t-r;return d?Math.min(a,l-n):a}(e))}function b(){o=void 0}function v(e){return b(),p&&n?m(e):(n=a=void 0,i)}function w(){return void 0!==o}function x(...e){const r=Date.now(),o=h(r);if(n=e,a=this,s=r,o){if(!w())return function(e){return c=e,f(y,t),u?m(e):i}(s);if(d)return f(y,t),m(s)}return w()||f(y,t),i}return r&&(u=!!r.leading,d="maxWait"in r,void 0!==r.maxWait&&(l=Math.max(r.maxWait,t)),p="trailing"in r?!!r.trailing:p),x.cancel=function(){void 0!==o&&clearTimeout(o),c=0,b(),n=s=a=void 0},x.flush=function(){return w()?v(Date.now()):i},x.pending=w,x};function jo(e,t,r){const n=(a=()=>Bo(e,null!=t?t:0,r),o=[e,t,r],s=(0,i.useState)((function(){return{inputs:o,result:a()}}))[0],l=(0,i.useRef)(!0),c=(0,i.useRef)(s),u=l.current||Boolean(o&&c.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(o,c.current.inputs))?c.current:{inputs:o,result:a()},(0,i.useEffect)((function(){l.current=!1,c.current=u}),[u]),u.result);var a,o,s,l,c,u;return(0,i.useEffect)((()=>()=>n.cancel()),[n]),n}var Do=o(6723),Fo=o.n(Do);const Mo=()=>React.createElement("div",{className:"spectra-ai flex items-start w-5 h-5"},React.createElement("span",{className:Fo().loaderDots}));function zo({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Vo=i.forwardRef(zo);var Wo=o(8354);const Uo=({categoryName:e,onClick:r,disabled:n=!1,boxText:a,children:i})=>{const{remaining:o,pagesCategoryRate:s,patternsCategoryRate:l,currentBalanceStatus:c}=oi(),d=(0,t.A)((e=>{const{getCurrentScreen:t}=e(g.U);return t()}),[]),p="all-block-pages-grid"===d?s:l,m="all-block-pages-grid"===d?"page":"pattern",f=o<p||o<=0,h=e=>t=>{f||"function"==typeof r&&(r(t),"function"==typeof e&&e())},b=e=>{window.open(ast_block_template_vars.get_more_credits_url,"_blank"),"function"==typeof e&&e()};return React.createElement(Ja,{trigger:({open:e})=>React.createElement("button",{className:(0,y.xW)("[&:has(.animate-none)]:!visible group-hover:visible flex items-center justify-center group border-0 focus:outline-none bg-transparent rounded cursor-pointer",!e&&"invisible"),disabled:n},i),placement:"right",width:"w-[15.5rem]",contentClassName:"border border-solid border-border-primary pt-3 pb-4 px-4 bg-white",offset:[13,5]},React.createElement(Ja.Item,null,(({close:t})=>React.createElement("div",{className:"w-full space-y-4",onClick:e=>{e.stopPropagation(),e.preventDefault()},role:"button",tabIndex:"0",onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault())}},React.createElement("p",{className:"text-sm font-normal leading-[21px] text-body-text m-0 p-0"},"This will personalize the"," ",React.createElement("span",{className:"font-medium"},e)," ",m,"s again."),React.createElement("div",{className:"flex flex-col gap-2"},React.createElement(ii.A,{className:(0,y.xW)("w-full bg-background-tertiary text-accent-spectra !text-sm",f&&"bg-button-disabled text-secondary-text"),variant:"blank",onClick:h(t),isSmall:!0,disabled:f},a," (",(0,y.ZV)(p)," ","Credits)"),React.createElement("p",{className:(0,y.xW)("w-full m-0 p-0 text-sm font-normal text-secondary-text text-center",c.warning&&"text-credit-warning",c.danger&&"text-credit-danger")},o?.toLocaleString()," ",(0,u.__)("AI Credits remaining","astra-sites")),React.createElement("hr",{className:"border-t-border-primary border-b-0 my-2"}),React.createElement("div",{onClick:()=>b(t),className:"m-0 block text-sm font-normal !text-accent-spectra underline text-center",role:"button",tabIndex:"0",onKeyDown:e=>"Enter"===e.key?b(t):null},"astra-sites"))))))};function Ho({category:e,isActive:n,onClick:a,disableAi:o}){const[s,l]=(0,i.useState)(!1),{setDynamicContent:c,setNotice:u,dynamicContentFlagSet:d,dynamicContentSyncComplete:p,dynamicContentReSyncStatus:m,setCurrentCategory:f,setRegeneratingContentCategory:h,setCreditsDetails:b}=(0,r.A)(g.U),{dynamicContentSyncFlags:v,dynamicContentSyncStatus:w,currentScreen:x,allPatternsCategories:_,allPagesCategories:E,dynamicContent:k,reSyncStatus:S,regeneratingContentCategory:C,businessDetails:R,importInProgress:A}=(0,t.A)((e=>{const{getDynamicContentSyncFlags:t,getDynamicContentSyncStatus:r,getCurrentScreen:n,getAllPatternsCategories:a,getAllPagesCategories:i,getDynamicContent:o,getDynamicContentReSyncStatus:s,getRegeneratingContentCategory:l,getAIStepData:c,getImportInProgress:u}=e(g.U);return{dynamicContentSyncFlags:t(),dynamicContentSyncStatus:r(),currentScreen:n(),allPatternsCategories:a(),allPagesCategories:i(),dynamicContent:o(),reSyncStatus:s(),regeneratingContentCategory:l(),businessDetails:c()?.businessDetails,importInProgress:u()}}),[]),P="all-block-pages-grid"===x?"pages":"patterns",T=()=>{let t={};switch(x){case"all-block-pages-grid":t=v.pages;break;case"all-blocks-grid":t=v.patterns}return!(S||("favorite"!==e.id&&""!==e.id||!w[P])&&(!1!==t[e.id]||!w[P]))},N=Array.from(("pages"===P?E:_).reduce(((e,t)=>(e.has(t.id)||e.set(t.id,t),e)),new Map).values()),I=k&&Object.keys(k).length>0||!!R&&k&&!Object.keys(k).length,O="pages"===P&&!!k&&!k.hasOwnProperty(e.id),L=S&&C===e.id;return React.createElement("div",{className:(0,y.xW)("group flex items-center justify-between px-3 py-2 rounded text-base cursor-pointer hover:bg-background-tertiary transition duration-150 ease-in-out",n&&"bg-background-tertiary",A&&"disable-click-action"),onClick:a,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key?a():null},React.createElement("span",{className:(0,y.xW)("leading-6 inline-flex items-start gap-2 text-[0.92rem]",n?"text-nav-active font-medium":"text-nav-inactive font-normal")},e.name),React.createElement("span",{className:(0,y.xW)("leading-6 font-normal",n?"text-body-text":"text-secondary-text")},"Favorites"!==e.name&&(T()||L)&&React.createElement(Mo,null)),""!==e.id&&"favorite"!==e.id&&!T()&&!L&&!o&&I&&!w[P]&&React.createElement(Uo,{categoryName:e.name,onClick:async t=>{if(t.preventDefault(),t.stopPropagation(),s)return;if(S)return!1;if(!e)return;let r;r=e?.id&&e.name?`Personalizing "${e.name}"`:"Personalizing",u({type:"personalize",title:r,message:"Please wait a few moments. We are personalizing the selected category."}),h(e?.id??""),m(),l(!0);let n=!1;if(e?.id)try{n=await(async e=>{try{const t=new window.FormData;t.append("action","ast-block-templates-regenerate"),t.append("security",ast_block_template_vars.ai_content_ajax_nonce),t.append("category",e),t.append("regenerate",!0),t.append("block_type","all-blocks-grid"===x?"block":"page");const r=await(0,y.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:t});if(!r.success)throw new Error(r?.data?.data);if(r.success)return c(r.data.data),d(e,!0),b(r.data.spec_credit_details),!0;if("api_throttle_error"===r.data.code)throw r;return!1}catch(e){if((0,ti.v)(e),"api_throttle_error"===e.data.code)throw e;return!1}})(e?.id)}catch(e){n=e}else n=await(0,Wo.R2)(N,c,d,(e=>f(P,e)),b,"all-block-pages-grid"===x?"page":"block");l(!1),u("object"==typeof n&&"api_throttle_error"===n?.data?.code?{type:"error",title:"Check Back Soon",message:React.createElement(React.Fragment,null,"We are currently experiencing exceptionally high demand. Please try again in 5 minutes. If the error persists, kindly contact us through the website:",React.createElement("a",{href:"https://zipwp.com/contact",target:"_blank",rel:"noreferrer"}," ","https://zipwp.com/contact"),".")}:{type:n?"success":"error",title:n?"Library Personalized":"Library Personalization Failed",message:n?"Your library personalized successfully.":"Something went wrong, please try again"}),p(),m(),h(null)},disabled:s,boxText:"Personalize"},React.createElement("span",{className:(0,y.xW)("leading-6 inline-flex text-accent-spectra",s&&"animate-none")},O&&!s?React.createElement(Vo,{className:"h-5 w-5"}):React.createElement(ai.A,{className:"h-5 w-5"}))))}const $o=(0,e.A)((0,a.A)((e=>{const{getDisableAi:t,getLoadingBlocksAndSites:r}=e(g.U);return{disableAi:t(),loadingBlocksAndSites:r()}})))((0,i.memo)((({value:e,list:t,allCount:r,favoriteCount:n,onChange:a,hasSearchTerm:o,dynamicContentSyncFlags:s,disableAi:l,loadingBlocksAndSites:c})=>{let u=[{id:"",name:"All",count:r},...t];0===n&&(u=[{id:"",name:"All",count:r},...t]);const d=(0,i.useCallback)((t=>!o&&""===e&&""===t.id||e===t.id),[e,o]),p=e=>t=>{"function"==typeof a&&a(t,e)};return c?Array.from({length:5}).map(((e,t)=>React.createElement("div",{key:t,"data-placeholder":!0,className:"relative w-full h-10 rounded bg-gray-200"}))):React.createElement("div",{className:"spectra-ai flex flex-col flex-1 gap-1 overflow-auto -mx-1 p-0.5 scrollbar-hover"},u.map((e=>React.createElement(Ho,{key:e?.id,category:e,isActive:d(e),onClick:p(e),dynamicContentSyncFlags:s,disableAi:l}))))})));var Zo=o(860);const Go=(0,e.A)((0,a.A)((e=>{const{getFilterBlocksByCategory:t,getFilterBlocksByColor:r,getAllPatternsAndPages:n,getAllCategories:a}=e("astra-sites");return{filterBlocksByCategory:t(),filterBlocksByColor:r(),allPatterns:n()?.patterns,allCategories:a()}})),(0,n.A)((e=>{const{setFilterBlocksByCategory:t,setAllPatterns:r,setAllBlocksData:n}=e("astra-sites");return{setFilterBlocksByCategory:t,setAllPatterns:r,setAllBlocksData:n}})))((0,i.memo)((({filterBlocksByCategory:e,setFilterBlocksByCategory:r,allPatterns:n,allCategories:a})=>{const o=(0,i.useRef)(null),s={};let l=0;const{favorites:c}=(0,t.A)((e=>{const{getFavorites:t}=e("astra-sites");return{favorites:t()}}),[]);if(!n)return null;for(const e in a){let t=0;for(const r in n)a[e].id===n[r].category&&t++;0!==t&&(s[e]=a[e],s[e].count=t,l+=t)}const u=Object.keys(s).map((e=>s[e]));return React.createElement($o,{value:e,allCount:l,favoriteCount:c?.block?Object.keys(c?.block)?.length:0,list:u,onChange:(e,t)=>{""!==t.id?r(t.id):r(""),o.current!==t.id&&(o.current=t.id,Zo.A.emit("reset-list-count"))}})}))),qo=({selected:e,options:r,onChange:n,tabIndex:a})=>{const{importInProgress:i}=(0,t.A)((e=>{const{getImportInProgress:t}=e(g.U);return{importInProgress:t()}}),[]);return React.createElement("div",{className:"flex items-center gap-4"},Object.values(r).map(((t,r)=>{const o=t.title||"",s=t.default_color||"";return React.createElement("div",{key:r,className:(0,y.xW)("w-6 h-6 rounded-full cursor-pointer",t.slug===e?"ring-2 ring-offset-4 ring-accent-spectra":"",i&&"disable-click-action"),onClick:e=>{n(e,t)},onKeyDown:e=>{((e,t)=>{38===(e=e||window.event).keyCode?e.target.previousSibling&&e.target.previousSibling.focus():40===e.keyCode?e.target.nextSibling&&e.target.nextSibling.focus():13===e.keyCode&&n(e,t)})(e,t)},tabIndex:a,role:"button"},React.createElement("span",{className:"sr-only"},o),React.createElement("div",{className:"w-full h-full rounded-full border border-solid border-black/[0.12]",style:{backgroundColor:s}}))})))},Yo=(0,e.A)((0,a.A)((e=>{const{getDefaultBlockColorPalette:t,getActiveBlockPalette:r,getActiveBlockPaletteSlug:n,getDefaultPageColorPalette:a,getActivePagePalette:i,getActivePagePaletteSlug:o,getCurrentScreen:s,getBlockColorPaletteObj:l,getPageColorPaletteObj:c}=e(g.U);return{defaultBlockPalette:t(),activeBlockPalette:r(),activeBlockPaletteSlug:n(),defaultPagePalette:a(),activePagePalette:i(),activePagePaletteSlug:o(),currentScreen:s(),blockColorPaletteObj:l(),pageColorPaletteObj:c()}})),(0,n.A)((e=>{const{setActiveBlockPalette:t,setActiveBlockPaletteSlug:r,setActivePagePalette:n,setActivePagePaletteSlug:a}=e(g.U);return{setActiveBlockPalette:t,setActiveBlockPaletteSlug:r,setActivePagePalette:n,setActivePagePaletteSlug:a}})))((0,i.memo)((({setActiveBlockPalette:e,activeBlockPaletteSlug:t,setActiveBlockPaletteSlug:r,setActivePagePalette:n,activePagePaletteSlug:a,setActivePagePaletteSlug:i,currentScreen:o,blockColorPaletteObj:s,pageColorPaletteObj:l})=>{const c=s,d=l;return React.createElement("div",{className:"flex items-center justify-between gap-7 px-2 py-1 min-h-[2rem]"},React.createElement("span",{className:"text-base font-semibold leading-6 text-heading-text"},(0,u.__)("Color Styles: ","astra-sites")),React.createElement(qo,{selected:"all-blocks-grid"===o?t:a,options:"all-blocks-grid"===o?c:d,onChange:(t,a)=>{((t,a)=>{a&&("all-blocks-grid"===o?(r(a.slug),e(a)):(i(a.slug),n(a)))})(0,a)},tabIndex:"0",type:"others"}))})));function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ko.apply(null,arguments)}const{forwardRef:Xo,useMemo:Jo}=wp.element,Qo=Xo((({disabled:e=!1,className:r,inputClassName:n,error:a,name:i,validations:o,label:s,noBorder:l,height:c="[42px]",labelColorClassName:u="text-zip-app-heading",enableDebounce:d,onChange:p,prefixIcon:m,suffixIcon:f,prefixIconClassName:h,suffixIconClassName:b,enableAutoGrow:v=!1,register:w,...x},_)=>{const{ref:E,...k}=Jo((()=>"function"==typeof w?w(i,o):{}),[i,w,o]),{importInProgress:S}=(0,t.A)((e=>{const{getImportInProgress:t}=e(g.U);return{importInProgress:t()}}),[]);return React.createElement("div",{className:r},s&&React.createElement("label",{htmlFor:i,className:(0,y.xW)("text-sm font-medium text-zip-app-heading",u)},s,o?.required&&React.createElement("span",{className:"text-alert-error"}," *")),React.createElement("div",{className:"flex relative items-center"},m&&React.createElement("div",{className:h},m),React.createElement("div",{className:(0,y.xW)(v?"relative overflow-hidden flex justify-start items-center":"w-full")},React.createElement("input",Ko({ref:e=>{if(e&&"function"==typeof E&&E(e),_)switch(typeof _){case"function":_(e);break;case"object":_.current=e}},name:i,disabled:e,className:(0,y.xW)("w-full px-[1rem] placeholder:text-secondary-text rounded-md outline-none text-sm placeholder:!text-sm",`h-${c}`,s?"mt-2":"",l?"bg-transparent":"px-3 border border-solid focus:ring-1 focus:ring-accent-st",a?(l?"":"shadow-error")+"  border-alert-error  focus:border-accent-st":(l?"":"shadow-sm")+"  border-border-primary focus:border-accent-st",v&&"absolute left-0 min-w-[50px]",e?"cursor-not-allowed":"",n,S&&"disable-click-action"),onChange:d?(0,y.sg)(p,500):p},x,k)),v&&React.createElement("span",{className:"invisible inline whitespace-pre text-[0.9rem]"},x.value||x.placeholder)),f&&React.createElement("div",{className:b},f)),a&&React.createElement("div",{className:"mt-1 text-sm text-alert-error "},a.message))})),es=({className:e})=>{const{searchString:n}=(0,t.A)((e=>{const{getFilterBlocksBySearchTerm:t,getFilterBlocksPagesBySearchTerm:r,getCurrentScreen:n,getFilterSitesBySearchTerm:a,getFilterFavoritres:i}=e(g.U);return"all-sites-grid"===n()?{searchString:a()}:"all-block-pages-grid"===n()?{searchString:r()}:"all-favorites"===n()?{searchString:i()}:{searchString:t()}})),{setFullWidthBlockPreview:a,setFilterBlocksBySearchTerm:i,setFilterBlocksPagesBySearchTerm:o,setFilterSitesBySearchTerm:s,setFilterFavoritres:l}=(0,r.A)(g.U),c=(0,t.A)((e=>e(g.U).getCurrentScreen()));return React.createElement(Qo,{className:(0,y.xW)("w-full",e),inputClassName:"bg-background-secondary !border-transparent !text-base pr-9 focus:ring-accent-spectra",placeholder:"Search...",suffixIcon:n?.trim()?React.createElement("button",{onClick:()=>{i(""),o(""),s(""),l(""),Zo.A.emit("reset-list-count")},className:"flex items-center justify-center h-5 w-5 border-0 focus:outline-none bg-transparent cursor-pointer"},React.createElement(f,{className:"w-5 h-5 text-icon-secondary"})):React.createElement(ko,{className:"w-5 h-5 text-icon-secondary"}),suffixIconClassName:(0,y.xW)(!n?.trim()&&"pointer-events-none","absolute right-4 flex items-center"),height:"[2.8rem]",value:n,onChange:e=>{switch(a({}),Zo.A.emit("reset-list-count"),c){case"all-sites-grid":s(e.target.value);break;case"all-block-pages-grid":o(e.target.value);break;case"all-favorites":l(e.target.value);break;default:i(e.target.value)}},prefixIconClassName:"absolute left-4 flex items-center"})};function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ts.apply(null,arguments)}const{memo:rs}=wp.element,ns=rs((({className:e,...r})=>{const{adaptiveMode:n}=(0,t.A)((e=>{const{getAdaptiveMode:t}=e(g.U);return{adaptiveMode:t()}}));return React.createElement("div",ts({className:(0,y.xW)("spectra-ai w-full lg:max-w-[280px] self-stretch bg-white border-0 border-r border-solid border-border-primary md:max-lg:max-w-[246px] xl:max-w-[280px] lg:max-xl:max-w-[260px] hidden sm:block max-w-60",e)},r),React.createElement("div",{className:"h-full w-full flex flex-col gap-5 py-5 px-4"},React.createElement(es,null),React.createElement(Qa,{className:"mx-2"}),React.createElement(Go,null),n&&React.createElement("div",{className:"mt-auto space-y-5 min-h-[3.125rem]"},React.createElement(Qa,{className:"mx-2"}),React.createElement(Yo,null))))}));var as=o(4848),is=[640,786,1024,1280,1536],os=(e,t)=>{let r=Object.keys((e=>Array.isArray(e)?(e=>e.reduce(((e,t,r)=>"number"!=typeof t?e:{...e,[is[r]]:t}),{}))(e):e)(e)).map(Number).sort(((e,t)=>e-t)),n=null;for(let e of r)t>e&&(n=e);return null!=n?n:r[0]},ss=e=>{let t="object"==typeof e,r=((e=!0)=>{let[t,r]=(0,i.useState)(window.innerWidth),n=(0,i.useCallback)((()=>{r(window.innerWidth)}),[]);return(0,i.useEffect)((()=>(e?window.addEventListener("resize",n):window.removeEventListener("resize",n),()=>{window.removeEventListener("resize",n)})),[e,n]),t})(t);return(0,i.useMemo)((()=>{var n;if(!t)return null!=e?e:3;let a=os(e,r);return null!=(n=e[a])?n:3}),[t,r,e])},ls=(0,i.createContext)({column:0,position:0}),cs=(0,i.forwardRef)(((e,t)=>{let{gap:r,as:n="div",columnProps:a,columns:o,...s}=e,l=(0,i.useId)(),c=((e,t)=>{let r=ss(t);return(0,i.useMemo)((()=>{let t=(e=>Array.from({length:e},(()=>[])))(r);return i.Children.forEach(e,((e,n)=>{(0,i.isValidElement)(e)&&t[n%r].push(e)})),t}),[r,e])})(e.children,o);return(0,as.jsx)(n,{"data-masonry-id":`Masonry-${l}`,...s,style:{display:"flex",gap:r,...s.style},ref:t,children:c.map(((e,t)=>(0,as.jsx)(n,{"data-masonry-column":t+1,...a,style:{display:"flex",flex:1,flexDirection:"column",gap:r,...null==a?void 0:a.style},children:e.map(((e,r)=>(0,as.jsx)(ls.Provider,{value:{column:t,position:r},children:e},`Masonry__Column_Child_${l}_${r}`)))},`Masonry__Column_${l}_${t}`)))})})),us=cs;function ds({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"}))}const ps=i.forwardRef(ds),ms=({videoIntroURL:e,className:t})=>React.createElement("a",{className:(0,y.xW)("no-underline text-[#111827] hover:text-[#111827] items-center gap-2 focus:shadow-none","2xl:mr-5",t),href:e,target:"_blank",rel:"noreferrer"},React.createElement(ps,{className:"w-4 h-4"}),React.createElement("span",{className:"underline text-inherit hover:text-inherit"},"How it works?")),fs=({type:e,icon:t,message:r,ctaLink:n,ctaText:a,rounded:i=0,onClose:o,className:s,isClose:l=!0,hasVideoIntro:c=!1,videoIntroURL:u})=>{const d={success:{text:"text-heading-text",icon:"text-[#0BC16A]",background:"bg-[#0BC16A]/[0.08]"},warning:{text:"text-heading-text",icon:"text-credit-warning",background:"bg-credit-warning/5"},error:{text:"text-heading-text",icon:"text-credit-danger",background:"bg-credit-danger/5"},info:{text:"text-heading-text",icon:"text-accent-spectra",background:"bg-background-tertiary"},notice:{text:"text-heading-text",icon:"text-credit-notice",background:"bg-[#E6FFFA]"}};return React.createElement("div",{className:(0,y.xW)("px-10 py-5 flex justify-between",d[e]?.background,{0:"rounded-none",4:"rounded",6:"rounded-md",8:"rounded-lg"}[i],s)},React.createElement("div",{className:"flex items-center gap-2 flex-grow max-2xl:items-start"},React.createElement("div",{className:(0,y.xW)("flex items-center",d[e]?.icon)},!!t&&t),React.createElement("div",{className:"flex-1 flex justify-start items-center gap-3"},React.createElement("div",{className:(0,y.xW)("text-sm m-0",d[e]?.text)},!!r&&r),React.createElement("div",{className:"text-sm m-0"},!!n&&React.createElement("a",{href:n,target:"_blank",className:"whitespace-nowrap font-normal !text-accent-spectra",rel:"noreferrer"},!!a&&a)),l&&React.createElement("button",{onClick:e=>{"function"==typeof o&&o(e)},className:"ml-auto bg-transparent border-0 focus:outline-none cursor-pointer p-2"},React.createElement(f,{className:"w-5 h-5 text-heading-text"})))),c&&u&&React.createElement(ms,{className:"flex max-2xl:hidden",videoIntroURL:u}))};function gs({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const hs=i.forwardRef(gs);function ys({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const bs=i.forwardRef(ys);var vs=o(6156);function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(null,arguments)}const xs=e=>{const{className:t,wrapperClass:r,open:n,children:a,onClose:i,...o}=e;return React.createElement("div",ws({className:(0,y.xW)("absolute w-full h-full z-[99999] transition-transform bg-gray-500/50",n?"":"-translate-x-full",t)},o),React.createElement(ii.A,{onClick:()=>i(),className:"absolute right-4 top-4 bg-white rounded-full p-4 px-3",variant:"blank"},React.createElement(f,{className:"size-6"})),React.createElement("div",{className:(0,y.xW)("bg-white h-full shadow-xl w-3/4",r)},a))},_s=(0,e.A)((0,n.A)((e=>{const{setFilterBlocksBySearchTerm:t,setFilterBlocksByCategory:r,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i}=e(g.U);return{setFilterBlocksByCategory:r,setFilterBlocksBySearchTerm:t,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i}})),(0,a.A)((e=>{const{getAllPatterns:t,getAllCategories:r,getFilterBlocksByCategory:n,getFilterBlocksByColor:a,getDefaultBlockColorPalette:i,getActiveBlockPalette:o,getDynamicContent:s,getAIStepData:l,getFilterBlocksBySearchTerm:c,getDynamicContentSyncStatus:u,getDynamicContentSyncFlags:d,getAllPatternsCategories:p,getDynamicContentReSyncStatus:m,getRegeneratingContentCategory:f,getAdaptiveMode:h,getHideNotice:y,getSkipZipAIOnboarding:b,getDisableAi:v,getIsSyncBusinessDetails:w}=e(g.U);return{filterBlocksByCategory:n(),filterBlocksByColor:a(),allPatterns:t(),defaultPalette:i(),activePalette:o(),dynamicContent:s(),selectedImages:l().selectedImages,allCategories:r(),searchTerm:c(),syncStatus:u()?.patterns,syncFlags:d(),allPatternsCategories:p(),reSyncStatus:m(),regeneratingContentCategory:f(),adaptiveMode:h(),hideNotice:y(),skipZipAIOnboarding:b(),disableAi:v(),isSyncBusinessDetails:w()}})))((0,i.memo)((({filterBlocksByCategory:e,allPatterns:r,allPatternsCategories:n,defaultPalette:a,activePalette:o,dynamicContent:s,selectedImages:l,syncFlags:c,syncStatus:d,searchTerm:p,reSyncStatus:m,regeneratingContentCategory:f,adaptiveMode:h,hideNotice:b,setHideNotice:v,toggleOnboardingAIStep:w,disableAi:x,isSyncBusinessDetails:_})=>{const[E,k]=(0,i.useState)(!1),S=r,C="https://youtu.be/Zpkgw9USlEc",{stepsData:{businessContact:R,businessDetails:A,token:P},allPatternsAndPages:T,loadingBlocksAndSites:N}=(0,t.A)((e=>{const{getAIStepData:t,getAllPatternsAndPages:r,getLoadingBlocksAndSites:n}=e(g.U);return{stepsData:t(),allPatternsAndPages:r(),loadingBlocksAndSites:n()}})),{currentBalanceStatus:I,remaining:O}=oi(),L=n.slice(0,2).map((({name:e})=>e)).join(", "),B=(0,y._9)("ast-free-ai-content",!1),j={show:!!B&&I.warning&&I.danger||I.warning&&!b.creditWarning||I.danger&&!b.creditDanger||!1,variantAndType:!!B&&{variant:"success",type:"freeAiContent"}||I.warning&&{variant:"warning",type:"creditWarning"}||I.danger&&{variant:"error",type:"creditDanger"},message:!!B&&`Your ${L} content is ready to shine. Ready to personalize the your entire library?`||0===O&&"You're out of AI credits. Personalize the design library with content and images tailored to your website project"||(I.warning||I.danger)&&"You're almost out of AI credits. Personalize the design library with content and images tailored to your website project"};(0,i.useEffect)((()=>{Zo.A.on("reset-list-count",(()=>F(10)))}),[]);const[D,F]=(0,i.useState)(10),M=Object.keys(o).length>0?o.colors:a.colors,z=jo((()=>{if(H())return;const e=p&&!S.length?T.patterns:S;window.innerHeight+window.scrollY>=document.body.offsetHeight-500&&e.length>D&&F((e=>e+10))}),200),V=S.slice(0,D),W=e=>Math.floor(e/3)+1,U=()=>{if(""===e){const e=n.reduce(((e,t)=>(t.count,null)),0);return e>10?e:10}const t=n.find((t=>t.id===e)),r=t?.count?t.count:10;return t?.count>10?10:r},H=()=>!!N||!(!m||f!==e)||!(!m||""!==f)||!!d&&!(!d||(!Object.values(c.patterns).every((e=>!1===e))||""!==e)&&(""===e||!Object.keys(c.patterns).map(Number).includes(e)||c.patterns[e])),$=e=>()=>{(0,y.D6)("ast-free-ai-content"),v({[e]:!0}),"freeAiContent"!==e&&(0,Wo.yL)(e)},Z=V?.length||""===p?[]:T.patterns,G=(0,i.useMemo)((()=>(()=>{let e=1,t=0;return()=>{return e>3&&(e=1),t===U()-1&&(t=0),React.createElement(no,{key:t,type:(r=W(t++),n=e++,[1,2,3][(n-1+(r-1)%3)%3])});var r,n}})()),[]);return React.createElement("div",{className:"relative ast-block-templates-grid-blocks active h-full"},React.createElement(ii.A,{className:"absolute right-4 bottom-8 z-[9999] py-2 px-3.5 bg-accent-spectra shadow-xl sm:hidden",onClick:()=>k(!0)},React.createElement(hs,{className:"size-5 text-white"})),React.createElement(xs,{open:E,onClose:()=>k(!1),className:"sm:hidden",children:React.createElement(ns,{className:"block sm:hidden h-full !w-full",style:{maxWidth:"100%"}})}),React.createElement(ns,null),React.createElement("div",{onScroll:z,className:"ast-scrolling-container w-full md:ml-auto h-full overflow-auto md:max-w-[calc(100%_-_246px)]"},j.show&&P&&React.createElement(fs,{type:j.variantAndType.variant,message:j.message,icon:"success"===j.variantAndType.variant?React.createElement(bs,{className:"w-6 h-6"}):React.createElement(vs.A,{className:"w-6 h-6"}),ctaLink:ast_block_template_vars.get_more_credits_url,ctaText:(0,u.__)("Buy AI Credits","astra-sites"),onClose:$(j.variantAndType.type)}),!b.personalizeAi&&P&&(!A||A&&"yes"===_)&&!x&&!p&&!I.warning&&!I.danger&&React.createElement(fs,{className:"pl-6 py-4 !pr-0 mx-10 mt-9 md:max-lg:mx-5 hidden sm:block",rounded:8,type:"info",message:React.createElement("div",{className:"grid grid-cols-4 grid-rows-2 2xl:grid-rows-1 items-center justify-start gap-2 max-2xl:items-start"},React.createElement("span",{className:"col-span-12 2xl:col-span-4 "},(0,u.__)("Did you know, you can personalize this design library with content and images tailored to your website project?","astra-sites")),React.createElement("div",{className:"col-span-12 2xl:col-start-5 flex flex-col md:flex-row gap-5 items-baseline md:items-center"},React.createElement(ii.A,{id:"ast-block-template-setup-ai-btn",className:"min-w-fit",variant:"primary",isSmall:!0,onClick:()=>{$("personalizeAi")(),w(!0)}},"Personalize Library with AI"),C&&React.createElement(ms,{className:"flex 2xl:hidden",videoIntroURL:C}))),icon:React.createElement(Vo,{className:"w-6 h-6"}),onClose:$("personalizeAi"),isClose:!1,hasVideoIntro:!0,videoIntroURL:C}),React.createElement("div",{className:"h-full w-full p-10 md:max-lg:p-6"},!V.length&&""!==p&&React.createElement("div",{className:"pb-4"},React.createElement(So,{keyword:p}),React.createElement("h6",{className:"m-0 mt-10 text-heading-text text-xl font-semibold leading-7"},"Other suggested pattern designs")),React.createElement(us,{columns:{640:1,768:2,1024:3},gap:32,className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},(()=>{if(H()){const e=U();return Array(e>10?10:e).fill(1)}const e=Object.entries(c.patterns);return!m&&d&&e.some((([,e])=>!1===e))?V.filter((e=>!1!==c.patterns[e.category])):V.length||""===p?V:Z.slice(0,D)})()?.map(((e,t)=>((e,t)=>H()?G():React.createElement(io,{key:e.ID,index:t,item:e,content:e.content,stylesheet:e.stylesheet,astraCustomizer:h?ast_block_template_vars.astra_customizer_css:ast_block_template_vars.server_astra_customizer_css,globalStylesheet:e.global_stylesheet,colorPalette:M,dynamicContent:s[e.category]??[],selectedImages:l,email:R.email,phone:R.phone,address:R.address}))(e,t)))),React.createElement("div",{className:"h-10 w-full mb-10"}))))}))),{post:Es}=wp.ajax,{parse:ks}=wp.blocks,Ss=(e,t,r,n,a,i,o,s)=>{Es({action:"ast_block_templates_kit_importer",api_uri:e,id:s,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((e=>{!function(e,t,r,n,a,i,o){Es({action:"ast_block_templates_import_template_kit",content:e,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((e=>{n(ks(e),t,r),"function"==typeof i&&i(),a(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open");const o=(0,y.Fx)();(o.notInstalled||o.inactive)&&(0,Wo.mP)()})).fail((()=>{"function"==typeof o&&o()}))}(e,n,a,t,r,i,o)})).fail((e=>{h("fail",e),"function"==typeof o&&o()}))};var Cs=o(9431),Rs=o(9392),As=o(2944),Ps=o(5446),Ts=o(4715);const{post:Ns}=wp.ajax,Is=(0,i.memo)((({className:e,disabled:n})=>{const{insertBlocks:a}=wp.data.dispatch("core/block-editor"),{pagePreview:o}=(0,t.A)((e=>{const{getPagePreview:t}=e(g.U);return{pagePreview:t()}}),[]),{setTogglePopup:s,setImportInProgress:l}=(0,r.A)(g.U);let c=[];const[d,p]=(0,i.useState)(!1),[m,f]=(0,i.useState)(!1),h=(0,i.useRef)(null),b=o,v=o["required-plugins"]?o["required-plugins"].filter((e=>"wpforms-lite"===e.slug)):[],w=(0,y.Fx)(),{insertIndex:x,insertClientID:_}=wp.data.useSelect((e=>{const{index:t,rootClientId:r}=e("core/block-editor").getBlockInsertionPoint();return{insertIndex:t,insertClientID:r}}),[]),E=({title:e,message:t,type:r})=>{if(!h.current)return h.current=(0,Ps.oR)((0,Ts.A)({title:e,message:t}),Ts.A.getOptions({type:r}));Ps.oR.update(h.current,{...Ts.A.getOptions({type:r}),render:(0,Ts.A)({title:e,message:t})})},k=()=>{E({title:"Failed!",message:"Failed to insert template.",type:"error"})},S=async()=>{try{await(0,Cs.s)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"})}catch(e){R(!1),k()}},C=()=>{(0,Cs.s)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((()=>{A()})).catch((()=>{R(!1),k()}))},R=e=>{p(e),l(e)},A=()=>{const e=c["astra-site-wpforms-path"]||"",t=c["site-pages-required-plugins"]&&c["site-pages-required-plugins"].some((e=>"wpforms-lite"===e.slug));e&&t?P(e):Ss(b["astra-page-api-url"],a,s,x,_,(()=>{R(!1),E({title:"Template Inserted",message:"Template inserted successfully.",type:"success"})}),k,b?.ID)},P=()=>{Ns({action:"ast_block_templates_import_wpforms",id:b.ID,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((()=>{Ss(b["astra-page-api-url"],a,s,x,_)})).fail((()=>{R(!1),k()}))},T=async()=>{d||n||(p(!0),l(!0),E({title:"Inserting Template..",message:"Inserting selected template.",type:"importing-site"}),w.notInstalled?await(async()=>{try{await(0,Cs.o)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"}),await S()}catch(e){R(!1),k()}})():w.inactive&&await S(),(0,Rs.V)(b.ID,"site-pages").then((e=>{c=e,v.length?"not-installed"===ast_block_template_vars.wpforms_status?(0,Cs.o)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}).then((()=>{C()})).catch((()=>{R(!1),k()})):"inactive"===ast_block_template_vars.wpforms_status?C():A():A()})))};return React.createElement(React.Fragment,null,React.createElement(ii.A,{className:(0,y.xW)("lg:grow-[2] w-full lg:w-auto min-w-fit",e),variant:"primary",hasSuffixIcon:w.active,onClick:()=>{if(!n)return"yes"===o["dynamic-page"]?f(!0):void T()},disabled:n||d},w.notInstalled?(0,u.__)("Install Spectra & Insert","astra-sites"):w.inactive?(0,u.__)("Activate Spectra & Insert","astra-sites"):React.createElement(React.Fragment,null,React.createElement("span",{className:"hidden sm:inline"},"Insert Template"),React.createElement(As.A,{className:"sm:size-5 size-6"}))),React.createElement(Wi,{open:m,setOpen:f,title:"Heads Up!",description:(0,u.__)("This template includes dynamic content that won't carry over with the import. You'll need to manually add this dynamic data to the page.","astra-sites"),confirmBtnTitle:(0,u.__)("Skip & Import"),cancelBtnTitle:(0,u.__)("Cancel"),onClickConfirm:()=>{f(!1),T()},onClickCancel:()=>f(!1),variant:"info"}))}));o(1032);const Os=(0,e.A)((0,a.A)((e=>{const{getDisplayDynamicPopup:t,getPagePreview:r}=e(g.U);return{pagePreview:r(),displayDynamicPopup:t()}})),(0,n.A)((e=>{const{setDisplayDynamicPopup:t}=e("astra-sites");return{setDisplayDynamicPopup:t}})))((0,i.memo)((({pagePreview:e,displayDynamicPopup:t,setDisplayDynamicPopup:r})=>{const n=!1===t?"hide":"",a=()=>{r(!1)},o=e=>{e.target===document.querySelector(".ast-block-templates-popup-wrap")&&a()};return(0,i.useEffect)((()=>(document.addEventListener("click",o),()=>{document.removeEventListener("click",o)}))),React.createElement(i.Fragment,null,React.createElement("div",{className:`ast-block-templates-popup-wrap ${n}`},React.createElement("div",{className:"ast-block-templates-popup"},React.createElement("div",{className:"ast-block-templates-popup-header"},React.createElement("h3",{className:"ast-block-templates-popup-heading"},(0,u.__)("Heads Up!","astra-sites")),React.createElement("span",{className:"ast-block-templates-popup-close-icon",onClick:a,role:"button",tabIndex:0,onKeyDown:a},React.createElement("span",{className:"dashicons close dashicons-no-alt"}))),React.createElement("div",{className:"ast-block-templates-popup-content"},React.createElement("p",null,(0,u.__)("The page template you are about to import contains a dynamic widget/module. Please note this dynamic data will not be available with the imported page.","astra-sites")),React.createElement("p",null,(0,u.__)("You will need to add it manually on the page.","astra-sites"))),React.createElement("div",{className:"ast-block-templates-popup-footer"},React.createElement(Is,{title:(0,u.nv)((0,u.__)('Skip & Import "%s" Page',"astra-sites"),e.title),item:e}),React.createElement("div",{className:"button",onClick:a,role:"button",tabIndex:0,onKeyDown:a},(0,u.__)("Cancel","astra-sites"))))))}))),Ls=(0,e.A)((0,a.A)((e=>{const{getPagePreview:t,getImportInProgress:r}=e("astra-sites");return{pagePreview:t(),importInProgress:r()}})),(0,n.A)((e=>{const{setPagePreview:t,setFullWidthPagePreview:r,setCurrentScreen:n,setImportItemInfo:a}=e("astra-sites");return{setImportItemInfo:a,setPagePreview:t,updateFullWidthPagePreview(e){r(e),n("full-width-page-preview")}}})))((0,i.memo)((({item:e,pagePreview:t,setPagePreview:r,setImportItemInfo:n,importInProgress:a})=>{const i=e["thumbnail-image-url"]||`${ast_block_template_vars.uri}dist/placeholder.png`;return React.createElement("div",{className:(0,y.xW)("w-full content-start relative"),onClick:()=>{a||(n(e),r(e))}},React.createElement("div",{className:(0,y.xW)("relative cursor-pointer",a&&"cursor-not-allowed pointer-events-none")},React.createElement("div",{className:(0,y.xW)("bg-top bg-cover bg-no-repeat overflow-hidden bg-gray-300 block aspect-[6/7]"),style:{backgroundImage:`url('${i}')`}},React.createElement("div",{className:(0,y.xW)("absolute top-0 left-0 w-full h-full cursor-pointer opacity-0 invisible float-none transition-all duration-300 bg-black bg-opacity-50")},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:(0,y.xW)("absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end overflow-hidden border border-solid border-border-primary transition duration-150 ease-in-out",t.ID===e.ID?"border-accent-spectra shadow-large":"")},React.createElement("div",{className:(0,y.xW)("w-full flex items-center justify-between gap-3 py-2 pl-4 pr-3 bg-white/95 shadow-action-buttons backdrop-blur-[3px]")},React.createElement("div",null,React.createElement("p",{className:(0,y.xW)("title","m-0 text-base text-heading-text font-semibold leading-6")},(0,Wo.iZ)(e.title)))))))})));var Bs=o(4361);function js({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Ds=i.forwardRef(js);function Fs({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const Ms=i.forwardRef(Fs),zs=({className:e})=>React.createElement("span",{className:(0,y.xW)("py-1 px-2 text-xs leading-3 text-heading-text font-semibold rounded bg-premium-badge uppercase",e)},"Premium");var Vs=o(9260),Ws=e=>"checkbox"===e.type,Us=e=>e instanceof Date,Hs=e=>null==e;const $s=e=>"object"==typeof e;var Zs=e=>!Hs(e)&&!Array.isArray(e)&&$s(e)&&!Us(e),Gs=e=>Zs(e)&&e.target?Ws(e.target)?e.target.checked:e.target.value:e,qs=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Ys=e=>{const t=e.constructor&&e.constructor.prototype;return Zs(t)&&t.hasOwnProperty("isPrototypeOf")},Ks="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Xs(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Ks&&(e instanceof Blob||e instanceof FileList)||!r&&!Zs(e))return e;if(t=r?[]:{},r||Ys(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=Xs(e[r]));else t=e}return t}var Js=e=>Array.isArray(e)?e.filter(Boolean):[],Qs=e=>void 0===e,el=(e,t,r)=>{if(!t||!Zs(e))return r;const n=Js(t.split(/[,[\].]+?/)).reduce(((e,t)=>Hs(e)?e:e[t]),e);return Qs(n)||n===e?Qs(e[t])?r:e[t]:n},tl=e=>"boolean"==typeof e,rl=e=>/^\w*$/.test(e),nl=e=>Js(e.replace(/["|']|\]/g,"").split(/\.|\[/)),al=(e,t,r)=>{let n=-1;const a=rl(t)?[t]:nl(t),i=a.length,o=i-1;for(;++n<i;){const t=a[n];let i=r;if(n!==o){const r=e[t];i=Zs(r)||Array.isArray(r)?r:isNaN(+a[n+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const il={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ol={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},sl="pattern",ll="required";i.createContext(null);var cl=e=>Zs(e)&&!Object.keys(e).length,ul=e=>Array.isArray(e)?e:[e];var dl=e=>"string"==typeof e,pl=(e,t,r,n,a)=>dl(e)?(n&&t.watch.add(e),el(r,e,a)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),el(r,e)))):(n&&(t.watchAll=!0),r),ml=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},fl=e=>({isOnSubmit:!e||e===ol.onSubmit,isOnBlur:e===ol.onBlur,isOnChange:e===ol.onChange,isOnAll:e===ol.all,isOnTouch:e===ol.onTouched}),gl=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const hl=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const r=el(e,a);if(r){const{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;hl(i,t)}else Zs(i)&&hl(i,t)}}};var yl=(e,t,r)=>{const n=Js(el(e,r));return al(n,"root",t[r]),al(e,r,n),e},bl=e=>"file"===e.type,vl=e=>"function"==typeof e,wl=e=>{if(!Ks)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},xl=e=>dl(e),_l=e=>"radio"===e.type,El=e=>e instanceof RegExp;const kl={value:!1,isValid:!1},Sl={value:!0,isValid:!0};var Cl=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Qs(e[0].attributes.value)?Qs(e[0].value)||""===e[0].value?Sl:{value:e[0].value,isValid:!0}:Sl:kl}return kl};const Rl={isValid:!1,value:null};var Al=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Rl):Rl;function Pl(e,t,r="validate"){if(xl(e)||Array.isArray(e)&&e.every(xl)||tl(e)&&!e)return{type:r,message:xl(e)?e:"",ref:t}}var Tl=e=>Zs(e)&&!El(e)?e:{value:e,message:""},Nl=async(e,t,r,n,a)=>{const{ref:i,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:p,validate:m,name:f,valueAsNumber:g,mount:h,disabled:y}=e._f,b=el(t,f);if(!h||y)return{};const v=o?o[0]:i,w=e=>{n&&v.reportValidity&&(v.setCustomValidity(tl(e)?"":e||""),v.reportValidity())},x={},_=_l(i),E=Ws(i),k=_||E,S=(g||bl(i))&&Qs(i.value)&&Qs(b)||wl(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,C=ml.bind(null,f,r,x),R=(e,t,r,n="maxLength",a="minLength")=>{const o=e?t:r;x[f]={type:e?n:a,message:o,ref:i,...C(e?n:a,o)}};if(a?!Array.isArray(b)||!b.length:s&&(!k&&(S||Hs(b))||tl(b)&&!b||E&&!Cl(o).isValid||_&&!Al(o).isValid)){const{value:e,message:t}=xl(s)?{value:!!s,message:s}:Tl(s);if(e&&(x[f]={type:ll,message:t,ref:v,...C(ll,t)},!r))return w(t),x}if(!(S||Hs(u)&&Hs(d))){let e,t;const n=Tl(d),a=Tl(u);if(Hs(b)||isNaN(b)){const r=i.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;dl(n.value)&&b&&(e=s?o(b)>o(n.value):l?b>n.value:r>new Date(n.value)),dl(a.value)&&b&&(t=s?o(b)<o(a.value):l?b<a.value:r<new Date(a.value))}else{const r=i.valueAsNumber||(b?+b:b);Hs(n.value)||(e=r>n.value),Hs(a.value)||(t=r<a.value)}if((e||t)&&(R(!!e,n.message,a.message,"max","min"),!r))return w(x[f].message),x}if((l||c)&&!S&&(dl(b)||a&&Array.isArray(b))){const e=Tl(l),t=Tl(c),n=!Hs(e.value)&&b.length>+e.value,a=!Hs(t.value)&&b.length<+t.value;if((n||a)&&(R(n,e.message,t.message),!r))return w(x[f].message),x}if(p&&!S&&dl(b)){const{value:e,message:t}=Tl(p);if(El(e)&&!b.match(e)&&(x[f]={type:sl,message:t,ref:i,...C(sl,t)},!r))return w(t),x}if(m)if(vl(m)){const e=Pl(await m(b,t),v);if(e&&(x[f]={...e,...C("validate",e.message)},!r))return w(e.message),x}else if(Zs(m)){let e={};for(const n in m){if(!cl(e)&&!r)break;const a=Pl(await m[n](b,t),v,n);a&&(e={...a,...C(n,a.message)},w(a.message),r&&(x[f]=e))}if(!cl(e)&&(x[f]={ref:v,...e},!r))return x}return w(!0),x};function Il(e,t){const r=Array.isArray(t)?t:rl(t)?[t]:nl(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Qs(e)?n++:e[t[n++]];return e}(e,r),a=r.length-1,i=r[a];return n&&delete n[i],0!==a&&(Zs(n)&&cl(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Qs(e[t]))return!1;return!0}(n))&&Il(e,r.slice(0,-1)),e}var Ol=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Ll=e=>Hs(e)||!$s(e);function Bl(e,t){if(Ll(e)||Ll(t))return e===t;if(Us(e)&&Us(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const r=e[a];if(!n.includes(a))return!1;if("ref"!==a){const e=t[a];if(Us(r)&&Us(e)||Zs(r)&&Zs(e)||Array.isArray(r)&&Array.isArray(e)?!Bl(r,e):r!==e)return!1}}return!0}var jl=e=>"select-multiple"===e.type,Dl=e=>_l(e)||Ws(e),Fl=e=>wl(e)&&e.isConnected,Ml=e=>{for(const t in e)if(vl(e[t]))return!0;return!1};function zl(e,t={}){const r=Array.isArray(e);if(Zs(e)||r)for(const r in e)Array.isArray(e[r])||Zs(e[r])&&!Ml(e[r])?(t[r]=Array.isArray(e[r])?[]:{},zl(e[r],t[r])):Hs(e[r])||(t[r]=!0);return t}function Vl(e,t,r){const n=Array.isArray(e);if(Zs(e)||n)for(const n in e)Array.isArray(e[n])||Zs(e[n])&&!Ml(e[n])?Qs(t)||Ll(r[n])?r[n]=Array.isArray(e[n])?zl(e[n],[]):{...zl(e[n])}:Vl(e[n],Hs(t)?{}:t[n],r[n]):r[n]=!Bl(e[n],t[n]);return r}var Wl=(e,t)=>Vl(e,t,zl(t)),Ul=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Qs(e)?e:t?""===e?NaN:e?+e:e:r&&dl(e)?new Date(e):n?n(e):e;function Hl(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return bl(t)?t.files:_l(t)?Al(e.refs).value:jl(t)?[...t.selectedOptions].map((({value:e})=>e)):Ws(t)?Cl(e.refs).value:Ul(Qs(t.value)?e.ref.value:t.value,e)}var $l=(e,t,r,n)=>{const a={};for(const r of e){const e=el(t,r);e&&al(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Zl=e=>Qs(e)?e:El(e)?e.source:Zs(e)?El(e.value)?e.value.source:e.value:e,Gl=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ql(e,t,r){const n=el(e,r);if(n||rl(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const n=a.join("."),i=el(t,n),o=el(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(o&&o.type)return{name:n,error:o};a.pop()}return{name:r}}var Yl=(e,t,r,n,a)=>!a.isOnAll&&(!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:!(r?n.isOnChange:a.isOnChange)||e),Kl=(e,t)=>!Js(el(e,t)).length&&Il(e,t);const Xl={mode:ol.onSubmit,reValidateMode:ol.onChange,shouldFocusError:!0};function Jl(e={}){let t,r={...Xl,...e},n={submitCount:0,isDirty:!1,isLoading:vl(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},i=(Zs(r.defaultValues)||Zs(r.values))&&Xs(r.defaultValues||r.values)||{},o=r.shouldUnregister?{}:Xs(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ol(),array:Ol(),state:Ol()},p=fl(r.mode),m=fl(r.reValidateMode),f=r.criteriaMode===ol.all,g=async e=>{if(u.isValid||e){const e=r.resolver?cl((await v()).errors):await w(a,!0);e!==n.isValid&&d.state.next({isValid:e})}},h=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?al(n.validatingFields,e,t):Il(n.validatingFields,e))})),d.state.next({validatingFields:n.validatingFields,isValidating:!cl(n.validatingFields)}))},y=(e,t,r,n)=>{const l=el(a,e);if(l){const a=el(o,e,Qs(r)?el(i,e):r);Qs(a)||n&&n.defaultChecked||t?al(o,e,t?a:Hl(l._f)):E(e,a),s.mount&&g()}},b=(e,t,r,o,s)=>{let l=!1,c=!1;const p={name:e},m=!!(el(a,e)&&el(a,e)._f&&el(a,e)._f.disabled);if(!r||o){u.isDirty&&(c=n.isDirty,n.isDirty=p.isDirty=x(),l=c!==p.isDirty);const r=m||Bl(el(i,e),t);c=!(m||!el(n.dirtyFields,e)),r||m?Il(n.dirtyFields,e):al(n.dirtyFields,e,!0),p.dirtyFields=n.dirtyFields,l=l||u.dirtyFields&&c!==!r}if(r){const t=el(n.touchedFields,e);t||(al(n.touchedFields,e,r),p.touchedFields=n.touchedFields,l=l||u.touchedFields&&t!==r)}return l&&s&&d.state.next(p),l?p:{}},v=async e=>{h(e,!0);const t=await r.resolver(o,r.context,$l(e||l.mount,a,r.criteriaMode,r.shouldUseNativeValidation));return h(e),t},w=async(e,t,a={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name);h([i],!0);const u=await Nl(s,o,f,r.shouldUseNativeValidation&&!t,c);if(h([i]),u[e.name]&&(a.valid=!1,t))break;!t&&(el(u,e.name)?c?yl(n.errors,u,e.name):al(n.errors,e.name,u[e.name]):Il(n.errors,e.name))}c&&await w(c,t,a)}}return a.valid},x=(e,t)=>(e&&t&&al(o,e,t),!Bl(P(),i)),_=(e,t,r)=>pl(e,l,{...s.mount?o:Qs(t)?i:dl(e)?{[e]:t}:t},r,t),E=(e,t,r={})=>{const n=el(a,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&al(o,e,Ul(t,r)),i=wl(r.ref)&&Hs(t)?"":t,jl(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?Ws(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):bl(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||d.values.next({name:e,values:{...o}})))}(r.shouldDirty||r.shouldTouch)&&b(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&A(e)},k=(e,t,r)=>{for(const n in t){const i=t[n],o=`${e}.${n}`,s=el(a,o);!l.array.has(e)&&Ll(i)&&(!s||s._f)||Us(i)?E(o,i,r):k(o,i,r)}},S=(e,t,r={})=>{const c=el(a,e),p=l.array.has(e),m=Xs(t);al(o,e,m),p?(d.array.next({name:e,values:{...o}}),(u.isDirty||u.dirtyFields)&&r.shouldDirty&&d.state.next({name:e,dirtyFields:Wl(i,o),isDirty:x(e,m)})):!c||c._f||Hs(m)?E(e,m,r):k(e,m,r),gl(e,l)&&d.state.next({...n}),d.values.next({name:s.mount?e:void 0,values:{...o}})},C=async i=>{s.mount=!0;const y=i.target;let x=y.name,_=!0;const E=el(a,x),k=e=>{_=Number.isNaN(e)||e===el(o,x,e)};if(E){let s,S;const C=y.type?Hl(E._f):Gs(i),R=i.type===il.BLUR||i.type===il.FOCUS_OUT,P=!Gl(E._f)&&!r.resolver&&!el(n.errors,x)&&!E._f.deps||Yl(R,el(n.touchedFields,x),n.isSubmitted,m,p),T=gl(x,l,R);al(o,x,C),R?(E._f.onBlur&&E._f.onBlur(i),t&&t(0)):E._f.onChange&&E._f.onChange(i);const N=b(x,C,R,!1),I=!cl(N)||T;if(!R&&d.values.next({name:x,type:i.type,values:{...o}}),P)return u.isValid&&g(),I&&d.state.next({name:x,...T?{}:N});if(!R&&T&&d.state.next({...n}),r.resolver){const{errors:e}=await v([x]);if(k(C),_){const t=ql(n.errors,a,x),r=ql(e,a,t.name||x);s=r.error,x=r.name,S=cl(e)}}else h([x],!0),s=(await Nl(E,o,f,r.shouldUseNativeValidation))[x],h([x]),k(C),_&&(s?S=!1:u.isValid&&(S=await w(a,!0)));_&&(E._f.deps&&A(E._f.deps),((r,a,i,o)=>{const s=el(n.errors,r),l=u.isValid&&tl(a)&&n.isValid!==a;var p;if(e.delayError&&i?(p=()=>((e,t)=>{al(n.errors,e,t),d.state.next({errors:n.errors})})(r,i),t=e=>{clearTimeout(c),c=setTimeout(p,e)},t(e.delayError)):(clearTimeout(c),t=null,i?al(n.errors,r,i):Il(n.errors,r)),(i?!Bl(s,i):s)||!cl(o)||l){const e={...o,...l&&tl(a)?{isValid:a}:{},errors:n.errors,name:r};n={...n,...e},d.state.next(e)}})(x,S,s,N))}},R=(e,t)=>{if(el(n.errors,t)&&e.focus)return e.focus(),1},A=async(e,t={})=>{let i,o;const s=ul(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await v(e);if(e)for(const r of e){const e=el(t,r);e?al(n.errors,r,e):Il(n.errors,r)}else n.errors=t;return t})(Qs(e)?e:s);i=cl(t),o=e?!s.some((e=>el(t,e))):i}else e?(o=(await Promise.all(s.map((async e=>{const t=el(a,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||n.isValid)&&g()):o=i=await w(a);return d.state.next({...!dl(e)||u.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!o&&hl(a,R,e?s:l.mount),o},P=e=>{const t={...s.mount?o:i};return Qs(e)?t:dl(e)?el(t,e):e.map((e=>el(t,e)))},T=(e,t)=>({invalid:!!el((t||n).errors,e),isDirty:!!el((t||n).dirtyFields,e),error:el((t||n).errors,e),isValidating:!!el(n.validatingFields,e),isTouched:!!el((t||n).touchedFields,e)}),N=(e,t,r)=>{const i=(el(a,e,{_f:{}})._f||{}).ref,o=el(n.errors,e)||{},{ref:s,message:l,type:c,...u}=o;al(n.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},I=(e,t={})=>{for(const s of e?ul(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Il(a,s),Il(o,s)),!t.keepError&&Il(n.errors,s),!t.keepDirty&&Il(n.dirtyFields,s),!t.keepTouched&&Il(n.touchedFields,s),!t.keepIsValidating&&Il(n.validatingFields,s),!r.shouldUnregister&&!t.keepDefaultValue&&Il(i,s);d.values.next({values:{...o}}),d.state.next({...n,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&g()},O=({disabled:e,name:t,field:r,fields:n,value:a})=>{if(tl(e)&&s.mount||e){const i=e?void 0:Qs(a)?Hl(r?r._f:el(n,t)._f):a;al(o,t,i),b(t,i,!1,!1,!0)}},L=(e,t={})=>{let n=el(a,e);const o=tl(t.disabled);return al(a,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),n?O({field:n,disabled:t.disabled,name:e,value:t.value}):y(e,!0,t.value),{...o?{disabled:t.disabled}:{},...r.progressive?{required:!!t.required,min:Zl(t.min),max:Zl(t.max),minLength:Zl(t.minLength),maxLength:Zl(t.maxLength),pattern:Zl(t.pattern)}:{},name:e,onChange:C,onBlur:C,ref:o=>{if(o){L(e,t),n=el(a,e);const r=Qs(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=Dl(r),l=n._f.refs||[];if(s?l.find((e=>e===r)):r===n._f.ref)return;al(a,e,{_f:{...n._f,...s?{refs:[...l.filter(Fl),r,...Array.isArray(el(i,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else n=el(a,e,{}),n._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!qs(l.array,e)||!s.action)&&l.unMount.add(e)}}},B=()=>r.shouldFocusError&&hl(a,R,l.mount),j=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=Xs(o);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await v();n.errors=e,l=t}else await w(a);if(Il(n.errors,"root"),cl(n.errors)){d.state.next({errors:{}});try{await e(l,i)}catch(e){s=e}}else t&&await t({...n.errors},i),B(),setTimeout(B);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:cl(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},D=(t,r={})=>{const c=t?Xs(t):i,p=Xs(c),m=cl(t),f=m?i:p;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues)for(const e of l.mount)el(n.dirtyFields,e)?al(f,e,el(o,e)):S(e,el(f,e));else{if(Ks&&Qs(t))for(const e of l.mount){const t=el(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(wl(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}o=e.shouldUnregister?r.keepDefaultValues?Xs(i):{}:Xs(f),d.array.next({values:{...f}}),d.values.next({values:{...f}})}l={mount:r.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!r.keepIsValid||!!r.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!m&&(r.keepDirty?n.isDirty:!(!r.keepDefaultValues||Bl(t,i))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:m?[]:r.keepDirtyValues?r.keepDefaultValues&&o?Wl(i,o):n.dirtyFields:r.keepDefaultValues&&t?Wl(i,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},F=(e,t)=>D(vl(e)?e(o):e,t);return{control:{register:L,unregister:I,getFieldState:T,handleSubmit:j,setError:N,_executeSchema:v,_getWatch:_,_getDirty:x,_updateValid:g,_removeUnmounted:()=>{for(const e of l.unMount){const t=el(a,e);t&&(t._f.refs?t._f.refs.every((e=>!Fl(e))):!Fl(t._f.ref))&&I(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,l,c=!0,p=!0)=>{if(l&&r){if(s.action=!0,p&&Array.isArray(el(a,e))){const t=r(el(a,e),l.argA,l.argB);c&&al(a,e,t)}if(p&&Array.isArray(el(n.errors,e))){const t=r(el(n.errors,e),l.argA,l.argB);c&&al(n.errors,e,t),Kl(n.errors,e)}if(u.touchedFields&&p&&Array.isArray(el(n.touchedFields,e))){const t=r(el(n.touchedFields,e),l.argA,l.argB);c&&al(n.touchedFields,e,t)}u.dirtyFields&&(n.dirtyFields=Wl(i,o)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else al(o,e,t)},_updateDisabledField:O,_getFieldArray:t=>Js(el(s.mount?o:i,t,e.shouldUnregister?el(i,t,[]):[])),_reset:D,_resetDefaultValues:()=>vl(r.defaultValues)&&r.defaultValues().then((e=>{F(e,r.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{tl(e)&&(d.state.next({disabled:e}),hl(a,((t,r)=>{const n=el(a,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach((t=>{t.disabled=n._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{n.errors=e,d.state.next({errors:n.errors,isValid:!1})},get _fields(){return a},get _formValues(){return o},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return n},set _formState(e){n=e},get _options(){return r},set _options(e){r={...r,...e}}},trigger:A,register:L,handleSubmit:j,watch:(e,t)=>vl(e)?d.values.subscribe({next:r=>e(_(void 0,t),r)}):_(e,t,!0),setValue:S,getValues:P,reset:F,resetField:(e,t={})=>{el(a,e)&&(Qs(t.defaultValue)?S(e,Xs(el(i,e))):(S(e,t.defaultValue),al(i,e,Xs(t.defaultValue))),t.keepTouched||Il(n.touchedFields,e),t.keepDirty||(Il(n.dirtyFields,e),n.isDirty=t.defaultValue?x(e,Xs(el(i,e))):x()),t.keepError||(Il(n.errors,e),u.isValid&&g()),d.state.next({...n}))},clearErrors:e=>{e&&ul(e).forEach((e=>Il(n.errors,e))),d.state.next({errors:e?n.errors:{}})},unregister:I,setError:N,setFocus:(e,t={})=>{const r=el(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:T}}function Ql(e={}){const t=i.useRef(),r=i.useRef(),[n,a]=i.useState({isDirty:!1,isValidating:!1,isLoading:vl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:vl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Jl(e),formState:n});const o=t.current.control;return o._options=e,function(e){const t=i.useRef(e);t.current=e,i.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}({subject:o._subjects.state,next:e=>{((e,t,r,n)=>{r(e);const{name:a,...i}=e;return cl(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||ol.all)))})(e,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),i.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),i.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==n.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,n.isDirty]),i.useEffect((()=>{e.values&&!Bl(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),i.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),i.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),i.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=((e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ol.all&&(t._proxyFormState[a]=!n||ol.all),r&&(r[a]=!0),e[a]}});return a})(n,o),t.current}const ec="loading",tc=()=>{const{licenseStatus:e}=(0,t.A)((e=>{const{getLicenseStatus:t}=e(g.U);return{licenseStatus:t()}}),[]),{updateLicenseStatus:n}=(0,r.A)(g.U),[a,o]=(0,i.useState)("");return{licenseStatus:e,getAstraSitesProStatus:y.Lv,handleActivateLicense:async e=>{if(a!==ec){o(ec);try{const t=await(0,y.nr)({path:"/wp-json/bsf-core/v1/license/activate",data:{"license-key":e,"product-id":"astra-pro-sites"},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}});if(t.success)return o("success"),(0,Ps.oR)((0,Ts.A)({title:"Successfully activated!",message:"Your license key has been activated successfully."}),Ts.A.getOptions({type:"success"})),n("active"),t;throw t}catch(e){return o("error"),(0,Ps.oR)((0,Ts.A)({title:"Failed to activate!",message:e?.message??"Your license key could not be activated."}),Ts.A.getOptions({type:"error"})),console.error(e),e}}},loadingStatus:a}},rc=()=>{const{loadingStatus:e,licenseStatus:t,getAstraSitesProStatus:r,handleActivateLicense:n}=tc(),a=r(),{register:o,handleSubmit:s,formState:{errors:l},setFocus:c}=Ql({defaultValues:{licenseKey:""}}),d=()=>a.notInstalled||a.inactive?"free":"premium";return(0,i.useEffect)((()=>{c("licenseKey")}),[]),"active"!==t&&React.createElement("div",{className:"spectra-ai p-4 space-y-4 rounded bg-background-tertiary"},React.createElement("div",{className:"space-y-2"},React.createElement("div",{className:"flex items-center justify-start gap-2"},React.createElement(ei.DE,null),React.createElement("p",{className:"m-0 text-base font-semibold text-heading-text"},"Premium Template")),React.createElement("p",{className:"m-0 text-sm font-normal text-body-text"},"free"===d()?(0,u.__)("Access this template and all others with Essentials & Business Toolkit package starting at just $79.","astra-sites"):(0,u.__)("Please Enter your Licence Key","astra-sites"))),"premium"===d()&&React.createElement("form",{className:"m-0 p-0",onSubmit:s((async({licenseKey:e})=>{await n(e)}))},React.createElement(Qo,{className:"w-full",inputClassName:"!pr-11",type:"text",id:"licenseKey",name:"licenseKey",placeholder:(0,u.__)("License key","astra-sites"),register:o,error:l.licenseKey,validations:{required:{value:!0,message:"License key is required"}},suffixIcon:React.createElement("button",{type:"submit",className:"border-0 bg-transparent focus:outline-none inline-flex items-center justify-center cursor-pointer p-3"},"loading"===e?React.createElement(p,{className:"w-5 h-5 text-icon-secondary animate-spin"}):React.createElement(Xi,{className:"w-5 h-5 text-icon-secondary"})),suffixIconClassName:"absolute right-4 flex items-center right-0"})),"premium"===d()&&React.createElement("div",{className:"m-0"},React.createElement("p",{className:"m-0 text-sm font-normal text-body-text"},React.createElement("span",{className:"font-semibold text-heading-text"},"Need help?")," ","Get in touch with our"," ",React.createElement("a",{href:"https://wpastra.com/contact",target:"_blank",className:"text-accent-spectra",rel:"noreferrer"},"support team"),".")))},nc=(0,e.A)((0,a.A)((e=>{const{getPagePreview:t,getSitePreview:r}=e("astra-sites");return{sitePreview:r(),pagePreview:t()}})))((0,i.memo)((function({sitePreview:e,pagePreview:n}){const{setCurrentScreen:a}=(0,r.A)(g.U),{licenseStatus:o,getAstraSitesProStatus:s}=tc(),l=s(),{importInProgress:c,previousScreen:d}=(0,t.A)((e=>{const{getImportInProgress:t,getPreviousScreen:r}=e(g.U);return{importInProgress:t(),previousScreen:r()}}),[]);if(!Object.keys(e).length)return"";e?.type||(e.type="site");const p=Object.values(e.pages)||[],m=n["featured-image-url"]||`${ast_block_template_vars.uri}dist/placeholder.png`,f="free"===e["astra-sites-type"],h=!f&&"active"!==o,b=!f&&"active"!==o&&!l.active;return React.createElement(i.Fragment,null,React.createElement(Os,null),React.createElement("div",{className:(0,y.xW)("flex h-full pt-6 px-10 mx-auto gap-10")},React.createElement("div",{className:(0,y.xW)("flex-1 h-full")},React.createElement("div",{className:"h-full flex flex-col items-stretch justify-stretch space-y-6"},React.createElement("div",{className:"flex flex-col sm:flex-row items-start justify-start gap-2 sm:gap-5"},React.createElement(ii.A,{className:(0,y.xW)("inline-flex pl-1 py-1 pr-2 h-7 gap-1 border-border-primary text-body-text",c&&"disable-click-action"),variant:"white",hasPrefixIcon:!0,isSmall:!0,onClick:()=>{a("all-favorites"===d?"all-favorites":"all-sites-grid")}},React.createElement(Yi,{className:"w-4 h-4"}),React.createElement("span",null,"Back")),React.createElement("div",{className:"space-x-3"},React.createElement("p",{className:"m-0 text-xl font-semibold inline-block"},e?.title),"free"!==e["astra-sites-type"]&&React.createElement(zs,{className:"align-text-top"}))),React.createElement("div",{className:(0,y.xW)("flex-1 w-full overflow-y-auto h-screen bg-gray-300 block ast-thin-scrollbar !mb-6")},React.createElement("img",{className:"w-full",src:m,alt:"screenshot",onLoad:e=>{e.target.parentElement.classList.remove("bg-gray-300")}})))),React.createElement("div",{className:(0,y.xW)("flex flex-col w-2/5 lg:w-[35%] h-full")},React.createElement("div",{className:"flex items-center justify-between gap-2 mb-6"},React.createElement("p",{className:"m-0 hidden sm:block text-xl font-semibold"},(0,u.nv)("%s (%s)",(0,u._n)("Page","Pages",p.length,"astra-sites"),p.length)),React.createElement(Vs.A,{item:e},(({isFavorite:e,onClickFavorite:t})=>React.createElement("button",{className:"min-w-fit inline-flex items-center justify-start gap-2 border-0 focus:outline-none bg-transparent cursor-pointer text-nav-active group/favorites",onClick:t},React.createElement(Bs.A,{className:(0,y.xW)("size-6 sm:size-5 transition-colors ease-out duration-150",e?"fill-favorite text-favorite":"group-hover/favorites:fill-favorite group-hover/favorites:text-favorite")}),React.createElement("span",{className:"text-base font-medium hidden sm:inline"},e?"Remove from favorites":"Add to favorites"))))),React.createElement("div",{className:"flex-1 overflow-y-auto ast-thin-scrollbar -mx-1"},React.createElement("div",{className:(0,y.xW)("grid grid-cols-1 lg:grid-cols-2 auto-rows-auto gap-10 border-x-4 border-solid border-transparent")},p.length?p.map((e=>React.createElement(Ls,{key:e.ID,item:e}))):React.createElement("div",{className:"no-search-result"},React.createElement("h3",null,(0,u.__)("No Result Found","astra-sites")),React.createElement("p",null,(0,u.__)("The search result not found. Try another search.","astra-sites"))))),React.createElement("div",{className:"py-8 space-y-6"},!f&&React.createElement(rc,null),React.createElement("div",{className:"min-w-min flex flex-wrap xl:flex-nowrap gap-6 items-center justify-center"},React.createElement(ii.A,{className:"lg:grow w-full lg:w-auto min-w-fit",variant:"white",hasSuffixIcon:!0,onClick:()=>{window.open(n["astra-page-url"]+"?customize=template","_blank")},disabled:c},React.createElement("span",{className:"hidden sm:inline"},(0,u.__)("Live Preview","astra-sites")),React.createElement(Ds,{className:"size-6 sm:size-5"})),b?React.createElement(ii.A,{variant:"primary",className:"lg:grow-[2] w-full lg:w-auto min-w-fit",onClick:()=>{window.open(ast_block_template_vars.getProURL,"_blank")},hasSuffixIcon:!0},React.createElement("span",null,(0,u.__)("Get Access","astra-sites")),React.createElement(Ms,{className:"w-5 h-5"})):React.createElement(Is,{disabled:h}))))))})));var ac=o(7497);const ic=(0,e.A)((0,a.A)((e=>{const{getSitePreview:t}=e("astra-sites");return{preview:t}})),(0,n.A)((e=>{const{setSitePreview:t,setPagePreview:r,setCurrentScreen:n,setImportItemInfo:a}=e("astra-sites");return{setSitePreview(e){const a=Object.values(e.pages).length?Object.values(e.pages)[0]:[];r(a),t(e),n("all-single-site-pages")},setImportItemInfo:a}})))((0,i.memo)((({setSitePreview:e,item:t,setImportItemInfo:r})=>{const n=t["thumbnail-image-url"]||"",a=t.pages?t.pages.length:0,o=a<=1?"Template":"Templates",[s,l]=(0,i.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`),c=t["astra-sites-type"];return(0,i.useEffect)((()=>{let e=!0;const t=new Image;return t.src=n,t.onload=()=>{e&&l(t.src)},()=>{e=!1}}),[s]),React.createElement(ac.A,{className:(0,y.xW)("border-none w-full content-start relative")},React.createElement("div",{className:(0,y.xW)("inner","m-0 bg-white relative transition-all border border-solid border-border-primary cursor-pointer"),onClick:()=>{e(t),r(t)}},"free"!==c&&React.createElement(zs,{className:"absolute top-3 right-3"}),React.createElement("div",{className:(0,y.xW)("bg-top bg-cover bg-no-repeat overflow-hidden bg-gray-300 block aspect-[13/16]"),style:{backgroundImage:`url('${s}')`}},React.createElement("div",{className:(0,y.xW)("absolute top-0 left-0 w-full h-full cursor-pointer opacity-0 invisible float-none transition-all duration-300 bg-black bg-opacity-50")},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"}))),React.createElement("div",{className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end overflow-hidden"},React.createElement("div",{className:(0,y.xW)("w-full flex items-center justify-between gap-3 py-2 pl-4 pr-3 bg-white/95 shadow-action-buttons backdrop-blur-[3px]")},React.createElement("div",null,React.createElement("p",{className:(0,y.xW)("m-0 text-base text-heading-text font-semibold leading-6")},(0,Wo.iZ)(t.title)),a?React.createElement("p",{className:"m-0 text-sm text-body-text font-normal leading-5 sub-title"},`${a} ${o}`):""),React.createElement(Vs.A,{item:t})))))}))),oc=(0,e.A)((0,a.A)((e=>{const{getAllPages:t,getCurrentScreen:r,getAllSites:n}=e("astra-sites");return{currentScreen:r(),allSites:n(),allPages:t()}})))((0,i.memo)((({allSites:e})=>{const{searchTerm:n,favorites:a,categoryFilter:o,loadingBlocksAndSites:s}=(0,t.A)((e=>{const{getFilterSitesBySearchTerm:t,getFavorites:r,getFilterSitesByCategory:n,getLoadingBlocksAndSites:a}=e(g.U);return{searchTerm:t(),favorites:r()?.site??[],categoryFilter:n(),loadingBlocksAndSites:a()}}),[]),{setFilterSitesBySearchTerm:l}=(0,r.A)(g.U),c=Object.values(e).map((e=>(e.type="site",e))).filter((e=>{if("favorite"===o)return a.map(Number).includes(+e.ID);if(!n)return!0;const t=Object.values(e.tag).map((e=>e.toLowerCase()));return e.title.toLowerCase().includes(n.toLowerCase())||t.includes(n.toLowerCase())})),u=(0,y._9)("ast-sites-visible-items")||12,d=(0,y._9)("ast-sites-scroll-position")||0,[p,m]=(0,i.useState)(u),f=(0,i.useRef)(null),h=(0,i.useCallback)((()=>{const{scrollTop:t,clientHeight:r,scrollHeight:n}=f.current;(0,y.HU)("ast-sites-scroll-position",t),e.length<=p||t+r>=n-r/2&&m((e=>((0,y.HU)("ast-sites-visible-items",e+12),e+12)))}),[]),b=(0,i.useCallback)((e=>{Zo.A.emit("reset-list-count"),l("")}),[]);if((0,i.useEffect)((()=>{f.current=document.getElementById("ast-template-kits-list");const e=f.current;if(e)return e.addEventListener("scroll",h),d&&e.scrollTo({top:d}),()=>{e.removeEventListener("scroll",h)}}),[]),(0,i.useEffect)((()=>{Zo.A.on("reset-list-count",(()=>{m(12),(0,y.D6)("ast-sites-visible-items"),(0,y.D6)("ast-sites-scroll-position")}))}),[]),s)return React.createElement("div",{className:"grid auto-rows-auto gap-8 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},Array.from({length:12}).map(((e,t)=>React.createElement(no,{type:t%2?3:2,key:t}))));const v=c.slice(0,p);return React.createElement("div",{className:(0,y.xW)("grid auto-rows-auto gap-8",v.length?"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4":"grid-cols-1")},v.length?v.map((e=>React.createElement(ic,{key:e.ID,item:e}))):React.createElement("div",{className:"mx-auto mt-10 md:mt-16 lg:mt-24 xl:mt-32 space-y-6 text-center w-full"},React.createElement("div",{className:"space-y-2.5"},React.createElement("p",{className:"m-0 text-lg font-semibold text-heading-text"},"Sorry No Results Found 😕"),React.createElement("p",{className:"m-0 text-base font-normal text-body-text"},"Don’t see a template you would like to import?",React.createElement("br",null),React.createElement("a",{href:"https://wpastra.com/sites-suggestions/",className:"no-underline text-accent-spectra",target:"_blank"},"Make a template suggestion!"))),React.createElement(ii.A,{onClick:b,variant:"white",className:"mx-auto border-border-secondary text-border-secondary"},"Back to Templates")))}))),sc=(0,i.memo)((function(){const{myFavoritesActive:e}=(0,t.A)((e=>{const{getFilterSitesByCategory:t}=e(g.U);return{myFavoritesActive:"favorite"===t()}}),[]),{setFilterSitesByCategory:n}=(0,r.A)(g.U);return React.createElement("div",{id:"ast-template-kits-list",className:"h-full overflow-y-auto px-10 pb-10 pt-6"},React.createElement("div",{className:"flex flex-col sm:flex-row items-center justify-between mb-6 gap-4"},e?React.createElement(ii.A,{className:"inline-flex pl-1 py-1 pr-2 h-7 gap-1 border-border-primary text-body-text",variant:"white",hasPrefixIcon:!0,isSmall:!0,onClick:()=>{n("")}},React.createElement(Yi,{className:"w-4 h-4"}),React.createElement("span",null,"Back")):React.createElement("p",{className:"m-0 text-xl font-semibold inline-block"},"Template Kits"),React.createElement("div",{className:"flex items-center gap-10"},React.createElement(es,{className:"w-full md:w-[270px]",placeholder:"Search.."}))),React.createElement(oc,null))}));o(7525);const lc=(0,e.A)((0,a.A)((e=>{const{getFullWidthBlockPreview:t}=e("astra-sites");return{blockPreview:t()}})))((0,i.memo)((({blockPreview:e})=>{const t=e["featured-image-url"]||`${ast_block_template_vars.uri}dist/placeholder.png`;return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t,alt:"Preview"}))})));o(8509);const cc=(0,e.A)((0,a.A)((e=>{const{getFullWidthPagePreview:t}=e("astra-sites");return{pagePreview:t()}})))((0,i.memo)((({pagePreview:e})=>{const t=e["featured-image-url"]||"";return React.createElement("div",{className:"ast-block-templates-full-preview"},React.createElement("img",{src:t,alt:"Preview"}))}))),uc=()=>React.createElement("div",null,"All signle pages"),dc=(0,e.A)((0,a.A)((e=>{const{getFilterBlocksPagesByCategory:t,getFilterBlocksPagesByColor:r,getAllPatternsAndPages:n,getAllCategories:a}=e("astra-sites");return{filterBlocksByCategory:t(),filterBlocksByColor:r(),allPages:n()?.pages,allCategories:a()}})),(0,n.A)((e=>{const{setFilterBlocksPagesByCategory:t}=e("astra-sites");return{setFilterBlocksPagesByCategory:t}})))((0,i.memo)((({filterBlocksByCategory:e,setFilterBlocksPagesByCategory:r,allPages:n,allCategories:a})=>{const i={};let o=0;for(const e in a){let t=0;for(const r in n)a[e].id===n[r].category&&t++;0!==t&&(i[e]=a[e],i[e].count=t,o+=t)}const s=Object.keys(i).map((e=>i[e])),{favorites:l}=(0,t.A)((e=>{const{getFavorites:t}=e("astra-sites");return{favorites:t()}}));return React.createElement($o,{value:e,allCount:o,favoriteCount:l?.page?Object.keys(l?.page)?.length:0,list:s,onChange:(e,t)=>{""!==t.id?r(t.id):r("")}})})));function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pc.apply(null,arguments)}const{memo:mc}=wp.element,fc=mc((({className:e,...r})=>{const{adaptiveMode:n}=(0,t.A)((e=>{const{getAdaptiveMode:t}=e(g.U);return{adaptiveMode:t()}}));return React.createElement("div",pc({className:(0,y.xW)("spectra-ai w-full lg:max-w-[280px] self-stretch bg-white border-0 border-r border-solid border-border-primary md:max-lg:max-w-[246px] xl:max-w-[280px] lg:max-xl:max-w-[260px] hidden sm:block max-w-60",e)},r),React.createElement("div",{className:"h-full w-full flex flex-col gap-5 py-5 px-4"},React.createElement(es,null),React.createElement(Qa,{className:"mx-2"}),React.createElement(dc,null),n&&React.createElement("div",{className:"mt-auto space-y-5 min-h-[3.125rem]"},React.createElement(Qa,{className:"mx-2"}),React.createElement(Yo,null))))})),gc=(0,e.A)((0,n.A)((e=>{const{setFilterBlocksPagesBySearchTerm:t,setFilterBlocksPagesByCategory:r,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i,setPagePreview:o,setCurrentScreen:s}=e(g.U);return{setFilterBlocksPagesByCategory:r,setFilterBlocksPagesBySearchTerm:t,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i,setFullPagePreview(e){o(e),s("single-block-page-full-preview")}}})),(0,a.A)((e=>{const{getAllBlocksPages:t,getAllCategories:r,getFilterBlocksPagesByCategory:n,getFilterBlocksPagesByColor:a,getDefaultPageColorPalette:i,getActivePagePalette:o,getDynamicContent:s,getAIStepData:l,getFilterBlocksPagesBySearchTerm:c,getDynamicContentSyncStatus:u,getDynamicContentSyncFlags:d,getAllPagesCategories:p,getDynamicContentReSyncStatus:m,getRegeneratingContentCategory:f,getAdaptiveMode:h,getHideNotice:y,getDisableAi:b,getIsSyncBusinessDetails:v}=e(g.U);return{filterBlocksPagesByCategory:n(),filterBlocksByColor:a(),allPages:t(),defaultPalette:i(),activePalette:o(),dynamicContent:s(),selectedImages:l().selectedImages,allCategories:r(),searchTerm:c(),syncStatus:u()?.pages,syncFlags:d(),allPagesCategories:p(),reSyncStatus:m(),regeneratingContentCategory:f(),adaptiveMode:h(),hideNotice:y(),disableAi:b(),isSyncBusinessDetails:v()}})))((0,i.memo)((({allPages:e,defaultPalette:r,activePalette:n,dynamicContent:a,selectedImages:o,filterBlocksPagesByCategory:s,allPagesCategories:l,searchTerm:c,syncFlags:d,syncStatus:p,reSyncStatus:m,regeneratingContentCategory:f,adaptiveMode:h,hideNotice:b,setHideNotice:v,disableAi:w,isSyncBusinessDetails:x,toggleOnboardingAIStep:_,setFullPagePreview:E})=>{const[k,S]=(0,i.useState)(!1),C=e,R="https://youtu.be/Zpkgw9USlEc",{stepsData:{businessContact:A,businessDetails:P,token:T},allPatternsAndPages:N,loadingBlocksAndSites:I}=(0,t.A)((e=>{const{getAIStepData:t,getAllPatternsAndPages:r,getLoadingBlocksAndSites:n}=e(g.U);return{stepsData:t(),allPatternsAndPages:r(),loadingBlocksAndSites:n()}})),O=(0,i.useRef)(null),{currentBalanceStatus:L,remaining:B}=oi(),j={show:L.warning&&!b.creditWarning||L.danger&&!b.creditDanger||!1,variantAndType:L.warning&&{variant:"warning",type:"creditWarning"}||L.danger&&{variant:"error",type:"creditDanger"},message:0===B?"You're out of AI credits. Personalize the design library with content and images tailored to your website project":(L.warning||L.danger)&&"You're almost out of AI credits. Personalize the design library with content and images tailored to your website project"},D=e=>()=>{v({[e]:!0}),(0,Wo.yL)(e)};(0,i.useEffect)((()=>{Zo.A.on("reset-list-count",(()=>{M(10),(0,y.D6)("ast-pages-visible-items"),(0,y.D6)("ast-pages-scroll-position")}))}),[]),(0,i.useEffect)((()=>{O.current&&(O.current.scrollTop=(0,y._9)("ast-pages-scroll-position")||0)}),[]);const[F,M]=(0,i.useState)((0,y._9)("ast-pages-visible-items")||10),z=Object.keys(n).length>0?n.colors:r.colors,V=()=>{const e=c&&!C.length?N.pages:C;window.innerHeight+window.scrollY>=document.body.offsetHeight-500&&e.length>F&&M((e=>e+10))};(0,i.useEffect)((()=>{const e=((e,t)=>{let r;return(...t)=>{clearTimeout(r),r=setTimeout((()=>e(...t)),200)}})(V),t=document.getElementsByClassName("ast-scrolling-container");if(t.length>0){const r=t[0];return r.addEventListener("scroll",e),()=>r.removeEventListener("scroll",e)}}),[V]);const W=jo(V,200),U=C.slice(0,F),H=e=>Math.floor(e/3)+1,$=()=>!!I||!(!m||f!==s)||!(!m||""!==f)||!!p&&!(!p||(!Object.values(d.pages).every((e=>!1===e))||""!==s)&&(""===s||!Object.keys(d.pages).map(Number).includes(s)||d.pages[s])),Z=U?.length||""===c?[]:N.pages,G=()=>{if(""===s){const e=l.reduce(((e,t)=>(t.count,null)),0);return e>10?e:10}const e=l.find((e=>e.id===s)),t=e?.count?e.count:10;return e?.count>10?10:t},q=(0,i.useMemo)((()=>(()=>{let e=1,t=0;return()=>{return e>3&&(e=1),t===G()-1&&(t=0),React.createElement(no,{key:t,type:(r=H(t++),n=e++,[1,2,3][(n-1+(r-1)%3)%3])});var r,n}})()),[]);return React.createElement("div",{className:"relative ast-block-templates-grid-blocks active h-full"},React.createElement(ii.A,{className:"absolute right-4 bottom-8 z-[9999] py-2 px-3.5 bg-accent-spectra shadow-xl sm:hidden",onClick:()=>S(!0)},React.createElement(hs,{className:"size-5 text-white"})),React.createElement(xs,{open:k,onClose:()=>S(!1),className:"sm:hidden",children:React.createElement(fc,{className:"block sm:hidden h-full !w-full",style:{maxWidth:"100%"}})}),React.createElement(fc,null),React.createElement("div",{onScroll:e=>{W(),(0,y.HU)("ast-pages-scroll-position",e.target.scrollTop),(0,y.HU)("ast-pages-visible-items",F)},className:"ast-scrolling-container w-full md:ml-auto h-full overflow-auto md:max-w-[calc(100%_-_246px)]",ref:O},j.show&&!!T&&React.createElement(fs,{type:j.variantAndType.variant,message:j.message,icon:React.createElement(vs.A,{className:"w-6 h-6"}),ctaLink:ast_block_template_vars.get_more_credits_url,ctaText:(0,u.__)("Buy AI Credits","astra-sites"),onClose:D(j.variantAndType.type)}),!(b.personalizeAi||!T||P&&(!P||"yes"!==x)||w||c||L.warning||L.danger)&&React.createElement(fs,{className:"pl-6 py-4 pr-4 mx-10 mt-9 md:max-lg:mx-5 hidden sm:block",rounded:8,type:"info",message:React.createElement("div",{className:"grid grid-cols-4 grid-rows-2 2xl:grid-rows-1 items-center justify-start gap-2 max-2xl:items-start"},React.createElement("span",{className:"col-span-12 2xl:col-span-4 "},(0,u.__)("Did you know, you can personalize this design library with content and images tailored to your website project?","astra-sites")),React.createElement("div",{className:"col-span-12 2xl:col-start-5 flex flex-col md:flex-row gap-5 items-baseline md:items-center"},React.createElement(ii.A,{id:"ast-block-template-setup-ai-btn",className:"min-w-fit",variant:"primary",isSmall:!0,onClick:()=>{D("personalizeAi")(),_(!0)}},"Personalize Library with AI"),R&&React.createElement(ms,{className:"flex 2xl:hidden",videoIntroURL:R}))),icon:React.createElement(Vo,{className:"w-6 h-6"}),onClose:D("personalizeAi"),isClose:!1,hasVideoIntro:!0,videoIntroURL:R}),React.createElement("div",{className:"h-full w-full p-10 md:max-lg:p-6"},!U.length&&""!==c&&React.createElement("div",{className:"pb-4"},React.createElement(So,{keyword:c}),React.createElement("h6",{className:"m-0 mt-10 text-heading-text text-xl font-semibold leading-7"},"Other suggested pattern designs")),React.createElement(us,{columns:{640:1,768:2,1024:3},gap:32,className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks-pages"},(()=>{if($()){const e=G();return Array(e>10?10:e).fill(1)}const e=Object.entries(d.pages);return!m&&p&&e.some((([,e])=>!1===e))?U.filter((e=>!1!==d.pages[e.category])):U.length||""===c?U:Z.slice(0,F)})()?.map(((e,t)=>((e,t)=>$()?q():React.createElement(io,{key:e.ID,index:t,item:e,content:e.content,stylesheet:e.stylesheet,astraCustomizer:h?ast_block_template_vars.astra_customizer_css:ast_block_template_vars.server_astra_customizer_css,globalStylesheet:e.global_stylesheet,colorPalette:z,dynamicContent:a[e.category]??[],selectedImages:o,email:A.email,phone:A.phone,address:A.address,onClickBlock:E}))(e,t)))),React.createElement("div",{className:"h-10 w-full mb-10"}))))})));function hc({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.115 5.19.319 1.913A6 6 0 0 0 8.11 10.36L9.75 12l-.387.775c-.217.433-.132.956.21 1.298l1.348 1.348c.21.21.329.497.329.795v1.089c0 .426.24.815.622 1.006l.153.076c.433.217.956.132 1.298-.21l.723-.723a8.7 8.7 0 0 0 2.288-4.042 1.087 1.087 0 0 0-.358-1.099l-1.33-1.108c-.251-.21-.582-.299-.905-.245l-1.17.195a1.125 1.125 0 0 1-.98-.314l-.295-.295a1.125 1.125 0 0 1 0-1.591l.13-.132a1.125 1.125 0 0 1 1.3-.21l.603.302a.809.809 0 0 0 1.086-1.086L14.25 7.5l1.256-.837a4.5 4.5 0 0 0 1.528-1.732l.146-.292M6.115 5.19A9 9 0 1 0 17.18 4.64M6.115 5.19A8.965 8.965 0 0 1 12 3c1.929 0 3.716.607 5.18 1.64"}))}const yc=i.forwardRef(hc);function bc({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12h15m0 0-6.75-6.75M19.5 12l-6.75 6.75"}))}const vc=i.forwardRef(bc),{images:wc}=ast_block_template_vars,xc=[{icon:ei.C1,text:(0,u.__)("Updated templates design library","astra-sites")},{icon:ai.A,text:(0,u.__)("Free AI credits to create personalized content","astra-sites")},{icon:Vo,text:(0,u.__)("Easily find stunning images for your website","astra-sites")},{icon:yc,text:(0,u.__)("Localized your website to any language","astra-sites")}],_c=()=>{const{toggleSkipZipAIOnboarding:e,toggleConnectZipAI:t}=(0,r.A)(g.U),[n,a]=(0,i.useState)(!1),o=(0,i.useCallback)((async()=>{if(n)return;a(!0);const t=new window.FormData;t.append("action","ast_skip_zip_ai_onboarding"),t.append("security",ast_block_template_vars.skip_zip_ai_onboarding_nonce);try{const r=await(0,y.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:t});if(r.success?e():(console.group("Onboarding Skip Failed!"),console.log(r),console.groupEnd()),!r.success)throw new Error(r.data)}catch(e){(0,ti.v)(e)}finally{a(!1)}}),[]),s=(0,i.useCallback)((()=>"active"===ast_block_template_vars.astra_sites_status||"active"===ast_block_template_vars.astra_sites_pro_status?React.createElement(ei.fp,{className:"w-10 h-10"}):React.createElement(ei.y0,{className:"w-10 h-10"})),[]);return React.createElement("div",{className:"relative h-full w-full",style:{backgroundImage:`url('${wc}background.png')`}},React.createElement("div",{className:"spectra-ai absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-center bg-background-tertiary/[0.85] backdrop-blur-[6px] z-[1]"},React.createElement("div",{className:"p-10 flex flex-col gap-8 max-w-[560px] border border-solid border-border-primary rounded-lg shadow-small bg-white"},React.createElement("div",{className:"space-y-5"},React.createElement("div",{className:"space-y-2"},s(),React.createElement("h4",{className:"text-[2rem] font-semibold leading-[2.625rem]"},(0,u.__)("Access Design Library","astra-sites")),React.createElement("p",{className:"text-base font-normal leading-6 text-body-text"},(0,u.__)("Get access to our library of hundreds of pixel-perfect, designer-made templates by creating a free account on ZipWP.","astra-sites")," ",React.createElement("br",null),React.createElement("span",null,(0,u.__)("Plus, you will get these extra benefits:","astra-sites")))),React.createElement("ul",{className:"!space-y-4"},xc.map(((e,t)=>React.createElement("li",{key:t,className:"m-0 flex gap-3 items-center justify-start"},React.createElement(e.icon,{className:"w-5 h-5 text-accent-spectra stroke-2"}),React.createElement("p",{className:"text-zip-app-heading text-base font-medium leading-6 m-0"},e.text)))))),React.createElement("div",{className:"flex flex-col md:flex-row flex-nowrap md:flex-wrap justify-start items-center gap-2"},React.createElement(ii.A,{variant:"primary",hasSuffixIcon:!0,className:"w-full md:w-fit min-w-[10.25rem]",onClick:async()=>{await o(),window.location.href=(0,Wo.i9)()}},n?React.createElement(Vi.A,null):React.createElement(React.Fragment,null,React.createElement("span",null,"Get Started"),React.createElement(vc,{className:"w-6 h-6"}))),React.createElement(ii.A,{variant:"link",className:"text-secondary-text w-full md:w-fit min-w-[5rem]",onClick:async()=>{t(),(0,y.D6)("ast-import"),await o()}},(0,u.__)("Cancel","astra-sites"))))))},{images:Ec}=ast_block_template_vars,kc=()=>{const{setShowPagesOnboarding:e,setCurrentCategory:n,setDynamicContent:a,dynamicContentFlagSet:i,dynamicContentSyncStart:o,dynamicContentFlagReset:s,dynamicContentSyncComplete:l,setCreditsDetails:c,setIsPersonalized:d}=(0,r.A)(g.U),{remaining:p,pagesLibraryRate:m}=oi(),{allPagesCategories:f,credits:h}=(0,t.A)((e=>{const{getAllPagesCategories:t,getCreditsDetails:r}=e(g.U);return{allPagesCategories:t(),credits:r()}}),[]),b=h.free_user||p<m,v=async()=>{try{await(0,y.nr)({path:"gutenberg-templates/v1/pages-onboarding",method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}})}catch(e){(0,ti.v)(e)}};return React.createElement("div",{className:"spectra-ai relative w-full h-full",style:{backgroundImage:`url('${Ec}background.png')`}},React.createElement("div",{className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-center bg-background-tertiary/[0.85] backdrop-blur-[6px] z-[1]"},React.createElement("div",{className:"w-full max-w-[504px] h-max px-8 pt-8 pb-6 shadow-small rounded-lg space-y-8 bg-white"},React.createElement("div",{className:"space-y-2"},React.createElement(Vo,{className:"w-10 h-10 text-icon-primary stroke-[1]"}),React.createElement("h5",{className:"text-2xl font-semibold text-heading-text"},(0,u.__)("Generate Content for Pages","astra-sites")),React.createElement("p",{className:"text-body-text text-base"},(0,u.__)('Get the content for all your pages with just a click. You can generate content page by page by making use of the "Skip" option. We\'re here to make everything easy and tailored to suit your needs perfectly!',"astra-sites"))),React.createElement("div",{className:"space-y-4"},React.createElement(ii.A,{className:"w-full",variant:"primary",onClick:async()=>{const t="pages";s(t),o(t),e(),v();let r=!1;try{r=await(0,Wo.R2)(f,a,i,(e=>n(t,e)),c,"page",d)}catch(e){r=e}"object"==typeof r&&"api_throttle_error"===r?.data?.code&&(r={type:"error",title:"Check Back Soon",message:React.createElement(React.Fragment,null,"We are currently experiencing exceptionally high demand. Please try again in 5 minutes. If the error persists, kindly contact us through the website:",React.createElement("a",{href:"https://zipwp.com/contact",target:"_blank",rel:"noreferrer"}," ","https://zipwp.com/contact"),".")}),l(t,"object"==typeof r?r:null),n(t,{})},hasSuffixIcon:!0,disabled:b},React.createElement("span",null,(0,u.nv)((0,u.__)("Let’s Go (%s Credits)","astra-sites"),(0,y.ZV)(m))),React.createElement(Ms,{className:"w-5 h-5"})),b&&React.createElement("p",{className:"text-credit-danger text-center"},p," credits remaining"),React.createElement("button",{className:"w-full border-0 bg-transparent outline-none focus:outline-none active:outline-none underline text-base font-normal leading-6 text-center text-secondary-text cursor-pointer",onClick:()=>{v(),e()}},(0,u.__)("Skip","astra-sites"))))))};function Sc({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Cc=i.forwardRef(Sc),Rc={all:{value:"all",label:"All"},Patterns:{value:"pattern",label:"Pattern"},Pages:{value:"pages",label:"Pages"},Kits:{value:"kits",label:"Kits"}},Ac=(0,e.A)((0,n.A)((e=>{const{setFilterBlocksBySearchTerm:t,setFilterBlocksByCategory:r,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i}=e(g.U);return{setFilterBlocksByCategory:r,setFilterBlocksBySearchTerm:t,setActiveBlockPalette:n,setHideNotice:a,toggleOnboardingAIStep:i}})),(0,a.A)((e=>{const{getAllPatterns:t,getAllCategories:r,getFilterBlocksByCategory:n,getFilterBlocksByColor:a,getDefaultBlockColorPalette:i,getActiveBlockPalette:o,getDynamicContent:s,getAIStepData:l,getFilterFavoritres:c,getDynamicContentSyncStatus:u,getDynamicContentSyncFlags:d,getAllPatternsCategories:p,getDynamicContentReSyncStatus:m,getRegeneratingContentCategory:f,getAdaptiveMode:h,getHideNotice:y,getSkipZipAIOnboarding:b,getDisableAi:v,getIsSyncBusinessDetails:w}=e(g.U);return{filterBlocksByCategory:n(),filterBlocksByColor:a(),allPatterns:t(),defaultPalette:i(),activePalette:o(),dynamicContent:s(),selectedImages:l().selectedImages,allCategories:r(),searchTerm:c(),syncStatus:u()?.patterns,syncFlags:d(),allPatternsCategories:p(),reSyncStatus:m(),regeneratingContentCategory:f(),adaptiveMode:h(),hideNotice:y(),skipZipAIOnboarding:b(),disableAi:v(),isSyncBusinessDetails:w()}})))((0,i.memo)((({filterBlocksByCategory:e,allPatterns:r,allPatternsCategories:n,defaultPalette:a,activePalette:o,dynamicContent:s,selectedImages:l,syncFlags:c,syncStatus:d,searchTerm:p,reSyncStatus:m,regeneratingContentCategory:f,adaptiveMode:h})=>{const y=r,{stepsData:{businessContact:b},allPatternsAndPages:v,loadingBlocksAndSites:w,favorites:x,allSites:_}=(0,t.A)((e=>{const{getAIStepData:t,getAllPatternsAndPages:r,getAllSites:n,getLoadingBlocksAndSites:a,getFavorites:i}=e(g.U);return{stepsData:t(),allPatternsAndPages:r(),allSites:n(),loadingBlocksAndSites:a(),favorites:i()}})),E=[...Array.isArray(x?.block)?x?.block:[],...Array.isArray(x?.page)?x?.page:[],...Array.isArray(x?.site)?x?.site:[]],k=_.filter((e=>E.includes(parseInt(+e.ID)))),S=v.patterns.filter((e=>E.includes(parseInt(+e.ID)))),C=v.pages.filter((e=>E.includes(parseInt(+e.ID)))),R=[...S,...C,...k],[A,P]=(0,i.useState)(Rc.all);(0,i.useEffect)((()=>{Zo.A.on("reset-list-count",(()=>N(10)))}),[]);const[T,N]=(0,i.useState)(10),I=Object.keys(o).length>0?o.colors:a.colors,O=jo((()=>{if(j())return;const e=p&&!y.length?R:y;window.innerHeight+window.scrollY>=document.body.offsetHeight-500&&e.length>T&&N((e=>e+10))}),200),L=e=>Math.floor(e/3)+1,B=()=>{if(""===e){const e=n.reduce(((e,t)=>(t.count,null)),0);return e>10?e:10}const t=n.find((t=>t.id===e)),r=t?.count?t.count:10;return t?.count>10?10:r},j=()=>!!w||!(!m||f!==e)||!(!m||""!==f)||!!d&&!(!d||(!Object.values(c.patterns).every((e=>!1===e))||""!==e)&&(""===e||!Object.keys(c.patterns).map(Number).includes(e)||c.patterns[e])),D=(()=>{let e=[...R];return A&&"all"!==A.value&&(e=e.filter((e=>{switch(A.value){case"pattern":return S.includes(e);case"pages":return C.includes(e);case"kits":return k.includes(e);default:return!0}}))),p&&(e=e.filter((e=>e.title.toLowerCase().includes(p.toLowerCase())))),e})(),F=(0,i.useMemo)((()=>(()=>{let e=1,t=0;return()=>{return e>3&&(e=1),t===B()-1&&(t=0),React.createElement(no,{key:t,type:(r=L(t++),n=e++,[1,2,3][(n-1+(r-1)%3)%3])});var r,n}})()),[]);return React.createElement("div",{id:"ast-template-kits-list",onScroll:O,className:"h-full overflow-y-auto px-10 pb-10 pt-6"},React.createElement("div",{className:"flex items-center justify-between mb-6"},React.createElement("p",{className:"m-0 text-xl font-semibold sm:inline-block hidden min-w-32"},(0,u.__)("My Favorites","astra-sites")),React.createElement("div",{className:"flex flex-col justify-end sm:flex-row items-center px-0 gap-2 sm:gap-4 lg:gap-6 w-full"},React.createElement("div",{className:"w-full sm:w-52 border border-solid border-border-primary rounded-md py-2.5 px-2"},React.createElement(Ja,{placement:"right",trigger:React.createElement("div",{className:"flex items-center gap-2 min-w-32 cursor-pointer"},React.createElement("span",{className:"font-normal text-base leading-[150%]"},"",A.label),React.createElement(Cc,{className:"w-5 h-5 text-app-inactive-icon ml-auto"})),align:"top",contentClassName:"border border-solid border-border-primary p-4 bg-white [&>:first-child]:pb-3 [&>:last-child]:pt-3 [&>:not(:first-child,:last-child)]:py-3 !divide-y !divide-border-primary divide-solid divide-x-0"},Object.values(Rc).map(((e,t)=>{return React.createElement(Ja.Item,{as:"div",key:t,className:"only:!p-0"},React.createElement("button",{type:"button",className:"w-full flex items-center gap-2 px-1.5 py-1 text-sm font-normal leading-5 text-body-text hover:bg-background-secondary transition duration-150 ease-in-out space-x-2 rounded bg-white border-none cursor-pointer",onClick:(r=e,()=>{P(r)})},e.label));var r})))),React.createElement(es,{className:"!text-base w-full md:w-60",placeholder:"Search.."}))),React.createElement("div",{className:"ast-scrolling-container w-full max-w-full ml-auto h-full "},!j()&&0===D.length&&React.createElement(React.Fragment,null,p?React.createElement("div",{className:"mx-auto mt-10 md:mt-16 lg:mt-24 xl:mt-32 space-y-6 text-center"},React.createElement("div",{className:"space-y-2.5"},React.createElement("p",{className:"m-0 text-lg font-semibold text-heading-text"},(0,u.__)("Sorry No Favorites Found 😕","astra-sites")))):React.createElement(fs,{className:"p-10 !pl-8 !rounded-lg md:max-lg:mx-5 bg-background-secondary flex items-center",rounded:4,type:"info",message:React.createElement("div",{className:"flex flex-col md:flex-row items-start gap-4 w-full"},React.createElement("div",{className:"flex-shrink-0 pt-1"},React.createElement(Bs.A,{className:"w-10 h-10 text-accent-spectra"})),React.createElement("div",{className:"flex flex-col items-start leading-tight"},React.createElement("span",{className:"text-xl font-bold text-heading-text mb-1"},(0,u.__)("No favorites added.","astra-sites")),React.createElement("span",{className:"text-base font-normal text-body-text leading-6"},(0,u.__)("Your favorite templates will be displayed here. You do not have any favorites yet. Click the heart icon and start adding them!","astra-sites")))),isClose:!1})),React.createElement("div",{className:"h-full w-full py-4 md:py-10 md:max-lg:p-6"},React.createElement(us,{columns:{220:1,640:2,1024:3},gap:32,className:"ast-block-templates-grid",id:"ast-block-templates-grid-blocks"},(()=>{if(j()){const e=B();return Array(e>10?10:e).fill(1)}return D.slice(0,T)})()?.map(((e,t)=>((e,t)=>j()?F():"block"===e.type||"page"===e.type?React.createElement(io,{key:e.ID,index:t,item:e,content:e.content,stylesheet:e.stylesheet,astraCustomizer:h?ast_block_template_vars.astra_customizer_css:ast_block_template_vars.server_astra_customizer_css,globalStylesheet:e.global_stylesheet,colorPalette:I,dynamicContent:s[e.category]??[],selectedImages:l,email:b.email,phone:b.phone,address:b.address}):React.createElement(ic,{key:e.ID,item:e}))(e,t)))),React.createElement("div",{className:"h-10 w-full mb-10"}))))})));var Pc=o(8270),Tc=o(1635),Nc=o(7482);function Ic(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),(0,Nc.W)(e,(0,Tc.Cl)({delimiter:"."},t))}(e,(0,Tc.Cl)({delimiter:"-"},t))}const Oc=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function Lc(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function Bc(e){return function(e){return e.replace(/>/g,"&gt;")}(function(e){return e.replace(/"/g,"&quot;")}(Lc(e)))}function jc({children:e,...t}){let r="";return i.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(r+=e)})),(0,i.createElement)("div",{dangerouslySetInnerHTML:{__html:r},...t})}const{Provider:Dc,Consumer:Fc}=(0,i.createContext)(void 0),Mc=(0,i.forwardRef)((()=>null)),zc=new Set(["string","boolean","number"]),Vc=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Wc=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),Uc=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),Hc=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function $c(e,t){return t.some((t=>0===e.indexOf(t)))}function Zc(e){return"key"===e||"children"===e}function Gc(e,t){return"style"===e?function(e){if(!(0,Pc.Q)(e))return e;let t;for(const r in e){const n=e[r];null!=n&&(t?t+=";":t="",t+=Jc(r)+":"+Qc(r,n))}return t}(t):t}const qc=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),Yc=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),Kc=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function Xc(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return Yc[t]?Yc[t]:qc[t]?Ic(qc[t]):Kc[t]?Kc[t]:t}function Jc(e){return e.startsWith("--")?e:$c(e,["ms","O","Moz","Webkit"])?"-"+Ic(e):Ic(e)}function Qc(e,t){return"number"!=typeof t||0===t||Hc.has(e)?t:t+"px"}function eu(e,t,r={}){if(null==e||!1===e)return"";if(Array.isArray(e))return ru(e,t,r);switch(typeof e){case"string":return Lc(e).replace(/</g,"&lt;");case"number":return e.toString()}const{type:n,props:a}=e;switch(n){case i.StrictMode:case i.Fragment:return ru(a.children,t,r);case jc:const{children:e,...n}=a;return tu(Object.keys(n).length?"div":null,{...n,dangerouslySetInnerHTML:{__html:e}},t,r)}switch(typeof n){case"string":return tu(n,a,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?function(e,t,r,n={}){const a=new e(t,n);"function"==typeof a.getChildContext&&Object.assign(n,a.getChildContext());return eu(a.render(),r,n)}(n,a,t,r):eu(n(a,r),t,r)}switch(n&&n.$$typeof){case Dc.$$typeof:return ru(a.children,a.value,r);case Fc.$$typeof:return eu(a.children(t||n._currentValue),t,r);case Mc.$$typeof:return eu(n.render(a),t,r)}return""}function tu(e,t,r,n={}){let a="";if("textarea"===e&&t.hasOwnProperty("value")){a=ru(t.value,r,n);const{value:e,...i}=t;t=i}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?a=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(a=ru(t.children,r,n));if(!e)return a;const i=function(e){let t="";for(const n in e){const a=Xc(n);if(r=a,Oc.test(r))continue;let i=Gc(n,e[n]);if(!zc.has(typeof i))continue;if(Zc(n))continue;const o=Wc.has(a);if(o&&!1===i)continue;const s=o||$c(n,["data-","aria-"])||Uc.has(a);("boolean"!=typeof i||s)&&(t+=" "+a,o||("string"==typeof i&&(i=Bc(i)),t+='="'+i+'"'))}var r;return t}(t);return Vc.has(e)?"<"+e+i+"/>":"<"+e+i+">"+a+"</"+e+">"}function ru(e,t,r={}){let n="";e=Array.isArray(e)?e:[e];for(let a=0;a<e.length;a++)n+=eu(e[a],t,r);return n}const nu=eu;var au=o(2513);const{post:iu}=wp.ajax,{parse:ou}=wp.blocks;o(2919);const su=(()=>{const e={};return Object.seal({on:(t,r)=>{const n=`ast:${t}`;e[n]||(e[n]=r),document.addEventListener(n,r)},emit:(e,t)=>{const r=new CustomEvent(`ast:${e}`,{detail:t});document.dispatchEvent(r)},off:(t,r)=>{const n=`ast:${t}`;e[n]&&document.removeEventListener(n,r)}})})(),{images:lu}=ast_block_template_vars,cu=()=>{const{importInProgress:e,notice:n}=(0,t.A)((e=>{const{getImportInProgress:t,getNotice:r}=e(g.U);return{importInProgress:t(),notice:r()}}),[]),{setImportInProgress:a}=(0,r.A)(g.U);return!(!e||"import-info"!==n?.type&&"import-error"!==n?.type)&&React.createElement("div",{className:"absolute inset-x-0 top-[4.5rem] h-[calc(100%_-_4.5rem)] w-full",style:{backgroundImage:`url('${lu}background.png')`}},React.createElement("div",{className:"absolute inset-0 backdrop-blur-md bg-[#F0F0FF]/[0.9]"}),React.createElement("div",{className:"relative w-full h-full grid grid-cols-1 grid-rows-1 place-items-center z-[1]"},React.createElement("div",{className:(0,y.xW)("h-auto w-full -mt-8 flex items-center justify-center flex-col rounded-lg py-7 px-10 border border-solid border-zip-light-border-primary shadow-xlarge bg-white","import-error"===n?.type?"max-w-[27.375rem]":"max-w-xs")},"import-error"===n?.type?React.createElement(ei.Rk,{className:"size-5"}):React.createElement(ei.ug,{className:"mx-auto text-accent-spectra animate-hour-glass"}),React.createElement("h6",{className:"mt-4 mb-1 text-center text-base font-medium text-zip-app-heading"},"import-error"===n?.type?n?.title:(0,u.__)("Please wait a moment","astra-sites")),React.createElement("p",{className:"m-0 text-center text-sm font-normal text-slate-500",dangerouslySetInnerHTML:{__html:n.message}}),"import-error"===n?.type&&React.createElement(ii.A,{variant:"primary",className:"mt-6",onClick:()=>{a(!1)},isSmall:!0},(0,u.__)("Back to Main Screen","astra-sites")))))};var uu=o(7510),du=o(5034);function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pu.apply(null,arguments)}const{spectra_common_styles:mu,is_rtl:fu}=ast_block_template_vars,gu="visible",hu=(0,e.A)((0,a.A)((e=>{const{getDisableAi:t,getTogglePopup:r}=e(g.U);return{disableAi:t(),togglePopup:r()}})))((0,i.memo)((({item:e,content:t,stylesheet:r,astraCustomizer:n,globalStylesheet:a,colorPalette:o,dynamicContent:s,selectedImages:l,disableAi:c,togglePopup:u,email:d,phone:p,address:m,onClickBlock:f,className:g="",fullPreview:h=!1,disableAutoScroll:b=!1})=>{const v=(0,i.useRef)(null),w=(0,i.useRef)(null),x=e["thumbnail-image-url"]||"",_=e["featured-image-url"]||"";let E=0,k=0;const[S,C]=(0,i.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`),[R,A]=(0,i.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`);function P(){const e=v?.current,t=w?.current;if(!e||!t)return;const r=e.parentNode.offsetWidth/1200,n=r*t.offsetHeight;e.style.transform=`scale(${r})`,e.style.height=`${n}px`}(0,i.useLayoutEffect)((()=>{let e=!0;const i=l,u=new Image;u.src=x;const f=new Image;f.src=_;const g=w.current;function h(t,r){e&&(t.onload=()=>{r(t.src)})}h(u,C),h(f,A);const y=document.getElementById("astra-wp-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container"),b=document.getElementById("astra-block-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container");let v="";if(r&&(r=((e,t=[])=>c?e:0!==Object.keys(s).length&&s?t&&0===t.length?e:e.replace(/background-image\s*:\s*url\(['"]?([^'")]+)['"]?\)/g,(function(e,r){if((0,uu.p)(r))return e;if(!t[k]?.url)return"";const n=t[k]?.url;return k++,k%=t.length,'background-image: url("'+n+'")'})):e)(r,i)),v+=n?`<style type="text/css" id="gt-astra-customizer">${n}</style>`:"",v+=`<style type="text/css" id="gt-spectra-common-stylesheet">${mu}</style>`,v=r?`${v} <style type="text/css" id="gt-common-stylesheet">${r}</style>`:v,a&&(v+=`<style type="text/css" id="gt-global-stylesheet"> ${a} </style>`),y&&(v+=`<style type="text/css" id="gt-wpeditor-css" > ${y} </style>`),b&&(v+=`<style type="text/css" id="gt-blockeditor-css"> ${b} </style>`),g&&t){let e=g.shadowRoot;if(null===e&&(e=g.attachShadow({mode:"open"})),null===e)return;let r=t;if(!c){const e=s??[];e&&Object.keys(e)?.length>0&&Object.keys(e).forEach((t=>{r=null!==e[t]?r.replace(t,e[t]):r})),s&&Object.keys(s).length>0&&(S=r,d&&(S=S.replace("contact@example.com",d)),p&&(S=S.replace("202-555-0188",p)),m&&(S=S.replace("2360 Hood Avenue, San Diego, CA, 92123",m)),r=S,r=N(r))}e.innerHTML=v+'<div class="st-block-container">'+r+"</div>",o.forEach(((t,r)=>{e?.host.style.setProperty(`--ast-global-color-${r}`,t)}));const n=g.shadowRoot.querySelectorAll("img");e&&(n.forEach((e=>{(0,uu.p)(e.src)||c||0===i?.length||0===Object.keys(s).length||!s||T(e,"hidden")})),P(),((e,t)=>{c||0!==Object.keys(s).length&&s&&t?.length&&e?.forEach((function(e){(0,uu.p)(e.src)||(e.onload=()=>{const r=e.getAttribute("src")||"";if(r.includes("unsplash")||r.includes("pexels")||r.includes("pixabay"))return void T(e,gu);const n=t[E];if(void 0!==n)if(n.url.includes("unsplash")||n.url.includes("pexels")||n.url.includes("pixabay")){if(E++,void 0===t[E]&&(E=0),"PICTURE"===e.parentNode.nodeName)e.parentNode.querySelectorAll("source").forEach((e=>{e.setAttribute("srcset",n.optimized_url)})),e.parentNode.querySelector("img").setAttribute("src",n.optimized_url);else{const t=document.createElement("img");t.src=n.optimized_url,e.parentNode.replaceChild(t,e)}T(e,gu)}else T(e,gu);else T(e,gu)},e.onerror=()=>{T(e,gu)})}))})(n,i))}var S;return()=>{e=!1}}),[e,c,s,l]),(0,i.useEffect)((()=>{const e=new ResizeObserver(P);return e.observe(document.documentElement),()=>{e&&e.disconnect()}}),[]),(0,i.useEffect)((()=>{const e=document.querySelector("#ast-block-templates-modal-wrap");if(!e)return;const t=new MutationObserver(P);return t.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{t&&t.disconnect()}}),[]),(0,i.useEffect)((()=>{const e=w?.current;if(e){const t=e.shadowRoot;o.forEach(((e,r)=>{null!==t&&t.host.style.setProperty(`--ast-global-color-${r}`,e)}))}}),[o]);const T=(e,t)=>{e&&(e.style.visibility=t)},N=(e="")=>m?e.replace(/(src="https:\/\/maps\.google\.com\/maps\?q=)([^&]+)(&z=\d+&hl=en&t=m&output=embed&iwloc=near")/g,`$1${encodeURIComponent(m)}$3`):e;let I=0,O=0;const L=(e,t,r)=>{const n=e.scrollTop,a=t-n;let i=0;const o=function(){i+=20;const t=du.A.linearTween(i,n,a,r);e.scrollTop=t,i<r&&(I=setTimeout(o,20))};o()},B=(e,t)=>{e&&null===e.target.closest(".gt-single-block-action-btns")&&"function"==typeof f&&f(t)};(0,i.useEffect)((()=>{u||(E=0,k=0)}),[u]);const j=fu?"origin-top-right":"origin-top-left";return React.createElement("div",{className:(0,y.xW)("cursor-pointer relative border border-solid border-border-primary overflow-hidden group",g)},React.createElement("div",{className:(0,y.xW)("thumbnail left-0 m-0 min-h-[auto] overflow-visible text-left top-0 relative pointer-events-none",j),ref:v},React.createElement("div",{className:(0,y.xW)("absolute w-[1200px] pointer-events-none overflow-hidden",h?"max-h-fit":"max-h-[1600px]"),ref:w},!t&&React.createElement("img",{srcSet:`${R}, ${S}`,src:S,alt:"Preview"}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"})))),!h&&React.createElement("div",pu({className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end",onClick:t=>B(t,e)},b&&{onMouseEnter:()=>{if("page"!==e.type)return;const t=w.current;I&&clearTimeout(I),O=setTimeout((()=>{L(t,t.scrollHeight,4e3)}),1e3)},onMouseLeave:()=>{O&&clearTimeout(O);const e=w.current;I&&clearTimeout(I),L(e,0,1500)}},{role:"button",tabIndex:"0",onKeyDown:t=>"Enter"===t.key?B(t,e):null})))})));var yu=o(9453);const bu=(0,i.memo)((()=>{const{setCurrentScreen:e,setPagePreview:n}=(0,r.A)(g.U),{pagePreviewItem:a,adaptiveMode:o,defaultPalette:s,activePalette:l,dynamicContent:c,selectedImages:d,businessContact:p,allPages:m,importInProgress:f}=(0,t.A)((e=>{const{getPagePreview:t,getAdaptiveMode:r,getDefaultPageColorPalette:n,getActivePagePalette:a,getDynamicContent:i,getAIStepData:o,getAllBlocksPages:s,getImportInProgress:l}=e(g.U);return{pagePreviewItem:t(),adaptiveMode:r(),defaultPalette:n(),activePalette:a(),dynamicContent:i(),selectedImages:o().selectedImages,businessContact:o().businessContact,allPages:s(),importInProgress:l()}})),[h,b]=(0,i.useState)(!1),v=(0,y.Fx)(),w=()=>v.notInstalled?(0,u.__)("Install Spectra & Insert","astra-sites"):v.inactive?(0,u.__)("Activate Spectra & Insert","astra-sites"):(0,u.__)("Insert","astra-sites"),x=e=>()=>{n(e)},_=Object.keys(l).length>0?l.colors:s.colors,E=m.filter((e=>e.category===a.category));return React.createElement("div",{className:"flex h-full pt-6 px-10 mx-auto gap-10"},React.createElement("div",{className:"flex-1 h-full"},React.createElement("div",{className:"h-full flex flex-col items-stretch justify-stretch space-y-6"},React.createElement("div",{className:"flex flex-col sm:flex-row items-start justify-start gap-5"},React.createElement(ii.A,{className:(0,y.xW)("inline-flex pl-1 py-1 pr-2 h-7 gap-1 border-border-primary text-body-text"),variant:"white",hasPrefixIcon:!0,isSmall:!0,onClick:()=>e("all-block-pages-grid")},React.createElement(Yi,{className:"w-4 h-4"}),React.createElement("span",null,"Back")),React.createElement("h5",{className:"m-0 text-xl font-semibold inline-block"},"Page Preview")),React.createElement("div",{className:"h-full w-full overflow-y-auto ast-thin-scrollbar !mb-6"},React.createElement(hu,{item:a,content:a.content,stylesheet:a.stylesheet,astraCustomizer:o?ast_block_template_vars.astra_customizer_css:ast_block_template_vars.server_astra_customizer_css,globalStylesheet:a.global_stylesheet,colorPalette:_,dynamicContent:c[a.category]??[],selectedImages:d,email:p.email,phone:p.phone,address:p.address,fullPreview:!0})))),React.createElement("div",{className:"flex flex-col w-2/6 lg:w-[35%] h-full"},React.createElement("h5",{className:"m-0 text-xl font-semibold inline-block mb-6"},"Other Designs"),React.createElement("div",{className:"grid grid-cols-1 xl:grid-cols-2 auto-rows-auto overflow-y-auto ast-thin-scrollbar gap-2.5 lg:gap-5 xl:gap-10"},E.map((e=>React.createElement("div",{key:e.ID,className:(0,y.xW)("w-full h-fit hover:shadow-xl group transition ease-in-out duration-150",f&&"pointer-events-none !cursor-not-allowed")},React.createElement(hu,{className:"group-hover:border-accent-spectra transition ease-in-out duration-150",item:e,content:e.content,stylesheet:e.stylesheet,astraCustomizer:o?ast_block_template_vars.astra_customizer_css:ast_block_template_vars.server_astra_customizer_css,globalStylesheet:e.global_stylesheet,colorPalette:_,dynamicContent:c[e.category]??[],selectedImages:d,email:p.email,phone:p.phone,address:p.address,onClickBlock:x(e)}))))),React.createElement("div",{className:"pt-8 pb-6 mt-auto"},React.createElement("div",{className:"flex flex-wrap xl:flex-nowrap gap-6 items-center justify-center"},React.createElement(Vs.A,{item:a},(({isFavorite:e,onClickFavorite:t})=>React.createElement(ii.A,{className:(0,y.xW)("xl:w-1/2 w-full truncate",f&&"pointer-events-none !cursor-not-allowed"),variant:"white",hasSuffixIcon:!0,onClick:t},React.createElement("span",{className:"hidden sm:inline text-base font-medium truncate"},e?"Remove from favorites":"Add to favorites"),React.createElement(Bs.A,{className:(0,y.xW)("shrink-0 size-6 sm:size-5 transition-colors ease-out duration-150",e?"fill-favorite text-favorite":"group-hover/favorites:fill-favorite group-hover/favorites:text-favorite")})))),React.createElement(yu.A,{title:w(),showIcon:v.active,liveRequest:!0,item:a,importing:h,onClick:()=>{b(!0)},onBlockImport:()=>{b(!1),e("all-block-pages-grid")},onImportFail:()=>{b(!1)}},(({onClick:e,disableImport:t})=>React.createElement(ii.A,{className:(0,y.xW)("w-full xl:w-1/2 relative truncate"),variant:"primary",hasSuffixIcon:v.active,onClick:e,disabled:t||f&&!h},React.createElement("span",{className:(0,y.xW)("hidden sm:inline truncate",h&&"invisible")},w()),React.createElement(As.A,{className:(0,y.xW)("sm:size-5 size-6 shrink-0",h&&"invisible")}),h&&React.createElement("span",{className:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},React.createElement(Vi.A,null)))))))))})),vu=({filterPagesBySearchTerm:e,currentScreen:r})=>{const{showPagesOnboarding:n,stepData:{businessDetails:a},dynamicContentSyncStatus:o,disableAi:s}=(0,t.A)((e=>{const{getShowPagesOnboarding:t,getAIStepData:r,getDynamicContentSyncStatus:n,getDisableAi:a}=e(g.U);return{showPagesOnboarding:t(),stepData:r(),dynamicContentSyncStatus:n(),disableAi:a()}}),[]);return(0,i.useEffect)((()=>{localStorage.setItem("gt-current-screen-"+ast_block_template_vars.site_host,r)}),[r]),"all-single-pages"===r?React.createElement(uc,null):"all-wireframe-grid"===r?React.createElement(Lo,null):"all-blocks-grid"===r?React.createElement(_s,null):"all-block-pages-grid"===r?n&&a&&!o.pages&&!s?React.createElement(kc,null):React.createElement(gc,null):"single-block-page-full-preview"===r?React.createElement(bu,null):e||"all-single-site-pages"!==r?"all-favorites"===r?React.createElement(Ac,null):"all-sites-grid"===r?React.createElement(sc,null):"full-width-block-preview"===r?React.createElement(lc,null):"full-width-page-preview"===r?React.createElement(cc,null):void 0:React.createElement(nc,null)},wu=(0,e.A)((0,a.A)((e=>{const{getFilterPagesBySearchTerm:t,getSitePreview:r,getCurrentScreen:n,getTogglePopup:a,getConnectZipAI:i}=e("astra-sites");return{filterPagesBySearchTerm:t(),sitePreview:r(),currentScreen:n(),togglePopup:a(),connectZipAI:i()}})),(0,n.A)((e=>{const{setActiveBlockPaletteSlug:t,setActiveBlockPalette:r,setActivePagePaletteSlug:n,setActivePagePalette:a,toggleOnboardingAIStep:i}=e("astra-sites");return{setActiveBlockPaletteSlug:t,setActiveBlockPalette:r,setActivePagePaletteSlug:n,setActivePagePalette:a,toggleOnboardingAIStep:i}})))((0,i.memo)((({sitePreview:e,currentScreen:n,togglePopup:a,setActiveBlockPaletteSlug:o,setActiveBlockPalette:s,setActivePagePaletteSlug:l,setActivePagePalette:c,connectZipAI:d,toggleOnboardingAIStep:p})=>{const{token:m=null}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return{...t()}}),[]),{initializeBlocksAndSites:f}=(0,r.A)(g.U);(0,i.useEffect)((()=>{!0===a&&(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open"),o("style-1"),s(ast_block_template_vars.block_color_palette["style-1"]),l("style-1"),c(ast_block_template_vars.page_color_palette["style-1"]))}),[a,n,e]);const{initiateImportProcess:h}=((e=!1)=>{const{index:n}=wp.data.select("core/block-editor").getBlockInsertionPoint(),{insertBlocks:a}=wp.data.dispatch("core/block-editor"),{importInProgress:o,importItemInfo:s,activePagePaletteSlug:l,activeBlockPaletteSlug:c,currentScreen:d,disableAI:p,togglePopup:m}=(0,t.A)((e=>{const{getImportInProgress:t,getAIStepData:r,getImportItemInfo:n,getCurrentScreen:a,getActiveBlockPaletteSlug:i,getActivePagePaletteSlug:o,getDisableAi:s,getTogglePopup:l}=e(g.U);return{importInProgress:t(),stepData:r(),importItemInfo:n(),activePagePaletteSlug:o(),currentScreen:a(),activeBlockPaletteSlug:i(),disableAI:s(),togglePopup:l()}}),[]),{setImportInProgress:f,setTogglePopup:h,setImportItemInfo:b,setNotice:v}=(0,r.A)(g.U),w=(0,y.Fx)();let[x]=(0,i.useState)(s),_=[];const E=e=>{const t=React.createElement("a",{href:"https://wpastra.com/contact",target:"_blank",rel:"noreferrer"},(0,u.__)("support team","astra-sites")),r=`\n\t\t\t<span className='block'>\n\t\t\t\t${(0,u.nv)((0,u.__)("If this error continues please contact our %1$s.","astra-sites"),nu(t))}\n\t\t\t</span>\n\t\t`;v({type:"import-error",title:"Oops, something went wrong!",message:nu(React.createElement("span",{className:"block"},e))+r})},k=(e="info",t="",r="default")=>{wp?.data.dispatch("core/notices").createNotice(e,t,{isDismissible:!0,type:r})},S=async()=>{try{v({type:"import-info",message:(0,u.__)("Activating Spectra plugin…","astra-sites")}),await(0,Cs.s)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"})}catch(e){throw new Error((0,u.__)("Failed to active Spectra. Please try again later.","astra-sites"),{cause:"customError"})}},C=async()=>{try{v({type:"import-info",message:(0,u.__)("Activating WPForms plugin…","astra-sites")}),await(0,Cs.s)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"}),await A()}catch(e){throw new Error((0,u.__)("Failed to active WPForms. Please try again later.","astra-sites"),{cause:"customError"})}},R=(t,{type:r,colorPalette:i})=>{const o=x.original_content,s=!!r&&r||("all-blocks-grid"===d?"block":"page"),m="block"===s?x["blocks-category"][0]:x["pages-category"][0],g=!!i&&i||("block"===s?c:l),b=x?.id;iu({action:"ast_block_templates_import_block",content:o,category:m,id:b,_ajax_nonce:ast_block_template_vars._ajax_nonce,style:g,disableAI:p,block_type:s}).done((r=>{f(!1);const i=(0,y.XD)(ou(r));a(i,n,"",!1),e&&h(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open"),"function"==typeof t&&t(r,n),k("success","The block has been imported successfully."),"active"!==ast_block_template_vars.spectra_status&&(0,Wo.mP)()})).fail((()=>{throw new Error((0,u.__)("Failed to import the block. Please try again later.","astra-sites"),{cause:"customError"})}))},A=(e,{type:t,colorPalette:r})=>{x?.["post-meta"]?.["astra-site-wpforms-path"]?(e=>{iu({action:"ast_block_templates_import_wpforms",id:x?.id,_ajax_nonce:ast_block_template_vars._ajax_nonce}).done((()=>{R(e)})).fail((()=>{throw new Error((0,u.__)("Failed import WPForms. Please try again later.","astra-sites"),{cause:"customError"})}))})(e):R(e,{type:t,colorPalette:r})};return{initiateImportProcess:async({blockId:e,type:t,colorPalette:r},n)=>{if(!o){f(!0),m||h();try{w.notInstalled?(await(async()=>{try{v({type:"import-info",message:(0,u.__)("Installing Spectra plugin…","astra-sites")}),await(0,Cs.o)({slug:"ultimate-addons-for-gutenberg",init:"ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php",name:"Spectra"})}catch(e){throw new Error((0,u.__)("Failed to install Spectra. Please try again later.","astra-sites"),{cause:"customError"})}})(),await S()):w.inactive&&await S();const a=await(0,Rs.V)(e,"astra-blocks");b(a),x=a,_=a?.["post-meta"]?.["astra-blocks-required-plugins"]?au.j.parse(a["post-meta"]["astra-blocks-required-plugins"]):[],_.length?"not-installed"===ast_block_template_vars.wpforms_status?(await(async()=>{try{v({type:"import-info",message:(0,u.__)("Installing WPForms plugin…","astra-sites")}),await(0,Cs.o)({slug:"wpforms-lite",init:"wpforms-lite/wpforms.php",name:"WPForms Lite"})}catch(e){throw new Error((0,u.__)("Failed to install WPForms. Please try again later.","astra-sites"),{cause:"customError"})}})(),await C()):"inactive"===ast_block_template_vars.wpforms_status?await C():await A(n,{type:t,colorPalette:r}):await A(n,{type:t,colorPalette:r})}catch(e){if("customError"===e?.cause)return void E(e.message);k("error","Failed to import the block. Please try again later or contact support for assistance."),E((0,u.__)("Failed to fetch block data. Please try again later.","astra-sites"))}}}}})(!0);return(0,i.useEffect)((()=>{const e="ast-import",t=(0,y._9)(e);if(!t||!m)return(0,y.D6)(e);const{blockId:r,blockType:n,blockPaletteSlug:a,pagePaletteSlug:i}=t;h({blockId:r,colorPalette:"block"===n?a:i,type:n}),(0,y.D6)(e),wb()}),[]),(0,i.useEffect)((()=>{su.on("open-onboarding-ai",(()=>{p(!0)}))}),[]),(0,i.useEffect)((()=>{f()}),[]),React.createElement("div",{className:"bg-white h-[calc(100vh_-_9.5rem)]"},d?React.createElement(_c,null):React.createElement(vu,{currentScreen:n}),React.createElement(cu,null))})));function xu({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const _u=i.forwardRef(xu);var Eu=o(6607),ku="tippy-content",Su="tippy-backdrop",Cu="tippy-arrow",Ru="tippy-svg-arrow",Au={passive:!0,capture:!0},Pu=function(){return document.body};function Tu(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function Nu(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function Iu(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ou(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout((function(){e(n)}),t)};var r}function Lu(e){return[].concat(e)}function Bu(e,t){-1===e.indexOf(t)&&e.push(t)}function ju(e){return[].slice.call(e)}function Du(e){return Object.keys(e).reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})}function Fu(e){return["Element","Fragment"].some((function(t){return Nu(e,t)}))}function Mu(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function zu(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Vu(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function Wu(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var Uu={isTouch:!1},Hu=0;function $u(){Uu.isTouch||(Uu.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zu))}function Zu(){var e=performance.now();e-Hu<20&&(Uu.isTouch=!1,document.removeEventListener("mousemove",Zu)),Hu=e}function Gu(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var qu=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Yu=Object.assign({appendTo:Pu,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ku=Object.keys(Yu);function Xu(e){var t=(e.plugins||[]).reduce((function(t,r){var n,a=r.name,i=r.defaultValue;return a&&(t[a]=void 0!==e[a]?e[a]:null!=(n=Yu[a])?n:i),t}),{});return Object.assign({},e,t)}function Ju(e,t){var r=Object.assign({},t,{content:Iu(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Xu(Object.assign({},Yu,{plugins:t}))):Ku).reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},Yu.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Qu(e){var t=e.firstElementChild,r=ju(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(ku)})),arrow:r.find((function(e){return e.classList.contains(Cu)||e.classList.contains(Ru)})),backdrop:r.find((function(e){return e.classList.contains(Su)}))}}var ed=1,td=[],rd=[];function nd(e,t){var r,n,a,i,o,s,l,c,u=Ju(e,Object.assign({},Yu,Xu(Du(t)))),d=!1,p=!1,m=!1,f=!1,g=[],h=Ou(G,u.interactiveDebounce),y=ed++,b=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),v={id:y,reference:e,popper:document.createElement("div"),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(a)},setProps:function(t){if(!v.state.isDestroyed){O("onBeforeUpdate",[v,t]),$();var r=v.props,n=Ju(e,Object.assign({},r,Du(t),{ignoreAttributes:!0}));v.props=n,H(),r.interactiveDebounce!==n.interactiveDebounce&&(j(),h=Ou(G,n.interactiveDebounce)),r.triggerTarget&&!n.triggerTarget?Lu(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded"),B(),I(),_&&_(r,n),v.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),O("onAfterUpdate",[v,t])}},setContent:function(e){v.setProps({content:e})},show:function(){var e=v.state.isVisible,t=v.state.isDestroyed,r=!v.state.isEnabled,n=Uu.isTouch&&!v.props.touch,a=Tu(v.props.duration,0,Yu.duration);if(!(e||t||r||n||A().hasAttribute("disabled")||(O("onShow",[v],!1),!1===v.props.onShow(v)))){if(v.state.isVisible=!0,R()&&(x.style.visibility="visible"),I(),z(),v.state.isMounted||(x.style.transition="none"),R()){var i=T();Mu([i.box,i.content],0)}var o,l,c;s=function(){var e;if(v.state.isVisible&&!f){if(f=!0,x.offsetHeight,x.style.transition=v.props.moveTransition,R()&&v.props.animation){var t=T(),r=t.box,n=t.content;Mu([r,n],a),zu([r,n],"visible")}L(),B(),Bu(rd,v),null==(e=v.popperInstance)||e.forceUpdate(),O("onMount",[v]),v.props.animation&&R()&&function(e,t){W(e,(function(){v.state.isShown=!0,O("onShown",[v])}))}(a)}},l=v.props.appendTo,c=A(),(o=v.props.interactive&&l===Pu||"parent"===l?c.parentNode:Iu(l,[c])).contains(x)||o.appendChild(x),v.state.isMounted=!0,X()}},hide:function(){var e=!v.state.isVisible,t=v.state.isDestroyed,r=!v.state.isEnabled,n=Tu(v.props.duration,1,Yu.duration);if(!(e||t||r)&&(O("onHide",[v],!1),!1!==v.props.onHide(v))){if(v.state.isVisible=!1,v.state.isShown=!1,f=!1,d=!1,R()&&(x.style.visibility="hidden"),j(),V(),I(!0),R()){var a=T(),i=a.box,o=a.content;v.props.animation&&(Mu([i,o],n),zu([i,o],"hidden"))}L(),B(),v.props.animation?R()&&function(e,t){W(e,(function(){!v.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(n,v.unmount):v.unmount()}},hideWithInteractivity:function(e){P().addEventListener("mousemove",h),Bu(td,h),h(e)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){v.state.isVisible&&v.hide(),v.state.isMounted&&(J(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),rd=rd.filter((function(e){return e!==v})),v.state.isMounted=!1,O("onHidden",[v]))},destroy:function(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),$(),delete e._tippy,v.state.isDestroyed=!0,O("onDestroy",[v]))}};if(!u.render)return v;var w=u.render(v),x=w.popper,_=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+v.id,v.popper=x,e._tippy=v,x._tippy=v;var E=b.map((function(e){return e.fn(v)})),k=e.hasAttribute("aria-expanded");return H(),B(),I(),O("onCreate",[v]),u.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",h)})),v;function S(){var e=v.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===S()[0]}function R(){var e;return!(null==(e=v.props.render)||!e.$$tippy)}function A(){return l||e}function P(){var e,t,r=A().parentNode;return r?null!=(t=Lu(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function T(){return Qu(x)}function N(e){return v.state.isMounted&&!v.state.isVisible||Uu.isTouch||i&&"focus"===i.type?0:Tu(v.props.delay,e?0:1,Yu.delay)}function I(e){void 0===e&&(e=!1),x.style.pointerEvents=v.props.interactive&&!e?"":"none",x.style.zIndex=""+v.props.zIndex}function O(e,t,r){var n;void 0===r&&(r=!0),E.forEach((function(r){r[e]&&r[e].apply(r,t)})),r&&(n=v.props)[e].apply(n,t)}function L(){var t=v.props.aria;if(t.content){var r="aria-"+t.content,n=x.id;Lu(v.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(v.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var a=t&&t.replace(n,"").trim();a?e.setAttribute(r,a):e.removeAttribute(r)}}))}}function B(){!k&&v.props.aria.expanded&&Lu(v.props.triggerTarget||e).forEach((function(e){v.props.interactive?e.setAttribute("aria-expanded",v.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){P().removeEventListener("mousemove",h),td=td.filter((function(e){return e!==h}))}function D(t){if(!Uu.isTouch||!m&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!v.props.interactive||!Wu(x,r)){if(Lu(v.props.triggerTarget||e).some((function(e){return Wu(e,r)}))){if(Uu.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else O("onClickOutside",[v,t]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),p=!0,setTimeout((function(){p=!1})),v.state.isMounted||V())}}}function F(){m=!0}function M(){m=!1}function z(){var e=P();e.addEventListener("mousedown",D,!0),e.addEventListener("touchend",D,Au),e.addEventListener("touchstart",M,Au),e.addEventListener("touchmove",F,Au)}function V(){var e=P();e.removeEventListener("mousedown",D,!0),e.removeEventListener("touchend",D,Au),e.removeEventListener("touchstart",M,Au),e.removeEventListener("touchmove",F,Au)}function W(e,t){var r=T().box;function n(e){e.target===r&&(Vu(r,"remove",n),t())}if(0===e)return t();Vu(r,"remove",o),Vu(r,"add",n),o=n}function U(t,r,n){void 0===n&&(n=!1),Lu(v.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,n),g.push({node:e,eventType:t,handler:r,options:n})}))}function H(){var e;C()&&(U("touchstart",Z,{passive:!0}),U("touchend",q,{passive:!0})),(e=v.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(U(e,Z),e){case"mouseenter":U("mouseleave",q);break;case"focus":U(qu?"focusout":"blur",Y);break;case"focusin":U("focusout",Y)}}))}function $(){g.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,a=e.options;t.removeEventListener(r,n,a)})),g=[]}function Z(e){var t,r=!1;if(v.state.isEnabled&&!K(e)&&!p){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,B(),!v.state.isVisible&&Nu(e,"MouseEvent")&&td.forEach((function(t){return t(e)})),"click"===e.type&&(v.props.trigger.indexOf("mouseenter")<0||d)&&!1!==v.props.hideOnClick&&v.state.isVisible?r=!0:ee(e),"click"===e.type&&(d=!r),r&&!n&&te(e)}}function G(e){var t=e.target,r=A().contains(t)||x.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(x).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null})).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,a=e.popperState,i=e.props.interactiveBorder,o=a.placement.split("-")[0],s=a.modifiersData.offset;if(!s)return!0;var l="bottom"===o?s.top.y:0,c="top"===o?s.bottom.y:0,u="right"===o?s.left.x:0,d="left"===o?s.right.x:0,p=t.top-n+l>i,m=n-t.bottom-c>i,f=t.left-r+u>i,g=r-t.right-d>i;return p||m||f||g}))})(n,e)&&(j(),te(e))}}function q(e){K(e)||v.props.trigger.indexOf("click")>=0&&d||(v.props.interactive?v.hideWithInteractivity(e):te(e))}function Y(e){v.props.trigger.indexOf("focusin")<0&&e.target!==A()||v.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function K(e){return!!Uu.isTouch&&C()!==e.type.indexOf("touch")>=0}function X(){J();var t=v.props,r=t.popperOptions,n=t.placement,a=t.offset,i=t.getReferenceClientRect,o=t.moveTransition,l=R()?Qu(x).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,u=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(R()){var r=T().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];R()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==r?void 0:r.modifiers)||[]),v.popperInstance=(0,Za.n4)(c,x,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:u}))}function J(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return ju(x.querySelectorAll("[data-tippy-root]"))}function ee(e){v.clearDelayTimeouts(),e&&O("onTrigger",[v,e]),z();var t=N(!0),n=S(),a=n[0],i=n[1];Uu.isTouch&&"hold"===a&&i&&(t=i),t?r=setTimeout((function(){v.show()}),t):v.show()}function te(e){if(v.clearDelayTimeouts(),O("onUntrigger",[v,e]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=N(!1);t?n=setTimeout((function(){v.state.isVisible&&v.hide()}),t):a=requestAnimationFrame((function(){v.hide()}))}}else V()}}function ad(e,t){void 0===t&&(t={});var r=Yu.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",$u,Au),window.addEventListener("blur",Gu);var n,a=Object.assign({},t,{plugins:r}),i=(n=e,Fu(n)?[n]:function(e){return Nu(e,"NodeList")}(n)?ju(n):Array.isArray(n)?n:ju(document.querySelectorAll(n))).reduce((function(e,t){var r=t&&nd(t,a);return r&&e.push(r),e}),[]);return Fu(e)?i[0]:i}ad.defaultProps=Yu,ad.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Yu[t]=e[t]}))},ad.currentInput=Uu,Object.assign({},Eu.A,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),ad.setDefaultProps({animation:!1});const id=ad;function od(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}var sd="undefined"!=typeof window&&"undefined"!=typeof document;function ld(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function cd(){return sd&&document.createElement("div")}function ud(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e){if(!t.hasOwnProperty(r))return!1;if(!ud(e[r],t[r]))return!1}return!0}return!1}function dd(e){var t=[];return e.forEach((function(e){t.find((function(t){return ud(e,t)}))||t.push(e)})),t}var pd=sd?i.useLayoutEffect:i.useEffect;function md(e,t,r){r.split(/\s+/).forEach((function(r){r&&e.classList[t](r)}))}var fd={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,r=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){e.props.className&&!r()||md(t,"add",e.props.className)}return{onCreate:n,onBeforeUpdate:function(){r()&&md(t,"remove",e.props.className)},onAfterUpdate:n}}};function gd(e){return function(t){var r,n,a=t.children,o=t.content,s=t.visible,l=t.singleton,u=t.render,d=t.reference,p=t.disabled,m=void 0!==p&&p,f=t.ignoreAttributes,g=void 0===f||f,h=(t.__source,t.__self,od(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),y=void 0!==s,b=void 0!==l,v=(0,i.useState)(!1),w=v[0],x=v[1],_=(0,i.useState)({}),E=_[0],k=_[1],S=(0,i.useState)(),C=S[0],R=S[1],A=(r=function(){return{container:cd(),renders:1}},(n=(0,i.useRef)()).current||(n.current="function"==typeof r?r():r),n.current),P=Object.assign({ignoreAttributes:g},h,{content:A.container});y&&(P.trigger="manual",P.hideOnClick=!1),b&&(m=!0);var T=P,N=P.plugins||[];u&&(T=Object.assign({},P,{plugins:b&&null!=l.data?[].concat(N,[{fn:function(){return{onTrigger:function(e,t){var r=l.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=r.instance,R(r.content)}}}}]):N,render:function(){return{popper:A.container}}}));var I=[d].concat(a?[a.type]:[]);return pd((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var r=e(t||A.ref||cd(),Object.assign({},T,{plugins:[fd].concat(P.plugins||[])}));return A.instance=r,m&&r.disable(),s&&r.show(),b&&l.hook({instance:r,content:o,props:T,setSingletonContent:R}),x(!0),function(){r.destroy(),null==l||l.cleanup(r)}}),I),pd((function(){var e,t,r,n,a;if(1!==A.renders){var i=A.instance;i.setProps((t=i.props,r=T,Object.assign({},r,{popperOptions:Object.assign({},t.popperOptions,r.popperOptions,{modifiers:dd([].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],(null==(a=r.popperOptions)?void 0:a.modifiers)||[]))})}))),null==(e=i.popperInstance)||e.forceUpdate(),m?i.disable():i.enable(),y&&(s?i.show():i.hide()),b&&l.hook({instance:i,content:o,props:T,setSingletonContent:R})}else A.renders++})),pd((function(){var e;if(u){var t=A.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,r=e.state,n=null==(t=r.modifiersData)?void 0:t.hide;E.placement===r.placement&&E.referenceHidden===(null==n?void 0:n.isReferenceHidden)&&E.escaped===(null==n?void 0:n.hasPopperEscaped)||k({placement:r.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),r.attributes.popper={}}}])})})}}),[E.placement,E.referenceHidden,E.escaped].concat(I)),c().createElement(c().Fragment,null,a?(0,i.cloneElement)(a,{ref:function(e){A.ref=e,ld(a.ref,e)}}):null,w&&(0,ye.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(E),C,A.instance):o,A.container))}}var hd=function(e,t){return(0,i.forwardRef)((function(r,n){var a=r.children,o=od(r,["children"]);return c().createElement(e,Object.assign({},t,o),a?(0,i.cloneElement)(a,{ref:function(e){ld(n,e),ld(a.ref,e)}}):null)}))};const yd=hd(gd(id),{render:function(){return""}});var bd=o(9896),vd=o(4785),wd=o(3065),xd=o(8601),_d=o(5128),Ed=o(6542),kd=o(4833),Sd=o(7745);var Cd=o(3630);function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rd.apply(null,arguments)}const Ad=({onExit:e,placement:t="auto"})=>{const[r,n]=(0,i.useState)(!1),a=function(e,t={}){const{isStatic:r}=(0,i.useContext)(wd.Q),n=(0,i.useRef)(null),a=function(e){const t=(0,xd.M)((()=>(0,vd.OQ)(e))),{isStatic:r}=(0,i.useContext)(wd.Q);if(r){const[,r]=(0,i.useState)(e);(0,i.useEffect)((()=>t.on("change",r)),[])}return t}((0,bd.S)(e)?e.get():e),o=()=>{n.current&&n.current.stop()};return(0,i.useInsertionEffect)((()=>a.attach(((e,i)=>{if(r)return i(e);if(o(),n.current=(0,Ed.L)({keyframes:[a.get(),e],velocity:a.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:i}),!Sd.uv.isProcessing){const e=performance.now()-Sd.uv.timestamp;e<30&&(n.current.time=(0,kd.X)(e))}return a.get()}),o)),[JSON.stringify(t)]),(0,_d.E)((()=>{if((0,bd.S)(e))return e.on("change",(e=>a.set(parseFloat(e))))}),[a]),a}(0,{damping:30,stiffness:300}),o=()=>{n((e=>!e))};return React.createElement(yd,{visible:r,onClickOutside:o,onMount:()=>{a.set(1)},onHide:()=>{a.set(0)},render:t=>React.createElement(Cd.P.div,Rd({className:"flex flex-col items-start gap-5 w-[300px] h-auto bg-white rounded-lg shadow-xl p-4 border border-solid border-border-primary",style:{opacity:a}},t),React.createElement("div",{className:"w-full space-y-2"},React.createElement("p",{className:"m-0 !text-zip-app-heading !text-base !font-semibold"},(0,u.__)("Are you sure?","astra-sites")),React.createElement("p",{className:"m-0 !text-zip-body-text !text-sm !font-normal"},(0,u.__)("If you prefer to continue, press “Cancel”.","astra-sites"))),React.createElement("div",{className:"flex justify-end gap-3 w-full"},React.createElement(ii.A,{className:"h-auto text-zip-app-heading !text-xs font-semibold !py-1.5 !px-3 rounded border border-solid border-border-primary shadow-sm",type:"button",variant:"blank",onClick:o},React.createElement("span",null,(0,u.__)("Cancel","astra-sites"))),React.createElement(ii.A,{className:"h-auto text-white !text-xs font-semibold !py-1.5 !px-3 rounded border border-solid border-alert-error-text bg-alert-error-text shadow-sm",type:"button",variant:"blank",onClick:e},React.createElement("span",null,(0,u.__)("Exit","astra-sites")))),React.createElement("div",{"data-popper-arrow":!0,className:"-top-1.5 !border-border-primary absolute size-3 bg-white !rotate-45 !border !right-5 !left-auto border-solid !border-b-0 !border-r-0"})),interactive:!0,interactiveBorder:20,placement:t},React.createElement("button",{onClick:o,className:"p-0 border-0 w-auto h-auto bg-transparent cursor-pointer focus:outline-none"},React.createElement(f,{className:"w-6 h-6 text-icon-secondary"})))};function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(null,arguments)}const{forwardRef:Td,useMemo:Nd}=wp.element,Id=Td((({disabled:e=!1,className:t,textAreaClassName:r="",error:n,register:a,name:i,validations:o,label:s,...l},c)=>{const{ref:u,...d}=Nd((()=>"function"==typeof a?a(i,o):{}),[i,a,o]);return React.createElement("div",{className:t},s&&React.createElement("label",{htmlFor:i,className:"text-sm font-medium text-zip-app-heading"},s),React.createElement("div",{className:"relative"},React.createElement("textarea",Pd({ref:e=>{if(e&&"function"==typeof u&&u(e),c)switch(typeof c){case"function":c(e);break;case"object":c.current=e}},name:i,disabled:e,className:`${s?"mt-2":""} w-full placeholder:zw-placeholder zw-input !text-sm rounded-md border outline-none focus:ring-1 focus:ring-accent-st p-4 ${n?"shadow-error border-alert-error  focus:border-accent-st ":"shadow-sm border-zip-light-border-primary focus:border-accent-st"} ${r}`},l,d))),n&&React.createElement("p",{className:"mt-1 text-sm text-alert-error "},n.message))})),Od=({continueButtonText:e="Next",previousButtonText:n="Back",onClickContinue:a,onClickPrevious:o,onClickSkip:s,disableContinue:l,loading:c=!1,className:u})=>{const{setLoadingNextStep:d}=(0,r.A)(g.U),{loadingNextStep:p}=(0,t.A)((e=>{const{getLoadingNextStep:t}=e(g.U);return{loadingNextStep:t()}}),[]),m=async(e,t)=>{p||(d(!0),"function"==typeof t&&await t(e),d(!1))};return(0,i.useEffect)((()=>{p!==c&&d(c)}),[c]),React.createElement("div",{className:(0,y.xW)("w-full flex items-center gap-4 flex-wrap md:flex-nowrap",u)},React.createElement("div",{className:"flex gap-4"},React.createElement(ii.A,{type:"submit",className:"relative !px-4.5 !leading-4 h-auto",onClick:e=>m(e,a),variant:"ai-primary",disabled:l,hasSuffixIcon:!0},React.createElement("span",{className:(0,y.xW)((p||c)&&"invisible")},e),React.createElement(Ms,{className:(0,y.xW)("w-4 h-4",(p||c)&&"invisible")}),(p||c)&&React.createElement("span",{className:"absolute inset-0 flex items-center justify-center"},React.createElement(Vi.A,null))),"function"==typeof o&&React.createElement(ii.A,{type:"button",className:"!px-4.5 !leading-4 h-auto",onClick:e=>m(e,o),variant:"ai-white"},React.createElement("span",null,n))),"function"==typeof s&&React.createElement(ii.A,{type:"button",className:"mr-auto ml-0 md:mr-0 md:ml-auto text-secondary-text !px-4.5 !leading-4 h-auto",onClick:e=>m(e,s),variant:"blank"},"Skip Step"))};var Ld=o(4403);const Bd=e=>{switch(e){case"Facebook":case"Twitter":case"Instagram":case"LinkedIn":case"YouTube":return(0,u.nv)((0,u.__)("Enter your %s account URL","astra-sites"),e);case"Google My Business":return(0,u.__)("Enter your Google Business URL","astra-sites");case"Yelp":return(0,u.__)("Enter your Yelp business URL","astra-sites");default:return(0,u.__)("Enter your account URL","astra-sites")}},jd=({socialMedia:e,onRemove:t,onEdit:r})=>{const[n,a]=(0,i.useState)(!1),[o,s]=(0,i.useState)(e.url),l=(e="")=>{""!==e?(r(e.trim()),a(!1)):a(!1)},c=Bd(e.name);return React.createElement("div",{key:e.id,className:"relative h-[50px] pl-[23px] pr-[25px] rounded-[25px] bg-white flex items-center gap-3 shadow-sm border border-solid border-border-primary",onDoubleClick:()=>{a(!0)}},!n&&React.createElement("div",{role:"button",className:"absolute top-0 right-0 w-4 h-4 rounded-full flex items-center justify-center cursor-pointer bg-nav-inactive",onClick:t,tabIndex:0,onKeyDown:t},React.createElement(f,{className:"w-4 h-4 text-white"})),React.createElement(e.icon,{className:"shrink-0 text-nav-active inline-block"}),n?React.createElement(Qo,{ref:e=>{e&&e.focus()},name:"socialMediaURL",inputClassName:"!border-0 !px-0 !bg-transparent !shadow-none focus:!ring-0 focus:!ring-0 px-0 min-w-fit placeholder:!text-[0.9rem] rounded-none flex-grow !text-black",value:o,onChange:e=>{s(e.target.value)},className:"w-full",placeholder:c,noBorder:!0,onBlur:()=>{l(o)},onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),l(o)):"Escape"===e.key&&l()},enableAutoGrow:!0}):React.createElement("p",{className:"text-sm font-medium text-nav-inactive"},e.url))},Dd=({list:e,onChange:t})=>{const r=[{name:"Facebook",id:"facebook",icon:ei.ik},{name:"Twitter",id:"twitter",icon:ei.Fi},{name:"Instagram",id:"instagram",icon:ei.oW},{name:"LinkedIn",id:"linkedin",icon:ei.ky},{name:"YouTube",id:"youtube",icon:ei.pd},{name:"Google My Business",id:"google",icon:ei.NR},{name:"Yelp",id:"yelp",icon:ei.ev}],[n,a]=(0,i.useState)(null),[o,s]=(0,i.useState)(""),l=e=>{if(""===e)return!0;const t=e.startsWith("https://");try{const r=new URL(e).hostname;return t&&!!r}catch(e){return!1}},c=t=>{if(0===e.length)return t;const r=e.map((e=>e.id));return t.filter((e=>!r.includes(e.id)))},d=r=>{if("string"!=typeof o||!o?.trim())return;const i=o.trim(),c=[...e,{...n,url:i,valid:l(i)}];t(c),a(null),s("")},p=(0,i.useMemo)((()=>e.map((e=>{const t=e.url,n=l(t,e.id);return{...e,url:t,valid:n,icon:r.find((t=>t.id===e.id))?.icon}}))),[e]);return React.createElement("div",null,React.createElement("div",{className:"text-sm font-medium mb-5 text-zip-app-heading flex gap-1 items-center"},(0,u.__)("Social Media","astra-sites"),React.createElement(b.A,{placement:"top",content:React.createElement(React.Fragment,null,(0,u.__)("Please enter a full URL. Eg. https://twitter.com/abcd, https://instagram.com/abcd, https://facebook.com/abcd","astra-sites"))},React.createElement(zi,{className:"w-4 h-4"}))),React.createElement("div",{className:"flex items-start gap-4 flex-wrap"},p?.length>0&&React.createElement("div",{className:"flex items-start gap-4 flex-wrap"},p.map((r=>React.createElement("div",{key:r.id},React.createElement(jd,{socialMedia:r,onRemove:()=>{t(p.filter((e=>e.id!==r.id)))},onEdit:n=>((r,n)=>{const a=e.map((e=>{if(e.id===r){const t=n.trim();return{...e,url:t,valid:l(t)}}return e}));t(a)})(r.id,n)}),!r.valid&&React.createElement("div",{className:"p-3"},React.createElement("p",{className:"!m-0 !p-0 !text-alert-error !text-sm"},(0,u.__)("This might not be a valid URL.","astra-sites"))))))),(()=>{if(n){const e=n?Bd(n.name):"Enter your account URL";return React.createElement("div",{className:"h-[50px] w-[520px] rounded-[25px] bg-white flex items-center border border-solid border-border-primary"},React.createElement(Qo,{value:o,onChange:e=>{s(e.target.value)},ref:e=>{e&&e.focus()},name:"socialMediaURL",inputClassName:"!pr-10 !pl-11 !border-0 !bg-transparent !shadow-none focus:!ring-0",className:"w-full",placeholder:e,noBorder:!0,prefixIconClassName:"absolute left-4 flex items-center",prefixIcon:React.createElement(n.icon,{className:"text-nav-active inline-block"}),onBlur:e=>{e.preventDefault(),d(n.id)},onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),d(n.id)):"Escape"===e.key&&(a(null),s(""))}}))}return c(r).length?React.createElement(Ja,{width:"60",contentClassName:"p-4 bg-white [&>:first-child]:pb-2.5 [&>:last-child]:pt-2.5 [&>:not(:first-child,:last-child)]:py-2.5 !divide-y !divide-border-primary divide-solid divide-x-0",trigger:React.createElement("div",{className:"p-3 rounded-full flex items-center justify-center bg-white cursor-pointer border border-border-primary border-solid shadow-sm"},React.createElement(Ld.A,{className:"w-6 h-6 text-accent-ai"})),placement:"top-start"},c(r).map(((e,t)=>React.createElement(Ja.Item,{as:"div",role:"none",key:t,className:"only:!py-0",onClick:()=>a(e)},React.createElement("button",{onClick:()=>null,type:"button",className:"w-full flex items-center text-sm font-normal text-left py-2 px-2 leading-5 hover:bg-background-secondary focus:outline-none transition duration-150 ease-in-out space-x-2 rounded bg-transparent border-0 cursor-pointer"},React.createElement(e.icon,{className:"text-nav-inactive inline-block"}),React.createElement("span",{className:"text-body-text"},e.name)))))):""})()))};var Fd,Md;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Fd||(Fd={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Md||(Md={}));const zd=Fd.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vd=e=>{switch(typeof e){case"undefined":return zd.undefined;case"string":return zd.string;case"number":return isNaN(e)?zd.nan:zd.number;case"boolean":return zd.boolean;case"function":return zd.function;case"bigint":return zd.bigint;case"symbol":return zd.symbol;case"object":return Array.isArray(e)?zd.array:null===e?zd.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?zd.promise:"undefined"!=typeof Map&&e instanceof Map?zd.map:"undefined"!=typeof Set&&e instanceof Set?zd.set:"undefined"!=typeof Date&&e instanceof Date?zd.date:zd.object;default:return zd.unknown}},Wd=Fd.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ud extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(n);else if("invalid_return_type"===a.code)n(a.returnTypeError);else if("invalid_arguments"===a.code)n(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,n=0;for(;n<a.path.length;){const r=a.path[n];n===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof Ud))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fd.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Ud.create=e=>new Ud(e);const Hd=(e,t)=>{let r;switch(e.code){case Wd.invalid_type:r=e.received===zd.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Wd.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Fd.jsonStringifyReplacer)}`;break;case Wd.unrecognized_keys:r=`Unrecognized key(s) in object: ${Fd.joinValues(e.keys,", ")}`;break;case Wd.invalid_union:r="Invalid input";break;case Wd.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Fd.joinValues(e.options)}`;break;case Wd.invalid_enum_value:r=`Invalid enum value. Expected ${Fd.joinValues(e.options)}, received '${e.received}'`;break;case Wd.invalid_arguments:r="Invalid function arguments";break;case Wd.invalid_return_type:r="Invalid function return type";break;case Wd.invalid_date:r="Invalid date";break;case Wd.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Fd.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Wd.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Wd.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Wd.custom:r="Invalid input";break;case Wd.invalid_intersection_types:r="Intersection results could not be merged";break;case Wd.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Wd.not_finite:r="Number must be finite";break;default:r=t.defaultError,Fd.assertNever(e)}return{message:r}};let $d=Hd;function Zd(){return $d}const Gd=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,i=[...r,...a.path||[]],o={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let s="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}};function qd(e,t){const r=Zd(),n=Gd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Hd?void 0:Hd].filter((e=>!!e))});e.common.issues.push(n)}class Yd{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return Kd;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return Yd.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:a}=n;if("aborted"===t.status)return Kd;if("aborted"===a.status)return Kd;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!n.alwaysSet||(r[t.value]=a.value)}return{status:e.value,value:r}}}const Kd=Object.freeze({status:"aborted"}),Xd=e=>({status:"dirty",value:e}),Jd=e=>({status:"valid",value:e}),Qd=e=>"aborted"===e.status,ep=e=>"dirty"===e.status,tp=e=>"valid"===e.status,rp=e=>"undefined"!=typeof Promise&&e instanceof Promise;function np(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function ap(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}var ip,op,sp;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(ip||(ip={}));class lp{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const cp=(e,t)=>{if(tp(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Ud(e.common.issues);return this._error=t,this._error}}};function up(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{var i,o;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:a.defaultError}:void 0===a.data?{message:null!==(i=null!=s?s:n)&&void 0!==i?i:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(o=null!=s?s:r)&&void 0!==o?o:a.defaultError}},description:a}}class dp{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Vd(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Vd(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Yd,ctx:{common:e.parent.common,data:e.data,parsedType:Vd(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(rp(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vd(e)},a=this._parseSync({data:e,path:n.path,parent:n});return cp(n,a)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vd(e)},n=this._parse({data:e,path:r.path,parent:r}),a=await(rp(n)?n:Promise.resolve(n));return cp(r,a)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const a=e(t),i=()=>n.addIssue({code:Wd.custom,...r(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(i(),!1))):!!a||(i(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1)))}_refinement(e){return new om({schema:this,typeName:bm.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return sm.create(this,this._def)}nullable(){return lm.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vp.create(this,this._def)}promise(){return im.create(this,this._def)}or(e){return Hp.create([this,e],this._def)}and(e){return qp.create(this,e,this._def)}transform(e){return new om({...up(this._def),schema:this,typeName:bm.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new cm({...up(this._def),innerType:this,defaultValue:t,typeName:bm.ZodDefault})}brand(){return new mm({typeName:bm.ZodBranded,type:this,...up(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new um({...up(this._def),innerType:this,catchValue:t,typeName:bm.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return fm.create(this,e)}readonly(){return gm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pp=/^c[^\s-]{8,}$/i,mp=/^[0-9a-z]+$/,fp=/^[0-9A-HJKMNP-TV-Z]{26}$/,gp=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hp=/^[a-z0-9_-]{21}$/i,yp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,bp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let vp;const xp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_p=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Ep=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kp="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Sp=new RegExp(`^${kp}$`);function Cp(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function Rp(e){let t=`${kp}T${Cp(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}class Ap extends dp{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==zd.string){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.string,received:t.parsedType}),Kd}const t=new Yd;let r;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const n=e.data.length>i.value,a=e.data.length<i.value;(n||a)&&(r=this._getOrReturnCtx(e,r),n?qd(r,{code:Wd.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&qd(r,{code:Wd.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)bp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"email",code:Wd.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)vp||(vp=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),vp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"emoji",code:Wd.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)gp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"uuid",code:Wd.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)hp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"nanoid",code:Wd.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)pp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"cuid",code:Wd.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)mp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"cuid2",code:Wd.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)fp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"ulid",code:Wd.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(n){r=this._getOrReturnCtx(e,r),qd(r,{validation:"url",code:Wd.invalid_string,message:i.message}),t.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"regex",code:Wd.invalid_string,message:i.message}),t.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty()):"datetime"===i.kind?Rp(i).test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:"datetime",message:i.message}),t.dirty()):"date"===i.kind?Sp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:"date",message:i.message}),t.dirty()):"time"===i.kind?new RegExp(`^${Cp(i)}$`).test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.invalid_string,validation:"time",message:i.message}),t.dirty()):"duration"===i.kind?yp.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"duration",code:Wd.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(n=e.data,("v4"!==(a=i.version)&&a||!xp.test(n))&&("v6"!==a&&a||!_p.test(n))&&(r=this._getOrReturnCtx(e,r),qd(r,{validation:"ip",code:Wd.invalid_string,message:i.message}),t.dirty())):"base64"===i.kind?Ep.test(e.data)||(r=this._getOrReturnCtx(e,r),qd(r,{validation:"base64",code:Wd.invalid_string,message:i.message}),t.dirty()):Fd.assertNever(i);var n,a;return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement((t=>e.test(t)),{validation:t,code:Wd.invalid_string,...ip.errToObj(r)})}_addCheck(e){return new Ap({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ip.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ip.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ip.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ip.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ip.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ip.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ip.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ip.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ip.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ip.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...ip.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ip.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ip.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ip.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ip.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ip.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ip.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ip.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ip.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ip.errToObj(t)})}nonempty(e){return this.min(1,ip.errToObj(e))}trim(){return new Ap({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ap({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ap({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Pp(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}Ap.create=e=>{var t;return new Ap({checks:[],typeName:bm.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...up(e)})};class Tp extends dp{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==zd.number){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.number,received:t.parsedType}),Kd}let t;const r=new Yd;for(const n of this._def.checks)"int"===n.kind?Fd.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==Pp(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.not_finite,message:n.message}),r.dirty()):Fd.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ip.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ip.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ip.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ip.toString(t))}setLimit(e,t,r,n){return new Tp({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ip.toString(n)}]})}_addCheck(e){return new Tp({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ip.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ip.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ip.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ip.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ip.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ip.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ip.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ip.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ip.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Fd.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Tp.create=e=>new Tp({checks:[],typeName:bm.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...up(e)});class Np extends dp{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==zd.bigint){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.bigint,received:t.parsedType}),Kd}let t;const r=new Yd;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),qd(t,{code:Wd.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):Fd.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ip.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ip.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ip.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ip.toString(t))}setLimit(e,t,r,n){return new Np({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ip.toString(n)}]})}_addCheck(e){return new Np({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ip.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ip.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ip.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ip.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ip.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Np.create=e=>{var t;return new Np({checks:[],typeName:bm.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...up(e)})};class Ip extends dp{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==zd.boolean){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.boolean,received:t.parsedType}),Kd}return Jd(e.data)}}Ip.create=e=>new Ip({typeName:bm.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...up(e)});class Op extends dp{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==zd.date){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.date,received:t.parsedType}),Kd}if(isNaN(e.data.getTime()))return qd(this._getOrReturnCtx(e),{code:Wd.invalid_date}),Kd;const t=new Yd;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),qd(r,{code:Wd.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):Fd.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Op({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ip.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ip.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Op.create=e=>new Op({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:bm.ZodDate,...up(e)});class Lp extends dp{_parse(e){if(this._getType(e)!==zd.symbol){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.symbol,received:t.parsedType}),Kd}return Jd(e.data)}}Lp.create=e=>new Lp({typeName:bm.ZodSymbol,...up(e)});class Bp extends dp{_parse(e){if(this._getType(e)!==zd.undefined){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.undefined,received:t.parsedType}),Kd}return Jd(e.data)}}Bp.create=e=>new Bp({typeName:bm.ZodUndefined,...up(e)});class jp extends dp{_parse(e){if(this._getType(e)!==zd.null){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.null,received:t.parsedType}),Kd}return Jd(e.data)}}jp.create=e=>new jp({typeName:bm.ZodNull,...up(e)});class Dp extends dp{constructor(){super(...arguments),this._any=!0}_parse(e){return Jd(e.data)}}Dp.create=e=>new Dp({typeName:bm.ZodAny,...up(e)});class Fp extends dp{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Jd(e.data)}}Fp.create=e=>new Fp({typeName:bm.ZodUnknown,...up(e)});class Mp extends dp{_parse(e){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.never,received:t.parsedType}),Kd}}Mp.create=e=>new Mp({typeName:bm.ZodNever,...up(e)});class zp extends dp{_parse(e){if(this._getType(e)!==zd.undefined){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.void,received:t.parsedType}),Kd}return Jd(e.data)}}zp.create=e=>new zp({typeName:bm.ZodVoid,...up(e)});class Vp extends dp{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==zd.array)return qd(t,{code:Wd.invalid_type,expected:zd.array,received:t.parsedType}),Kd;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,a=t.data.length<n.exactLength.value;(e||a)&&(qd(t,{code:e?Wd.too_big:Wd.too_small,minimum:a?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(qd(t,{code:Wd.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(qd(t,{code:Wd.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>n.type._parseAsync(new lp(t,e,t.path,r))))).then((e=>Yd.mergeArray(r,e)));const a=[...t.data].map(((e,r)=>n.type._parseSync(new lp(t,e,t.path,r))));return Yd.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new Vp({...this._def,minLength:{value:e,message:ip.toString(t)}})}max(e,t){return new Vp({...this._def,maxLength:{value:e,message:ip.toString(t)}})}length(e,t){return new Vp({...this._def,exactLength:{value:e,message:ip.toString(t)}})}nonempty(e){return this.min(1,e)}}function Wp(e){if(e instanceof Up){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=sm.create(Wp(n))}return new Up({...e._def,shape:()=>t})}return e instanceof Vp?new Vp({...e._def,type:Wp(e.element)}):e instanceof sm?sm.create(Wp(e.unwrap())):e instanceof lm?lm.create(Wp(e.unwrap())):e instanceof Yp?Yp.create(e.items.map((e=>Wp(e)))):e}Vp.create=(e,t)=>new Vp({type:e,minLength:null,maxLength:null,exactLength:null,typeName:bm.ZodArray,...up(t)});class Up extends dp{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Fd.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==zd.object){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.object,received:t.parsedType}),Kd}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof Mp&&"strip"===this._def.unknownKeys))for(const e in r.data)a.includes(e)||i.push(e);const o=[];for(const e of a){const t=n[e],a=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new lp(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Mp){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)i.length>0&&(qd(r,{code:Wd.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new lp(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of o){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>Yd.mergeObjectSync(t,e))):Yd.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return ip.errToObj,new Up({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,a,i,o;const s=null!==(i=null===(a=(n=this._def).errorMap)||void 0===a?void 0:a.call(n,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=ip.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new Up({...this._def,unknownKeys:"strip"})}passthrough(){return new Up({...this._def,unknownKeys:"passthrough"})}extend(e){return new Up({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Up({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:bm.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Up({...this._def,catchall:e})}pick(e){const t={};return Fd.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new Up({...this._def,shape:()=>t})}omit(e){const t={};return Fd.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new Up({...this._def,shape:()=>t})}deepPartial(){return Wp(this)}partial(e){const t={};return Fd.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()})),new Up({...this._def,shape:()=>t})}required(e){const t={};return Fd.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof sm;)e=e._def.innerType;t[r]=e}})),new Up({...this._def,shape:()=>t})}keyof(){return rm(Fd.objectKeys(this.shape))}}Up.create=(e,t)=>new Up({shape:()=>e,unknownKeys:"strip",catchall:Mp.create(),typeName:bm.ZodObject,...up(t)}),Up.strictCreate=(e,t)=>new Up({shape:()=>e,unknownKeys:"strict",catchall:Mp.create(),typeName:bm.ZodObject,...up(t)}),Up.lazycreate=(e,t)=>new Up({shape:e,unknownKeys:"strip",catchall:Mp.create(),typeName:bm.ZodObject,...up(t)});class Hp extends dp{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map((e=>new Ud(e.ctx.common.issues)));return qd(t,{code:Wd.invalid_union,unionErrors:r}),Kd}));{let e;const n=[];for(const a of r){const r={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=n.map((e=>new Ud(e)));return qd(t,{code:Wd.invalid_union,unionErrors:a}),Kd}}get options(){return this._def.options}}Hp.create=(e,t)=>new Hp({options:e,typeName:bm.ZodUnion,...up(t)});const $p=e=>e instanceof em?$p(e.schema):e instanceof om?$p(e.innerType()):e instanceof tm?[e.value]:e instanceof nm?e.options:e instanceof am?Fd.objectValues(e.enum):e instanceof cm?$p(e._def.innerType):e instanceof Bp?[void 0]:e instanceof jp?[null]:e instanceof sm?[void 0,...$p(e.unwrap())]:e instanceof lm?[null,...$p(e.unwrap())]:e instanceof mm||e instanceof gm?$p(e.unwrap()):e instanceof um?$p(e._def.innerType):[];class Zp extends dp{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==zd.object)return qd(t,{code:Wd.invalid_type,expected:zd.object,received:t.parsedType}),Kd;const r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(qd(t,{code:Wd.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Kd)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const r of t){const t=$p(r.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(n.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);n.set(a,r)}}return new Zp({typeName:bm.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...up(r)})}}function Gp(e,t){const r=Vd(e),n=Vd(t);if(e===t)return{valid:!0,data:e};if(r===zd.object&&n===zd.object){const r=Fd.objectKeys(t),n=Fd.objectKeys(e).filter((e=>-1!==r.indexOf(e))),a={...e,...t};for(const r of n){const n=Gp(e[r],t[r]);if(!n.valid)return{valid:!1};a[r]=n.data}return{valid:!0,data:a}}if(r===zd.array&&n===zd.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const a=Gp(e[n],t[n]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===zd.date&&n===zd.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class qp extends dp{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(Qd(e)||Qd(n))return Kd;const a=Gp(e.value,n.value);return a.valid?((ep(e)||ep(n))&&t.dirty(),{status:t.value,value:a.data}):(qd(r,{code:Wd.invalid_intersection_types}),Kd)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}qp.create=(e,t,r)=>new qp({left:e,right:t,typeName:bm.ZodIntersection,...up(r)});class Yp extends dp{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==zd.array)return qd(r,{code:Wd.invalid_type,expected:zd.array,received:r.parsedType}),Kd;if(r.data.length<this._def.items.length)return qd(r,{code:Wd.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Kd;!this._def.rest&&r.data.length>this._def.items.length&&(qd(r,{code:Wd.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new lp(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(n).then((e=>Yd.mergeArray(t,e))):Yd.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Yp({...this._def,rest:e})}}Yp.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Yp({items:e,typeName:bm.ZodTuple,rest:null,...up(t)})};class Kp extends dp{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==zd.object)return qd(r,{code:Wd.invalid_type,expected:zd.object,received:r.parsedType}),Kd;const n=[],a=this._def.keyType,i=this._def.valueType;for(const e in r.data)n.push({key:a._parse(new lp(r,e,r.path,e)),value:i._parse(new lp(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?Yd.mergeObjectAsync(t,n):Yd.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new Kp(t instanceof dp?{keyType:e,valueType:t,typeName:bm.ZodRecord,...up(r)}:{keyType:Ap.create(),valueType:e,typeName:bm.ZodRecord,...up(t)})}}class Xp extends dp{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==zd.map)return qd(r,{code:Wd.invalid_type,expected:zd.map,received:r.parsedType}),Kd;const n=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map((([e,t],i)=>({key:n._parse(new lp(r,e,r.path,[i,"key"])),value:a._parse(new lp(r,t,r.path,[i,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of i){const n=await r.key,a=await r.value;if("aborted"===n.status||"aborted"===a.status)return Kd;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of i){const n=r.key,a=r.value;if("aborted"===n.status||"aborted"===a.status)return Kd;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}}}Xp.create=(e,t,r)=>new Xp({valueType:t,keyType:e,typeName:bm.ZodMap,...up(r)});class Jp extends dp{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==zd.set)return qd(r,{code:Wd.invalid_type,expected:zd.set,received:r.parsedType}),Kd;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(qd(r,{code:Wd.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(qd(r,{code:Wd.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const r=new Set;for(const n of e){if("aborted"===n.status)return Kd;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const o=[...r.data.values()].map(((e,t)=>a._parse(new lp(r,e,r.path,t))));return r.common.async?Promise.all(o).then((e=>i(e))):i(o)}min(e,t){return new Jp({...this._def,minSize:{value:e,message:ip.toString(t)}})}max(e,t){return new Jp({...this._def,maxSize:{value:e,message:ip.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Jp.create=(e,t)=>new Jp({valueType:e,minSize:null,maxSize:null,typeName:bm.ZodSet,...up(t)});class Qp extends dp{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==zd.function)return qd(t,{code:Wd.invalid_type,expected:zd.function,received:t.parsedType}),Kd;function r(e,r){return Gd({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Zd(),Hd].filter((e=>!!e)),issueData:{code:Wd.invalid_arguments,argumentsError:r}})}function n(e,r){return Gd({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Zd(),Hd].filter((e=>!!e)),issueData:{code:Wd.invalid_return_type,returnTypeError:r}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof im){const e=this;return Jd((async function(...t){const o=new Ud([]),s=await e._def.args.parseAsync(t,a).catch((e=>{throw o.addIssue(r(t,e)),o})),l=await Reflect.apply(i,this,s),c=await e._def.returns._def.type.parseAsync(l,a).catch((e=>{throw o.addIssue(n(l,e)),o}));return c}))}{const e=this;return Jd((function(...t){const o=e._def.args.safeParse(t,a);if(!o.success)throw new Ud([r(t,o.error)]);const s=Reflect.apply(i,this,o.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new Ud([n(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Qp({...this._def,args:Yp.create(e).rest(Fp.create())})}returns(e){return new Qp({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Qp({args:e||Yp.create([]).rest(Fp.create()),returns:t||Fp.create(),typeName:bm.ZodFunction,...up(r)})}}class em extends dp{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}em.create=(e,t)=>new em({getter:e,typeName:bm.ZodLazy,...up(t)});class tm extends dp{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return qd(t,{received:t.data,code:Wd.invalid_literal,expected:this._def.value}),Kd}return{status:"valid",value:e.data}}get value(){return this._def.value}}function rm(e,t){return new nm({values:e,typeName:bm.ZodEnum,...up(t)})}tm.create=(e,t)=>new tm({value:e,typeName:bm.ZodLiteral,...up(t)});class nm extends dp{constructor(){super(...arguments),op.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return qd(t,{expected:Fd.joinValues(r),received:t.parsedType,code:Wd.invalid_type}),Kd}if(np(this,op,"f")||ap(this,op,new Set(this._def.values),"f"),!np(this,op,"f").has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return qd(t,{received:t.data,code:Wd.invalid_enum_value,options:r}),Kd}return Jd(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return nm.create(e,{...this._def,...t})}exclude(e,t=this._def){return nm.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}op=new WeakMap,nm.create=rm;class am extends dp{constructor(){super(...arguments),sp.set(this,void 0)}_parse(e){const t=Fd.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==zd.string&&r.parsedType!==zd.number){const e=Fd.objectValues(t);return qd(r,{expected:Fd.joinValues(e),received:r.parsedType,code:Wd.invalid_type}),Kd}if(np(this,sp,"f")||ap(this,sp,new Set(Fd.getValidEnumValues(this._def.values)),"f"),!np(this,sp,"f").has(e.data)){const e=Fd.objectValues(t);return qd(r,{received:r.data,code:Wd.invalid_enum_value,options:e}),Kd}return Jd(e.data)}get enum(){return this._def.values}}sp=new WeakMap,am.create=(e,t)=>new am({values:e,typeName:bm.ZodNativeEnum,...up(t)});class im extends dp{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==zd.promise&&!1===t.common.async)return qd(t,{code:Wd.invalid_type,expected:zd.promise,received:t.parsedType}),Kd;const r=t.parsedType===zd.promise?t.data:Promise.resolve(t.data);return Jd(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}im.create=(e,t)=>new im({type:e,typeName:bm.ZodPromise,...up(t)});class om extends dp{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===bm.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:e=>{qd(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===n.type){const e=n.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return Kd;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?Kd:"dirty"===n.status||"dirty"===t.value?Xd(n.value):n}));{if("aborted"===t.value)return Kd;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?Kd:"dirty"===n.status||"dirty"===t.value?Xd(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?Kd:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?Kd:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!tp(e))return e;const i=n.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>tp(e)?Promise.resolve(n.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}Fd.assertNever(n)}}om.create=(e,t,r)=>new om({schema:e,typeName:bm.ZodEffects,effect:t,...up(r)}),om.createWithPreprocess=(e,t,r)=>new om({schema:t,effect:{type:"preprocess",transform:e},typeName:bm.ZodEffects,...up(r)});class sm extends dp{_parse(e){return this._getType(e)===zd.undefined?Jd(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}sm.create=(e,t)=>new sm({innerType:e,typeName:bm.ZodOptional,...up(t)});class lm extends dp{_parse(e){return this._getType(e)===zd.null?Jd(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}lm.create=(e,t)=>new lm({innerType:e,typeName:bm.ZodNullable,...up(t)});class cm extends dp{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===zd.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}cm.create=(e,t)=>new cm({innerType:e,typeName:bm.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...up(t)});class um extends dp{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return rp(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Ud(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Ud(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}um.create=(e,t)=>new um({innerType:e,typeName:bm.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...up(t)});class dm extends dp{_parse(e){if(this._getType(e)!==zd.nan){const t=this._getOrReturnCtx(e);return qd(t,{code:Wd.invalid_type,expected:zd.nan,received:t.parsedType}),Kd}return{status:"valid",value:e.data}}}dm.create=e=>new dm({typeName:bm.ZodNaN,...up(e)});const pm=Symbol("zod_brand");class mm extends dp{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class fm extends dp{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Kd:"dirty"===e.status?(t.dirty(),Xd(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Kd:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new fm({in:e,out:t,typeName:bm.ZodPipeline})}}class gm extends dp{_parse(e){const t=this._def.innerType._parse(e),r=e=>(tp(e)&&(e.value=Object.freeze(e.value)),e);return rp(t)?t.then((e=>r(e))):r(t)}unwrap(){return this._def.innerType}}function hm(e,t={},r){return e?Dp.create().superRefine(((n,a)=>{var i,o;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(o=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===o||o,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}})):Dp.create()}gm.create=(e,t)=>new gm({innerType:e,typeName:bm.ZodReadonly,...up(t)});const ym={object:Up.lazycreate};var bm;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(bm||(bm={}));const vm=Ap.create,wm=Tp.create,xm=dm.create,_m=Np.create,Em=Ip.create,km=Op.create,Sm=Lp.create,Cm=Bp.create,Rm=jp.create,Am=Dp.create,Pm=Fp.create,Tm=Mp.create,Nm=zp.create,Im=Vp.create,Om=Up.create,Lm=Up.strictCreate,Bm=Hp.create,jm=Zp.create,Dm=qp.create,Fm=Yp.create,Mm=Kp.create,zm=Xp.create,Vm=Jp.create,Wm=Qp.create,Um=em.create,Hm=tm.create,$m=nm.create,Zm=am.create,Gm=im.create,qm=om.create,Ym=sm.create,Km=lm.create,Xm=om.createWithPreprocess,Jm=fm.create,Qm={string:e=>Ap.create({...e,coerce:!0}),number:e=>Tp.create({...e,coerce:!0}),boolean:e=>Ip.create({...e,coerce:!0}),bigint:e=>Np.create({...e,coerce:!0}),date:e=>Op.create({...e,coerce:!0})},ef=Kd;var tf=Object.freeze({__proto__:null,defaultErrorMap:Hd,setErrorMap:function(e){$d=e},getErrorMap:Zd,makeIssue:Gd,EMPTY_PATH:[],addIssueToContext:qd,ParseStatus:Yd,INVALID:Kd,DIRTY:Xd,OK:Jd,isAborted:Qd,isDirty:ep,isValid:tp,isAsync:rp,get util(){return Fd},get objectUtil(){return Md},ZodParsedType:zd,getParsedType:Vd,ZodType:dp,datetimeRegex:Rp,ZodString:Ap,ZodNumber:Tp,ZodBigInt:Np,ZodBoolean:Ip,ZodDate:Op,ZodSymbol:Lp,ZodUndefined:Bp,ZodNull:jp,ZodAny:Dp,ZodUnknown:Fp,ZodNever:Mp,ZodVoid:zp,ZodArray:Vp,ZodObject:Up,ZodUnion:Hp,ZodDiscriminatedUnion:Zp,ZodIntersection:qp,ZodTuple:Yp,ZodRecord:Kp,ZodMap:Xp,ZodSet:Jp,ZodFunction:Qp,ZodLazy:em,ZodLiteral:tm,ZodEnum:nm,ZodNativeEnum:am,ZodPromise:im,ZodEffects:om,ZodTransformer:om,ZodOptional:sm,ZodNullable:lm,ZodDefault:cm,ZodCatch:um,ZodNaN:dm,BRAND:pm,ZodBranded:mm,ZodPipeline:fm,ZodReadonly:gm,custom:hm,Schema:dp,ZodSchema:dp,late:ym,get ZodFirstPartyTypeKind(){return bm},coerce:Qm,any:Am,array:Im,bigint:_m,boolean:Em,date:km,discriminatedUnion:jm,effect:qm,enum:$m,function:Wm,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>hm((t=>t instanceof e),t),intersection:Dm,lazy:Um,literal:Hm,map:zm,nan:xm,nativeEnum:Zm,never:Tm,null:Rm,nullable:Km,number:wm,object:Om,oboolean:()=>Em().optional(),onumber:()=>wm().optional(),optional:Ym,ostring:()=>vm().optional(),pipeline:Jm,preprocess:Xm,promise:Gm,record:Mm,set:Vm,strictObject:Lm,string:vm,symbol:Sm,transformer:qm,tuple:Fm,undefined:Cm,union:Bm,unknown:Pm,void:Nm,NEVER:ef,ZodIssueCode:Wd,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:Ud});const rf=({text:e})=>c().createElement("span",{className:"text-center text-zip-app-heading relative"},c().createElement("span",{className:"bg-gradient-to-r from-gradient-color-1/50 via-gradient-color-2/50 to-gradient-color-3/50  bg-[length:100%_6px] bg-no-repeat bg-bottom pb-0 "},e));function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(null,arguments)}const af=({children:e,className:t,as:r="div",...n})=>React.createElement(r,nf({className:(0,y.xW)("max-w-container w-full bg-white p-8 flex flex-col gap-8 rounded-xl shadow",t)},n),e),of=/^[a-z0-9!'#$%&*+\/=?^_`{|}~-]+(?:\.[a-z0-9!'#$%&*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-zA-Z]{2,}$/i,sf=e=>e.map((e=>{const t=e?.type?e?.type:e?.id;return{type:t,id:t,url:e?.url}})),lf=e=>e.filter((e=>e.valid)),cf=e=>{const t=tf.object({email:tf.string().refine((e=>""===e||of.test(e)),{message:(0,u.__)("(Please enter a valid email","astra-sites")}),address:tf.string().optional()}).safeParse(e);return t?.success?t.data:{...e,...t.error.issues.reduce(((e,t)=>(e[t.path[0]]="",e)),{})}},uf=(0,e.A)((0,n.A)((e=>{const{setNextAIStep:t,setPreviousAIStep:r}=e("astra-sites");return{onClickContinue:t,onClickPrevious:r,onClickSkip:t}})))((({onClickContinue:e,onClickPrevious:n,onClickSkip:a})=>{const{businessContact:o}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()})),{setWebsiteContactAIStep:s}=(0,r.A)(g.U),[l,c]=(0,i.useState)(sf(o.socialMedia??[])?.map((e=>({...e,valid:!0})))),d=(0,i.useRef)({...o,socialMedia:sf(o?.socialMedia??[])?.map((e=>({...e,valid:!0})))}),{register:p,handleSubmit:m,formState:{errors:f},setFocus:h,watch:y}=Ql({defaultValues:{...o}});(0,i.useEffect)((()=>{h("email")}),[h]);const{businessName:b}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()})),v=l.some((e=>!e.valid));return React.createElement(af,{as:"form",className:"w-full max-w-container flex flex-col gap-4 pb-10",action:"#",onSubmit:m((t=>{s({...t,socialMedia:sf(l)}),e()}))},React.createElement("div",{className:"text-zip-app-heading text-[1.75rem] font-semibold leading-9"},(0,u.__)("How can people get in touch with ","astra-sites"),React.createElement(rf,{text:b}),"?"),React.createElement("p",{className:"text-zip-body-text text-base font-normal"},(0,u.__)("Please provide the contact information details below. These will be used on the website.","astra-sites")),React.createElement("div",{className:"space-y-5"},React.createElement("div",{className:"flex justify-between gap-x-8 items-start w-full"},React.createElement(Qo,{className:"w-full",type:"text",name:"email",id:"email",label:"Email",placeholder:"Your email",register:p,error:f.email,validations:{pattern:{value:of,message:(0,u.__)("Please enter a valid email","astra-sites")}},prefixIconClassName:"absolute left-4 flex items-center"}),React.createElement(Qo,{className:"w-full",type:"text",name:"phone",id:"phone",label:"Phone Number",placeholder:"Your phone number",register:p,error:f.phone,prefixIconClassName:"absolute left-4 flex items-center"})),React.createElement(Id,{rows:4,name:"address",id:"address",label:"Address",placeholder:"",register:p,error:f.address}),React.createElement(Dd,{list:l,onChange:e=>{c(e)}})),React.createElement(Qa,null),React.createElement(Od,{onClickPrevious:async()=>{const e=y(),t=cf(e);s({...t,socialMedia:sf(lf(l))}),n()},onClickSkip:async()=>{const{socialMedia:e=[],...t}=d.current,r=cf(t);s({...r,socialMedia:sf(lf(e))}),a()},disableContinue:v}))})),df=({heading:e,subHeading:t,className:r})=>React.createElement("div",{className:(0,y.xW)("space-y-3",r)},!!e&&React.createElement("div",{className:"text-zip-app-label text-[1.75rem] font-semibold leading-9"},e),!!t&&React.createElement("p",{className:"text-body-text text-base font-normal"},t));function pf(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function mf(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))gf(r,ff(t,n),a);return r}function ff(e,t){return e?e+"["+t+"]":t}function gf(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())gf(e,ff(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):mf(r,t,e)}let hf=(0,i.createContext)(null);function yf({children:e}){let t=(0,i.useContext)(hf);if(!t)return i.createElement(i.Fragment,null,e);let{target:r}=t;return r?(0,ye.createPortal)(i.createElement(i.Fragment,null,e),r):null}function bf({data:e,form:t,disabled:r,onReset:n,overrides:a}){let[o,s]=(0,i.useState)(null),l=ke();return(0,i.useEffect)((()=>{if(n&&o)return l.addEventListener(o,"reset",n)}),[o,t,n]),i.createElement(yf,null,i.createElement(vf,{setForm:s,formId:t}),mf(e).map((([e,n])=>i.createElement(ci,{features:li.Hidden,...Fn({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:r,name:e,value:n,...a})}))))}function vf({setForm:e,formId:t}){return(0,i.useEffect)((()=>{if(t){let r=document.getElementById(t);r&&e(r)}}),[e,t]),t?null:i.createElement(ci,{features:li.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let r=t.closest("form");r&&e(r)}})}var wf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wf||{}),xf=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(xf||{}),_f=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_f||{}),Ef=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(Ef||{});function kf(e,t=(e=>e)){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=rt(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),a=r?n.indexOf(r):null;return-1===a&&(a=null),{options:n,activeOptionIndex:a}}let Sf={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex((e=>r(e.dataRef.current.value)));return-1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var r,n,a,i,o;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===Rn.Nothing)return{...s,activeOptionIndex:null};if(t.focus===Rn.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===Rn.Previous){let r=e.activeOptionIndex;if(null!==r){let i=e.options[r].dataRef.current.domRef,o=An(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(n=i.current)?void 0:n.previousElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.previousElementSibling))return{...s,activeOptionIndex:o}}}}else if(t.focus===Rn.Next){let r=e.activeOptionIndex;if(null!==r){let n=e.options[r].dataRef.current.domRef,a=An(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(i=n.current)?void 0:i.nextElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.nextElementSibling))return{...s,activeOptionIndex:a}}}}let l=kf(e),c=An(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),a=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))})),i=a?e.options.indexOf(a):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=kf(e,(e=>[...e,r]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=kf(e,(e=>{let r=e.findIndex((e=>e.id===t.id));return-1!==r&&e.splice(r,1),e}));return{...e,...r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Cf=(0,i.createContext)(null);function Rf(e){let t=(0,i.useContext)(Cf);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Rf),t}return t}Cf.displayName="ListboxActionsContext";let Af=(0,i.createContext)(null);function Pf(e){let t=(0,i.useContext)(Af);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pf),t}return t}function Tf(e,t){return Ve(t.type,Sf,e,t)}Af.displayName="ListboxDataContext";let Nf=i.Fragment,If=(0,i.createContext)(!1),Of=Tn.RenderStrategy|Tn.Static,Lf=i.Fragment,Bf=Dn((function(e,t){var r;let n=Vn(),{value:a,defaultValue:o,form:s,name:l,onChange:c,by:u,invalid:d=!1,disabled:p=n||!1,horizontal:m=!1,multiple:f=!1,__demoMode:g=!1,...h}=e;const y=m?"horizontal":"vertical";let b=bt(t),v=function(e){let[t]=(0,i.useState)(e);return t}(o),[w=(f?[]:void 0),x]=function(e,t,r){let[n,a]=(0,i.useState)(r),o=void 0!==e,s=(0,i.useRef)(o),l=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!o||s.current||l.current?!o&&s.current&&!c.current&&(c.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(l.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:n,Re((e=>(o||a(e),null==t?void 0:t(e))))]}(a,c,v),[_,E]=(0,i.useReducer)(Tf,{dataRef:(0,i.createRef)(),listboxState:g?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:g}),k=(0,i.useRef)({static:!1,hold:!1}),S=(0,i.useRef)(new Map),C=function(e=pf){return(0,i.useCallback)(((t,r)=>{if("string"==typeof e){let n=e;return(null==t?void 0:t[n])===(null==r?void 0:r[n])}return e(t,r)}),[e])}(u),R=(0,i.useCallback)((e=>Ve(A.mode,{1:()=>w.some((t=>C(t,e))),0:()=>C(w,e)})),[w]),A=(0,i.useMemo)((()=>({..._,value:w,disabled:p,invalid:d,mode:f?1:0,orientation:y,compare:C,isSelected:R,optionsPropsRef:k,listRef:S})),[w,p,d,f,_,S]);Se((()=>{_.dataRef.current=A}),[A]),ct(0===A.listboxState,[A.buttonElement,A.optionsElement],((e,t)=>{var r;E({type:1}),Xe(t,Ke.Loose)||(e.preventDefault(),null==(r=A.buttonElement)||r.focus())}));let P=(0,i.useMemo)((()=>({open:0===A.listboxState,disabled:p,invalid:d,value:w})),[A,p,w,d]),T=Re((e=>{let t=A.options.find((t=>t.id===e));t&&D(t.dataRef.current.value)})),N=Re((()=>{if(null!==A.activeOptionIndex){let{dataRef:e,id:t}=A.options[A.activeOptionIndex];D(e.current.value),E({type:2,focus:Rn.Specific,id:t})}})),I=Re((()=>E({type:0}))),O=Re((()=>E({type:1}))),L=ke(),B=Re(((e,t,r)=>{L.dispose(),L.microTask((()=>e===Rn.Specific?E({type:2,focus:Rn.Specific,id:t,trigger:r}):E({type:2,focus:e,trigger:r})))})),j=Re(((e,t)=>(E({type:5,id:e,dataRef:t}),()=>E({type:6,id:e})))),D=Re((e=>Ve(A.mode,{0:()=>null==x?void 0:x(e),1(){let t=A.value.slice(),r=t.findIndex((t=>C(t,e)));return-1===r?t.push(e):t.splice(r,1),null==x?void 0:x(t)}}))),F=Re((e=>E({type:3,value:e}))),M=Re((()=>E({type:4}))),z=Re((e=>{E({type:7,element:e})})),V=Re((e=>{E({type:8,element:e})})),W=(0,i.useMemo)((()=>({onChange:D,registerOption:j,goToOption:B,closeListbox:O,openListbox:I,selectActiveOption:N,selectOption:T,search:F,clearSearch:M,setButtonElement:z,setOptionsElement:V})),[]),[U,H]=Qn({inherit:!0}),$={ref:b},Z=(0,i.useCallback)((()=>{if(void 0!==v)return null==x?void 0:x(v)}),[x,v]),G=In();return i.createElement(H,{value:U,props:{htmlFor:null==(r=A.buttonElement)?void 0:r.id},slot:{open:0===A.listboxState,disabled:p}},i.createElement(hn,null,i.createElement(Cf.Provider,{value:W},i.createElement(Af.Provider,{value:A},i.createElement(En,{value:Ve(A.listboxState,{0:xn.Open,1:xn.Closed})},null!=l&&null!=w&&i.createElement(bf,{disabled:p,data:{[l]:w},form:s,onReset:Z}),G({ourProps:$,theirProps:h,slot:P,defaultTag:Nf,name:"Listbox"}))))))})),jf=Dn((function(e,t){var r;let n=Pf("Listbox.Button"),a=Rf("Listbox.Button"),o=(0,i.useId)(),s=Yn(),{id:l=s||`headlessui-listbox-button-${o}`,disabled:c=n.disabled||!1,autoFocus:u=!1,...d}=e,p=bt(t,pn(),a.setButtonElement),m=mn(),f=Re((e=>{switch(e.key){case Gn.Enter:!function(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}(e.currentTarget);break;case Gn.Space:case Gn.ArrowDown:e.preventDefault(),(0,ye.flushSync)((()=>a.openListbox())),n.value||a.goToOption(Rn.First);break;case Gn.ArrowUp:e.preventDefault(),(0,ye.flushSync)((()=>a.openListbox())),n.value||a.goToOption(Rn.Last)}})),g=Re((e=>{e.key===Gn.Space&&e.preventDefault()})),h=Re((e=>{var t;if(Sn(e.currentTarget))return e.preventDefault();0===n.listboxState?((0,ye.flushSync)((()=>a.closeListbox())),null==(t=n.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.openListbox())})),y=Re((e=>e.preventDefault())),b=Jn([l]),v=function(){var e,t;return null!=(t=null==(e=(0,i.useContext)(Wn))?void 0:e.value)?t:void 0}(),{isFocusVisible:w,focusProps:x}=ue({autoFocus:u}),{isHovered:_,hoverProps:E}=he({isDisabled:c}),{pressed:k,pressProps:S}=Ae({disabled:c}),C=(0,i.useMemo)((()=>({open:0===n.listboxState,active:k||0===n.listboxState,disabled:c,invalid:n.invalid,value:n.value,hover:_,focus:w,autofocus:u})),[n.listboxState,n.value,c,_,w,k,n.invalid,u]),R=jn(m(),{ref:p,id:l,type:dt(e,n.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(r=n.optionsElement)?void 0:r.id,"aria-expanded":0===n.listboxState,"aria-labelledby":b,"aria-describedby":v,disabled:c||void 0,autoFocus:u,onKeyDown:f,onKeyUp:g,onKeyPress:y,onClick:h},x,E,S);return In()({ourProps:R,theirProps:d,slot:C,defaultTag:"button",name:"Listbox.Button"})})),Df=ta,Ff=Dn((function(e,t){var r,n;let a=(0,i.useId)(),{id:o=`headlessui-listbox-options-${a}`,anchor:s,portal:l=!1,modal:c=!0,transition:u=!1,...d}=e,p=dn(s),[m,f]=(0,i.useState)(null);p&&(l=!0);let g=Pf("Listbox.Options"),h=Rf("Listbox.Options"),y=ut(g.optionsElement),b=_n(),[v,w]=Pt(u,m,null!==b?(b&xn.Open)===xn.Open:0===g.listboxState);ze(v,g.buttonElement,h.closeListbox),ht(!g.__demoMode&&c&&0===g.listboxState,y),Me(!g.__demoMode&&c&&0===g.listboxState,{allowed:(0,i.useCallback)((()=>[g.buttonElement,g.optionsElement]),[g.buttonElement,g.optionsElement])});let x=!Pe(0!==g.listboxState,g.buttonElement)&&v,_=function(e,t){let[r,n]=(0,i.useState)(t);return!e&&r!==t&&n(t),e?r:t}(v&&1===g.listboxState,g.value),E=Re((e=>g.compare(_,e))),k=(0,i.useMemo)((()=>{var e;if(null==p||null==(e=null==p?void 0:p.to)||!e.includes("selection"))return null;let t=g.options.findIndex((e=>E(e.dataRef.current.value)));return-1===t&&(t=0),t}),[p,g.options]),S=(()=>{if(null==p)return;if(null===k)return{...p,inner:void 0};let e=Array.from(g.listRef.current.values());return{...p,inner:{listRef:{current:e},index:k}}})(),[C,R]=gn(S),A=fn(),P=bt(t,p?C:null,h.setOptionsElement,f),T=ke();(0,i.useEffect)((()=>{var e;let t=g.optionsElement;t&&0===g.listboxState&&t!==(null==(e=xe(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[g.listboxState,g.optionsElement]);let N=Re((e=>{var t,r;switch(T.dispose(),e.key){case Gn.Space:if(""!==g.searchQuery)return e.preventDefault(),e.stopPropagation(),h.search(e.key);case Gn.Enter:if(e.preventDefault(),e.stopPropagation(),null!==g.activeOptionIndex){let{dataRef:e}=g.options[g.activeOptionIndex];h.onChange(e.current.value)}0===g.mode&&((0,ye.flushSync)((()=>h.closeListbox())),null==(t=g.buttonElement)||t.focus({preventScroll:!0}));break;case Ve(g.orientation,{vertical:Gn.ArrowDown,horizontal:Gn.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.goToOption(Rn.Next);case Ve(g.orientation,{vertical:Gn.ArrowUp,horizontal:Gn.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.goToOption(Rn.Previous);case Gn.Home:case Gn.PageUp:return e.preventDefault(),e.stopPropagation(),h.goToOption(Rn.First);case Gn.End:case Gn.PageDown:return e.preventDefault(),e.stopPropagation(),h.goToOption(Rn.Last);case Gn.Escape:return e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>h.closeListbox())),void(null==(r=g.buttonElement)||r.focus({preventScroll:!0}));case Gn.Tab:e.preventDefault(),e.stopPropagation(),(0,ye.flushSync)((()=>h.closeListbox())),nt(g.buttonElement,e.shiftKey?Ze.Previous:Ze.Next);break;default:1===e.key.length&&(h.search(e.key),T.setTimeout((()=>h.clearSearch()),350))}})),I=null==(r=g.buttonElement)?void 0:r.id,O=(0,i.useMemo)((()=>({open:0===g.listboxState})),[g.listboxState]),L=jn(p?A():{},{id:o,ref:P,"aria-activedescendant":null===g.activeOptionIndex||null==(n=g.options[g.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===g.mode||void 0,"aria-labelledby":I,"aria-orientation":g.orientation,onKeyDown:N,role:"listbox",tabIndex:0===g.listboxState?0:void 0,style:{...d.style,...R,"--button-width":Te(g.buttonElement,!0).width},...At(w)}),B=In();return i.createElement(ma,{enabled:!!l&&(e.static||v)},i.createElement(Af.Provider,{value:1===g.mode?g:{...g,isSelected:E}},B({ourProps:L,theirProps:d,slot:O,defaultTag:"div",features:Of,visible:x,name:"Listbox.Options"})))})),Mf=Dn((function(e,t){let r=(0,i.useId)(),{id:n=`headlessui-listbox-option-${r}`,disabled:a=!1,value:o,...s}=e,l=!0===(0,i.useContext)(If),c=Pf("Listbox.Option"),u=Rf("Listbox.Option"),d=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===n,p=c.isSelected(o),m=(0,i.useRef)(null),f=xt(m),g=Ce({disabled:a,value:o,domRef:m,get textValue(){return f()}}),h=bt(t,m,(e=>{e?c.listRef.current.set(n,e):c.listRef.current.delete(n)}));Se((()=>{if(!c.__demoMode&&0===c.listboxState&&d&&0!==c.activationTrigger)return Ee().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[m,d,c.__demoMode,c.listboxState,c.activationTrigger,c.activeOptionIndex]),Se((()=>{if(!l)return u.registerOption(n,g)}),[g,n,l]);let y=Re((e=>{var t;if(a)return e.preventDefault();u.onChange(o),0===c.mode&&((0,ye.flushSync)((()=>u.closeListbox())),null==(t=c.buttonElement)||t.focus({preventScroll:!0}))})),b=Re((()=>{if(a)return u.goToOption(Rn.Nothing);u.goToOption(Rn.Specific,n)})),v=Et(),w=Re((e=>{v.update(e),!a&&(d||u.goToOption(Rn.Specific,n,0))})),x=Re((e=>{v.wasMoved(e)&&(a||d||u.goToOption(Rn.Specific,n,0))})),_=Re((e=>{v.wasMoved(e)&&(a||d&&u.goToOption(Rn.Nothing))})),E=(0,i.useMemo)((()=>({active:d,focus:d,selected:p,disabled:a,selectedOption:p&&l})),[d,p,a,l]),k=l?{}:{id:n,ref:h,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:b,onPointerEnter:w,onMouseEnter:w,onPointerMove:x,onMouseMove:x,onPointerLeave:_,onMouseLeave:_},S=In();return!p&&l?null:S({ourProps:k,theirProps:s,slot:E,defaultTag:"div",name:"Listbox.Option"})})),zf=Dn((function(e,t){let{options:r,placeholder:n,...a}=e,o={ref:bt(t)},s=Pf("ListboxSelectedOption"),l=(0,i.useMemo)((()=>({})),[]),c=void 0===s.value||null===s.value||1===s.mode&&Array.isArray(s.value)&&0===s.value.length,u=In();return i.createElement(If.Provider,{value:!0},u({ourProps:o,theirProps:{...a,children:i.createElement(i.Fragment,null,n&&c?n:r)},slot:l,defaultTag:Lf,name:"ListboxSelectedOption"}))})),Vf=Object.assign(Bf,{Button:jf,Label:Df,Options:Ff,Option:Mf,SelectedOption:zf});function Wf({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Uf=i.forwardRef(Wf),Hf=({onSelect:e,value:r,showLabel:n,classNameChild:a="py-3 pl-4 pr-12",classNameParent:o="mt-2",placement:s="right",label:l="This website will be in",tooltipText:c=""})=>{const{siteLanguageList:u}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()})),[d,p]=(0,i.useState)(u.find((e=>"en"===e.code))),[m,f]=(0,i.useState)("");let h="bottom-end";h="left"===s?"bottom-start":"bottom-end";const[v,w]=Ka({placement:h,modifiers:[{name:"offset",options:{offset:[0,0]}}]}),x=e=>{f(e.target.value)},_=u.filter((e=>e.name.toLowerCase().includes(m.toLowerCase())));return(0,i.useEffect)((()=>{r&&r.code!==d.code&&p("string"==typeof r?u.find((e=>e.code===r)):r)}),[r]),React.createElement(Vf,{value:d,onChange:t=>{p(t),"function"==typeof e&&e(t)}},(({open:e})=>React.createElement(React.Fragment,null,n&&React.createElement(Vf.Label,{className:"text-base font-semibold flex leading-6 text-zip-app-heading"},c&&React.createElement("div",{className:"mr-1 pt-0.5"},React.createElement(b.A,{content:c},React.createElement(Uf,{className:"w-4 h-4"}))),l),React.createElement("div",{className:(0,y.xW)("relative",o)},React.createElement(Vf.Button,{ref:v,className:(0,y.xW)("min-h-[48px] relative w-full cursor-default rounded-md bg-white text-zip-app-heading shadow-sm border border-solid border-border-primary focus:border-accent-st active:border-accent-st ring-1 ring-inset ring-transparent focus:outline-none active:outline-none focus:ring-accent-st","text-base font-normal text-left leading-6")},React.createElement("div",{className:(0,y.xW)("inline-flex items-center gap-2 w-full max-w-container relative",a)},React.createElement("span",{className:"min-w-fit uppercase text-center text-sm text-zip-app-heading font-semibold leading-5"},d.code),React.createElement("span",{className:"!shrink-0 w-px h-[14px] bg-border-tertiary"}),React.createElement("span",{className:"w-full text-base font-normal leading-6 block truncate"},d.name," ","en"===d.code&&"(Default)")),React.createElement("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-4"},React.createElement(Cc,{className:"h-5 w-5 text-zip-app-heading","aria-hidden":"true"}))),React.createElement($a,{show:e,as:i.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},React.createElement(Vf.Options,{ref:w,className:(0,y.xW)("w-full absolute z-10 !mt-1 !mb-1 rounded-md bg-white p-4 space-y-3 text-base font-normal leading-6 shadow-xl border-0 ring-0 focus:outline-none")},React.createElement("div",{className:"group relative flex flex-1 rounded-md bg-white focus-within:ring-1 focus-within:outline-none focus-within:ring-accent-st border border-solid border-border-tertiary shadow-sm focus-within:border-accent-st transition duration-150 ease-in-out"},React.createElement("label",{htmlFor:"search-field",className:"sr-only"},"Search"),React.createElement(ko,{className:"pointer-events-none absolute inset-y-0 left-2.5 h-full w-5 text-app-inactive-icon group-focus-within:text-app-active-icon transition duration-150 ease-in-out","aria-hidden":"true"}),React.createElement("input",{ref:e=>{e&&e.focus()},className:"appearance-none text-base h-[2.625rem] block w-full !border-0 py-0 !pl-10 pr-5 text-zip-app-heading placeholder:!text-zip-app-inactive-icon focus:ring-0 sm:text-sm bg-transparent focus:outline-none focus:!shadow-none focus:!border-0 focus-within:!border-0",placeholder:"Search Language",type:"search",value:m,onChange:x,name:"search"})),React.createElement("div",{className:(0,y.xW)("max-h-60 w-full overflow-x-hidden overflow-y-auto space-y-1","[&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-md [&::-webkit-scrollbar-thumb]:bg-dark-app-background/20 [&::-webkit-scrollbar-thumb:hover]:bg-dark-app-background/30 [&::-webkit-scrollbar-track]:bg-white [&::-webkit-scrollbar-track]:my-1 [&::-webkit-scrollbar-track]:rounded-md scroll-p-0")},_.length>0&&_.map((e=>React.createElement(Vf.Option,{key:e.code,as:i.Fragment,value:e},(({active:t})=>React.createElement("div",{className:(0,y.xW)("w-full max-w-container relative flex items-center justify-between cursor-default select-none py-2 pl-3 pr-2 rounded",(d.code===e.code||t)&&"bg-alert-info-bg")},React.createElement("div",{className:"w-full flex items-center gap-2"},React.createElement("span",{className:"min-w-fit uppercase text-center text-sm text-zip-app-heading font-semibold leading-5"},e.code),React.createElement("span",{className:"w-px h-[14px] bg-border-tertiary !shrink-0"}),React.createElement("span",{className:(0,y.xW)("w-full truncate font-normal text-base leading-6",d.code===e.code?"text-zip-app-heading":"text-app-text")},e.name)),d.code===e.code&&React.createElement("span",{className:(0,y.xW)("absolute inset-y-0 right-0 flex items-center pr-4")},React.createElement(ei.It,{className:"h-6 w-6","aria-hidden":"true"}))))))),0===_.length&&React.createElement("div",{className:"relative cursor-default select-none py-2 px-4 text-base font-normal text-app-text"},"Nothing found"))))))))},$f=()=>{const{setWebsiteLanguageAIStep:e}=(0,r.A)(g.U),{siteLanguage:n,siteLanguageList:a}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()}));return c().createElement("div",{className:"flex flex-col items-start gap-x-2"},c().createElement("h5",{className:"text-zip-app-heading !text-sm flex !font-medium leading-6 items-center !mb-2"},"The website will be in:",c().createElement("div",{className:"ml-1 pt-1"})),a&&0!==a.length?c().createElement(Hf,{onSelect:t=>{e(t.code)},value:a.find((e=>e.code===n)),showLabel:!1,classNameParent:"w-full",classNameChild:"py-2 pl-3 pr-8"}):c().createElement("div",{className:"h-12 w-full inline-flex justify-start items-center gap-2 border border-solid border-border-tertiary py-2 pl-3 pr-8 rounded-md shadow-sm"},c().createElement("div",{className:"w-8 h-full bg-gray-300 animate-pulse"}),c().createElement("span",{className:"!shrink-0 w-px h-[14px] bg-border-tertiary"}),c().createElement("div",{className:"w-full h-full bg-gray-300 animate-pulse"})))},{useState:Zf,useEffect:Gf,useCallback:qf,useMemo:Yf}=wp.element,Kf=(e,t,r=null)=>{const[n,a]=Zf(e),i=qf((e=>{r&&"function"==typeof r&&r(e),a(e)}),[r]);return Gf((()=>{const r=setTimeout((()=>{i(e)}),t);return()=>{clearTimeout(r)}}),[e,t,i]),Yf((()=>n),[n])};function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xf.apply(null,arguments)}const Jf={closed:{opacity:0},open:{opacity:1,transition:{delayChildren:.05,staggerChildren:.05}}},Qf={open:{y:0,opacity:1},closed:{y:20,opacity:0}},eg=()=>{const{setWebsiteTypeAIStep:e,setBusinessTypeListAIStep:n}=(0,r.A)(g.U),{businessType:a,businessTypeList:o}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()})),[s,l]=Ka({placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"flip",enabled:!1},{name:"preventOverflow",options:{boundariesElement:"viewport"}}]}),[c,u]=(0,i.useState)(!1),[d,p]=(0,i.useState)(!1),m=(0,i.useRef)(null),h=(0,i.useRef)(null),{register:b,setValue:v,reset:w,setFocus:x,watch:_}=Ql({defaultValues:{keyword:a??""}}),E=_("keyword"),k=Kf(E,300),S=e=>{E||""===a||v("keyword",a),E&&a&&E!==a&&v("keyword",E),u(!1),e&&e?.blur()},C=(0,i.useCallback)((()=>{(async(e="")=>{m.current&&(m.current.abort(),m.current=null),p(!0),m.current=new AbortController;try{const t=await(0,y.nr)({path:"zipwp/v1/search-category",method:"POST",data:{keyword:e},headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce},signal:m.current.signal});if(!t.success)throw new Error(t?.data?.data);n(t?.data?.data),p(!1)}catch(e){if("AbortError"===e.name)return;(0,ti.v)(e),p(!1)}})(c?k:"")}),[k]);(0,i.useEffect)((()=>{C()}),[C]);const R=e=>{const t=document.getElementById("business-types-suggestions");t&&!t.contains(e.target)&&S()};(0,i.useEffect)((()=>(document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R))),[R]);const A=()=>{try{const e=o&&Array.isArray(o)?o:[];if(!E)return e;const t=e?.find((({document:e})=>e.name?.toLowerCase()?.trim()===E?.toLowerCase()?.trim()));return t?e:[{document:{name:E},highlight:{name:{matched_tokens:[E.trim()]}}},...e]}catch(e){return[]}};return React.createElement("div",{id:"business-types-suggestions",ref:s,className:(0,y.xW)("relative pr-3 pl-4 py-3 bg-white rounded-md border border-solid border-border-primary w-full",{"pb-0 rounded-b-none border-b-0 shadow-md":c}),onKeyDown:e=>{const t=document.getElementById("business-types-suggestions");if(!t)return;const r=Array.from(t.querySelectorAll('button, input, [tabindex]:not([tabindex="-1"])'));let n=r.indexOf(document.activeElement);switch(e.key){case"Escape":S(e?.target);break;case"ArrowUp":n--,n<0&&(n=r.length-1),r[n].focus(),e.preventDefault();break;case"ArrowDown":n++,n>=r.length&&(n=0),r[n].focus(),e.preventDefault()}},role:"presentation"},React.createElement("div",{className:"flex items-center justify-start w-full gap-2"},d&&c?React.createElement(Vi.A,{className:"text-accent-st w-4 h-4"}):E?React.createElement("button",{className:"inline-flex !p-0 !m-0 border-0 !bg-transparent focus:outline-none cursor-pointer",onClick:()=>{h.current&&(h.current.scrollTop=0),w({keyword:""}),e(""),c&&setTimeout((()=>{x("keyword")}),10)}},React.createElement(f,{className:"w-4 h-4 !text-zip-app-inactive-icon peer-focus:text-nav-inactive stroke-2 !shrink-0"})):React.createElement(ko,{className:"w-4 h-4 text-zip-app-inactive-icon peer-focus:text-nav-inactive !shrink-0"}),React.createElement("input",Xf({className:"!h-auto !px-0 !mx-0 !border-0 !rounded-none !min-h-0 !shadow-none focus:ring-0 focus:!outline-none focus:!shadow-none w-full text-sm placeholder:text-sm placeholder:!text-zip-app-inactive-icon",type:"text",placeholder:"Type to search",onFocus:()=>u(!0),autoComplete:"off"},b("keyword")))),React.createElement("div",{ref:l,className:(0,y.xW)("w-[calc(100%_+_2px)] px-3 pb-3 z-10 bg-white shadow-md border-x border-b border-t-0 border-solid border-border-primary rounded-b-md",{invisible:!c})},c&&React.createElement("hr",{className:"!mx-0 !my-3 border-t border-solid border-b-0 border-border-primary",tabIndex:-1}),React.createElement("div",{ref:h,className:"max-h-[150px] w-full overflow-y-auto overflow-x-hidden [&::-webkit-scrollbar-thumb:hover]:bg-black/[0.15] [&::-webkit-scrollbar-thumb]:w-2 [&::-webkit-scrollbar-thumb]:rounded-none [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:bg-black/10"},React.createElement(Cd.P.div,{className:"w-full flex flex-col gap-1 justify-start",initial:!1,animate:c?"open":"closed",variants:Jf},A()?.length>0&&A().map((({document:t,highlight:r})=>React.createElement(Cd.P.button,{key:t.name,className:(0,y.xW)("flex items-center justify-start w-full gap-2 py-2 px-3 bg-background-tertiary rounded border-0 !bg-transparent hover:!bg-zip-app-light-bg focus:!bg-zip-app-light-bg !text-zip-body-text hover:!text-zip-app-heading focus:outline-none focus:!shadow-none",{"!bg-zip-app-light-bg !text-zip-app-heading":t.name===a},"text-left"),onClick:()=>{v("keyword",t.name),e(t.name),u(!1)},variants:Qf},((e,t)=>{if(!t)return e;const{name:{matched_tokens:r}}=t,n=e.split(new RegExp(`(${r.join("|")})`,"gi"));return React.createElement("span",null,n.map(((e,t)=>r.includes(e)?React.createElement("span",{key:t,className:"font-semibold"},e):e)))})(t.name,r))))))))},tg=(0,e.A)((0,n.A)((e=>{const{setNextAIStep:t}=e(g.U);return{onClickContinue:t}})))((({onClickContinue:e})=>{const{setSiteLanguageListAIStep:n,setWebsiteNameAIStep:a}=(0,r.A)(g.U),{businessType:o,siteLanguageList:s,businessName:l}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()}));(0,i.useEffect)((()=>{s?.length||(async()=>{try{const e=await(0,y.nr)({path:"zipwp/v1/site-languages",method:"GET",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce}});if(!e.success)throw new Error(e?.data?.data);n(e?.data?.data)}catch(e){(0,ti.v)(e)}})()}),[s]);const{register:c,formState:{errors:d},setFocus:p,watch:m}=Ql({defaultValues:{businessName:l}}),f=m("businessName");return(0,i.useEffect)((()=>{p("businessName")}),[p]),React.createElement(af,null,React.createElement(df,{heading:"Let's build your website!",subHeading:"Please share some basic details of the website to get started."}),React.createElement("div",{className:"w-full max-w-container flex flex-col gap-8"},React.createElement("div",{className:"!space-y-2"},React.createElement("h5",{className:"text-zip-app-heading !text-sm flex !font-medium leading-6 items-center !mb-2"},(0,u.__)("Name of the website:","astra-sites")),React.createElement(Qo,{className:"w-full",name:"businessName",placeholder:(0,u.__)("Enter name or title of the website","astra-sites"),register:c,maxLength:100,validations:{required:"Name is required",maxLength:100},error:d.businessName,height:"12"})),React.createElement("div",{className:"w-full flex items-start justify-start flex-wrap max-[1024px]:flex-col lg:flex-nowrap gap-8"},React.createElement("div",{className:"min-h-[48px] lg:w-full lg:flex-1 w-full !space-y-2"},React.createElement("h5",{className:"text-zip-app-heading !text-sm flex !font-medium leading-6 items-center"},(0,u.__)("This website is for:","astra-sites")),React.createElement(eg,null)),React.createElement("div",{className:"min-h-[48px] lg:w-full lg:flex-1 w-full !space-y-2"},React.createElement($f,null)))),React.createElement(Qa,null),React.createElement(Od,{onClickContinue:()=>{o&&""!==o&&(a(f),e())},disableContinue:!o||!f}))})),rg=()=>{const{token:e}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return t()})),{handleSubmit:r,setFocus:n}=Ql({defaultValues:{token:e}});(0,i.useEffect)((()=>{n("apiKey")}),[n]);const a=[{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_2919_32447)"},React.createElement("path",{d:"M13.2617 1.47461C13.2617 0.787597 12.6875 0.203125 12.0005 0.203125C11.3135 0.203125 10.729 0.787597 10.729 1.47461V4.60205C10.729 5.28906 11.3135 5.86328 12.0005 5.86328C12.6875 5.86328 13.2617 5.28906 13.2617 4.60205V1.47461ZM16.4199 5.86328C15.9482 6.34521 15.9482 7.16553 16.4405 7.65771C16.9121 8.1294 17.7426 8.1294 18.2246 7.63721L20.3676 5.49414C20.8496 5.02247 20.8394 4.1919 20.3472 3.69971C19.8755 3.21777 19.0449 3.23828 18.563 3.72021L16.4199 5.86328ZM5.76611 7.63721C6.24805 8.1294 7.07861 8.1294 7.55029 7.65771C8.04248 7.16553 8.04248 6.34521 7.57081 5.86328L5.43799 3.72021C4.95605 3.23828 4.12549 3.21777 3.65381 3.69971C3.16162 4.18164 3.16162 5.01221 3.63331 5.48388L5.76611 7.63721ZM19.9575 22.3925C20.5727 23.018 21.6186 23.0078 22.2236 22.3925C22.8287 21.767 22.8287 20.752 22.2236 20.1265L12.4927 10.3237C11.8774 9.7085 10.8315 9.7085 10.2266 10.3237C9.61133 10.9492 9.62158 11.9644 10.2266 12.5796L19.9575 22.3925ZM1.39795 10.7954C0.710938 10.7954 0.136719 11.3696 0.136719 12.0566C0.136719 12.7437 0.710938 13.3179 1.39795 13.3179H4.52539C5.2124 13.3179 5.79688 12.7437 5.79688 12.0566C5.79688 11.3696 5.2124 10.7954 4.52539 10.7954H1.39795ZM22.5927 13.3179C23.2797 13.3179 23.8643 12.7437 23.8643 12.0566C23.8643 11.3696 23.2797 10.7954 22.5927 10.7954H19.4756C18.7886 10.7954 18.204 11.3696 18.204 12.0566C18.204 12.7437 18.7886 13.3179 19.4756 13.3179H22.5927ZM14.4409 15.2045L11.2417 11.9951C10.9853 11.749 10.8931 11.4312 11.1494 11.1851C11.375 10.9595 11.7031 11.0415 11.9595 11.2979L15.1382 14.4868L14.4409 15.2045ZM3.63331 18.5986C3.15137 19.0805 3.14111 19.9111 3.61279 20.3828C4.09472 20.875 4.92529 20.8853 5.40722 20.4136L7.55029 18.2705C8.03222 17.7886 8.04248 16.9682 7.57081 16.4863C7.08887 16.0043 6.25831 15.9941 5.77637 16.4659L3.63331 18.5986ZM13.2617 19.5215C13.2617 18.8345 12.6875 18.25 12.0005 18.25C11.3135 18.25 10.729 18.8345 10.729 19.5215V22.6387C10.729 23.3257 11.3135 23.9102 12.0005 23.9102C12.6875 23.9102 13.2617 23.3257 13.2617 22.6387V19.5215Z",fill:"#2563EB"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_2919_32447"},React.createElement("rect",{width:"24",height:"24",fill:"white"})))),title:"Craft Compelling Content",description:"With our AI, you can effortlessly create persuasive and engaging copy that resonates with your audience."},{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M19.4666 2.3999C20.6448 2.3999 21.5999 3.34194 21.5999 4.50401L21.5999 8.09583C21.5999 9.2579 20.6448 10.1999 19.4666 10.1999H16.2666C15.0884 10.1999 14.1332 9.2579 14.1332 8.09583L14.1332 4.50401C14.1332 3.34194 15.0884 2.3999 16.2666 2.3999L19.4666 2.3999Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M4.53323 2.3999C3.35503 2.3999 2.3999 3.34194 2.3999 4.50401L2.39991 8.09583C2.39991 9.2579 3.35504 10.1999 4.53324 10.1999H7.73324C8.91145 10.1999 9.86658 9.2579 9.86658 8.09583L9.86657 4.50401C9.86657 3.34194 8.91144 2.3999 7.73323 2.3999L4.53323 2.3999Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M19.4666 13.7999C20.6448 13.7999 21.5999 14.742 21.5999 15.9041V19.4958C21.5999 20.6579 20.6448 21.5999 19.4666 21.5999H16.2666C15.0884 21.5999 14.1332 20.6579 14.1332 19.4958L14.1332 15.9041C14.1332 14.742 15.0884 13.7999 16.2666 13.7999H19.4666Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M4.53324 13.7999C3.35504 13.7999 2.39991 14.742 2.39991 15.9041L2.39991 19.4958C2.39991 20.6579 3.35504 21.5999 4.53325 21.5999H7.73325C8.91145 21.5999 9.86658 20.6579 9.86658 19.4958L9.86657 15.9041C9.86657 14.742 8.91145 13.7999 7.73324 13.7999H4.53324Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),title:"AI-Powered Block Patterns",description:"Our AI can personalize and customize the block patterns and section templates to tailor them to your website's unique needs."},{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_2919_32460)"},React.createElement("path",{d:"M24 12C24 5.376 18.624 0 12 0C5.376 0 0 5.376 0 12C0 18.624 5.376 24 12 24C18.624 24 24 18.624 24 12ZM12 1.212C17.964 1.212 22.788 6.036 22.788 12C22.788 17.964 17.964 22.788 12 22.788C6.036 22.788 1.212 17.964 1.212 12C1.212 6.036 6.036 1.212 12 1.212ZM9.612 17.784L5.952 7.932C6.54 7.896 7.212 7.836 7.212 7.836C7.728 7.776 7.668 6.624 7.14 6.648C7.14 6.648 5.592 6.768 4.584 6.768C4.404 6.768 4.188 6.768 3.96 6.756C5.688 4.152 8.64 2.436 12 2.436C14.508 2.436 16.788 3.384 18.492 4.944C17.772 4.848 16.752 5.364 16.752 6.648C16.752 7.44 17.208 8.112 17.7 8.904C18.072 9.552 18.3 10.368 18.3 11.556C18.3 13.164 16.776 16.932 16.776 16.932L13.524 7.932C14.1 7.896 14.424 7.74 14.424 7.74C14.94 7.68 14.88 6.42 14.364 6.444C14.364 6.444 12.804 6.576 11.796 6.576C10.86 6.576 9.264 6.444 9.264 6.444C8.748 6.42 8.688 7.716 9.204 7.74L10.212 7.836L11.556 11.484L9.612 17.784ZM16.836 20.364L19.968 12C19.968 12 20.772 9.972 20.436 7.428C21.192 8.796 21.564 10.332 21.564 12C21.564 15.552 19.692 18.696 16.836 20.364ZM3.216 8.124L7.8 20.7C4.596 19.14 2.436 15.804 2.436 12C2.436 10.608 2.676 9.324 3.216 8.124ZM12.156 13.56L14.904 21.06C14.004 21.384 13.02 21.564 12 21.564C11.136 21.564 10.308 21.432 9.528 21.204L12.156 13.56Z",fill:"#2563EB"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_2919_32460"},React.createElement("rect",{width:"24",height:"24",fill:"white"})))),title:"WordPress Wizardry",description:"Got questions? Our AI has the answers. Whether it's troubleshooting or customizing your site, we got your back."},{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M2 3.97434C2 2.88394 2.89543 2 4 2H20C21.1046 2 22 2.88394 22 3.97434V20.0257C22 21.1161 21.1046 22 20 22H4C2.89543 22 2 21.1161 2 20.0257V3.97434Z",stroke:"#2563EB",strokeWidth:"1.7"}),React.createElement("path",{d:"M4.35748 5.44157C4.35748 4.89637 4.8052 4.4544 5.35748 4.4544H18.6426C19.1949 4.4544 19.6426 4.89637 19.6426 5.44157V7.94377C19.6426 8.48897 19.1949 8.93094 18.6426 8.93094H5.35748C4.8052 8.93094 4.35748 8.48897 4.35748 7.94377V5.44157Z",stroke:"#2563EB",strokeWidth:"1.7"}),React.createElement("path",{d:"M8.29303 11.1402C8.84531 11.1402 9.29303 11.5822 9.29303 12.1274L9.29303 18.7411C9.29303 19.2863 8.84531 19.7283 8.29303 19.7283H5.35742C4.80514 19.7283 4.35742 19.2863 4.35742 18.7411L4.35742 12.1274C4.35742 11.5822 4.80514 11.1402 5.35742 11.1402H8.29303Z",stroke:"#2563EB",strokeWidth:"1.7"}),React.createElement("path",{d:"M18.6426 11.1402C19.1949 11.1402 19.6426 11.5822 19.6426 12.1274V18.7411C19.6426 19.2863 19.1949 19.7283 18.6426 19.7283H12.3755C11.8233 19.7283 11.3755 19.2863 11.3755 18.7411V12.1274C11.3755 11.5822 11.8233 11.1402 12.3755 11.1402H18.6426Z",stroke:"#2563EB",strokeWidth:"1.7"})),title:"Personalized Templates",description:"Say goodbye to generic designs and say hello to our AI-personalized page templates, tailored just for you."},{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M9.5999 14.9999L6.5999 11.9999L9.5999 8.9999M14.3999 8.9999L17.3999 11.9999L14.3999 14.9999M4.7999 21.5999C3.47442 21.5999 2.3999 20.5254 2.3999 19.1999V4.7999C2.3999 3.47442 3.47442 2.3999 4.7999 2.3999H19.1999C20.5254 2.3999 21.5999 3.47442 21.5999 4.7999V19.1999C21.5999 20.5254 20.5254 21.5999 19.1999 21.5999H4.7999Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),title:"Generate Custom Code",description:"No more struggling with complex coding issues. Our AI can generate custom code, functions, and CSS tailored to your needs."},{icon:React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M2.9999 7.7999H20.9999M17.9999 11.9999H5.9999M13.1999 16.7999H5.9999M5.9999 21.5999H17.9999C19.9881 21.5999 21.5999 19.9881 21.5999 17.9999V5.9999C21.5999 4.01168 19.9881 2.3999 17.9999 2.3999H5.9999C4.01168 2.3999 2.3999 4.01168 2.3999 5.9999V17.9999C2.3999 19.9881 4.01168 21.5999 5.9999 21.5999Z",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),title:"Custom Pages with AI",description:"With our AI by your side, you can create beautiful, 100% custom web pages without the need for any design or coding skills."}],o=(0,i.useMemo)((()=>{const e=[];let t=[];for(let r=0;r<a.length;r++)t.push(a[r]),2===t.length&&(e.push(t),t=[]);return t.length>0&&e.push(t),e.map(((t,r)=>React.createElement(React.Fragment,null,React.createElement("div",{className:"flex justify-between items-center gap-12"},t.map((e=>(({icon:e,title:t,description:r})=>React.createElement("div",{className:"flex w-[48%]"},React.createElement("div",{className:"mr-3"},e),React.createElement("div",{className:"space-y-2"},React.createElement("p",{className:"m-0 text-base font-semibold text-heading-text"},t),React.createElement("p",{className:"m-0 text-sm font-normal text-body-text"},r))))(e)))),r<e.length-1&&React.createElement(Qa,{className:"w-full"}))))}),[]);return React.createElement("form",{className:"max-w-container mx-auto flex flex-col gap-10 pb-5 pt-12 md:pb-10 md:pt-14 xl:pt-16 xl:pb-20",onSubmit:r((()=>{window.location.href=(0,Wo.i9)()}))},React.createElement("div",{className:"flex items-center justify-center gap-3"},"active"===ast_block_template_vars.astra_sites_status||"active"===ast_block_template_vars.astra_sites_pro_status?React.createElement(ei.fp,{className:"w-10 h-10"}):React.createElement(ei.y0,{className:"w-10 h-10"}),React.createElement(Ld.A,{className:"w-4 h-4 text-icon-secondary",strokeWidth:"2"}),React.createElement(ei.g9,{className:"w-10 h-10"})),React.createElement("div",{className:"flex flex-col items-center justify-center gap-6"},React.createElement(df,{className:"text-center",heading:React.createElement(React.Fragment,null,"Build 10x Faster with ",React.createElement("br",null),"Starter Templates & ZipWP")}),React.createElement(ii.A,{type:"button",variant:"ai-primary",onClick:()=>{window.location.href=(0,Wo.i9)()},hasSuffixIcon:!0},React.createElement("span",null,"Get Started with Free 1000 Credits"),React.createElement(Ms,{className:"w-5 h-5"})),React.createElement("p",{className:"m-0 text-base font-normal"},"Already have one?"," ",React.createElement(ii.A,{type:"submit",variant:"blank",className:"font-normal underline text-accent-st p-0 inline-flex"},"Connect an Account"))),React.createElement("div",{className:"border border-solid border-border-primary rounded-lg gap-8 flex flex-wrap py-11 px-10 shadow-medium bg-white"},o))};var ng=function(){return ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ng.apply(this,arguments)},ag=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},ig=Symbol("NiceModalId"),og={},sg=c().createContext(og),lg=c().createContext(null),cg={},ug={},dg=0,pg=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},mg=function(){return"_nice_modal_"+dg++},fg=function(e,t){var r,n,a;switch(void 0===e&&(e=og),t.type){case"nice-modal/show":var i=t.payload,o=i.modalId,s=i.args;return ng(ng({},e),((r={})[o]=ng(ng({},e[o]),{id:o,args:s,visible:!!ug[o],delayVisible:!ug[o]}),r));case"nice-modal/hide":return e[o=t.payload.modalId]?ng(ng({},e),((n={})[o]=ng(ng({},e[o]),{visible:!1}),n)):e;case"nice-modal/remove":o=t.payload.modalId;var l=ng({},e);return delete l[o],l;case"nice-modal/set-flags":var c=t.payload,u=(o=c.modalId,c.flags);return ng(ng({},e),((a={})[o]=ng(ng({},e[o]),u),a));default:return e}},gg={},hg={},yg=function(e){return"string"==typeof e?e:(e[ig]||(e[ig]=mg()),e[ig])};function bg(e,t){var r=yg(e);if("string"==typeof e||cg[r]||_g(r,e),pg(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(r,t)),!gg[r]){var n,a,i=new Promise((function(e,t){n=e,a=t}));gg[r]={resolve:n,reject:a,promise:i}}return gg[r].promise}function vg(e){var t=yg(e);if(pg(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete gg[t],!hg[t]){var r,n,a=new Promise((function(e,t){r=e,n=t}));hg[t]={resolve:r,reject:n,promise:a}}return hg[t].promise}var wg=function(e){var t=yg(e);pg(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete gg[t],delete hg[t]};function xg(e,t){var r,n=(0,i.useContext)(sg),a=(0,i.useContext)(lg),o=e&&"string"!=typeof e;if(!(r=e?yg(e):a))throw new Error("No modal id found in NiceModal.useModal.");var s=r;(0,i.useEffect)((function(){o&&!cg[s]&&_g(s,e,t)}),[o,s,e,t]);var l=n[s],c=(0,i.useCallback)((function(e){return bg(s,e)}),[s]),u=(0,i.useCallback)((function(){return vg(s)}),[s]),d=(0,i.useCallback)((function(){return wg(s)}),[s]),p=(0,i.useCallback)((function(e){var t;null===(t=gg[s])||void 0===t||t.resolve(e),delete gg[s]}),[s]),m=(0,i.useCallback)((function(e){var t;null===(t=gg[s])||void 0===t||t.reject(e),delete gg[s]}),[s]),f=(0,i.useCallback)((function(e){var t;null===(t=hg[s])||void 0===t||t.resolve(e),delete hg[s]}),[s]);return(0,i.useMemo)((function(){return{id:s,args:null==l?void 0:l.args,visible:!!(null==l?void 0:l.visible),keepMounted:!!(null==l?void 0:l.keepMounted),show:c,hide:u,remove:d,resolve:p,reject:m,resolveHide:f}}),[s,null==l?void 0:l.args,null==l?void 0:l.visible,null==l?void 0:l.keepMounted,c,u,d,p,m,f])}var _g=function(e,t,r){cg[e]?cg[e].props=r:cg[e]={comp:t,props:r}},Eg=function(){var e=(0,i.useContext)(sg),t=Object.keys(e).filter((function(t){return!!e[t]}));t.forEach((function(e){cg[e]||ug[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")}));var r=t.filter((function(e){return cg[e]})).map((function(e){return ng({id:e},cg[e])}));return c().createElement(c().Fragment,null,r.map((function(e){return c().createElement(e.comp,ng({key:e.id,id:e.id},e.props))})))},kg=function(e){var t=e.children,r=(0,i.useReducer)(fg,og),n=r[0];return pg=r[1],c().createElement(sg.Provider,{value:n},t,c().createElement(Eg,null))},Sg={Provider:function(e){var t=e.children,r=e.dispatch,n=e.modals;return r&&n?(pg=r,c().createElement(sg.Provider,{value:n},t,c().createElement(Eg,null))):c().createElement(kg,null,t)},ModalDef:function(e){var t=e.id,r=e.component;return(0,i.useEffect)((function(){return _g(t,r),function(){!function(e){delete cg[e]}(t)}}),[t,r]),null},ModalHolder:function(e){var t,r=e.modal,n=e.handler,a=void 0===n?{}:n,o=ag(e,["modal","handler"]),s=(0,i.useMemo)((function(){return mg()}),[]),l="string"==typeof r?null===(t=cg[r])||void 0===t?void 0:t.comp:r;if(!a)throw new Error("No handler found in NiceModal.ModalHolder.");if(!l)throw new Error("No modal found for id: "+r+" in NiceModal.ModalHolder.");return a.show=(0,i.useCallback)((function(e){return bg(s,e)}),[s]),a.hide=(0,i.useCallback)((function(){return vg(s)}),[s]),c().createElement(l,ng({id:s},o))},NiceModalContext:sg,create:function(e){return function(t){var r,n=t.defaultVisible,a=t.keepMounted,o=t.id,s=ag(t,["defaultVisible","keepMounted","id"]),l=xg(o),u=l.args,d=l.show,p=(0,i.useContext)(sg),m=!!p[o];(0,i.useEffect)((function(){return n&&d(),ug[o]=!0,function(){delete ug[o]}}),[o,d,n]),(0,i.useEffect)((function(){a&&pg({type:"nice-modal/set-flags",payload:{modalId:o,flags:{keepMounted:!0}}})}),[o,a]);var f=null===(r=p[o])||void 0===r?void 0:r.delayVisible;return(0,i.useEffect)((function(){f&&d(u)}),[f,u,d]),m?c().createElement(lg.Provider,{value:o},c().createElement(e,ng({},s,u))):null}},register:_g,getModal:function(e){var t;return null===(t=cg[e])||void 0===t?void 0:t.comp},show:bg,hide:vg,remove:wg,useModal:xg,reducer:fg,antdModal:function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},antdDrawer:function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}};const Cg=Sg,Rg=({className:e})=>React.createElement("div",{className:(0,y.xW)("w-full h-10 bg-gray-300 rounded animate-pulse",e)}),Ag="IMPROVE_USING_AI_MODAL",Pg=((e,t)=>{const r=Cg.create((({handleFetchSuggestion:e})=>{const t=xg(Ag),[r,n]=(0,i.useState)(null),[a,o]=(0,i.useState)(!1),s=(0,i.useCallback)((()=>a?React.createElement(Vi.A,null):r?(0,u.__)("Use this","ai-builder"):(0,u.__)("Improve Using AI","ai-builder")),[a,r]),l=()=>{t.resolve(""),t.hide(),t.remove()};return React.createElement(ji,{open:t.visible,setOpen:l,onFullyClose:t.remove,width:480,className:"!p-6 !w-[30rem]"},React.createElement(Di,null,React.createElement("span",{className:"flex items-center space-x-1 gap-2"},React.createElement(ei.Rk,{className:"w-6 h-6 "}),React.createElement("div",{className:"font-semibold text-lg text-black"},(0,u.__)("Add More Business Details","ai-builder")))),React.createElement("div",{className:"text-app-text !mt-5 text-base !opacity-80"},(0,u.__)("The business details provided are not enough to create the website content. Please describe your business with more details, or use AI to write it for you.","ai-builder")),r&&React.createElement("div",{className:"w-full mb-2"},React.createElement("p",{className:"text-base leading-6 font-semibold p-2 mb-0"},(0,u.__)("A good business description is:","ai-builder")),React.createElement("div",{className:"bg-[#F6FAFE] p-4 rounded-lg shadow-sm"},React.createElement("p",{className:"text-sm leading-5 my-0"},r))),a&&React.createElement("div",{className:"w-full mb-2"},React.createElement(Rg,{className:"h-20"})),React.createElement("div",{className:"flex flex-col pt-2 !mt-5 gap-y-5"},React.createElement("div",{className:"flex gap-4 items-center space-x-3"},React.createElement(ii.A,{className:"w-full h-10 !text-sm bg-accent-st hover:bg-accent-st/90 border border-accent-st disabled:bg-accent-st/90",variant:"primary",disabled:a,onClick:async()=>{if(!a&&r)return t.resolve(r),t.hide(),void n(null);o(!0);const i=await e();n(i),o(!1)}},s()),React.createElement(ii.A,{className:"w-full h-10 !text-sm border-gray-200 text-black",variant:"white",onClick:l},r?(0,u.__)("Close","ai-builder"):(0,u.__)("I'll Write by Myself","ai-builder")))))}));return Cg.register(t,r),{...r,show:e=>Cg.show(t,e)}})(0,Ag),Tg=(0,e.A)((0,n.A)((e=>{const{setNextAIStep:t,setPreviousAIStep:r}=e("astra-sites");return{onClickContinue:t,onClickPrevious:r}})))((({onClickContinue:e,onClickPrevious:n})=>{const{businessDetails:a,businessType:o,businessName:s,businessDetailsHistory:l,descriptionListStore:c,loadingNextStep:d,siteLanguage:p,siteLanguageList:m}=(0,t.A)((e=>{const{getAIStepData:t,getLoadingNextStep:r}=e(g.U);return{...t(),loadingNextStep:r()}})),f=(0,t.A)((e=>{const{getOnboardingAI:t}=e(g.U);return t()})),{setWebsiteDetailsAIStep:h,setWebsiteKeywordsAIStep:b,resetKeywordsImagesAIStep:v,setWebsiteDetailsHistoryAIStep:w,setOnboardingAIDetails:x}=(0,r.A)(g.U),[_,E]=(0,i.useState)(!1),[k,S]=(0,i.useState)(!1),[C]=(0,i.useState)(l),R=(0,i.useRef)(a),A=(0,i.useRef)(null),{register:P,handleSubmit:T,formState:{errors:N},watch:I,setValue:O,setFocus:L}=Ql({defaultValues:{businessDetails:a}}),B=I("businessDetails"),j=async()=>{try{const e=(async({businessName:e,formBusinessDetails:t,businessType:r,siteLanguage:n})=>{try{const a=await(0,y.nr)({path:"gutenberg-templates/v1/description",method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce},data:{business_name:e,business_description:t,category:r,language:n}});if(a?.success)return a?.data?.data;console.error(a?.data?.data)}catch(e){Ps.oR.error((0,y.yI)(e))}})({businessName:s,businessType:o,formBusinessDetails:B,siteLanguage:p});return e}catch(e){console.log(e)}},D=(e,t)=>("name"===t&&(t=s),React.createElement("div",{className:"text-[1.75rem] font-semibold leading-9"},e[0],React.createElement(rf,{text:s}),e[1])),F={business:{question:D`What is ${"name"}? Please describe the business.`,description:"Please be as descriptive as you can. Share details such as services, products, goals, etc."},person:{question:D`Who is ${"name"}? Tell us more about the person.`,description:"Please be as descriptive as you can. Share details such as what they do, their expertise, offerings, etc."},"personal-website":{question:D`Who is ${"name"}? Tell us more about the person.`,description:"Please be as descriptive as you can. Share details such as what they do, their expertise, offerings, etc."},organisation:{question:D`What is ${"name"}? Please describe the organisation.`,description:"Please be as descriptive as you can. Share details such as services, programs, mission, vision, etc."},restaurant:{question:D`What is ${"name"}? Tell us more about the restaurant.`,description:"Please be as descriptive as you can. Share details such as a brief about the restaurant, specialty, menu, etc."},product:{question:D`What is ${"name"}? Share more details about the product.`,description:"Please be as descriptive as you can. Share details such as a brief about the product, features, some USPs, etc."},event:{question:D`Tell us more about ${"name"}.`,description:"Please be as descriptive as you can. Share details such as Event information date, venue, some highlights, etc."},"landing-page":{question:D`Share more details about ${"name"}.`,description:"Please be as descriptive as you can. Share details such as a brief about the product, features, some USPs, etc."},medical:{question:D`Tell us more about the  ${"name"}.`,description:"Please be as descriptive as you can. Share details such as treatments, procedures, facilities, etc."},unknown:{question:D`Please describe ${"name"} in a few words.`}};(0,i.useEffect)((()=>{L("businessDetails")}),[L]),(0,i.useLayoutEffect)((()=>{W(B);const e=A.current;e&&(0,y.R7)(e)}),[B]);const{list:M,currentPage:z}=c||{},V=e=>{const t=e?z+1:z-1,r=z-1,n=[...M];M[r]!==B&&(n[r]=B),O("businessDetails",n[t-1]),x({...f,stepData:{...f.stepData,descriptionListStore:{...c,list:n,currentPage:t}}})},W=(e,t)=>{e?.trim()!==a?.trim()&&x({...f,stepData:{...f.stepData,businessDetails:B,...!t&&{keywords:[],selectedImages:[],imagesPreSelected:!1},templateList:[]}})};return React.createElement(af,{as:"form",action:"#",onSubmit:T((async t=>{let{businessDetails:r}=t;if(r.length<200){if(L("businessDetails"),r=await Pg.show({handleFetchSuggestion:j}),!r)return;O("businessDetails",r,{shouldValidate:!0})}else h(t.businessDetails),w(C),R.current!==t.businessDetails&&v(),await(async e=>{if(!k&&R.current!==e){S(!0);try{const t=await(0,y.nr)({path:"gutenberg-templates/v1/keywords",method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce},data:{business_name:s,business_description:e,category:o}});if(t.success){const e=JSON.parse(t.data?.data);b(Array.isArray(e)?e:Object.values(e))}if(!t.success)throw new Error(t?.data?.data)}catch(e){(0,ti.v)(e)}finally{S(!1)}}})(t.businessDetails),e()}))},React.createElement(df,{heading:F[o?.toLowerCase()]?.question??F.unknown.question,subHeading:(e=>F[e]?.description??(0,u.__)("The best way to describe anything is by answering a few WH questions. Who, What, Where, Why, When, etc.","astra-sites"))(o?.replaceAll(" ","-")?.toLowerCase())}),React.createElement("div",null,React.createElement("div",{className:(0,y.xW)("ml-0 w-full text-right text-sm font-medium leading-5 text-app-text mb-2 -mt-2")},(0,u.__)("Characters: ","ai-builder"),React.createElement("span",null,B.length)," / 1000"),React.createElement(Id,{ref:A,rows:8,className:"w-full",placeholder:"E.g. Mantra Minds is a yoga studio located in Chino Hills, California. The studio offers a variety of classes such as Hatha yoga, Vinyasa flow, and Restorative yoga. The studio is led by Jane, an experienced and certified yoga instructor with over 10 years of teaching expertise. The welcoming atmosphere and personalized Jane make it a favorite among yoga enthusiasts in the area.",name:"businessDetails",register:P,maxLength:1e3,validations:{required:"Details are required",maxLength:1e3},error:N.businessDetails,disabled:_||d}),React.createElement("div",{className:"flex gap-3 justify-between items-center mt-3"},React.createElement("button",{type:"button",onClick:async e=>{if(e?.preventDefault(),e?.stopPropagation(),_)return;E(!0);const t=[B];try{const e=m?.find((e=>e.code===(p||"en"))),r=await(0,y.nr)({path:"gutenberg-templates/v1/description",method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce},data:{business_name:s,business_description:B,category:o,language_name:e?.name}});if(r.success){const e=r.data?.data||[];void 0!==e&&(t.push(e),(e=>{if(!Array.isArray(e))return;const t=e.filter((e=>0!==e?.trim()?.length&&!M?.includes(e))),r=[...M,...t];x({...f,stepData:{...f.stepData,descriptionListStore:{list:r,currentPage:r.length},businessDetails:B,templateList:[]}})})(t),O("businessDetails",e,{shouldValidate:!0}))}r.success||(0,Ps.oR)((0,Ts.A)({title:(0,u.__)("Description Generation Error!","astra-sites"),message:(0,u.__)("Failed to generate business description using AI. Please retry or enter details manually.","astra-sites")}),Ts.A.getOptions({type:"error"}))}catch(e){}finally{E(!1)}},className:"flex items-center gap-2 w-fit text-accent-st bg-transparent border-0 cursor-pointer",disabled:d},_?React.createElement(Vi.A,{className:"text-accent-ai"}):React.createElement(React.Fragment,null,React.createElement(ei.AW,{className:"w-5 h-5 transition duration-150 ease-in-out"}),React.createElement("span",null,I("businessDetails")?.length?"Improve Using AI":"Write Using AI"))),z>0&&M?.length>1&&React.createElement("div",{className:"flex gap-2 items-center justify-end w-[100px] cursor-default text-zip-body-text"},React.createElement("div",{className:"w-5"},1!==z?React.createElement(Yi,{className:"w-5 cursor-pointer text-zip-body-text flex justify-center",onClick:()=>V(!1),"data-disabled":d}):React.createElement(Yi,{className:"w-5 text-border-tertiary flex justify-center cursor-not-allowed","data-disabled":"true"})),React.createElement("div",{className:"zw-sm-semibold cursor-default self-stretch flex items-end"},z," /"," ",M?.length),React.createElement("div",{className:"w-5"},z!==M?.length?React.createElement(Xi,{className:"w-5 cursor-pointer text-zip-body-text flex justify-center",onClick:()=>V(!0),"data-disabled":d}):React.createElement(Xi,{className:"w-5 text-border-tertiary flex justify-center","data-disabled":"true"}))))),React.createElement(Qa,null),React.createElement(Od,{onClickPrevious:n,loading:k}))}));function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ng.apply(null,arguments)}class Ig extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error",e,t)}retryStep=()=>{};handleClosePopUop=e=>{e?.preventDefault(),e?.stopPropagation(),this.props.toggleOnboardingAIStep()};render(){return this.state.hasError?React.createElement("div",{className:"h-screen w-full bg-st-background-secondary grid grid-cols-1 grid-rows-[80px_1fr]"},React.createElement("div",{className:"grid grid-cols-1 auto-rows-min gap-4 w-full max-w-[590px] my-32 mx-auto text-center px-5 lg:px-0"},React.createElement("div",{className:"space-y-3"},React.createElement(ei.Rk,{className:"text-center space-y-3 w-6 h-6 mx-auto "}),React.createElement("h5",null,(0,u.__)("Oops , Something went wrong!","ast-block-template")),React.createElement("p",{className:"text-zip-body-text",dangerouslySetInnerHTML:{__html:(0,u.nv)((0,u.__)('There was a problem processing the request. Please try again. If this error continues please contact our <a href="%1$s">support team</a>.',"astra-sites"),"https://wpastra.com/contact")}})),React.createElement("div",{className:"flex justify-center space-x-4"},React.createElement(ii.A,{type:"button",variant:"primary",className:"mt-4 w-fit mx-auto",isSmall:!0,onClick:this.handleClosePopUop},(0,u.__)("Back to Main Screen","ast-block-template"))))):this.props.children}}const Og=e=>{const{toggleOnboardingAIStep:t}=(0,r.A)(g.U);return React.createElement(Ig,Ng({},e,{toggleOnboardingAIStep:t}))};function Lg({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const Bg=i.forwardRef(Lg);function jg({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const Dg=i.forwardRef(jg);function Fg(){const e=(0,i.useRef)(!1);return(0,_d.E)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}var Mg=o(6719);class zg extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Vg({children:e,isPresent:t}){const r=(0,i.useId)(),n=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)((()=>{const{width:e,height:i,top:o,left:s}=a.current;if(t||!n.current||!e||!i)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${i}px !important;\n            top: ${o}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}}),[t]),i.createElement(zg,{isPresent:t,childRef:n,sizeRef:a},i.cloneElement(e,{ref:n}))}const Wg=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:a,presenceAffectsLayout:o,mode:s})=>{const l=(0,xd.M)(Ug),c=(0,i.useId)(),u=(0,i.useMemo)((()=>({id:c,initial:t,isPresent:r,custom:a,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;n&&n()},register:e=>(l.set(e,!1),()=>l.delete(e))})),o?void 0:[r]);return(0,i.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[r]),i.useEffect((()=>{!r&&!l.size&&n&&n()}),[r]),"popLayout"===s&&(e=i.createElement(Vg,{isPresent:r},e)),i.createElement(Mg.t.Provider,{value:u},e)};function Ug(){return new Map}var Hg=o(9473),$g=o(5238);const Zg=e=>e.key||"",Gg=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:o=!0,mode:s="sync"})=>{(0,$g.V)(!a,"Replace exitBeforeEnter with mode='wait'");const l=(0,i.useContext)(Hg.L).forceRender||function(){const e=Fg(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,i.useCallback)((()=>Sd.Gt.postRender(n)),[n]),t]}()[0],c=Fg(),u=function(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const p=(0,i.useRef)(new Map).current,m=(0,i.useRef)(d),f=(0,i.useRef)(new Map).current,g=(0,i.useRef)(!0);var h;if((0,_d.E)((()=>{g.current=!1,function(e,t){e.forEach((e=>{const r=Zg(e);t.set(r,e)}))}(u,f),m.current=d})),h=()=>{g.current=!0,f.clear(),p.clear()},(0,i.useEffect)((()=>()=>h()),[]),g.current)return i.createElement(i.Fragment,null,d.map((e=>i.createElement(Wg,{key:Zg(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:s},e))));d=[...d];const y=m.current.map(Zg),b=u.map(Zg),v=y.length;for(let e=0;e<v;e++){const t=y[e];-1!==b.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach(((e,r)=>{if(-1!==b.indexOf(r))return;const a=f.get(r);if(!a)return;const g=y.indexOf(r);let h=e;if(!h){const e=()=>{p.delete(r);const e=Array.from(f.keys()).filter((e=>!b.includes(e)));if(e.forEach((e=>f.delete(e))),m.current=u.filter((t=>{const n=Zg(t);return n===r||e.includes(n)})),!p.size){if(!1===c.current)return;l(),n&&n()}};h=i.createElement(Wg,{key:Zg(a),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:o,mode:s},a),p.set(r,h)}d.splice(g,0,h)})),d=d.map((e=>{const t=e.key;return p.has(t)?e:i.createElement(Wg,{key:Zg(e),isPresent:!0,presenceAffectsLayout:o,mode:s},e)})),i.createElement(i.Fragment,null,p.size?d:d.map((e=>(0,i.cloneElement)(e))))};var qg=o(5556),Yg=o.n(qg),Kg=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Xg(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=Kg.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var Jg=[".DS_Store","Thumbs.db"];function Qg(e){return"object"==typeof e&&null!==e}function eh(e){return ah(e.target.files).map((function(e){return Xg(e)}))}function th(e){return(0,Tc.sH)(this,void 0,void 0,(function(){return(0,Tc.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Xg(e)}))]}}))}))}function rh(e,t){return(0,Tc.sH)(this,void 0,void 0,(function(){var r;return(0,Tc.YH)(this,(function(n){switch(n.label){case 0:return e.items?(r=ah(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(ih))]):[3,2];case 1:return[2,nh(oh(n.sent()))];case 2:return[2,nh(ah(e.files).map((function(e){return Xg(e)})))]}}))}))}function nh(e){return e.filter((function(e){return-1===Jg.indexOf(e.name)}))}function ah(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function ih(e){if("function"!=typeof e.webkitGetAsEntry)return sh(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ch(t):sh(e)}function oh(e){return e.reduce((function(e,t){return(0,Tc.fX)((0,Tc.fX)([],(0,Tc.zs)(e),!1),(0,Tc.zs)(Array.isArray(t)?oh(t):[t]),!1)}),[])}function sh(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=Xg(t);return Promise.resolve(r)}function lh(e){return(0,Tc.sH)(this,void 0,void 0,(function(){return(0,Tc.YH)(this,(function(t){return[2,e.isDirectory?ch(e):uh(e)]}))}))}function ch(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function a(){var i=this;t.readEntries((function(t){return(0,Tc.sH)(i,void 0,void 0,(function(){var i,o,s;return(0,Tc.YH)(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return i=l.sent(),e(i),[3,4];case 3:return o=l.sent(),r(o),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(lh)),n.push(s),a(),l.label=6;case 6:return[2]}}))}))}),(function(e){r(e)}))}()}))}function uh(e){return(0,Tc.sH)(this,void 0,void 0,(function(){return(0,Tc.YH)(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=Xg(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}var dh=o(9455);function ph(e){return function(e){if(Array.isArray(e))return bh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(r),!0).forEach((function(t){gh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||yh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yh(e,t){if(e){if("string"==typeof e)return bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bh(e,t):void 0}}function bh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vh=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},wh=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},xh=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},_h={code:"too-many-files",message:"Too many files"};function Eh(e,t){var r="application/x-moz-file"===e.type||(0,dh.A)(e,t);return[r,r?null:vh(t)]}function kh(e,t,r){if(Sh(e.size))if(Sh(t)&&Sh(r)){if(e.size>r)return[!1,wh(r)];if(e.size<t)return[!1,xh(t)]}else{if(Sh(t)&&e.size<t)return[!1,xh(t)];if(Sh(r)&&e.size>r)return[!1,wh(r)]}return[!0,null]}function Sh(e){return null!=e}function Ch(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Rh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Ah(e){e.preventDefault()}function Ph(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return t.some((function(t){return!Ch(e)&&t&&t.apply(void 0,[e].concat(n)),Ch(e)}))}}function Th(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Nh(e){return/^.*\.[\w]+$/.test(e)}var Ih=["children"],Oh=["open"],Lh=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Bh=["refKey","onChange","onClick"];function jh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||Dh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dh(e,t){if(e){if("string"==typeof e)return Fh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fh(e,t):void 0}}function Fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(r),!0).forEach((function(t){Vh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Uh=(0,i.forwardRef)((function(e,t){var r=e.children,n=Zh(Wh(e,Ih)),a=n.open,o=Wh(n,Oh);return(0,i.useImperativeHandle)(t,(function(){return{open:a}}),[a]),c().createElement(i.Fragment,null,r(zh(zh({},o),{},{open:a})))}));Uh.displayName="Dropzone";var Hh={disabled:!1,getFilesFromEvent:function(e){return(0,Tc.sH)(this,void 0,void 0,(function(){return(0,Tc.YH)(this,(function(t){return Qg(e)&&Qg(e.dataTransfer)?[2,rh(e.dataTransfer,e.type)]:Qg(r=e)&&Qg(r.target)?[2,eh(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,th(e)]:[2,[]];var r}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Uh.defaultProps=Hh,Uh.propTypes={children:Yg().func,accept:Yg().objectOf(Yg().arrayOf(Yg().string)),multiple:Yg().bool,preventDropOnDocument:Yg().bool,noClick:Yg().bool,noKeyboard:Yg().bool,noDrag:Yg().bool,noDragEventsBubbling:Yg().bool,minSize:Yg().number,maxSize:Yg().number,maxFiles:Yg().number,disabled:Yg().bool,getFilesFromEvent:Yg().func,onFileDialogCancel:Yg().func,onFileDialogOpen:Yg().func,useFsAccessApi:Yg().bool,autoFocus:Yg().bool,onDragEnter:Yg().func,onDragLeave:Yg().func,onDragOver:Yg().func,onDrop:Yg().func,onDropAccepted:Yg().func,onDropRejected:Yg().func,onError:Yg().func,validator:Yg().func};var $h={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=zh(zh({},Hh),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,m=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,h=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,v=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,_=t.noKeyboard,E=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,C=t.validator,R=(0,i.useMemo)((function(){return function(e){if(Sh(e))return Object.entries(e).reduce((function(e,t){var r=hh(t,2),n=r[0],a=r[1];return[].concat(ph(e),[n],ph(a))}),[]).filter((function(e){return Th(e)||Nh(e)})).join(",")}(r)}),[r]),A=(0,i.useMemo)((function(){return function(e){return Sh(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=hh(e,2),r=t[0],n=t[1],a=!0;return Th(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),Array.isArray(n)&&n.every(Nh)||(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),a=!1),a})).reduce((function(e,t){var r=hh(t,2),n=r[0],a=r[1];return fh(fh({},e),{},gh({},n,a))}),{})}]:e}(r)}),[r]),P=(0,i.useMemo)((function(){return"function"==typeof y?y:qh}),[y]),T=(0,i.useMemo)((function(){return"function"==typeof h?h:qh}),[h]),N=(0,i.useRef)(null),I=(0,i.useRef)(null),O=jh((0,i.useReducer)(Gh,$h),2),L=O[0],B=O[1],j=L.isFocused,D=L.isFileDialogActive,F=(0,i.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),M=function(){!F.current&&D&&setTimeout((function(){I.current&&(I.current.files.length||(B({type:"closeDialog"}),T()))}),300)};(0,i.useEffect)((function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}}),[I,D,T,F]);var z=(0,i.useRef)([]),V=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),z.current=[])};(0,i.useEffect)((function(){return w&&(document.addEventListener("dragover",Ah,!1),document.addEventListener("drop",V,!1)),function(){w&&(document.removeEventListener("dragover",Ah),document.removeEventListener("drop",V))}}),[N,w]),(0,i.useEffect)((function(){return!n&&v&&N.current&&N.current.focus(),function(){}}),[N,v,n]);var W=(0,i.useCallback)((function(e){S?S(e):console.error(e)}),[S]),U=(0,i.useCallback)((function(e){var t;e.preventDefault(),e.persist(),re(e),z.current=[].concat(function(e){if(Array.isArray(e))return Fh(e)}(t=z.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Dh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),Rh(e)&&Promise.resolve(a(e)).then((function(t){if(!Ch(e)||k){var r=t.length,n=r>0&&function(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,i=e.multiple,o=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&o>=1&&t.length>o)&&t.every((function(e){var t=hh(Eh(e,r),1)[0],i=hh(kh(e,n,a),1)[0],o=s?s(e):null;return t&&i&&!o}))}({files:t,accept:R,minSize:s,maxSize:o,multiple:l,maxFiles:c,validator:C});B({isDragAccept:n,isDragReject:r>0&&!n,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return W(e)}))}),[a,u,W,k,R,s,o,l,c,C]),H=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),re(e);var t=Rh(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1}),[p,k]),$=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),re(e);var t=z.current.filter((function(e){return N.current&&N.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),z.current=t,t.length>0||(B({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Rh(e)&&d&&d(e))}),[N,d,k]),Z=(0,i.useCallback)((function(e,t){var r=[],n=[];e.forEach((function(e){var t=jh(Eh(e,R),2),a=t[0],i=t[1],l=jh(kh(e,s,o),2),c=l[0],u=l[1],d=C?C(e):null;if(a&&c&&!d)r.push(e);else{var p=[i,u];d&&(p=p.concat(d)),n.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach((function(e){n.push({file:e,errors:[_h]})})),r.splice(0)),B({acceptedFiles:r,fileRejections:n,type:"setFiles"}),m&&m(r,n,t),n.length>0&&g&&g(n,t),r.length>0&&f&&f(r,t)}),[B,l,R,s,o,c,m,f,g,C]),G=(0,i.useCallback)((function(e){e.preventDefault(),e.persist(),re(e),z.current=[],Rh(e)&&Promise.resolve(a(e)).then((function(t){Ch(e)&&!k||Z(t,e)})).catch((function(e){return W(e)})),B({type:"reset"})}),[a,Z,W,k]),q=(0,i.useCallback)((function(){if(F.current){B({type:"openDialog"}),P();var e={multiple:l,types:A};window.showOpenFilePicker(e).then((function(e){return a(e)})).then((function(e){Z(e,null),B({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(F.current=!1,I.current?(I.current.value=null,I.current.click()):W(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):W(e):(T(e),B({type:"closeDialog"}))}))}else I.current&&(B({type:"openDialog"}),P(),I.current.value=null,I.current.click())}),[B,P,T,b,Z,W,A,l]),Y=(0,i.useCallback)((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),q()))}),[N,q]),K=(0,i.useCallback)((function(){B({type:"focus"})}),[]),X=(0,i.useCallback)((function(){B({type:"blur"})}),[]),J=(0,i.useCallback)((function(){x||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(q,0):q())}),[x,q]),Q=function(e){return n?null:e},ee=function(e){return _?null:Q(e)},te=function(e){return E?null:Q(e)},re=function(e){k&&e.stopPropagation()},ne=(0,i.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,a=e.role,i=e.onKeyDown,o=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,m=Wh(e,Lh);return zh(zh(Vh({onKeyDown:ee(Ph(i,Y)),onFocus:ee(Ph(o,K)),onBlur:ee(Ph(s,X)),onClick:Q(Ph(l,J)),onDragEnter:te(Ph(c,U)),onDragOver:te(Ph(u,H)),onDragLeave:te(Ph(d,$)),onDrop:te(Ph(p,G)),role:"string"==typeof a&&""!==a?a:"presentation"},r,N),n||_?{}:{tabIndex:0}),m)}}),[N,Y,K,X,J,U,H,$,G,_,E,n]),ae=(0,i.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,i.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,a=e.onClick,i=Wh(e,Bh);return zh(zh({},Vh({accept:R,multiple:l,type:"file",style:{display:"none"},onChange:Q(Ph(n,G)),onClick:Q(Ph(a,ae)),tabIndex:-1},r,I)),i)}}),[I,r,l,G,n]);return zh(zh({},L),{},{isFocused:j&&!n,getRootProps:ne,getInputProps:ie,rootRef:N,inputRef:I,open:Q(q)})}function Gh(e,t){switch(t.type){case"focus":return zh(zh({},e),{},{isFocused:!0});case"blur":return zh(zh({},e),{},{isFocused:!1});case"openDialog":return zh(zh({},$h),{},{isFileDialogActive:!0});case"closeDialog":return zh(zh({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return zh(zh({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return zh(zh({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return zh({},$h);default:return e}}function qh(){}var Yh=o(5878);const{useState:Kh,useEffect:Xh,useRef:Jh}=wp.element,Qh=({className:e,onClick:t,children:r})=>{const n=e=>{"function"==typeof t&&t(e)};return React.createElement("div",{onClick:n,className:(0,y.xW)(e),role:"button",tabIndex:"0",onKeyDown:e=>"Enter"===e.key?n:null},r)};function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ey.apply(null,arguments)}const ty="default",ry="selection",ny=(0,i.memo)((({image:e,isSelected:t,onClick:r,variant:n="default",...a})=>{return React.createElement(Cd.P.div,ey({key:e.id,initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},exit:{opacity:0}},a),React.createElement(Qh,{key:e?.id,className:(0,y.xW)("flex relative overflow-hidden rounded-lg border-2 border-solid border-transparent",n===ty&&"cursor-pointer",n===ty&&t&&"border-image-selection"),onClick:(i=e,e=>{e?.preventDefault(),e?.stopPropagation(),n===ry&&t||r(i)})},React.createElement("img",{className:"inline-block h-fit w-full relative aspect-[12/8] bg-background-secondary",src:e.optimized_url,alt:e?.description??"",loading:"lazy",onLoad:e=>{e.target.classList.remove("aspect-[12/8]")}}),(()=>{return t?n===ry?React.createElement("button",{onClick:(a=e,e=>{e?.preventDefault(),e?.stopPropagation(),r(a)}),className:"flex items-center justify-center absolute top-2 right-2 p-1 bg-white rounded-full border border-solid border-zip-dark-theme-border cursor-pointer focus:outline-none focus-visible:outline-none"},React.createElement(f,{className:"w-4 h-4 text-zip-app-heading"})):React.createElement("div",{className:"inline-flex absolute top-2 right-2 p-1 bg-image-selection rounded-full pointer-events-none"},React.createElement(_u,{className:"w-4 h-4 text-white"})):null;var a})()),e?.author_name&&React.createElement("a",{href:e?.author_url,target:"_blank",className:"block w-11/12 mt-1 mx-1 text-[0.625rem] font-normal leading-3 !text-secondary-text no-underline",rel:"noreferrer"},"by ",e.author_name," via"," ",e.engine?e.engine.charAt(0).toUpperCase()+e.engine.slice(1):"Default"));var i}),((e,t)=>String(e.image.id)===String(t.image.id)&&e.isSelected===t.isSelected&&e.onClick===t.onClick&&e.variant===t.variant));function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ay.apply(null,arguments)}const{useState:iy,useRef:oy,useEffect:sy}=wp.element,ly=({className:e,keywordClassName:t,keywords:r,onClick:n,...a})=>{const[i,o]=iy(0),[s,l]=iy(!1),[c,u]=iy(!1),d=oy(null);sy((()=>{if(!d.current)return;const{scrollWidth:e,clientWidth:t}=d.current;l(i>0),u(i<e-t)}),[r,i]);const p=e=>()=>{"function"==typeof n&&n(e)},m=(e,t)=>{e&&e.scrollTo({left:t,behavior:"smooth"})};return React.createElement("div",ay({className:(0,y.xW)("relative flex flex-row items-start",e)},a),s&&React.createElement("button",{className:"absolute inset-y-0 left-0 px-1.5 py-0.5 cursor-pointer text-app-inactive-icon hover:text-app-active-icon bg-gradient-to-r from-70% from-white to-transparent transition duration-150 ease-in-out border-none bg-transparent",onClick:()=>{m(d.current,0)}},React.createElement(Yi,{className:"w-6 h-6"})),React.createElement("div",{className:"flex flex-row flex-nowrap gap-2 overflow-x-auto hide-scrollbar",ref:d,onScroll:e=>{const{scrollLeft:t,scrollWidth:r,clientWidth:n}=e.target;o(t),l(t>0),u(t<r-n)}},r.map(((e,r)=>React.createElement("div",{key:r,className:(0,y.xW)("px-3 py-1 text-sm font-normal leading-5 rounded-full shadow-sm cursor-pointer text-app-text whitespace-nowrap border border-solid",t),onClick:p(e),role:"button",tabIndex:"0",onKeyDown:t=>"Enter"===t.key?p(e):null},e)))),c&&React.createElement("button",{className:"absolute inset-y-0 right-0 px-1.5 py-0.5 cursor-pointer text-app-inactive-icon hover:text-app-active-icon bg-gradient-to-l from-70% from-white to-transparent transition duration-150 ease-in-out border-none bg-transparent",onClick:()=>{const e=d.current;m(e,e.scrollWidth)}},React.createElement(Xi,{className:"w-6 h-6"})))},cy=[],uy=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),r=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(r),r.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.FeaturedImage,new e.media.controller.EditImage({model:this.options.editImage})])}})},dy=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Post.extend({galleryToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?e.media.view.l10n.updateGallery:e.media.view.l10n.insertGallery,priority:80,requires:{library:!0},click(){const e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},editState(){const t=this.state("gallery").get("selection"),r=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(r),r.loadEditor()},createStates:function(){this.on("toolbar:create:main-gallery",this.galleryToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.Library({id:"gallery",title:e.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:e.media.query({type:"image",...this.options.library})}),new e.media.controller.EditImage({model:this.options.editImage}),new e.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new e.media.controller.GalleryAdd])}})},py=e=>["sizes","mime","type","subtype","id","url","alt","link","caption"].reduce(((t,r)=>(e?.hasOwnProperty(r)&&(t[r]=e[r]),t)),{}),my=e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})};class fy extends i.Component{constructor(){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onClose=this.onClose.bind(this)}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}buildAndSetGalleryFrame(){const{addToGallery:e=!1,allowedTypes:t,multiple:r=!1,value:n=cy}=this.props;if(n===this.lastGalleryValue)return;const{wp:a}=window;let i;this.lastGalleryValue=n,this.frame&&this.frame.remove(),i=e?"gallery-library":n&&n.length?"gallery-edit":"gallery",this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=dy());const o=my(n),s=new a.media.model.Selection(o.models,{props:o.props.toJSON(),multiple:r});this.frame=new this.GalleryDetailsMediaFrame({mimeType:t,state:i,multiple:r,selection:s,editing:!(!n||!n.length)}),a.media.frame=this.frame,this.initializeListeners()}buildAndSetFeatureImageFrame(){const{wp:e}=window,{value:t,multiple:r,allowedTypes:n}=this.props,a=uy(),i=my(t),o=new e.media.model.Selection(i.models,{props:i.props.toJSON()});this.frame=new a({mimeType:n,state:"featured-image",multiple:r,selection:o,editing:t}),e.media.frame=this.frame,e.media.view.settings.post={...e.media.view.settings.post,featuredImageId:t||-1}}componentWillUnmount(){this.frame?.remove()}onUpdate(e){const{onSelect:t,multiple:r=!1}=this.props,n=this.frame.state(),a=e||n.get("selection");a&&a.models.length&&t(r?a.models.map((e=>py(e.toJSON()))):py(a.models[0].toJSON()))}onSelect(){const{onSelect:e,multiple:t=!1}=this.props,r=this.frame.state().get("selection").toJSON();e(t?r:r[0])}onOpen(){const{wp:e}=window,{value:t}=this.props;if(this.updateCollection(),this.props.mode&&this.frame.content.mode(this.props.mode),!(Array.isArray(t)?t?.length:t))return;const r=this.props.gallery,n=this.frame.state().get("selection"),a=Array.isArray(t)?t:[t];r||a.forEach((t=>{n.add(e.media.attachment(t))}));const i=my(a);i.more().done((function(){r&&i?.models?.length&&n.add(i.models)}))}onClose(){const{onClose:e}=this.props;e&&e()}updateCollection(){const e=this.frame.content.get();if(e&&e.collection){const t=e.collection;t.toArray().forEach((e=>e.trigger("destroy",e))),t.mirroring._hasMore=!0,t.more()}}openModal(){const{allowedTypes:e,gallery:t=!1,unstableFeaturedImageFlow:r=!1,modalClass:n,multiple:a=!1,title:i=(0,u.__)("Select or Upload Media")}=this.props,{wp:o}=window;if(t)this.buildAndSetGalleryFrame();else{const t={title:i,multiple:a};e&&(t.library={type:e}),this.frame=o.media(t)}n&&this.frame.$el.addClass(n),r&&this.buildAndSetFeatureImageFrame(),this.initializeListeners(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const gy=fy,hy=(e,t)=>{let r,n,a=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),a=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:a})};function yy(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function by(e){try{return decodeURIComponent(e)}catch(t){return e}}function vy(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(by);return r&&function(e,t,r){const n=t.length,a=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const o=!isNaN(Number(t[i+1]));e[n]=i===a?r:e[n]||(o?[]:{}),Array.isArray(e[n])&&!o&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n),e}),Object.create(null))}function wy(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,a]=n;if(Array.isArray(a)||a&&a.constructor===Object){const t=Object.entries(a).reverse();for(const[n,a]of t)r.unshift([`${e}[${n}]`,a])}else void 0!==a&&(null===a&&(a=""),t+="&"+[e,a].map(encodeURIComponent).join("="))}return t.substr(1)}function xy(e="",t){if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(vy(e),t),r=r.substr(0,n)),r+"?"+wy(t)}function _y(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Ey=({path:e,url:t,...r},n)=>({...r,url:t&&xy(t,n),path:e&&xy(e,n)}),ky=e=>e.json?e.json():Promise.reject(e),Sy=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},Cy=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await zy({...Ey(e,{per_page:100}),parse:!1}),n=await ky(r);if(!Array.isArray(n))return n;let a=Sy(r);if(!a)return n;let i=[].concat(n);for(;a;){const t=await zy({...e,path:void 0,url:a,parse:!1}),r=await ky(t);i=i.concat(r),a=Sy(t)}return i},Ry=new Set(["PATCH","PUT","DELETE"]),Ay="GET";function Py(e,t){return vy(e)[t]}function Ty(e,t){return void 0!==Py(e,t)}const Ny=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch((e=>Iy(e,t)));function Iy(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:(0,u.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))})(e).then((e=>{const t={code:"unknown_error",message:(0,u.__)("An unknown error occurred.")};throw e||t}))}function Oy(e,...t){const r=e.indexOf("?");if(-1===r)return e;const n=vy(e),a=e.substr(0,r);t.forEach((e=>delete n[e]));const i=wy(n);return i?a+"?"+i:a}const Ly={Accept:"application/json, */*;q=0.1"},By={credentials:"include"},jy=[(e,t)=>("string"!=typeof e.url||Ty(e.url,"_locale")||(e.url=xy(e.url,{_locale:"user"})),"string"!=typeof e.path||Ty(e.path,"_locale")||(e.path=xy(e.path,{_locale:"user"})),t(e)),hy,(e,t)=>{const{method:r=Ay}=e;return Ry.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},Cy],Dy=e=>{if(e.status>=200&&e.status<300)return e;throw e};let Fy=e=>{const{url:t,path:r,data:n,parse:a=!0,...i}=e;let{body:o,headers:s}=e;return s={...Ly,...s},n&&(o=JSON.stringify(n),s["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,{...By,...i,body:o,headers:s}).then((e=>Promise.resolve(e).then(Dy).catch((e=>Iy(e,a))).then((e=>Ny(e,a)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,u.__)("You are probably offline.")}}))};function My(e){return jy.reduceRight(((e,t)=>r=>t(r,e)),Fy)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(My.nonceEndpoint).then(Dy).then((e=>e.text())).then((t=>(My.nonceMiddleware.nonce=t,My(e))))))}My.use=function(e){jy.unshift(e)},My.setFetchHandler=function(e){Fy=e},My.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const a in n)if("x-wp-nonce"===a.toLowerCase()&&n[a]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},My.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[yy(e),t])));return(e,r)=>{const{parse:n=!0}=e;let a=e.path;if(!a&&e.url){const{rest_route:t,...r}=vy(e.url);"string"==typeof t&&(a=xy(t,r))}if("string"!=typeof a)return r(e);const i=e.method||"GET",o=yy(a);if("GET"===i&&t[o]){const e=t[o];return delete t[o],_y(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][o]){const e=t[i][o];return delete t[i][o],_y(e,!!n)}return r(e)}},My.createRootURLMiddleware=e=>(t,r)=>hy(t,(t=>{let n,a=t.url,i=t.path;return"string"==typeof i&&(n=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(i=i.replace("?","&")),a=n+i),r({...t,url:a})})),My.fetchAllMiddleware=Cy,My.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,u.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):Iy(t,e.parse)})).then((t=>Ny(t,e.parse)))},My.createThemePreviewMiddleware=e=>(t,r)=>{if("string"==typeof t.url){const r=Py(t.url,"wp_theme_preview");void 0===r?t.url=xy(t.url,{wp_theme_preview:e}):""===r&&(t.url=Oy(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=Py(t.path,"wp_theme_preview");void 0===r?t.path=xy(t.path,{wp_theme_preview:e}):""===r&&(t.path=Oy(t.path,"wp_theme_preview"))}return r(t)};const zy=My,Vy=(0,i.memo)((({render:e})=>{const{setWebsiteImagesAIStep:n}=(0,r.A)(g.U),{stepsData:{selectedImages:a=[]}}=(0,t.A)((e=>{const{getAIStepData:t}=e(g.U);return{stepsData:t()}}),[]);return React.createElement(React.Fragment,null,React.createElement(gy,{mode:"upload",allowedTypes:["image"],render:"function"==typeof e?e:({open:e})=>React.createElement("button",{type:"button",onClick:e,className:(0,y.xW)("flex flex-col items-center justify-center gap-3 py-[50px] px-[78px] aspect-video bg-zip-app-light-bg border border-solid border-border-tertiary rounded cursor-pointer")},React.createElement(Bg,{className:"w-6 h-6 text-accent-st"}),React.createElement("span",{className:"min-w-fit break-keep text-nowrap whitespace-nowrap text-base font-semibold text-zip-body-text"},(0,u.__)("Upload images","astra-sites"))),onSelect:e=>{const t=e.map((e=>(0,y.Bh)(e?.url)?e:(Ps.oR.error((0,y.yI)({message:(0,u.nv)((0,u.__)("Invalid file name! Please avoid special characters. (%s)","astra-sites"),e?.filename)}),y.GU),null))).filter((e=>null!==e)).map((e=>({id:String(e.id),url:e?.originalImageURL??e.url,optimized_url:e?.sizes?.large?.url??e.url,engine:"",description:e?.description??"",orientation:e?.orientation??(e?.width>e?.height?"landscape":"portrait"),author_name:e?.author_name??"",author_url:""}))).filter((e=>-1===a?.findIndex((t=>String(t.id)===String(e.id)))));n([...a,...t])},multiple:!0}))})),Wy=({open:e=!1,setOpen:r=(()=>{}),onClickGenerate:n,onClickSave:a})=>{const[o,s]=(0,i.useState)(!1),[l,c]=(0,i.useState)(!1),{remaining:d,patternsLibraryRate:p,patternsCategoryRate:m,isFreeUser:f}=oi(),{businessType:h,businessName:b,businessDetails:v,allPatternsCategories:w,isNewUser:x}=(0,t.A)((e=>{const{getAIStepData:t,getOnboardingAI:r,getAllPatternsCategories:n}=e(g.U);return{...t(),allPatternsCategories:n(),isNewUser:r()?.isNewUser}}),[]),_=f&&d<2*m||!f&&d<p||d<=0,E=w.slice(0,2).map((({name:e})=>e)).join(" and "),k=[{key:h,label:"Business Type"},{key:b,label:"Business Name"},{key:v,label:"Business Description"}],S=async e=>{_||o||(s(!0),"function"==typeof n&&(f&&(0,y.HU)("ast-free-ai-content",Math.random().toString(36).substring(2)),await n(e),s(!1),r(!1)))},C=()=>{window.open(ast_block_template_vars.get_more_credits_url,"_blank")};return React.createElement(Fi,{open:e,setOpen:r,width:520,closeButton:!1},_?React.createElement(i.Fragment,null,React.createElement("div",{className:"space-y-2"},React.createElement(Fi.Title,null,(0,u.__)("Uh Oh, you're out of AI credits 😕","astra-sites")),React.createElement("p",{className:"text-body-text text-base font-normal m-0"},(0,u.__)("With AI credits, you have the power to personalize the design library with unique copy and beautiful images specific to your website.","astra-sites")),React.createElement("p",{className:"text-body-text text-base font-normal m-0"},(0,u.nv)((0,u.__)("Your account has %1$s AI credits left. If you want to personalize the entire design library with content and images tailored to your business and website project, you'll require %2$s credits.","astra-sites"),d,p))),React.createElement(ii.A,{variant:"ai-primary",className:"w-full min-h-[45px]",hasSuffixIcon:!0,onClick:C},React.createElement("span",null,"Unlock 200,000 Credits for Just $39"),React.createElement(Ms,{className:"h-5 w-5"}))):f&&d>0?React.createElement(i.Fragment,null,React.createElement("div",{className:"space-y-7 p-4 lg:p-8 bg-background-tertiary rounded-lg"},React.createElement("div",{className:"space-y-3"},React.createElement(Fi.Title,null,"Yay, you're almost there! 😍"),React.createElement("p",{className:"text-body-text m-0 text-sm font-normal"},"With AI credits, you have the power to personalize the design library with unique copy and beautiful images specific to your website."),React.createElement("p",{className:"text-body-text m-0 text-sm font-normal"},"Your free account includes 1000 AI credits. If you want to personalize the entire design library with content and images tailored to your business and website project, you'll require"," ",p," credits.")),React.createElement(ii.A,{className:"w-full min-h-[45px]",variant:"ai-primary",onClick:C},(0,u.__)("Unlock 200,000 AI Credits for Just $39","astra-sites"))),React.createElement("div",{className:"!-mb-2 !mt-0 px-4 lg:px-8 pt-4 lg:pt-8 pb-2 space-y-7"},React.createElement("div",{className:"space-y-3"},React.createElement("h6",{className:"text-xl font-bold leading-7"},(0,u.__)("Want to see how this works?","astra-sites")),React.createElement("p",{className:"text-body-text m-0 text-sm font-normal"},(0,u.nv)((0,u.__)("Begin with the 1000 AI credits provided when you signed up for your free account. With this, you can personalize templates in the %s categories.","astra-sites"),E)),React.createElement("p",{className:"text-body-text m-0 text-sm font-normal"},(0,u.__)("You can easily purchase additional AI credits later anytime.","astra-sites"))),React.createElement(ii.A,{className:"w-full min-h-[45px] text-body-text border-border-secondary border border-solid",variant:"blank",onClick:S},o?React.createElement(Vi.A,{className:"text-body-text"}):React.createElement(React.Fragment,null,"Try It Using Free 1000 Credits")))):React.createElement(i.Fragment,null,React.createElement("div",{className:"space-y-2"},React.createElement(Fi.Title,null,"Yay, you're almost there! 😍"),React.createElement("p",{className:"text-body-text"},"This will personalize the entire design library, and it will consume"," ",f?2*m:p," ","AI credits from your account.")),React.createElement("div",{className:"p-5 border border-solid border-border-primary rounded-md max-h-[248px] overflow-y-scroll"},k.map((({key:e,label:t},r)=>React.createElement(i.Fragment,{key:r},React.createElement("div",{className:"text-heading-text text-base"},React.createElement("p",{className:"font-semibold !m-0 !p-0"},t),React.createElement("p",{className:"font-normal !m-0 !p-0"},e)),r<k.length-1&&React.createElement("hr",{className:"border-t-border-primary my-4"}))))),React.createElement("div",{className:"space-y-3"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement(ii.A,{className:(0,y.xW)("w-full min-w-fit min-h-[45px]"),variant:"ai-primary",hasSuffixIcon:!x&&!o,onClick:S},o?React.createElement(Vi.A,null):x?React.createElement(React.Fragment,null,React.createElement("span",null,"Personalize Library (",f?2*m:(0,y.ZV)(p)," ","Credits)"),React.createElement(Ms,{className:"h-5 w-5"})):React.createElement(React.Fragment,null,React.createElement("span",null,"Personalize"))),!x&&React.createElement(ii.A,{className:(0,y.xW)("w-full min-h-[45px]"),variant:"ai-white",onClick:async e=>{l||(c(!0),"function"==typeof a&&(await a(e),c(!1),r(!1)))}},l?React.createElement(Vi.A,{className:"text-accent-ai"}):React.createElement("span",null,"Save & Exit"))))),React.createElement("button",{className:"w-full text-base font-medium text-secondary-text text-center underline border-none cursor-pointer bg-transparent",onClick:()=>r(!1)},"Back"))};var Uy=o(2543);function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(null,arguments)}const{uploadMedia:$y}=wp.mediaUtils,Zy={all:{value:"all",label:"All Orientations"},landscape:{value:"landscape",label:"Landscape"},portrait:{value:"portrait",label:"Portrait"}},Gy=[{label:"Search Results",value:"all"},{label:(0,u.__)("Upload Your Images","astra-sites"),value:"upload"},{label:"Selected Images",value:"selected"}],qy=["pexels","unsplash"],Yy=(e=15)=>{const t=["aspect-[1/1]","aspect-[1/2]","aspect-[2/1]","aspect-[2/2]","aspect-[3/3]","aspect-[4/3]","aspect-[3/4]"];let r=0;return Array.from({length:e}).map(((e,n)=>(r=r===t.length?0:r,React.createElement(Qh,{key:n,className:(0,y.xW)("relative overflow-hidden rounded-lg","bg-slate-300 rounded-lg relative animate-pulse",t[r++])}))))},Ky=(0,e.A)((0,n.A)((e=>{const{setPreviousAIStep:t,setDynamicContent:r,setCurrentCategory:n,setIsSyncBusinessDetails:a}=e("astra-sites");return{onClickPrevious:t,setDynamicContent:r,setCurrentCategory:n,setIsSyncBusinessDetails:a}})))((({onClickPrevious:e,setDynamicContent:n,setIsSyncBusinessDetails:a})=>{const{setWebsiteImagesAIStep:o,setCurrentCategory:s,toggleOnboardingAIStep:l,dynamicContentFlagSet:c,dynamicContentSyncStart:d,dynamicContentSyncComplete:p,dynamicContentFlagReset:m,setCreditsDetails:h,setIsNewUserOnboarding:b,setIsPersonalized:v}=(0,r.A)(g.U),{stepsData:{businessName:w,selectedImages:x=[],keywords:_=[],businessType:E,businessDetails:k,businessContact:S,siteLanguage:C,siteLanguageList:R},allPatternsCategories:A,updateImages:P,isNewUser:T}=(0,t.A)((e=>{const{getAIStepData:t,getAllPatternsCategories:r,getDynamicContent:n,getOnboardingAI:a}=e(g.U),i=a();return{stepsData:t(),allPatternsCategories:r(),dynamicContent:n(),updateImages:i?.updateImages,isNewUser:i?.isNewUser}})),N=(0,i.useRef)([]),I=R?.find((e=>e.code===(C||"en"))),[O,L]=(0,i.useState)(Zy.all),[B,j]=(0,i.useState)(_?.length>0?_[0]:""),[D,F]=(0,i.useState)([]),[M,z]=(0,i.useState)(0),[V,W]=(0,i.useState)([]),[U,H]=(0,i.useState)(1),[$,Z]=(0,i.useState)(!0),[G,q]=(0,i.useState)(!1),[Y,K]=(0,i.useState)(!1),[X,J]=(0,i.useState)(!1),[Q,ee]=(0,i.useState)("all"),[te,re]=(0,i.useState)(!1),[ne,ae]=Ka({placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,0]}}]});(0,i.useEffect)((()=>{o((0,Uy.uniqBy)([...x,...D.map((e=>({id:String(e.id),url:e?.originalImageURL??e.url,optimized_url:e?.sizes?.large?.url??e.url,engine:"",description:"",orientation:e?.orientation??(e?.width>e?.height?"landscape":"portrait"),author_name:e?.author_name??"",author_url:""})))],"id"))}),[D.length]);const ie=(0,i.useRef)(null),oe=(0,i.useRef)(!1),se=(0,i.useRef)(new Set),le=(0,i.useRef)(null),{getRootProps:ce,getInputProps:ue}=Zh({accept:{"image/png":[".png"],"image/jpeg":[".jpeg",".jpg"]},noClick:!0,noKeyboard:!0,onDropAccepted:async e=>{F([]),z(e.length),e.forEach((async e=>{try{await $y({filesList:[e],onFileChange:e=>{if(e[0].id){if(!(0,y.Bh)(e[0]?.url))return Ps.oR.error((0,y.yI)({message:(0,u.nv)((0,u.__)("Invalid file name! Please avoid special characters. (%s)","astra-sites"),e[0].title)}),y.GU),void z((e=>e-1));F((t=>[...t,...e])),z((e=>e-1))}}})}catch(e){console.error(e),Ps.oR.error((0,y.yI)({message:e.message.toString()}),y.GU),z((e=>e-1))}}))},maxFiles:20,maxSize:5*Yh.$,onDropRejected:e=>{e.length>20?Ps.oR.error((0,y.yI)({message:(0,u.__)("You can only upload 20 images at once","astra-sites")}),y.GU):e.forEach((({errors:e,file:t})=>{Ps.oR.error((0,y.yI)({message:`${e[0].message} (${t?.name})`}),y.GU)}))}}),{register:de,handleSubmit:pe,setValue:me,reset:fe,setFocus:ge,watch:he}=Ql({defaultValues:{keyword:B}}),ye=he("keyword"),be=Kf(B,500),ve=Kf(O,500),{isFreeUser:we}=oi(),xe=async e=>{e.preventDefault();const t=new window.FormData;t.append("action","ast-block-templates-ai-content"),t.append("security",ast_block_template_vars.ai_content_ajax_nonce),t.append("business_name",w),t.append("business_desc",k),t.append("business_category",E),t.append("images",JSON.stringify(x)),t.append("image_keyword",JSON.stringify(_)),t.append("business_address",S?.address||""),t.append("business_phone",S?.phone||""),t.append("business_email",S?.email||""),t.append("language",JSON.stringify(I)),t.append("social_profiles",JSON.stringify(S?.socialMedia||[])),t.append("save_only",!0);try{const e=await(0,y.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:t});if(!e.success)throw new Error(e?.data?.data);l(),e?.data.images.length>0&&o(e.data.images),a(!1)}catch(e){(0,ti.v)(e)}},_e=()=>[...new Set(_)].filter((e=>""===B.trim()||e?.toLowerCase()!==B?.toLowerCase())),Ee=e=>{const t=x?.filter((t=>t.id===e.id));return t?.length>0},ke=(0,i.useCallback)((e=>{let t=[];Ee(e)?(e.id=String(e.id),t=x?.filter((t=>t.id!==e.id))):t=[...x,e],o(t)}),[x,o]),Se=()=>{N.current.length&&(N.current.forEach((e=>e.abort())),N.current=[],W([]))},Ce=async e=>{let t=B;"string"!=typeof B||B&&""!==B.trim()||(t=w);const r={keywords:t,orientation:O.value,per_page:20,page:U};try{const t=new AbortController;N.current.push(t);const n=await(0,y.nr)({path:"gutenberg-templates/v1/images",data:{...r,engine:e},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce},signal:t.signal}),a=n.data?.data||[];if(!n.success)throw new Error(n?.data?.data);0===a?.length&&se.current.add(e);const i=a?.length>0?a.map((e=>({...e,id:String(e.id)}))).filter((e=>!x?.some((t=>t.id===e.id)))):[];return W((e=>((e,t)=>{const r=new Map;return[...e,...t].forEach((e=>{r.has(e.id)||r.set(e.id,e)})),Array.from(r.values())})(e,i))),a?.length||0}catch(e){if("AbortError"===e.name)throw e;(0,ti.v)(e)}return 0},Re=()=>{J(!0)};(0,i.useEffect)((()=>{oe.current=!1,(async()=>{try{q(!0);const e=[];for(const t of qy)if(!se.current.has(t)){const r=await Ce(t);e.push(r)}Math.max(e.filter(Boolean))<20?Z(!1):Z(!0),oe.current=!0,q(!1)}catch(e){if("AbortError"===e.name)return;oe.current=!0,q(!1),(0,ti.v)(e)}})()}),[be,ve,U]),(0,i.useEffect)((()=>{oe.current=!1,se.current.clear(),H(1),W([])}),[B,O]),(0,i.useEffect)((()=>{ge("keyword")}),[]);const Ae=(e=[])=>e.filter((e=>!e.engine)),Pe=(e=[])=>e.filter((e=>e.engine&&"placeholder"!==e.engine)),Te=e=>{!te&&_e()?.length&&("click"!==e?.type&&"keydown"!==e?.type||re(!0))},Ne=e=>{const t=document.getElementById("search-images-wrapper");t&&!t.contains(e.target)&&re(!1)};(0,i.useEffect)((()=>(document.addEventListener("mousedown",Ne),()=>document.removeEventListener("mousedown",Ne))),[Ne]);const Ie=(()=>{switch(Q){case Gy[0].value:return G?[...V,...Yy()]:V;case Gy[1].value:return[...Ae(x),...M?Yy(M):[]];case Gy[2].value:return Pe(x);default:return G?[...V,...Yy()]:V}})();return React.createElement("div",{ref:ie,className:"w-full flex flex-col flex-auto h-full overflow-y-auto",onScroll:e=>{if(!e)return;if((e=>{if(!e)return;const{scrollTop:t}=e.target;t>50&&!Y&&K(!0),t<=50&&Y&&K(!1)})(e),!$||G)return;const{scrollTop:t,scrollHeight:r,clientHeight:n}=ie.current;t+n>=r-200&&H((e=>e+1))}},React.createElement("div",{className:"w-full space-y-6"},React.createElement(df,{className:"pt-5 md:pt-12 px-5 md:px-10 lg:px-14 xl:px-20 max-w-fit mx-auto !text-zip-app-label",heading:"Select the Images"}),React.createElement("form",{className:"w-full overflow-visible min-h-[3.125rem]",onSubmit:pe((e=>{Se(),j(e.keyword)}))},React.createElement("div",{id:"search-images-wrapper",ref:ne,className:(0,y.xW)("relative w-full max-w-[37.5rem] mx-auto pl-4 pr-12 py-3 border border-button-disabled rounded-md shadow bg-white z-[2]",{"pb-0 rounded-b-none border-b-0 shadow-md":te}),onClick:e=>{"search-images-wrapper"===e.target.id&&(ge("keyword"),!te&&_e()?.length&&re(!0))},role:"button",tabIndex:"0",onKeyDown:e=>{if("Enter"===e.key){if("search-images-wrapper"!==e.target.id)return;if(ge("keyword"),te||!_e()?.length)return;re(!0)}}},React.createElement("div",{className:"absolute top-[0.875rem] right-3 flex items-center"},React.createElement("button",{type:"button",className:"w-auto h-auto p-0 flex items-center justify-center cursor-pointer bg-transparent border-0 focus:outline-none",onClick:()=>{ye&&(j(""),fe({keyword:""}))}},ye?React.createElement(f,{className:"w-5 h-5 text-zip-app-inactive-icon"}):React.createElement(ko,{className:"w-5 h-5 text-zip-app-inactive-icon"}))),React.createElement("input",Hy({className:"!text-sm placeholder:text-sm p-0 border-0 w-full h-6 shadow-none focus:outline-none focus:ring-0 focus-visible:outline-none",placeholder:"Add more relevant keywords...",autoComplete:"off",onKeyDown:Te,onClick:Te},de("keyword"))),React.createElement("div",{ref:ae,className:(0,y.xW)("w-[calc(100%_+_2px)] px-3 pb-4 z-10 bg-white shadow-md border-x border-b border-t-0 border-solid border-border-tertiary rounded-b-md",{invisible:!te})},te&&React.createElement("hr",{className:"!mx-0 !my-3 border-t border-solid border-b-0 border-border-tertiary",tabIndex:-1}),React.createElement("h6",{className:"flex items-center justify-start gap-1.5 text-sm font-medium mb-4"},React.createElement("span",null,(0,u.__)("Suggested Keywords","astra-sites")),React.createElement(Vo,{className:"inline-block size-4"})),React.createElement(ly,{keywordClassName:"border-zip-light-border-primary bg-background-secondary",keywords:_e(),onClick:e=>{Se(),j(e),me("keyword",e),re(!1)}}))))),React.createElement("div",{className:"pt-4 px-5 md:px-10 lg:px-14 xl:px-20 sticky top-0 space-y-4 z-[1] bg-gt-container-background"},React.createElement("div",{className:"rounded-t-lg pt-2 pb-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement("div",{className:"flex items-center gap-1 text-sm font-normal leading-[21px]"},React.createElement("div",{className:"flex items-center justify-start gap-3"},Gy.map((e=>React.createElement("button",{className:(0,y.xW)("relative before:content-[attr(data-title)] before:block before:font-bold before:text-sm before:invisible before:h-0","px-0 py-3 border-0 bg-transparent text-sm font-semibold text-accent-st cursor-pointer focus-visible:outline-none focus:outline-none active:outline-none transition-colors ease-in-out duration-150",e.value!==Q&&"font-normal text-body-text"),key:e.value,type:"button",onClick:()=>ee(e.value),"data-title":e.label},e.label,e.value===Gy[2].value&&!!Pe(x)?.length&&` (${Pe(x)?.length})`,e.value===Gy[1].value&&!!Ae(x)?.length&&` (${Ae(x)?.length})`,e.value===Q&&React.createElement("span",{className:"absolute bottom-0 inset-x-0 w-full h-0.5 bg-accent-ai"})))))),Q===Gy[0].value&&React.createElement(Ja,{placement:"right",trigger:React.createElement("div",{className:(0,y.xW)("flex items-center gap-2 min-w-[100px] py-3 pl-4 pr-3 cursor-pointer border border-border-primary rounded-md")},React.createElement("span",{className:"text-sm font-normal text-body-text leading-[150%]"},O.label),React.createElement(Cc,{className:"w-5 h-5 text-app-inactive-icon"})),align:"top",width:"48",contentClassName:"p-1 bg-white"},Object.values(Zy).map(((e,t)=>{return React.createElement(Ja.Item,{as:"div",key:t,className:"only:!p-0"},React.createElement("button",{type:"button",className:"w-full flex items-center justify-between gap-2 py-1.5 px-2 text-sm font-normal leading-5 text-body-text hover:bg-background-secondary transition duration-150 ease-in-out space-x-2 rounded bg-white border-none cursor-pointer",onClick:(r=e,()=>{r!==O&&Se(),L(r)})},React.createElement("span",null,e.label),e.value===O.value&&React.createElement(_u,{className:"w-4 h-4 text-heading-text"})));var r}))),Q===Gy[2].value&&!!x?.length&&React.createElement("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(x.filter((e=>!e.engine)))},className:"px-1 py-px bg-transparent border border-solid border-border-primary rounded text-xs leading-4 text-body-text cursor-pointer"},(0,u.__)("Clear","astra-sites")),Q===Gy[1].value&&React.createElement(Vy,{render:({open:e})=>React.createElement("button",{ref:le,className:"px-0 bg-transparent border-none rounded text-xs leading-5 font-semibold text-accent-st cursor-pointer inline-flex items-center justify-end gap-2",onClick:e},React.createElement(Bg,{className:"w-4 h-4 text-zip-app-inactive-icon",strokeWidth:2}),React.createElement("span",null,(0,u.__)("Upload Your Images","astra-sites")))})))),React.createElement("div",{className:"py-4 px-5 md:px-10 lg:px-14 xl:px-20 flex flex-col flex-auto relative"},Q===Gy[1].value&&!Ie.length&&React.createElement("div",Hy({className:(0,y.xW)("relative flex flex-col items-center justify-center gap-3 py-[3.125rem] px-4 bg-background-primary border border-dashed border-border-tertiary rounded cursor-pointer")},ce()),React.createElement("input",ue()),React.createElement(Bg,{className:"w-6 h-6 text-zip-app-inactive-icon"}),React.createElement("p",{className:"text-zip-body-text text-base !my-0"},React.createElement("span",{className:"text-accent-st min-w-fit break-keep text-nowrap whitespace-nowrap font-semibold mr-1"},(0,u.__)("Upload images","astra-sites")),(0,u.__)("or drop your images here (Max 20)","astra-sites")),React.createElement("p",{className:"text-zip-body-text text-base !my-0"},(0,u.__)("PNG, JPG, JPEG","astra-sites")),React.createElement("p",{className:"text-zip-body-text text-base !my-0"},(0,u.__)("Max size: 5 MB per file","astra-sites")),React.createElement("div",{className:"absolute inset-0",onClick:()=>{le?.current&&le?.current.click()},tabIndex:0,role:"button",onKeyDown:e=>{(le?.current||"Enter"===e.key)&&le?.current.click()}})),React.createElement(Gg,null,Ie?.length>0&&React.createElement(us,{className:"gap-6 [&>div]:gap-6",columns:{default:1,220:2,767:3,1024:3,1280:5,1920:6}},Ie.map((e=>e?.optimized_url&&"placeholder"!==e?.engine?React.createElement(ny,{key:e.id,image:e,isSelected:Ee(e),onClick:ke,variant:Q===Gy[2].value||Q===Gy[1].value?"selection":"default"}):React.createElement(i.Fragment,{key:Math.random().toString(36).substring(2,10)},e))))),Q===Gy[0].value&&!G&&!V.length&&oe.current&&React.createElement("div",{className:"flex flex-col items-center justify-center h-full"},React.createElement("p",{className:"text-secondary-text text-center px-10 py-5 border-2 border-dashed border-border-primary rounded-md"},B.length?React.createElement(React.Fragment,null,(0,u.__)("We couldn`t find anything with your keyword.","astra-sites"),React.createElement("br",null),(0,u.__)("Try to refine your search.","astra-sites")):React.createElement(React.Fragment,null,(0,u.__)("Find the perfect images for your website by entering a keyword or selecting from the suggested options.","astra-sites")))),Q===Gy[0].value&&!G&&!$&&!!V.length&&React.createElement("div",{className:"pb-5 pt-10 flex flex-col items-center justify-center h-full"},React.createElement("p",{className:"text-secondary-text text-sm leading-5 text-center after:mx-2.5 after:content-[''] after:inline-block after:w-5 sm:after:w-12 after:h-px after:bg-app-border after:relative after:-top-[5px] before:mx-2.5 before:content-[''] before:inline-block before:w-5 sm:before:w-12 before:h-px before:bg-app-border before:relative before:-top-[5px]"},(0,u.__)("End of the search results","astra-sites"))),Q===Gy[2].value&&!Pe(x).length&&React.createElement("div",{className:"flex flex-col items-center justify-center h-full"},React.createElement("p",{className:"text-secondary-text text-center px-10 py-5 border-2 border-dashed border-border-primary rounded-md"},(0,u.__)("No images are selected yet.","astra-sites")))),Y&&React.createElement("div",{className:"absolute right-[6.5rem] bottom-28 ml-auto"},React.createElement("button",{type:"button",className:"absolute bottom-0 right-0 z-10 w-8 h-8 rounded-full bg-accent-st border-0 border-solid text-white flex items-center justify-center shadow-sm cursor-pointer",onClick:()=>{ie.current&&(K(!1),ie.current.scrollTo({top:0,behavior:"smooth"}))}},React.createElement(Dg,{className:"w-5 h-5"}))),React.createElement("div",{className:"min-h-[80px] py-4 px-5 md:px-10 lg:px-14 xl:px-20 sticky bottom-0 bg-gt-container-background"},React.createElement(Od,P?{continueButtonText:"Save & Exit",onClickContinue:xe}:{onClickContinue:Re,onClickSkip:Re,onClickPrevious:e})),React.createElement(Wy,{open:X,setOpen:J,onClickGenerate:async e=>{e.preventDefault();const t=new window.FormData;t.append("action","ast-block-templates-ai-content"),t.append("security",ast_block_template_vars.ai_content_ajax_nonce),t.append("business_name",w),t.append("business_desc",k),t.append("business_category",E),t.append("images",JSON.stringify(x)),t.append("image_keyword",JSON.stringify(_)),t.append("business_address",S?.address||""),t.append("business_phone",S?.phone||""),t.append("business_email",S?.email||""),t.append("language",JSON.stringify(I)),t.append("social_profiles",JSON.stringify(S?.socialMedia||[]));try{const e=await(0,y.nr)({url:ast_block_template_vars.ajax_url,method:"POST",body:t});e.success&&(a(!1),l(),e?.data.images.length>0&&o(e.data.images))}catch(e){(0,ti.v)(e)}const r="patterns",i=we?A.slice(0,2):A;m(r,we?i.map((e=>e.id)):null),d(r);let u=!1;try{u=await(0,Wo.R2)(i,n,c,(e=>s(r,e)),h,"block",v)}catch(e){u=e}"object"==typeof u&&"api_throttle_error"===u?.data?.code&&(u={type:"error",title:"Check Back Soon",message:React.createElement(React.Fragment,null,"We are currently experiencing exceptionally high demand. Please try again in 5 minutes. If the error persists, kindly contact us through the website:",React.createElement("a",{href:"https://zipwp.com/contact",target:"_blank",rel:"noreferrer"}," ","https://zipwp.com/contact"),".")}),p(r,"object"==typeof u?u:null),s(r,{}),T&&u&&b()},onClickSave:xe}))})),Xy=[{name:(0,u.__)("Connect","astra-sites"),description:(0,u.__)("Connect your account","astra-sites"),screen:"api-key",component:React.createElement(rg,null)},{name:(0,u.__)("Let's Start","astra-sites"),description:(0,u.__)("Name, language & type","astra-sites"),screen:"type",component:React.createElement(tg,null)},{name:"Describe",description:"Some details please",screen:"details",component:React.createElement(Tg,null)},{name:"Contact",description:"How can people get in touch",screen:"contact-details",component:React.createElement(uf,null)},{name:"Images",description:"Select relevant images",screen:"images",component:React.createElement(Ky,null),classNames:"p-0 md:p-0 lg:p-0 xl:p-0"}],Jy=(0,e.A)((0,a.A)((e=>{const{getTogglePopup:t,getSitePreview:r,getCurrentScreen:n,setCurrentScreen:a,getCurrentAIStep:i}=e("astra-sites");return{togglePopup:t(),sitePreview:r(),currentScreen:n(),setCurrentScreen:a,currentStep:i()}})),(0,n.A)((e=>{const{toggleOnboardingAIStep:t,setCurrentAIStep:r}=e("astra-sites");return{toggleOnboardingAIStep:t,setCurrentAIStep:r}})))((0,i.memo)((({togglePopup:e,currentScreen:t,sitePreview:r,toggleOnboardingAIStep:n,currentStep:a,setCurrentAIStep:o})=>{(0,i.useEffect)((()=>{e?(document.body.classList.add("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.add("open")):(document.body.classList.remove("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"))}),[e,t,r]);const s=e=>{1!==e&&e<=a&&o(e)},l=1===a;return React.createElement("div",{id:"spectra-onboarding-ai",className:"h-[calc(100vh_-_5rem)] font-sans grid grid-cols-1 shadow-medium grid-rows-[4.5rem_1fr]"},React.createElement("header",{className:"grid grid-cols-[4rem_1fr_4rem] items-center justify-between md:justify-start w-full h-full z-10 bg-white shadow-md"},React.createElement("div",{className:"relative flex size-10 shrink-0 items-center mx-auto"},"active"===ast_block_template_vars.astra_sites_status||"active"===ast_block_template_vars.astra_sites_pro_status?React.createElement(ei.fp,{className:"size-10"}):React.createElement(ei.y0,{className:"size-10"})),React.createElement("nav",{className:"w-full h-full hidden md:flex items-center justify-center gap-4 flex-1"},Xy.map((({name:e},t)=>{return l||0!==t?React.createElement(i.Fragment,{key:t},React.createElement("div",{className:(0,y.xW)("flex gap-3",t+1<a&&0!==t?"cursor-pointer":"cursor-default"),onClick:()=>s(t+1),role:"button",tabIndex:"0",onKeyDown:e=>"Enter"===e.key?s(t+1):null},React.createElement("div",{className:(0,y.xW)("flex flex-col gap-y-1 items-center",t===Xy.length-1?"justify-start":"justify-center")},React.createElement("div",{className:(0,y.xW)("rounded-full border border-border-primary text-xs font-semibold flex items-center justify-center w-6 h-6",(r=a,n=t,r===n+1?"border-accent-st bg-white text-accent-st border-solid":r>n+1?"bg-secondary-text text-white border-secondary-text border-solid":"border-solid border-step-connector text-secondary-text"))},a>t+1?React.createElement(_u,{className:"h-3 w-3"}):React.createElement("span",null,t+Number(l)))),React.createElement("div",{className:(0,y.xW)("text-sm font-medium text-secondary-text pt-0.5",a===t+1&&"text-accent-st")},e)),Xy.length-1>t&&React.createElement("div",{className:(0,y.xW)("w-8 h-px self-center","bg-border-primary")})):React.createElement(i.Fragment,{key:t});var r,n}))),React.createElement("div",{className:"[grid-area:1/3] flex items-center justify-center mx-auto"},React.createElement(Ad,{onExit:e=>{e?.preventDefault(),e?.stopPropagation(),n()}}))),React.createElement("main",{id:"sp-onboarding-content-wrapper",className:"flex-1 overflow-x-hidden h-full bg-gt-container-background"},React.createElement(Og,null,React.createElement("div",{className:"h-full w-full relative flex"},React.createElement("div",{className:(0,y.xW)("w-full max-h-full flex flex-col flex-auto items-center overflow-y-auto",!l&&"px-5 pt-5 [&:has(.max-w-container)]:pb-4 md:px-10 md:pt-10 md:[&:has(.max-w-container)]:pb-6 lg:px-14 lg:pt-14 lg:[&:has(.max-w-container)]:pb-8 xl:px-20 xl:pt-12 xl:[&:has(.max-w-container)]:pb-10",Xy[a-1]?.classNames)},Xy[a-1]?.component)))))})));o(5138);const Qy=e=>{const{syncFlags:r,syncStatus:n,reSyncCatContent:a,currentCategory:o,syncMessage:s}=(0,t.A)((t=>{const{getDynamicContentSyncStatus:r,getDynamicContentSyncFlags:n,getDynamicContentReSyncStatus:a,getCurrentCategory:i,getDynamicContentSyncMessage:o}=t(g.U);return{syncStatus:r()[e],syncFlags:n()[e],reSyncCatContent:a(),currentCategory:i()[e],syncMessage:o()}})),l=(0,i.useRef)(null);(0,i.useEffect)((()=>{if(a)return;const e=()=>{const e=Object.values(r),t=e.reduce(((e,t)=>t?e+1:e),0);return Math.round(t/e.length*100)};n&&null===l.current&&o?.name&&(l.current=(0,Ps.oR)((0,Ts.A)({title:'Personalizing "'+o?.name+'"',message:"Please wait a few moments. We are personalizing categories.",showProgress:!0,progress:e()}),Ts.A.getOptions({type:"sync"}))),null!==l.current&&o?.name&&Ps.oR.update(l.current,{...Ts.A.getOptions({type:"sync"}),render:(0,Ts.A)({title:'Personalizing "'+o?.name+'"',message:"Please wait a few moments. We are personalizing categories.",showProgress:!0,progress:e()})}),n||null===l.current||100!==e()||(Ps.oR.update(l.current,{...Ts.A.getOptions({type:"success"}),render:(0,Ts.A)({title:"Library Personalized",message:"Your library personalized successfully."})}),l.current=null),!n&&null!==l.current&&e()<100&&s&&(Ps.oR.update(l.current,{...Ts.A.getOptions({type:s.type}),render:(0,Ts.A)({title:s.title,message:s.message})}),l.current=null),!n&&null!==l.current&&e()<100&&(Ps.oR.update(l.current,{...Ts.A.getOptions({type:"error"}),render:(0,Ts.A)({title:"Error!",message:"An error occurred while personalizing. Please try again."})}),l.current=null)}),[n,r,o,a,l])},eb=()=>{const{setTogglePopup:e}=(0,r.A)(g.U);return React.createElement("div",{className:"spectra-ai h-[4.5rem] w-full grid grid-cols-2 grid-rows-1 items-center bg-white border-0 border-b border-solid border-b-border-primary px-5"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement(ei.y0,{className:"w-10 h-10 !shrink-0"}),React.createElement("div",{className:"h-[1.0625rem] w-px !shrink-0 bg-border-primary"}),React.createElement("span",{className:"text-[1.15rem] font-semibold text-heading-text leading-[1.875rem]"},(0,u.__)("Build using AI","astra-sites"))),React.createElement("button",{className:"ml-auto border-0 bg-transparent outline-none focus:outline-none active:outline-none text-nav-inactive hover:text-nav-active cursor-pointer flex items-center justify-center rounded-full p-2 hover:bg-background-tertiary active:bg-background-tertiary transition-colors ease-in-out duration-150"},React.createElement(f,{className:"w-5 h-5 transition-colors duration-150 ease-in-out",onClick:()=>{e(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")}})))},tb=[{id:1,name:"Home"},{id:2,name:"About"},{id:3,name:"Services"},{id:4,name:"Contact"},{id:5,name:"Blog"},{id:6,name:"Landing Page"},{id:7,name:"Something Else"}],rb=({type:e,selected:t,onClick:r,className:n})=>{const{name:a,prefixIcon:i,suffixIcon:o}=e,s=(e,t)=>{e?.preventDefault(),e?.stopPropagation(),"function"==typeof r&&r(t)};return React.createElement("div",{onClick:t=>s(t,e),className:(0,y.xW)("flex items-center justify-center gap-2 py-3 font-medium hover:shadow-medium transition duration-150 ease-in-out cursor-pointer border border-solid rounded-full hover:border-accent-spectra",t?"text-heading-text border-accent-spectra shadow-medium bg-white":"text-body-text border-transparent bg-background-secondary",!i&&!o&&"px-8",i&&!o&&"pr-8 pl-6",!i&&o&&"pl-8 pr-6",n),role:"button",tabIndex:"0",onKeyDown:t=>"Enter"===t.key?s(t,e):null},!!i&&i,React.createElement("span",null,a),!!o&&o)},nb=()=>{const[e,t]=(0,i.useState)("Home"),[n,a]=(0,i.useState)(!1),{setNextOnboardingPagesAIStep:o}=(0,r.A)(g.U);return React.createElement(i.Fragment,null,React.createElement(eb,null),React.createElement("div",{className:"w-full max-w-container px-10 lg:px-16 xl:px-20 py-12 mx-auto pt-10"},React.createElement("h4",{className:"font-semibold text-[2rem] leading-10 text-[#0F172A] m-0"},"What kind of page are you building?"),React.createElement("p",{className:"leading-6 text-base text-[#475569]"},"Let's get started by choosing the page you're designing."),React.createElement("div",{className:"my-8 flex gap-4 flex-wrap"},tb.length>0&&tb?.map((r=>React.createElement(rb,{className:"py-2 px-6 font-medium text-sm leading-[21px]",key:r.id,type:r,onClick:()=>{return t((e=r).name),void(7===e.id?(console.log(e.id),a(!0)):a(!1));var e},selected:e===r.name})))),n&&React.createElement("div",{className:"mb-8"},React.createElement(Qo,{placeholder:"Enter page name here",label:"Give it a name"})),React.createElement(ii.A,{variant:"primary",className:"w-full rounded-md",onClick:o,hasSuffixIcon:!0,isSmall:!0},React.createElement("span",null,"Next"),React.createElement(Ms,{className:"w-4 h-4"}))))},ab=()=>{const{setPreviousOnboardingPagesAIStep:e,setNextOnboardingPagesAIStep:t}=(0,r.A)(g.U);return React.createElement(i.Fragment,null,React.createElement(eb,null),React.createElement("div",{className:"w-full max-w-container px-10 lg:px-16 xl:px-20 py-12 mx-auto pt-10 space-y-8"},React.createElement("div",{className:"space-y-3"},React.createElement("h4",{className:"m-0"},"Please describe this page in few words"),React.createElement("p",{className:"m-0 leading-6 text-base text-body-text"},"Be as descriptive as you can. Share your vision for this page.")),React.createElement("div",{className:"space-y-3"},React.createElement(Id,{name:"description",className:"mt-8 w-full placeholder-[#9CA3secondary-text",placeholder:"On this page, I want to write about the founder of this business. Her name is Amber Kardile. She started this company 6 years ago. Her background is in service industry and education in psychology.",validations:{required:"Description is required"},rows:"5"}),React.createElement("div",{className:"flex items-center gap-2 mt-2 text-accent-spectra cursor-pointer"},React.createElement(ei.AW,{className:"w-5 h-5 transition duration-150 ease-in-out"}),React.createElement("span",{className:"font-semibold text-sm transition duration-150 ease-in-out"},"Write Using AI"))),React.createElement("div",null,React.createElement("div",{className:"flex flex-row gap-4"},React.createElement(ii.A,{variant:"primary",hasSuffixIcon:!0,className:"w-3/4 rounded-md",onClick:t},React.createElement("span",null,"Start Building (84 Credits)"),React.createElement(Ms,{className:"w-4 h-4"})),React.createElement(ii.A,{variant:"white",className:"w-1/4 rounded-md",onClick:e},React.createElement("span",null,"Previous Step"))),React.createElement("div",{className:"flex items-center justify-center mt-3 w-3/4"},React.createElement("span",{className:""},"968 Credits remaining")))))},ib=()=>React.createElement("div",{className:"w-full h-full bg-white shadow-xlarge"},React.createElement("div",{className:"w-full h-full overflow-hidden"},React.createElement("div",{className:"px-5 pt-5"},React.createElement("div",{className:"flex items-center justify-between mb-12 2xl:mb-20 overflow-hidden"},React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-8 2xl:h-10 w-3/12"}),React.createElement("div",{className:"flex gap-4 2xl:gap-5 w-full justify-center items-center overflow-hidden"},React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-3 2xl:h-4 w-2/12"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-3 2xl:h-4 w-2/12"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-3 2xl:h-4 w-2/12"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-3 2xl:h-4 w-2/12"})),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-8 2xl:h-10 w-3/12"})),React.createElement("div",{className:"flex flex-col gap-4 2xl:gap-5 items-center mb-8 2xl:mb-10 overflow-hidden"},React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-8 2xl:h-10 w-4/6"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-8 2xl:h-10 w-1/2"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-4 2xl:h-5 w-3/4"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-4 2xl:h-5 w-4/6"})),React.createElement("div",{className:"flex gap-4 2xl:gap-6 justify-center overflow-hidden"},React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-12 2xl:h-14 w-1/5"}),React.createElement("div",{"data-placeholder":!0,className:"relative bg-gray-200 h-12 2xl:h-14 w-1/5"}))),React.createElement("div",{"data-placeholder":!0,className:"relative mt-12 2xl:mt-24 bg-gray-200 h-full w-full"})));var ob=o(7614),sb=o.n(ob);const lb=({trigger:e,children:t})=>{const[r,n]=(0,i.useState)(!1);return React.createElement("div",{className:"bg-white relative"},React.createElement("div",{className:"absolute top-4 right-0 w-6 h-6 pointer-events-none "},r?React.createElement(Dg,{className:"text-app-body-text"}):React.createElement(Cc,{className:"text-app-body-text"})),React.createElement(sb(),{trigger:e,triggerClassName:"block py-4 pr-8 text-[16px] font-semibold leading-[24px]",triggerOpenedClassName:"block py-4 pr-8 text-[16px] font-semibold leading-[24px]",contentInnerClassName:"pb-5",transitionTime:200,transitionCloseTime:200,onOpen:()=>n(!0),onClose:()=>n(!1)},t))},cb=()=>{const{setTogglePopup:e,setPreviousOnboardingPagesAIStep:t}=(0,r.A)(g.U);return React.createElement("div",{className:"flex items-stretch flex-1"},React.createElement("div",{className:"xl:w-[72%] lg:w-[65%] w-[55%] flex flex-col items-start justify-start bg-background-secondary relative h-full"},React.createElement("div",{className:"py-4 px-5"},React.createElement(ei.y0,{className:"w-10 h-10"})),React.createElement("div",{className:"flex-1 px-[4.875rem] w-full"},React.createElement(ib,null))),React.createElement("div",{className:"xl:w-[28%] lg:w-[35%] w-[45%] pt-8 pb-5 px-8 bg-white relative flex flex-col"},React.createElement("div",{className:"flex items-start justify-between"},React.createElement("h5",{className:"m-0"},"Build Your Page"),React.createElement("button",{className:"border-0 bg-transparent outline-none focus:outline-none active:outline-none text-nav-inactive hover:text-nav-active cursor-pointer flex items-center justify-center rounded-full p-2 hover:bg-background-tertiary active:bg-background-tertiary transition-colors ease-in-out duration-150",onClick:()=>{e(),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),document.body.classList.remove("ast-block-templates-modal-open")}},React.createElement(f,{className:"w-5 h-5"}))),React.createElement("p",{className:"text-sm font-normal text-body-text mt-2 mb-8"},"Craft your page by selecting designs section by section. Personalize your design and have your page ready in no time."),React.createElement("div",{className:"flex flex-col gap-2 items-center justify-center px-2 pb-8 w-full"},React.createElement("div",{className:"flex justify-around w-full flex-wrap"},React.createElement("div",{className:"flex flex-col divide-y divide-border-primary divide-solid [&>div]:border-x-0"},React.createElement(lb,{trigger:"1. Page Header"},"ZipWP is different from other AI website builders in so many ways. It's free so there's no monthly charge to use it, or the website you build with it."),React.createElement(lb,{trigger:"2. Intro"},"ZipWP is different from other AI website builders in so many ways. It's free so there's no monthly charge to use it, or the website you build with it."),React.createElement(lb,{trigger:"3. Team Member"},"ZipWP is different from other AI website builders in so many ways. It's free so there's no monthly charge to use it, or the website you build with it."),React.createElement(lb,{trigger:"4. Join The Team"},"ZipWP is different from other AI website builders in so many ways. It's free so there's no monthly charge to use it, or the website you build with it."),React.createElement(lb,{trigger:"5. Image Gallery"},"ZipWP is different from other AI website builders in so many ways. It's free so there's no monthly charge to use it, or the website you build with it.")))),React.createElement("div",{className:"w-full flex justify-between items-center gap-2 mt-auto"},React.createElement(ii.A,{variant:"blank",className:"text-secondary-text font-medium leading-4 bg-transparent border-0 text-base",onClick:t},"Previous Step"),React.createElement(ii.A,{variant:"primary",hasPrefixIcon:!0,className:"rounded-md",onClick:()=>{}},React.createElement("span",null,"Build Page"),React.createElement(Ms,{className:"w-4 h-4"})))))},ub=[React.createElement(nb,{key:"type-selection"}),React.createElement(ab,{key:"description"}),React.createElement(cb,{key:"build-page"})],db=()=>{const{togglePopup:e,currentStep:r}=(0,t.A)((e=>{const{getTogglePopup:t,getOnboardingPageAI:r}=e(g.U);return{togglePopup:t(),...r()}}),[]);return(0,i.useEffect)((()=>{if(!0===e){document.body.classList.add("ast-block-templates-modal-open");const e=document.getElementById("ast-block-templates-modal-wrap");if(!e)return;e.classList.add("open")}}),[e]),React.createElement("div",{className:"spectra-ai flex-1 overflow-x-hidden h-[calc(100vh_-_5rem)] bg-white"},React.createElement("div",{className:"w-full h-full flex flex-col mx-auto"},ub[r-1]))},pb=(0,e.A)((0,n.A)((e=>{const{setTogglePopup:t}=e("astra-sites");return{onSetTogglePopup:t}})))((0,i.memo)((({onSetTogglePopup:e})=>((0,i.useEffect)((()=>{wp.data.subscribe((()=>{setTimeout((()=>{(()=>{const t=document.querySelector("#ast-block-templates-button-wrap");if(!t)return null;if(document.getElementById("ast-block-templates-button"))return null;const r=document.createElement("button");r.id="ast-block-templates-button",r.className="components-button is-primary",r.onclick=e,r.innerHTML=ast_block_template_vars.display_button_logo&&""===ast_block_template_vars.white_label_name?`<img\n                src=${"active"===ast_block_template_vars.astra_sites_status||"active"===ast_block_template_vars.astra_sites_pro_status?ast_block_template_vars.st_button_logo:ast_block_template_vars.button_logo}\n                class="logo ${ast_block_template_vars.button_class}"\n                alt="Button Logo"\n            />`:"",r.innerHTML+=ast_block_template_vars.white_label_name?'<span class="logo-btn-label">'+ast_block_template_vars.white_label_name+"</span>":'<span class="logo-btn-label">'+ast_block_template_vars.button_text+"</span>",t.appendChild(r)})()}),100)}))}),[]),null))));o(1726);const mb=()=>(0,ye.createPortal)(React.createElement("div",{id:"headlessui-portal-root",className:"gt-library-styles"},React.createElement("div",null)),document.body),fb=(0,e.A)((0,n.A)((e=>{const{setTogglePopup:t}=e("astra-sites");return{onSetTogglePopup:t}})))((0,i.memo)((({onSetTogglePopup:e})=>{const{onboardingAI:{showOnboarding:n},onboardingPageAI:{showOnboarding:a}}=(0,t.A)((e=>{const{getOnboardingAI:t,getOnboardingPageAI:r}=e(g.U);return{onboardingAI:t(),onboardingPageAI:r()}}),[]),o=(0,Ps.nk)({enter:"fade-in-fwd",exit:"fade-out-bck"}),{toggleOnboardingPageAI:s}=(0,r.A)(g.U);Qy("pages"),Qy("patterns"),(()=>{const{notice:e}=(0,t.A)((e=>{const{getNotice:t}=e(g.U);return{notice:t()}})),r=(0,i.useRef)(null);(0,i.useEffect)((()=>{const{type:t,title:n,message:a}=e;"info"!==t&&"personalize"!==t||r.current||(r.current=(0,Ps.oR)((0,Ts.A)({title:n||"Syncing design library",message:a||"Please wait for a few moment, we are syncing the library"}),Ts.A.getOptions({type:"personalize"===t?"personalize":"sync-lib-start"}))),"success"===t&&r.current&&(Ps.oR.update(r.current,{...Ts.A.getOptions({type:"sync-lib-success"}),render:(0,Ts.A)({title:n||"Successfully synced!",message:a||"Syncing design library is completed"})}),r.current=null),"error"===t&&r.current&&(Ps.oR.update(r.current,{...Ts.A.getOptions({type:"sync-lib-error"}),render:(0,Ts.A)({title:n||"Syncing failed!",message:a||"Syncing design library is failed"})}),r.current=null)}),[e])})();const l=t=>{t.target===document.getElementById("ast-block-templates-modal-wrap")&&(document.body.classList.remove("ast-block-templates-modal-open"),document.getElementById("ast-block-templates-modal-wrap").classList.remove("open"),e())};(0,i.useEffect)((()=>(document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}))),(0,i.useEffect)((()=>(su.on("toggle-onboarding-page-ai",s),()=>{su.off("toggle-onboarding-page-ai",s)})),[]);const c=(0,i.useCallback)((()=>{(0,y.D6)("ast-sites-visible-items"),(0,y.D6)("ast-sites-scroll-position"),(0,y.D6)("ast-pages-scroll-position"),(0,y.D6)("ast-pages-visible-items"),(0,y.D6)("ast-free-ai-content")}),[]);return(0,i.useEffect)((()=>(window.addEventListener("beforeunload",c),()=>window.removeEventListener("beforeunload",c))),[]),React.createElement(i.Fragment,null,React.createElement(pb,null),React.createElement(Ps.N9,{position:Ps.oR.POSITION.TOP_RIGHT,autoClose:!1,closeOnClick:!1,closeButton:({closeToast:e})=>React.createElement("button",{className:"bg-transparent border-0 m-0 p-0 focus:outline-none cursor-pointer flex items-center justify-center mt-2 self-start",onClick:e},React.createElement(f,{className:"w-4 h-4 text-background-primary"})),className:"[&.Toastify\\_\\_toast-container--top-right]:top-[8rem] [&.Toastify\\_\\_toast-container--top-right]:right-[4rem]",bodyClassName:"bg-nav-active flex-row gap-4 items-start !p-2 [&_:last-child]:w-auto [&_:first-child]:!m-0 [&_:first-child]:mr-auto [&_:first-child]:w-10",toastClassName:"bg-nav-active !p-2 !shadow-xlarge !rounded-lg",transition:o,hideProgressBar:!0}),React.createElement("div",{className:"inner"},a?React.createElement(db,null):n?React.createElement(Cg.Provider,null,React.createElement(Jy,null)):React.createElement(i.Fragment,null,React.createElement(eo,null),React.createElement(wu,null))),React.createElement(mb,null))})));var gb=o(5338);o(4473),document.addEventListener("DOMContentLoaded",(function(){wp.data.subscribe((function(){if(setTimeout((function(){!function(){if(!vb&&!document.querySelector(".edit-post-header-toolbar"))return null;if(document.querySelector("#ast-block-templates-button-wrap"))return null;if(ast_block_template_vars.is_white_label)return null;const e=document.createElement("div");e.id="ast-block-templates-button-wrap";let t=document.querySelector(".edit-post-header-toolbar");t||(t=document.querySelector(".edit-site-header-edit-mode__start")),t?.appendChild(e)}(),yb||function(){if(vb&&!document.getElementById("ast-block-templates-button-wrap"))return null;const e=document.getElementById("ast-block-templates-modal-root");if(document.getElementById("ast-block-templates-button")&&e)return null;const t=document.createElement("div");t.id="ast-block-templates-modal-root",t.classList.add("gt-library-styles");const r=document.createElement("div");r.id="ast-block-templates-modal-wrap",r.classList.add(ast_block_template_vars.popup_class,"p-10","backdrop-blur-sm","bg-border-secondary"),r.innerHTML='<div id="ast-block-templates-modal" class="rounded-lg spectra-ai"></div>',e||(t.appendChild(r),document.body.appendChild(t));const n=document.getElementById("ast-block-templates-modal");n&&(yb=(0,gb.H)(n),yb.render(React.createElement(fb,null)))}()}),100),(ast_block_template_vars.open_ai_auth||ast_block_template_vars.credit_purchased)&&!hb&&!bb){const e=document.getElementById("ast-block-templates-button");e&&setTimeout((()=>{hb||(e.click(),wb(),ast_block_template_vars.show_onboarding&&ast_block_template_vars.open_ai_auth&&su.emit("open-onboarding-ai"),hb=!0)}),400)}}))}));let hb=!1,yb=null;const bb=(0,y._9)("ast-import"),vb=document.getElementById("site-editor");function wb(){const e=new URL(window.location.href);["ast_action","token","nonce","sc_order","credit_token","email"].forEach((t=>{e.searchParams.has(t)&&e.searchParams.delete(t)}));const t=e.toString();window.history.replaceState({},"",t)}})()})();