HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/build/publish-guide.js
(()=>{var e={334:e=>{function t(e,t,n){var i,o,s,a,r;function l(){var u=Date.now()-a;u<t&&u>=0?i=setTimeout(l,t-u):(i=null,n||(r=e.apply(s,o),s=o=null))}null==t&&(t=100);var u=function(){s=this,o=arguments,a=Date.now();var u=n&&!i;return i||(i=setTimeout(l,t)),u&&(r=e.apply(s,o),s=o=null),r};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(r=e.apply(s,o),s=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},359:function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),s=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(685)),l=a(n(609)),u=function(e){function t(t){var n=e.call(this,t)||this;return n.refCanvas=l.default.createRef(),n.confetti=null,n}return o(t,e),t.prototype.componentDidMount=function(){if(this.refCanvas.current){var e=this.props,t=e.resize,n=e.useWorker,i={resize:void 0===t||t,useWorker:void 0===n||n};this.confetti=r.default.create(this.refCanvas.current,i),this.setRefConfetti()}},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.fire,i=t.reset,o=!!n,s=n!==e.fire;o&&s&&this.fireConfetti();var a=!!i,r=i!==e.reset;a&&r&&this.resetConfetti()},t.prototype.componentWillUnmount=function(){this.unsetRefConfetti()},t.prototype.setRefConfetti=function(){var e=this.props.refConfetti;e&&e(this.confetti)},t.prototype.unsetRefConfetti=function(){var e=this.props.refConfetti;e&&e(null)},t.prototype.fireConfetti=function(){if(this.confetti){var e=this.props,t=e.onFire,n=e.onDecay,i=(e.onReset,e.className,e.style,e.width,e.height,e.refConfetti,e.fire,e.reset,s(e,["onFire","onDecay","onReset","className","style","width","height","refConfetti","fire","reset"]));t&&t();var o=this.confetti(i);o&&o.then((function(){n&&n()}))}},t.prototype.resetConfetti=function(){if(this.confetti){this.confetti.reset();var e=this.props.onReset;e&&e()}},t.prototype.render=function(){var e=this.props,t=e.style,n=e.className,i=e.width,o=e.height;return l.default.createElement("canvas",{ref:this.refCanvas,style:t,className:n,width:i,height:o})},t}(l.default.Component);t.default=u},609:e=>{"use strict";e.exports=window.React},87:e=>{"use strict";e.exports=window.wp.element},942:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{create:()=>s,default:()=>o});var i={};!function e(t,n,i,o){var s=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function r(e){var i=n.exports.Promise,o=void 0!==i?i:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var l,u,c,d,h,p,m,f,g,y=(c=Math.floor(1e3/60),d={},h=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(l=function(e){var t=Math.random();return d[t]=requestAnimationFrame((function n(i){h===i||h+c-1<i?(h=i,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},u=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,c)},u=function(e){return clearTimeout(e)}),{frame:l,cancel:u}),v=(f={},function(){if(p)return p;if(!i&&s){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{p=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,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,i,o){if(m)return t(n,null),m;var s=Math.random().toString(36).slice(2);return m=r((function(i){function a(t){t.data.callback===s&&(delete f[s],e.removeEventListener("message",a),m=null,o(),i())}e.addEventListener("message",a),t(n,s),f[s]=a.bind(null,{data:{callback:s}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),f)f[t](),delete f[t]}}(p)}return p}),b={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 _(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],n)}function w(e){return e<0?0:Math.floor(e)}function E(e){return parseInt(e,16)}function C(e){return e.map(S)}function S(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:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function k(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function P(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function I(e,n){var a,l=!e,u=!!_(n||{},"resize"),c=_(n,"disableForReducedMotion",Boolean),d=s&&_(n||{},"useWorker")?v():null,h=l?k:P,p=!(!e||!d||!e.__confetti_initialized),m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function f(t,n,s){for(var l,u,c,d,p=_(t,"particleCount",w),m=_(t,"angle",Number),f=_(t,"spread",Number),g=_(t,"startVelocity",Number),v=_(t,"decay",Number),b=_(t,"gravity",Number),E=_(t,"drift",Number),S=_(t,"colors",C),k=_(t,"ticks",Number),P=_(t,"shapes"),I=_(t,"scalar"),M=function(e){var t=_(e,"origin",Object);return t.x=_(t,"x",Number),t.y=_(t,"y",Number),t}(t),x=p,O=[],N=e.width*M.x,A=e.height*M.y;x--;)O.push((void 0,void 0,u=(l={x:N,y:A,angle:m,spread:f,startVelocity:g,color:S[x%S.length],shape:P[(0,d=P.length,Math.floor(Math.random()*(d-0))+0)],ticks:k,decay:v,gravity:b,drift:E,scalar:I}).angle*(Math.PI/180),c=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*c-Math.random()*c),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}));return a?a.addFettis(O):(a=function(e,t,n,s,a){var l,u,c=t.slice(),d=e.getContext("2d"),h=r((function(t){function r(){l=u=null,d.clearRect(0,0,s.width,s.height),a(),t()}l=y.frame((function t(){!i||s.width===o.width&&s.height===o.height||(s.width=e.width=o.width,s.height=e.height=o.height),s.width||s.height||(n(e),s.width=e.width,s.height=e.height),d.clearRect(0,0,s.width,s.height),c=c.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.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,i=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,s=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(s-i)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,i,o,s,a,r,l){e.save(),e.translate(t,n),e.rotate(s),e.scale(i,o),e.arc(0,0,1,0,r,void 0),e.restore()}(e,t.x,t.y,Math.abs(s-i)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var r=Math.PI/2*3,l=4*t.scalar,u=8*t.scalar,c=t.x,d=t.y,h=5,p=Math.PI/h;h--;)c=t.x+Math.cos(r)*u,d=t.y+Math.sin(r)*u,e.lineTo(c,d),r+=p,c=t.x+Math.cos(r)*l,d=t.y+Math.sin(r)*l,e.lineTo(c,d),r+=p;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(s),Math.floor(a)),e.lineTo(Math.floor(i),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),c.length?l=y.frame(t):r()})),u=r}));return{addFettis:function(e){return c=c.concat(e),h},canvas:e,promise:h,reset:function(){l&&y.cancel(l),u&&u()}}}(e,O,h,n,s)).promise}function g(n){var i=c||_(n,"disableForReducedMotion",Boolean),o=_(n,"zIndex",Number);if(i&&m)return r((function(e){e()}));l&&a?e=a.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}(o),document.body.appendChild(e)),u&&!p&&h(e);var s={width:e.width,height:e.height};function g(){if(d){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return h(t),void d.postMessage({resize:{width:t.width,height:t.height}})}s.width=s.height=null}function y(){a=null,u&&t.removeEventListener("resize",g),l&&e&&(document.body.removeChild(e),e=null,p=!1)}return d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),u&&t.addEventListener("resize",g,!1),d?d.fire(n,s,y):f(n,s,y)}return g.reset=function(){d&&d.reset(),a&&a.reset()},g}function M(){return g||(g=I(null,{useWorker:!0,resize:!0})),g}n.exports=function(){return M().apply(this,arguments)},n.exports.reset=function(){M().reset()},n.exports.create=I}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),i,!1);const o=i.exports;var s=i.exports.create}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{activatePublishGuideFab:()=>mo,closePublishGuide:()=>yo,deactivatePublishGuideFab:()=>fo,openPublishGuide:()=>go,setGuideItems:()=>bo,togglePublishGuide:()=>vo});var t={};n.r(t),n.d(t,{getGuideItems:()=>Eo,getGuideItemsComplete:()=>Co,isPublishGuideFabActive:()=>_o,isPublishGuideOpened:()=>wo});var i=n(87);const o=window.wp.domReady;var s=n.n(o);const a=window.wp.notices,r=window.wp.plugins,l=window.wp.coreData,u=window.wp.i18n,c=window.wp.data,d=window.wp.components;var h=n(609);const p=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},m.apply(this,arguments)}var f,g;(g=f||(f={})).Pop="POP",g.Push="PUSH",g.Replace="REPLACE";const y="popstate";function v(e,t){if(!1===e||null==e)throw new Error(t)}function b(e,t){return{usr:e.state,key:e.key,idx:t}}function _(e,t,n,i){return void 0===n&&(n=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?E(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function w(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function E(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var C;function S(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(C||(C={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const k=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",I=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const M=["post","put","patch","delete"],x=(new Set(M),["get",...M]);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},O.apply(this,arguments)}new Set(x),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const N=h.createContext(null),A=h.createContext(null),R=h.createContext(null),G=h.createContext({outlet:null,matches:[],isDataRoute:!1});function D(){return null!=h.useContext(R)}function T(){return D()||v(!1),h.useContext(R).location}function L(e){h.useContext(A).static||h.useLayoutEffect(e)}function U(){let{isDataRoute:e}=h.useContext(G);return e?function(){let{router:e}=function(e){let t=h.useContext(N);return t||v(!1),t}(F.UseNavigateStable),t=function(e){let t=function(e){let t=h.useContext(G);return t||v(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||v(!1),n.route.id}(B.UseNavigateStable),n=h.useRef(!1);L((()=>{n.current=!0}));let i=h.useCallback((function(i,o){void 0===o&&(o={}),n.current&&("number"==typeof i?e.navigate(i):e.navigate(i,O({fromRouteId:t},o)))}),[e,t]);return i}():function(){D()||v(!1);let e=h.useContext(N),{basename:t,future:n,navigator:i}=h.useContext(A),{matches:o}=h.useContext(G),{pathname:s}=T(),a=JSON.stringify(function(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}(o,n.v7_relativeSplatPath)),r=h.useRef(!1);L((()=>{r.current=!0}));let l=h.useCallback((function(n,o){if(void 0===o&&(o={}),!r.current)return;if("number"==typeof n)return void i.go(n);let l=function(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=E(e):(o=m({},e),v(!o.pathname||!o.pathname.includes("?"),S("?","pathname","search",o)),v(!o.pathname||!o.pathname.includes("#"),S("#","pathname","hash",o)),v(!o.search||!o.search.includes("#"),S("#","search","hash",o)));let s,a=""===e||""===o.pathname,r=a?"/":o.pathname;if(null==r)s=n;else{let e=t.length-1;if(!i&&r.startsWith("..")){let t=r.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:o=""}="string"==typeof e?E(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:P(i),hash:I(o)}}(o,s),u=r&&"/"!==r&&r.endsWith("/"),c=(a||"."===r)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}(n,JSON.parse(a),s,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:k([t,l.pathname])),(o.replace?i.replace:i.push)(l,o.state,o)}),[t,i,a,s,e]);return l}()}h.Component;var F=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(F||{}),B=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(B||{});function j(e){let{basename:t="/",children:n=null,location:i,navigationType:o=f.Pop,navigator:s,static:a=!1,future:r}=e;D()&&v(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo((()=>({basename:l,navigator:s,static:a,future:O({v7_relativeSplatPath:!1},r)})),[l,r,s,a]);"string"==typeof i&&(i=E(i));let{pathname:c="/",search:d="",hash:p="",state:m=null,key:g="default"}=i,y=h.useMemo((()=>{let e=function(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}(c,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:m,key:g},navigationType:o}}),[l,c,d,p,m,g,o]);return null==y?null:h.createElement(A.Provider,{value:u},h.createElement(R.Provider,{children:n,value:y}))}function V(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map((e=>[n,e])):[[n,i]])}),[]))}h.startTransition,new Promise((()=>{})),h.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const z=h.startTransition;function $(e){let{basename:t,children:n,future:i,window:o}=e,s=h.useRef();var a;null==s.current&&(s.current=(void 0===(a={window:o,v5Compat:!0})&&(a={}),function(e,t,n,i){void 0===i&&(i={});let{window:o=document.defaultView,v5Compat:s=!1}=i,a=o.history,r=f.Pop,l=null,u=c();function c(){return(a.state||{idx:null}).idx}function d(){r=f.Pop;let e=c(),t=null==e?null:e-u;u=e,l&&l({action:r,location:p.location,delta:t})}function h(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:w(e);return n=n.replace(/ $/,"%20"),v(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==u&&(u=0,a.replaceState(m({},a.state,{idx:u}),""));let p={get action(){return r},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(y,d),l=e,()=>{o.removeEventListener(y,d),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){r=f.Push;let i=_(p.location,e,t);n&&n(i,e),u=c()+1;let d=b(i,u),h=p.createHref(i);try{a.pushState(d,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}s&&l&&l({action:r,location:p.location,delta:1})},replace:function(e,t){r=f.Replace;let i=_(p.location,e,t);n&&n(i,e),u=c();let o=b(i,u),d=p.createHref(i);a.replaceState(o,"",d),s&&l&&l({action:r,location:p.location,delta:0})},go:e=>a.go(e)};return p}((function(e,t){let{pathname:n,search:i,hash:o}=e.location;return _("",{pathname:n,search:i,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:w(t)}),null,a)));let r=s.current,[l,u]=h.useState({action:r.action,location:r.location}),{v7_startTransition:c}=i||{},d=h.useCallback((e=>{c&&z?z((()=>u(e))):u(e)}),[u,c]);return h.useLayoutEffect((()=>r.listen(d)),[r,d]),h.createElement(j,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:r,future:i})}var q,H;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Z.apply(this,arguments)}p.flushSync,h.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(q||(q={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(H||(H={}));const W=[],Q=((e,t)=>{let n;return async function(...t){W.push({[t[0]]:t[1]});const i=Object.assign({},...W),o=this;clearTimeout(n),n=setTimeout((async()=>await e.apply(o,[i])),1e3)}})((async e=>{await(0,c.dispatch)("core").saveEntityRecord("root","site",e)})),J=window._expDataLayer||[],Y=({eid:e,type:t="click",data:n=null})=>{J.push({data:{custom_properties:n,eid:`${e}.${t}`,type:t},schema:"add_event",version:"v1"})},X=e=>{J.push({data:{eid:e,type:"impression"},schema:"add_event",version:"v1"})},K="wp."+(window.location.pathname.includes("post-new")||window.location.pathname.includes("post.php")?"editor":"wpadmin"),ee=e=>{const{children:t,section:n,target:o,action:s}=e;return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{...t.props,"data-test-eid":`${K}.${n}.${o}.${s}`,onClick:(...e)=>{t.props?.onClick&&t.props?.onClick(...e),Y({eid:`${K}.${n}.${o}`})}}):t};var te=n(942),ne=n.n(te);const ie=window.wp.primitives,oe=(0,i.createElement)(ie.SVG,{fill:"none",height:"8",viewBox:"0 0 14 8",width:"14",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{d:"M1.50002 1L7.00002 6L12.5 1",stroke:"#2B2B2B",strokeWidth:"1.5"})),se=(0,i.createElement)(ie.SVG,{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{d:"M10 0.25C8.07164 0.25 6.18657 0.821828 4.58319 1.89317C2.97982 2.96452 1.73013 4.48726 0.992179 6.26884C0.254224 8.05042 0.061142 10.0108 0.437348 11.9021C0.813554 13.7934 1.74215 15.5307 3.10571 16.8943C4.46928 18.2579 6.20656 19.1865 8.09787 19.5627C9.98919 19.9389 11.9496 19.7458 13.7312 19.0078C15.5127 18.2699 17.0355 17.0202 18.1068 15.4168C19.1782 13.8134 19.75 11.9284 19.75 10C19.747 7.41506 18.7188 4.93684 16.891 3.10901C15.0632 1.28117 12.5849 0.252985 10 0.25ZM10 18.25C8.36831 18.25 6.77326 17.7661 5.41655 16.8596C4.05984 15.9531 3.00242 14.6646 2.378 13.1571C1.75358 11.6496 1.5902 9.99085 1.90853 8.3905C2.22685 6.79016 3.01259 5.32015 4.16637 4.16637C5.32016 3.01259 6.79017 2.22685 8.39051 1.90852C9.99085 1.59019 11.6497 1.75357 13.1571 2.37799C14.6646 3.00242 15.9531 4.05984 16.8596 5.41655C17.7661 6.77325 18.25 8.3683 18.25 10C18.2474 12.1873 17.3774 14.2842 15.8308 15.8308C14.2842 17.3774 12.1873 18.2474 10 18.25Z",fill:"#D6D6D6"})),ae=(0,i.createElement)(ie.SVG,{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{clipRule:"evenodd",d:"M4.58319 1.89317C6.18657 0.821828 8.07164 0.25 10 0.25C12.5849 0.252985 15.0632 1.28117 16.891 3.10901C18.7188 4.93684 19.747 7.41506 19.75 10C19.75 11.9284 19.1782 13.8134 18.1068 15.4168C17.0355 17.0202 15.5127 18.2699 13.7312 19.0078C11.9496 19.7458 9.98919 19.9389 8.09787 19.5627C6.20656 19.1865 4.46928 18.2579 3.10571 16.8943C1.74215 15.5307 0.813554 13.7934 0.437348 11.9021C0.061142 10.0108 0.254224 8.05042 0.992179 6.26884C1.73013 4.48726 2.97982 2.96452 4.58319 1.89317ZM9 11.9395L13.4697 7.46973C13.6105 7.32994 13.801 7.25165 13.9994 7.25201C14.1979 7.25237 14.388 7.33136 14.5283 7.47166C14.6686 7.61196 14.7476 7.80215 14.748 8.00057C14.7484 8.19898 14.6701 8.38946 14.5303 8.53027L9.53027 13.5303C9.39103 13.6696 9.19698 13.75 9 13.75C8.80303 13.75 8.60898 13.6696 8.46973 13.5303L5.46973 10.5303C5.32994 10.3895 5.25166 10.199 5.25202 10.0006C5.25238 9.80215 5.33136 9.61196 5.47166 9.47166C5.61196 9.33136 5.80215 9.25237 6.00057 9.25201C6.19899 9.25165 6.38946 9.32994 6.53027 9.46973L9 11.9395Z",fill:"#00A4A6",fillRule:"evenodd"}));function re(e){const{children:t,isCompleted:n,name:o,selectedItem:s,setSelectedItem:a,skipAction:r,title:l,text:u,testId:c}=e;return(0,i.createElement)("li",{className:ne()("publish-guide-popover__item",{"is-completed":n,"is-selected":s===o}),"data-testid":c||"publish-guide-item__container"},(0,i.createElement)("div",{className:"publish-guide-popover__item__content","data-testid":"publish-guide-popover__item__content"},(0,i.createElement)("div",{className:"item"},(0,i.createElement)(ee,{action:"click",section:`guide/item/${o}`,target:"skip"},(0,i.createElement)(d.Icon,{className:"publish-guide-popover__item__checkmark-icon",icon:n?ae:se,onClick:n?null:r})),(0,i.createElement)(ee,{action:"click",section:`guide/item/${o}`,target:"panel"},(0,i.createElement)("button",{className:"publish-guide-popover__item__title","data-testid":"publish-guide-popover__item__title",onClick:()=>{a(s===o?null:o)}},l,(0,i.createElement)(d.Icon,{icon:oe})))),s===o&&(0,i.createElement)("div",{className:"info"},(0,i.createElement)("p",null,u),t)))}const le=e=>{const{handleMilestoneStatusUpdate:t}=e,n=gdvLinks?.changeDomain.replace("{{DOMAIN}}",window.location.hostname),o=gdlPublishGuideItems.AddDomain.milestoneName,s=gdlPublishGuideItems.AddDomain.propName,[r=gdlPublishGuideItems.AddDomain.default,h]=(0,l.useEntityProp)("root","site",s),{createErrorNotice:p}=(0,c.useDispatch)(a.store),m=async e=>{try{await h(e),await Q(s,e),await t(o,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving Site Domain guide item","godaddy-launch");p(t,{type:"snackbar"})}};return(0,i.createElement)(re,Z({isCompleted:r,name:"add_domain",skipAction:()=>m("skipped"),text:(0,u.__)("Look more professional and make it easier for customers to find your website.","godaddy-launch"),title:(0,u.__)("Add custom domain","godaddy-launch")},e),!r&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ee,{action:"click",section:"guide/item/add_domain",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link",onClick:()=>window.open(n,"_self")},(0,u.__)("Add domain","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/add_domain",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link is-skip",onClick:()=>m("skipped")},(0,u.__)("Skip","godaddy-launch")))))};var ue=n(334),ce=n.n(ue);function de(e){let{debounce:t,scroll:n,polyfill:i,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const s=i||("undefined"==typeof window?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,r]=(0,h.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=(0,h.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),u=t?"number"==typeof t?t:t.scroll:null,c=t?"number"==typeof t?t:t.resize:null,d=(0,h.useRef)(!1);(0,h.useEffect)((()=>(d.current=!0,()=>{d.current=!1})));const[p,m,f]=(0,h.useMemo)((()=>{const e=()=>{if(!l.current.element)return;const{left:e,top:t,width:n,height:i,bottom:s,right:a,x:u,y:c}=l.current.element.getBoundingClientRect(),h={left:e,top:t,width:n,height:i,bottom:s,right:a,x:u,y:c};l.current.element instanceof HTMLElement&&o&&(h.height=l.current.element.offsetHeight,h.width=l.current.element.offsetWidth),Object.freeze(h),d.current&&!me(l.current.lastBounds,h)&&r(l.current.lastBounds=h)};return[e,c?ce()(e,c):e,u?ce()(e,u):e]}),[r,o,u,c]);function g(){l.current.scrollContainers&&(l.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",f,!0))),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function y(){l.current.element&&(l.current.resizeObserver=new s(f),l.current.resizeObserver.observe(l.current.element),n&&l.current.scrollContainers&&l.current.scrollContainers.forEach((e=>e.addEventListener("scroll",f,{capture:!0,passive:!0}))))}var v,b,_;return b=f,_=Boolean(n),(0,h.useEffect)((()=>{if(_){const e=b;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[b,_]),v=m,(0,h.useEffect)((()=>{const e=v;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[v]),(0,h.useEffect)((()=>{g(),y()}),[n,f,m]),(0,h.useEffect)((()=>g),[]),[e=>{e&&e!==l.current.element&&(g(),l.current.element=e,l.current.scrollContainers=he(e),y())},a,p]}function he(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:i,overflowY:o}=window.getComputedStyle(e);return[n,i,o].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...he(e.parentElement)]}const pe=["x","y","top","bottom","left","right","width","height"],me=(e,t)=>pe.every((n=>e[n]===t[n]));var fe=Object.defineProperty,ge={};((e,t)=>{for(var n in t)fe(e,n,{get:t[n],enumerable:!0})})(ge,{assign:()=>Qe,colors:()=>He,createStringInterpolator:()=>Ve,skipAnimation:()=>Ze,to:()=>ze,willAdvance:()=>We});var ye=Re(),ve=e=>xe(e,ye),be=Re();ve.write=e=>xe(e,be);var _e=Re();ve.onStart=e=>xe(e,_e);var we=Re();ve.onFrame=e=>xe(e,we);var Ee=Re();ve.onFinish=e=>xe(e,Ee);var Ce=[];ve.setTimeout=(e,t)=>{const n=ve.now()+t,i=()=>{const e=Ce.findIndex((e=>e.cancel==i));~e&&Ce.splice(e,1),Ie-=~e?1:0},o={time:n,handler:e,cancel:i};return Ce.splice(Se(n),0,o),Ie+=1,Oe(),o};var Se=e=>~(~Ce.findIndex((t=>t.time>e))||~Ce.length);ve.cancel=e=>{_e.delete(e),we.delete(e),Ee.delete(e),ye.delete(e),be.delete(e)},ve.sync=e=>{Me=!0,ve.batchedUpdates(e),Me=!1},ve.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function i(...e){t=e,ve.onStart(n)}return i.handler=e,i.cancel=()=>{_e.delete(n),t=null},i};var ke="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ve.use=e=>ke=e,ve.now="undefined"!=typeof performance?()=>performance.now():Date.now,ve.batchedUpdates=e=>e(),ve.catch=console.error,ve.frameLoop="always",ve.advance=()=>{"demand"!==ve.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ae()};var Pe=-1,Ie=0,Me=!1;function xe(e,t){Me?(t.delete(e),e(0)):(t.add(e),Oe())}function Oe(){Pe<0&&(Pe=0,"demand"!==ve.frameLoop&&ke(Ne))}function Ne(){~Pe&&(ke(Ne),ve.batchedUpdates(Ae))}function Ae(){const e=Pe;Pe=ve.now();const t=Se(Pe);t&&(Ge(Ce.splice(0,t),(e=>e.handler())),Ie-=t),Ie?(_e.flush(),ye.flush(e?Math.min(64,Pe-e):16.667),we.flush(),be.flush(),Ee.flush()):Pe=-1}function Re(){let e=new Set,t=e;return{add(n){Ie+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Ie-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Ie-=t.size,Ge(t,(t=>t(n)&&e.add(t))),Ie+=e.size,t=e)}}}function Ge(e,t){e.forEach((e=>{try{t(e)}catch(e){ve.catch(e)}}))}function De(){}var Te={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Le(e,t){if(Te.arr(e)){if(!Te.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ue=(e,t)=>e.forEach(t);function Fe(e,t,n){if(Te.arr(e))for(let i=0;i<e.length;i++)t.call(n,e[i],`${i}`);else for(const i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i)}var Be=e=>Te.und(e)?[]:Te.arr(e)?e:[e];function je(e,t){if(e.size){const n=Array.from(e);e.clear(),Ue(n,t)}}var Ve,ze,$e=(e,...t)=>je(e,(e=>e(...t))),qe=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),He=null,Ze=!1,We=De,Qe=e=>{e.to&&(ze=e.to),e.now&&(ve.now=e.now),void 0!==e.colors&&(He=e.colors),null!=e.skipAnimation&&(Ze=e.skipAnimation),e.createStringInterpolator&&(Ve=e.createStringInterpolator),e.requestAnimationFrame&&ve.use(e.requestAnimationFrame),e.batchedUpdates&&(ve.batchedUpdates=e.batchedUpdates),e.willAdvance&&(We=e.willAdvance),e.frameLoop&&(ve.frameLoop=e.frameLoop)},Je=new Set,Ye=[],Xe=[],Ke=0,et={get idle(){return!Je.size&&!Ye.length},start(e){Ke>e.priority?(Je.add(e),ve.onStart(tt)):(nt(e),ve(ot))},advance:ot,sort(e){if(Ke)ve.onFrame((()=>et.sort(e)));else{const t=Ye.indexOf(e);~t&&(Ye.splice(t,1),it(e))}},clear(){Ye=[],Je.clear()}};function tt(){Je.forEach(nt),Je.clear(),ve(ot)}function nt(e){Ye.includes(e)||it(e)}function it(e){Ye.splice(function(t,n){const i=t.findIndex((t=>t.priority>e.priority));return i<0?t.length:i}(Ye),0,e)}function ot(e){const t=Xe;for(let n=0;n<Ye.length;n++){const i=Ye[n];Ke=i.priority,i.idle||(We(i),i.advance(e),i.idle||t.push(i))}return Ke=0,(Xe=Ye).length=0,(Ye=t).length>0}var st="[-+]?\\d*\\.?\\d+",at=st+"%";function rt(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var lt=new RegExp("rgb"+rt(st,st,st)),ut=new RegExp("rgba"+rt(st,st,st,st)),ct=new RegExp("hsl"+rt(st,at,at)),dt=new RegExp("hsla"+rt(st,at,at,st)),ht=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mt=/^#([0-9a-fA-F]{6})$/,ft=/^#([0-9a-fA-F]{8})$/;function gt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yt(e,t,n){const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i,s=gt(o,i,e+1/3),a=gt(o,i,e),r=gt(o,i,e-1/3);return Math.round(255*s)<<24|Math.round(255*a)<<16|Math.round(255*r)<<8}function vt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function bt(e){return(parseFloat(e)%360+360)%360/360}function _t(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Et(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=mt.exec(e))?parseInt(t[1]+"ff",16)>>>0:He&&void 0!==He[e]?He[e]:(t=lt.exec(e))?(vt(t[1])<<24|vt(t[2])<<16|vt(t[3])<<8|255)>>>0:(t=ut.exec(e))?(vt(t[1])<<24|vt(t[2])<<16|vt(t[3])<<8|_t(t[4]))>>>0:(t=ht.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ft.exec(e))?parseInt(t[1],16)>>>0:(t=pt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ct.exec(e))?(255|yt(bt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=dt.exec(e))?(yt(bt(t[1]),wt(t[2]),wt(t[3]))|_t(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var Ct=(e,t,n)=>{if(Te.fun(e))return e;if(Te.arr(e))return Ct({range:e,output:t,extrapolate:n});if(Te.str(e.output[0]))return Ve(e);const i=e,o=i.output,s=i.range||[0,1],a=i.extrapolateLeft||i.extrapolate||"extend",r=i.extrapolateRight||i.extrapolate||"extend",l=i.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,s);return function(e,t,n,i,o,s,a,r,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===r)return u;"clamp"===r&&(u=n)}return i===o?i:t===n?e<=t?i:o:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=s(u),i===-1/0?u=-u:o===1/0?u+=i:u=u*(o-i)+i,u)}(e,s[t],s[t+1],o[t],o[t+1],l,a,r,i.map)}},St=1.70158,kt=1.525*St,Pt=St+1,It=2*Math.PI/3,Mt=2*Math.PI/4.5,xt=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ot={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Pt*e*e*e-St*e*e,easeOutBack:e=>1+Pt*Math.pow(e-1,3)+St*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-kt)/2:(Math.pow(2*e-2,2)*((kt+1)*(2*e-2)+kt)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*It),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*It)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Mt)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Mt)/2+1,easeInBounce:e=>1-xt(1-e),easeOutBounce:xt,easeInOutBounce:e=>e<.5?(1-xt(1-2*e))/2:(1+xt(2*e-1))/2,steps:(e,t="end")=>n=>{const i=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return 0,1,o=("end"===t?Math.floor(i):Math.ceil(i))/e,Math.min(Math.max(o,0),1);var o}},Nt=Symbol.for("FluidValue.get"),At=Symbol.for("FluidValue.observers"),Rt=e=>Boolean(e&&e[Nt]),Gt=e=>e&&e[Nt]?e[Nt]():e,Dt=e=>e[At]||null;function Tt(e,t){const n=e[At];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Lt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ut(this,e)}},Ut=(e,t)=>Vt(e,Nt,t);function Ft(e,t){if(e[Nt]){let n=e[At];n||Vt(e,At,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){const n=e[At];if(n&&n.has(t)){const i=n.size-1;i?n.delete(t):e[At]=null,e.observerRemoved&&e.observerRemoved(i,t)}}var jt,Vt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),zt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,$t=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qt=new RegExp(`(${zt.source})(%|[a-z]+)`,"i"),Ht=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Wt=e=>{const[t,n]=Qt(e);if(!t||qe())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(i)return i.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&Zt.test(n)?Wt(n):n||e},Qt=e=>{const t=Zt.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]},Jt=(e,t,n,i,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(i)}, ${o})`,Yt=e=>{jt||(jt=He?new RegExp(`(${Object.keys(He).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Gt(e).replace(Zt,Wt).replace($t,Et).replace(jt,Et))),n=t.map((e=>e.match(zt).map(Number))),i=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Ct({...e,output:t})));return e=>{const n=!qt.test(t[0])&&t.find((e=>qt.test(e)))?.replace(zt,"");let o=0;return t[0].replace(zt,(()=>`${i[o++](e)}${n||""}`)).replace(Ht,Jt)}},Xt="react-spring: ",Kt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Xt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},en=Kt(console.warn),tn=Kt(console.warn);function nn(e){return Te.str(e)&&("#"==e[0]||/\d/.test(e)||!qe()&&Zt.test(e)||e in(He||{}))}var on=qe()?h.useEffect:h.useLayoutEffect,sn=()=>{const e=(0,h.useRef)(!1);return on((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function an(){const e=(0,h.useState)()[1],t=sn();return()=>{t.current&&e(Math.random())}}var rn=e=>(0,h.useEffect)(e,ln),ln=[];function un(e){const t=(0,h.useRef)();return(0,h.useEffect)((()=>{t.current=e})),t.current}var cn=Symbol.for("Animated:node"),dn=e=>e&&e[cn],hn=(e,t)=>{return n=e,i=cn,o=t,Object.defineProperty(n,i,{value:o,writable:!0,configurable:!0});var n,i,o},pn=e=>e&&e[cn]&&e[cn].getPayload(),mn=class{constructor(){hn(this,this)}getPayload(){return this.payload||[]}},fn=class extends mn{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Te.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Te.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Te.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gn=class extends fn{constructor(e){super(0),this._string=null,this._toString=Ct({output:[e,e]})}static create(e){return new gn(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Te.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ct({output:[this.getValue(),e]})),this._value=0,super.reset()}},yn={dependencies:null},vn=class extends mn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Fe(this.source,((n,i)=>{var o;(o=n)&&o[cn]===o?t[i]=n.getValue(e):Rt(n)?t[i]=Gt(n):e||(t[i]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ue(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Fe(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yn.dependencies&&Rt(e)&&yn.dependencies.add(e);const t=pn(e);t&&Ue(t,(e=>this.add(e)))}},bn=class extends vn{constructor(e){super(e)}static create(e){return new bn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(wn)),!0)}};function wn(e){return(nn(e)?gn:fn).create(e)}function En(e){const t=dn(e);return t?t.constructor:Te.arr(e)?bn:nn(e)?gn:fn}var Cn=(e,t)=>{const n=!Te.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,h.forwardRef)(((i,o)=>{const s=(0,h.useRef)(null),a=n&&(0,h.useCallback)((e=>{s.current=function(e,t){return e&&(Te.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[r,l]=function(e,t){const n=new Set;return yn.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new vn(e),yn.dependencies=null,[e,n]}(i,t),u=an(),c=()=>{const e=s.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,r.getValue(!0)))&&u()},d=new Sn(c,l),p=(0,h.useRef)();on((()=>(p.current=d,Ue(l,(e=>Ft(e,d))),()=>{p.current&&(Ue(p.current.deps,(e=>Bt(e,p.current))),ve.cancel(p.current.update))}))),(0,h.useEffect)(c,[]),rn((()=>()=>{const e=p.current;Ue(e.deps,(t=>Bt(t,e)))}));const m=t.getComponentProps(r.getValue());return h.createElement(e,{...m,ref:a})}))},Sn=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ve.write(this.update)}},kn=Symbol.for("AnimatedComponent"),Pn=e=>Te.str(e)?e:e&&Te.str(e.displayName)?e.displayName:Te.fun(e)&&e.name||null;function In(e,...t){return Te.fun(e)?e(...t):e}var Mn=(e,t)=>!0===e||!!(t&&e&&(Te.fun(e)?e(t):Be(e).includes(t))),xn=(e,t)=>Te.obj(e)?t&&e[t]:e,On=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Nn=e=>e,An=(e,t=Nn)=>{let n=Rn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const i={};for(const o of n){const n=t(e[o],o);Te.und(n)||(i[o]=n)}return i},Rn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Dn(e){const t=function(e){const t={};let n=0;if(Fe(e,((e,i)=>{Gn[i]||(t[i]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Fe(e,((e,i)=>i in t||(n[i]=e))),n}return{...e}}function Tn(e){return e=Gt(e),Te.arr(e)?e.map(Tn):nn(e)?ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ln(e){return Te.fun(e)||Te.arr(e)&&Te.obj(e[0])}var Un={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Fn={...Un.default,mass:1,damping:1,easing:Ot.linear,clamp:!1},Bn=class{constructor(){this.velocity=0,Object.assign(this,Fn)}};function jn(e,t){if(Te.und(t.decay)){const n=!Te.und(t.tension)||!Te.und(t.friction);!n&&Te.und(t.frequency)&&Te.und(t.damping)&&Te.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Vn=[],zn=class{constructor(){this.changed=!1,this.values=Vn,this.toValues=null,this.fromValues=Vn,this.config=new Bn,this.immediate=!1}};function $n(e,{key:t,props:n,defaultProps:i,state:o,actions:s}){return new Promise(((a,r)=>{let l,u,c=Mn(n.cancel??i?.cancel,t);if(c)p();else{Te.und(n.pause)||(o.paused=Mn(n.pause,t));let e=i?.pause;!0!==e&&(e=o.paused||Mn(e,t)),l=In(n.delay||0,t),e?(o.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){o.resumeQueue.add(h),o.timeouts.delete(u),u.cancel(),l=u.time-ve.now()}function h(){l>0&&!ge.skipAnimation?(o.delayed=!0,u=ve.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},a)}catch(e){r(e)}}}))}var qn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Wn(e.get()):t.every((e=>e.noop))?Hn(e.get()):Zn(e.get(),t.every((e=>e.finished))),Hn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Zn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Wn=e=>({value:e,cancelled:!0,finished:!1});function Qn(e,t,n,i){const{callId:o,parentId:s,onRest:a}=t,{asyncTo:r,promise:l}=n;return s||e!==r||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=An(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const h=new Promise(((e,t)=>(c=e,d=t))),p=e=>{const t=o<=(n.cancelId||0)&&Wn(i)||o!==n.asyncId&&Zn(i,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const s=new Yn,a=new Xn;return(async()=>{if(ge.skipAnimation)throw Jn(n),a.result=Zn(i,!1),d(a),a;p(s);const r=Te.obj(e)?{...e}:{...t,to:e};r.parentId=o,Fe(u,((e,t)=>{Te.und(r[t])&&(r[t]=e)}));const l=await i.start(r);return p(s),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let f;if(ge.skipAnimation)return Jn(n),Zn(i,!1);try{let t;t=Te.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,i.stop.bind(i))),await Promise.all([t.then(c),h]),f=Zn(i.get(),!0,!1)}catch(e){if(e instanceof Yn)f=e.result;else{if(!(e instanceof Xn))throw e;f=e.result}}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?r:void 0,n.promise=s?l:void 0)}return Te.fun(a)&&ve.batchedUpdates((()=>{a(f,i,i.item)})),f})():l}function Jn(e,t){je(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Yn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Xn=class extends Error{constructor(){super("SkipAnimationSignal")}},Kn=e=>e instanceof ti,ei=1,ti=class extends Lt{constructor(){super(...arguments),this.id=ei++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=dn(this);return e&&e.getValue()}to(...e){return ge.to(this,e)}interpolate(...e){return en(`${Xt}The "interpolate" function is deprecated in v9 (use "to" instead)`),ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Tt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||et.sort(this),Tt(this,{type:"priority",parent:this,priority:e})}},ni=Symbol.for("SpringPhase"),ii=e=>(1&e[ni])>0,oi=e=>(2&e[ni])>0,si=e=>(4&e[ni])>0,ai=(e,t)=>t?e[ni]|=3:e[ni]&=-3,ri=(e,t)=>t?e[ni]|=4:e[ni]&=-5,li=class extends ti{constructor(e,t){if(super(),this.animation=new zn,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Te.und(e)||!Te.und(t)){const n=Te.obj(e)?{...e}:{...t,from:e};Te.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(oi(this)||this._state.asyncTo)||si(this)}get goal(){return Gt(this.animation.to)}get velocity(){const e=dn(this);return e instanceof fn?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ii(this)}get isAnimating(){return oi(this)}get isPaused(){return si(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:o}=i;const{config:s}=i,a=pn(i.to);!a&&Rt(i.to)&&(o=Be(Gt(i.to))),i.values.forEach(((r,l)=>{if(r.done)return;const u=r.constructor==gn?1:a?a[l].lastPosition:o[l];let c=i.immediate,d=u;if(!c){if(d=r.lastPosition,s.tension<=0)return void(r.done=!0);let t=r.elapsedTime+=e;const n=i.fromValues[l],o=null!=r.v0?r.v0:r.v0=Te.arr(s.velocity)?s.velocity[l]:s.velocity;let a;const h=s.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(Te.und(s.duration))if(s.decay){const e=!0===s.decay?.998:s.decay,i=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-i),c=Math.abs(r.lastPosition-d)<=h,a=o*i}else{a=null==r.lastVelocity?o:r.lastVelocity;const t=s.restVelocity||h/10,i=s.clamp?0:s.bounce,l=!Te.und(i),p=n==u?r.v0>0:n<u;let m,f=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(m=Math.abs(a)>t,m||(c=Math.abs(u-d)<=h,!c));++e)l&&(f=d==u||d>u==p,f&&(a=-a*i,d=u)),a+=(1e-6*-s.tension*(d-u)+.001*-s.friction*a)/s.mass*g,d+=a*g}else{let i=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,r.durationProgress>0&&(r.elapsedTime=s.duration*r.durationProgress,t=r.elapsedTime+=e)),i=(s.progress||0)+t/this._memoizedDuration,i=i>1?1:i<0?0:i,r.durationProgress=i),d=n+s.easing(i)*(u-n),a=(d-r.lastPosition)/e,c=1==i}r.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?r.done=!0:t=!1,r.setValue(d,s.round)&&(n=!0)}));const r=dn(this),l=r.getValue();if(t){const e=Gt(i.to);l===e&&!n||s.decay?n&&s.decay&&this._onChange(l):(r.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ve.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(oi(this)){const{to:e,config:t}=this.animation;ve.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Te.und(e)?(n=this.queue||[],this.queue=[]):n=[Te.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>qn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Jn(this._state,e&&this._lastCallId),ve.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=Te.obj(n)?n[t]:n,(null==n||Ln(n))&&(n=void 0),i=Te.obj(i)?i[t]:i,null==i&&(i=void 0);const o={to:n,from:i};return ii(this)||(e.reverse&&([n,i]=[i,n]),i=Gt(i),Te.und(i)?dn(this)||this._set(n):this._set(i)),o}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,An(e,((e,t)=>/^on/.test(t)?xn(e,n):e))),fi(this,e,"onProps"),gi(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return $n(++this._lastCallId,{key:n,props:e,defaultProps:i,state:s,actions:{pause:()=>{si(this)||(ri(this,!0),$e(s.pauseQueue),gi(this,"onPause",Zn(this,ui(this,this.animation.to)),this))},resume:()=>{si(this)&&(ri(this,!1),oi(this)&&this._resume(),$e(s.resumeQueue),gi(this,"onResume",Zn(this,ui(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=ci(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Wn(this));const i=!Te.und(e.to),o=!Te.und(e.from);if(i||o){if(!(t.callId>this._lastToId))return n(Wn(this));this._lastToId=t.callId}const{key:s,defaultProps:a,animation:r}=this,{to:l,from:u}=r;let{to:c=l,from:d=u}=e;!o||i||t.default&&!Te.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const h=!Le(d,u);h&&(r.from=d),d=Gt(d);const p=!Le(c,l);p&&this._focus(c);const m=Ln(t.to),{config:f}=r,{decay:g,velocity:y}=f;(i||o)&&(f.velocity=0),t.config&&!m&&function(e,t,n){n&&(jn(n={...n},t),t={...n,...t}),jn(e,t),Object.assign(e,t);for(const t in Fn)null==e[t]&&(e[t]=Fn[t]);let{frequency:i,damping:o}=e;const{mass:s}=e;Te.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*s,e.friction=4*Math.PI*o*s/i)}(f,In(t.config,s),t.config!==a.config?In(a.config,s):void 0);let v=dn(this);if(!v||Te.und(c))return n(Zn(this,!0));const b=Te.und(t.reset)?o&&!t.default:!Te.und(d)&&Mn(t.reset,s),_=b?d:this.get(),w=Tn(c),E=Te.num(w)||Te.arr(w)||nn(w),C=!m&&(!E||Mn(a.immediate||t.immediate,s));if(p){const e=En(c);if(e!==v.constructor){if(!C)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(w)}}const S=v.constructor;let k=Rt(c),P=!1;if(!k){const e=b||!ii(this)&&h;(p||e)&&(P=Le(Tn(_),w),k=!P),(Le(r.immediate,C)||C)&&Le(f.decay,g)&&Le(f.velocity,y)||(k=!0)}if(P&&oi(this)&&(r.changed&&!b?k=!0:k||this._stop(l)),!m&&((k||Rt(l))&&(r.values=v.getPayload(),r.toValues=Rt(c)?null:S==gn?[1]:Be(w)),r.immediate!=C&&(r.immediate=C,C||b||this._set(l)),k)){const{onRest:e}=r;Ue(mi,(e=>fi(this,t,e)));const i=Zn(this,ui(this,l));$e(this._pendingCalls,i),this._pendingCalls.add(n),r.changed&&ve.batchedUpdates((()=>{r.changed=!b,e?.(i,this),b?In(a.onRest,i):r.onStart?.(i,this)}))}b&&this._set(_),m?n(Qn(t.to,t,this._state,this)):k?this._start():oi(this)&&!p?this._pendingCalls.add(n):n(Hn(_))}_focus(e){const t=this.animation;e!==t.to&&(Dt(this)&&this._detach(),t.to=e,Dt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Rt(t)&&(Ft(t,this),Kn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Rt(e)&&Bt(e,this)}_set(e,t=!0){const n=Gt(e);if(!Te.und(n)){const e=dn(this);if(!e||!Le(n,e.getValue())){const i=En(n);e&&e.constructor==i?e.setValue(n):hn(this,i.create(n)),e&&ve.batchedUpdates((()=>{this._onChange(n,t)}))}}return dn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gi(this,"onStart",Zn(this,ui(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),In(this.animation.onChange,e,this)),In(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;dn(this).reset(Gt(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),oi(this)||(ai(this,!0),si(this)||this._resume())}_resume(){ge.skipAnimation?this.finish():et.start(this)}_stop(e,t){if(oi(this)){ai(this,!1);const n=this.animation;Ue(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Tt(this,{type:"idle",parent:this});const i=t?Wn(this.get()):Zn(this.get(),ui(this,e??n.to));$e(this._pendingCalls,i),n.changed&&(n.changed=!1,gi(this,"onRest",i,this))}}};function ui(e,t){const n=Tn(t);return Le(Tn(e.get()),n)}function ci(e,t=e.loop,n=e.to){const i=In(t);if(i){const o=!0!==i&&Dn(i),s=(o||e).reverse,a=!o||o.reset;return di({...e,loop:t,default:!1,pause:void 0,to:!s||Ln(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function di(e){const{to:t,from:n}=e=Dn(e),i=new Set;return Te.obj(t)&&pi(t,i),Te.obj(n)&&pi(n,i),e.keys=i.size?Array.from(i):null,e}function hi(e){const t=di(e);return Te.und(t.default)&&(t.default=An(t)),t}function pi(e,t){Fe(e,((e,n)=>null!=e&&t.add(n)))}var mi=["onStart","onRest","onChange","onPause","onResume"];function fi(e,t,n){e.animation[n]=t[n]!==On(t,n)?xn(t[n],e.key):void 0}function gi(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var yi=["onStart","onChange","onRest"],vi=1,bi=class{constructor(e,t){this.id=vi++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Te.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(di(e)),this}start(e){let{queue:t}=this;return e?t=Be(e).map(di):this.queue=[],this._flush?this._flush(this,t):(Pi(this,t),_i(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ue(Be(t),(t=>n[t].stop(!!e)))}else Jn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Te.und(e))this.start({pause:!0});else{const t=this.springs;Ue(Be(e),(e=>t[e].pause()))}return this}resume(e){if(Te.und(e))this.start({pause:!1});else{const t=this.springs;Ue(Be(e),(e=>t[e].resume()))}return this}each(e){Fe(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,je(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const s=!i&&this._started,a=o||s&&n.size?this.get():null;o&&t.size&&je(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),s&&(this._started=!1,je(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ve.onFrame(this._onFrame)}};function _i(e,t){return Promise.all(t.map((t=>wi(e,t)))).then((t=>qn(e,t)))}async function wi(e,t,n){const{keys:i,to:o,from:s,loop:a,onRest:r,onResolve:l}=t,u=Te.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===s&&(t.from=null);const c=Te.arr(o)||Te.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ue(yi,(n=>{const i=t[n];if(Te.fun(i)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(i);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(i,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,$e(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(i||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===On(t,"cancel");(c||p&&d.asyncId)&&h.push($n(++e._lastAsyncId,{props:t,state:d,actions:{pause:De,resume:De,start(t,n){p?(Jn(d,e._lastAsyncId),n(Wn(e))):(t.onRest=r,n(Qn(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=qn(e,await Promise.all(h));if(a&&m.finished&&(!n||!m.noop)){const n=ci(t,a,o);if(n)return Pi(e,[n]),wi(e,n,!0)}return l&&ve.batchedUpdates((()=>l(m,e,e.item))),m}function Ei(e,t){const n={...e.springs};return t&&Ue(Be(t),(e=>{Te.und(e.keys)&&(e=di(e)),Te.obj(e.to)||(e={...e,to:void 0}),ki(n,e,(e=>Si(e)))})),Ci(e,n),n}function Ci(e,t){Fe(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ft(t,e))}))}function Si(e,t){const n=new li;return n.key=e,t&&Ft(n,t),n}function ki(e,t,n){t.keys&&Ue(t.keys,(i=>{(e[i]||(e[i]=n(i)))._prepareNode(t)}))}function Pi(e,t){Ue(t,(t=>{ki(e.springs,t,(t=>Si(t,e)))}))}var Ii,Mi,xi=({children:e,...t})=>{const n=(0,h.useContext)(Oi),i=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,h.useState)((()=>({inputs:t,result:e()}))),i=(0,h.useRef)(),o=i.current;let s=o;return s?Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,s.inputs))||(s={inputs:t,result:e()}):s=n,(0,h.useEffect)((()=>{i.current=s,o==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:i,immediate:o})),[i,o]);const{Provider:s}=Oi;return h.createElement(s,{value:t},e)},Oi=(Ii=xi,Mi={},Object.assign(Ii,h.createContext(Mi)),Ii.Provider._context=Ii,Ii.Consumer._context=Ii,Ii);xi.Provider=Oi.Provider,xi.Consumer=Oi.Consumer;var Ni=()=>{const e=[],t=function(t){tn(`${Xt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const i=[];return Ue(e,((e,o)=>{if(Te.und(t))i.push(e.start());else{const s=n(t,e,o);s&&i.push(e.start(s))}})),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ue(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ue(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ue(e,((e,n)=>{const i=Te.fun(t)?t(n,e):t;i&&e.set(i)}))},t.start=function(t){const n=[];return Ue(e,((e,i)=>{if(Te.und(t))n.push(e.start());else{const o=this._getProps(t,e,i);o&&n.push(e.start(o))}})),n},t.stop=function(){return Ue(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ue(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Te.fun(e)?e(n,t):e};return t._getProps=n,t};function Ai(e,t){const n=Te.fun(e),[[i],o]=function(e,t,n){const i=Te.fun(t)&&t;i&&!n&&(n=[]);const o=(0,h.useMemo)((()=>i||3==arguments.length?Ni():void 0),[]),s=(0,h.useRef)(0),a=an(),r=(0,h.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Ei(e,t);return s.current>0&&!r.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?_i(e,t):new Promise((i=>{Ci(e,n),r.queue.push((()=>{i(_i(e,t))})),a()}))}})),[]),l=(0,h.useRef)([...r.ctrls]),u=[],c=un(e)||0;function d(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new bi(null,r.flush)),n=i?i(o,e):t[o];n&&(u[o]=hi(n))}}(0,h.useMemo)((()=>{Ue(l.current.slice(e,c),(e=>{(function(e,t){e.ref?.delete(e),t?.delete(e)})(e,o),e.stop(!0)})),l.current.length=e,d(c,e)}),[e]),(0,h.useMemo)((()=>{d(0,Math.min(c,e))}),n);const p=l.current.map(((e,t)=>Ei(e,u[t]))),m=(0,h.useContext)(xi),f=un(m),g=m!==f&&function(e){for(const t in e)return!0;return!1}(m);on((()=>{s.current++,r.ctrls=l.current;const{queue:e}=r;e.length&&(r.queue=[],Ue(e,(e=>e()))),Ue(l.current,((e,t)=>{o?.add(e),g&&e.start({default:m});const n=u[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),rn((()=>()=>{Ue(r.ctrls,(e=>e.stop(!0)))}));const y=p.map((e=>({...e})));return o?[y,o]:y}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[i,o]:i}var Ri=class extends ti{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ct(...t);const n=this._get(),i=En(n);hn(this,i.create(n))}advance(e){const t=this._get();Le(t,this.get())||(dn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Di(this._active)&&Ti(this)}_get(){const e=Te.arr(this.source)?this.source.map(Gt):Be(Gt(this.source));return this.calc(...e)}_start(){this.idle&&!Di(this._active)&&(this.idle=!1,Ue(pn(this),(e=>{e.done=!1})),ge.skipAnimation?(ve.batchedUpdates((()=>this.advance())),Ti(this)):et.start(this))}_attach(){let e=1;Ue(Be(this.source),(t=>{Rt(t)&&Ft(t,this),Kn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ue(Be(this.source),(e=>{Rt(e)&&Bt(e,this)})),this._active.clear(),Ti(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Be(this.source).reduce(((e,t)=>Math.max(e,(Kn(t)?t.priority:0)+1)),0))}};function Gi(e){return!1!==e.idle}function Di(e){return!e.size||Array.from(e).every(Gi)}function Ti(e){e.idle||(e.idle=!0,Ue(pn(e),(e=>{e.done=!0})),Tt(e,{type:"idle",parent:e}))}ge.assign({createStringInterpolator:Yt,to:(e,t)=>new Ri(e,t)}),et.advance;var Li=/^--/;function Ui(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Li.test(e)||Bi.hasOwnProperty(e)&&Bi[e]?(""+t).trim():t+"px"}var Fi={},Bi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ji=["Webkit","Ms","Moz","O"];Bi=Object.keys(Bi).reduce(((e,t)=>(ji.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Bi);var Vi=/^(matrix|translate|scale|rotate|skew)/,zi=/^(translate)/,$i=/^(rotate|skew)/,qi=(e,t)=>Te.num(e)&&0!==e?e+t:e,Hi=(e,t)=>Te.arr(e)?e.every((e=>Hi(e,t))):Te.num(e)?e===t:parseFloat(e)===t,Zi=class extends vn{constructor({x:e,y:t,z:n,...i}){const o=[],s=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>qi(e,"px"))).join(",")})`,Hi(e,0)]))),Fe(i,((e,t)=>{if("transform"===t)o.push([e||""]),s.push((e=>[e,""===e]));else if(Vi.test(t)){if(delete i[t],Te.und(e))return;const n=zi.test(t)?"px":$i.test(t)?"deg":"";o.push(Be(e)),s.push("rotate3d"===t?([e,t,i,o])=>[`rotate3d(${e},${t},${i},${qi(o,n)})`,Hi(o,0)]:e=>[`${t}(${e.map((e=>qi(e,n))).join(",")})`,Hi(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Wi(o,s)),super(i)}},Wi=class extends Lt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ue(this.inputs,((n,i)=>{const o=Gt(n[0]),[s,a]=this.transforms[i](Te.arr(o)?o:n.map(Gt));e+=" "+s,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ue(this.inputs,(e=>Ue(e,(e=>Rt(e)&&Ft(e,this)))))}observerRemoved(e){0==e&&Ue(this.inputs,(e=>Ue(e,(e=>Rt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Tt(this,e)}};ge.assign({batchedUpdates:p.unstable_batchedUpdates,createStringInterpolator:Yt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Qi=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new vn(e)),getComponentProps:i=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},s=e=>{const t=Pn(e)||"Anonymous";return(e=Te.str(e)?s[e]||(s[e]=Cn(e,o)):e[kn]||(e[kn]=Cn(e,o))).displayName=`Animated(${t})`,e};return Fe(e,((t,n)=>{Te.arr(e)&&(n=Pn(t)),s[n]=s(t)})),{animated:s}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:r,...l}=t,u=Object.values(l),c=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Fi[t]||(Fi[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in i)if(i.hasOwnProperty(t)){const n=Ui(t,i[t]);Li.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==r&&e.setAttribute("viewBox",r)},createAnimatedStyle:e=>new Zi(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ji=Qi.animated;function Yi(e){const{children:t,config:n=Un.default,isCollapsed:o=!1}=e,[s,{height:a}]=de(),r=Ai({config:n,from:{height:0,opacity:0},to:{height:o?0:a,opacity:o?0:1}});return(0,i.createElement)(Ji.div,{style:{overflow:"hidden",...r}},(0,i.cloneElement)(t,{ref:s}))}var Xi=n(359),Ki=n.n(Xi);const eo=window.wp.apiFetch;var to=n.n(eo);const no=(0,h.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(ie.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function io(e){const{tooltip:t,closeCallback:n}=e;return(0,i.createElement)(d.Popover,{anchorRect:t.anchorRect,className:"publish-guide-tooltip godaddy-styles"+(t.nextTooltip?"":" publish-guide-tooltip--next"),noArrow:!1},(0,i.createElement)("p",{className:"publish-guide-tooltip__label"},(0,i.createElement)("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("path",{d:"M15.5266 0.730524C13.6559 -0.433974 11.1932 -0.159034 8.99681 1.21948C6.80726 -0.158272 4.34306 -0.433974 2.47469 0.730524C-0.48083 2.57438 -0.840161 7.32376 1.67287 11.3374C3.52521 14.2978 6.42199 16.0312 9.00063 15.9992C11.5793 16.0312 14.476 14.2978 16.3284 11.3374C18.8384 7.32376 18.4821 2.57438 15.5266 0.730524ZM3.03161 10.4905C2.51329 9.67028 2.12232 8.77644 1.87199 7.83937C1.6494 7.02621 1.56431 6.18166 1.62023 5.34054C1.73237 3.85769 2.33736 2.70233 3.32304 2.08695C4.30872 1.47157 5.61178 1.43577 6.99951 1.98489C7.21046 2.06958 7.41696 2.1649 7.61823 2.2705C6.8469 2.972 6.17632 3.7765 5.62551 4.66118C4.09969 7.09833 3.63431 9.81117 4.16682 11.9726C3.74261 11.5153 3.36252 11.0191 3.03161 10.4905ZM16.13 7.83937C15.8794 8.77632 15.4884 9.67012 14.9704 10.4905C14.6396 11.0201 14.2595 11.5174 13.8352 11.9757C14.3112 10.0374 13.9878 7.66344 12.8205 5.4365C12.802 5.39967 12.776 5.36715 12.7441 5.34104C12.7122 5.31494 12.6751 5.29584 12.6353 5.28499C12.5955 5.27414 12.5538 5.27178 12.5131 5.27807C12.4723 5.28436 12.4333 5.29916 12.3986 5.3215L8.75955 7.59185C8.72638 7.61245 8.69761 7.63939 8.6749 7.67112C8.65218 7.70284 8.63597 7.73873 8.62718 7.77673C8.61839 7.81473 8.6172 7.85408 8.62368 7.89254C8.63016 7.931 8.64419 7.9678 8.66494 8.00083L9.19898 8.85307C9.21962 8.88618 9.2466 8.9149 9.27839 8.93758C9.31017 8.96025 9.34612 8.97644 9.38418 8.98521C9.42224 8.99399 9.46167 8.99517 9.50019 8.9887C9.53871 8.98223 9.57557 8.96824 9.60867 8.94751L11.9676 7.47685C12.0439 7.70533 12.1202 7.93 12.1774 8.16229C12.3999 8.97547 12.485 9.82 12.4291 10.6611C12.317 12.1447 11.712 13.3001 10.7263 13.9155C10.2179 14.2258 9.63537 14.3941 9.03953 14.4029H8.96324C8.36738 14.3943 7.78478 14.226 7.27645 13.9155C6.29 13.3001 5.68502 12.1447 5.57287 10.6611C5.51741 9.82001 5.60249 8.97554 5.82463 8.16229C6.33618 6.28117 7.39305 4.59284 8.86254 3.30933C9.49632 2.75373 10.2182 2.30718 10.9987 1.98794C12.3826 1.43882 13.688 1.47461 14.6744 2.08999C15.6608 2.70537 16.2651 3.86073 16.3772 5.34358C16.4339 6.18344 16.3504 7.02686 16.13 7.83937Z",fill:"#2B2B2B"})),(0,u.__)("Get Started","godaddy-launch")),(0,i.createElement)("h3",{className:"publish-guide-tooltip__title"},t.title),(0,i.createElement)("div",{className:"publish-guide-tooltip__description"},t.description),(0,i.createElement)(d.Icon,{className:"publish-guide-tooltip__close",icon:no,onClick:n}))}function oo(){return"undefined"!=typeof gdlLiveSiteControlData}function so(e,t=void 0){var n;return oo()&&null!==(n=gdlLiveSiteControlData[e])&&void 0!==n?n:t}const ao=(0,i.createElement)(ie.SVG,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{d:"M21.75 12C21.747 9.4152 20.7189 6.9371 18.8913 5.1093C17.0636 3.28149 14.5856 2.25323 12.0008 2.25006L12.0005 2.25H12C9.41414 2.25 6.93419 3.27723 5.10571 5.10571C3.27723 6.93419 2.25 9.41414 2.25 12C2.25 14.5859 3.27723 17.0658 5.10571 18.8943C6.93419 20.7228 9.41414 21.75 12 21.75H12.0005L12.0008 21.7499C14.5856 21.7468 17.0636 20.7185 18.8913 18.8907C20.7189 17.0629 21.747 14.5848 21.75 12ZM20.212 11.25H16.723C16.6173 8.79943 15.9568 6.4048 14.7913 4.24652C16.2665 4.77892 17.5596 5.72024 18.5195 6.96044C19.4794 8.20065 20.0665 9.68848 20.212 11.25ZM10.811 19.5547C9.58439 17.4878 8.88479 15.1509 8.7738 12.75H15.2264C15.1154 15.1513 14.4155 17.4885 13.1884 19.5557C13.0631 19.7583 12.8881 19.9255 12.68 20.0414C12.4719 20.1573 12.2377 20.2181 11.9994 20.218C11.7612 20.2179 11.527 20.1569 11.319 20.0408C11.111 19.9247 10.9361 19.7574 10.811 19.5547V19.5547ZM8.7738 11.25C8.88484 8.84892 9.58444 6.51196 10.811 4.44482C10.9297 4.234 11.1024 4.05854 11.3113 3.93645C11.5202 3.81435 11.7578 3.75 11.9997 3.75C12.2417 3.75 12.4793 3.81435 12.6882 3.93645C12.8971 4.05854 13.0697 4.234 13.1884 4.44482C14.4154 6.51182 15.1153 8.84883 15.2264 11.25H8.7738ZM9.208 4.24677C8.04265 6.405 7.38223 8.79953 7.27649 11.25H3.788C3.9335 9.68859 4.52045 8.20086 5.48024 6.96071C6.44003 5.72056 7.733 4.77924 9.208 4.24677ZM3.788 12.75H7.27649C7.38214 15.2004 8.04245 17.5949 9.2077 19.7531C7.73277 19.2206 6.43988 18.2793 5.48015 17.0392C4.52042 15.799 3.93351 14.3113 3.788 12.75ZM14.7917 19.7534C15.957 17.5951 16.6174 15.2005 16.723 12.75H20.212C20.0665 14.3115 19.4795 15.7992 18.5196 17.0394C17.5598 18.2796 16.2668 19.2209 14.7917 19.7534H14.7917Z",fill:"#111111"}));function ro(){const e=gdvLinks?.changeDomain.replace("{{DOMAIN}}",window.location.hostname),t=gdlPublishGuideItems.AddDomain.propName,[n=gdlPublishGuideItems.AddDomain.default]=(0,l.useEntityProp)("root","site",t);return(0,i.createElement)("li",{className:"publish-guide-popover__item"},(0,i.createElement)("div",{className:"publish-guide-popover__item__content"},(0,i.createElement)("div",{className:"item"},(0,i.createElement)(d.Icon,{icon:n?ae:ao}),(0,i.createElement)("button",{className:"publish-guide-popover__item__title"},n?(0,u.__)("Domain added","godaddy-launch"):(0,u.__)("Add your domain","godaddy-launch"))),(0,i.createElement)("div",{className:"info"},(0,i.createElement)("p",null,n?so("siteUrl"):(0,u.__)("Choose the domain you used before, or another one if you prefer","godaddy-launch")),!n&&(0,i.createElement)(ee,{action:"click",section:"migrate_guide/item/add_domain",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link",onClick:()=>{window.open(e,"_self")},variant:"link"},(0,u.__)("Select a domain","godaddy-launch"))))))}const lo=(0,i.createElement)(ie.SVG,{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{d:"M20.5304 19.4582L16.0546 14.9824C17.2622 13.5497 17.8735 11.7079 17.7623 9.83742C17.6512 7.96694 16.826 6.21057 15.4572 4.93096C14.0883 3.65136 12.2804 2.94623 10.4067 2.96117C8.53298 2.97611 6.73654 3.70999 5.38831 5.01127C4.04007 6.31254 3.24301 8.08186 3.16168 9.95387C3.08035 11.8259 3.72098 13.6577 4.95128 15.0709C6.18159 16.4842 7.90762 17.3711 9.77298 17.5485C11.6383 17.7259 13.5006 17.1802 14.9752 16.0241L19.4699 20.5188C19.6106 20.659 19.8012 20.7376 19.9998 20.7374C20.1985 20.7372 20.3889 20.6582 20.5294 20.5177C20.6698 20.3773 20.7488 20.1868 20.749 19.9882C20.7492 19.7896 20.6706 19.599 20.5304 19.4582ZM4.75013 10.3317C4.74902 9.38373 4.9823 8.45016 5.42923 7.61413C5.87616 6.77809 6.52286 6.06553 7.31177 5.53987C8.10068 5.01421 9.00732 4.69176 9.95098 4.60122C10.8946 4.51068 11.8461 4.65487 12.7205 5.02094C13.595 5.38702 14.3654 5.96362 14.9631 6.69943C15.5608 7.43523 15.9674 8.30741 16.1465 9.23833C16.3257 10.1692 16.2719 11.13 15.9899 12.0351C15.708 12.9402 15.2066 13.7615 14.5305 14.426C14.5021 14.4496 14.4766 14.4697 14.4519 14.4975C13.6376 15.2728 12.6137 15.7921 11.507 15.9908C10.4004 16.1895 9.25977 16.059 8.22664 15.6154C7.19351 15.1718 6.31335 14.4346 5.69534 13.4954C5.07733 12.5561 4.74867 11.4561 4.75013 10.3317Z",fill:"#111111"}));function uo(){return(0,i.createElement)("li",{className:"publish-guide-popover__item"},(0,i.createElement)("div",{className:"publish-guide-popover__item__content"},(0,i.createElement)("div",{className:"item"},(0,i.createElement)(d.Icon,{icon:lo}),(0,i.createElement)("button",{className:"publish-guide-popover__item__title"},(0,u.__)("Review migrated site","godaddy-launch"))),(0,i.createElement)("div",{className:"info"},(0,i.createElement)("p",null,(0,u.__)("Go through the website and make sure everything looks good","godaddy-launch")))))}function co(){return(0,i.createElement)("ul",{className:"publish-guide-popover__items"},(0,i.createElement)(uo,null),(0,i.createElement)(ro,null))}const ho=(0,h.createElement)(ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(ie.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),po=(0,i.createElement)(ie.SVG,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{clipRule:"evenodd",d:"M2.25 3.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Zm1.5 3v-2.5h2.5v2.5h-2.5ZM2.25 10.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Zm1.5 3v-2.5h2.5v2.5h-2.5ZM3.25 16.25a1 1 0 0 0-1 1v3.5a1 1 0 0 0 1 1h3.5a1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1h-3.5Zm.5 1.5v2.5h2.5v-2.5h-2.5Z",fill:"#fff",fillRule:"evenodd"}),(0,i.createElement)(ie.Path,{d:"M11 4.25a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5H11ZM10.25 12a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5H11a.75.75 0 0 1-.75-.75ZM11 18.25a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5H11Z",fill:"#fff"}));function mo(){return{type:"ACTIVATE_PUBLISH_GUIDE_FAB"}}function fo(){return{type:"DEACTIVATE_PUBLISH_GUIDE_FAB"}}function go(){return{type:"OPEN_PUBLISH_GUIDE"}}function yo(){return{type:"CLOSE_PUBLISH_GUIDE"}}function vo(){return{type:"TOGGLE_PUBLISH_GUIDE"}}function bo(e){return{guideItems:e,type:"SET_GUIDE_ITEMS"}}function _o(e){return e.publishGuideFabActive}function wo(e){return e.publishGuideActive}function Eo(e){return e.guideItems}function Co(e){return e.guideItems.filter((e=>e.props.hasCompleted)).length===e.guideItems.length}const So=(0,c.combineReducers)({guideItems:function(e=[],t){return"SET_GUIDE_ITEMS"===t.type?[...t.guideItems]:e},publishGuideActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_GUIDE":return!0;case"CLOSE_PUBLISH_GUIDE":return!1;case"TOGGLE_PUBLISH_GUIDE":return!e}return e},publishGuideFabActive:function(e=!1,t){switch(t.type){case"ACTIVATE_PUBLISH_GUIDE_FAB":return!0;case"DEACTIVATE_PUBLISH_GUIDE_FAB":return!1}return e}}),ko=(0,c.createReduxStore)("godaddy-launch/publish-guide",{actions:e,reducer:So,selectors:t});(0,c.register)(ko);const Po=({isCompleted:e,setPublishGuideMenuOpened:t,publishGuideInteracted:n})=>{const{isPublishGuideOpened:o}=(0,c.useSelect)((e=>({isPublishGuideOpened:e(ko).isPublishGuideOpened()})),[]),{togglePublishGuide:s}=(0,c.useDispatch)(ko);let a=(0,i.createElement)("span",{className:"publish-guide-trigger__button__icon-check"},(0,i.createElement)(d.Icon,{icon:po}));const[r,l]=(0,i.useState)(!1);o&&!e&&(a=(0,i.createElement)("span",{className:"publish-guide-trigger__button__icon-close"},(0,i.createElement)(d.Icon,{icon:no})));const h=r?(0,i.createElement)("div",{className:"publish-guide-trigger__button__launch"},(0,u.__)("Launch Site","godaddy-launch")):(0,i.createElement)(d.Icon,{icon:ho});return(0,i.createElement)(ee,{action:"click",section:"guide",target:o?"close":"open"},(0,i.createElement)(d.Button,{"aria-label":(0,u.__)("Publish Guide","godaddy-launch"),className:ne()("publish-guide-trigger__button",{"is-opened":o}),id:"gdl-publish-guide-trigger-button",isPrimary:!0,onClick:()=>{setTimeout((()=>{s(),n||t()}),0)},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)},e?h:a))};function Io(e){const{stepsCompleted:t,stepsTotal:n}=e,[o,s]=(0,i.useState)(0);(0,i.useEffect)((()=>{const e=t&&n?Math.round(100*t/n):0;s(e)}),[t]);const a={width:`${o}%`};return(0,i.createElement)("div",{className:"publish-guide-progress"},(0,i.createElement)("div",{className:"publish-guide-progress-bar-background"},(0,i.createElement)("div",{className:"publish-guide-progress-bar-foreground",style:a})))}function Mo(){const{isPublishGuideFabActive:e,isPublishGuideOpened:t}=(0,c.useSelect)((e=>({isPublishGuideFabActive:e(ko).isPublishGuideFabActive(),isPublishGuideOpened:e(ko).isPublishGuideOpened()})),[]),[n=!oo()]=(0,l.useEntityProp)("root","site",so("settings")?.publishState),[o=!1,s]=(0,l.useEntityProp)("root","site",gdvPublishGuideDefaults.optionInteracted),a=["publish-guide-popover",t?null:"publish-guide-popover__display-none"].join(" ").trim();return e&&!n&&(0,i.createElement)("div",{className:"publish-guide-migrate publish-guide-trigger godaddy-styles"},(0,i.createElement)(Po,{isCompleted:!1,placement:"bottom-start",publishGuideInteracted:o,setPublishGuideMenuOpened:()=>{s(!0),(0,c.dispatch)("core").saveEntityRecord("root","site",{[gdvPublishGuideDefaults.optionInteracted]:!0})}}),(0,i.createElement)(d.Popover.Slot,null),(0,i.createElement)(d.Popover,{className:a,focusOnMount:"container",placement:"bottom-start"},(0,i.createElement)("div",{className:"publish-guide-popover__header godaddy-styles components-modal__header"},(0,i.createElement)("div",{className:"publish-guide-popover__header__content"},(0,i.createElement)("h1",{className:"publish-guide-popover__header__title components-modal__header-heading"},(0,u.__)("Migration Guide","godaddy-launch"))),(0,i.createElement)("div",{className:"publish-guide-popover__header__progress"},(0,i.createElement)(Io,{stepsCompleted:0,stepsTotal:2}))),(0,i.createElement)(co,null),(0,i.createElement)(Yi,null,(0,i.createElement)("div",{className:"publish-guide-popover__footer"}))))}function xo(e){const{children:t,isCollapsed:n,selectedItem:o,setSelectedItem:s}=e;return(0,i.createElement)(Yi,{isCollapsed:n},(0,i.createElement)("ul",{className:"publish-guide-popover__items"},t?.map(((e,t)=>(0,i.createElement)("div",{"data-testid":"publish-guide-item",key:`publish-guide-item-${t}`},(0,i.cloneElement)(e,{key:`publish-guide-item-${t}`,selectedItem:o,setSelectedItem:s}))))))}const Oo=window.wp.editPost,No=(0,i.createElement)(ie.SVG,{fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(ie.Path,{clipRule:"evenodd",d:"M2.25 3.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Zm1.5 3v-2.5h2.5v2.5h-2.5ZM2.25 10.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-3.5a1 1 0 0 1-1-1v-3.5Zm1.5 3v-2.5h2.5v2.5h-2.5ZM3.25 16.25a1 1 0 0 0-1 1v3.5a1 1 0 0 0 1 1h3.5a1 1 0 0 0 1-1v-3.5a1 1 0 0 0-1-1h-3.5Zm.5 1.5v2.5h2.5v-2.5h-2.5Z",fill:"black",fillRule:"evenodd"}),(0,i.createElement)(ie.Path,{d:"M11 4.25a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5H11ZM10.25 12a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5H11a.75.75 0 0 1-.75-.75ZM11 18.25a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5H11Z",fill:"black"})),Ao=()=>{const[e,t]=(0,i.useState)(!1),[n,o]=(0,i.useState)(null),s=e=>{e.stopPropagation(),e.preventDefault();const t=document.querySelector(".publish-guide-tooltip");t&&!t.contains(e.target)&&(0,r.unregisterPlugin)("gdl-publish-menu-item-tooltip")};return(0,i.useEffect)((()=>(document.addEventListener("mousedown",s),document.addEventListener("click",s),()=>{document.removeEventListener("mousedown",s),document.removeEventListener("click",s)})),[]),(0,i.useEffect)((()=>{setTimeout((()=>{const e=document.querySelector("#publish-guide-more-menu-item");e&&e.focus(),t(!0);const n=document.querySelector("#publish-guide-more-menu-item");if(n){const e=n.getBoundingClientRect();o(new DOMRect(e.x-20,e.y,e.width,e.height))}}),200)}),[]),e&&n?(0,i.createElement)(d.Popover,{anchorRect:n,className:"publish-guide-tooltip publish-guide-menu-item-tooltip",focusOnMount:!1,noArrow:!1,offset:50,onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},position:"middle right"},(0,i.createElement)("p",{className:"publish-guide-menu-item__header"},(0,u.__)("Just so you know…","godaddy-launch")),(0,i.createElement)("p",null,(0,u.__)("The Quick Start Guide is now disabled, but you can re-enable it any time from here.","godaddy-launch")),(0,i.createElement)("button",{className:"publish-guide-menu-item__confirm godaddy-styles",onMouseDown:()=>{(0,r.unregisterPlugin)("gdl-publish-menu-item-tooltip")}},(0,u.__)("Got it","godaddy-launch"))):null},Ro=e=>{const{setTooltip:t,handleMilestoneStatusUpdate:n}=e,o=gdlPublishGuideItems.SEO.milestoneName,s=gdlPublishGuideItems.SEO.propName,[r=gdlPublishGuideItems.SEO.default,h]=(0,l.useEntityProp)("root","site",s),{createErrorNotice:p}=(0,c.useDispatch)(a.store),m=async e=>{try{await h(e),await Q(s,e),await n(o,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving SEO guide item","godaddy-launch");p(t,{type:"snackbar"})}};return(0,i.useEffect)((()=>{if(r){const e="siteSEOEvent";localStorage.getItem(e)||(localStorage.setItem(e,"1"),X(`${K}.guide/item/seo.complete`))}}),[r]),(0,i.createElement)(re,Z({isCompleted:r,name:"seo",skipAction:()=>m("skipped"),testId:"seo-container",text:(0,u.__)("Let's make sure your site shows up on Google and other search engines.","godaddy-launch"),title:(0,u.__)("Optimize SEO","godaddy-launch")},e),(0,i.createElement)(ee,{action:"click",section:"guide/item/seo",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link",isLink:!0,onClick:()=>{gdvLinks.seoRedirectUrl?window.location.assign(gdvLinks.seoRedirectUrl):t("SEO")}},(0,u.__)("Get Started","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/seo",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link is-skip",isLink:!0,onClick:()=>m("skipped")},(0,u.__)("Skip","godaddy-launch"))))},Go=e=>{const{setTooltip:t,handleMilestoneStatusUpdate:n}=e,o=gdlPublishGuideItems.SiteContent.milestoneName,s=gdlPublishGuideItems.SiteContent.propName,[r=gdlPublishGuideItems.SiteContent.default,h]=(0,l.useEntityProp)("root","site",s),{createErrorNotice:p}=(0,c.useDispatch)(a.store),m=async e=>{try{await h(e),await Q(s,e),await n(o,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving Site Content guide item","godaddy-launch");p(t,{type:"snackbar"})}};return(0,i.useEffect)((()=>{if(r){const e="siteContentEvent";localStorage.getItem(e)||(localStorage.setItem(e,"1"),X(`${K}.guide/item/site_content.complete`))}}),[r]),(0,i.createElement)(re,Z({isCompleted:r,name:"site_content",skipAction:()=>m("skipped"),testId:"site-content-container",text:(0,u.__)("Help visitors get to know you and and how they can reach you.","godaddy-launch"),title:(0,u.__)("Add a new page","godaddy-launch")},e),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_content",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link",isLink:!0,onClick:()=>{gdvLinks.editorRedirectUrl?window.location.assign(gdvLinks.editorRedirectUrl+"&tooltip=siteContent"):t("siteContent")}},(0,u.__)("Get Started","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_content",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link is-skip",isLink:!0,onClick:()=>m("skipped")},(0,u.__)("Skip","godaddy-launch"))))},Do=e=>{const{setTooltip:t,handleMilestoneStatusUpdate:n}=e,o=gdlPublishGuideItems.SiteDesign.milestoneName,s=gdlPublishGuideItems.SiteDesign.propName,[r=gdlPublishGuideItems.SiteDesign.default,h]=(0,l.useEntityProp)("root","site",s),{createErrorNotice:p}=(0,c.useDispatch)(a.store),m=async e=>{try{await h(e),await Q(s,e),await n(o,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving Site Design guide item","godaddy-launch");p(t,{type:"snackbar"})}},{coblocksSiteDesign:f,selectedColors:g,selectedDesignStyle:y,selectedFonts:v}=(0,c.useSelect)((e=>({coblocksSiteDesign:globalThis?.siteDesign||{},selectedColors:e("coblocks/site-design")?.getCurrentColors(),selectedDesignStyle:e("coblocks/site-design")?.getDesignStyle(),selectedFonts:e("coblocks/site-design")?.getSelectedFonts()})),[]);return(0,i.useEffect)((()=>{if(!f.hasOwnProperty("currentColors")||!f.hasOwnProperty("currentDesignStyle")||!f.hasOwnProperty("currentFonts"))return;const e=Object.fromEntries(Object.entries(f.currentColors).filter((e=>e[1]))),t=f.currentDesignStyle,n=Object.entries(f.currentFonts);JSON.stringify(e)===JSON.stringify(g)&&JSON.stringify(t)===JSON.stringify(y)&&JSON.stringify(n)===JSON.stringify(v)||r||(m("true"),X(`${K}.guide/item/site_design.complete`))}),[g,y,v]),(0,i.createElement)(re,Z({isCompleted:r,name:"site_design",skipAction:()=>m("skipped"),testId:"site-design-container",text:(0,u.__)("Change site colors and fonts to match your brand.","godaddy-launch"),title:(0,u.__)("Customize styles","godaddy-launch")},e),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_design",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link",isLink:!0,onClick:()=>{gdvLinks.stylesRedirectUrl?window.location.assign(gdvLinks.stylesRedirectUrl):t("siteDesign")}},(0,u.__)("Make It Your Own","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_design",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link is-skip",onClick:()=>m("skipped")},(0,u.__)("Skip","godaddy-launch"))))},To=window.wp.compose,Lo=window.wp.htmlEntities,Uo=({closeModal:e,setIsCompleted:t})=>{const[n]=(0,l.useEntityProp)("root","site","title"),[o]=(0,l.useEntityProp)("root","site","description"),[s,a]=(0,i.useState)(n),[r,h]=(0,i.useState)(o),[p,m]=(0,i.useState)(!1),{url:f}=(0,c.useSelect)((e=>({url:e("core").getSite()?.url})));return(0,i.createElement)(d.Modal,{className:"publish-guide-popover__modal godaddy-styles",isOpen:!0,onRequestClose:e,title:(0,u.__)("Add your site info","godaddy-launch")},(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,(0,u.__)("Adding your site's name and a quick description is helpful not only for Google and other search engines to find you but also for potential customers to know if this is the right place for them.","godaddy-launch")),(0,i.createElement)("div",{className:"publish-guide-site-info__content"},(0,i.createElement)("div",{className:"publish-guide-site-info__section form-section"},(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"input_title"},(0,i.createElement)(d.TextControl,{label:(0,u.__)("What's the name of your site?","godaddy-launch"),onChange:e=>a(e),value:(0,Lo.decodeEntities)(s)})),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"input_description"},(0,i.createElement)(d.TextControl,{label:(0,u.__)("Describe in one sentence what you do.","godaddy-launch"),onChange:e=>h(e),value:r}))),(0,i.createElement)("div",{className:"publish-guide-site-info__section preview-section"},(0,i.createElement)("div",{className:"preview-info"},(0,i.createElement)("p",{className:"preview-info__title"},(0,i.createElement)("strong",null,(0,Lo.decodeEntities)(s))),(0,i.createElement)("p",{className:"preview-info__site-url"},f),(0,i.createElement)("p",null,r)),(0,i.createElement)("p",{className:"preview-subtext",dangerouslySetInnerHTML:{__html:(0,u.sprintf)(
// translators: %s: what-is-a-domain-name link.
// translators: %s: what-is-a-domain-name link.
(0,u.__)("Note you can change the %s in a different step","godaddy-launch"),`<a target="_blank" href="https://www.godaddy.com/resources/skills/what-is-a-domain-name">${(0,u.__)("domain name","godaddy-launch")}</a>`)}}))),(0,i.createElement)("div",{className:"publish-guide-site-info__action"},(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"close"},(0,i.createElement)(d.Button,{isSecondary:!0,onClick:e},(0,u.__)("Back","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"save"},(0,i.createElement)(d.Button,{className:ne()("publish-guide-popover__button",{"is-busy":p}),disabled:p,isPrimary:!0,onClick:()=>{m(!0),(0,c.dispatch)("core").saveEntityRecord("root","site",{description:r,title:s}).then((()=>{m(!1),t("true"),e()}))}},(0,u.__)("Done","godaddy-launch"))))))},Fo=(0,To.compose)([d.withNotices])((e=>{const{handleMilestoneStatusUpdate:t}=e,[n,o]=(0,i.useState)(!1),s=gdlPublishGuideItems.SiteInfo.milestoneName,r=gdlPublishGuideItems.SiteInfo.propName,[h=gdlPublishGuideItems.SiteInfo.default,p]=(0,l.useEntityProp)("root","site",r),{createErrorNotice:m}=(0,c.useDispatch)(a.store),f=new URLSearchParams(window.location.search).get("gdl_action");(0,i.useEffect)((()=>{"edit-site-title"===f&&o(!0)}),[f]);const g=async e=>{try{await p(e),await Q(r,e),await t(s,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving Site Info guide item","godaddy-launch");m(t,{type:"snackbar"})}};return(0,i.createElement)(re,Z({isCompleted:h,name:"site_info",skipAction:()=>g("skipped"),text:(0,u.__)("Customize your site title to help users identify your business.","godaddy-launch"),title:(0,u.__)("Add site details","godaddy-launch")},e),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link",isLink:!0,onClick:()=>o(!0)},(0,u.__)("Edit Site Title","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_info",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link is-skip",onClick:()=>g("skipped")},(0,u.__)("Skip","godaddy-launch"))),n&&(0,i.createElement)(Uo,Z({closeModal:()=>o(!1),setIsCompleted:g},e)))})),Bo=window.lodash,jo=window.wp.editor,Vo=window.wp.blockEditor,zo=["image"],$o=(0,To.compose)([d.withNotices])((e=>{const{handleMilestoneStatusUpdate:t}=e,{hasUploadPermissions:n,getSettings:o}=(0,c.useSelect)((e=>({getSettings:e("core/block-editor").getSettings,hasUploadPermissions:(0,Bo.defaultTo)(e("core").canUser("create","media"),!0)}))),{updateSettings:s}=(0,c.useDispatch)("core/block-editor");(0,i.useEffect)((()=>{const e=o();s({...e,hasUploadPermissions:n,mediaUpload:jo.mediaUpload})}),[]);const r=gdlPublishGuideItems.SiteMedia.milestoneName,h=gdlPublishGuideItems.SiteMedia.propName,[p=gdlPublishGuideItems.SiteMedia.default,m]=(0,l.useEntityProp)("root","site",h),{createErrorNotice:f}=(0,c.useDispatch)(a.store),g=async e=>{try{await m(e),await Q(h,e),await t(r,e)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,u.__)("An error occurred while saving Site Media guide item","godaddy-launch");f(t,{type:"snackbar"})}},[y,v]=(0,i.useState)(),{mediaItemData:b,sitelogo:_}=(0,c.useSelect)((e=>{const t=e("core").getEditedEntityRecord("root","site"),n=e("core").getEntityRecord("root","media",t.sitelogo);return{mediaItemData:n&&{alt:n.alt_text,url:n.source_url},sitelogo:t.sitelogo}}),[]),{editEntityRecord:w}=(0,c.useDispatch)("core");return b&&y!==b.url&&v(b.url),(0,i.createElement)(re,Z({isCompleted:p,name:"site_media",skipAction:()=>g("skipped"),text:(0,u.__)("Build greater brand awareness and trust with customers.","godaddy-launch"),title:(0,u.__)("Upload your logo","godaddy-launch")},e),(0,i.createElement)(Vo.MediaUploadCheck,null,(0,i.createElement)(Vo.MediaUpload,{allowedTypes:zo,onSelect:e=>{var t;e&&(!e.id&&e.url&&(w("root","site",void 0,{sitelogo:""}),v(e.url)),e.id&&((0,c.dispatch)("core").saveEntityRecord("root","site",{sitelogo:null!==(t=e.id.toString())&&void 0!==t?t:""}),g("true")))},render:({open:e})=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(ee,{action:"click",section:"guide/item/site_media",target:"edit"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link",id:"gdl-add-logo",isLink:!0,onClick:e},(0,u.__)("Add Logo","godaddy-launch"))),(0,i.createElement)(ee,{action:"click",section:"guide/item/site_media",target:"skip"},(0,i.createElement)(d.Button,{className:"publish-guide-popover__link components-button is-link is-skip",onClick:()=>g("skipped")},(0,u.__)("Skip","godaddy-launch")))),title:(0,u.__)("Upload site logo","godaddy-launch"),value:_})))})),qo=window.wp.hooks,Ho=window.wp.mediaUtils;var Zo;(0,qo.addFilter)("editor.MediaUpload","godaddy-launch/publish-guide/replace-media-upload",(()=>Ho.MediaUpload));const Wo=null!==(Zo="undefined"==typeof gdvPublishGuideDefaults)&&void 0!==Zo?Zo:JSON.parse(window.localStorage.getItem("WP_DATA_USER_"+gdvPublishGuideDefaults.userId));function Qo(){let e;const[t]=function(e){let t=h.useRef(V(e)),n=h.useRef(!1),i=T(),o=h.useMemo((()=>function(e,t){let n=V(e);return t&&t.forEach(((e,i)=>{n.has(i)||t.getAll(i).forEach((e=>{n.append(i,e)}))})),n}(i.search,n.current?null:t.current)),[i.search]),s=U(),a=h.useCallback(((e,t)=>{const i=V("function"==typeof e?e(o):e);n.current=!0,s("?"+i,t)}),[s,o]);return[o,a]}(),[n,o]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=()=>{const e=new URL(document.location).searchParams;o(e.get("isMwcDialogOpened"))};e();const t=setInterval(e,500);return()=>{clearInterval(t)}}),[t]);const s={publishGuideHere:{autoHide:1e4,collapseSidePanel:!1,description:(0,u.__)("Once you're done selecting your site style and colors, click here to continue publishing your site.","godaddy-launch"),refID:"gdl-publish-guide-trigger-button",title:(0,u.__)("Getting Started Guide","godaddy-launch")},siteContent:{autoHide:!1,collapseSidePanel:!0,description:(0,u.__)("This button will open up your page manager.","godaddy-launch"),refID:"coblocks-menu-icon-site-content",title:(0,u.__)("Open the site content tab","godaddy-launch")},siteDesign:{autoHide:!1,collapseSidePanel:!0,description:(0,u.__)("If you want to update the feel of a site and bring in your own brand, this is a good place to start.","godaddy-launch"),refID:"coblocks-menu-icon-site-design",title:(0,u.__)("Change any global styles here","godaddy-launch")}},{isCompleted:p,guideItems:m,isPublishGuideFabActive:f,isPublishGuideOpened:g,stepsCompleted:y}=(0,c.useSelect)((e=>({guideItems:e(ko).getGuideItems(),isCompleted:e(ko).getGuideItemsComplete(),isPublishGuideFabActive:e(ko).isPublishGuideFabActive(),isPublishGuideOpened:e(ko).isPublishGuideOpened(),stepsCompleted:e(ko).getGuideItems().filter((e=>e.props.hasCompleted)).length})),[]),{activatePublishGuideFab:v,closePublishGuide:b,setGuideItems:_,togglePublishGuide:w}=(0,c.useDispatch)(ko),{saveEditedEntityRecord:E}=(0,c.useDispatch)("core"),[C,S]=(0,i.useState)(null),[k,P]=(0,i.useState)(null),[I,M]=(0,i.useState)(!1);(0,i.useEffect)((()=>{!f&&oo()||setTimeout((()=>M(!0)),500)}),[f]),(0,i.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get("gdl_action");if(e&&(setTimeout((function(){w()}),600),setTimeout((function(){const t={"add-site-logo":"site_media","edit-site-title":"site_info"};e in t&&S(t[e])}),1200),"add-site-logo"===e)){const e=new MutationObserver((function(){!document.body.classList.contains("modal-open")&&document.contains(document.getElementById("gdl-add-logo"))&&(document.getElementById("gdl-add-logo").click(),e.disconnect())}));return e.observe(document,{attributes:!1,characterData:!1,childList:!0,subtree:!0}),()=>{e.disconnect()}}}),[]),(0,i.useEffect)((()=>{g&&M(!1)}),[g]);const x=(0,c.useDispatch)("core/edit-post"),{isWelcomeGuideActive:O}=(0,c.useSelect)((e=>({isWelcomeGuideActive:e("core/edit-post")?.isFeatureActive("welcomeGuide")})),[]),[N=gdlPublishGuideItems.AddDomain?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.AddDomain?.propName),[A=gdlPublishGuideItems.SiteContent?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.SiteContent?.propName),[R=gdlPublishGuideItems.SEO?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.SEO?.propName),[G=gdlPublishGuideItems.SiteDesign?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.SiteDesign?.propName),[D=gdlPublishGuideItems.SiteInfo?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.SiteInfo?.propName),[L=gdlPublishGuideItems.SiteMedia?.default]=(0,l.useEntityProp)("root","site",gdlPublishGuideItems.SiteMedia?.propName),[F=!1,B]=(0,l.useEntityProp)("root","site",gdvPublishGuideDefaults.optionInteracted),[j=!!gdvPublishGuideDefaults.isOptOut,z]=(0,l.useEntityProp)("root","site",gdvPublishGuideDefaults.optionOptOut),[$=!oo()]=(0,l.useEntityProp)("root","site",so("settings")?.publishState),[q,H]=(0,i.useState)(!1),{removeNotice:Z,createNotice:W}=(0,c.useDispatch)(a.store);(0,i.useEffect)((()=>{$||q||W("warning gdl-notice",(0,u.__)("Your site is not launched yet. Visitors will see a temporary Coming Soon page until you launch your site."),{actions:[{className:"is-link",label:(0,u.__)("Launch My Site"),onClick:()=>{Y({eid:`${K}.notice.launch`}),window.dispatchEvent(new Event(so("eventName")))}}],id:"gdl-launch-notice"}),$&&(Z("gdl-launch-notice"),H(!0))}),[$]),(0,i.useEffect)((()=>(!Wo&&O&&x?.toggleFeature&&x?.toggleFeature("welcomeGuide"),_([!!gdlPublishGuideItems.SiteInfo?.enabled&&(0,i.createElement)(Fo,{handleMilestoneStatusUpdate:J,hasCompleted:!!D,key:"SiteInfoGuide"}),!!gdlPublishGuideItems.SiteMedia?.enabled&&(0,i.createElement)($o,{handleMilestoneStatusUpdate:J,hasCompleted:!!L,key:"SiteMediaGuide"}),!!gdlPublishGuideItems.SiteContent?.enabled&&(0,i.createElement)(Go,{handleMilestoneStatusUpdate:J,hasCompleted:!!A,key:"SiteContentGuide",setTooltip:Q}),!!gdlPublishGuideItems.SiteDesign?.enabled&&(0,i.createElement)(Do,{handleMilestoneStatusUpdate:J,hasCompleted:!!G,key:"SiteDesignGuide",setTooltip:Q}),!!gdlPublishGuideItems.AddDomain?.enabled&&(0,i.createElement)(le,{handleMilestoneStatusUpdate:J,hasCompleted:!!N,key:"AddDomainGuide"}),!!gdlPublishGuideItems.SEO?.enabled&&(0,i.createElement)(Ro,{handleMilestoneStatusUpdate:J,hasCompleted:!!R,key:"SEOGuide",setTooltip:Q})].filter((e=>!1!==e))),()=>{if(!e)return null;ne()})),[N,A,R,G,D,L]),(0,i.useEffect)((()=>{k&&(e=document.getElementById(k.refID),e&&e.addEventListener("click",X))}),[k]),(0,i.useEffect)((()=>{const e={};window.location.search.substr(1).split("&").forEach((t=>{e[t.split("=")[0]]=t.split("=")[1]})),e.tooltip&&setTimeout((()=>Q(e.tooltip)),2e3)}),[]);const Q=t=>{const n=s[t];return n?(e&&te(),e=document.getElementById(n.refID),e?(n.collapseSidePanel&&x.closeGeneralSidebar(),n.autoHide&&(this.tooltipAutoHideTimeout=setTimeout(te,n.autoHide)),b(),void P({...n,anchorRect:e.getBoundingClientRect()})):null):null},J=async(e,t)=>{await(async(e,t={},n=3)=>{let i;for(let o=0;o<n;o++)try{return await to()(e,t)}catch(e){i=e}throw i})({data:{milestoneName:e,status:t},method:"POST",path:`gdl/v1/milestone/${e}`})},X=()=>{ne(),k&&k.nextTooltip?setTimeout((()=>Q(k.nextTooltip)),200):te()},te=()=>{if(clearTimeout(void 0),P(null),!e)return null;ne(),e=null},ne=()=>e.removeEventListener("click",X);(0,i.useEffect)((()=>{oo()||v()}),[]);const ie=((e,t=!1)=>{const n=(0,i.useRef)(null),o=(0,i.useCallback)((e=>{n.current=e}),[e]),s=(0,i.useCallback)(((e,t)=>{n.current&&n.current({...t,colors:["#09757a","#00a4a6","#1bdbdb"],gravity:.5,origin:{y:.55},particleCount:Math.floor(250*e)})}),[]);return(0,i.useEffect)((()=>{s(.25,{spread:26,startVelocity:t?155:15}),s(.2,{spread:60}),s(.35,{decay:.91,scalar:1.5,spread:100}),s(.1,{decay:.92,scalar:1.2,spread:120,startVelocity:t?25:10}),s(.1,{spread:200,startVelocity:t?45:10})}),[e]),(0,i.createElement)(Ki(),{disableForReducedMotion:!0,refConfetti:o,style:{bottom:0,height:"100%",left:0,pointerEvents:"none",position:"absolute",right:0,top:0,width:"100%",zIndex:1e6},useWorker:!0})})(p),oe=["publish-guide-popover",g?null:"publish-guide-popover__display-none"].join(" ").trim();return f&&!n&&(!p||!$&&!q)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"publish-guide-default publish-guide-trigger godaddy-styles"},!j&&(0,i.createElement)(Po,{isCompleted:p,placement:"bottom-start",publishGuideInteracted:F,setPublishGuideMenuOpened:()=>{B(!0),(0,c.dispatch)("core").saveEntityRecord("root","site",{[gdvPublishGuideDefaults.optionInteracted]:!0})}}),(0,i.createElement)(d.Popover.Slot,null),(0,i.createElement)(d.Popover,{className:oe,focusOnMount:"container",placement:"bottom-start"},(0,i.createElement)("div",{className:"publish-guide-popover__header godaddy-styles components-modal__header"},(0,i.createElement)("div",{className:"publish-guide-popover__header__content"},(0,i.createElement)("h1",{className:"publish-guide-popover__header__title components-modal__header-heading"},(0,u.__)("Quick Start Guide","godaddy-launch")),(0,i.createElement)("p",null,(0,u.sprintf)(/* translators: field type eg: checkbox */ /* translators: field type eg: checkbox */
(0,u.__)("Completed %1$d of %2$d","godaddy-launch"),y,m.length))),(0,i.createElement)("div",{className:"publish-guide-popover__header__progress"},(0,i.createElement)(Io,{stepsCompleted:y,stepsTotal:m.length}))),(0,i.createElement)(xo,{isCollapsed:p,selectedItem:C,setSelectedItem:e=>S(e)},m),(0,i.createElement)(Yi,{isCollapsed:!p},(0,i.createElement)("div",{className:"publish-guide-popover__success"},(0,i.createElement)("h3",null,(0,u.__)("All tasks complete!","godaddy-launch")),(0,i.createElement)("div",null,(0,u.__)("Ready to launch? You can always publish more updates any time.","godaddy-launch")))),(0,i.createElement)(Yi,null,(0,i.createElement)("div",{className:"publish-guide-popover__footer"})),(0,i.createElement)("div",{className:"publish-guide-popover__footer"}),(0,i.createElement)(ee,{action:"click",section:"panel",target:"opt_out"},(0,i.createElement)("button",{className:"publish-guide-popover__opt-out-link",onClick:()=>{const e=document.querySelector(".interface-more-menu-dropdown > button");e&&e.click(),b(),z(!0),E("root","site"),(0,r.registerPlugin)("gdl-publish-menu-item-tooltip",{icon:null,render:Ao})}},(0,u.__)("I'm not interested in a guide","godaddy-launch"))),p&&ie),I&&!p&&!g&&!j&&!F&&(0,i.createElement)(ee,{action:"click",section:"guide",target:"welcome"},(0,i.createElement)(d.Popover,{className:"publish-guide-tooltip godaddy-styles",noArrow:!1,onClick:w,placement:"bottom-end"},(0,i.createElement)("div",{className:"publish-guide-tooltip__description"},(0,u.__)("Welcome! We put together a small list of tasks to help you get started.","godaddy-launch"))))),k&&(0,i.createPortal)((0,i.createElement)(io,{closeCallback:te,tooltip:k}),document.body))}(0,r.registerPlugin)("gdl-publish-menu-item",{icon:null,render:()=>{const{saveEditedEntityRecord:e}=(0,c.useDispatch)("core"),[t,n]=(0,l.useEntityProp)("root","site",gdvPublishGuideDefaults.optionOptOut);return(0,i.createElement)(i.Fragment,null,t&&(0,i.createElement)(Oo.PluginMoreMenuItem,{icon:No,id:"publish-guide-more-menu-item",onClick:()=>{n(!1),e("root","site")}},(0,u.__)("Quick Start Guide","coblocks")))}}),s()((()=>{const e=document.getElementById(gdvPublishGuideDefaults.appContainerClass);if(!e)return;const t=(0,i.createElement)(d.SlotFillProvider,null,(0,i.createElement)($,null,so("isMigratedSite",!1)?(0,i.createElement)(Mo,null):(0,i.createElement)(Qo,null)));if("true"===gdvPublishGuideDefaults.shouldUseReact18Syntax){const{createRoot:i}=n(87);i(e).render(t)}else{const{render:i}=n(87);i(t,e)}}))})()})();