OwlCyberSecurity - MANAGER
Edit File: extendify-launch-c44b2e53dfa093cb4529.js
(()=>{var e,t,r={250:(e,t,r)=>{"use strict";var o=r(196),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useState,i=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=a({inst:{value:r,getSnapshot:t}}),n=o[0].inst,u=o[1];return s((function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})}),[e,r,t]),i((function(){return c(n)&&u({inst:n}),e((function(){c(n)&&u({inst:n})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},139:(e,t,r)=>{"use strict";var o=r(196),n=r(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useSyncExternalStore,s=o.useRef,l=o.useEffect,c=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=o(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(i=e,s=r)}var i,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,r,o,n]);var m=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=m}),[m]),u(m),m}},688:(e,t,r)=>{"use strict";e.exports=r(250)},798:(e,t,r)=>{"use strict";e.exports=r(139)},196:e=>{"use strict";e.exports=window.React},967:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)o.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(a,i),a},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>it,hasStandardBrowserEnv:()=>st,hasStandardBrowserWebWorkerEnv:()=>ct});var t={};n.r(t),n.d(t,{BarChart:()=>Bd,Checkmark:()=>Hd,Design:()=>zd,Donate:()=>Ud,LeftCaret:()=>$d,Logo:()=>Wd,Monetization:()=>Zd,OpenEnvelope:()=>qd,Pencil:()=>Xd,Planner:()=>Yd,PreviewIcon:()=>Gd,PriceTag:()=>Jd,Radio:()=>Kd,RefreshIcon:()=>Qd,RightCaret:()=>ep,School:()=>tp,SearchIcon:()=>rp,Shop:()=>op,Speech:()=>np,Spinner:()=>ap,SpinnerIcon:()=>ip,Ticket:()=>sp});var r=n(196),o=n.t(r,2);const a=window.wp.element,i=window.wp.blockLibrary,s=window.wp.data;var l=n(688);const c=()=>{},u=c(),d=Object,p=e=>e===u,m=e=>"function"==typeof e,h=(e,t)=>({...e,...t}),f=new WeakMap;let g=0;const y=e=>{const t=typeof e,r=e&&e.constructor,o=r==Date;let n,a;if(d(e)!==e||o||r==RegExp)n=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(n=f.get(e),n)return n;if(n=++g+"~",f.set(e,n),r==Array){for(n="@",a=0;a<e.length;a++)n+=y(e[a])+",";f.set(e,n)}if(r==d){n="#";const t=d.keys(e).sort();for(;!p(a=t.pop());)p(e[a])||(n+=a+":"+y(e[a])+",");f.set(e,n)}}return n},w=new WeakMap,b={},v={},x="undefined",E=typeof window!=x,k=typeof document!=x,C=(e,t)=>{const r=w.get(e);return[()=>!p(t)&&e.get(t)||b,o=>{if(!p(t)){const n=e.get(t);t in v||(v[t]=n),r[5](t,h(n,o),n||b)}},r[6],()=>!p(t)&&t in v?v[t]:!p(t)&&e.get(t)||b]};let S=!0;const[P,T]=E&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],L={isOnline:()=>S,isVisible:()=>{const e=k&&document.visibilityState;return p(e)||"hidden"!==e}},M={initFocus:e=>(k&&document.addEventListener("visibilitychange",e),P("focus",e),()=>{k&&document.removeEventListener("visibilitychange",e),T("focus",e)}),initReconnect:e=>{const t=()=>{S=!0,e()},r=()=>{S=!1};return P("online",t),P("offline",r),()=>{T("online",t),T("offline",r)}}},A=!r.useId,N=!E||"Deno"in window,R=e=>E&&typeof window.requestAnimationFrame!=x?window.requestAnimationFrame(e):setTimeout(e,1),O=N?r.useEffect:r.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,V=!N&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),F=e=>{if(m(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t]};let _=0;const j=()=>++_;async function I(...e){const[t,r,o,n]=e,a=h({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{});let i=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=a.throwOnError;if(m(r)){const e=r,o=[],n=t.keys();for(const r of n)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&o.push(r);return Promise.all(o.map(d))}return d(r);async function d(r){const[n]=F(r);if(!n)return;const[d,h]=C(t,n),[f,g,y,b]=w.get(t),v=()=>{const e=f[n];return(m(a.revalidate)?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete y[n],delete b[n],e&&e[0])?e[0](2).then((()=>d().data)):d().data};if(e.length<3)return v();let x,E=o;const k=j();g[n]=[k,0];const S=!p(l),P=d(),T=P.data,L=P._c,M=p(L)?T:L;if(S&&(l=m(l)?l(M,T):l,h({data:l,_c:M})),m(E))try{E=E(M)}catch(e){x=e}if(E&&(e=>m(e.then))(E)){if(E=await E.catch((e=>{x=e})),k!==g[n][0]){if(x)throw x;return E}x&&S&&(e=>"function"==typeof s?s(e):!1!==s)(x)&&(i=!0,h({data:M,_c:u}))}if(i&&!x)if(m(i)){const e=i(E,M);h({data:e,error:u,_c:u})}else h({data:E,error:u,_c:u});if(g[n][1]=j(),Promise.resolve(v()).then((()=>{h({_c:u})})),!x)return E;if(c)throw x}}const B=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},H=(e,t)=>{if(!w.has(e)){const r=h(M,t),o={},n=I.bind(u,e);let a=c;const i={},s=(e,t)=>{const r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,o)=>{e.set(t,r);const n=i[t];if(n)for(const e of n)e(r,o)},d=()=>{if(!w.has(e)&&(w.set(e,[o,{},{},{},n,l,s]),!N)){const t=r.initFocus(setTimeout.bind(u,B.bind(u,o,0))),n=r.initReconnect(setTimeout.bind(u,B.bind(u,o,1)));a=()=>{t&&t(),n&&n(),w.delete(e)}}};return d(),[e,n,d,a]}return[e,w.get(e)[4]]},[z,U]=H(new Map),$=h({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,__,t,r,o)=>{const n=t.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!p(n)&&a>n||setTimeout(r,i,o)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:(e,t)=>y(e)==y(t),isPaused:()=>!1,cache:z,mutate:U,fallback:{}},L),W=(e,t)=>{const r=h(e,t);if(t){const{use:o,fallback:n}=e,{use:a,fallback:i}=t;o&&a&&(r.use=o.concat(a)),n&&i&&(r.fallback=h(n,i))}return r},Z=(0,r.createContext)({}),q=e=>{const{value:t}=e,o=(0,r.useContext)(Z),n=m(t),a=(0,r.useMemo)((()=>n?t(o):t),[n,o,t]),i=(0,r.useMemo)((()=>n?a:W(o,a)),[n,o,a]),s=a&&a.provider,l=(0,r.useRef)(u);s&&!l.current&&(l.current=H(s(i.cache||z),a));const c=l.current;return c&&(i.cache=c[0],i.mutate=c[1]),O((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,r.createElement)(Z.Provider,h(e,{value:i}))},X=E&&window.__SWR_DEVTOOLS_USE__,Y=X?window.__SWR_DEVTOOLS_USE__:[],G=e=>m(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=()=>h($,(0,r.useContext)(Z)),K=Y.concat((e=>(t,r,o)=>{const n=r&&((...e)=>{const[o]=F(t),[,,,n]=w.get(z);if(o.startsWith("$inf$"))return r(...e);const a=n[o];return p(a)?r(...e):(delete n[o],a)});return e(t,n,o)})),Q=e=>function(...t){const r=J(),[o,n,a]=G(t),i=W(r,a);let s=e;const{use:l}=i,c=(l||[]).concat(K);for(let e=c.length;e--;)s=c[e](s);return s(o,n||i.fetcher||null,i)},ee=(e,t,r)=>{const o=t[e]||(t[e]=[]);return o.push(r),()=>{const e=o.indexOf(r);e>=0&&(o[e]=o[o.length-1],o.pop())}};X&&(window.__SWR_DEVTOOLS_REACT__=r);const te=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),re={dedupe:!0},oe=d.defineProperty(q,"defaultValue",{value:$}),ne=Q(((e,t,o)=>{const{cache:n,compare:a,suspense:i,fallbackData:s,revalidateOnMount:c,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=o,[v,x,E,k]=w.get(n),[S,P]=F(e),T=(0,r.useRef)(!1),L=(0,r.useRef)(!1),M=(0,r.useRef)(S),D=(0,r.useRef)(t),V=(0,r.useRef)(o),_=()=>V.current,B=()=>_().isVisible()&&_().isOnline(),[H,z,U,$]=C(n,S),W=(0,r.useRef)({}).current,Z=p(s)?o.fallback[S]:s,q=(e,t)=>{for(const r in W){const o=r;if("data"===o){if(!a(e[o],t[o])){if(!p(e[o]))return!1;if(!a(ae,t[o]))return!1}}else if(t[o]!==e[o])return!1}return!0},X=(0,r.useMemo)((()=>{const e=!!S&&!!t&&(p(c)?!_().isPaused()&&!i&&(!!p(d)||d):c),r=t=>{const r=h(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},o=H(),n=$(),a=r(o),s=o===n?a:r(n);let l=a;return[()=>{const e=r(H());return q(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[n,S]),Y=(0,l.useSyncExternalStore)((0,r.useCallback)((e=>U(S,((t,r)=>{q(r,t)||e()}))),[n,S]),X[0],X[1]),G=!T.current,J=v[S]&&v[S].length>0,K=Y.data,Q=p(K)?Z:K,oe=Y.error,ne=(0,r.useRef)(Q),ae=b?p(K)?ne.current:K:Q,ie=!(J&&!p(oe))&&(G&&!p(c)?c:!_().isPaused()&&(i?!p(Q)&&d:p(Q)||d)),se=!!(S&&t&&G&&ie),le=p(Y.isValidating)?se:Y.isValidating,ce=p(Y.isLoading)?se:Y.isLoading,ue=(0,r.useCallback)((async e=>{const t=D.current;if(!S||!t||L.current||_().isPaused())return!1;let r,n,i=!0;const s=e||{},l=!E[S]||!s.dedupe,c=()=>A?!L.current&&S===M.current&&T.current:S===M.current,d={isValidating:!1,isLoading:!1},h=()=>{z(d)},f=()=>{const e=E[S];e&&e[1]===n&&delete E[S]},g={isValidating:!0};p(H().data)&&(g.isLoading=!0);try{if(l&&(z(g),o.loadingTimeout&&p(H().data)&&setTimeout((()=>{i&&c()&&_().onLoadingSlow(S,o)}),o.loadingTimeout),E[S]=[t(P),j()]),[r,n]=E[S],r=await r,l&&setTimeout(f,o.dedupingInterval),!E[S]||E[S][1]!==n)return l&&c()&&_().onDiscarded(S),!1;d.error=u;const e=x[S];if(!p(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),l&&c()&&_().onDiscarded(S),!1;const s=H().data;d.data=a(s,r)?s:r,l&&c()&&_().onSuccess(r,S,o)}catch(e){f();const t=_(),{shouldRetryOnError:r}=t;t.isPaused()||(d.error=e,l&&c()&&(t.onError(e,S,t),(!0===r||m(r)&&r(e))&&(_().revalidateOnFocus&&_().revalidateOnReconnect&&!B()||t.onErrorRetry(e,S,t,(e=>{const t=v[S];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,h(),!0}),[S,n]),de=(0,r.useCallback)(((...e)=>I(n,M.current,...e)),[]);if(O((()=>{D.current=t,V.current=o,p(K)||(ne.current=K)})),O((()=>{if(!S)return;const e=ue.bind(u,re);let t=0;const r=ee(S,v,((r,o={})=>{if(0==r){const r=Date.now();_().revalidateOnFocus&&r>t&&B()&&(t=r+_().focusThrottleInterval,e())}else if(1==r)_().revalidateOnReconnect&&B()&&e();else{if(2==r)return ue();if(3==r)return ue(o)}}));return L.current=!1,M.current=S,T.current=!0,z({_k:P}),ie&&(p(Q)||N?e():R(e)),()=>{L.current=!0,r()}}),[S]),O((()=>{let e;function t(){const t=m(f)?f(H().data):f;t&&-1!==e&&(e=setTimeout(r,t))}function r(){H().error||!g&&!_().isVisible()||!y&&!_().isOnline()?t():ue(re).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,g,y,S]),(0,r.useDebugValue)(ae),i&&p(Q)&&S){if(!A&&N)throw new Error("Fallback data is required when using suspense in SSR.");D.current=t,V.current=o,L.current=!1;const e=k[S];if(!p(e)){const t=de(e);te(t)}if(!p(oe))throw oe;{const e=ue(re);p(ae)||(e.status="fulfilled",e.value=!0),te(e)}}return{mutate:de,get data(){return W.data=!0,ae},get error(){return W.error=!0,oe},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ce}}})),ae=window.wp.apiFetch;var ie=n.n(ae);const se=window.wp.i18n;function le(e,t){return function(){return e.apply(t,arguments)}}const{toString:ce}=Object.prototype,{getPrototypeOf:ue}=Object,de=(e=>t=>{const r=ce.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),pe=e=>(e=e.toLowerCase(),t=>de(t)===e),me=e=>t=>typeof t===e,{isArray:he}=Array,fe=me("undefined"),ge=pe("ArrayBuffer"),ye=me("string"),we=me("function"),be=me("number"),ve=e=>null!==e&&"object"==typeof e,xe=e=>{if("object"!==de(e))return!1;const t=ue(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ee=pe("Date"),ke=pe("File"),Ce=pe("Blob"),Se=pe("FileList"),Pe=pe("URLSearchParams");function Te(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let o,n;if("object"!=typeof e&&(e=[e]),he(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),a=n.length;let i;for(o=0;o<a;o++)i=n[o],t.call(null,e[i],i,e)}}function Le(e,t){t=t.toLowerCase();const r=Object.keys(e);let o,n=r.length;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ae=e=>!fe(e)&&e!==Me,Ne=(Re="undefined"!=typeof Uint8Array&&ue(Uint8Array),e=>Re&&e instanceof Re);var Re;const Oe=pe("HTMLFormElement"),De=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ve=pe("RegExp"),Fe=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};Te(r,((r,n)=>{let a;!1!==(a=t(r,n,e))&&(o[n]=a||r)})),Object.defineProperties(e,o)},_e="abcdefghijklmnopqrstuvwxyz",je="0123456789",Ie={DIGIT:je,ALPHA:_e,ALPHA_DIGIT:_e+_e.toUpperCase()+je},Be=pe("AsyncFunction"),He={isArray:he,isArrayBuffer:ge,isBuffer:function(e){return null!==e&&!fe(e)&&null!==e.constructor&&!fe(e.constructor)&&we(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||we(e.append)&&("formdata"===(t=de(e))||"object"===t&&we(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ge(e.buffer),t},isString:ye,isNumber:be,isBoolean:e=>!0===e||!1===e,isObject:ve,isPlainObject:xe,isUndefined:fe,isDate:Ee,isFile:ke,isBlob:Ce,isRegExp:Ve,isFunction:we,isStream:e=>ve(e)&&we(e.pipe),isURLSearchParams:Pe,isTypedArray:Ne,isFileList:Se,forEach:Te,merge:function e(){const{caseless:t}=Ae(this)&&this||{},r={},o=(o,n)=>{const a=t&&Le(r,n)||n;xe(r[a])&&xe(o)?r[a]=e(r[a],o):xe(o)?r[a]=e({},o):he(o)?r[a]=o.slice():r[a]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Te(arguments[e],o);return r},extend:(e,t,r,{allOwnKeys:o}={})=>(Te(t,((t,o)=>{r&&we(t)?e[o]=le(t,r):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,o)=>{let n,a,i;const s={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),a=n.length;a-- >0;)i=n[a],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==r&&ue(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:de,kindOfTest:pe,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return-1!==o&&o===r},toArray:e=>{if(!e)return null;if(he(e))return e;let t=e.length;if(!be(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const o=[];for(;null!==(r=e.exec(t));)o.push(r);return o},isHTMLForm:Oe,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:Fe,freezeMethods:e=>{Fe(e,((t,r)=>{if(we(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=e[r];we(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},o=e=>{e.forEach((e=>{r[e]=!0}))};return he(e)?o(e):o(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Le,global:Me,isContextDefined:Ae,ALPHABET:Ie,generateString:(e=16,t=Ie.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r},isSpecCompliantForm:function(e){return!!(e&&we(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,o)=>{if(ve(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const n=he(e)?[]:{};return Te(e,((e,t)=>{const a=r(e,o+1);!fe(a)&&(n[t]=a)})),t[o]=void 0,n}}return e};return r(e,0)},isAsyncFn:Be,isThenable:e=>e&&(ve(e)||we(e))&&we(e.then)&&we(e.catch)};function ze(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n)}He.inherits(ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:He.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ue=ze.prototype,$e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$e[e]={value:e}})),Object.defineProperties(ze,$e),Object.defineProperty(Ue,"isAxiosError",{value:!0}),ze.from=(e,t,r,o,n,a)=>{const i=Object.create(Ue);return He.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ze.call(i,e.message,t,r,o,n),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const We=ze;function Ze(e){return He.isPlainObject(e)||He.isArray(e)}function qe(e){return He.endsWith(e,"[]")?e.slice(0,-2):e}function Xe(e,t,r){return e?e.concat(t).map((function(e,t){return e=qe(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Ye=He.toFlatObject(He,{},null,(function(e){return/^is[A-Z]/.test(e)})),Ge=function(e,t,r){if(!He.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(r=He.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!He.isUndefined(t[e])}))).metaTokens,n=r.visitor||c,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&He.isSpecCompliantForm(t);if(!He.isFunction(n))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(He.isDate(e))return e.toISOString();if(!s&&He.isBlob(e))throw new We("Blob is not supported. Use a Buffer instead.");return He.isArrayBuffer(e)||He.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,n){let s=e;if(e&&!n&&"object"==typeof e)if(He.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=JSON.stringify(e);else if(He.isArray(e)&&function(e){return He.isArray(e)&&!e.some(Ze)}(e)||(He.isFileList(e)||He.endsWith(r,"[]"))&&(s=He.toArray(e)))return r=qe(r),s.forEach((function(e,o){!He.isUndefined(e)&&null!==e&&t.append(!0===i?Xe([r],o,a):null===i?r:r+"[]",l(e))})),!1;return!!Ze(e)||(t.append(Xe(n,r,a),l(e)),!1)}const u=[],d=Object.assign(Ye,{defaultVisitor:c,convertValue:l,isVisitable:Ze});if(!He.isObject(e))throw new TypeError("data must be an object");return function e(r,o){if(!He.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+o.join("."));u.push(r),He.forEach(r,(function(r,a){!0===(!(He.isUndefined(r)||null===r)&&n.call(t,r,He.isString(a)?a.trim():a,o,d))&&e(r,o?o.concat(a):[a])})),u.pop()}}(e),t};function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ke(e,t){this._pairs=[],e&&Ge(e,this,t)}const Qe=Ke.prototype;Qe.append=function(e,t){this._pairs.push([e,t])},Qe.toString=function(e){const t=e?function(t){return e.call(this,t,Je)}:Je;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const et=Ke;function tt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(e,t,r){if(!t)return e;const o=r&&r.encode||tt,n=r&&r.serialize;let a;if(a=n?n(t,r):He.isURLSearchParams(t)?t.toString():new et(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const ot=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){He.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},at={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:et,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},it="undefined"!=typeof window&&"undefined"!=typeof document,st=(lt="undefined"!=typeof navigator&&navigator.product,it&&["ReactNative","NativeScript","NS"].indexOf(lt)<0);var lt;const ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ut={...e,...at},dt=function(e){function t(e,r,o,n){let a=e[n++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=n>=e.length;return a=!a&&He.isArray(o)?o.length:a,s?(He.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!i):(o[a]&&He.isObject(o[a])||(o[a]=[]),t(e,r,o[a],n)&&He.isArray(o[a])&&(o[a]=function(e){const t={},r=Object.keys(e);let o;const n=r.length;let a;for(o=0;o<n;o++)a=r[o],t[a]=e[a];return t}(o[a])),!i)}if(He.isFormData(e)&&He.isFunction(e.entries)){const r={};return He.forEachEntry(e,((e,o)=>{t(function(e){return He.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,r,0)})),r}return null},pt={transitional:nt,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,n=He.isObject(e);if(n&&He.isHTMLForm(e)&&(e=new FormData(e)),He.isFormData(e))return o?JSON.stringify(dt(e)):e;if(He.isArrayBuffer(e)||He.isBuffer(e)||He.isStream(e)||He.isFile(e)||He.isBlob(e))return e;if(He.isArrayBufferView(e))return e.buffer;if(He.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return ut.isNode&&He.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=He.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ge(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||o?(t.setContentType("application/json",!1),function(e,t,r){if(He.isString(e))try{return(0,JSON.parse)(e),He.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pt.transitional,r=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&He.isString(e)&&(r&&!this.responseType||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw We.from(e,We.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};He.forEach(["delete","get","head","post","put","patch"],(e=>{pt.headers[e]={}}));const mt=pt,ht=He.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ft=Symbol("internals");function gt(e){return e&&String(e).trim().toLowerCase()}function yt(e){return!1===e||null==e?e:He.isArray(e)?e.map(yt):String(e)}function wt(e,t,r,o,n){return He.isFunction(o)?o.call(this,t,r):(n&&(t=r),He.isString(t)?He.isString(o)?-1!==t.indexOf(o):He.isRegExp(o)?o.test(t):void 0:void 0)}class bt{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function n(e,t,r){const n=gt(t);if(!n)throw new Error("header name must be a non-empty string");const a=He.findKey(o,n);(!a||void 0===o[a]||!0===r||void 0===r&&!1!==o[a])&&(o[a||t]=yt(e))}const a=(e,t)=>He.forEach(e,((e,r)=>n(e,r,t)));return He.isPlainObject(e)||e instanceof this.constructor?a(e,t):He.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let r,o,n;return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),o=e.substring(n+1).trim(),!r||t[r]&&ht[r]||("set-cookie"===r?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)})),t})(e),t):null!=e&&n(t,e,r),this}get(e,t){if(e=gt(e)){const r=He.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}(e);if(He.isFunction(t))return t.call(this,e,r);if(He.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gt(e)){const r=He.findKey(this,e);return!(!r||void 0===this[r]||t&&!wt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let o=!1;function n(e){if(e=gt(e)){const n=He.findKey(r,e);!n||t&&!wt(0,r[n],n,t)||(delete r[n],o=!0)}}return He.isArray(e)?e.forEach(n):n(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const n=t[r];e&&!wt(0,this[n],n,e,!0)||(delete this[n],o=!0)}return o}normalize(e){const t=this,r={};return He.forEach(this,((o,n)=>{const a=He.findKey(r,n);if(a)return t[a]=yt(o),void delete t[n];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(n):String(n).trim();i!==n&&delete t[n],t[i]=yt(o),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return He.forEach(this,((r,o)=>{null!=r&&!1!==r&&(t[o]=e&&He.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[ft]=this[ft]={accessors:{}}).accessors,r=this.prototype;function o(e){const o=gt(e);t[o]||(function(e,t){const r=He.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+r,{value:function(e,r,n){return this[o].call(this,t,e,r,n)},configurable:!0})}))}(r,e),t[o]=!0)}return He.isArray(e)?e.forEach(o):o(e),this}}bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),He.reduceDescriptors(bt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),He.freezeMethods(bt);const vt=bt;function xt(e,t){const r=this||mt,o=t||r,n=vt.from(o.headers);let a=o.data;return He.forEach(e,(function(e){a=e.call(r,a,n.normalize(),t?t.status:void 0)})),n.normalize(),a}function Et(e){return!(!e||!e.__CANCEL__)}function kt(e,t,r){We.call(this,null==e?"canceled":e,We.ERR_CANCELED,t,r),this.name="CanceledError"}He.inherits(kt,We,{__CANCEL__:!0});const Ct=kt,St=ut.hasStandardBrowserEnv?{write(e,t,r,o,n,a){const i=[e+"="+encodeURIComponent(t)];He.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),He.isString(o)&&i.push("path="+o),He.isString(n)&&i.push("domain="+n),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Pt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Tt=ut.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function o(r){let o=r;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=o(window.location.href),function(e){const t=He.isString(e)?o(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function Lt(e,t){let r=0;const o=function(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=o[i];n||(n=l),r[a]=s,o[a]=l;let u=i,d=0;for(;u!==a;)d+=r[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-n<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n};c[t?"download":"upload"]=!0,e(c)}}const Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let o=e.data;const n=vt.from(e.headers).normalize();let a,i,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(He.isFormData(o))if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if(!1!==(i=n.getContentType())){const[e,...t]=i?i.split(";").map((e=>e.trim())).filter(Boolean):[];n.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(t+":"+r))}const d=Pt(e.baseURL,e.url);function p(){if(!u)return;const o=vt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new We("Request failed with status code "+r.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),c()}),(function(e){r(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:o,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),rt(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(r(new We("Request aborted",We.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new We("Network Error",We.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||nt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new We(t,o.clarifyTimeoutError?We.ETIMEDOUT:We.ECONNABORTED,e,u)),u=null},ut.hasStandardBrowserEnv&&(l&&He.isFunction(l)&&(l=l(e)),l||!1!==l&&Tt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&St.read(e.xsrfCookieName);t&&n.set(e.xsrfHeaderName,t)}void 0===o&&n.setContentType(null),"setRequestHeader"in u&&He.forEach(n.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),He.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Lt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Lt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(r(!t||t.type?new Ct(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);m&&-1===ut.protocols.indexOf(m)?r(new We("Unsupported protocol "+m+":",We.ERR_BAD_REQUEST,e)):u.send(o||null)}))},At={http:null,xhr:Mt};He.forEach(At,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Nt=e=>`- ${e}`,Rt=e=>He.isFunction(e)||null===e||!1===e,Ot=e=>{e=He.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let a=0;a<t;a++){let t;if(r=e[a],o=r,!Rt(r)&&(o=At[(t=String(r)).toLowerCase()],void 0===o))throw new We(`Unknown adapter '${t}'`);if(o)break;n[t||"#"+a]=o}if(!o){const e=Object.entries(n).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(Nt).join("\n"):" "+Nt(e[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o};function Dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ct(null,e)}function Vt(e){return Dt(e),e.headers=vt.from(e.headers),e.data=xt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ot(e.adapter||mt.adapter)(e).then((function(t){return Dt(e),t.data=xt.call(e,e.transformResponse,t),t.headers=vt.from(t.headers),t}),(function(t){return Et(t)||(Dt(e),t&&t.response&&(t.response.data=xt.call(e,e.transformResponse,t.response),t.response.headers=vt.from(t.response.headers))),Promise.reject(t)}))}const Ft=e=>e instanceof vt?{...e}:e;function _t(e,t){t=t||{};const r={};function o(e,t,r){return He.isPlainObject(e)&&He.isPlainObject(t)?He.merge.call({caseless:r},e,t):He.isPlainObject(t)?He.merge({},t):He.isArray(t)?t.slice():t}function n(e,t,r){return He.isUndefined(t)?He.isUndefined(e)?void 0:o(void 0,e,r):o(e,t,r)}function a(e,t){if(!He.isUndefined(t))return o(void 0,t)}function i(e,t){return He.isUndefined(t)?He.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(r,n,a){return a in t?o(r,n):a in e?o(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>n(Ft(e),Ft(t),!0)};return He.forEach(Object.keys(Object.assign({},e,t)),(function(o){const a=l[o]||n,i=a(e[o],t[o],o);He.isUndefined(i)&&a!==s||(r[o]=i)})),r}const jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{jt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const It={};jt.transitional=function(e,t,r){function o(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new We(o(n," has been removed"+(t?" in "+t:"")),We.ERR_DEPRECATED);return t&&!It[n]&&(It[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}};const Bt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const a=o[n],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new We("option "+a+" must be "+r,We.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new We("Unknown option "+a,We.ERR_BAD_OPTION)}},validators:jt},Ht=Bt.validators;class zt{constructor(e){this.defaults=e,this.interceptors={request:new ot,response:new ot}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=_t(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:n}=t;void 0!==r&&Bt.assertOptions(r,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean)},!1),null!=o&&(He.isFunction(o)?t.paramsSerializer={serialize:o}:Bt.assertOptions(o,{encode:Ht.function,serialize:Ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=n&&He.merge(n.common,n[t.method]);n&&He.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete n[e]})),t.headers=vt.concat(a,n);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Vt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let p=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Vt.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rt(Pt((e=_t(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}He.forEach(["delete","get","head","options"],(function(e){zt.prototype[e]=function(t,r){return this.request(_t(r||{},{method:e,url:t,data:(r||{}).data}))}})),He.forEach(["post","put","patch"],(function(e){function t(t){return function(r,o,n){return this.request(_t(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}zt.prototype[e]=t(),zt.prototype[e+"Form"]=t(!0)}));const Ut=zt;class $t{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e,o,n){r.reason||(r.reason=new Ct(e,o,n),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new $t((function(t){e=t}));return{token:t,cancel:e}}}const Wt=$t,Zt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zt).forEach((([e,t])=>{Zt[t]=e}));const qt=Zt,Xt=function e(t){const r=new Ut(t),o=le(Ut.prototype.request,r);return He.extend(o,Ut.prototype,r,{allOwnKeys:!0}),He.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return e(_t(t,r))},o}(mt);Xt.Axios=Ut,Xt.CanceledError=Ct,Xt.CancelToken=Wt,Xt.isCancel=Et,Xt.VERSION="1.6.8",Xt.toFormData=Ge,Xt.AxiosError=We,Xt.Cancel=Xt.CanceledError,Xt.all=function(e){return Promise.all(e)},Xt.spread=function(e){return function(t){return e.apply(null,t)}},Xt.isAxiosError=function(e){return He.isObject(e)&&!0===e.isAxiosError},Xt.mergeConfig=_t,Xt.AxiosHeaders=vt,Xt.formToJSON=e=>dt(He.isHTMLForm(e)?new FormData(e):e),Xt.getAdapter=Ot,Xt.HttpStatusCode=qt,Xt.default=Xt;const Yt=Xt.create({baseURL:window.extSharedData.root,headers:{"X-WP-Nonce":window.extSharedData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Launch":!0,"X-Extendify":!0}});Yt.interceptors.request.use((e=>Kt(e)),(e=>e)),Yt.interceptors.response.use((e=>Gt(e)),(e=>Jt(e)));const Gt=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Jt=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(Gt(e.response))},Kt=e=>(e.headers["X-Extendify-Launch-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Launch-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Qt=window.extOnbData.wpRoot,er=(e,t)=>Yt.post("launch/options",{option:e,value:t}),tr=async e=>{const{data:t}=await Yt.get("launch/options",{params:{option:e}});return t},rr=e=>Yt.post(`${Qt}wp/v2/pages`,e),or=e=>Yt.get(`${Qt}wp/v2/pages/${e}`),nr=async e=>{if(e?.wordpressSlug){try{const t=await Yt.post(`${Qt}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await ar(e)}catch(e){}}},ar=async e=>{const t=new URL(`${Qt}wp/v2/plugins`),r=new URLSearchParams(t.searchParams);r.set("search",e.wordpressSlug),t.search=r.toString();const o=await Yt.get(t.toString()),n=o?.[0]?.plugin;if(!n)throw new Error("Plugin not found");return await Yt.post(`${Qt}wp/v2/plugins/${n}`,{status:"active"})},ir=(e,t)=>Yt.post(`${Qt}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish", // translators: Launch is the product name. Unless otherwise specified by the glossary, do not translate this name. description:(0,se.__)("Added by Launch","extendify-local"),content:t}),sr=["header","header-with-center-nav-and-social","header-title-social-nav"],lr=["footer","footer-social-icons","footer-with-center-logo-and-menu"],cr=async()=>{const e=await Yt.get(Qt+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return[...e].sort((()=>Math.random()-.5))},ur=window.wp.components;function dr(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function pr(){let e=[],t={addEventListener:(e,r,o,n)=>(e.addEventListener(r,o,n),t.add((()=>e.removeEventListener(r,o,n)))),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 dr((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add((()=>{Object.assign(e.style,{[t]:o})}))},group(e){let t=pr();return e(t),this.add((()=>t.dispose()))},add: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 mr(){let[e]=(0,r.useState)(pr);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}var hr=Object.defineProperty,fr=(e,t,r)=>(((e,t,r)=>{t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let gr=new class{constructor(){fr(this,"current",this.detect()),fr(this,"handoffState","pending"),fr(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}},yr=(e,t)=>{gr.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function wr(e){let t=(0,r.useRef)(e);return yr((()=>{t.current=e}),[e]),t}let br=function(e){let t=wr(e);return r.useCallback(((...e)=>t.current(...e)),[t])};function vr(e,t,o,n){let a=wr(o);(0,r.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])}function xr(){let e=(0,r.useRef)(!1);return yr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Er(e){let t=br(e),o=(0,r.useRef)(!1);(0,r.useEffect)((()=>(o.current=!1,()=>{o.current=!0,dr((()=>{o.current&&t()}))})),[t])}function kr(e){return gr.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Cr(...e){return(0,r.useMemo)((()=>kr(...e)),[...e])}function Sr(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in o&&o.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(gr.isHandoffComplete);return t&&!1===gr.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>gr.handoff()),[]),!e&&t}let Pr=Symbol();function Tr(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let o=br((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[Pr])))?void 0:o}function Lr(e,t,o){let n=wr(t);(0,r.useEffect)((()=>{function t(e){n.current(e)}return window.addEventListener(e,t,o),()=>window.removeEventListener(e,t,o)}),[e,o])}var Mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Mr||{});function Ar(e,t){let o=(0,r.useRef)([]),n=br(e);(0,r.useEffect)((()=>{let e=[...o.current];for(let[r,a]of t.entries())if(o.current[r]!==a){let r=n(t,e);return o.current=t,r}}),[n,...t])}function Nr(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Rr(e,t,...r){if(e in t){let o=t[e];return"function"==typeof o?o(...r):o}let o=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(o,Rr),o}var Or=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Or||{}),Dr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Dr||{});function Vr({ourProps:e,theirProps:t,slot:r,defaultTag:o,features:n,visible:a=!0,name:i,mergeRefs:s}){s=null!=s?s:_r;let l=jr(t,e);if(a)return Fr(l,r,o,i,s);let c=null!=n?n:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Fr(t,r,o,i,s)}if(1&c){let{unmount:e=!0,...t}=l;return Rr(e?0:1,{0:()=>null,1:()=>Fr({...t,hidden:!0,style:{display:"none"}},r,o,i,s)})}return Fr(l,r,o,i,s)}function Fr(e,t={},o,n,a){let{as:i=o,children:s,refName:l="ref",...c}=Hr(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));let p={};if(t){let e=!1,r=[];for(let[o,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&r.push(o);e&&(p["data-headlessui-state"]=r.join(" "))}if(i===r.Fragment&&Object.keys(Br(c)).length>0){if(!(0,r.isValidElement)(d)||Array.isArray(d)&&d.length>1)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(c).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"));let e=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Nr(null==e?void 0:e.className(...t),c.className):Nr(null==e?void 0:e.className,c.className),o=t?{className:t}:{};return(0,r.cloneElement)(d,Object.assign({},jr(d.props,Br(Hr(c,["ref"]))),p,u,{ref:a(d.ref,u.ref)},o))}return(0,r.createElement)(i,Object.assign({},Hr(c,["ref"]),i!==r.Fragment&&u,i!==r.Fragment&&p),d)}function _r(...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 jr(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let o of e)for(let e in o)e.startsWith("on")&&"function"==typeof o[e]?(null!=r[e]||(r[e]=[]),r[e].push(o[e])):t[e]=o[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...o){let n=r[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...o)}}});return t}function Ir(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Br(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Hr(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var zr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zr||{});let Ur=Ir((function(e,t){var r;let{features:o=1,...n}=e;return Vr({ourProps:{ref:t,"aria-hidden":2==(2&o)||(null!=(r=n["aria-hidden"])?r: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==(4&o)&&2!=(2&o)&&{display:"none"}}},theirProps:n,slot:{},defaultTag:"div",name:"Hidden"})})),$r=[];!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&$r[0]!==e.target&&($r.unshift(e.target),$r=$r.filter((e=>null!=e&&e.isConnected)),$r.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())}();let Wr=["[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(",");var Zr,qr,Xr=(e=>(e[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))(Xr||{}),Yr=((qr=Yr||{})[qr.Error=0]="Error",qr[qr.Overflow=1]="Overflow",qr[qr.Success=2]="Success",qr[qr.Underflow=3]="Underflow",qr),Gr=((Zr=Gr||{})[Zr.Previous=-1]="Previous",Zr[Zr.Next=1]="Next",Zr);var Jr=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Jr||{});var Kr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Kr||{});function Qr(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 eo=["textarea","input"].join(",");function to(e,t,{sorted:r=!0,relativeTo:o=null,skipElements:n=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?r?function(e,t=(e=>e)){return e.slice().sort(((e,r)=>{let o=t(e),n=t(r);if(null===o||null===n)return 0;let a=o.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Wr)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);n.length>0&&i.length>1&&(i=i.filter((e=>!n.includes(e)))),o=null!=o?o:a.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,i.indexOf(o))-1;if(4&t)return Math.max(0,i.indexOf(o))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=i.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=i[e],null==s||s.focus(u),d+=l}while(s!==a.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,eo))&&r}(s)&&s.select(),2}function ro(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}var oo=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(oo||{});let no=Ir((function(e,t){let o=(0,r.useRef)(null),n=Tr(o,t),{initialFocus:a,containers:i,features:s=30,...l}=e;Sr()||(s=1);let c=Cr(o);io({ownerDocument:c},Boolean(16&s));let u=function({ownerDocument:e,container:t,initialFocus:o},n){let a=(0,r.useRef)(null),i=xr();return Ar((()=>{if(!n)return;let r=t.current;r&&dr((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t)return void(a.current=t)}else if(r.contains(t))return void(a.current=t);null!=o&&o.current?Qr(o.current):to(r,Xr.First)===Yr.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==e?void 0:e.activeElement}))}),[n]),a}({ownerDocument:c,container:o,initialFocus:a},Boolean(2&s));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:o},n){let a=xr();vr(null==e?void 0:e.defaultView,"focus",(e=>{if(!n||!a.current)return;let i=ro(r);t.current instanceof HTMLElement&&i.add(t.current);let s=o.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?so(i,l)?(o.current=l,Qr(l)):(e.preventDefault(),e.stopPropagation(),Qr(s)):Qr(o.current)}),!0)}({ownerDocument:c,container:o,containers:i,previousActiveElement:u},Boolean(8&s));let d=function(){let e=(0,r.useRef)(0);return Lr("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),p=br((e=>{let t=o.current;t&&Rr(d.current,{[Mr.Forwards]:()=>{to(t,Xr.First,{skipElements:[e.relatedTarget]})},[Mr.Backwards]:()=>{to(t,Xr.Last,{skipElements:[e.relatedTarget]})}})})),m=mr(),h=(0,r.useRef)(!1),f={ref:n,onKeyDown(e){"Tab"==e.key&&(h.current=!0,m.requestAnimationFrame((()=>{h.current=!1})))},onBlur(e){let t=ro(i);o.current instanceof HTMLElement&&t.add(o.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(so(t,r)||(h.current?to(o.current,Rr(d.current,{[Mr.Forwards]:()=>Xr.Next,[Mr.Backwards]:()=>Xr.Previous})|Xr.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Qr(e.target)))}};return r.createElement(r.Fragment,null,Boolean(4&s)&&r.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:zr.Focusable}),Vr({ourProps:f,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&r.createElement(Ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:zr.Focusable}))})),ao=Object.assign(no,{features:oo});function io({ownerDocument:e},t){let o=function(e=!0){let t=(0,r.useRef)($r.slice());return Ar((([e],[r])=>{!0===r&&!1===e&&dr((()=>{t.current.splice(0)})),!1===r&&!0===e&&(t.current=$r.slice())}),[e,$r,t]),br((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Ar((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Qr(o())}),[t]),Er((()=>{t&&Qr(o())}))}function so(e,t){for(let r of e)if(r.contains(t))return!0;return!1}const lo=window.ReactDOM;let co=(0,r.createContext)(!1);function uo(){return(0,r.useContext)(co)}function po(e){return r.createElement(co.Provider,{value:e.force},e.children)}let mo=r.Fragment,ho=r.Fragment,fo=(0,r.createContext)(null),go=(0,r.createContext)(null),yo=Ir((function(e,t){let o=e,n=(0,r.useRef)(null),a=Tr(function(e,t=!0){return Object.assign(e,{[Pr]:t})}((e=>{n.current=e})),t),i=Cr(n),s=function(e){let t=uo(),o=(0,r.useContext)(fo),n=Cr(e),[a,i]=(0,r.useState)((()=>{if(!t&&null!==o||gr.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let r=n.createElement("div");return r.setAttribute("id","headlessui-portal-root"),n.body.appendChild(r)}));return(0,r.useEffect)((()=>{null!==a&&(null!=n&&n.body.contains(a)||null==n||n.body.appendChild(a))}),[a,n]),(0,r.useEffect)((()=>{t||null!==o&&i(o.current)}),[o,i,t]),a}(n),[l]=(0,r.useState)((()=>{var e;return gr.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=(0,r.useContext)(go),u=Sr();return yr((()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))}),[s,l]),yr((()=>{if(l&&c)return c.register(l)}),[c,l]),Er((()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),u&&s&&l?(0,lo.createPortal)(Vr({ourProps:{ref:a},theirProps:o,defaultTag:mo,name:"Portal"}),l):null})),wo=Ir((function(e,t){let{target:o,...n}=e,a={ref:Tr(t)};return r.createElement(fo.Provider,{value:o},Vr({ourProps:a,theirProps:n,defaultTag:ho,name:"Popover.Group"}))})),bo=Object.assign(yo,{Group:wo});const vo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:xo,useEffect:Eo,useLayoutEffect:ko,useDebugValue:Co}=o;function So(e){const t=e.getSnapshot,r=e.value;try{const e=t();return!vo(r,e)}catch{return!0}}const Po="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,r){return t()}:function(e,t,r){const o=t(),[{inst:n},a]=xo({inst:{value:o,getSnapshot:t}});return ko((()=>{n.value=o,n.getSnapshot=t,So(n)&&a({inst:n})}),[e,o,t]),Eo((()=>(So(n)&&a({inst:n}),e((()=>{So(n)&&a({inst:n})})))),[e]),Co(o),o},To="useSyncExternalStore"in o?(e=>e.useSyncExternalStore)(o):Po;function Lo(){let e;return{before({doc:t}){var r;let o=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-o.clientWidth},after({doc:t,d:r}){let o=t.documentElement,n=o.clientWidth-o.offsetWidth,a=e-n;r.style(o,"paddingRight",`${a}px`)}}}function Mo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ao(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let No=function(e,t){let r=new Map,o=new Set;return{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e,...n){let a=t[e].call(r,...n);a&&(r=a,o.forEach((e=>e())))}}}(0,{PUSH(e,t){var r;let o=null!=(r=this.get(e))?r:{doc:e,count:0,d:pr(),meta:new Set};return o.count++,o.meta.add(t),this.set(e,o),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 o={doc:e,d:t,meta:Ao(r)},n=[Mo()?{before({doc:e,d:t,meta:r}){function o(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=pr();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let n=null!=(r=window.scrollY)?r:window.pageYOffset,a=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),i=e.querySelector(n);i&&!o(i)&&(a=i)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let r=e.target;for(;r.parentElement&&o(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(o(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;n!==t&&window.scrollTo(0,n),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)}))}))}}:{},Lo(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach((({before:e})=>null==e?void 0:e(o))),n.forEach((({after:e})=>null==e?void 0:e(o)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Ro(e,t,r){let o=function(e){return To(e.subscribe,e.getSnapshot,e.getSnapshot)}(No),n=e?o.get(e):void 0,a=!!n&&n.count>0;return yr((()=>{if(e&&t)return No.dispatch("PUSH",e,r),()=>No.dispatch("POP",e,r)}),[t,e]),a}var Oo;No.subscribe((()=>{let e=No.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),o=0!==r.count;(o&&!e||!o&&e)&&No.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&No.dispatch("TEARDOWN",r)}}));let Do=null!=(Oo=r.useId)?Oo:function(){let e=Sr(),[t,o]=r.useState(e?()=>gr.nextId():null);return yr((()=>{null===t&&o(gr.nextId())}),[t]),null!=t?""+t:void 0},Vo=new Map,Fo=new Map;function _o(e,t=!0){yr((()=>{var r;if(!t)return;let o="function"==typeof e?e():e.current;if(!o)return;let n=null!=(r=Fo.get(o))?r:0;return Fo.set(o,n+1),0!==n||(Vo.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0),function(){var e;if(!o)return;let t=null!=(e=Fo.get(o))?e:1;if(1===t?Fo.delete(o):Fo.set(o,t-1),1!==t)return;let r=Vo.get(o);r&&(null===r["aria-hidden"]?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",r["aria-hidden"]),o.inert=r.inert,Vo.delete(o))}}),[e,t])}function jo(e,t,o){let n=wr(t);(0,r.useEffect)((()=>{function t(e){n.current(e)}return document.addEventListener(e,t,o),()=>document.removeEventListener(e,t,o)}),[e,o])}function Io(e,t,o=!0){let n=(0,r.useRef)(!1);function a(r,o){if(!n.current||r.defaultPrevented)return;let a=o(r);if(null===a||!a.getRootNode().contains(a)||!a.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||r.composed&&r.composedPath().includes(t))return}return!function(e,t=0){var r;return e!==(null==(r=kr(e))?void 0:r.body)&&Rr(t,{0:()=>e.matches(Wr),1(){let t=e;for(;null!==t;){if(t.matches(Wr))return!0;t=t.parentElement}return!1}})}(a,Jr.Loose)&&-1!==a.tabIndex&&r.preventDefault(),t(r,a)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{n.current=o}))}),[o]);let i=(0,r.useRef)(null);jo("pointerdown",(e=>{var t,r;n.current&&(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),jo("mousedown",(e=>{var t,r;n.current&&(i.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)}),!0),jo("click",(e=>{Mo()||/Android/gi.test(window.navigator.userAgent)||i.current&&(a(e,(()=>i.current)),i.current=null)}),!0),jo("touchend",(e=>a(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Lr("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}let Bo=(0,r.createContext)(null);Bo.displayName="OpenClosedContext";var Ho=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ho||{});function zo(){return(0,r.useContext)(Bo)}function Uo({value:e,children:t}){return r.createElement(Bo.Provider,{value:e},t)}let $o=(0,r.createContext)((()=>{}));$o.displayName="StackContext";var Wo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Wo||{});function Zo({children:e,onUpdate:t,type:o,element:n,enabled:a}){let i=(0,r.useContext)($o),s=br(((...e)=>{null==t||t(...e),i(...e)}));return yr((()=>{let e=void 0===a||!0===a;return e&&s(0,o,n),()=>{e&&s(1,o,n)}}),[s,o,n,a]),r.createElement($o.Provider,{value:s},e)}let qo=(0,r.createContext)(null);function Xo(){let e=(0,r.useContext)(qo);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,Xo),e}return e}let Yo=Ir((function(e,t){let r=Do(),{id:o=`headlessui-description-${r}`,...n}=e,a=Xo(),i=Tr(t);return yr((()=>a.register(o)),[o,a.register]),Vr({ourProps:{ref:i,...a.props,id:o},theirProps:n,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})})),Go=Object.assign(Yo,{});var Jo=(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))(Jo||{}),Ko=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ko||{}),Qo=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Qo||{});let en={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},tn=(0,r.createContext)(null);function rn(e){let t=(0,r.useContext)(tn);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,rn),t}return t}function on(e,t){return Rr(t.type,en,e,t)}tn.displayName="DialogContext";let nn=Or.RenderStrategy|Or.Static,an=Ir((function(e,t){let o=Do(),{id:n=`headlessui-dialog-${o}`,open:a,onClose:i,initialFocus:s,role:l="dialog",__demoMode:c=!1,...u}=e,[d,p]=(0,r.useState)(0),m=(0,r.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 h=zo();void 0===a&&null!==h&&(a=(h&Ho.Open)===Ho.Open);let f=(0,r.useRef)(null),g=Tr(f,t),y=Cr(f),w=e.hasOwnProperty("open")||null!==h,b=e.hasOwnProperty("onClose");if(!w&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof a)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${a}`);if("function"!=typeof i)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let v=a?0:1,[x,E]=(0,r.useReducer)(on,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),k=br((()=>i(!1))),C=br((e=>E({type:0,id:e}))),S=!!Sr()&&!c&&0===v,P=d>1,T=null!==(0,r.useContext)(tn),[L,M]=function(){let e=(0,r.useContext)(go),t=(0,r.useRef)([]),o=br((r=>(t.current.push(r),e&&e.register(r),()=>n(r)))),n=br((r=>{let o=t.current.indexOf(r);-1!==o&&t.current.splice(o,1),e&&e.unregister(r)})),a=(0,r.useMemo)((()=>({register:o,unregister:n,portals:t})),[o,n,t]);return[t,(0,r.useMemo)((()=>function({children:e}){return r.createElement(go.Provider,{value:a},e)}),[a])]}(),A={get current(){var e;return null!=(e=x.panelRef.current)?e:f.current}},{resolveContainers:N,mainTreeNodeRef:R,MainTreeNode:O}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){var n;let a=(0,r.useRef)(null!=(n=null==o?void 0:o.current)?n:null),i=Cr(a),s=br((()=>{var r,o,n;let s=[];for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"current"in t&&t.current instanceof HTMLElement&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(r=null==i?void 0:i.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(a.current)||e.contains(null==(n=null==(o=a.current)?void 0:o.getRootNode())?void 0:n.host)||s.some((t=>e.contains(t)))||s.push(e));return s}));return{resolveContainers:s,contains:br((e=>s().some((t=>t.contains(e))))),mainTreeNodeRef:a,MainTreeNode:(0,r.useMemo)((()=>function(){return null!=o?null:r.createElement(Ur,{features:zr.Hidden,ref:a})}),[a,o])}}({portals:L,defaultContainers:[A]}),D=P?"parent":"leaf",V=null!==h&&(h&Ho.Closing)===Ho.Closing,F=!T&&!V&&S,_=(0,r.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==y?void 0:y.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(R.current)&&e instanceof HTMLElement)))?t:null}),[R]);_o(_,F);let j=!!P||S,I=(0,r.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==y?void 0:y.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(R.current)&&e instanceof HTMLElement)))?t:null}),[R]);_o(I,j),Io(N,k,!(!S||P));let B=!(P||0!==v);vr(null==y?void 0:y.defaultView,"keydown",(e=>{B&&(e.defaultPrevented||e.key===Jo.Escape&&(e.preventDefault(),e.stopPropagation(),k()))})),function(e,t,r=(()=>[document.body])){Ro(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}}))}(y,!(V||0!==v||T),N),(0,r.useEffect)((()=>{if(0!==v||!f.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&k()}}));return e.observe(f.current),()=>e.disconnect()}),[v,f,k]);let[H,z]=function(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let o=br((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),o=r.indexOf(e);return-1!==o&&r.splice(o,1),r}))))),n=(0,r.useMemo)((()=>({register:o,slot:e.slot,name:e.name,props:e.props})),[o,e.slot,e.name,e.props]);return r.createElement(qo.Provider,{value:n},e.children)}),[t])]}(),U=(0,r.useMemo)((()=>[{dialogState:v,close:k,setTitleId:C},x]),[v,x,k,C]),$=(0,r.useMemo)((()=>({open:0===v})),[v]),W={ref:g,id:n,role:l,"aria-modal":0===v||void 0,"aria-labelledby":x.titleId,"aria-describedby":H};return r.createElement(Zo,{type:"Dialog",enabled:0===v,element:f,onUpdate:br(((e,t)=>{"Dialog"===t&&Rr(e,{[Wo.Add]:()=>p((e=>e+1)),[Wo.Remove]:()=>p((e=>e-1))})}))},r.createElement(po,{force:!0},r.createElement(bo,null,r.createElement(tn.Provider,{value:U},r.createElement(bo.Group,{target:f},r.createElement(po,{force:!1},r.createElement(z,{slot:$,name:"Dialog.Description"},r.createElement(ao,{initialFocus:s,containers:N,features:S?Rr(D,{parent:ao.features.RestoreFocus,leaf:ao.features.All&~ao.features.FocusLock}):ao.features.None},r.createElement(M,null,Vr({ourProps:W,theirProps:u,slot:$,defaultTag:"div",features:nn,visible:0===v,name:"Dialog"}))))))))),r.createElement(O,null))})),sn=Ir((function(e,t){let o=Do(),{id:n=`headlessui-dialog-backdrop-${o}`,...a}=e,[{dialogState:i},s]=rn("Dialog.Backdrop"),l=Tr(t);(0,r.useEffect)((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let c=(0,r.useMemo)((()=>({open:0===i})),[i]);return r.createElement(po,{force:!0},r.createElement(bo,null,Vr({ourProps:{ref:l,id:n,"aria-hidden":!0},theirProps:a,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),ln=Ir((function(e,t){let o=Do(),{id:n=`headlessui-dialog-panel-${o}`,...a}=e,[{dialogState:i},s]=rn("Dialog.Panel"),l=Tr(t,s.panelRef),c=(0,r.useMemo)((()=>({open:0===i})),[i]),u=br((e=>{e.stopPropagation()}));return Vr({ourProps:{ref:l,id:n,onClick:u},theirProps:a,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),cn=Ir((function(e,t){let o=Do(),{id:n=`headlessui-dialog-overlay-${o}`,...a}=e,[{dialogState:i,close:s}]=rn("Dialog.Overlay"),l=Tr(t),c=br((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let o=""===(null==t?void 0:t.getAttribute("disabled"));return(!o||!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))&&o}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}));return Vr({ourProps:{ref:l,id:n,"aria-hidden":!0,onClick:c},theirProps:a,slot:(0,r.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),un=Ir((function(e,t){let o=Do(),{id:n=`headlessui-dialog-title-${o}`,...a}=e,[{dialogState:i,setTitleId:s}]=rn("Dialog.Title"),l=Tr(t);(0,r.useEffect)((()=>(s(n),()=>s(null))),[n,s]);let c=(0,r.useMemo)((()=>({open:0===i})),[i]);return Vr({ourProps:{ref:l,id:n},theirProps:a,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),dn=Object.assign(an,{Backdrop:sn,Panel:ln,Overlay:cn,Title:un,Description:Go});var pn=n(967),mn=n.n(pn);const hn="undefined"!=typeof document,fn=hn?r.useLayoutEffect:r.useEffect;function gn(){const e=(0,r.useRef)(!1);return fn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}const yn=e=>e;class wn{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 bn=["prepare","read","update","preRender","render","postRender"],{schedule:vn,cancel:xn,state:En,steps:kn}=function(e,t){let r=!1,o=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=bn.reduce(((e,t)=>(e[t]=function(e){let t=new wn,r=new wn,o=0,n=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&n,c=l?t:r;return a&&i.add(e),c.add(e)&&l&&n&&(o=t.order.length),e},cancel:e=>{r.remove(e),i.delete(e)},process:l=>{if(n)a=!0;else{if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let r=0;r<o;r++){const o=t.order[r];o(l),i.has(o)&&(s.schedule(o),e())}n=!1,a&&(a=!1,s.process(l))}}};return s}((()=>r=!0)),e)),{}),i=e=>a[e].process(n),s=()=>{const t=performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(t-n.timestamp,40),1),n.timestamp=t,n.isProcessing=!0,bn.forEach(i),n.isProcessing=!1,r&&(o=!1,e(s))},l=bn.reduce(((t,i)=>{const l=a[i];return t[i]=(t,a=!1,i=!1)=>(r||(r=!0,o=!0,n.isProcessing||e(s)),l.schedule(t,a,i)),t}),{});return{schedule:l,cancel:e=>bn.forEach((t=>a[t].cancel(e))),state:n,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:yn),Cn=(0,r.createContext)(null);function Sn(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}class Pn extends r.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 Tn({children:e,isPresent:t}){const o=(0,r.useId)(),n=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)((()=>{const{width:e,height:r,top:i,left:s}=a.current;if(t||!n.current||!e||!r)return;n.current.dataset.motionPopId=o;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${r}px !important;\n top: ${i}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),r.createElement(Pn,{isPresent:t,childRef:n,sizeRef:a},r.cloneElement(e,{ref:n}))}const Ln=({children:e,initial:t,isPresent:o,onExitComplete:n,custom:a,presenceAffectsLayout:i,mode:s})=>{const l=Sn(Mn),c=(0,r.useId)(),u=(0,r.useMemo)((()=>({id:c,initial:t,isPresent:o,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))})),i?void 0:[o]);return(0,r.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[o]),r.useEffect((()=>{!o&&!l.size&&n&&n()}),[o]),"popLayout"===s&&(e=r.createElement(Tn,{isPresent:o},e)),r.createElement(Cn.Provider,{value:u},e)};function Mn(){return new Map}const An=(0,r.createContext)({});let Nn=yn,Rn=yn;const On=e=>e.key||"",Dn=({children:e,custom:t,initial:o=!0,onExitComplete:n,exitBeforeEnter:a,presenceAffectsLayout:i=!0,mode:s="sync"})=>{Rn(!a,"Replace exitBeforeEnter with mode='wait'");const l=(0,r.useContext)(An).forceRender||function(){const e=gn(),[t,o]=(0,r.useState)(0),n=(0,r.useCallback)((()=>{e.current&&o(t+1)}),[t]);return[(0,r.useCallback)((()=>vn.postRender(n)),[n]),t]}()[0],c=gn(),u=function(e){const t=[];return r.Children.forEach(e,(e=>{(0,r.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const p=(0,r.useRef)(new Map).current,m=(0,r.useRef)(d),h=(0,r.useRef)(new Map).current,f=(0,r.useRef)(!0);var g;if(fn((()=>{f.current=!1,function(e,t){e.forEach((e=>{const r=On(e);t.set(r,e)}))}(u,h),m.current=d})),g=()=>{f.current=!0,h.clear(),p.clear()},(0,r.useEffect)((()=>()=>g()),[]),f.current)return r.createElement(r.Fragment,null,d.map((e=>r.createElement(Ln,{key:On(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:i,mode:s},e))));d=[...d];const y=m.current.map(On),w=u.map(On),b=y.length;for(let e=0;e<b;e++){const t=y[e];-1!==w.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach(((e,o)=>{if(-1!==w.indexOf(o))return;const a=h.get(o);if(!a)return;const f=y.indexOf(o);let g=e;if(!g){const e=()=>{h.delete(o),p.delete(o);const e=m.current.findIndex((e=>e.key===o));if(m.current.splice(e,1),!p.size){if(m.current=u,!1===c.current)return;l(),n&&n()}};g=r.createElement(Ln,{key:On(a),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s},a),p.set(o,g)}d.splice(f,0,g)})),d=d.map((e=>{const t=e.key;return p.has(t)?e:r.createElement(Ln,{key:On(e),isPresent:!0,presenceAffectsLayout:i,mode:s},e)})),r.createElement(r.Fragment,null,p.size?d:d.map((e=>(0,r.cloneElement)(e))))},Vn=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fn=(0,r.createContext)({}),jn=(0,r.createContext)({strict:!1});function In(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Bn(e){return"string"==typeof e||Array.isArray(e)}function Hn(e){return"object"==typeof e&&"function"==typeof e.start}const zn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Un=["initial",...zn];function $n(e){return Hn(e.animate)||Un.some((t=>Bn(e[t])))}function Wn(e){return Boolean($n(e)||e.variants)}function Zn(e){return Array.isArray(e)?e.join(" "):e}const qn={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"]},Xn={};for(const e in qn)Xn[e]={isEnabled:t=>qn[e].some((e=>!!t[e]))};const Yn=(0,r.createContext)({}),Gn=Symbol.for("motionComponentSymbol");function Jn({preloadedFeatures:e,createVisualElement:t,useRender:o,useVisualState:n,Component:a}){e&&function(e){for(const t in e)Xn[t]={...Xn[t],...e[t]}}(e);const i=(0,r.forwardRef)((function(i,s){let l;const c={...(0,r.useContext)(Vn),...i,layoutId:Kn(i)},{isStatic:u}=c,d=function(e){const{initial:t,animate:o}=function(e,t){if($n(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Bn(t)?t:void 0,animate:Bn(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(Fn));return(0,r.useMemo)((()=>({initial:t,animate:o})),[Zn(t),Zn(o)])}(i),p=n(i,u);if(!u&&hn){d.visualElement=function(e,t,o,n){const{visualElement:a}=(0,r.useContext)(Fn),i=(0,r.useContext)(jn),s=(0,r.useContext)(Cn),l=(0,r.useContext)(Vn).reducedMotion,c=(0,r.useRef)();n=n||i.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:a,props:o,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,r.useInsertionEffect)((()=>{u&&u.update(o,s)}));const d=(0,r.useRef)(Boolean(window.HandoffAppearAnimations));return fn((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,r.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(a,p,c,t);const o=(0,r.useContext)(Yn),n=(0,r.useContext)(jn).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,n,e,o))}return r.createElement(Fn.Provider,{value:d},l&&d.visualElement?r.createElement(l,{visualElement:d.visualElement,...c}):null,o(a,i,function(e,t,o){return(0,r.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),o&&("function"==typeof o?o(r):In(o)&&(o.current=r))}),[t])}(p,d.visualElement,s),p,u,d.visualElement))}));return i[Gn]=a,i}function Kn({layoutId:e}){const t=(0,r.useContext)(An).id;return t&&void 0!==e?t+"-"+e:e}function Qn(e){function t(t,r={}){return Jn(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const ea=["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 ta(e){return"string"==typeof e&&!e.includes("-")&&!!(ea.indexOf(e)>-1||/[A-Z]/.test(e))}const ra={},oa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],na=new Set(oa);function aa(e,{layout:t,layoutId:r}){return na.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!ra[e]||"opacity"===e)}const ia=e=>Boolean(e&&e.getVelocity),sa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},la=oa.length,ca=e=>t=>"string"==typeof t&&t.startsWith(e),ua=ca("--"),da=ca("var(--"),pa=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ma=(e,t,r)=>Math.min(Math.max(r,e),t),ha={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},fa={...ha,transform:e=>ma(0,1,e)},ga={...ha,default:1},ya=e=>Math.round(1e5*e)/1e5,wa=/(-)?([\d]*\.?[\d])+/g,ba=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,va=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xa(e){return"string"==typeof e}const Ea=e=>({test:t=>xa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ka=Ea("deg"),Ca=Ea("%"),Sa=Ea("px"),Pa=Ea("vh"),Ta=Ea("vw"),La={...Ca,parse:e=>Ca.parse(e)/100,transform:e=>Ca.transform(100*e)},Ma={...ha,transform:Math.round},Aa={borderWidth:Sa,borderTopWidth:Sa,borderRightWidth:Sa,borderBottomWidth:Sa,borderLeftWidth:Sa,borderRadius:Sa,radius:Sa,borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomRightRadius:Sa,borderBottomLeftRadius:Sa,width:Sa,maxWidth:Sa,height:Sa,maxHeight:Sa,size:Sa,top:Sa,right:Sa,bottom:Sa,left:Sa,padding:Sa,paddingTop:Sa,paddingRight:Sa,paddingBottom:Sa,paddingLeft:Sa,margin:Sa,marginTop:Sa,marginRight:Sa,marginBottom:Sa,marginLeft:Sa,rotate:ka,rotateX:ka,rotateY:ka,rotateZ:ka,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:ka,skewX:ka,skewY:ka,distance:Sa,translateX:Sa,translateY:Sa,translateZ:Sa,x:Sa,y:Sa,z:Sa,perspective:Sa,transformPerspective:Sa,opacity:fa,originX:La,originY:La,originZ:Sa,zIndex:Ma,fillOpacity:fa,strokeOpacity:fa,numOctaves:Ma};function Na(e,t,r,o){const{style:n,vars:a,transform:i,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const r=t[e];if(ua(e)){a[e]=r;continue}const o=Aa[e],d=pa(r,o);if(na.has(e)){if(l=!0,i[e]=d,!u)continue;r!==(o.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):n[e]=d}if(t.transform||(l||o?n.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let a="";for(let t=0;t<la;t++){const r=oa[t];void 0!==e[r]&&(a+=`${sa[r]||r}(${e[r]}) `)}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),n?a=n(e,o?"":a):r&&o&&(a="none"),a}(e.transform,r,u,o):n.transform&&(n.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;n.transformOrigin=`${e} ${t} ${r}`}}const Ra=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Oa(e,t,r){for(const o in t)ia(t[o])||aa(o,r)||(e[o]=t[o])}function Da(e,t,o){const n={},a=function(e,t,o){const n={};return Oa(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t,o){return(0,r.useMemo)((()=>{const r=Ra();return Na(r,t,{enableHardwareAcceleration:!o},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,o)),e.transformValues?e.transformValues(n):n}(e,t,o);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const Va=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Fa(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Va.has(e)}let _a=e=>!Fa(e);try{(ja=require("@emotion/is-prop-valid").default)&&(_a=e=>e.startsWith("on")?!Fa(e):ja(e))}catch(e){}var ja;function Ia(e,t,r){return"string"==typeof e?e:Sa.transform(t+r*e)}const Ba={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ha={offset:"strokeDashoffset",array:"strokeDasharray"};function za(e,{attrX:t,attrY:r,attrScale:o,originX:n,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(Na(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:h,dimensions:f}=e;m.transform&&(f&&(h.transform=m.transform),delete m.transform),f&&(void 0!==n||void 0!==a||h.transform)&&(h.transformOrigin=function(e,t,r){return`${Ia(t,e.x,e.width)} ${Ia(r,e.y,e.height)}`}(f,void 0!==n?n:.5,void 0!==a?a:.5)),void 0!==t&&(m.x=t),void 0!==r&&(m.y=r),void 0!==o&&(m.scale=o),void 0!==i&&function(e,t,r=1,o=0,n=!0){e.pathLength=1;const a=n?Ba:Ha;e[a.offset]=Sa.transform(-o);const i=Sa.transform(t),s=Sa.transform(r);e[a.array]=`${i} ${s}`}(m,i,s,l,!1)}const Ua=()=>({...Ra(),attrs:{}}),$a=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Wa(e,t,o,n){const a=(0,r.useMemo)((()=>{const r=Ua();return za(r,t,{enableHardwareAcceleration:!1},$a(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Oa(t,e.style,e),a.style={...t,...a.style}}return a}function Za(e=!1){return(t,o,n,{latestValues:a},i)=>{const s=(ta(t)?Wa:Da)(o,a,i,t),l=function(e,t,r){const o={};for(const n in e)"values"===n&&"object"==typeof e.values||(_a(n)||!0===r&&Fa(n)||!t&&!Fa(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}(o,"string"==typeof t,e),c={...l,...s,ref:n},{children:u}=o,d=(0,r.useMemo)((()=>ia(u)?u.get():u),[u]);return(0,r.createElement)(t,{...c,children:d})}}const qa=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Xa(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(const t in r)e.style.setProperty(t,r[t])}const Ya=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 Ga(e,t,r,o){Xa(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Ya.has(r)?r:qa(r),t.attrs[r])}function Ja(e,t){const{style:r}=e,o={};for(const n in r)(ia(r[n])||t.style&&ia(t.style[n])||aa(n,e))&&(o[n]=r[n]);return o}function Ka(e,t){const r=Ja(e,t);for(const o in e)(ia(e[o])||ia(t[o]))&&(r[-1!==oa.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]);return r}function Qa(e,t,r,o={},n={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,o,n)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,o,n)),t}const ei=e=>Array.isArray(e),ti=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),ri=e=>ei(e)?e[e.length-1]||0:e;function oi(e){const t=ia(e)?e.get():e;return ti(t)?t.toValue():t}const ni=e=>(t,o)=>{const n=(0,r.useContext)(Fn),a=(0,r.useContext)(Cn),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,a){const i={latestValues:ai(o,n,a,e),renderState:t()};return r&&(i.mount=e=>r(o,e,i)),i}(e,t,n,a);return o?i():Sn(i)};function ai(e,t,r,o){const n={},a=o(e,{});for(const e in a)n[e]=oi(a[e]);let{initial:i,animate:s}=e;const l=$n(e),c=Wn(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===i;const d=u?s:i;return d&&"boolean"!=typeof d&&!Hn(d)&&(Array.isArray(d)?d:[d]).forEach((t=>{const r=Qa(e,t);if(!r)return;const{transitionEnd:o,transition:a,...i}=r;for(const e in i){let t=i[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(n[e]=t)}for(const e in o)n[e]=o[e]})),n}const ii={useVisualState:ni({scrapeMotionValuesFromProps:Ka,createRenderState:Ua,onMount:(e,t,{renderState:r,latestValues:o})=>{vn.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),vn.render((()=>{za(r,o,{enableHardwareAcceleration:!1},$a(t.tagName),e.transformTemplate),Ga(t,r)}))}})},si={useVisualState:ni({scrapeMotionValuesFromProps:Ja,createRenderState:Ra})};function li(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}const ci=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ui(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const di=e=>t=>ci(t)&&e(t,ui(t));function pi(e,t,r,o){return li(e,t,di(r),o)}const mi=(e,t)=>r=>t(e(r)),hi=(...e)=>e.reduce(mi);function fi(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const gi=fi("dragHorizontal"),yi=fi("dragVertical");function wi(e){let t=!1;if("y"===e)t=yi();else if("x"===e)t=gi();else{const e=gi(),r=yi();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function bi(){const e=wi(!0);return!e||(e(),!1)}class vi{constructor(e){this.isMounted=!1,this.node=e}update(){}}function xi(e,t){const r="pointer"+(t?"enter":"leave"),o="onHover"+(t?"Start":"End");return pi(e.current,r,((r,n)=>{if("touch"===r.type||bi())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[o]&&vn.update((()=>a[o](r,n)))}),{passive:!e.getProps()[o]})}const Ei=(e,t)=>!!t&&(e===t||Ei(e,t.parentElement));function ki(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ui(r))}const Ci=new WeakMap,Si=new WeakMap,Pi=e=>{const t=Ci.get(e.target);t&&t(e)},Ti=e=>{e.forEach(Pi)};const Li={some:0,all:1},Mi={inView:{Feature:class extends vi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:o="some",once:n}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof o?o:Li[o]};return function(e,t,r){const o=function({root:e,...t}){const r=e||document;Si.has(r)||Si.set(r,{});const o=Si.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(Ti,{root:e,...t})),o[n]}(t);return Ci.set(e,r),o.observe(e),()=>{Ci.delete(e),o.unobserve(e)}}(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,n&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:o}=this.node.getProps(),a=t?r:o;a&&a(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 vi{constructor(){super(...arguments),this.removeStartListeners=yn,this.removeEndListeners=yn,this.removeAccessibleListeners=yn,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=pi(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:o}=this.node.getProps();vn.update((()=>{Ei(this.node.current,e.target)?r&&r(e,t):o&&o(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),n=pi(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hi(o,n),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=li(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=li(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ki("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&vn.update((()=>r(e,t)))}))})),ki("down",((e,t)=>{this.startPress(e,t)})))})),t=li(this.node.current,"blur",(()=>{this.isPressing&&ki("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=hi(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&vn.update((()=>r(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bi()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&vn.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=pi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=li(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hi(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends vi{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=hi(li(this.node.current,"focus",(()=>this.onFocus())),li(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends vi{mount(){this.unmount=hi(xi(this.node,!0),xi(this.node,!1))}unmount(){}}}};function Ai(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}function Ni(e,t,r){const o=e.getProps();return Qa(o,t,void 0!==r?r:o.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))}const Ri="data-"+qa("framerAppearId"),Oi=e=>1e3*e,Di=e=>e/1e3,Vi=e=>Array.isArray(e)&&"number"==typeof e[0];function Fi(e){return Boolean(!e||"string"==typeof e&&ji[e]||Vi(e)||Array.isArray(e)&&e.every(Fi))}const _i=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,ji={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_i([0,.65,.55,1]),circOut:_i([.55,0,1,.45]),backIn:_i([.31,.01,.66,-.59]),backOut:_i([.33,1.53,.69,.99])};function Ii(e){if(e)return Vi(e)?_i(e):Array.isArray(e)?e.map(Ii):ji[e]}const Bi=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function Hi(e,t,r,o){if(e===t&&r===o)return yn;return n=>0===n||1===n?n:Bi(function(e,t,r,o,n){let a,i,s=0;do{i=t+(r-t)/2,a=Bi(i,o,n)-e,a>0?r=i:t=i}while(Math.abs(a)>1e-7&&++s<12);return i}(n,0,1,e,r),t,o)}const zi=Hi(.42,0,1,1),Ui=Hi(0,0,.58,1),$i=Hi(.42,0,.58,1),Wi=e=>Array.isArray(e)&&"number"!=typeof e[0],Zi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qi=e=>t=>1-e(1-t),Xi=e=>1-Math.sin(Math.acos(e)),Yi=qi(Xi),Gi=Zi(Yi),Ji=Hi(.33,1.53,.69,.99),Ki=qi(Ji),Qi=Zi(Ki),es={linear:yn,easeIn:zi,easeInOut:$i,easeOut:Ui,circIn:Xi,circInOut:Gi,circOut:Yi,backIn:Ki,backInOut:Qi,backOut:Ji,anticipate:e=>(e*=2)<1?.5*Ki(e):.5*(2-Math.pow(2,-10*(e-1)))},ts=e=>{if(Array.isArray(e)){Rn(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,o,n]=e;return Hi(t,r,o,n)}return"string"==typeof e?(Rn(void 0!==es[e],`Invalid easing type '${e}'`),es[e]):e},rs=(e,t)=>r=>Boolean(xa(r)&&va.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),os=(e,t,r)=>o=>{if(!xa(o))return o;const[n,a,i,s]=o.match(wa);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},ns={...ha,transform:e=>Math.round((e=>ma(0,255,e))(e))},as={test:rs("rgb","red"),parse:os("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+ns.transform(e)+", "+ns.transform(t)+", "+ns.transform(r)+", "+ya(fa.transform(o))+")"},is={test:rs("#"),parse:function(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}},transform:as.transform},ss={test:rs("hsl","hue"),parse:os("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ca.transform(ya(t))+", "+Ca.transform(ya(r))+", "+ya(fa.transform(o))+")"},ls={test:e=>as.test(e)||is.test(e)||ss.test(e),parse:e=>as.test(e)?as.parse(e):ss.test(e)?ss.parse(e):is.parse(e),transform:e=>xa(e)?e:e.hasOwnProperty("red")?as.transform(e):ss.transform(e)},cs=(e,t,r)=>-r*e+r*t+e;function us(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}const ds=(e,t,r)=>{const o=e*e;return Math.sqrt(Math.max(0,r*(t*t-o)+o))},ps=[is,as,ss];function ms(e){const t=(e=>ps.find((t=>t.test(e))))(e);Rn(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ss&&(r=function({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,r/=100;let n=0,a=0,i=0;if(t/=100){const o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=us(s,o,e+1/3),a=us(s,o,e),i=us(s,o,e-1/3)}else n=a=i=r;return{red:Math.round(255*n),green:Math.round(255*a),blue:Math.round(255*i),alpha:o}}(r)),r}const hs=(e,t)=>{const r=ms(e),o=ms(t),n={...r};return e=>(n.red=ds(r.red,o.red,e),n.green=ds(r.green,o.green,e),n.blue=ds(r.blue,o.blue,e),n.alpha=cs(r.alpha,o.alpha,e),as.transform(n))},fs={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:yn},gs={regex:ba,countKey:"Colors",token:"${c}",parse:ls.parse},ys={regex:wa,countKey:"Numbers",token:"${n}",parse:ha.parse};function ws(e,{regex:t,countKey:r,token:o,parse:n}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,o),e.values.push(...a.map(n)))}function bs(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&ws(r,fs),ws(r,gs),ws(r,ys),r}function vs(e){return bs(e).values}function xs(e){const{values:t,numColors:r,numVars:o,tokenised:n}=bs(e),a=t.length;return e=>{let t=n;for(let n=0;n<a;n++)t=n<o?t.replace(fs.token,e[n]):n<o+r?t.replace(gs.token,ls.transform(e[n])):t.replace(ys.token,ya(e[n]));return t}}const Es=e=>"number"==typeof e?0:e,ks={test:function(e){var t,r;return isNaN(e)&&xa(e)&&((null===(t=e.match(wa))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(ba))||void 0===r?void 0:r.length)||0)>0},parse:vs,createTransformer:xs,getAnimatableNone:function(e){const t=vs(e);return xs(e)(t.map(Es))}},Cs=(e,t)=>r=>`${r>0?t:e}`;function Ss(e,t){return"number"==typeof e?r=>cs(e,t,r):ls.test(e)?hs(e,t):e.startsWith("var(")?Cs(e,t):Ls(e,t)}const Ps=(e,t)=>{const r=[...e],o=r.length,n=e.map(((e,r)=>Ss(e,t[r])));return e=>{for(let t=0;t<o;t++)r[t]=n[t](e);return r}},Ts=(e,t)=>{const r={...e,...t},o={};for(const n in r)void 0!==e[n]&&void 0!==t[n]&&(o[n]=Ss(e[n],t[n]));return e=>{for(const t in o)r[t]=o[t](e);return r}},Ls=(e,t)=>{const r=ks.createTransformer(t),o=bs(e),n=bs(t);return o.numVars===n.numVars&&o.numColors===n.numColors&&o.numNumbers>=n.numNumbers?hi(Ps(o.values,n.values),r):(Nn(!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.`),Cs(e,t))},Ms=(e,t,r)=>{const o=t-e;return 0===o?1:(r-e)/o},As=(e,t)=>r=>cs(e,t,r);function Ns(e,t,{clamp:r=!0,ease:o,mixer:n}={}){const a=e.length;if(Rn(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,r){const o=[],n=r||function(e){return"number"==typeof e?As:"string"==typeof e?ls.test(e)?hs:Ls:Array.isArray(e)?Ps:"object"==typeof e?Ts:As}(e[0]),a=e.length-1;for(let r=0;r<a;r++){let a=n(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||yn:t;a=hi(e,a)}o.push(a)}return o}(t,o,n),s=i.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const o=Ms(e[r],e[r+1],t);return i[r](o)};return r?t=>l(ma(e[0],e[a-1],t)):l}function Rs({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){const n=Wi(o)?o.map(ts):ts(o),a={done:!1,value:t[0]},i=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 o=1;o<=t;o++){const n=Ms(0,t,o);e.push(cs(r,1,n))}}(t,e.length-1),t}(t),e),s=Ns(i,t,{ease:Array.isArray(n)?n:(l=t,c=n,l.map((()=>c||$i)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}function Os(e,t){return t?e*(1e3/t):0}const Ds=5;function Vs(e,t,r){const o=Math.max(t-Ds,0);return Os(r-e(o),t-o)}const Fs=.001,_s=.01,js=10,Is=.05,Bs=1;const Hs=12;function zs(e,t){return e*Math.sqrt(1-t*t)}const Us=["duration","bounce"],$s=["stiffness","damping","mass"];function Ws(e,t){return t.some((t=>void 0!==e[t]))}function Zs({keyframes:e,restDelta:t,restSpeed:r,...o}){const n=e[0],a=e[e.length-1],i={done:!1,value:n},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ws(e,$s)&&Ws(e,Us)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,a;Nn(e<=Oi(js),"Spring duration must be 10 seconds or less");let i=1-t;i=ma(Is,Bs,i),e=ma(_s,js,Di(e)),i<1?(n=t=>{const o=t*i,n=o*e,a=o-r,s=zs(t,i),l=Math.exp(-n);return Fs-a/s*l},a=t=>{const o=t*i*e,a=o*r+r,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-o),c=zs(Math.pow(t,2),i);return(-n(t)+Fs>0?-1:1)*((a-s)*l)/c}):(n=t=>Math.exp(-t*e)*((t-r)*e+1)-Fs,a=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let o=r;for(let r=1;r<Hs;r++)o-=e(o)/t(o);return o}(n,a,5/e);if(e=Oi(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*i*Math.sqrt(o*t),duration:e}}}(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(o),m=u?-Di(u):0,h=l/(2*Math.sqrt(s*c)),f=a-n,g=Di(Math.sqrt(s/c)),y=Math.abs(f)<5;let w;if(r||(r=y?.01:2),t||(t=y?.005:.5),h<1){const e=zs(g,h);w=t=>{const r=Math.exp(-h*g*t);return a-r*((m+h*g*f)/e*Math.sin(e*t)+f*Math.cos(e*t))}}else if(1===h)w=e=>a-Math.exp(-g*e)*(f+(m+g*f)*e);else{const e=g*Math.sqrt(h*h-1);w=t=>{const r=Math.exp(-h*g*t),o=Math.min(e*t,300);return a-r*((m+h*g*f)*Math.sinh(o)+e*f*Math.cosh(o))/e}}return{calculatedDuration:p&&d||null,next:e=>{const o=w(e);if(p)i.done=e>=d;else{let n=m;0!==e&&(n=h<1?Vs(w,e,o):0);const s=Math.abs(n)<=r,l=Math.abs(a-o)<=t;i.done=s&&l}return i.value=i.done?a:o,i}}}function qs({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:i,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 h=r*t;const f=d+h,g=void 0===i?f:i(f);g!==f&&(h=g-d);const y=e=>-h*Math.exp(-e/o),w=e=>g+y(e),b=e=>{const t=y(e),r=w(e);p.done=Math.abs(t)<=c,p.value=p.done?g:r};let v,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(v=e,x=Zs({keyframes:[p.value,m(p.value)],velocity:Vs(w,e,p.value),damping:n,stiffness:a,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==v||(t=!0,b(e),E(e)),void 0!==v&&e>v?x.next(e-v):(!t&&b(e),p)}}}const Xs=e=>{const t=({timestamp:t})=>e(t);return{start:()=>vn.update(t,!0),stop:()=>xn(t),now:()=>En.isProcessing?En.timestamp:performance.now()}},Ys=2e4;function Gs(e){let t=0,r=e.next(t);for(;!r.done&&t<Ys;)t+=50,r=e.next(t);return t>=Ys?1/0:t}const Js={decay:qs,inertia:qs,tween:Rs,keyframes:Rs,spring:Zs};function Ks({autoplay:e=!0,delay:t=0,driver:r=Xs,keyframes:o,type:n="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let m,h,f=1,g=!1;const y=()=>{h=new Promise((e=>{m=e}))};let w;y();const b=Js[n]||Rs;let v;b!==Rs&&"number"!=typeof o[0]&&(v=Ns([0,100],o,{clamp:!1}),o=[0,100]);const x=b({...p,keyframes:o});let E;"mirror"===s&&(E=b({...p,keyframes:[...o].reverse(),velocity:-(p.velocity||0)}));let k="idle",C=null,S=null,P=null;null===x.calculatedDuration&&a&&(x.calculatedDuration=Gs(x));const{calculatedDuration:T}=x;let L=1/0,M=1/0;null!==T&&(L=T+i,M=L*(a+1)-i);let A=0;const N=e=>{if(null===S)return;f>0&&(S=Math.min(S,e)),f<0&&(S=Math.min(e-M/f,S)),A=null!==C?C:Math.round(e-S)*f;const r=A-t*(f>=0?1:-1),n=f>=0?r<0:r>M;A=Math.max(r,0),"finished"===k&&null===C&&(A=M);let l=A,c=x;if(a){const e=A/L;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,a+1);const o=Boolean(t%2);o&&("reverse"===s?(r=1-r,i&&(r-=i/L)):"mirror"===s&&(c=E));let n=ma(0,1,r);A>M&&(n="reverse"===s&&o?1:0),l=n*L}const u=n?{done:!1,value:o[0]}:c.next(l);v&&(u.value=v(u.value));let{done:p}=u;n||null===T||(p=f>=0?A>=M:A<=0);const m=null===C&&("finished"===k||"running"===k&&p);return d&&d(u.value),m&&D(),u},R=()=>{w&&w.stop(),w=void 0},O=()=>{k="idle",R(),m(),y(),S=P=null},D=()=>{k="finished",u&&u(),R(),m()},V=()=>{if(g)return;w||(w=r(N));const e=w.now();l&&l(),null!==C?S=e-C:S&&"finished"!==k||(S=e),"finished"===k&&y(),P=S,C=null,k="running",w.start()};e&&V();const F={then:(e,t)=>h.then(e,t),get time(){return Di(A)},set time(e){e=Oi(e),A=e,null===C&&w&&0!==f?S=w.now()-e/f:C=e},get duration(){const e=null===x.calculatedDuration?Gs(x):x.calculatedDuration;return Di(e)},get speed(){return f},set speed(e){e!==f&&w&&(f=e,F.time=Di(A))},get state(){return k},play:V,pause:()=>{k="paused",C=A},stop:()=>{g=!0,"idle"!==k&&(k="idle",c&&c(),O())},cancel:()=>{null!==P&&N(P),O()},complete:()=>{k="finished"},sample:e=>(S=0,N(e))};return F}const Qs=function(e){let t;return()=>(void 0===t&&(t=Object.hasOwnProperty.call(Element.prototype,"animate")),t)}(),el=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);const tl={type:"spring",stiffness:500,damping:25,restSpeed:10},rl={type:"keyframes",duration:.8},ol={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nl=(e,{keyframes:t})=>t.length>2?rl:na.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tl:ol,al=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ks.test(t)&&"0"!==t||t.startsWith("url("))),il=new Set(["brightness","contrast","saturate","opacity"]);function sl(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=r.match(wa)||[];if(!o)return e;const n=r.replace(o,"");let a=il.has(t)?1:0;return o!==r&&(a*=100),t+"("+a+n+")"}const ll=/([a-z-]*)\(.*?\)/g,cl={...ks,getAnimatableNone:e=>{const t=e.match(ll);return t?t.map(sl).join(" "):e}},ul={...Aa,color:ls,backgroundColor:ls,outlineColor:ls,fill:ls,stroke:ls,borderColor:ls,borderTopColor:ls,borderRightColor:ls,borderBottomColor:ls,borderLeftColor:ls,filter:cl,WebkitFilter:cl},dl=e=>ul[e];function pl(e,t){let r=dl(e);return r!==cl&&(r=ks),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const ml=e=>/^0[^.\s]+$/.test(e);function hl(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ml(e):void 0}function fl(e,t){return e[t]||e.default||e}const gl=(e,t,r,o={})=>n=>{const a=fl(o,e)||{},i=a.delay||o.delay||0;let{elapsed:s=0}=o;s-=Oi(i);const l=function(e,t,r,o){const n=al(t,r);let a;a=Array.isArray(r)?[...r]:[null,r];const i=void 0!==o.from?o.from:e.get();let s;const l=[];for(let e=0;e<a.length;e++)null===a[e]&&(a[e]=0===e?i:a[e-1]),hl(a[e])&&l.push(e),"string"==typeof a[e]&&"none"!==a[e]&&"0"!==a[e]&&(s=a[e]);if(n&&l.length&&s)for(let e=0;e<l.length;e++)a[l[e]]=pl(t,s);return a}(t,e,r,a),c=l[0],u=l[l.length-1],d=al(e,c),p=al(e,u);Nn(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",...a,delay:-s,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{n(),a.onComplete&&a.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(a)||(m={...m,...nl(e,m)}),m.duration&&(m.duration=Oi(m.duration)),m.repeatDelay&&(m.repeatDelay=Oi(m.repeatDelay)),!d||!p||!1===a.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:o}){const n=()=>(r&&r(e[e.length-1]),o&&o(),{time:0,speed:1,duration:0,play:yn,pause:yn,stop:yn,then:e=>(e(),Promise.resolve()),cancel:yn,complete:yn});return t?Ks({keyframes:[0,1],duration:0,delay:t,onComplete:n}):n()}(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=function(e,t,{onUpdate:r,onComplete:o,...n}){if(!Qs()||!el.has(t)||n.repeatDelay||"mirror"===n.repeatType||0===n.damping||"inertia"===n.type)return!1;let a,i,s=!1;const l=()=>{i=new Promise((e=>{a=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:p}=n;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Fi(t.ease))(t,n)){const e=Ks({...n,repeat:0,delay:0});let t={done:!1,value:c[0]};const r=[];let o=0;for(;!t.done&&o<2e4;)t=e.sample(o),r.push(t.value),o+=10;p=void 0,c=r,u=o-10,d="linear"}const m=function(e,t,r,{delay:o=0,duration:n,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Ii(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(e.owner.current,t,c,{...n,duration:u,ease:d,times:p});n.syncStart&&(m.startTime=En.isProcessing?En.timestamp:document.timeline?document.timeline.currentTime:performance.now());const h=()=>m.cancel(),f=()=>{vn.update(h),a(),l()};return m.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(c,n)),o&&o(),f()},{then:(e,t)=>i.then(e,t),attachTimeline:e=>(m.timeline=e,m.onfinish=null,yn),get time(){return Di(m.currentTime||0)},set time(e){m.currentTime=Oi(e)},get speed(){return m.playbackRate},set speed(e){m.playbackRate=e},get duration(){return Di(u)},play:()=>{s||(m.play(),xn(h))},pause:()=>m.pause(),stop:()=>{if(s=!0,"idle"===m.playState)return;const{currentTime:t}=m;if(t){const r=Ks({...n,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}f()},complete:()=>m.finish(),cancel:f}}(t,e,m);if(r)return r}return Ks(m)};function yl(e){return Boolean(ia(e)&&e.add)}const wl=e=>/^\-?\d*\.?\d+$/.test(e);function bl(e,t){-1===e.indexOf(t)&&e.push(t)}function vl(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class xl{constructor(){this.subscriptions=[]}add(e){return bl(this.subscriptions,e),()=>vl(this.subscriptions,e)}notify(e,t,r){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,r);else for(let n=0;n<o;n++){const o=this.subscriptions[n];o&&o(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const El={current:void 0};class kl{constructor(e,t={}){var r;this.version="10.16.4",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:o}=En;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,vn.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=()=>vn.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 xl);const r=this.events[e].add(t);return"change"===e?()=>{r(),vn.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 El.current&&El.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Os(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 Cl(e,t){return new kl(e,t)}const Sl=e=>t=>t.test(e),Pl=[ha,Sa,Ca,ka,Ta,Pa,{test:e=>"auto"===e,parse:e=>e}],Tl=e=>Pl.find(Sl(e)),Ll=[...Pl,ls,ks],Ml=e=>Ll.find(Sl(e));function Al(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Cl(r))}function Nl(e,t){if(t)return(t[e]||t.default||t).from}function Rl({protectedKeys:e,needsAnimating:t},r){const o=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,o}function Ol(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");o&&(a=o);const c=[],u=n&&e.animationState&&e.animationState.getState()[n];for(const t in s){const o=e.getValue(t),n=s[t];if(!o||void 0===n||u&&Rl(u,t))continue;const i={delay:r,elapsed:0,...a};if(window.HandoffAppearAnimations&&!o.hasAnimated){const r=e.getProps()[Ri];r&&(i.elapsed=window.HandoffAppearAnimations(r,t,o,vn),i.syncStart=!0)}o.start(gl(t,o,n,e.shouldReduceMotion&&na.has(t)?{type:!1}:i));const d=o.animation;yl(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return i&&Promise.all(c).then((()=>{i&&function(e,t){const r=Ni(e,t);let{transitionEnd:o={},transition:n={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...o};for(const t in a)Al(e,t,ri(a[t]))}(e,i)})),c}function Dl(e,t,r={}){const o=Ni(e,t,r.custom);let{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);const a=o?()=>Promise.all(Ol(e,o,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:a=0,staggerChildren:i,staggerDirection:s}=n;return function(e,t,r=0,o=0,n=1,a){const i=[],s=(e.variantChildren.size-1)*o,l=1===n?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(Vl).forEach(((e,o)=>{e.notify("AnimationStart",t),i.push(Dl(e,t,{...a,delay:r+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,a+o,i,s,r)}:()=>Promise.resolve(),{when:s}=n;if(s){const[e,t]="beforeChildren"===s?[a,i]:[i,a];return e().then((()=>t()))}return Promise.all([a(),i(r.delay)])}function Vl(e,t){return e.sortNodePosition(t)}const Fl=[...zn].reverse(),_l=zn.length;function jl(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const n=t.map((t=>Dl(e,t,r)));o=Promise.all(n)}else if("string"==typeof t)o=Dl(e,t,r);else{const n="function"==typeof t?Ni(e,t,r.custom):t;o=Promise.all(Ol(e,n,r))}return o.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}(e);const r={animate:Il(!0),whileInView:Il(),whileHover:Il(),whileTap:Il(),whileDrag:Il(),whileFocus:Il(),exit:Il()};let o=!0;const n=(t,r)=>{const o=Ni(e,r);if(o){const{transition:e,transitionEnd:r,...n}=o;t={...t,...n,...r}}return t};function a(a,i){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<_l;t++){const f=Fl[t],g=r[f],y=void 0!==s[f]?s[f]:l[f],w=Bn(y),b=f===i?g.isActive:null;!1===b&&(p=t);let v=y===l[f]&&y!==s[f]&&w;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||Hn(y)||"boolean"==typeof y)continue;const x=(m=g.prevProp,"string"==typeof(h=y)?h!==m:!!Array.isArray(h)&&!Ai(h,m));let E=x||f===i&&g.isActive&&!v&&w||t>p&&w;const k=Array.isArray(y)?y:[y];let C=k.reduce(n,{});!1===b&&(C={});const{prevResolvedValues:S={}}=g,P={...S,...C},T=e=>{E=!0,u.delete(e),g.needsAnimating[e]=!0};for(const e in P){const t=C[e],r=S[e];d.hasOwnProperty(e)||(t!==r?ei(t)&&ei(r)?!Ai(t,r)||x?T(e):g.protectedKeys[e]=!0:void 0!==t?T(e):u.add(e):void 0!==t&&u.has(e)?T(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(d={...d,...C}),o&&e.blockInitialAnimation&&(E=!1),E&&!v&&c.push(...k.map((e=>({animation:e,options:{type:f,...a}}))))}var m,h;if(u.size){const t={};u.forEach((r=>{const o=e.getBaseTarget(r);void 0!==o&&(t[r]=o)})),c.push({animation:t})}let f=Boolean(c.length);return o&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),o=!1,f?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,o,n){var i;if(r[t].isActive===o)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,o)})),r[t].isActive=o;const s=a(n,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function Il(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Bl=0;const Hl={animation:{Feature:class extends vi{constructor(e){super(e),e.animationState||(e.animationState=jl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Hn(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 vi{constructor(){super(...arguments),this.id=Bl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;const n=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},zl=(e,t)=>Math.abs(e-t);class Ul{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Zl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=zl(e.x,t.x),o=zl(e.y,t.y);return Math.sqrt(r**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:o}=e,{timestamp:n}=En;this.history.push({...o,timestamp:n});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=$l(t,this.transformPagePoint),vn.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:r,onSessionEnd:o}=this.handlers,n=Zl("pointercancel"===e.type?this.lastMoveEventInfo:$l(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,n),o&&o(e,n)},!ci(e))return;this.handlers=t,this.transformPagePoint=r;const o=$l(ui(e),this.transformPagePoint),{point:n}=o,{timestamp:a}=En;this.history=[{...n,timestamp:a}];const{onSessionStart:i}=t;i&&i(e,Zl(o,this.history)),this.removeListeners=hi(pi(window,"pointermove",this.handlePointerMove),pi(window,"pointerup",this.handlePointerUp),pi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xn(this.updatePoint)}}function $l(e,t){return t?{point:t(e.point)}:e}function Wl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zl({point:e},t){return{point:e,delta:Wl(e,Xl(t)),offset:Wl(e,ql(t)),velocity:Yl(t,.1)}}function ql(e){return e[0]}function Xl(e){return e[e.length-1]}function Yl(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null;const n=Xl(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>Oi(t)));)r--;if(!o)return{x:0,y:0};const a=Di(n.timestamp-o.timestamp);if(0===a)return{x:0,y:0};const i={x:(n.x-o.x)/a,y:(n.y-o.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Gl(e){return e.max-e.min}function Jl(e,t=0,r=.01){return Math.abs(e-t)<=r}function Kl(e,t,r,o=.5){e.origin=o,e.originPoint=cs(t.min,t.max,e.origin),e.scale=Gl(r)/Gl(t),(Jl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=cs(r.min,r.max,e.origin)-e.originPoint,(Jl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ql(e,t,r,o){Kl(e.x,t.x,r.x,o?o.originX:void 0),Kl(e.y,t.y,r.y,o?o.originY:void 0)}function ec(e,t,r){e.min=r.min+t.min,e.max=e.min+Gl(t)}function tc(e,t,r){e.min=t.min-r.min,e.max=e.min+Gl(t)}function rc(e,t,r){tc(e.x,t.x,r.x),tc(e.y,t.y,r.y)}function oc(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 nc(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}const ac=.35;function ic(e,t,r){return{min:sc(e,t),max:sc(e,r)}}function sc(e,t){return"number"==typeof e?e:e[t]||0}const lc=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),cc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function uc(e){return[e("x"),e("y")]}function dc({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function pc(e){return void 0===e||1===e}function mc({scale:e,scaleX:t,scaleY:r}){return!pc(e)||!pc(t)||!pc(r)}function hc(e){return mc(e)||fc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function fc(e){return gc(e.x)||gc(e.y)}function gc(e){return e&&"0%"!==e}function yc(e,t,r){return r+t*(e-r)}function wc(e,t,r,o,n){return void 0!==n&&(e=yc(e,n,o)),yc(e,r,o)+t}function bc(e,t=0,r=1,o,n){e.min=wc(e.min,t,r,o,n),e.max=wc(e.max,t,r,o,n)}function vc(e,{x:t,y:r}){bc(e.x,t.translate,t.scale,t.originPoint),bc(e.y,r.translate,r.scale,r.originPoint)}function xc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ec(e,t){e.min=e.min+t,e.max=e.max+t}function kc(e,t,[r,o,n]){const a=void 0!==t[n]?t[n]:.5,i=cs(e.min,e.max,a);bc(e,t[r],t[o],i,t.scale)}const Cc=["x","scaleX","originX"],Sc=["y","scaleY","originY"];function Pc(e,t){kc(e.x,t,Cc),kc(e.y,t,Sc)}function Tc(e,t){return dc(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const Lc=new WeakMap;class Mc{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=cc(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;r&&!1===r.isPresent||(this.panSession=new Ul(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ui(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:o,onDragStart:n}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wi(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),uc((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Ca.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const o=r.layout.layoutBox[e];o&&(t=Gl(o)*(parseFloat(t)/100))}}this.originPoint[e]=t})),n&&vn.update((()=>n(e,t)),!1,!0);const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:o,onDirectionLock:n,onDrag:a}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:i}=t;if(o&&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}(i),void(null!==this.currentDirection&&n&&n(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:n}=this.getProps();n&&vn.update((()=>n(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:o}=this.getProps();if(!r||!Ac(e,o,this.currentDirection))return;const n=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},o){return void 0!==t&&e<t?e=o?cs(t,e,o.min):Math.max(e,t):void 0!==r&&e>r&&(e=o?cs(r,e,o.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),n.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;e&&In(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:o,right:n}){return{x:oc(e.x,r,n),y:oc(e.y,t,o)}}(r.layoutBox,e),this.elastic=function(e=ac){return!1===e?e=0:!0===e&&(e=ac),{x:ic(e,"left","right"),y:ic(e,"top","bottom")}}(t),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&uc((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}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!In(e))return!1;const r=e.current;Rn(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const n=function(e,t,r){const o=Tc(e,r),{scroll:n}=t;return n&&(Ec(o.x,n.offset.x),Ec(o.y,n.offset.y)),o}(r,o.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:nc(e.x,t.x),y:nc(e.y,t.y)}}(o.layout.layoutBox,n);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=dc(e))}return a}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:o,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=uc((i=>{if(!Ac(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(l={min:0,max:0});const c=o?200:1e6,u=o?40:1e7,d={type:"inertia",velocity:r?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(gl(e,r,0,t))}stopAnimation(){uc((e=>this.getAxisMotionValue(e).stop()))}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){uc((t=>{const{drag:r}=this.getProps();if(!Ac(t,r,this.currentDirection))return;const{projection:o}=this.visualElement,n=this.getAxisMotionValue(t);if(o&&o.layout){const{min:r,max:a}=o.layout.layoutBox[t];n.set(e[t]-cs(r,a,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!In(t)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};uc((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();o[e]=function(e,t){let r=.5;const o=Gl(e),n=Gl(t);return n>o?r=Ms(t.min,t.max-o,e.min):o>n&&(r=Ms(e.min,e.max-n,t.min)),ma(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),uc((t=>{if(!Ac(t,e,null))return;const r=this.getAxisMotionValue(t),{min:n,max:a}=this.constraints[t];r.set(cs(n,a,o[t]))}))}addListeners(){if(!this.visualElement.current)return;Lc.set(this.visualElement,this);const e=pi(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();In(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const n=li(window,"resize",(()=>this.scalePositionWithinConstraints())),a=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(uc((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{n(),e(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:n=!1,dragElastic:a=ac,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:o,dragConstraints:n,dragElastic:a,dragMomentum:i}}}function Ac(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const Nc=e=>(t,r)=>{e&&vn.update((()=>e(t,r)))},Rc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Oc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Dc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Sa.test(e))return e;e=parseFloat(e)}return`${Oc(e,t.target.x)}% ${Oc(e,t.target.y)}%`}},Vc={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,n=ks.parse(e);if(n.length>5)return o;const a=ks.createTransformer(e),i="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;const c=cs(s,l,.5);return"number"==typeof n[2+i]&&(n[2+i]/=c),"number"==typeof n[3+i]&&(n[3+i]/=c),a(n)}};class Fc extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:o}=this.props,{projection:n}=e;var a;a=jc,Object.assign(ra,a),n&&(t.group&&t.group.add(n),r&&r.register&&o&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",(()=>{this.safeToRemove()})),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),Rc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:o,isPresent:n}=this.props,a=r.projection;return a?(a.isPresent=n,o||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?a.promote():a.relegate()||vn.postRender((()=>{const e=a.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:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function _c(e){const[t,o]=function(){const e=(0,r.useContext)(Cn);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:o,register:n}=e,a=(0,r.useId)();return(0,r.useEffect)((()=>n(a)),[]),!t&&o?[!1,()=>o&&o(a)]:[!0]}(),n=(0,r.useContext)(An);return r.createElement(Fc,{...e,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(Yn),isPresent:t,safeToRemove:o})}const jc={borderRadius:{...Dc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dc,borderTopRightRadius:Dc,borderBottomLeftRadius:Dc,borderBottomRightRadius:Dc,boxShadow:Vc},Ic=["TopLeft","TopRight","BottomLeft","BottomRight"],Bc=Ic.length,Hc=e=>"string"==typeof e?parseFloat(e):e,zc=e=>"number"==typeof e||Sa.test(e);function Uc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const $c=Zc(0,.5,Yi),Wc=Zc(.5,.95,yn);function Zc(e,t,r){return o=>o<e?0:o>t?1:r(Ms(e,t,o))}function qc(e,t){e.min=t.min,e.max=t.max}function Xc(e,t){qc(e.x,t.x),qc(e.y,t.y)}function Yc(e,t,r,o,n){return e=yc(e-=t,1/r,o),void 0!==n&&(e=yc(e,1/n,o)),e}function Gc(e,t,[r,o,n],a,i){!function(e,t=0,r=1,o=.5,n,a=e,i=e){if(Ca.test(t)&&(t=parseFloat(t),t=cs(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=cs(a.min,a.max,o);e===a&&(s-=t),e.min=Yc(e.min,t,r,s,n),e.max=Yc(e.max,t,r,s,n)}(e,t[r],t[o],t[n],t.scale,a,i)}const Jc=["x","scaleX","originX"],Kc=["y","scaleY","originY"];function Qc(e,t,r,o){Gc(e.x,t,Jc,r?r.x:void 0,o?o.x:void 0),Gc(e.y,t,Kc,r?r.y:void 0,o?o.y:void 0)}function eu(e){return 0===e.translate&&1===e.scale}function tu(e){return eu(e.x)&&eu(e.y)}function ru(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 ou(e){return Gl(e.x)/Gl(e.y)}class nu{constructor(){this.members=[]}add(e){bl(this.members,e),e.scheduleRender()}remove(e){if(vl(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:o}=e.options;!1===o&&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 au(e,t,r){let o="";const n=e.x.translate/t.x,a=e.y.translate/t.y;if((n||a)&&(o=`translate3d(${n}px, ${a}px, 0) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:n}=r;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),n&&(o+=`rotateY(${n}deg) `)}const i=e.x.scale*t.x,s=e.y.scale*t.y;return 1===i&&1===s||(o+=`scale(${i}, ${s})`),o||"none"}const iu=(e,t)=>e.depth-t.depth;class su{constructor(){this.children=[],this.isDirty=!1}add(e){bl(this.children,e),this.isDirty=!0}remove(e){vl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iu),this.isDirty=!1,this.children.forEach(e)}}const lu=["","X","Y","Z"];let cu=0;const uu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function du({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=cu++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;uu.totalNodes=uu.resolvedTargetDeltas=uu.recalculatedProjection=0,this.nodes.forEach(hu),this.nodes.forEach(xu),this.nodes.forEach(Eu),this.nodes.forEach(fu),e=uu,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 su)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new xl),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 o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:n,layout:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(a||n)&&(this.isLayoutDirty=!0),e){let r;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=performance.now(),o=({timestamp:t})=>{const n=t-r;n>=250&&(xn(o),e(n-250))};return vn.read(o,!0),()=>xn(o)}(o),Rc.hasAnimatedSinceResize&&(Rc.hasAnimatedSinceResize=!1,this.nodes.forEach(vu))}))}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||a)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const n=this.options.transition||i.getDefaultTransition()||Lu,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!ru(this.targetLayout,o)||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={...fl(n,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||vu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}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,xn(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(ku),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 o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(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(yu);this.isUpdating||this.nodes.forEach(wu),this.isUpdating=!1,this.nodes.forEach(bu),this.nodes.forEach(pu),this.nodes.forEach(mu),this.clearAllSnapshots();const e=performance.now();En.delta=ma(0,1e3/60,e-En.timestamp),En.timestamp=e,En.isProcessing=!0,kn.update.process(En),kn.preRender.process(En),kn.render.process(En),En.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(gu),this.sharedNodes.forEach(Cu)}scheduleUpdateProjection(){vn.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){vn.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=cc(),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:o(this.instance),offset:r(this.instance)})}resetTransform(){if(!n)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!tu(this.projectionDelta),r=this.getTransformTemplate(),o=r?r(this.latestValues,""):void 0,a=o!==this.prevTransformTemplateValue;e&&(t||hc(this.latestValues)||a)&&(n(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var o;return e&&(r=this.removeTransform(r)),Nu((o=r).x),Nu(o.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return cc();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(Ec(t.x,r.offset.x),Ec(t.y,r.offset.y)),t}removeElementScroll(e){const t=cc();Xc(t,e);for(let r=0;r<this.path.length;r++){const o=this.path[r],{scroll:n,options:a}=o;if(o!==this.root&&n&&a.layoutScroll){if(n.isRoot){Xc(t,e);const{scroll:r}=this.root;r&&(Ec(t.x,-r.offset.x),Ec(t.y,-r.offset.y))}Ec(t.x,n.offset.x),Ec(t.y,n.offset.y)}}return t}applyTransform(e,t=!1){const r=cc();Xc(r,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Pc(r,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),hc(o.latestValues)&&Pc(r,o.latestValues)}return hc(this.latestValues)&&Pc(r,this.latestValues),r}removeTransform(e){const t=cc();Xc(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!hc(r.latestValues))continue;mc(r.latestValues)&&r.updateSnapshot();const o=cc();Xc(o,r.measurePageBox()),Qc(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,o)}return hc(this.latestValues)&&Qc(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!==En.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 o=Boolean(this.resumingFrom)||this!==r;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:n,layoutId:a}=this.options;if(this.layout&&(n||a)){if(this.resolvedRelativeTargetAt=En.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cc(),this.relativeTargetOrigin=cc(),rc(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Xc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,l;if(this.target||(this.target=cc(),this.targetWithTransforms=cc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,ec(i.x,s.x,l.x),ec(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Xc(this.target,this.layout.layoutBox),vc(this.target,this.targetDelta)):Xc(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=cc(),this.relativeTargetOrigin=cc(),rc(this.relativeTargetOrigin,this.target,e.target),Xc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}uu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!mc(this.parent.latestValues)&&!fc(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 o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===En.timestamp&&(o=!1),o)return;const{layout:n,layoutId:a}=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||!n&&!a)return;Xc(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,o=!1){const n=r.length;if(!n)return;let a,i;t.x=t.y=1;for(let s=0;s<n;s++){a=r[s],i=a.projectionDelta;const n=a.instance;n&&n.style&&"contents"===n.style.display||(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Pc(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,vc(e,i)),o&&hc(a.latestValues)&&Pc(e,a.latestValues))}t.x=xc(t.x),t.y=xc(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=lc(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=lc(),this.projectionDeltaWithTransform=lc());const c=this.projectionTransform;Ql(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=au(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),uu.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,o=r?r.latestValues:{},n={...this.latestValues},a=lc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i=cc(),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(Tu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,p,m,h;Su(a.x,e.x,r),Su(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rc(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,p=this.relativeTargetOrigin,m=i,h=r,Pu(l.x,p.x,m.x,h),Pu(l.y,p.y,m.y,h),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=cc()),Xc(d,this.relativeTarget)),s&&(this.animationValues=n,function(e,t,r,o,n,a){n?(e.opacity=cs(0,void 0!==r.opacity?r.opacity:1,$c(o)),e.opacityExit=cs(void 0!==t.opacity?t.opacity:1,0,Wc(o))):a&&(e.opacity=cs(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,o));for(let n=0;n<Bc;n++){const a=`border${Ic[n]}Radius`;let i=Uc(t,a),s=Uc(r,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||zc(i)===zc(s)?(e[a]=Math.max(cs(Hc(i),Hc(s),o),0),(Ca.test(s)||Ca.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||r.rotate)&&(e.rotate=cs(t.rotate||0,r.rotate||0,o))}(n,o,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&&(xn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vn.update((()=>{Rc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const o=ia(0)?0:Cl(0);return o.start(gl("",o,1e3,r)),o.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:o,latestValues:n}=e;if(t&&r&&o){if(this!==e&&this.layout&&o&&Ru(this.options.animationType,this.layout.layoutBox,o.layoutBox)){r=this.target||cc();const t=Gl(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const o=Gl(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+o}Xc(t,r),Pc(t,n),Ql(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nu),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 o=this.getStack();o&&o.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 o={};for(let t=0;t<lu.length;t++){const n="rotate"+lu[t];r[n]&&(o[n]=r[n],e.setStaticValue(n,0))}e.render();for(const t in o)e.setStaticValue(t,o[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,r;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=oi(e.pointerEvents)||"",o.transform=n?n(this.latestValues,""):"none",o;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=oi(e.pointerEvents)||""),this.hasProjected&&!hc(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),o.transform=au(this.projectionDeltaWithTransform,this.treeScale,i),n&&(o.transform=n(i,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,a.animationValues?o.opacity=a===this?null!==(r=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:o.opacity=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in ra){if(void 0===i[e])continue;const{correct:t,applyTo:r}=ra[e],n="none"===o.transform?i[e]:t(i[e],a);if(r){const e=r.length;for(let t=0;t<e;t++)o[r[t]]=n}else o[e]=n}return this.options.layoutId&&(o.pointerEvents=a===this?oi(e.pointerEvents)||"":"none"),o}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(yu),this.root.sharedNodes.clear()}}}function pu(e){e.updateLayout()}function mu(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:o}=e.layout,{animationType:n}=e.options,a=r.source!==e.layout.source;"size"===n?uc((e=>{const o=a?r.measuredBox[e]:r.layoutBox[e],n=Gl(o);o.min=t[e].min,o.max=o.min+n})):Ru(n,r.layoutBox,t)&&uc((o=>{const n=a?r.measuredBox[o]:r.layoutBox[o],i=Gl(t[o]);n.max=n.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+i)}));const i=lc();Ql(i,t,r.layoutBox);const s=lc();a?Ql(s,e.applyTransform(o,!0),r.measuredBox):Ql(s,t,r.layoutBox);const l=!tu(i);let c=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:n,layout:a}=o;if(n&&a){const i=cc();rc(i,r.layoutBox,n.layoutBox);const s=cc();rc(s,t,a.layoutBox),ru(i,s)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hu(e){uu.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 fu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gu(e){e.clearSnapshot()}function yu(e){e.clearMeasurements()}function wu(e){e.isLayoutDirty=!1}function bu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xu(e){e.resolveTargetDelta()}function Eu(e){e.calcProjection()}function ku(e){e.resetRotation()}function Cu(e){e.removeLeadSnapshot()}function Su(e,t,r){e.translate=cs(t.translate,0,r),e.scale=cs(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Pu(e,t,r,o){e.min=cs(t.min,r.min,o),e.max=cs(t.max,r.max,o)}function Tu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Lu={duration:.45,ease:[.4,0,.1,1]},Mu=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),Au=Mu("applewebkit/")&&!Mu("chrome/")?Math.round:yn;function Nu(e){e.min=Au(e.min),e.max=Au(e.max)}function Ru(e,t,r){return"position"===e||"preserve-aspect"===e&&!Jl(ou(t),ou(r),.2)}const Ou=du({attachResizeListener:(e,t)=>li(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Du={current:void 0},Vu=du({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Du.current){const e=new Ou({});e.mount(window),e.setOptions({layoutScroll:!0}),Du.current=e}return Du.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Fu={pan:{Feature:class extends vi{constructor(){super(...arguments),this.removePointerDownListener=yn}onPointerDown(e){this.session=new Ul(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nc(e),onStart:Nc(t),onMove:r,onEnd:(e,t)=>{delete this.session,o&&vn.update((()=>o(e,t)))}}}mount(){this.removePointerDownListener=pi(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 vi{constructor(e){super(e),this.removeGroupControls=yn,this.removeListeners=yn,this.controls=new Mc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yn}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Vu,MeasureLayout:_c}},_u=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ju(e,t,r=1){Rn(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,n]=function(e){const t=_u.exec(e);if(!t)return[,];const[,r,o]=t;return[r,o]}(e);if(!o)return;const a=window.getComputedStyle(t).getPropertyValue(o);if(a){const e=a.trim();return wl(e)?parseFloat(e):e}return da(n)?ju(n,t,r+1):n}const Iu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bu=e=>Iu.has(e),Hu=e=>e===ha||e===Sa,zu=(e,t)=>parseFloat(e.split(", ")[t]),Uu=(e,t)=>(r,{transform:o})=>{if("none"===o||!o)return 0;const n=o.match(/^matrix3d\((.+)\)$/);if(n)return zu(n[1],t);{const t=o.match(/^matrix\((.+)\)$/);return t?zu(t[1],e):0}},$u=new Set(["x","y","z"]),Wu=oa.filter((e=>!$u.has(e))),Zu={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:Uu(4,13),y:Uu(5,14)};Zu.translateX=Zu.x,Zu.translateY=Zu.y;function qu(e,t,r,o){return(e=>Object.keys(e).some(Bu))(t)?((e,t,r={},o={})=>{t={...t},o={...o};const n=Object.keys(t).filter(Bu);let a=[],i=!1;const s=[];if(n.forEach((n=>{const l=e.getValue(n);if(!e.hasValue(n))return;let c=r[n],u=Tl(c);const d=t[n];let p;if(ei(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=Tl(c);for(let r=t;r<e&&null!==d[r];r++)p?Rn(Tl(d[r])===p,"All keyframes must be of the same type"):(p=Tl(d[r]),Rn(p===u||Hu(u)&&Hu(p),"Keyframes must be of the same dimension as the current value"))}else p=Tl(d);if(u!==p)if(Hu(u)&&Hu(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[n]=parseFloat(d):Array.isArray(d)&&p===Sa&&(t[n]=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[n]=u.transform(d):(i||(a=function(e){const t=[];return Wu.forEach((r=>{const o=e.getValue(r);void 0!==o&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),i=!0),s.push(n),o[n]=void 0!==o[n]?o[n]:t[n],l.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,n=((e,t,r)=>{const o=t.measureViewportBox(),n=t.current,a=getComputedStyle(n),{display:i}=a,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=Zu[e](o,a)})),t.render();const l=t.measureViewportBox();return r.forEach((r=>{const o=t.getValue(r);o&&o.jump(s[r]),e[r]=Zu[r](l,a)})),e})(t,e,s);return a.length&&a.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),hn&&null!==r&&window.scrollTo({top:r}),{target:n,transitionEnd:o}}return{target:t,transitionEnd:o}})(e,t,r,o):{target:t,transitionEnd:o}}const Xu={current:null},Yu={current:!1},Gu=new WeakMap,Ju=Object.keys(Xn),Ku=Ju.length,Qu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ed=Un.length;class td{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:o,visualState:n},a={}){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=()=>vn.render(this.render,!1,!0);const{latestValues:i,renderState:s}=n;this.latestValues=i,this.baseTarget={...i},this.initialValues=t.initial?{...i}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=$n(t),this.isVariantNode=Wn(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!==i[e]&&ia(t)&&(t.set(i[e],!1),yl(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Gu.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))),Yu.current||function(){if(Yu.current=!0,hn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xu.current=e.matches;e.addListener(t),t()}else Xu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Gu.delete(this.current),this.projection&&this.projection.unmount(),xn(this.notifyUpdate),xn(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=na.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&vn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),n=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{o(),n()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,o,n){let a,i;for(let e=0;e<Ku;e++){const r=Ju[e],{isEnabled:o,Feature:n,ProjectionNode:s,MeasureLayout:l}=Xn[r];s&&(a=s),o(t)&&(!this.features[r]&&n&&(this.features[r]=new n(this)),l&&(i=l))}if(!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:o,dragConstraints:i,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(o)||i&&In(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:s,layoutRoot:l})}return i}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):cc()}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<Qu.length;t++){const r=Qu[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o=e["on"+r];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=function(e,t,r){const{willChange:o}=t;for(const n in t){const a=t[n],i=r[n];if(ia(a))e.addValue(n,a),yl(o)&&o.add(n);else if(ia(i))e.addValue(n,Cl(a,{owner:e})),yl(o)&&o.remove(n);else if(i!==a)if(e.hasValue(n)){const t=e.getValue(n);!t.hasAnimated&&t.set(a)}else{const t=e.getStaticValue(n);e.addValue(n,Cl(void 0!==t?t:a,{owner:e}))}}for(const o in r)void 0===t[o]&&e.removeValue(o);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<ed;e++){const r=Un[e],o=this.props[r];(Bn(o)||!1===o)&&(t[r]=o)}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=Cl(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,o="string"==typeof r||"object"==typeof r?null===(t=Qa(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==o)return o;const n=this.getBaseTargetFromProps(this.props,e);return void 0===n||ia(n)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new xl),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class rd extends td{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:o},n){let a=function(e,t,r){const o={};for(const n in e){const e=Nl(n,t);if(void 0!==e)o[n]=e;else{const e=r.getValue(n);e&&(o[n]=e.get())}}return o}(r,e||{},this);if(o&&(t&&(t=o(t)),r&&(r=o(r)),a&&(a=o(a))),n){!function(e,t,r){var o,n;const a=Object.keys(t).filter((t=>!e.hasValue(t))),i=a.length;if(i)for(let s=0;s<i;s++){const i=a[s],l=t[i];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(n=null!==(o=r[i])&&void 0!==o?o:e.readValue(i))&&void 0!==n?n:t[i]),null!=c&&("string"==typeof c&&(wl(c)||ml(c))?c=parseFloat(c):!Ml(c)&&ks.test(l)&&(c=pl(i,l)),e.addValue(i,Cl(c,{owner:e})),void 0===r[i]&&(r[i]=c),null!==c&&e.setBaseTarget(i,c))}}(this,r,a);const e=((e,t,r,o)=>{const n=function(e,{...t},r){const o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!da(t))return;const r=ju(t,o);r&&e.set(r)}));for(const e in t){const n=t[e];if(!da(n))continue;const a=ju(n,o);a&&(t[e]=a,r||(r={}),void 0===r[e]&&(r[e]=n))}return{target:t,transitionEnd:r}}(e,t,o);return qu(e,t=n.target,r,o=n.transitionEnd)})(this,r,a,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class od extends rd{readValueFromInstance(e,t){if(na.has(t)){const e=dl(t);return e&&e.default||0}{const o=(r=e,window.getComputedStyle(r)),n=(ua(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof n?n.trim():n}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return Tc(e,t)}build(e,t,r,o){Na(e,t,r,o.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Ja(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ia(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,o){Xa(e,t,r,o)}}class nd extends rd{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(na.has(t)){const e=dl(t);return e&&e.default||0}return t=Ya.has(t)?t:qa(t),e.getAttribute(t)}measureInstanceViewportBox(){return cc()}scrapeMotionValuesFromProps(e,t){return Ka(e,t)}build(e,t,r,o){za(e,t,r,this.isSVGTag,o.transformTemplate)}renderInstance(e,t,r,o){Ga(e,t,0,o)}mount(e){this.isSVGTag=$a(e.tagName),super.mount(e)}}const ad=(e,t)=>ta(e)?new nd(t,{enableHardwareAcceleration:!1}):new od(t,{enableHardwareAcceleration:!0}),id={...Hl,...Mi,...Fu,layout:{ProjectionNode:Vu,MeasureLayout:_c}},sd=Qn(((e,t)=>function(e,{forwardMotionProps:t=!1},r,o){return{...ta(e)?ii:si,preloadedFeatures:r,useRender:Za(t),createVisualElement:o,Component:e}}(e,t,id,ad))),ld=({setPage:e,resetState:t})=>{var o,n,i;const s=null!==(o=window.extOnbData.resetSiteInformation.pagesIds)&&void 0!==o?o:[],l=null!==(n=window.extOnbData.resetSiteInformation.navigationsIds)&&void 0!==n?n:[],c=null!==(i=window.extOnbData.resetSiteInformation.templatePartsIds)&&void 0!==i?i:[],[u,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),h=(0,a.useRef)(null);return(0,a.useEffect)((()=>{s.length>0&&(d(!0),e(0))}),[s.length,d,e]),(0,r.createElement)(Dn,null,u&&(0,r.createElement)(dn,{initialFocus:h,static:!0,open:u,as:sd.div,initial:!1,animate:{opacity:1},exit:{opacity:0},"data-test":"confirmation-launch",className:"extendify-launch extendify-launch-modal",onClose:()=>null},(0,r.createElement)("div",{className:"mx-auto md:p-8 w-full flex justify-center items-center h-screen absolute top-0"},(0,r.createElement)("div",{className:"fixed inset-0 bg-black/30",style:{backdropFilter:"blur(2px)",zIndex:99999},"aria-hidden":"true"}),(0,r.createElement)("div",{style:{zIndex:100099},className:"sm:flex mx-6 rounded relative shadow-2xl sm:overflow-hidden bg-white max-w-screen-3xl"},(0,r.createElement)(dn.Panel,{className:"flex flex-col"},(0,r.createElement)(dn.Title,{className:"m-0 py-6 pr-7 pl-8 font-bold text-gray-900 text-2xl\tflex items-center"},(0,se.__)("Start over?","extendify-local")),(0,r.createElement)("div",{className:"text-left relative py-0 px-8 text-base font-normal max-w-screen-sm"},(0,se.__)("Go through the onboarding process again to create a new site.","extendify-local"),(0,r.createElement)("br",null),(0,r.createElement)("strong",null,(0,se.sprintf)( // translators: %3$s is the number of old pages (0,se.__)("%s pages created in the prior onboarding session will be deleted.","extendify-local"),s.length))),(0,r.createElement)("div",{className:"px-8 py-8 flex justify-end space-x-4 text-base"},(0,r.createElement)(cd,{"data-test":"modal-exit-button",onClick:()=>window.location.href=`${window.extSharedData.adminUrl}admin.php?page=extendify-assist`,disabled:p,className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,se.__)("Exit","extendify-local")),(0,r.createElement)(cd,{onClick:async()=>{m(!0),t();for(const e of s)try{await ie()({path:`/wp/v2/pages/${e}`,method:"DELETE"})}catch(t){console.warn(`delete pages failed to delete a page (id: ${e}) with the following error`,t)}for(const e of l)try{await ie()({path:`/wp/v2/navigation/${e}`,method:"DELETE"})}catch(t){console.warn(`delete navigation failed to delete a navigation (id: ${e}) with the following error`,t)}for(const e of c)try{await ie()({path:`/wp/v2/template-parts/${e}?force=true`,method:"DELETE"})}catch(t){console.warn(`delete template failed to delete template (id: ${e}) with the following error`,t)}d(!1)},disabled:p,className:"bg-design-main text-design-text border-design-main","data-test":"modal-continue-button"},p?(0,r.createElement)("div",{className:"flex items-center justify-center"},(0,r.createElement)(ur.Spinner,null),(0,r.createElement)("div",null,(0,se.__)("Processing","extendify-local"))):(0,se.__)("Continue","extendify-local"))))))))},cd=(0,a.forwardRef)(((e,t)=>(0,r.createElement)("button",{ref:t,...e,className:mn()("rounded flex items-center px-6 py-3 leading-6 button-focus border",{"opacity-50 cursor-not-allowed":e.disabled},e.className),type:"button"},e.children))),ud=({show:e})=>e?(0,r.createElement)(Dn,null,(0,r.createElement)(sd.div,{className:"extendify-launch w-full fixed bottom-[100px] pb-4 flex justify-end z-max px-12"},(0,r.createElement)("div",{className:"shadow-2xl"},(0,r.createElement)(ur.Snackbar,null,(0,se.__)("Just a moment, this is taking longer than expected.","extendify-local"))))):null,dd=e=>{let t;const r=new Set,o=(e,o)=>{const n="function"==typeof e?e(t):e;if(!Object.is(n,t)){const e=t;t=(null!=o?o:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach((r=>r(t,e)))}},n=()=>t,a={setState:o,getState:n,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},i=t=e(o,n,a);return a};var pd=n(798);const{useDebugValue:md}=r,{useSyncExternalStoreWithSelector:hd}=pd;let fd=!1;const gd=e=>e,yd=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?dd(e):dd)(e):e,r=(e,r)=>function(e,t=gd,r){r&&!fd&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),fd=!0);const o=hd(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return md(o),o}(t,e,r);return Object.assign(r,t),r},wd=e=>e?yd(e):yd,bd=new Map,vd=e=>{const t=bd.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},xd=(e,t={})=>(r,o,n)=>{const{enabled:a,anonymousActionType:i,store:s,...l}=t;let c;try{c=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,o,n);const{connection:u,...d}=((e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};const o=bd.get(r.name);if(o)return{type:"tracked",store:e,...o};const n={connection:t.connect(r),stores:{}};return bd.set(r.name,n),{type:"tracked",store:e,...n}})(s,c,l);let p=!0;n.setState=(e,t,a)=>{const c=r(e,t);if(!p)return c;const d=void 0===a?{type:i||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===s?(null==u||u.send(d,o()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...vd(l.name),[s]:n.getState()}),c)};const m=(...e)=>{const t=p;p=!1,r(...e),p=t},h=e(n.setState,o,n);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=n,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),n.dispatchFromDevtools&&"function"==typeof n.dispatch){let e=!1;const t=n.dispatch;n.dispatch=(...r)=>{"__setState"!==r[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...r)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Ed(e.payload,(e=>{if("__setState"!==e.type)n.dispatchFromDevtools&&"function"==typeof n.dispatch&&n.dispatch(e);else{if(void 0===s)return void m(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[s];if(null==t)return;JSON.stringify(n.getState())!==JSON.stringify(t)&&m(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return m(h),void 0===s?null==u?void 0:u.init(n.getState()):null==u?void 0:u.init(vd(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(n.getState())):null==u?void 0:u.init(vd(l.name));case"ROLLBACK":return Ed(e.state,(e=>{if(void 0===s)return m(e),void(null==u||u.init(n.getState()));m(e[s]),null==u||u.init(vd(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ed(e.state,(e=>{void 0!==s?JSON.stringify(n.getState())!==JSON.stringify(e[s])&&m(e[s]):m(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,o=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!o)return;return m(void 0===s?o:o[s]),void(null==u||u.send(null,r))}case"PAUSE_RECORDING":return p=!p}return}})),h},Ed=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};function kd(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var o;const n=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(o=r.getItem(e))?o:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,o)=>r.setItem(e,JSON.stringify(o,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}const Cd=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>Cd(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Cd(t)(e)}}},Sd=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,o,n)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=Cd(a.serialize),d=()=>{const e=a.partialize({...o()});let t;const r=u({state:e,version:a.version}).then((e=>c.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return r},p=n.setState;n.setState=(e,t)=>{p(e,t),d()};const m=e(((...e)=>{r(...e),d()}),o,n);let h;const f=()=>{var e;if(!c)return;i=!1,s.forEach((e=>e(o())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,o()))||void 0;return Cd(c.getItem.bind(c))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=a.merge(e,null!=(t=o())?t:m),r(h,!0),d()})).then((()=>{null==t||t(h,void 0),i=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>f(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},f(),h||m})(e,t)):((e,t)=>(r,o,n)=>{let a={storage:kd((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)}),o,n);const u=()=>{const e=a.partialize({...o()});return c.setItem(a.name,{state:e,version:a.version})},d=n.setState;n.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{r(...e),u()}),o,n);let m;n.getInitialState=()=>p;const h=()=>{var e,t;if(!c)return;i=!1,s.forEach((e=>{var t;return e(null!=(t=o())?t:p)}));const n=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=o())?e:p))||void 0;return Cd(c.getItem.bind(c))(a.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=a.merge(e,null!=(t=o())?t:p),r(m,!0),u()})).then((()=>{null==n||n(m,void 0),m=o(),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==n||n(void 0,e)}))};return n.persist={setOptions:e=>{a={...a,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e,t),Pd=xd((()=>({generating:!1})),{name:"Extendify Launch Globals"}),Td=wd(Pd),Ld=({setAcceptTerms:e,acceptTerms:t,consentTermsHTML:o})=>(0,r.createElement)("div",{className:"flex flex-col"},(0,r.createElement)("label",{htmlFor:"accept-terms",className:"text-base ml-1 flex items-center focus-within:text-design-mains cursor-pointer"},(0,r.createElement)("span",{className:"relative"},(0,r.createElement)("input",{id:"accept-terms",className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>e(!t),checked:t}),(0,r.createElement)("svg",{className:mn()("absolute block inset-0 h-5 w-4",{"text-white":t,"text-transparent":!t}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"ml-1.5 text-lg md:text-base m-0 text-gray-900 font-medium"},(0,se.__)("I agree (required to use AI Assistant)","extendify-local"))),(0,r.createElement)("p",{className:"mx-7 mt-1 p-0 m-0 mb-2 text-sm text-gray-700",dangerouslySetInnerHTML:{__html:o}})),Md=({description:e,setDescription:t})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{htmlFor:"extendify-business-info-input",className:"text-lg md:text-base leading-8 md:leading-10 m-0 text-gray-900 font-medium"},(0,se.__)("Website description","extendify-local")),(0,r.createElement)("textarea",{"data-test":"business-info-input",autoComplete:"off",autoFocus:!0,rows:"4",name:"business-info-input",id:"extendify-business-info-input",className:"w-full rounded-lg border border-gray-300 h-40 p-2 input-focus ring-offset-0 placeholder:italic placeholder:text-md placeholder:opacity-50",value:null!=e?e:"",onChange:e=>t(e.target.value),placeholder:(0,se.__)("E.g., We are a yoga studio in London with professionally trained instructors with focus on hot yoga for therapeutic purposes.","extendify-local")})),Ad=e=>{try{return JSON.parse(e)}catch(e){return{}}},Nd={siteType:{},siteInformation:{title:void 0},businessInformation:{description:void 0,tones:[],acceptTerms:!1},siteTypeSearch:[],style:null,pages:void 0,plugins:void 0,goals:void 0},Rd=`extendify-launch-user-selection-${window.extSharedData.siteId}`,Od=Ad(window.extSharedData.userData.userSelectionData),Dd="/extendify/v1/shared/user-selections-data",Vd={getItem:async()=>await ie()({path:Dd}),setItem:async(e,t)=>await ie()({path:Dd,method:"POST",data:{state:t}})},Fd=wd(Sd(xd(((e,t)=>{var r,o;return{...Nd,...null!==(r=Od?.state)&&void 0!==r?r:{},...null!==(o=JSON.parse(localStorage.getItem(Rd)||"{}")?.state)&&void 0!==o?o:{},setSiteType(t){e({...Nd,siteType:t})},setSiteTypeSearch(t){e((e=>({siteTypeSearch:[...e.siteTypeSearch,t].slice(-10)})))},setSiteInformation(r,o){const n={...t().siteInformation,[r]:o};e({siteInformation:n})},setBusinessInformation(r,o){const n={...t().businessInformation,[r]:o};e({businessInformation:n})},has(e,r){var o;return!!r?.id&&(null!==(o=t()?.[e])&&void 0!==o?o:[])?.some((e=>e.id===r.id))},add(r,o){var n;t().has(r,o)||e({[r]:[...null!==(n=t()?.[r])&&void 0!==n?n:[],o]})},addMany(r,o,n={}){var a;n.clearExisting?e({[r]:o}):e({[r]:[...null!==(a=t()?.[r])&&void 0!==a?a:[],...o]})},remove(r,o){e({[r]:t()?.[r]?.filter((e=>e.id!==o.id))})},removeMany(r,o){e({[r]:t()?.[r]?.filter((e=>!o.some((t=>t.id===e.id))))})},toggle(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle(t){e({style:t})},canLaunch(){var e,r;return Object.keys(null!==(e=t()?.siteType)&&void 0!==e?e:{})?.length>0&&Object.keys(null!==(r=t()?.style)&&void 0!==r?r:{})?.length>0},resetState(){e(Nd)}}}),{name:"Extendify User Selections"}),{storage:kd((()=>Vd)),skipHydration:!0})),_d=()=>{const{businessInformation:e,setBusinessInformation:t}=Fd(),o=[{label:(0,se.__)("Professional","extendify-local"),value:"professional"},{label:(0,se.__)("Friendly","extendify-local"),value:"friendly"},{label:(0,se.__)("Inspirational","extendify-local"),value:"inspirational"},{label:(0,se.__)("Informative","extendify-local"),value:"informative"},{label:(0,se.__)("Persuasive","extendify-local"),value:"persuasive"}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",{htmlFor:"extendify-business-info-tone",className:"text-lg md:text-base leading-8 md:leading-10 m-0 text-gray-900 font-medium"},(0,se.__)("Select your site's tone (optional)","extendify-local")),(0,r.createElement)("div",{className:"flex justify-left w-full flex-wrap gap-2"},o.map((o=>{const n=e.tones?.find((({value:e})=>e===o.value));return(0,r.createElement)("div",{key:o.value,className:mn()("relative border rounded border-gray-300",{"bg-gray-100":n,"border-gray-300":!n})},(0,r.createElement)("label",{htmlFor:o.value,className:"w-full flex items-center justify-between text-gray-900 p-2 h-full cursor-pointer"},(0,r.createElement)("div",{className:"flex items-center flex-auto"},(0,r.createElement)("span",{className:"w-4 h-4 relative inline-block mr-1 align-middle"},(0,r.createElement)("input",{id:o.value,className:"h-4 w-4 rounded-sm focus:ring-0 focus:ring-offset-0",type:"checkbox",onChange:()=>(r=>{let{tones:o}=e;const n=o?.find((({value:e})=>e===r.value))?o?.filter((({value:e})=>e!==r.value)):[...o,r];t("tones",n)})(o),checked:!!e.tones?.find((({value:e})=>e===o.value))}),(0,r.createElement)("svg",{className:mn()("absolute block h-4 w-4 -mt-px inset-0",{"text-white":n,"text-transparent":!n}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"text-sm font-small"},o.label))))}))))},jd=({title:e,description:t})=>(0,r.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,r.createElement)("div",{className:"flex flex-col gap-2 mb-8 md:mb-12"},(0,r.createElement)("h2",{className:"text-2xl leading-8 md:leading-10 m-0 text-gray-900 text-center"},e),(0,r.createElement)("p",{className:"text-gray-700 text-base text-center leading-6 m-0"},t))),Id=e=>(0,r.createElement)("button",{...e,className:mn()("rounded flex items-center px-6 py-3 leading-6 button-focus border",{"opacity-50 cursor-not-allowed":e.disabled},e.className),type:"button"},e.children),Bd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),Hd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),zd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,r.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),Ud=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),$d=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Wd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),Zd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1.23 13.33V19H10.9v-1.69c-1.5-.31-2.77-1.28-2.86-2.97h1.71c.09.92.72 1.64 2.32 1.64 1.71 0 2.1-.86 2.1-1.39 0-.73-.39-1.41-2.34-1.87-2.17-.53-3.66-1.42-3.66-3.21 0-1.51 1.22-2.48 2.72-2.81V5h2.34v1.71c1.63.39 2.44 1.63 2.49 2.97h-1.71c-.04-.97-.56-1.64-1.94-1.64-1.31 0-2.1.59-2.1 1.43 0 .73.57 1.22 2.34 1.67 1.77.46 3.66 1.22 3.66 3.42-.01 1.6-1.21 2.48-2.74 2.77z",opacity:".3"}),(0,r.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"}))})),qd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),Xd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),Yd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),Gd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M12 6.5C15.79 6.5 19.17 8.63 20.82 12C19.17 15.37 15.8 17.5 12 17.5C8.2 17.5 4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5ZM12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 9.5C13.38 9.5 14.5 10.62 14.5 12C14.5 13.38 13.38 14.5 12 14.5C10.62 14.5 9.5 13.38 9.5 12C9.5 10.62 10.62 9.5 12 9.5ZM12 7.5C9.52 7.5 7.5 9.52 7.5 12C7.5 14.48 9.52 16.5 12 16.5C14.48 16.5 16.5 14.48 16.5 12C16.5 9.52 14.48 7.5 12 7.5Z",fill:"currentColor"}))})),Jd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),Kd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),Qd=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),ep=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),tp=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,r.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),rp=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,r.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),op=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),np=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,r.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),ap=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,r.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),ip=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,r.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,r.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,r.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,r.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,r.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,r.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,r.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),sp=(0,a.memo)((e=>{const{className:t,...o}=e;return(0,r.createElement)("svg",{className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},(0,r.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,r.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))})),lp=()=>{const{currentPageIndex:e,setPage:t,replaceHistory:o,pushHistory:n}=Fm();return(0,a.useEffect)((()=>{const r=()=>{null===history.state&&o(e)};window.addEventListener("load",r);const a=()=>{const r=e-1;-1===r&&history.go(-1),t(r),n(r)};return window.addEventListener("popstate",a),()=>{window.removeEventListener("load",r),window.removeEventListener("popstate",a)}}),[t,o,n,e]),(0,r.createElement)("div",{className:"flex justify-between"},(0,r.createElement)("span",{className:"flex-1 self-start"},(0,r.createElement)(up,null)),(0,r.createElement)("span",{className:"grow hidden md:flex items-center justify-center"},(0,r.createElement)(cp,null)),(0,r.createElement)("span",{className:"flex-1 flex justify-end"},(0,r.createElement)(dp,null)))},cp=()=>{const{currentPageIndex:e,pages:t}=Fm(),o=Fm((e=>e.count())),n=Array.from(t.entries());return(0,r.createElement)("div",{className:"flex",role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuetext":n[e][1].state.getState().title,"aria-valuemax":o-1},n.map((([t],n)=>{const a=n<e?"bg-design-main":"bg-gray-200";return(0,r.createElement)("div",{key:t,className:"flex items-center"},n!==e&&(0,r.createElement)("div",{className:`${a} w-2.5 h-2.5 rounded-full`}),n===e&&(0,r.createElement)("div",{className:"bg-design-main w-4 h-4 rounded-full flex items-center justify-center"},(0,r.createElement)("div",{className:"bg-white/80 w-1.5 h-1.5 rounded-full"})),n<o-1&&(0,r.createElement)("div",{className:`${a} w-16 h-0.5`}))})))},up=()=>{const{previousPage:e,currentPageIndex:t}=Fm();return 0===t?(0,r.createElement)(Id,{onClick:()=>window.location.href=`${window.extSharedData.adminUrl}admin.php?page=extendify-assist`,className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)($d,{className:"h-5 w-5 mt-px"}),(0,se.__)("Exit Launch","extendify-local"))):(0,r.createElement)(Id,{onClick:e,"data-test":"back-button",className:"bg-white text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)($d,{className:"h-5 w-5 mt-px"}),(0,se.__)("Back","extendify-local")))},dp=()=>{const{nextPage:e,currentPageIndex:t,pages:o}=Fm(),n=Fm((e=>e.count())),i=Fd((e=>e.canLaunch())),s=t===n-1,l=Array.from(o.keys())[t],c=o.get(l).state,[u,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[h,f]=(0,a.useState)({}),[g,y]=(0,a.useState)(!1),w=()=>{if(h?.message){y(!0);const e=setTimeout((()=>{y(!1)}),3e3);return()=>clearTimeout(e)}i&&s?Td.setState({generating:!0}):e()};return(0,a.useEffect)((()=>{const{ready:e,canSkip:t,validation:r}=c?.getState()||{};return m(null!=t&&t),d(null!=e&&e),f(null!=r?r:{}),c.subscribe((e=>{m(e.canSkip),d(e.ready),f(e.validation)}))}),[c,t]),(0,r.createElement)(r.Fragment,null,p?(0,r.createElement)(Id,{onClick:()=>w(),"data-test":"back-button",className:"bg-white mr-2 text-design-main border-gray-200 hover:bg-gray-50 focus:bg-gray-50"},(0,r.createElement)(r.Fragment,null,(0,se.__)("Skip","extendify-local"),(0,r.createElement)(ep,{className:"h-5 w-5 mt-px"}))):(0,r.createElement)(Id,{onClick:w,disabled:!u,className:"bg-design-main text-design-text border-design-main","data-test":"next-button"},(0,r.createElement)(r.Fragment,null,(0,se.__)("Next","extendify-local"),(0,r.createElement)(ep,{className:"h-5 w-5 mt-px"}))),(0,r.createElement)(Dn,null,g&&h&&(0,r.createElement)(sd.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"extendify-launch w-full fixed bottom-[100px] pb-4 flex justify-end z-max"},(0,r.createElement)("div",{className:"shadow-2xl"},(0,r.createElement)(ur.Snackbar,{actions:h?.action?[h?.action]:[]},h?.message)))))},pp=({children:e,includeNav:t=!0})=>{var o;return(0,r.createElement)("div",{className:"flex flex-col h-[calc(100dvh)]"},(0,r.createElement)("div",{className:"flex-none px-6 py-5 md:px-12 md:py-6 w-full bg-banner-main"},window.extSharedData?.partnerLogo?(0,r.createElement)("div",{className:"flex items-center h-10 max-w-52\tmd:max-w-72 overflow-hidden"},(0,r.createElement)("img",{className:"max-w-full max-h-full object-contain",src:window.extSharedData.partnerLogo,alt:null!==(o=window.extSharedData?.partnerName)&&void 0!==o?o:""})):(0,r.createElement)(Wd,{className:"text-banner-text w-auto h-8"})),e,t&&(0,r.createElement)("div",{className:"flex-none px-6 py-5 md:px-12 md:py-6 w-full bg-white shadow-surface border-t border-gray-100 z-10"},(0,r.createElement)(lp,null)))},mp=(e,t)=>wd(xd(t,{name:`Extendify Launch ${e}`})),hp=mp("Business Information",(()=>({title:(0,se.__)("Business Information","extendify-local"),showInSidebar:!0,ready:!0,canSkip:!0,validation:null}))),fp=()=>{const{businessInformation:e,setBusinessInformation:t}=Fd(),[o,n]=(0,a.useState)(e?.description||""),i=Fm((e=>e.nextPage)),s=window.extSharedData?.consentTermsHTML,l=window.extSharedData?.showAIConsent&&s;return(0,a.useEffect)((()=>{const e=setTimeout((()=>{t("description",o)}),500);return hp.setState({canSkip:!o}),()=>clearTimeout(e)}),[o,t]),(0,a.useEffect)((()=>{l&&(!e.acceptTerms&&e.description?hp.setState({validation:{message:(0,se.__)("Please accept the terms to continue","extendify-local")}}):hp.setState({validation:null}))}),[e,l]),(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),hp.getState().ready&&i()}},(0,r.createElement)("div",{className:"mb-2"},(0,r.createElement)(Md,{description:o,setDescription:n})),(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)(_d,null)),l?(0,r.createElement)("div",{className:"mb-8 flex items-center"},(0,r.createElement)(Ld,{consentTermsHTML:s,acceptTerms:e.acceptTerms,setAcceptTerms:e=>{t("acceptTerms",e)}})):null)},gp="https://patterns.extendify.com",yp=async(e,t)=>{const{showLocalizedCopy:r,wpVersion:o,wpLanguage:n}=window.extSharedData,{goals:a,plugins:i}=Fd.getState(),s=new URL(`${gp}/api/${e}-templates`);s.searchParams.append("siteType",t?.slug),o&&s.searchParams.append("wpVersion",o),n&&s.searchParams.append("lang",n),a?.length&&s.searchParams.append("goals",JSON.stringify(a)),i?.length&&s.searchParams.append("plugins",JSON.stringify(i)),r&&s.searchParams.append("showLocalizedCopy",!0);const l=await fetch(s.toString(),{headers:{"Content-Type":"application/json"}});if(!l.ok)throw new Error("Bad response from server");return await l.json()},wp=async e=>{const t=await yp("home",e),{headers:r,footers:o}=await(async()=>{let e=await Yt.get(Qt+"wp/v2/template-parts");e=e?.filter((e=>"extendable"===e.theme));const t=e?.filter((e=>sr.includes(e?.slug))),r=e?.filter((e=>lr.includes(e?.slug)));return{headers:t,footers:r}})();if(!t?.length)throw new Error("Could not get styles");return t.map((({id:e,patterns:t},n)=>{var a,i;const s=r[n%r.length],l=o[n%o.length];return{id:e,code:t.map((({code:e})=>e)).flat(),headerCode:null!==(a=s?.content?.raw?.trim())&&void 0!==a?a:"",footerCode:null!==(i=l?.content?.raw?.trim())&&void 0!==i?i:""}}))},bp=["partnerId","devbuild","version","siteId","wpLanguage","wpVersion"],vp={...Object.fromEntries(Object.entries(window.extSharedData).filter((([e])=>bp.includes(e))))},xp=e=>{const{label:t,description:o,Icon:n,checked:a,...i}=e;return(0,r.createElement)("label",{className:"w-full flex items-center justify-between text-gray-900 font-semibold p-4 h-full",htmlFor:e.id},(0,r.createElement)("div",{className:"flex items-center flex-auto"},(0,r.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,r.createElement)("input",{...i,checked:a,className:"h-5 w-5 rounded-sm m-0",type:"checkbox"}),(0,r.createElement)("svg",{className:mn()("absolute block h-5 w-5 -mt-px inset-0",{"text-white":a,"text-transparent":!a}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",null,(0,r.createElement)("span",{className:"text-sm font-medium"},t),o?(0,r.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},o):(0,r.createElement)("span",null))),n&&(0,r.createElement)(n,{className:"flex-none text-design-main h-6 w-6"}))},Ep=()=>(0,r.createElement)("p",{className:"w-full text-center text-base text-gray-700"},(0,se.__)("Loading...","extendify-local")),kp=(e,t,r={})=>{const{data:o,error:n}=ne(e,(e=>t(e)),{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,...r});return{data:o,loading:!o&&!n,error:n}},Cp=e=>(async({siteTypeSlug:e})=>{const t=await Yt.get("launch/goals",{params:{site_type:null!=e?e:"all"}});if(!t?.data)throw new Error("Could not get goals");return t.data})(e),Sp=()=>({key:"goals",siteTypeSlug:Fd.getState()?.siteType?.slug}),Pp=()=>(async()=>{const e=await Yt.get("launch/suggested-plugins");if(!e?.data)throw new Error("Could not get suggested plugins");return e.data})(),Tp=()=>({key:"plugins"}),Lp=mp("Goals",(()=>({title:(0,se.__)("Goals","extendify-local"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>0===Fd.getState().goals?.length}))),Mp=()=>{const{siteType:e}=Fd(),{addMany:o,toggle:n,goals:i}=Fd(),[s,l]=(0,a.useState)(null!=i?i:[]),{data:c}=kp(Sp(),Cp),{data:u}=kp(Tp,Pp),d=Fm((e=>e.nextPage));return(0,a.useEffect)((()=>{Lp.setState({ready:!0})}),[]),(0,a.useEffect)((()=>{Lp.setState({ready:!1});const e=setTimeout((()=>{o("goals",s,{clearExisting:!0});const e=s?.map((e=>e.slug)),t=u?.filter((t=>t.goals.find((t=>e?.includes(t)))));o("plugins",t,{clearExisting:!0}),Lp.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[s,o,n,u]),(0,r.createElement)("form",{"data-test":"goals-form",onSubmit:e=>{e.preventDefault(),d()},className:"w-full grid xl:grid-cols-2 gap-4 goal-select"},(0,r.createElement)("input",{type:"submit",className:"hidden"}),c?.map(((e,o)=>{const n=s?.find((({slug:t})=>t===e.slug)),a=t[e.icon];return(0,r.createElement)("div",{key:e.id,className:mn()("relative border rounded-lg border-gray-300",{"bg-gray-100":n}),"data-test":"goal-item"},(0,r.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,r.createElement)(xp,{autoFocus:0===o,label:e.title,id:`goal-${e.slug}`,description:e.description,checked:!!s?.find((({slug:t})=>t===e.slug)),onChange:()=>(e=>{const t=s?.find((({slug:t})=>t===e.slug))?s?.filter((({slug:t})=>t!==e.slug)):[...s,e];l(t)})(e),Icon:a})))})))},Ap=window.wp.blockEditor,Np=window.wp.blocks;var Rp={grad:.9,turn:360,rad:360/(2*Math.PI)},Op=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Dp=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Vp=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1),e>r?r:e>t?e:t},Fp=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},_p=function(e){return{r:Vp(e.r,0,255),g:Vp(e.g,0,255),b:Vp(e.b,0,255),a:Vp(e.a)}},jp=function(e){return{r:Dp(e.r),g:Dp(e.g),b:Dp(e.b),a:Dp(e.a,3)}},Ip=/^#([0-9a-f]{3,8})$/i,Bp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Hp=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=Math.max(t,r,o),i=a-Math.min(t,r,o),s=i?a===t?(r-o)/i:a===r?2+(o-t)/i:4+(t-r)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:n}},zp=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var a=Math.floor(t),i=o*(1-r),s=o*(1-(t-a)*r),l=o*(1-(1-t+a)*r),c=a%6;return{r:255*[o,s,i,i,l,o][c],g:255*[l,o,o,s,i,i][c],b:255*[i,i,l,o,o,s][c],a:n}},Up=function(e){return{h:Fp(e.h),s:Vp(e.s,0,100),l:Vp(e.l,0,100),a:Vp(e.a)}},$p=function(e){return{h:Dp(e.h),s:Dp(e.s),l:Dp(e.l),a:Dp(e.a,3)}},Wp=function(e){return zp((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},Zp=function(e){return{h:(t=Hp(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},qp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jp={string:[[function(e){var t=Ip.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Dp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Dp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Yp.exec(e)||Gp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:_p({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=qp.exec(e)||Xp.exec(e);if(!t)return null;var r,o,n=Up({h:(r=t[1],o=t[2],void 0===o&&(o="deg"),Number(r)*(Rp[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Wp(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,a=void 0===n?1:n;return Op(t)&&Op(r)&&Op(o)?_p({r:Number(t),g:Number(r),b:Number(o),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,a=void 0===n?1:n;if(!Op(t)||!Op(r)||!Op(o))return null;var i=Up({h:Number(t),s:Number(r),l:Number(o),a:Number(a)});return Wp(i)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,a=void 0===n?1:n;if(!Op(t)||!Op(r)||!Op(o))return null;var i=function(e){return{h:Fp(e.h),s:Vp(e.s,0,100),v:Vp(e.v,0,100),a:Vp(e.a)}}({h:Number(t),s:Number(r),v:Number(o),a:Number(a)});return zp(i)},"hsv"]]},Kp=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},Qp=function(e,t){var r=Zp(e);return{h:r.h,s:Vp(r.s+100*t,0,100),l:r.l,a:r.a}},em=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},tm=function(e,t){var r=Zp(e);return{h:r.h,s:r.s,l:Vp(r.l+100*t,0,100),a:r.a}},rm=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Kp(e.trim(),Jp.string):"object"==typeof e&&null!==e?Kp(e,Jp.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Dp(em(this.rgba),2)},e.prototype.isDark=function(){return em(this.rgba)<.5},e.prototype.isLight=function(){return em(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=jp(this.rgba)).r,r=e.g,o=e.b,a=(n=e.a)<1?Bp(Dp(255*n)):"","#"+Bp(t)+Bp(r)+Bp(o)+a;var e,t,r,o,n,a},e.prototype.toRgb=function(){return jp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=jp(this.rgba)).r,r=e.g,o=e.b,(n=e.a)<1?"rgba("+t+", "+r+", "+o+", "+n+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,n},e.prototype.toHsl=function(){return $p(Zp(this.rgba))},e.prototype.toHslString=function(){return t=(e=$p(Zp(this.rgba))).h,r=e.s,o=e.l,(n=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+n+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,n},e.prototype.toHsv=function(){return e=Hp(this.rgba),{h:Dp(e.h),s:Dp(e.s),v:Dp(e.v),a:Dp(e.a,3)};var e},e.prototype.invert=function(){return om({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),om(Qp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),om(Qp(this.rgba,-e))},e.prototype.grayscale=function(){return om(Qp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),om(tm(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),om(tm(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?om({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Dp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Zp(this.rgba);return"number"==typeof e?om({h:e,s:t.s,l:t.l,a:t.a}):Dp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===om(e).toHex()},e}(),om=function(e){return e instanceof rm?e:new rm(e)};const nm=window.lodash,am=new WeakMap,im=({container:e,onLoad:t,ready:r,loadDelay:o})=>{const n=(()=>{const e=(0,a.useRef)(!1);return(0,a.useEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[i,s]=(0,a.useState)(0),[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(!1),p=(0,a.useRef)(!1),m=(0,a.useCallback)((async(e,t)=>{var r;if(e.getBoundingClientRect().top<t.getBoundingClientRect().top)return;p.current=!0;let o=t.querySelector('[style*="scale"]')?.style?.transform?.match(/scale\((.*?)\)/)?.[1];o=o?parseFloat(o):null;const n=t.offsetHeight/(null!==(r=o)&&void 0!==r?r:1);e.style.setProperty("max-height",`${n}px`,"important");const a=e.contentDocument.querySelectorAll(".wp-block-cover");for(const e of a)am.has(e)||am.set(e,e.style.minHeight),e.style.minHeight=am.get(e);t.offsetHeight,await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e)));for(const t of a){if(!e.contentDocument?.defaultView)return;const r=parseFloat(e.contentDocument.defaultView.getComputedStyle(t).height);t.offsetHeight,t.style.minHeight=r>784?"784px":r+"px"}e.style.setProperty("max-height","none","important"),p.current=!1}),[]);return(0,a.useLayoutEffect)((()=>{if(!r)return;const o=setTimeout((()=>{const r=e?.querySelector("iframe[title]");if(!r)return s((e=>e+1));c(r),requestAnimationFrame((()=>t(r,e)))}),100);return()=>clearTimeout(o)}),[l,r,i,e,t]),(0,a.useLayoutEffect)((()=>{if(d(!1),!l?.contentDocument)return;const t={attributes:!1,childList:!0,subtree:!0};requestAnimationFrame((()=>r(l,e))),setTimeout((()=>r()),2e3);const r=(0,nm.debounce)((()=>{n.current&&!p.current&&(a.disconnect(),m(l,e).then((()=>{setTimeout((()=>d(!0)),o),n.current&&a.observe(l.contentDocument,t)})))}),300),a=new MutationObserver(r);return a.observe(l.contentDocument,t),()=>{r.cancel(),a?.disconnect()}}),[l,e,n,r,m,o]),{loading:!l,ready:u}},sm=e=>e.replace(/(https?:\/\/\S+\?w=\d+)/gi,"$1&q=10&auto=format,compress&fm=avif"),lm=async()=>{try{return await Yt.get("launch/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),lm()},cm=(e,t)=>e?.filter((e=>e.includes(t)))?.length,um=JSON.parse('{"Bloom":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #014932;--wp--preset--color--secondary: #395144;--wp--preset--color--tertiary: #FFEFEA;--wp--preset--color--foreground-alt: #333333;--wp--custom--elements--button--border--radius: 0.4rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 1px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--top: calc(0.838rem - 1px);--wp--custom--elements--button--spacing--padding--right: calc(2.5rem - 1px);--wp--custom--elements--button--spacing--padding--bottom: calc(0.838rem - 1px);--wp--custom--elements--button--spacing--padding--left: calc(2.5rem - 1px);--wp--custom--elements--button--typography--font-size: 1.0625rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 0.4rem;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--top: calc(0.838rem - 1px);--wp--custom--elements--input--spacing--padding--right: calc(1rem - 1px);--wp--custom--elements--input--spacing--padding--bottom: calc(0.838rem - 1px);--wp--custom--elements--input--spacing--padding--left: calc(1rem - 1px);--wp--custom--elements--input--typography--font-size: 1.0625rem;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--ibm-plex-sans);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--marcellus);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 400;}h4{font-weight: 400;}h5{font-weight: 400;}h6{font-weight: 400;}.wp-element-button, .wp-block-button__link{border-radius: 0.4rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Brisbane":"body{--wp--preset--color--foreground: #f7fafc;--wp--preset--color--background: #3f5762;--wp--preset--color--primary: #F9F6DE;--wp--preset--color--secondary: #fcf8f2;--wp--preset--color--tertiary: #2d3f47;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--blocks--core-table--variant-stripes--color--background: var(--wp--preset--color--primary);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);line-height: var(--wp--custom--typography--line-height--medium);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--arsenal);}h1{font-weight: 500;letter-spacing: -0.01em;}h2{font-weight: 500;letter-spacing: 0.01em;}h3{font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Cairo":"body{--wp--preset--color--foreground: #ffffff;--wp--preset--color--background: #393646;--wp--preset--color--primary: #F4EEE0;--wp--preset--color--secondary: #EFE1D1;--wp--preset--color--tertiary: #4F4557; --wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","FusionSky":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #0B51C2;--wp--preset--color--secondary: #C4FF47;--wp--preset--color--tertiary: #F9FAFE;--wp--preset--color--foreground-alt: #333333;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--jost);}h1{font-weight: 400;}h2{font-weight: 400;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);font-size: inherit;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Gdansk":"body{--wp--preset--color--foreground: #fcece8;--wp--preset--color--background: #0c0c0b;--wp--preset--color--primary: #f5ac8e;--wp--preset--color--secondary: #9d2c1e;--wp--preset--color--tertiary: #50140d;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--elements--button--color--text: var(--wp--preset--color--background);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.02em;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Glasgow":"body{--wp--preset--color--background: #dbd3ce;--wp--preset--color--foreground: #13100f;--wp--preset--color--primary: #3b2300;--wp--preset--color--secondary: #d4a72c;--wp--preset--color--tertiary: #c6b6ac;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--rubik);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--rubik);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Graphite":"body{--wp--preset--color--foreground: #000000;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #000000;--wp--preset--color--secondary: #262626;--wp--preset--color--tertiary: #E9E8E6;--wp--preset--color--foreground-alt: #444444;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--manrope);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--gotu);font-weight: 400;}.wp-element-button, .wp-block-button__link{font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2rem;padding-bottom: 0.838rem;padding-left: 2rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Hong Kong":"body{--wp--preset--color--background: #ffebe9;--wp--preset--color--foreground: #a40e26;--wp--preset--color--primary: #A30026;--wp--preset--color--secondary: #ffcecb;--wp--preset--color--tertiary: #ffffff;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--elements--button--border--radius: 8px;--wp--custom--elements--button--border--color: var(--wp--preset--color--primary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--primary);--wp--custom--elements--button--color--text: var(--wp--preset--color--tertiary);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: var(--wp--preset--font-size--small);--wp--custom--elements--button--typography--text-transform: uppercase;--wp--custom--elements--button--typography--letter-spacing: 0.15rem;--wp--custom--elements--button--typography--font-weight: 400;--wp--custom--elements--input--border--radius: 8px;--wp--custom--spacing--small: min(3rem, 4vw);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);font-size: 1rem;font-weight: 400;line-height: var(--wp--custom--typography--line-height--large);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: 700;letter-spacing: normal;}h2{font-weight: 700;letter-spacing: normal;}h3{font-weight: 700;letter-spacing: normal;}h4{font-weight: 700;letter-spacing: normal;}h5{font-weight: 700;letter-spacing: normal;}h6{font-weight: 700;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;font-size: var(--wp--preset--font-size--small);font-weight: 400;letter-spacing: 0.15rem;text-transform: uppercase;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--primary);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Kampala":"body{--wp--preset--color--background: #f7f9fe;--wp--preset--color--foreground: #010110;--wp--preset--color--primary: #0B119C;--wp--preset--color--secondary: #c1cbf9;--wp--preset--color--tertiary: #ffffff;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--elements--button--border--radius: 0.5rem;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--hind);}h1{letter-spacing: -0.01em;}h6{font-weight: 900;}.wp-element-button, .wp-block-button__link{border-radius: 0.5rem;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Lagoon":"body{--wp--preset--color--foreground: #292929;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #13607E;--wp--preset--color--secondary: #1F4F70;--wp--preset--color--tertiary: #faf7f8;--wp--preset--color--foreground-alt: #292929;--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--mulish);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--baloo-tamma-2);}.wp-element-button, .wp-block-button__link{font-size: var(--wp--preset--font-size--small);font-weight: 600;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Odesa":"body{--wp--preset--color--foreground: #0b0449;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #0b0449;--wp--preset--color--secondary: #f3c8cf;--wp--preset--color--tertiary: #fcf9f5;--wp--preset--color--foreground-alt: #595769;--wp--custom--elements--button--border--radius: 2px;--wp--custom--elements--button--border--width: 1px;--wp--custom--elements--input--border--radius: 2px;--wp--custom--elements--input--border--width: 1px;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{color: var(--wp--preset--color--foreground-alt);font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{color: var(--wp--preset--color--foreground);font-family: var(--wp--preset--font-family--source-serif-pro);}h1{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: -0.01em;}h2{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h3{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h4{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--black);letter-spacing: 0.02em;}.wp-element-button, .wp-block-button__link{border-radius: 2px;font-size: var(--wp--preset--font-size--small);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-color{color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-background-color{background-color: var(--wp--preset--color--foreground-alt) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-alt-border-color{border-color: var(--wp--preset--color--foreground-alt) !important;}","Onyx":"body{--wp--preset--color--foreground: #FFFCFC;--wp--preset--color--background: #17181A;--wp--preset--color--primary: #FFFCFC;--wp--preset--color--secondary: #C4C4C4;--wp--preset--color--tertiary: #000000;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--elements--button--border--radius: 2rem;--wp--custom--elements--button--border--color: var(--wp--preset--color--secondary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--secondary);--wp--custom--elements--button--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.125rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--typography--font-weight--semi-bold);--wp--custom--elements--button--typography--line-height: var(--wp--custom--typography--line-height--normal);--wp--custom--elements--input--border--radius: 4px;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);--wp--custom--elements--input--color--background: var(--wp--preset--color--background);--wp--custom--elements--input--color--text: var(--wp--preset--color--foreground);--wp--custom--elements--input--spacing--padding--bottom: calc(0.667em + 1px);--wp--custom--elements--input--spacing--padding--left: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--right: calc(1.333em + 1px);--wp--custom--elements--input--spacing--padding--top: calc(0.667em + 1px);--wp--custom--elements--input--typography--font-size: inherit;--wp--custom--elements--input--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--input--typography--line-height: var(--wp--custom--typography--line-height--normal);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--archivo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--archivo);}h1{font-weight: 500;}h2{font-weight: 500;}h3{font-weight: 500;}h4{font-weight: 500;}h5{font-weight: 500;}h6{font-weight: 500;}.wp-element-button, .wp-block-button__link{border-radius: 0.2rem;font-size: 1.0625rem;font-weight: var(--wp--custom--typography--font-weight--medium);line-height: inherit;padding-top: 0.838rem;padding-right: 2.5rem;padding-bottom: 0.838rem;padding-left: 2.5rem;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Orange":"body{--wp--preset--color--background: #ffffff;--wp--preset--color--foreground: #1A1A1A;--wp--preset--color--primary: #DE3707;--wp--preset--color--secondary: #02235B;--wp--preset--color--tertiary: #f2f3f5;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--preset--font-size--small: 1rem;--wp--preset--font-size--medium: 1.25rem;--wp--preset--font-size--large: 2.25rem;--wp--preset--font-size--x-large: 3rem;--wp--preset--font-size--xx-large: 3.75rem;--wp--custom--elements--button--border--radius: 0;--wp--custom--elements--button--border--color: var(--wp--preset--color--primary);--wp--custom--elements--button--border--width: 2px;--wp--custom--elements--button--color--background: var(--wp--preset--color--primary);--wp--custom--elements--button--color--text: var(--wp--preset--color--white);--wp--custom--elements--button--spacing--padding--bottom: calc(0.667em + 2px);--wp--custom--elements--button--spacing--padding--left: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--right: calc(1.333em + 2px);--wp--custom--elements--button--spacing--padding--top: calc(0.667em + 2px);--wp--custom--elements--button--typography--font-size: 1.15rem;--wp--custom--elements--button--typography--font-weight: var(--wp--custom--font-weight--regular);--wp--custom--elements--button--typography--line-height: 1.384;--wp--custom--elements--input--border--radius: 0;--wp--custom--elements--input--border--width: 1px;--wp--custom--elements--input--border--color: var(--wp--preset--color--foreground);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);font-size: 1rem;}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--montserrat);}h1{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h2{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h3{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h4{font-weight: 700;letter-spacing: normal;text-transform: uppercase;}h5{font-weight: 500;letter-spacing: normal;}h6{font-weight: 500;letter-spacing: normal;}.wp-element-button, .wp-block-button__link{border-radius: 2px;}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}.has-xx-large-font-size{font-size: var(--wp--preset--font-size--xx-large) !important;}","Piraeus":"body{--wp--preset--color--foreground: #ffffff;--wp--preset--color--background: #272725;--wp--preset--color--primary: #A89F84;--wp--preset--color--secondary: #3F2D0B;--wp--preset--color--tertiary: #32322D;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--elements--button--border--radius: 0;--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--roboto-flex);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--geom);}h1{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: -0.02em;}h2{font-weight: var(--wp--custom--typography--font-weight--light);}h3{font-weight: var(--wp--custom--typography--font-weight--light);letter-spacing: 0.04em;}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);letter-spacing: 0.01em;text-transform: normal;}h6{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--primary);border-radius: 0;color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Porto":"body{--wp--preset--color--foreground: #4D4848;--wp--preset--color--background: #F8FAF9;--wp--preset--color--primary: #854836;--wp--preset--color--secondary: #0D1B1E;--wp--preset--color--tertiary: #F8ECEA;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inconsolata);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--karla);}h1{letter-spacing: -0.07em;}h2{letter-spacing: -0.04em;}h3{letter-spacing: -0.03em;}h4{letter-spacing: -0.03em;}h5{font-weight: var(--wp--custom--typography--font-weight--bold);}h6{font-weight: var(--wp--custom--typography--font-weight--extra-bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Rio":"body{--wp--preset--color--foreground: #010101;--wp--preset--color--background: #fbfbfb;--wp--preset--color--primary: #174c2f;--wp--preset--color--secondary: #ffd800;--wp--preset--color--tertiary: #A8E1FF;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--space-mono);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--space-mono);}h1{font-weight: var(--wp--custom--typography--font-weight--regular);}h2{font-weight: var(--wp--custom--typography--font-weight--regular);}h3{font-weight: var(--wp--custom--typography--font-weight--regular);}h4{font-weight: var(--wp--custom--typography--font-weight--regular);}h5{font-weight: var(--wp--custom--typography--font-weight--regular);}h6{font-weight: var(--wp--custom--typography--font-weight--regular);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.wp-element-button:visited, .wp-block-button__link:visited{color: var(--wp--preset--color--foreground);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--primary);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Santa Fe":"body{--wp--preset--color--foreground: #111111;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #1f033b;--wp--preset--color--secondary: #d5dce3;--wp--preset--color--tertiary: #f0ede4;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--radio-canada);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--noto-serif-display);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: -0.01em;}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h6{font-weight: var(--wp--custom--typography--font-weight--bold);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Thimphu":"body{--wp--preset--color--foreground: #f24139;--wp--preset--color--background: #ffebcc;--wp--preset--color--primary: #f24139;--wp--preset--color--secondary: #3a312e;--wp--preset--color--tertiary: #ffdda6;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--heebo);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--heebo);}h1{font-weight: var(--wp--custom--typography--font-weight--medium);letter-spacing: 0;}h2{font-weight: var(--wp--custom--typography--font-weight--medium);}h3{font-weight: var(--wp--custom--typography--font-weight--medium);}h4{font-weight: var(--wp--custom--typography--font-weight--medium);}h5{font-weight: var(--wp--custom--typography--font-weight--semi-bold);}h6{font-weight: var(--wp--custom--typography--font-weight--black);}.wp-element-button, .wp-block-button__link{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--background);}.wp-element-button:hover, .wp-block-button__link:hover{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:focus, .wp-block-button__link:focus{background-color: var(--wp--preset--color--foreground);color: var(--wp--preset--color--background);}.wp-element-button:active, .wp-block-button__link:active{background-color: var(--wp--preset--color--secondary);color: var(--wp--preset--color--foreground);}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}","Tokyo":"body{--wp--preset--color--foreground: #010101;--wp--preset--color--background: #ffffff;--wp--preset--color--primary: #d61935;--wp--preset--color--secondary: #e3f2f2;--wp--preset--color--tertiary: #ffeae6;--wp--preset--color--foreground-alt: var(--wp--preset--color--foreground);--wp--custom--typography--font-smoothing--moz: auto;--wp--custom--typography--font-smoothing--webkit: auto;}body { margin: 0; }.wp-site-blocks > .alignleft { float: left; margin-right: 2em; }.wp-site-blocks > .alignright { float: right; margin-left: 2em; }.wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}body{font-family: var(--wp--preset--font-family--inter);}h1, h2, h3, h4, h5, h6{font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase;}.has-foreground-color{color: var(--wp--preset--color--foreground) !important;}.has-background-color{color: var(--wp--preset--color--background) !important;}.has-primary-color{color: var(--wp--preset--color--primary) !important;}.has-secondary-color{color: var(--wp--preset--color--secondary) !important;}.has-tertiary-color{color: var(--wp--preset--color--tertiary) !important;}.has-foreground-background-color{background-color: var(--wp--preset--color--foreground) !important;}.has-background-background-color{background-color: var(--wp--preset--color--background) !important;}.has-primary-background-color{background-color: var(--wp--preset--color--primary) !important;}.has-secondary-background-color{background-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-background-color{background-color: var(--wp--preset--color--tertiary) !important;}.has-foreground-border-color{border-color: var(--wp--preset--color--foreground) !important;}.has-background-border-color{border-color: var(--wp--preset--color--background) !important;}.has-primary-border-color{border-color: var(--wp--preset--color--primary) !important;}.has-secondary-border-color{border-color: var(--wp--preset--color--secondary) !important;}.has-tertiary-border-color{border-color: var(--wp--preset--color--tertiary) !important;}"}'),dm=({style:e,onSelect:t,selected:o})=>{var n;const i=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)(null),[c,u]=(0,a.useState)(!1),d=e?.variation,p=d?.settings?.color?.palette?.theme,m=(0,a.useMemo)((()=>um?.[e?.variation?.title]?(0,Ap.transformStyles)([{css:um[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),h=(0,a.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=performance.now();if(n-t<100)return requestAnimationFrame(o);t=n,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove();const a=`<style id="ext-tj">\n html body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n ${m}\n </style>`;e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",a),r++,requestAnimationFrame(o)};o()}),[m]),{loading:f,ready:g}=im({container:s.current,ready:c,onLoad:h,loadDelay:2e3}),y=(0,a.useMemo)((()=>{const t=[e?.headerCode,e?.code.slice(0,3).join("\n"),e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,Np.rawHandler)({HTML:sm(t)})}),[e]);return(0,a.useEffect)((()=>{if(!l.current)return l.current=new IntersectionObserver((e=>{e[0].isIntersecting&&u(!0)})),l.current.observe(s.current),()=>l.current.disconnect()}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{"data-test":"layout-preview",className:"w-full h-full relative overflow-hidden",ref:s,role:t?"button":void 0,tabIndex:t?0:void 0,"aria-label":t?(0,se.__)("Press to select","extendify-local"):void 0,"aria-selected":t?o:void 0,onKeyDown:r=>{["Enter","Space"," "].includes(r.key)&&t&&t({...e,variation:d})},onClick:t?()=>t({...e,variation:d}):()=>{}},c?(0,r.createElement)(sd.div,{ref:i,className:mn()("absolute inset-0 z-20",{"opacity-0":!g}),initial:{opacity:0},animate:{opacity:f?0:1}},(0,r.createElement)(Ap.BlockPreview,{blocks:y,viewportWidth:1400,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]})):null,(0,r.createElement)(Dn,null,g||(0,r.createElement)(sd.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"absolute inset-0 z-30",style:{backgroundColor:om(null!==(n=p?.find((({slug:e})=>"primary"===e))?.color)&&void 0!==n?n:"#ccc").alpha(.25).toRgbString(),backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}}))))},pm=({siteType:e})=>wp(e),mm=e=>({key:"home-pages-list",siteType:null!=e?e:Fd?.getState().siteType}),hm=mp("Layout",(()=>({title:(0,se.__)("Layout","extendify-local"),showInSidebar:!0,ready:!1}))),fm=({styleData:e})=>{const{data:t}=kp("variations",cr),o=(()=>{const e=(0,a.useRef)(!1);return(0,a.useLayoutEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[n,i]=(0,a.useState)([]),{setStyle:s,style:l}=Fd(),c=(0,a.useCallback)((e=>s(e)),[s]),u=(0,a.useRef)(),d=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{hm.setState({ready:!!l?.variation?.title})}),[l]),(0,a.useEffect)((()=>{e&&t&&(n.length||(s(null),(async()=>{const r=Array.from(e.entries());for(const[e,n]of r){if(!o.current)return;i((r=>[...r,{...n,variation:t[e%t.length]}]));const r=Math.floor(851*Math.random())+150;await new Promise((e=>setTimeout(e,r)))}})()))}),[e,o,t,n.length,s]),(0,a.useEffect)((()=>{if(!l||!n||d.current)return;const e=u.current?.querySelector(`#layout-style-${l.slug} [role="button"]`);e&&(d.current=!0,e.focus())}),[l,n]),(0,r.createElement)("div",{className:"gap-8 grid md:grid-cols-2 lg:grid-cols-3","data-test":"layout-preview-wrapper",ref:u},n?.map((e=>(0,r.createElement)("div",{className:"relative",key:e.id},(0,r.createElement)(Dn,null,(0,r.createElement)(sd.div,{initial:{opacity:0},animate:{opacity:1},duration:.7,className:mn()("relative overflow-hidden border border-gray-200 rounded cursor-pointer hover:ring-4 hover:ring-gray-300 ring-offset-2 ring-offset-white hover:outline-none focus-within:ring-4 focus-within:ring-offset-2 focus-within:ring-offset-white focus-within:ring-design-main focus-within:outline-none",{"ring-4 ring-offset-2 ring-offset-white ring-design-main hover:ring-design-main":l?.id===e.id}),style:{aspectRatio:"1.55"}},(0,r.createElement)(dm,{style:e,onSelect:c,selected:l?.id===e.id}))),(0,r.createElement)("span",{"aria-hidden":"true"},l?.id===e.id?(0,r.createElement)(Hd,{className:"absolute top-0 right-0 m-2 text-design-text bg-design-main w-6 h-6 z-50 rounded-full translate-x-5 -translate-y-5"}):null)))),e?.slice(n?.length).map(((e,t)=>(0,r.createElement)(Dn,{key:t},(0,r.createElement)(sd.div,{initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},duration:.7,className:"relative bg-gray-50",style:{aspectRatio:"1.55",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}})))))},gm=(0,a.forwardRef)((({style:e},t)=>{const o=(0,a.useRef)(null),n=(0,a.useRef)(null),[i,s]=(0,a.useState)(!1),l=(0,a.useMemo)((()=>um?.[e?.variation?.title]?(0,Ap.transformStyles)([{css:um[e?.variation?.title]}],"html body.editor-styles-wrapper"):null),[e?.variation]),c=(0,a.useCallback)((e=>{let t=performance.now(),r=0;const o=()=>{if(r>=150)return;const n=performance.now();if(n-t<100)return requestAnimationFrame(o);t=n,e?.contentDocument?.querySelector("[href*=load-styles]")?.remove();const a=`<style id="ext-tj">\n html body.editor-styles-wrapper { background-color: var(--wp--preset--color--background) }\n ${l}\n </style>`;e.contentDocument?.getElementById("ext-tj")||e.contentDocument?.body?.insertAdjacentHTML("beforeend",a),r++,requestAnimationFrame(o)};o()}),[l]),{ready:u}=im({container:t.current,ready:i,onLoad:c,loadDelay:400}),d=(0,a.useMemo)((()=>{const t=[e?.headerCode,e?.code,e?.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Link | Link | Link</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:site-logo.*\/-->/g,'\x3c!-- wp:paragraph {"className":"custom-logo"} --\x3e<img class="custom-logo" style="height: 40px;" src="https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png">\x3c!-- /wp:paragraph --\x3e');return(0,Np.rawHandler)({HTML:sm(t)})}),[e]);return(0,a.useEffect)((()=>{s(!1);const e=setTimeout((()=>s(!0)),0);return()=>clearTimeout(e)}),[d]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Dn,null,u||(0,r.createElement)(sd.div,{initial:{opacity:.7},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0 z-30 pointer-events-none",style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite"}},(0,r.createElement)("div",{className:"absolute inset-0 flex items-center justify-center"},(0,r.createElement)(ur.Spinner,{className:"w-10 h-10 text-design-main"})))),(0,r.createElement)("div",{"data-test":"layout-preview",ref:n,className:mn()("group w-full bg-transparent z-10",{"opacity-0":!u})},(0,r.createElement)("div",{ref:o,className:"relative rounded-lg max-w-[1440px] m-auto"},(0,r.createElement)(Ap.BlockPreview,{blocks:d,viewportWidth:1440,additionalStyles:[{css:'.rich-text [data-rich-text-placeholder]:after { content: "" }'}]}))))})),ym=({label:e,slug:t,description:o,checked:n,onChange:a,locked:i=!1})=>(0,r.createElement)("label",{className:mn()("flex items-center py-3.5 px-4",{"cursor-not-allowed":i,"hover:text-design-main focus-within:text-design-mains":!i}),htmlFor:t},(0,r.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,r.createElement)("input",{id:t,className:"h-5 w-5 rounded-sm m-0",style:{"--ext-design-main":i?"#BBBBBB":void 0},disabled:i,type:"checkbox",onChange:i?void 0:a,checked:!!i||n}),(0,r.createElement)("svg",{className:mn()("absolute block h-5 inset-0 w-5",{"text-white":n,"text-transparent":!n}),viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,r.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,r.createElement)("span",{className:"flex flex-col grow overflow-hidden"},(0,r.createElement)("span",{className:"text-base font-medium leading-tight truncate"},e),o?(0,r.createElement)("span",{className:"block pt-1"},o):(0,r.createElement)("span",null))),wm=({page:e,previewing:t,onPreview:o,checked:n,onChange:a,forceChecked:i=!1})=>(0,r.createElement)("div",{className:"border border-gray-300 rounded flex items-center"},(0,r.createElement)("div",{className:mn()("grow text-gray-900 overflow-hidden",{"bg-gray-300":i})},(0,r.createElement)(ym,{label:e.name,slug:e.slug,checked:n,onChange:a,locked:i})),(0,r.createElement)("button",{type:"button",className:mn()("flex items-center h-full min-h-6 min-w-6 shrink py-3 px-4 border-l border-gray-300 cursor-pointer",{"bg-gray-100 text-gray-800":!t,"bg-design-main text-white":t}),onClick:o},(0,r.createElement)(Gd,{className:"h-6 w-6"}))),bm=({siteType:e})=>(async e=>{const t=await yp("page",e);if(!t?.recommended)throw new Error("Could not get pages");return{recommended:t.recommended.map((({slug:e,...t})=>({...t,slug:e,id:e}))),optional:t.optional.map((({slug:e,...t})=>({...t,slug:e,id:e})))}})(e),vm=e=>({key:"pages-list",siteType:null!=e?e:Fd?.getState().siteType}),xm=mp("Pages",(()=>({title:(0,se.__)("Pages","extendify-local"),showInSidebar:!0,ready:!0}))),Em=window.wp.htmlEntities,km=async()=>({title:await tr("blogname")}),Cm=()=>({key:"site-info"}),Sm=mp("Site Title",(()=>({title:(0,se.__)("Site Title","extendify-local"),default:void 0,showInSidebar:!0,ready:!1}))),Pm=()=>{var e;const{siteInformation:t,setSiteInformation:o}=Fd(),n=Fm((e=>e.nextPage)),{data:i}=kp(Cm,km),s=(0,a.useRef)(null),[l,c]=(0,a.useState)(t?.title);return(0,a.useEffect)((()=>{var e;void 0===t.title&&c(null!==(e=i?.title)&&void 0!==e?e:"")}),[i.title,t.title]),(0,a.useEffect)((()=>{if(void 0===l)return;Sm.setState({ready:!1});const e=setTimeout((()=>{er("blogname",l),o("title",l),Sm.setState({ready:!0})}),750);return()=>clearTimeout(e)}),[o,l]),(0,a.useEffect)((()=>{const e=requestAnimationFrame((()=>s.current?.focus()));return()=>cancelAnimationFrame(e)}),[]),void 0===t?.title?(0,r.createElement)(Ep,null):(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),Sm.getState().ready&&n()}},(0,r.createElement)("label",{htmlFor:"extendify-site-title-input",className:"sr-only"},(0,se.__)("What's the name of your website?","extendify-local")),(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)("input",{"data-test":"site-title-input",autoComplete:"off",ref:s,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-full rounded border border-gray-200 h-12 py-6 px-4 input-focus ring-offset-0",value:null!==(e=(0,Em.decodeEntities)(l))&&void 0!==e?e:"",onChange:e=>c(e.target.value),placeholder:(0,se.__)("Enter your website name","extendify-local")})))},Tm=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Lm={dedupe:!0};d.defineProperty(q,"defaultValue",{value:$});const Mm=Q(((e,t,o)=>{const{cache:n,compare:a,suspense:i,fallbackData:s,revalidateOnMount:c,revalidateIfStale:d,refreshInterval:f,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=o,[v,x,E,k]=w.get(n),[S,P]=F(e),T=(0,r.useRef)(!1),L=(0,r.useRef)(!1),M=(0,r.useRef)(S),D=(0,r.useRef)(t),V=(0,r.useRef)(o),_=()=>V.current,B=()=>_().isVisible()&&_().isOnline(),[H,z,U,$]=C(n,S),W=(0,r.useRef)({}).current,Z=p(s)?o.fallback[S]:s,q=(e,t)=>{for(const r in W){const o=r;if("data"===o){if(!a(e[o],t[o])){if(!p(e[o]))return!1;if(!a(oe,t[o]))return!1}}else if(t[o]!==e[o])return!1}return!0},X=(0,r.useMemo)((()=>{const e=!!S&&!!t&&(p(c)?!_().isPaused()&&!i&&(!!p(d)||d):c),r=t=>{const r=h(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},o=H(),n=$(),a=r(o),s=o===n?a:r(n);let l=a;return[()=>{const e=r(H());return q(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[n,S]),Y=(0,l.useSyncExternalStore)((0,r.useCallback)((e=>U(S,((t,r)=>{q(r,t)||e()}))),[n,S]),X[0],X[1]),G=!T.current,J=v[S]&&v[S].length>0,K=Y.data,Q=p(K)?Z:K,te=Y.error,re=(0,r.useRef)(Q),oe=b?p(K)?re.current:K:Q,ne=!(J&&!p(te))&&(G&&!p(c)?c:!_().isPaused()&&(i?!p(Q)&&d:p(Q)||d)),ae=!!(S&&t&&G&&ne),ie=p(Y.isValidating)?ae:Y.isValidating,se=p(Y.isLoading)?ae:Y.isLoading,le=(0,r.useCallback)((async e=>{const t=D.current;if(!S||!t||L.current||_().isPaused())return!1;let r,n,i=!0;const s=e||{},l=!E[S]||!s.dedupe,c=()=>A?!L.current&&S===M.current&&T.current:S===M.current,d={isValidating:!1,isLoading:!1},h=()=>{z(d)},f=()=>{const e=E[S];e&&e[1]===n&&delete E[S]},g={isValidating:!0};p(H().data)&&(g.isLoading=!0);try{if(l&&(z(g),o.loadingTimeout&&p(H().data)&&setTimeout((()=>{i&&c()&&_().onLoadingSlow(S,o)}),o.loadingTimeout),E[S]=[t(P),j()]),[r,n]=E[S],r=await r,l&&setTimeout(f,o.dedupingInterval),!E[S]||E[S][1]!==n)return l&&c()&&_().onDiscarded(S),!1;d.error=u;const e=x[S];if(!p(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),l&&c()&&_().onDiscarded(S),!1;const s=H().data;d.data=a(s,r)?s:r,l&&c()&&_().onSuccess(r,S,o)}catch(e){f();const t=_(),{shouldRetryOnError:r}=t;t.isPaused()||(d.error=e,l&&c()&&(t.onError(e,S,t),(!0===r||m(r)&&r(e))&&(_().revalidateOnFocus&&_().revalidateOnReconnect&&!B()||t.onErrorRetry(e,S,t,(e=>{const t=v[S];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,h(),!0}),[S,n]),ce=(0,r.useCallback)(((...e)=>I(n,M.current,...e)),[]);if(O((()=>{D.current=t,V.current=o,p(K)||(re.current=K)})),O((()=>{if(!S)return;const e=le.bind(u,Lm);let t=0;const r=ee(S,v,((r,o={})=>{if(0==r){const r=Date.now();_().revalidateOnFocus&&r>t&&B()&&(t=r+_().focusThrottleInterval,e())}else if(1==r)_().revalidateOnReconnect&&B()&&e();else{if(2==r)return le();if(3==r)return le(o)}}));return L.current=!1,M.current=S,T.current=!0,z({_k:P}),ne&&(p(Q)||N?e():R(e)),()=>{L.current=!0,r()}}),[S]),O((()=>{let e;function t(){const t=m(f)?f(H().data):f;t&&-1!==e&&(e=setTimeout(r,t))}function r(){H().error||!g&&!_().isVisible()||!y&&!_().isOnline()?t():le(Lm).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,g,y,S]),(0,r.useDebugValue)(oe),i&&p(Q)&&S){if(!A&&N)throw new Error("Fallback data is required when using suspense in SSR.");D.current=t,V.current=o,L.current=!1;const e=k[S];if(!p(e)){const t=ce(e);Tm(t)}if(!p(te))throw te;{const e=le(Lm);p(oe)||(e.status="fulfilled",e.value=!0),Tm(e)}}return{mutate:ce,get data(){return W.data=!0,oe},get error(){return W.error=!0,te},get isValidating(){return W.isValidating=!0,ie},get isLoading(){return W.isLoading=!0,se}}})),Am=((e,t)=>(...r)=>{const[o,n,a]=G(r),i=(a.use||[]).concat(t);return e(o,n,{...a,use:i})})(Mm,(e=>(t,r,o)=>(o.revalidateOnFocus=!1,o.revalidateIfStale=!1,o.revalidateOnReconnect=!1,e(t,r,o)))),Nm=mp("Site Industry",(()=>({title:(0,se.__)("Site Industry","extendify-local"),showInSidebar:!0,ready:!1}))),Rm=()=>{const{nextPage:e}=Fm(),{siteType:t,setSiteType:o,setSiteTypeSearch:n}=Fd(),[i,s]=(0,a.useState)(""),[l,c]=(0,a.useState)(""),{data:u,loading:d}=(e=>{const{data:t,error:r}=Am(e||"cold-boot",(async()=>{const{wpLanguage:t}=window.extSharedData,r=performance.now(),o=new URL(`${gp}/api/site-types`);e&&o.searchParams.append("search",e),e||o.searchParams.append("boot","true"),t&&o.searchParams.append("lang",t);const n=await fetch(o.toString(),{headers:{"Content-Type":"application/json"}});if(!e)return;if(!n.ok)throw new Error("Bad response from server");const a=await n.json();if(!Array.isArray(a))throw new Error("Bad response from server");return{siteTypes:a,time:((performance.now()-r)/1e3).toFixed(4)}}));return{data:t,error:r,loading:!t&&!r}})(l),{siteTypes:p}=null!=u?u:{};return(0,a.useEffect)((()=>{Nm.setState({ready:!!t?.slug})}),[t]),(0,a.useEffect)((()=>{if(!i)return;const e=setTimeout((()=>c(i)),300),t=setTimeout((()=>n(i)),1e3);return()=>{clearTimeout(e),clearTimeout(t)}}),[i,n]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"relative"},(0,r.createElement)("input",{autoFocus:!0,"data-test":"site-type-search",className:"w-full h-14 px-4 m-0 input-focus ring-offset-0 focus:bg-white relative z-20 rounded border border-gray-300 shadow-sm outline-none",autoComplete:"off",spellCheck:!1,placeholder:(0,se.__)("Search for your site type","extendify-local"),onChange:e=>s(e.target.value)})),d&&i&&(0,r.createElement)("div",{className:"mt-5 text-sm"},(0,se.__)("Searching...","extendify-local")),(0,r.createElement)("div",{className:"mt-5 flex flex-col gap-3","data-test":"site-type-list"},t?.name&&(!d||!i)&&(0,r.createElement)("div",{className:"group gap-2 flex justify-between items-center py-2.5 px-3 text-base relative overflow-hidden border border-gray-200 rounded bg-gray-100 transition-all duration-100 ease-in-out"},t.name,(0,r.createElement)(Hd,{className:"h-5 w-5"})),p?.map((t=>(0,r.createElement)("button",{key:t.id,type:"button",className:"group gap-2 flex justify-between items-center py-2.5 px-3 text-base bg-gray-50 relative overflow-hidden border border-gray-200 rounded cursor-pointer hover:bg-gray-100 transition-all duration-100 ease-in-out",onClick:()=>(({slug:t,name:r,language:n})=>{e(),o({slug:t,name:r,language:n}),er("extendify_siteType",{slug:t,name:r,language:n})})(t)},t.name,(0,r.createElement)(ep,{className:"h-5 w-5 invisible group-hover:visible"}))))))},Om=[["site-type",{component:()=>{const{loading:e}=Fd();return(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("What is your WordPress site about?","extendify-local"),description:(0,se.__)("We will help you create your WordPress website quickly.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},e?(0,r.createElement)(Ep,null):(0,r.createElement)(Rm,null))))},state:Nm}],["site-title",{component:()=>{const{loading:e}=kp(Cm,km);return(0,a.useEffect)((()=>{Sm.setState({ready:!e})}),[e]),(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("What's the name of your new site?","extendify-local"),description:(0,se.__)("You can change this later.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},e?(0,r.createElement)(Ep,null):(0,r.createElement)(Pm,null))))},fetcher:km,fetchData:Cm,state:Sm}],["goals",{component:()=>{const{loading:e}=kp(Sp,Cp),{loading:t}=kp(Tp,Pp);return(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("What are your goals for your website?","extendify-local"),description:(0,se.__)("We'll make sure your website has what it needs to achieve your goals.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-3xl mx-auto"},e||t?(0,r.createElement)(Ep,null):(0,r.createElement)(Mp,null))))},fetcher:[Cp,Pp],fetchData:[Sp,Tp],state:Lp}],["layout",{component:()=>{const{loading:e,data:t}=kp(mm,pm);return(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("Pick a design for your website","extendify-local"),description:(0,se.__)("You can personalize this later.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-6xl mx-auto"},e?(0,r.createElement)(Ep,null):(0,r.createElement)(fm,{styleData:t}))))},fetcher:pm,fetchData:mm,state:hm}],["pages",{component:()=>{const{data:e,loading:t}=kp(vm,bm),[o,n]=(0,a.useState)(),[i,s]=(0,a.useState)(),{pages:l,remove:c,add:u,has:d,style:p}=Fd(),m=(0,a.useRef)(),h=(0,a.useMemo)((()=>({id:"home-page",slug:"home-page",name:(0,se.__)("Home page","extendify-local"),patterns:p?.code.map(((e,t)=>({name:`pattern-${t}`,code:e})))})),[p]),f=(0,a.useMemo)((()=>({...p,code:o?o.patterns.map((({code:e})=>e)).join(""):""})),[p,o]),g=e=>{if(!d("pages",e))return u("pages",e),n(e);c("pages",e)};return(0,a.useEffect)((()=>{let e;const t=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{m?.current?.scrollTo(0,0)}))}));return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}),[o]),(0,a.useEffect)((()=>{o||n(h)}),[o,h]),(0,a.useEffect)((()=>{void 0===l&&e?.recommended&&e.recommended.forEach((e=>u("pages",e)))}),[l,e?.recommended,u]),(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow lg:flex overflow-y-scroll space-y-4 lg:space-y-0"},(0,r.createElement)("div",{className:"h-full bg-gray-100 grow pt-0 px-4 lg:pb-0 l6:px-16 xl:px-32 overflow-y-hidden min-h-screen lg:min-h-0"},(0,r.createElement)("div",{className:"h-full flex flex-col"},(0,r.createElement)("h3",{className:"text-base lg:text-lg font-medium text-gray-700 text-center my-2 lg:my-4"},o?.name),(0,r.createElement)("div",{ref:m,className:"h-full lg:h-auto grow rounded-t-lg relative lg:overflow-y-scroll overflow-x-hidden"},o&&!t&&(0,r.createElement)(gm,{ref:m,style:f})))),(0,r.createElement)("div",{className:"flex items-center w-full lg:max-w-lg flex-col px-6 py-8 lg:py-16 lg:px-12 overflow-y-auto"},(0,r.createElement)(jd,{title:(0,se.__)("Pick the pages to add to your website","extendify-local"),description:(0,se.__)("We already selected the most common pages for your type of website.","extendify-local")}),(0,r.createElement)("div",{className:"flex flex-col gap-4 pb-4 w-full","data-test":"recommended-pages"},(0,r.createElement)(wm,{page:h,previewing:h.id===o?.id,onPreview:()=>n(h),checked:!0,forceChecked:!0,onChange:()=>{}}),e?.recommended?.map((e=>(0,r.createElement)(wm,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:d("pages",e),onChange:()=>g(e)})))),!i&&(0,r.createElement)("div",{className:"flex items-center justify-center"},(0,r.createElement)("button",{type:"button","data-test":"expand-more",onClick:s,className:"bg-transparent text-sm text-center font-medium text-gray-900 my-4 cursor-pointer hover:text-design-main button-focus"},(0,se.__)("View more pages","extendify-local"))),i&&(0,r.createElement)("div",{className:"flex flex-col gap-4 pb-4 w-full","data-test":"optional-pages"},e?.optional?.map((e=>(0,r.createElement)(wm,{key:e.id,page:e,previewing:e.id===o?.id,onPreview:()=>n(e),checked:l?.some((t=>t.id===e.id)),onChange:()=>g(e)})))))))},fetcher:bm,fetchData:vm,state:xm}],["business-information",{component:()=>(0,r.createElement)(pp,null,(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("Let us create custom copy for your website","extendify-local"),description:(0,se.__)("Our AI Assistant will take your input and create customized copy for each page. Describe your website or business with as much detail as you'd like and we'll use it to create your perfect site.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,r.createElement)(fp,null)))),state:hp}]],Dm=Om?.filter((e=>!window.extOnbData?.partnerSkipSteps?.includes(e[0]))),Vm=Sd(xd(((e,t)=>({pages:new Map(Dm),currentPageIndex:0,count:()=>t().pages.size,getPageOrder:()=>Array.from(t().pages.keys()),getCurrentPageData:()=>t().pages.get(t().getCurrentPageSlug()),getCurrentPageSlug:()=>t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0]),getNextPageData(){const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage(r){"string"==typeof r&&(r=t().getPageOrder().indexOf(r)),r>t().count()-1||r<0||e({currentPageIndex:r})},pushHistory(e){history.pushState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},replaceHistory(e){history.replaceState({currentPageIndex:e,currentPageKey:t().getPageOrder()[e],previousPageIndex:e-1},"")},nextPage(){const e=t().currentPageIndex+1;t().pushHistory(e),t().setPage(e)},previousPage(){const e=t().currentPageIndex-1;t().replaceHistory(e),t().setPage(e)}})),{name:"Extendify Launch Pages",serialize:!0}),{name:`extendify-pages-${window.extSharedData.siteId}`,partialize:e=>{var t,r,o;return{currentPageIndex:null!==(t=e?.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(r=e?.getCurrentPageSlug())&&void 0!==r?r:null,availablePages:null!==(o=e?.getPageOrder())&&void 0!==o?o:[]}}}),Fm=wd(Vm);function _m(e=0){let[t,o]=(0,r.useState)(e),n=xr(),a=(0,r.useCallback)((e=>{n.current&&o((t=>t|e))}),[t,n]),i=(0,r.useCallback)((e=>Boolean(t&e)),[t]),s=(0,r.useCallback)((e=>{n.current&&o((t=>t&~e))}),[o,n]),l=(0,r.useCallback)((e=>{n.current&&o((t=>t^e))}),[o]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:s,toggleFlag:l}}function jm(e,...t){e&&t.length>0&&e.classList.add(...t)}function Im(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Bm({immediate:e,container:t,direction:r,classes:o,onStart:n,onStop:a}){let i=xr(),s=mr(),l=wr(r);yr((()=>{e&&(l.current="enter")}),[e]),yr((()=>{let e=pr();s.add(e.dispose);let r=t.current;if(r&&"idle"!==l.current&&i.current)return e.dispose(),n.current(l.current),e.add(function(e,t,r,o){let n=r?"enter":"leave",a=pr(),i=void 0!==o?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(o):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let s=Rr(n,{enter:()=>t.enter,leave:()=>t.leave}),l=Rr(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Rr(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Im(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),jm(e,...t.base,...s,...c),a.nextFrame((()=>{Im(e,...t.base,...s,...c),jm(e,...t.base,...s,...l),function(e,t){let r=pr();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:n}=getComputedStyle(e),[a,i]=[o,n].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=a+i;if(0!==s){r.group((r=>{r.setTimeout((()=>{t(),r.dispose()}),s),r.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&r.dispose()}))}));let o=r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),o())}))}else t();r.add((()=>t())),r.dispose}(e,(()=>(Im(e,...t.base,...s),jm(e,...t.base,...t.entered),i())))})),a.dispose}(r,o.current,"enter"===l.current,(()=>{e.dispose(),a.current(l.current)}))),e.dispose}),[r])}function Hm(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let zm=(0,r.createContext)(null);zm.displayName="TransitionContext";var Um=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Um||{});let $m=(0,r.createContext)(null);function Wm(e){return"children"in e?Wm(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Zm(e,t){let o=wr(e),n=(0,r.useRef)([]),a=xr(),i=mr(),s=br(((e,t=Dr.Hidden)=>{let r=n.current.findIndex((({el:t})=>t===e));-1!==r&&(Rr(t,{[Dr.Unmount](){n.current.splice(r,1)},[Dr.Hidden](){n.current[r].state="hidden"}}),i.microTask((()=>{var e;!Wm(n)&&a.current&&(null==(e=o.current)||e.call(o))})))})),l=br((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,Dr.Unmount)})),c=(0,r.useRef)([]),u=(0,r.useRef)(Promise.resolve()),d=(0,r.useRef)({enter:[],leave:[],idle:[]}),p=br(((e,r,o)=>{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((()=>o(r))):o(r)})),m=br(((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,r.useMemo)((()=>({children:n,register:l,unregister:s,onStart:p,onStop:m,wait:u,chains:d})),[l,s,n,p,m,d,u])}function qm(){}$m.displayName="NestingContext";let Xm=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ym(e){var t;let r={};for(let o of Xm)r[o]=null!=(t=e[o])?t:qm;return r}let Gm=Or.RenderStrategy,Jm=Ir((function(e,t){let{show:o,appear:n=!1,unmount:a=!0,...i}=e,s=(0,r.useRef)(null),l=Tr(s,t);Sr();let c=zo();if(void 0===o&&null!==c&&(o=(c&Ho.Open)===Ho.Open),![!0,!1].includes(o))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,r.useState)(o?"visible":"hidden"),p=Zm((()=>{d("hidden")})),[m,h]=(0,r.useState)(!0),f=(0,r.useRef)([o]);yr((()=>{!1!==m&&f.current[f.current.length-1]!==o&&(f.current.push(o),h(!1))}),[f,o]);let g=(0,r.useMemo)((()=>({show:o,appear:n,initial:m})),[o,n,m]);(0,r.useEffect)((()=>{if(o)d("visible");else if(Wm(p)){let e=s.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[o,p]);let y={unmount:a},w=br((()=>{var t;m&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),b=br((()=>{var t;m&&h(!1),null==(t=e.beforeLeave)||t.call(e)}));return r.createElement($m.Provider,{value:p},r.createElement(zm.Provider,{value:g},Vr({ourProps:{...y,as:r.Fragment,children:r.createElement(Km,{ref:l,...y,...i,beforeEnter:w,beforeLeave:b})},theirProps:{},defaultTag:r.Fragment,features:Gm,visible:"visible"===u,name:"Transition"})))})),Km=Ir((function(e,t){var o,n;let{beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:m,leaveFrom:h,leaveTo:f,...g}=e,y=(0,r.useRef)(null),w=Tr(y,t),b=null==(o=g.unmount)||o?Dr.Unmount:Dr.Hidden,{show:v,appear:x,initial:E}=function(){let e=(0,r.useContext)(zm);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[k,C]=(0,r.useState)(v?"visible":"hidden"),S=function(){let e=(0,r.useContext)($m);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:T}=S;(0,r.useEffect)((()=>P(y)),[P,y]),(0,r.useEffect)((()=>{if(b===Dr.Hidden&&y.current)return v&&"visible"!==k?void C("visible"):Rr(k,{hidden:()=>T(y),visible:()=>P(y)})}),[k,y,P,T,v,b]);let L=wr({base:Hm(g.className),enter:Hm(c),enterFrom:Hm(u),enterTo:Hm(d),entered:Hm(p),leave:Hm(m),leaveFrom:Hm(h),leaveTo:Hm(f)}),M=function(e){let t=(0,r.useRef)(Ym(e));return(0,r.useEffect)((()=>{t.current=Ym(e)}),[e]),t}({beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l}),A=Sr();(0,r.useEffect)((()=>{if(A&&"visible"===k&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,k,A]);let N=x&&v&&E,R=!A||E&&!x?"idle":v?"enter":"leave",O=_m(0),D=br((e=>Rr(e,{enter:()=>{O.addFlag(Ho.Opening),M.current.beforeEnter()},leave:()=>{O.addFlag(Ho.Closing),M.current.beforeLeave()},idle:()=>{}}))),V=br((e=>Rr(e,{enter:()=>{O.removeFlag(Ho.Opening),M.current.afterEnter()},leave:()=>{O.removeFlag(Ho.Closing),M.current.afterLeave()},idle:()=>{}}))),F=Zm((()=>{C("hidden"),T(y)}),S),_=(0,r.useRef)(!1);Bm({immediate:N,container:y,classes:L,direction:R,onStart:wr((e=>{_.current=!0,F.onStart(y,e,D)})),onStop:wr((e=>{_.current=!1,F.onStop(y,e,V),"leave"===e&&!Wm(F)&&(C("hidden"),T(y))}))});let j=g,I={ref:w};return N?j={...j,className:Nr(g.className,...L.current.enter,...L.current.enterFrom)}:_.current&&(j.className=Nr(g.className,null==(n=y.current)?void 0:n.className),""===j.className&&delete j.className),r.createElement($m.Provider,{value:F},r.createElement(Uo,{value:Rr(k,{visible:Ho.Open,hidden:Ho.Closed})|O.flags},Vr({ourProps:I,theirProps:j,defaultTag:"div",features:Gm,visible:"visible"===k,name:"Transition.Child"})))})),Qm=Ir((function(e,t){let o=null!==(0,r.useContext)(zm),n=null!==zo();return r.createElement(r.Fragment,null,!o&&n?r.createElement(Jm,{ref:t,...e}):r.createElement(Km,{ref:t,...e}))})),eh=Object.assign(Jm,{Child:Qm,Root:Jm});const th=({pages:e})=>{const[t,o]=(0,a.useState)(0);return(0,a.useEffect)((()=>{const t=setTimeout((()=>{o((t=>(t+1)%e.length))}),1e4);return()=>clearTimeout(t)}),[e.length,t]),(0,r.createElement)("div",{className:"mt-3"},(0,r.createElement)(rh,{pageName:e[t]}))},rh=({pageName:e})=>{const[t,o]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[s,l]=(0,a.useState)("");return(0,a.useLayoutEffect)((()=>{const e=window.getComputedStyle(document.body).getPropertyValue("--ext-banner-main");o(om(e).isLight())}),[]),(0,a.useEffect)((()=>{i(!1);const t=setTimeout((()=>{i(!0),l(e)}),700);return()=>clearTimeout(t)}),[e]),(0,r.createElement)(Dn,null,n?(0,r.createElement)(sd.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0,transition:{duration:.6}},exit:{opacity:0,x:-50},transition:{ease:"easeInOut"},className:"p-4 rounded w-96 mt-12 border-8 border-gray-200 border-opacity-25",style:{mixBlendMode:t?"difference":"plus-lighter"}},(0,r.createElement)("h1",{className:"text-banner-text opacity-60 mb-8",style:{mixBlendMode:"plus-lighter"}},s),(0,r.createElement)("div",{className:"space-y-6"},[0,1,2].map((e=>{const t=3*e;return(0,r.createElement)(sd.div,{"aria-hidden":"true",key:e,initial:{opacity:0},animate:{opacity:1},transition:e?{duration:t/2,delay:t}:{},role:"status",className:"max-w-sm space-y-2"},(0,r.createElement)(oh,{i:e*t,className:"w-48 h-3 mb-3"}),(0,r.createElement)(oh,{i:e*t,className:"w-full h-2"}),(0,r.createElement)(oh,{i:e*t,className:"w-full max-w-[90%] h-2"}),(0,r.createElement)(oh,{i:e*t,className:"w-full h-2"}),(0,r.createElement)(oh,{i:e*t,className:"w-full h-2"}))})))):null)},oh=({className:e,i:t})=>(0,r.createElement)("div",{className:`rounded-full ${e}`,style:{backgroundColor:"rgba(204, 204, 204, 0.25)",backgroundImage:"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%)",backgroundSize:"600% 600%",animation:"extendify-loading-skeleton 10s ease-in-out infinite",animationDelay:`${t}s`,mixBlendMode:"plus-lighter"}});var nh={};!function e(t,r,o,n){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),i="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),r=e.getContext("2d");r.fillRect(0,0,1,1);var o=e.transferToImageBitmap();try{r.createPattern(o,"no-repeat")}catch(e){return!1}return!0}();function l(){}function c(e){var o=r.exports.Promise,n=void 0!==o?o:t.Promise;return"function"==typeof n?new n(e):(e(l,l),null)}var u,d,p,m,h,f,g,y,w,b,v,x=(u=s,d=new Map,{transform:function(e){if(u)return e;if(d.has(e))return d.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),d.set(e,t),t},clear:function(){d.clear()}}),E=(h=Math.floor(1e3/60),f={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(o){g===o||g+h-1<o?(g=o,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},m=function(e){f[e]&&cancelAnimationFrame(f[e])}):(p=function(e){return setTimeout(e,h)},m=function(e){return clearTimeout(e)}),{frame:p,cancel:m}),k=(b={},function(){if(y)return y;if(!o&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{y=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,o,n){if(w)return t(r,null),w;var a=Math.random().toString(36).slice(2);return w=c((function(o){function i(t){t.data.callback===a&&(delete b[a],e.removeEventListener("message",i),w=null,x.clear(),n(),o())}e.addEventListener("message",i),t(r,a),b[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),b)b[t](),delete b[t]}}(y)}return y}),C={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function S(e,t,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:C[t],r)}function P(e){return e<0?0:Math.floor(e)}function T(e){return parseInt(e,16)}function L(e){return e.map(M)}function M(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:T(t.substring(0,2)),g:T(t.substring(2,4)),b:T(t.substring(4,6))}}function A(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function N(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function R(e,r){var s,l=!e,u=!!S(r||{},"resize"),d=!1,p=S(r,"disableForReducedMotion",Boolean),m=a&&S(r||{},"useWorker")?k():null,h=l?A:N,f=!(!e||!m||!e.__confetti_initialized),g="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function y(t,r,a){for(var l,u,d,p,m=S(t,"particleCount",P),f=S(t,"angle",Number),g=S(t,"spread",Number),y=S(t,"startVelocity",Number),w=S(t,"decay",Number),b=S(t,"gravity",Number),v=S(t,"drift",Number),k=S(t,"colors",L),C=S(t,"ticks",Number),T=S(t,"shapes"),M=S(t,"scalar"),A=!!S(t,"flat"),N=function(e){var t=S(e,"origin",Object);return t.x=S(t,"x",Number),t.y=S(t,"y",Number),t}(t),R=m,O=[],D=e.width*N.x,V=e.height*N.y;R--;)O.push((void 0,void 0,u=(l={x:D,y:V,angle:f,spread:g,startVelocity:y,color:k[R%k.length],shape:T[(0,p=T.length,Math.floor(Math.random()*(p-0))+0)],ticks:C,decay:w,gravity:b,drift:v,scalar:M,flat:A}).angle*(Math.PI/180),d=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-u+(.5*d-Math.random()*d),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar,flat:l.flat}));return s?s.addFettis(O):(s=function(e,t,r,a,s){var l,u,d=t.slice(),p=e.getContext("2d"),m=c((function(t){function c(){l=u=null,p.clearRect(0,0,a.width,a.height),x.clear(),s(),t()}l=E.frame((function t(){!o||a.width===n.width&&a.height===n.height||(a.width=e.width=n.width,a.height=e.height=n.height),a.width||a.height||(r(e),a.width=e.width,a.height=e.height),p.clearRect(0,0,a.width,a.height),(d=d.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var r=t.tick++/t.totalTicks,o=t.x+t.random*t.tiltCos,n=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),i&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,r,o,n,a,i){var s=new Path2D(e),l=new Path2D;l.addPath(s,new DOMMatrix(t));var c=new Path2D;return c.addPath(l,new DOMMatrix([Math.cos(i)*n,Math.sin(i)*n,-Math.sin(i)*a,Math.cos(i)*a,r,o])),c}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-o),.1*Math.abs(s-n),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var l=Math.PI/10*t.wobble,c=.1*Math.abs(a-o),u=.1*Math.abs(s-n),d=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,m=new DOMMatrix([Math.cos(l)*c,Math.sin(l)*c,-Math.sin(l)*u,Math.cos(l)*u,t.x,t.y]);m.multiplySelf(new DOMMatrix(t.shape.matrix));var h=e.createPattern(x.transform(t.shape.bitmap),"no-repeat");h.setTransform(m),e.globalAlpha=1-r,e.fillStyle=h,e.fillRect(t.x-d/2,t.y-p/2,d,p),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,o,n,a,i,s,l){e.save(),e.translate(t,r),e.rotate(a),e.scale(o,n),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-o)*t.ovalScalar,Math.abs(s-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var f=Math.PI/2*3,g=4*t.scalar,y=8*t.scalar,w=t.x,b=t.y,v=5,E=Math.PI/v;v--;)w=t.x+Math.cos(f)*y,b=t.y+Math.sin(f)*y,e.lineTo(w,b),f+=E,w=t.x+Math.cos(f)*g,b=t.y+Math.sin(f)*g,e.lineTo(w,b),f+=E;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(n)),e.lineTo(Math.floor(a),Math.floor(s)),e.lineTo(Math.floor(o),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(p,e)}))).length?l=E.frame(t):c()})),u=c}));return{addFettis:function(e){return d=d.concat(e),m},canvas:e,promise:m,reset:function(){l&&E.cancel(l),u&&u()}}}(e,O,h,r,a),s.promise)}function w(r){var o=p||S(r,"disableForReducedMotion",Boolean),n=S(r,"zIndex",Number);if(o&&g)return c((function(e){e()}));l&&s?e=s.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(n),document.body.appendChild(e)),u&&!f&&h(e);var a={width:e.width,height:e.height};function i(){if(m){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return h(t),void m.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function w(){s=null,u&&(d=!1,t.removeEventListener("resize",i)),l&&e&&(document.body.removeChild(e),e=null,f=!1)}return m&&!f&&m.init(e),f=!0,m&&(e.__confetti_initialized=!0),u&&!d&&(d=!0,t.addEventListener("resize",i,!1)),m?m.fire(r,a,w):y(r,a,w)}return w.reset=function(){m&&m.reset(),s&&s.reset()},w}function O(){return v||(v=R(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return O().apply(this,arguments)},r.exports.reset=function(){O().reset()},r.exports.create=R,r.exports.shapeFromPath=function(e){if(!i)throw new Error("path confetti are not supported in this browser");var t,r;"string"==typeof e?t=e:(t=e.path,r=e.matrix);var o=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!r){for(var a,s,l=1e3,c=l,u=l,d=0,p=0,m=0;m<l;m+=2)for(var h=0;h<l;h+=2)n.isPointInPath(o,m,h,"nonzero")&&(c=Math.min(c,m),u=Math.min(u,h),d=Math.max(d,m),p=Math.max(p,h));a=d-c,s=p-u;var f=Math.min(10/a,10/s);r=[f,0,0,f,-Math.round(a/2+c)*f,-Math.round(s/2+u)*f]}return{type:"path",path:t,matrix:r}},r.exports.shapeFromText=function(e){var t,r=1,o="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,r="scalar"in e?e.scalar:r,n="fontFamily"in e?e.fontFamily:n,o="color"in e?e.color:o);var a=10*r,i=a+"px "+n,s=new OffscreenCanvas(a,a),l=s.getContext("2d");l.font=i;var c=l.measureText(t),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),d=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),p=c.actualBoundingBoxLeft+2,m=c.actualBoundingBoxAscent+2;u+=4,d+=4,(l=(s=new OffscreenCanvas(u,d)).getContext("2d")).font=i,l.fillStyle=o,l.fillText(t,p,m);var h=1/r;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[h,0,0,h,-u*h/2,-d*h/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),nh,!1);const ah=nh.exports;nh.exports.create;const ih=window.wp.mediaUtils,sh=window.wp.url,lh=async e=>{const t={};return t[e.slug]=await rr({title:e.name,status:"publish",content:e.patterns?.map((({code:e})=>e))?.join(""),template:"no-title",meta:{made_with_extendify_launch:!0}}),t?.home&&(await er("show_on_front","page"),await er("page_on_front",t.home.id)),t?.blog&&await er("page_for_posts",t.blog.id),t},ch=()=>{var e;const[t]=(0,a.useState)(!0),[o,n]=(0,a.useState)(!1),[i,s]=(0,a.useState)(["#ffffff"]),[l,c]=(0,a.useState)(!0),u=Fd((e=>e.canLaunch())),{pages:d,style:p,plugins:m,goals:h,businessInformation:f,siteType:g,siteInformation:y,siteTypeSearch:w}=Fd(),[b,v]=(0,a.useState)([]),[x,E]=(0,a.useState)([]),k=e=>v((t=>[e,...t])),C=e=>E((t=>[e,...t])),[S,P]=(0,a.useState)([]),{setPage:T}=Fm();((e=!0)=>{(0,a.useEffect)((()=>{if(!e)return;const t=e=>(e.preventDefault(),e.returnValue=""),r={capture:!0};return window.addEventListener("beforeunload",t,r),()=>{window.removeEventListener("beforeunload",t,r)}}),[e])})(l);const L=(0,a.useCallback)((async()=>{if(!u)throw new Error((0,se.__)("Site is not ready to launch.","extendify-local"));try{var e;if(await er("permalink_structure","/%postname%/"),await lm(),k((0,se.__)("Applying your website styles","extendify-local")),C((0,se.__)("Creating a beautiful website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await lm(),await(t=null!==(e=p?.variation)&&void 0!==e?e:{},((e,t)=>Yt.post(`${Qt}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extSharedData.globalStylesPostID,t)),await lm(),await ir("extendable/header",p?.headerCode),await lm(),await ir("extendable/footer",p?.footerCode),m?.length){k((0,se.__)("Installing necessary plugins","extendify-local"));const e=[...m].sort((({wordpressSlug:e})=>"give"===e?-1:1));for(const[t,r]of e.entries()){C((0,se.__)(`${t+1}/${m.length}: ${r.name}`,"extendify-local")),await lm();try{await nr(r)}catch(e){await lm(),await nr(r)}}k((0,se.__)("Populating data","extendify-local")),C((0,se.__)("Personalizing your experience","extendify-local")),await(async()=>await Yt.get("launch/prefetch-assist-data"))(),await lm()}let r,o;k((0,se.__)("Adding page content","extendify-local")),C((0,se.__)("Starting off with a full website","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await lm();const a={slug:"home",name:(0,se.__)("Home","extendify-local"),patterns:p.code.map((e=>({code:e})))},i={slug:"blog",name:(0,se.__)("Blog","extendify-local"),patterns:[]};await lm(),f.description&&(C((0,se.__)("Creating pages with custom content","extendify-local")),[a,...d].forEach((e=>P((t=>[...t,e.name])))));const s=h?.find((e=>"blog"===e.slug)),l=[...d,a,s?i:null].filter(Boolean);r=await(async(e,t)=>{if(!t.businessInformation.description)return await(async e=>{const t={};for(const r of e)t[r.slug]=await rr({title:r.name,status:"publish",content:r.patterns?.map((({code:e})=>e))?.join(""),template:"no-title",meta:{made_with_extendify_launch:!0}});return t?.home&&(await er("show_on_front","page"),await er("page_on_front",t.home.id)),t?.blog&&await er("page_for_posts",t.blog.id),t})(e);const{siteId:r,partnerId:o,wpLanguage:n,wpVersion:a}=window.extSharedData;return(await Promise.allSettled(e.map((e=>(async(e,t)=>{const r=await fetch("https://ai.extendify.com/api/patterns",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...vp,page:e,userState:t})});if(!r.ok)throw new Error("Bad response from server");return await r.json()})(e,{...t,siteId:r,partnerId:o,siteVersion:a,language:n}).then((e=>lh(e))).catch((()=>lh(e)))))))?.filter((e=>e.value))?.reduce(((e,t)=>({...e,...t.value})),{})})(l,{goals:h,businessInformation:f,siteType:g,siteInformation:y,siteTypeSearch:w}),P([]),await lm(),C((0,se.__)("Setting up site layout","extendify-local"));const u=h?.some((e=>"blog"===e.slug));o=[...d,u?i:null,a].filter(Boolean).sort(((e,t)=>e?.name?.localeCompare(t?.name)));let{data:b}=await Yt.get("launch/active-plugins");if(cm(b,"woocommerce")){const e=await tr("woocommerce_shop_page_id"),t=await or(e),r=await tr("woocommerce_cart_page_id"),n=await or(r);if(e&&t&&r&&n){const a={id:e,slug:t.slug,title:t.title.rendered},i={id:r,slug:n.slug,title:n.title.rendered};o=[...o,a,i]}}if(cm(b,"the-events-calendar")){const e={slug:"events",title:(0,se.__)("Events","extendify-local")};o=[...o,e]}cm(b,"wpforms-lite")&&await er("wpforms_activation_redirect","skip"),cm(b,"all-in-one-seo-pack")&&await er("aioseo_activation_redirect","skip"),cm(b,"google-analytics-for-wordpress")&&await er("_transient__monsterinsights_activation_redirect",null),await(async e=>{await tr("site_logo").then((async t=>{if(!parseInt(t)){var r;const t=null!==(r=(0,sh.getFilename)(e))&&void 0!==r?r:"default-logo.png",o=await(await fetch(e)).blob();await(0,ih.uploadMedia)({filesList:[new File([o],t,{type:"image/x-png"})],onFileChange:async([e])=>{e.id&&await er("site_logo",e.id)},onError:console.error})}}))})("https://assets.extendify.com/demo-content/logos/extendify-demo-logo.png"),await lm();const v=await(async(e,t,r,o=null)=>{o||(o=/(<!--\s*wp:navigation\b[^>]*>)([^]*?)(<!--\s*\/wp:navigation\s*-->)/gi);const n=e.filter((e=>Boolean(t[e.slug]?.id))).filter((({slug:e})=>"home"!==e)).map((e=>{const{id:r,title:o,link:n,type:a}=t[e.slug];return`\x3c!-- wp:navigation-link { "label":"${o.rendered}", "type":"${a}", "id":"${r}", "url":"${n}", "kind":"post-type", "isTopLevelLink":true } /--\x3e`})).join(""),a=`\x3c!-- wp:navigation {"ref":${(await ie()({path:"extendify/v1/launch/create-navigation",method:"POST",data:{title:(0,se.__)("Header Navigation","extendify-local"),slug:"site-navigation",content:n}})).id}} /--\x3e`;return r.replace(o,`${a}`)})(o,r,p?.headerCode);return await lm(),await ir("extendable/header",v),k((0,se.__)("Setting up your Site Assistant","extendify-local")),C((0,se.__)("Helping you to succeed","extendify-local")),await new Promise((e=>setTimeout(e,1e3))),await lm(),k((0,se.__)("Your website has been created!","extendify-local")),C((0,se.__)("Redirecting in 3, 2, 1...","extendify-local")),n(!0),c(!1),await new Promise((e=>setTimeout(e,2500))),await lm(),await er("extendify_onboarding_completed",(new Date).toISOString()),r}catch(e){if(console.error(e),e.status>=400&&e.status<500){c(!1);const e=(0,se.__)("We encountered a server error we cannot recover from. Please reload the page and try again.","extendify-local");alert(e),location.href=window.extSharedData.adminUrl}return await new Promise((e=>setTimeout(e,2e3))),L()}var t}),[d,m,p,u,h,f,g,y,w,P]);return(0,a.useEffect)((()=>{L().then((()=>{T(0),window.location.replace(window.extSharedData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[L,T]),(0,a.useEffect)((()=>{const e=window.getComputedStyle(document.body),t=e?.getPropertyValue("--ext-banner-main"),r=e?.getPropertyValue("--ext-banner-text");t&&s([om(t).darken(.3).toHex(),om(r).alpha(.5).toHex(),om(t).lighten(.2).toHex()])}),[]),((e={},t=0,r=!1)=>{(0,a.useEffect)((()=>{if(!r)return;const o=Date.now()+t,n=()=>{ah({...e,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<o&&requestAnimationFrame((()=>{requestAnimationFrame(n)}))};n()}),[e,t,r])})({particleCount:3,angle:320,spread:220,origin:{x:0,y:0},colors:i},2500,o),(0,r.createElement)(eh,{show:t,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"bg-banner-main text-banner-text py-12 px-10 md:h-screen flex flex-col justify-between shrink-0"},(0,r.createElement)("div",{className:"max-w-prose"},(0,r.createElement)("div",{className:"md:min-h-48"},window.extSharedData?.partnerLogo?(0,r.createElement)("div",{className:"mb-8"},(0,r.createElement)("img",{style:{maxWidth:"200px"},src:window.extSharedData.partnerLogo,alt:null!==(e=window.extSharedData?.partnerName)&&void 0!==e?e:""})):(0,r.createElement)(Wd,{className:"logo text-banner-text w-32 sm:w-40 mb-8"}),(0,r.createElement)("div",{"data-test":"message-area"},b.map(((e,o)=>{if(!o)return(0,r.createElement)(eh,{appear:!0,show:t,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-4xl flex space-x-4 items-center",key:e},e)})),(0,r.createElement)("div",{className:"flex space-x-4 items-center mt-6"},(0,r.createElement)(ap,{className:"spin"}),x.map(((e,o)=>{if(!o)return(0,r.createElement)(eh,{appear:!0,show:t,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:e},e)}))),S.length>0?(0,r.createElement)(th,{pages:S}):null))))},uh=()=>(0,r.createElement)(pp,{includeNav:!1},(0,r.createElement)("div",{className:"grow px-6 py-8 md:py-16 md:px-32 overflow-y-scroll"},(0,r.createElement)(jd,{title:(0,se.__)("One more thing before we start.","extendify-local")}),(0,r.createElement)("div",{className:"w-full relative max-w-xl mx-auto"},(0,r.createElement)("p",{className:"text-base"},(0,se.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify-local")),(0,r.createElement)("a",{className:"text-base text-design-main font-medium underline mt-4",href:`${window.extSharedData.adminUrl}/theme-install.php?theme=extendable`},(0,se.__)("Take me there","extendify-local"))))),dh=()=>{const{updateSettings:e}=(0,s.useDispatch)("core/block-editor"),[t,o]=(0,a.useState)(!1),{siteType:n,resetState:l}=Fd(),c=Fm((e=>{const t=e.getCurrentPageData();return t?.component})),{fetcher:u,fetchData:d}=Fm((e=>e.getNextPageData())),{setPage:p,currentPageIndex:m}=Fm(),{mutate:h}=J(),{generating:f}=Td(),[g,y]=(0,a.useState)(!1),[w,b]=(0,a.useState)(!1),v=(0,s.useSelect)((e=>e("core").getCurrentTheme()));return(()=>{const{goals:e,pages:t,plugins:r,siteType:o,style:n,siteTypeSearch:i}=Fd(),{generating:s}=Td(),{pages:l,currentPageIndex:c}=Fm(),[u,d]=(0,a.useState)([]),[p,m]=(0,a.useState)(new Set),h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{const e=[...l].map((e=>e[0]));d((t=>t?.at(-1)===e[c]?t:[...t,e[c]]))}),[c,l]),(0,a.useEffect)((()=>{s&&d((e=>[...e,"launched"]))}),[s]),(0,a.useEffect)((()=>{Object.keys(null!=n?n:{})?.length&&m((e=>{const t=new Set(e);return t.add(n),t}))}),[n]),(0,a.useEffect)((()=>{let r=0,a=0;const s=c?1e3:0;return r=window.setTimeout((()=>{if(h.current)return;h.current=!0;const r=new AbortController;a=window.setTimeout((()=>{h.current=!1,r.abort()}),900),fetch("https://insights.extendify.com/api/v1/launch",{method:"POST",headers:{"Content-type":"application/json",Accept:"application/json","X-Extendify":"true"},signal:r.signal,body:JSON.stringify({siteType:o?.slug,siteCreatedAt:window.extSharedData?.siteCreatedAt,style:n?.variation?.title,pages:t?.map((e=>e.slug)),goals:e?.map((e=>e.slug)),lastCompletedStep:u?.at(-1),progress:u,stylesViewed:[...p].filter((e=>e?.variation)).map((e=>e.variation.title)),siteTypeSearches:i,insightsId:window.extSharedData?.siteId,activeTests:window.extOnbData?.activeTests?.length>0?JSON.stringify(window.extOnbData?.activeTests):void 0,hostPartner:window.extSharedData?.partnerId,language:window.extSharedData?.wpLanguage,siteURL:window.extSharedData?.home})}).catch((()=>{})).finally((()=>{h.current=!1}))}),s),()=>{h.current=!1,[r,a].forEach((e=>window.clearTimeout(e)))}}),[t,r,n,l,u,p,i,c,e,o])})(),(0,a.useEffect)((()=>{e(Ad(window.extOnbData.editorStyles))}),[e]),(0,a.useEffect)((()=>{(0,i.registerCoreBlocks)()}),[]),(0,a.useEffect)((()=>{v?.textdomain&&"extendable"!==v?.textdomain&&b(!0)}),[v]),(0,a.useEffect)((()=>{y(!0),er("extendify_launch_loaded",(new Date).toISOString())}),[]),(0,a.useEffect)((()=>{const e=[].concat(u),t=[].concat(d);e.length&&e.forEach(((e,r)=>{const o="function"==typeof t?.[r]?t[r]():t?.[r];h(o,(()=>e(o)))}))}),[u,h,d]),g?(0,r.createElement)(oe,{value:{errorRetryInterval:1e3,onErrorRetry:(e,r,n,a,{retryCount:i})=>{403!==e?.data?.status?t||(console.error(r,e),o(!0),setTimeout((()=>{o(!1),a({retryCount:i})}),5e3)):window.location.reload()}}},(0,r.createElement)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white"},w?(0,r.createElement)(uh,null):n?.slug||0===m?f?(0,r.createElement)(ch,null):c?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ld,{setPage:p,resetState:l}),(0,r.createElement)(c,null)):null:(p(0),null)),(0,r.createElement)(ud,{show:t})):null};requestAnimationFrame((()=>{const e=document.getElementById("extendify-launch-page");e&&("function"==typeof a.createRoot?(0,a.createRoot)(e).render((0,r.createElement)(dh,null)):(0,a.render)((0,r.createElement)(dh,null),e))}))})()})();