/home/smartbloks/.trash/extendify/public/build/extendify-assist.js
!function(){var e,t,n={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(960),a=n(790);o(n(790),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=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])},r(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}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(960),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?C(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?C(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?C(e.children):[];var s=new m(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},885:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},276:function(e){var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var f,p="object"==typeof document?document.createElement("template"):{};p.content&&(f=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var c,u,d,p,m=e.match(o);switch(m&&m[1]&&(c=m[1].toLowerCase()),c){case t:return u=l(e),i.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return p=(u=s(e)).querySelectorAll(c),a.test(e)&&i.test(e)?p[0].parentNode.childNodes:p;default:return f?f(e):(d=s(e,r).querySelector(r)).childNodes}}},152:function(e,t,n){var r=n(276),o=n(507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},507:function(e,t,n){for(var r,o=n(915),i=n(885).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,s=o.Element,l=o.ProcessingInstruction,c=o.Text,u={},d=0,f=i.length;d<f;d++)r=i[d],u[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function m(e){return function(e){return u[e]}(e=e.toLowerCase())||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var o=[],i=0,u=t.length;i<u;i++){var d,f=t[i];switch(f.nodeType){case 1:(d=new s(m(f.nodeName),p(f.attributes))).children=e(f.childNodes,d);break;case 3:d=new c(f.nodeValue);break;case 8:d=new a(f.nodeValue);break;default:continue}var h=o[i-1]||null;h&&(h.next=d),d.parent=n,d.prev=h,d.next=null,o.push(d)}return r&&((d=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=o[0]||null,d.parent=n,o.unshift(d),o[1]&&(o[1].prev=o[0])),o}},488:function(e,t,n){var r=n(915),o=n(152),i=n(484),a=n(670);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=o,l.attributesToProps=i,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,e.exports.default=l},484:function(e,t,n){var r=n(726),o=n(606);function i(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,a,s,l,c,u={},d=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(n in e)if(s=e[n],r.isCustomAttribute(n))u[n]=s;else if(l=i(a=n.toLowerCase()))switch(c=r.getPropertyInfo(l),"checked"!==l&&"value"!==l||"option"===t||d||(l=i("default"+a)),u[l]=s,c&&c.type){case r.BOOLEAN:u[l]=!0;break;case r.OVERLOADED_BOOLEAN:""===s&&(u[l]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(u[n]=s);return o.setStyleProp(e.style,u),u}},670:function(e,t,n){var r=n(196),o=n(484),i=n(606),a=i.setStyleProp,s=i.canTextBeChildOfNode;function l(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,c,u,d,f,p=(n=n||{}).library||r,m=p.cloneElement,h=p.createElement,g=p.isValidElement,v=[],y="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w<x;w++)if(i=t[w],y&&g(u=n.replace(i)))x>1&&(u=m(u,{key:u.key||w})),v.push(u);else if("text"!==i.type){switch(d=i.attribs,l(i)?a(d.style,d):d&&(d=o(d,i.name)),f=null,i.type){case"script":case"style":i.children[0]&&(d.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?d.defaultValue=i.children[0].data:i.children&&i.children.length&&(f=e(i.children,n));break;default:continue}x>1&&(d.key=w),v.push(h(i.name,d,f))}else{if((c=!i.data.trim().length)&&i.parent&&!s(i.parent))continue;if(b&&c)continue;v.push(i.data)}return 1===v.length?v[0]:v}},606:function(e,t,n){var r=n(196),o=n(476).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},370:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="\n",u="/",d="*",f="",p="comment",m="declaration";function h(e){return e?e.replace(l,f):f}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var g=1,v=1;function y(e){var t=e.match(n);t&&(g+=t.length);var r=e.lastIndexOf(c);v=~r?e.length-r:v+e.length}function b(){var e={line:g,column:v};return function(t){return t.position=new w(e),S(),t}}function w(e){this.start=e,this.end={line:g,column:v},this.source=l.source}w.prototype.content=e;var x=[];function E(t){var n=new Error(l.source+":"+g+":"+v+": "+t);if(n.reason=t,n.filename=l.source,n.line=g,n.column=v,n.source=e,!l.silent)throw n;x.push(n)}function C(t){var n=t.exec(e);if(n){var r=n[0];return y(r),e=e.slice(r.length),n}}function S(){C(r)}function k(e){var t;for(e=e||[];t=T();)!1!==t&&e.push(t);return e}function T(){var t=b();if(u==e.charAt(0)&&d==e.charAt(1)){for(var n=2;f!=e.charAt(n)&&(d!=e.charAt(n)||u!=e.charAt(n+1));)++n;if(n+=2,f===e.charAt(n-1))return E("End of comment missing");var r=e.slice(2,n-2);return v+=2,y(r),e=e.slice(n),v+=2,t({type:p,comment:r})}}function L(){var e=b(),n=C(o);if(n){if(T(),!C(i))return E("property missing ':'");var r=C(a),l=e({type:m,property:h(n[0].replace(t,f)),value:r?h(r[0].replace(t,f)):f});return C(s),l}}return S(),function(){var e,t=[];for(k(t);e=L();)!1!==e&&(t.push(e),k(t));return t}()}},726:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});var o=2,i=3,a=4;function s(e,t,n,r,s,l,c){this.acceptsBooleans=t===o||t===i||t===a,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=c}var l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){l[e]=new s(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,a=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];l[i]=new s(i,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){l[e]=new s(e,o,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){l[e]=new s(e,o,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){l[e]=new s(e,i,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){l[e]=new s(e,i,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){l[e]=new s(e,a,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){l[e]=new s(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){l[e]=new s(e,5,!1,e.toLowerCase(),null,!1,!1)}));var c=/[\-\:]([a-z])/g,u=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(c,u);l[t]=new s(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(c,u);l[t]=new s(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(c,u);l[t]=new s(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){l[e]=new s(e,1,!1,e.toLowerCase(),null,!1,!1)})),l.xlinkHref=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){l[e]=new s(e,1,!1,e.toLowerCase(),null,!0,!0)}));var d=n(229),f=d.CAMELCASE,p=d.SAME,m=d.possibleStandardNames,h=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),g=Object.keys(m).reduce((function(e,t){var n=m[t];return n===p?e[t]=t:n===f?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=i,t.BOOLEANISH_STRING=o,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=a,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return l.hasOwnProperty(e)?l[e]:null},t.isCustomAttribute=h,t.possibleStandardNames=g},229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(848)),i=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},678:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},848:function(e,t,n){var r=n(370);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,s=r(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)i=(n=s[c]).property,a=n.value,l?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},250:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(e,t,n){"use strict";var r=n(196),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.wp.element,t=window.wp.i18n,n=window.wp.components,r=function(t){let{icon:n,size:r=24,...o}=t;return(0,e.cloneElement)(n,{width:r,height:r,...o})},i=window.wp.primitives,a=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.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"})),s=o(196),l=o.t(s,2);function c(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,c),r}var u,d=((u=d||{})[u.None=0]="None",u[u.RenderStrategy=1]="RenderStrategy",u[u.Static=2]="Static",u),f=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(f||{});function p({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=h(t,e);if(i)return m(s,n,r,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return m(t,n,r,a)}if(1&l){let{unmount:e=!0,...t}=s;return c(e?0:1,{0(){return null},1(){return m({...t,hidden:!0,style:{display:"none"}},n,r,a)}})}return m(s,n,r,a)}function m(e,t={},n,r){var o;let{as:i=n,children:a,refName:l="ref",...c}=y(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},d="function"==typeof a?a(t):a;c.className&&"function"==typeof c.className&&(c.className=c.className(t));let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(f["data-headlessui-state"]=n.join(" "))}if(i===s.Fragment&&Object.keys(v(c)).length>0){if(!(0,s.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=function(...e){return e.filter(Boolean).join(" ")}(null==(o=d.props)?void 0:o.className,c.className),t=e?{className:e}:{};return(0,s.cloneElement)(d,Object.assign({},h(d.props,v(y(c,["ref"]))),f,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(d.ref,u.ref),t))}return(0,s.createElement)(i,Object.assign({},y(c,["ref"]),i!==s.Fragment&&u,i!==s.Fragment&&f),d)}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function g(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var b=Object.defineProperty,w=(e,t,n)=>(((e,t,n)=>{t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let x=new class{constructor(){w(this,"current",this.detect()),w(this,"handoffState","pending"),w(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},E=(e,t)=>{x.isServer?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)};function C(e){let t=(0,s.useRef)(e);return E((()=>{t.current=e}),[e]),t}let S=function(e){let t=C(e);return s.useCallback(((...e)=>t.current(...e)),[t])},k=Symbol();function T(e,t=!0){return Object.assign(e,{[k]:t})}function L(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=S((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[k])))?void 0:n}var _,A,N=((A=N||{}).Space=" ",A.Enter="Enter",A.Escape="Escape",A.Backspace="Backspace",A.Delete="Delete",A.ArrowLeft="ArrowLeft",A.ArrowUp="ArrowUp",A.ArrowRight="ArrowRight",A.ArrowDown="ArrowDown",A.Home="Home",A.End="End",A.PageUp="PageUp",A.PageDown="PageDown",A.Tab="Tab",A);function P(){let[e,t]=(0,s.useState)(x.isHandoffComplete);return e&&!1===x.isHandoffComplete&&t(!1),(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>x.handoff()),[]),e}let O=null!=(_=s.useId)?_:function(){let e=P(),[t,n]=s.useState(e?()=>x.nextId():null);return E((()=>{null===t&&n(x.nextId())}),[t]),null!=t?""+t:void 0};var M=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(M||{});let R=g((function(e,t){let{features:n=1,...r}=e;return p({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function D(e){return x.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let V=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var j,I=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(I||{}),F=((j=F||{})[j.Error=0]="Error",j[j.Overflow=1]="Overflow",j[j.Success=2]="Success",j[j.Underflow=3]="Underflow",j),B=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(B||{});var H=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(H||{});function U(e,t=0){var n;return e!==(null==(n=D(e))?void 0:n.body)&&c(t,{0(){return e.matches(V)},1(){let t=e;for(;null!==t;){if(t.matches(V))return!0;t=t.parentElement}return!1}})}function z(e){null==e||e.focus({preventScroll:!0})}let q=["textarea","input"].join(",");function Z(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(V)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,q))&&n}(s)&&s.select(),s.hasAttribute("tabindex")||s.setAttribute("tabindex","0"),2}var W=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(W||{});function $(){let e=(0,s.useRef)(!1);return E((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function G(...e){return(0,s.useMemo)((()=>D(...e)),[...e])}function Y(e,t,n,r){let o=C(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function X(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function J(e,t){let n=(0,s.useRef)([]),r=S(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}function K(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,o){return e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return X((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))}};return n}var Q,ee=((Q=ee||{})[Q.None=1]="None",Q[Q.InitialFocus=2]="InitialFocus",Q[Q.TabLock=4]="TabLock",Q[Q.FocusLock=8]="FocusLock",Q[Q.RestoreFocus=16]="RestoreFocus",Q[Q.All=30]="All",Q);let te=Object.assign(g((function(e,t){let n=(0,s.useRef)(null),r=L(n,t),{initialFocus:o,containers:i,features:a=30,...l}=e;P()||(a=1);let u=G(n);!function({ownerDocument:e},t){let n=(0,s.useRef)(null);Y(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),J((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&z(n.current),n.current=null)}),[t]);let r=(0,s.useRef)(!1);(0,s.useEffect)((()=>(r.current=!1,()=>{r.current=!0,X((()=>{!r.current||(z(n.current),n.current=null)}))})),[])}({ownerDocument:u},Boolean(16&a));let d=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,s.useRef)(null),i=$();return J((()=>{if(!r)return;let a=t.current;!a||X((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(a.contains(t))return void(o.current=t);null!=n&&n.current?z(n.current):Z(a,I.First)===F.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:u,container:n,initialFocus:o},Boolean(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=$();Y(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let a=new Set(null==n?void 0:n.current);a.add(t);let s=r.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?ne(a,l)?(r.current=l,z(l)):(e.preventDefault(),e.stopPropagation(),z(s)):z(r.current)}),!0)}({ownerDocument:u,container:n,containers:i,previousActiveElement:d},Boolean(8&a));let f=function(){let e=(0,s.useRef)(0);return function(e,t,n){let r=C(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=S((e=>{let t=n.current;t&&c(f.current,{[W.Forwards]:()=>{Z(t,I.First,{skipElements:[e.relatedTarget]})},[W.Backwards]:()=>{Z(t,I.Last,{skipElements:[e.relatedTarget]})}})})),h=function(){let[e]=(0,s.useState)(K);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}(),g=(0,s.useRef)(!1),v={ref:r,onKeyDown(e){"Tab"==e.key&&(g.current=!0,h.requestAnimationFrame((()=>{g.current=!1})))},onBlur(e){let t=new Set(null==i?void 0:i.current);t.add(n);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(ne(t,r)||(g.current?Z(n.current,c(f.current,{[W.Forwards]:()=>I.Next,[W.Backwards]:()=>I.Previous})|I.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&z(e.target)))}};return s.createElement(s.Fragment,null,Boolean(4&a)&&s.createElement(R,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:M.Focusable}),p({ourProps:v,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(R,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:M.Focusable}))})),{features:ee});function ne(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}let re=new Set,oe=new Map;function ie(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ae(e){let t=oe.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function se(e,t=!0){E((()=>{if(!t||!e.current)return;let n=e.current,r=D(n);if(r){re.add(n);for(let e of oe.keys())e.contains(n)&&(ae(e),oe.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of re)if(e.contains(t))return;1===re.size&&(oe.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ie(e))}})),()=>{if(re.delete(n),re.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!oe.has(e)){for(let t of re)if(e.contains(t))return;oe.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),ie(e)}}));else for(let e of oe.keys())ae(e),oe.delete(e)}}}),[t])}var le=window.ReactDOM;let ce=(0,s.createContext)(!1);function ue(){return(0,s.useContext)(ce)}function de(e){return s.createElement(ce.Provider,{value:e.force},e.children)}let fe=s.Fragment,pe=g((function(e,t){let n=e,r=(0,s.useRef)(null),o=L(T((e=>{r.current=e})),t),i=G(r),a=function(e){let t=ue(),n=(0,s.useContext)(he),r=G(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||x.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return x.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=P(),u=(0,s.useRef)(!1);return E((()=>{if(u.current=!1,a&&l)return a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l)),()=>{u.current=!0,X((()=>{var e;!u.current||!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}))}}),[a,l]),c&&a&&l?(0,le.createPortal)(p({ourProps:{ref:o},theirProps:n,defaultTag:fe,name:"Portal"}),l):null})),me=s.Fragment,he=(0,s.createContext)(null),ge=g((function(e,t){let{target:n,...r}=e,o={ref:L(t)};return s.createElement(he.Provider,{value:n},p({ourProps:o,theirProps:r,defaultTag:me,name:"Popover.Group"}))})),ve=Object.assign(pe,{Group:ge}),ye=(0,s.createContext)(null);function be(){let e=(0,s.useContext)(ye);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,be),e}return e}let we=g((function(e,t){let n=O(),{id:r=`headlessui-description-${n}`,...o}=e,i=be(),a=L(t);return E((()=>i.register(r)),[r,i.register]),p({ourProps:{ref:a,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),xe=(0,s.createContext)(null);xe.displayName="OpenClosedContext";var Ee=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ee||{});let Ce=(0,s.createContext)((()=>{}));Ce.displayName="StackContext";var Se=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Se||{});function ke({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,s.useContext)(Ce),a=S(((...e)=>{null==t||t(...e),i(...e)}));return E((()=>{let e=void 0===o||!0===o;return e&&a(0,n,r),()=>{e&&a(1,n,r)}}),[a,n,r,o]),s.createElement(Ce.Provider,{value:a},e)}function Te(e,t,n){let r=C(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Le(e,t,n=!0){let r=(0,s.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.getRootNode().contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||n.composed&&n.composedPath().includes(t))return}return!U(a,H.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,s.useRef)(null);Te("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Te("click",(e=>{!i.current||(o(e,(()=>i.current)),i.current=null)}),!0),Te("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}const _e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:Ae,useEffect:Ne,useLayoutEffect:Pe,useDebugValue:Oe}=l;function Me(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!_e(n,e)}catch{return!0}}const Re="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(e,t,n){const r=t(),[{inst:o},i]=Ae({inst:{value:r,getSnapshot:t}});return Pe((()=>{o.value=r,o.getSnapshot=t,Me(o)&&i({inst:o})}),[e,r,t]),Ne((()=>(Me(o)&&i({inst:o}),e((()=>{Me(o)&&i({inst:o})})))),[e]),Oe(r),r},De="useSyncExternalStore"in l?(e=>e.useSyncExternalStore)(l):Re;function Ve(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function je(){if(!(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0))return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!o(a)&&(i=a)}catch{}}),!0),n.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!o(e.target)&&e.preventDefault()}),{passive:!1}),n.add((()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}}}function Ie(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Fe=function(e,t){let n=new Map,r=new Set;return{getSnapshot(){return n},subscribe(e){return r.add(e),()=>r.delete(e)},dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:K(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Ie(n)},o=[je(),Ve(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Fe.subscribe((()=>{let e=Fe.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Fe.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Fe.dispatch("TEARDOWN",n)}}));var Be=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Be||{}),He=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(He||{});let Ue={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ze=(0,s.createContext)(null);function qe(e){let t=(0,s.useContext)(ze);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qe),t}return t}function Ze(e,t){return c(t.type,Ue,e,t)}ze.displayName="DialogContext";let We=d.RenderStrategy|d.Static,$e=g((function(e,t){let n=O(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,__demoMode:l=!1,...u}=e,[d,f]=(0,s.useState)(0),m=(0,s.useContext)(xe);void 0===o&&null!==m&&(o=c(m,{[Ee.Open]:!0,[Ee.Closed]:!1}));let h=(0,s.useRef)(new Set),g=(0,s.useRef)(null),v=L(g,t),y=(0,s.useRef)(null),b=G(g),w=e.hasOwnProperty("open")||null!==m,x=e.hasOwnProperty("onClose");if(!w&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if("function"!=typeof i)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let C=o?0:1,[k,T]=(0,s.useReducer)(Ze,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),_=S((()=>i(!1))),A=S((e=>T({type:0,id:e}))),D=!!P()&&!l&&0===C,V=d>1,j=null!==(0,s.useContext)(ze),I=V?"parent":"leaf";se(g,!!V&&D);let F=S((()=>{var e,t;return[...Array.from(null!=(e=null==b?void 0:b.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(y.current)||k.panelRef.current&&e.contains(k.panelRef.current)))),null!=(t=k.panelRef.current)?t:g.current]}));Le((()=>F()),_,D&&!V),Y(null==b?void 0:b.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===N.Escape&&0===C&&(V||(e.preventDefault(),e.stopPropagation(),_()))})),function(e,t,n=(()=>[document.body])){!function(e,t,n){let r=function(e){return De(e.subscribe,e.getSnapshot,e.getSnapshot)}(Fe),o=e?r.get(e):void 0,i=!!o&&o.count>0;E((()=>{if(e&&t)return Fe.dispatch("PUSH",e,n),()=>Fe.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(b,0===C&&!j,F),(0,s.useEffect)((()=>{if(0!==C||!g.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&_()}));return e.observe(g.current),()=>e.disconnect()}),[C,g,_]);let[B,H]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=S((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(ye.Provider,{value:r},e.children)}),[t])]}(),U=(0,s.useMemo)((()=>[{dialogState:C,close:_,setTitleId:A},k]),[C,k,_,A]),z=(0,s.useMemo)((()=>({open:0===C})),[C]),q={ref:v,id:r,role:"dialog","aria-modal":0===C||void 0,"aria-labelledby":k.titleId,"aria-describedby":B};return s.createElement(ke,{type:"Dialog",enabled:0===C,element:g,onUpdate:S(((e,t,n)=>{"Dialog"===t&&c(e,{[Se.Add](){h.current.add(n),f((e=>e+1))},[Se.Remove](){h.current.add(n),f((e=>e-1))}})}))},s.createElement(de,{force:!0},s.createElement(ve,null,s.createElement(ze.Provider,{value:U},s.createElement(ve.Group,{target:g},s.createElement(de,{force:!1},s.createElement(H,{slot:z,name:"Dialog.Description"},s.createElement(te,{initialFocus:a,containers:h,features:D?c(I,{parent:te.features.RestoreFocus,leaf:te.features.All&~te.features.FocusLock}):te.features.None},p({ourProps:q,theirProps:u,slot:z,defaultTag:"div",features:We,visible:0===C,name:"Dialog"})))))))),s.createElement(R,{features:M.Hidden,ref:y}))})),Ge=g((function(e,t){let n=O(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:a}]=qe("Dialog.Overlay"),l=L(t),c=S((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}));return p({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:c},theirProps:o,slot:(0,s.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Ye=g((function(e,t){let n=O(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},a]=qe("Dialog.Backdrop"),l=L(t);(0,s.useEffect)((()=>{if(null===a.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[a.panelRef]);let c=(0,s.useMemo)((()=>({open:0===i})),[i]);return s.createElement(de,{force:!0},s.createElement(ve,null,p({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Xe=g((function(e,t){let n=O(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},a]=qe("Dialog.Panel"),l=L(t,a.panelRef),c=(0,s.useMemo)((()=>({open:0===i})),[i]),u=S((e=>{e.stopPropagation()}));return p({ourProps:{ref:l,id:r,onClick:u},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),Je=g((function(e,t){let n=O(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=qe("Dialog.Title"),l=L(t);(0,s.useEffect)((()=>(a(r),()=>a(null))),[r,a]);let c=(0,s.useMemo)((()=>({open:0===i})),[i]);return p({ourProps:{ref:l,id:r},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),Ke=Object.assign($e,{Backdrop:Ye,Panel:Xe,Overlay:Ge,Title:Je,Description:we});var Qe=function(e,t){return Qe=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])},Qe(e,t)};function et(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}Qe(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tt.apply(this,arguments)};function nt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function rt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ot(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var it=("undefined"==typeof process||process.env,"production");const at=1/60*1e3,st="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),lt="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(st())),at);let ct=!0,ut=!1,dt=!1;const ft={delta:0,timestamp:0},pt=["read","update","preRender","render","postRender"],mt=pt.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>ut=!0)),e)),{}),ht=pt.reduce(((e,t)=>{const n=mt[t];return e[t]=(e,t=!1,r=!1)=>(ut||wt(),n.schedule(e,t,r)),e}),{}),gt=pt.reduce(((e,t)=>(e[t]=mt[t].cancel,e)),{}),vt=pt.reduce(((e,t)=>(e[t]=()=>mt[t].process(ft),e)),{}),yt=e=>mt[e].process(ft),bt=e=>{ut=!1,ft.delta=ct?at:Math.max(Math.min(e-ft.timestamp,40),1),ft.timestamp=e,dt=!0,pt.forEach(yt),dt=!1,ut&&(ct=!1,lt(bt))},wt=()=>{ut=!0,ct=!0,dt||lt(bt)},xt=()=>ft;var Et=ht,Ct="undefined"!=typeof document,St=Ct?s.useLayoutEffect:s.useEffect;function kt(){var e=(0,s.useRef)(!1);return St((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var Tt=(0,s.createContext)(null);function Lt(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var _t=0,At=function(){return _t++},Nt=function(){return Lt(At)},Pt=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,l=Lt(Ot),c=Nt(),u=(0,s.useMemo)((function(){return{id:c,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),a?void 0:[r]);return(0,s.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),s.useEffect((function(){!r&&!l.size&&(null==o||o())}),[r]),s.createElement(Tt.Provider,{value:u},t)};function Ot(){return new Map}var Mt=(0,s.createContext)({});function Rt(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}var Dt=function(e){return e.key||""},Vt=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,l=e.presenceAffectsLayout,c=void 0===l||l,u=rt(function(){var e=kt(),t=rt((0,s.useState)(0),2),n=t[0],r=t[1],o=(0,s.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,s.useCallback)((function(){return Et.postRender(o)}),[o]),n]}(),1),d=u[0],f=(0,s.useContext)(Mt).forceRender;f&&(d=f);var p=kt(),m=function(e){var t=[];return s.Children.forEach(e,(function(e){(0,s.isValidElement)(e)&&t.push(e)})),t}(t),h=m,g=new Set,v=(0,s.useRef)(h),y=(0,s.useRef)(new Map).current,b=(0,s.useRef)(!0);if(St((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=Dt(e);t.set(n,e)}))}(m,y),v.current=h})),Rt((function(){b.current=!0,y.clear(),g.clear()})),b.current)return s.createElement(s.Fragment,null,h.map((function(e){return s.createElement(Pt,{key:Dt(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},e)})));h=ot([],rt(h),!1);for(var w=v.current.map(Dt),x=m.map(Dt),E=w.length,C=0;C<E;C++){var S=w[C];-1===x.indexOf(S)&&g.add(S)}return a&&g.size&&(h=[]),g.forEach((function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,s.createElement(Pt,{key:Dt(t),isPresent:!1,onExitComplete:function(){y.delete(e),g.delete(e);var t=v.current.findIndex((function(t){return t.key===e}));if(v.current.splice(t,1),!g.size){if(v.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:c},t))}}})),h=h.map((function(e){var t=e.key;return g.has(t)?e:s.createElement(Pt,{key:Dt(e),isPresent:!0,presenceAffectsLayout:c},e)})),"production"!==it&&a&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),s.createElement(s.Fragment,null,g.size?h:h.map((function(e){return(0,s.cloneElement)(e)})))},jt=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},It={measureLayout:jt(["layout","layoutId","drag"]),animation:jt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:jt(["exit"]),drag:jt(["drag","dragControls"]),focus:jt(["whileFocus"]),hover:jt(["whileHover","onHoverStart","onHoverEnd"]),tap:jt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:jt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:jt(["whileInView","onViewportEnter","onViewportLeave"])},Ft=function(){},Bt=function(){},Ht=(0,s.createContext)({strict:!1}),Ut=Object.keys(It),zt=Ut.length,qt=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Zt=(0,s.createContext)({}),Wt={current:null},$t=!1;function Gt(e,t,n,r){var o,i,a=(0,s.useContext)(Ht),l=(0,s.useContext)(Zt).visualElement,c=(0,s.useContext)(Tt),u=(!$t&&function(){if($t=!0,Ct)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Wt.current=e.matches};e.addListener(t),t()}else Wt.current=!1}(),o=rt((0,s.useState)(Wt.current),1)[0],"never"!==(i=(0,s.useContext)(qt).reducedMotion)&&("always"===i||o)),d=(0,s.useRef)(void 0);r||(r=a.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:u}));var f=d.current;return St((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),St((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Yt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xt(e){return Array.isArray(e)}function Jt(e){return"string"==typeof e||Xt(e)}function Kt(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Qt(e,t,n){var r=e.getProps();return Kt(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function en(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Jt(e.initial)||Jt(e.animate)||Jt(e.whileHover)||Jt(e.whileDrag)||Jt(e.whileTap)||Jt(e.whileFocus)||Jt(e.exit)}function tn(e){return Boolean(en(e)||e.variants)}function nn(e){return Array.isArray(e)?e.join(" "):e}var rn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},on=1,an=(0,s.createContext)({}),sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(s.Component);function ln(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?It.projectionNodeConstructor=e[t]:It[t].Component=e[t])}(t),(0,s.forwardRef)((function(e,l){var c=function(e){var t,n=e.layoutId,r=null===(t=(0,s.useContext)(Mt))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=tt(tt({},e),{layoutId:c});var u=(0,s.useContext)(qt),d=null,f=function(e){var t=function(e,t){if(en(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Jt(n)?n:void 0,animate:Jt(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(Zt)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[nn(n),nn(r)])}(e),p=u.isStatic?void 0:Lt((function(){if(rn.hasEverUpdated)return on++})),m=i(e,u.isStatic);return!u.isStatic&&Ct&&(f.visualElement=Gt(a,m,tt(tt({},u),e),n),function(e,t,n,r){var o,i=t.layoutId,a=t.layout,l=t.drag,c=t.dragConstraints,u=t.layoutScroll,d=(0,s.useContext)(an);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(l)||c&&Yt(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:u}))}(p,e,f.visualElement,r||It.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,s.useContext)(Ht);if(!t)return null;"production"!==it&&n&&o.strict&&Bt(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var i=0;i<zt;i++){var a=Ut[i],l=It[a],c=l.isEnabled,u=l.Component;c(e)&&u&&r.push(s.createElement(u,tt({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(sn,{visualElement:f.visualElement,props:tt(tt({},u),e)},d,s.createElement(Zt.Provider,{value:f},o(a,e,p,function(e,t,n){return(0,s.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Yt(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,u.isStatic,f.visualElement)))}))}function cn(e){function t(t,n){return void 0===n&&(n={}),ln(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var un=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function dn(e){return"string"==typeof e&&!e.includes("-")&&!!(un.indexOf(e)>-1||/[A-Z]/.test(e))}var fn={},pn=["","X","Y","Z"],mn=["transformPerspective","x","y","z"];function hn(e,t){return mn.indexOf(e)-mn.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return pn.forEach((function(t){return mn.push(e+t)}))}));var gn=new Set(mn);function vn(e){return gn.has(e)}var yn=new Set(["originX","originY","originZ"]);function bn(e){return yn.has(e)}function wn(e,t){var n=t.layout,r=t.layoutId;return vn(e)||bn(e)||(n||void 0!==r)&&(!!fn[e]||"opacity"===e)}var xn=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},En={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Cn(e){return e.startsWith("--")}var Sn=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const kn=(e,t)=>n=>Math.max(Math.min(n,t),e),Tn=e=>e%1?Number(e.toFixed(5)):e,Ln=/(-)?([\d]*\.?[\d])+/g,An=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Nn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pn(e){return"string"==typeof e}const On=e=>({test:t=>Pn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Mn=On("deg"),Rn=On("%"),Dn=On("px"),Vn=On("vh"),jn=On("vw"),In=Object.assign(Object.assign({},Rn),{parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(100*e)}),Fn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Bn=Object.assign(Object.assign({},Fn),{transform:kn(0,1)}),Hn=Object.assign(Object.assign({},Fn),{default:1});var Un=tt(tt({},Fn),{transform:Math.round}),zn={borderWidth:Dn,borderTopWidth:Dn,borderRightWidth:Dn,borderBottomWidth:Dn,borderLeftWidth:Dn,borderRadius:Dn,radius:Dn,borderTopLeftRadius:Dn,borderTopRightRadius:Dn,borderBottomRightRadius:Dn,borderBottomLeftRadius:Dn,width:Dn,maxWidth:Dn,height:Dn,maxHeight:Dn,size:Dn,top:Dn,right:Dn,bottom:Dn,left:Dn,padding:Dn,paddingTop:Dn,paddingRight:Dn,paddingBottom:Dn,paddingLeft:Dn,margin:Dn,marginTop:Dn,marginRight:Dn,marginBottom:Dn,marginLeft:Dn,rotate:Mn,rotateX:Mn,rotateY:Mn,rotateZ:Mn,scale:Hn,scaleX:Hn,scaleY:Hn,scaleZ:Hn,skew:Mn,skewX:Mn,skewY:Mn,distance:Dn,translateX:Dn,translateY:Dn,translateZ:Dn,x:Dn,y:Dn,z:Dn,perspective:Dn,transformPerspective:Dn,opacity:Bn,originX:In,originY:In,originZ:Dn,zIndex:Un,fillOpacity:Bn,strokeOpacity:Bn,numOctaves:Un};function qn(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(Cn(p))a[p]=m;else{var h=zn[p],g=Sn(m,h);if(vn(p)){if(u=!0,s[p]=g,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else bn(p)?(c[p]=g,d=!0):i[p]=g}}u?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,c=void 0===l||l,u="";i.sort(hn);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];u+="".concat(En[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?u+="translateZ(0)":u=u.trim(),r?u=r(o,n?"":u):c&&n&&(u="none"),u}(e,n,f,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(c))}var Zn=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Wn(e,t,n){for(var r in t)xn(t[r])||wn(r,n)||(e[r]=t[r])}function $n(e,t,n){var r={},o=function(e,t,n){var r={};return Wn(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,s.useMemo)((function(){var e=Zn();qn(e,t,{enableHardwareAcceleration:!n},r);var o=e.vars,i=e.style;return tt(tt({},o),i)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var Gn=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Yn(e){return Gn.has(e)}var Xn,Jn=function(e){return!Yn(e)};try{(Xn=require("@emotion/is-prop-valid").default)&&(Jn=function(e){return e.startsWith("on")?!Yn(e):Xn(e)})}catch(e){}function Kn(e,t,n){return"string"==typeof e?e:Dn.transform(t+n*e)}var Qn={offset:"stroke-dashoffset",array:"stroke-dasharray"},er={offset:"strokeDashoffset",array:"strokeDasharray"};function tr(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,c=t.pathSpacing,u=void 0===c?1:c,d=t.pathOffset,f=void 0===d?0:d;qn(e,nt(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,h=e.dimensions;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==a||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Kn(t,e.x,e.width),o=Kn(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?Qn:er;e[i.offset]=Dn.transform(-r);var a=Dn.transform(t),s=Dn.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,u,f,!1)}var nr=function(){return tt(tt({},Zn()),{attrs:{}})};function rr(e,t){var n=(0,s.useMemo)((function(){var n=nr();return tr(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),tt(tt({},n.attrs),{style:tt({},n.style)})}),[t]);if(e.style){var r={};Wn(r,e.style,e),n.style=tt(tt({},r),n.style)}return n}function or(e){return void 0===e&&(e=!1),function(t,n,r,o,i,a){var l=i.latestValues,c=(dn(t)?rr:$n)(n,l,a),u=function(e,t,n){var r={};for(var o in e)(Jn(o)||!0===n&&Yn(o)||!t&&!Yn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=tt(tt(tt({},u),c),{ref:o});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var ir=/([a-z])([A-Z])/g,ar=function(e){return e.replace(ir,"$1-$2").toLowerCase()};function sr(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var lr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function cr(e,t,n,r){for(var o in sr(e,t,void 0,r),t.attrs)e.setAttribute(lr.has(o)?o:ar(o),t.attrs[o])}function ur(e){var t=e.style,n={};for(var r in t)(xn(t[r])||wn(r,e))&&(n[r]=t[r]);return n}function dr(e){var t=ur(e);for(var n in e)xn(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function fr(e){return"object"==typeof e&&"function"==typeof e.start}var pr=function(e){return Array.isArray(e)},mr=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},hr=function(e){return pr(e)?e[e.length-1]||0:e};function gr(e){var t=xn(e)?e.get():e;return mr(t)?t.toValue():t}function vr(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:br(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var yr=function(e){return function(t,n){var r=(0,s.useContext)(Zt),o=(0,s.useContext)(Tt);return n?vr(e,t,r,o):Lt((function(){return vr(e,t,r,o)}))}};function br(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=gr(a[s]);var l=e.initial,c=e.animate,u=en(e),d=tn(e);t&&d&&!u&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=c||(c=t.animate));var f=i||!1===l,p=f?c:l;return p&&"boolean"!=typeof p&&!fr(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Kt(e,t);if(n){var r=n.transitionEnd;n.transition;var i=nt(n,["transitionEnd","transition"]);for(var a in i){var s=i[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[a]=s)}for(var a in r)o[a]=r[a]}})),o}var wr,xr={useVisualState:yr({scrapeMotionValuesFromProps:dr,createRenderState:nr,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}tr(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),cr(t,r)}})},Er={useVisualState:yr({scrapeMotionValuesFromProps:ur,createRenderState:Zn})};function Cr(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Sr(e,t,n,r){(0,s.useEffect)((function(){var o=e.current;if(n&&o)return Cr(o,t,n,r)}),[e,t,n,r])}function kr(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Tr(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(wr||(wr={}));var Lr={pageX:0,pageY:0};function _r(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Lr;return{x:n[t+"X"],y:n[t+"Y"]}}function Ar(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Nr(e,t){return void 0===t&&(t="page"),{point:Tr(e)?_r(e,t):Ar(e,t)}}var Pr=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Nr(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Or=function(){return Ct&&null===window.onpointerdown},Mr=function(){return Ct&&null===window.ontouchstart},Rr=function(){return Ct&&null===window.onmousedown},Dr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Vr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function jr(e){return Or()?e:Mr()?Vr[e]:Rr()?Dr[e]:e}function Ir(e,t,n,r){return Cr(e,jr(t),Pr(n,"pointerdown"===t),r)}function Fr(e,t,n,r){return Sr(e,jr(t),n&&Pr(n,"pointerdown"===t),r)}function Br(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Hr=Br("dragHorizontal"),Ur=Br("dragVertical");function zr(e){var t=!1;if("y"===e)t=Ur();else if("x"===e)t=Hr();else{var n=Hr(),r=Ur();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function qr(){var e=zr(!0);return!e||(e(),!1)}function Zr(e,t,n){return function(r,o){var i;kr(r)&&!qr()&&(null===(i=e.animationState)||void 0===i||i.setActive(wr.Hover,t),null==n||n(r,o))}}var Wr=function(e,t){return!!t&&(e===t||Wr(e,t.parentElement))};const $r=(e,t)=>n=>t(e(n)),Gr=(...e)=>e.reduce($r);var Yr=new Set,Xr=new WeakMap,Jr=new WeakMap,Kr=function(e){var t;null===(t=Xr.get(e.target))||void 0===t||t(e)},Qr=function(e){e.forEach(Kr)};var eo={some:0,all:1};function to(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,l=void 0===a?"some":a,c=r.once;(0,s.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof l?l:eo[l]};return function(e,t,n){var r=function(e){var t=e.root,n=nt(e,["root"]),r=t||document;Jr.has(r)||Jr.set(r,{});var o=Jr.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Qr,tt({root:t},n))),o[i]}(t);return Xr.set(e,n),r.observe(e),function(){Xr.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!c||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(wr.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,l])}function no(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,s.useEffect)((function(){var r;e&&i&&("production"!==it&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",Yr.has(r)||(console.warn(r),Yr.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(wr.InView,!0)})))}),[e])}var ro=function(e){return function(t){return e(t),null}},oo={inView:ro((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=void 0===i?{}:i,l=(0,s.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||r||o);a.once&&l.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?no:to)(c,l.current,t,a)})),tap:ro((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(!1),c=(0,s.useRef)(null),u={passive:!(n||t||r||h)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function f(){var e;return d(),l.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(wr.Tap,!1),!qr()}function p(e,n){f()&&(Wr(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function m(e,t){f()&&(null==r||r(e,t))}function h(e,t){var r;d(),l.current||(l.current=!0,c.current=Gr(Ir(window,"pointerup",p,u),Ir(window,"pointercancel",m,u)),null===(r=i.animationState)||void 0===r||r.setActive(wr.Tap,!0),null==n||n(e,t))}Fr(i,"pointerdown",a?h:void 0,u),Rt(d)})),focus:ro((function(e){var t=e.whileFocus,n=e.visualElement;Sr(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(wr.Focus,!0)}:void 0),Sr(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(wr.Focus,!1)}:void 0)})),hover:ro((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;Fr(o,"pointerenter",t||r?Zr(o,!0,t):void 0,{passive:!t}),Fr(o,"pointerleave",n||r?Zr(o,!1,n):void 0,{passive:!n})}))};function io(){var e=(0,s.useContext)(Tt);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Nt();return(0,s.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function ao(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const so=(e,t,n)=>Math.min(Math.max(n,e),t),lo=.001,co=.01,uo=10,fo=.05,po=1;const mo=12;function ho(e,t){return e*Math.sqrt(1-t*t)}const go=["duration","bounce"],vo=["stiffness","damping","mass"];function yo(e,t){return t.some((t=>void 0!==e[t]))}function bo(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=nt(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yo(e,vo)&&yo(e,go)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ft(e<=1e3*uo,"Spring duration must be 10 seconds or less");let a=1-t;a=so(fo,po,a),e=so(co,uo,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=ho(t,a),l=Math.exp(-o);return lo-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ho(Math.pow(t,2),a);return(-o(t)+lo>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-lo,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<mo;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=wo,m=wo;function h(){const e=u?-u/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*c)),a=Math.sqrt(s/c)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=ho(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*m(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}bo.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const wo=e=>0,xo=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Eo=(e,t,n)=>-n*e+n*t+e,Co=(e,t)=>n=>Boolean(Pn(n)&&Nn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),So=(e,t,n)=>r=>{if(!Pn(r))return r;const[o,i,a,s]=r.match(Ln);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ko=kn(0,255),To=Object.assign(Object.assign({},Fn),{transform:e=>Math.round(ko(e))}),Lo={test:Co("rgb","red"),parse:So("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+To.transform(e)+", "+To.transform(t)+", "+To.transform(n)+", "+Tn(Bn.transform(r))+")"},_o={test:Co("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Lo.transform},Ao={test:Co("hsl","hue"),parse:So("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Tn(t))+", "+Rn.transform(Tn(n))+", "+Tn(Bn.transform(r))+")"};function No(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 Po({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=No(s,r,e+1/3),i=No(s,r,e),a=No(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const Oo=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Mo=[_o,Lo,Ao],Ro=e=>Mo.find((t=>t.test(e))),Do=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Vo=(e,t)=>{let n=Ro(e),r=Ro(t);Bt(!!n,Do(e)),Bt(!!r,Do(t));let o=n.parse(e),i=r.parse(t);n===Ao&&(o=Po(o),n=Lo),r===Ao&&(i=Po(i),r=Lo);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Oo(o[t],i[t],e));return a.alpha=Eo(o.alpha,i.alpha,e),n.transform(a)}},jo={test:e=>Lo.test(e)||_o.test(e)||Ao.test(e),parse:e=>Lo.test(e)?Lo.parse(e):Ao.test(e)?Ao.parse(e):_o.parse(e),transform:e=>Pn(e)?e:e.hasOwnProperty("red")?Lo.transform(e):Ao.transform(e)},Io="${c}",Fo="${n}";function Bo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(An);r&&(n=r.length,e=e.replace(An,Io),t.push(...r.map(jo.parse)));const o=e.match(Ln);return o&&(e=e.replace(Ln,Fo),t.push(...o.map(Fn.parse))),{values:t,numColors:n,tokenised:e}}function Ho(e){return Bo(e).values}function Uo(e){const{values:t,numColors:n,tokenised:r}=Bo(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Io:Fo,r<n?jo.transform(e[r]):Tn(e[r]));return t}}const zo=e=>"number"==typeof e?0:e,qo={test:function(e){var t,n,r,o;return isNaN(e)&&Pn(e)&&(null!==(n=null===(t=e.match(Ln))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(An))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Ho,createTransformer:Uo,getAnimatableNone:function(e){const t=Ho(e);return Uo(e)(t.map(zo))}},Zo=e=>"number"==typeof e;function Wo(e,t){return Zo(e)?n=>Eo(e,t,n):jo.test(e)?Vo(e,t):Xo(e,t)}const $o=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Wo(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Go=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Wo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Yo(e){const t=qo.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const Xo=(e,t)=>{const n=qo.createTransformer(t),r=Yo(e),o=Yo(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Gr($o(r.parsed,o.parsed),n):(Ft(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},Jo=(e,t)=>n=>Eo(e,t,n);function Ko(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;Bt(i===t.length,"Both input and output ranges must be the same length"),Bt(!r||!Array.isArray(r)||r.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],o=n||("number"==typeof(a=e[0])?Jo:"string"==typeof a?jo.test(a)?Vo:Xo:Array.isArray(a)?$o:"object"==typeof a?Go:void 0),i=e.length-1;var a;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;i=Gr(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(xo(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=xo(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(so(e[0],e[i-1],t)):s}const Qo=e=>t=>1-e(1-t),ei=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ti=e=>t=>t*t*((e+1)*t-e),ni=e=>e,ri=(2,e=>Math.pow(e,2));const oi=Qo(ri),ii=ei(ri),ai=e=>1-Math.sin(Math.acos(e)),si=Qo(ai),li=ei(si),ci=ti(1.525),ui=Qo(ci),di=ei(ci),fi=(e=>{const t=ti(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),pi=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},mi=Qo(pi);function hi(e,t){return e.map((()=>t||ii)).splice(0,e.length-1)}function gi({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return Ko(s,a,{ease:Array.isArray(n)?n:hi(a,n)})}let c=l();return{next:e=>(i.value=c(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}const vi={keyframes:gi,spring:bo,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,c=void 0===i?l:i(l);return c!==l&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};function yi(e,t,n=0){return e-t-n}const bi=e=>{const t=({delta:t})=>e(t);return{start:()=>Et.update(t,!0),stop:()=>gt.update(t)}};function wi(e){var t,n,{from:r,autoplay:o=!0,driver:i=bi,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=nt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,v,y,{to:b}=h,w=0,x=h.duration,E=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return gi;if(vi[e.type])return vi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?gi:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?bo:gi}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Ko([0,100],[r,b],{clamp:!1}),r=0,b=100);const k=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==u||u(),g=i((function(e){if(C||(e=-e),a+=e,!E){const e=k.next(Math.max(0,a));v=e.value,y&&(v=y(v)),E=C?e.done:a<=0}null==m||m(v),E&&(0===w&&(null!=x||(x=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,x,c,C)&&(w++,"reverse"===l?(C=w%2==0,a=function(e,t,n=0,r=!0){return r?yi(t+-e,t,n):t-(e-t)+n}(a,x,c,C)):(a=yi(a,x,c),"mirror"===l&&k.flipTarget()),E=!1,p&&p()):(g.stop(),f&&f()))})),g.start()),{stop:()=>{null==d||d(),g.stop()}}}function xi(e,t){return t?e*(1e3/t):0}var Ei=function(e){return 1e3*e};const Ci=(e,t)=>1-3*t+3*e,Si=(e,t)=>3*t-6*e,ki=e=>3*e,Ti=(e,t,n)=>((Ci(t,n)*e+Si(t,n))*e+ki(t))*e,Li=(e,t,n)=>3*Ci(t,n)*e*e+2*Si(t,n)*e+ki(t),_i=1e-7,Ai=10,Ni=8,Pi=.001,Oi=11,Mi=1/(Oi-1);function Ri(e,t,n,r){if(e===t&&n===r)return ni;const o=new Float32Array(Oi);for(let t=0;t<Oi;++t)o[t]=Ti(t*Mi,e,n);return i=>0===i||1===i?i:Ti(function(t){let r=0,i=1;const a=Oi-1;for(;i!==a&&o[i]<=t;++i)r+=Mi;--i;const s=r+(t-o[i])/(o[i+1]-o[i])*Mi,l=Li(s,e,n);return l>=Pi?function(e,t,n,r){for(let o=0;o<Ni;++o){const o=Li(t,n,r);if(0===o)return t;t-=(Ti(t,n,r)-e)/o}return t}(t,s,e,n):0===l?s:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Ti(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>_i&&++s<Ai);return a}(t,r,r+Mi,e,n)}(i),t,r)}var Di={linear:ni,easeIn:ri,easeInOut:ii,easeOut:oi,circIn:ai,circInOut:li,circOut:si,backIn:ci,backInOut:di,backOut:ui,anticipate:fi,bounceIn:mi,bounceInOut:e=>e<.5?.5*(1-pi(1-2*e)):.5*pi(2*e-1)+.5,bounceOut:pi},Vi=function(e){if(Array.isArray(e)){Bt(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=rt(e,4);return Ri(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Bt(void 0!==Di[e],"Invalid easing type '".concat(e,"'")),Di[e]):e},ji=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Ii=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!qo.test(t)||t.startsWith("url(")))},Fi=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Bi=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Hi=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ui=function(e){return{type:"keyframes",duration:.8,values:e}},zi={x:Fi,y:Fi,z:Fi,rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scaleX:Bi,scaleY:Bi,scale:Bi,opacity:Hi,backgroundColor:Hi,color:Hi,default:Bi},qi=function(e,t){var n;return n=pr(t)?Ui:zi[e]||zi.default,tt({to:t},n(t))};const Zi=new Set(["brightness","contrast","saturate","opacity"]);function Wi(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ln)||[];if(!r)return e;const o=n.replace(r,"");let i=Zi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const $i=/([a-z-]*)\(.*?\)/g,Gi=Object.assign(Object.assign({},qo),{getAnimatableNone:e=>{const t=e.match($i);return t?t.map(Wi).join(" "):e}});var Yi=tt(tt({},zn),{color:jo,backgroundColor:jo,outlineColor:jo,fill:jo,stroke:jo,borderColor:jo,borderTopColor:jo,borderRightColor:jo,borderBottomColor:jo,borderLeftColor:jo,filter:Gi,WebkitFilter:Gi}),Xi=function(e){return Yi[e]};function Ji(e,t){var n,r=Xi(e);return r!==Gi&&(r=qo),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var Ki={current:!1},Qi=!1;function ea(e,t,n,r,o){var i,a=ra(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=Ii(e,n);"none"===s&&l&&"string"==typeof n?s=Ji(e,n):ta(s)&&"string"==typeof n?s=na(n):!Array.isArray(n)&&ta(n)&&"string"==typeof s&&(n=na(s));var c=Ii(e,s);return Ft(c===l,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),c&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function g(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function v(e){null==m||m.stop(),m=wi(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){v(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(h(e))y({from:e,velocity:t,to:g(e)});else{let r=o*t+e;void 0!==c&&(r=c(r));const a=g(r),s=a===n?-1:1;let u,d;const f=e=>{u=d,d=e,t=xi(e-u,xt().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};v({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(tt(tt({},r),a)):wi(tt(tt({},function(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ot([],rt(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=nt(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=tt(tt({},e),qi(n,t.to))),tt(tt({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=nt(e,["ease","times","yoyo","flip","loop"]),s=tt({},a);return n&&(s.offset=n),a.duration&&(s.duration=Ei(a.duration)),a.repeatDelay&&(s.repeatDelay=Ei(a.repeatDelay)),t&&(s.ease=ji(t)?t.map(Vi):Vi(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(Ft(!Qi,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Qi=!0,r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=hr(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}function ta(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function na(e){return"number"==typeof e?0:Ji("",e)}function ra(e,t){return e[t]||e.default||e}function oa(e,t,n,r){return void 0===r&&(r={}),Ki.current&&(r={type:!1}),t.start((function(o){var i,a,s=ea(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(ra(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),c=function(){return a=s()};return l?i=window.setTimeout(c,Ei(l)):c(),function(){clearTimeout(i),null==a||a.stop()}}))}var ia=function(e){return/^0[^.\s]+$/.test(e)};function aa(e,t){-1===e.indexOf(t)&&e.push(t)}function sa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var la=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return aa(this.subscriptions,e),function(){return sa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ca=function(e){return!isNaN(parseFloat(e))},ua=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new la,this.velocityUpdateSubscribers=new la,this.renderSubscribers=new la,this.canTrackVelocity=!1,this.updateAndNotify=function(e,n){void 0===n&&(n=!0),t.prev=t.current,t.current=e;var r=xt(),o=r.delta,i=r.timestamp;t.lastUpdated!==i&&(t.timeDelta=o,t.lastUpdated=i,Et.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),n&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return Et.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=ca(this.current)}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?xi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function da(e){return new ua(e)}var fa=function(e){return function(t){return t.test(e)}},pa=[Fn,Dn,Rn,Mn,jn,Vn,{test:function(e){return"auto"===e},parse:function(e){return e}}],ma=function(e){return pa.find(fa(e))},ha=ot(ot([],rt(pa),!1),[jo,qo],!1),ga=function(e){return ha.find(fa(e))};function va(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,da(n))}function ya(e,t){if(t)return(t[e]||t.default||t).from}function ba(e,t,n){var r;void 0===n&&(n={});var o=Qt(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return wa(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(xa).forEach((function(e,r){a.push(ba(e,t,tt(tt({},i),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,l,n)}:function(){return Promise.resolve()},c=a.when;if(c){var u=rt("beforeChildren"===c?[s,l]:[l,s],2),d=u[0],f=u[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function wa(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,c=e.makeTargetAnimatable(t),u=c.transition,d=void 0===u?e.getDefaultTransition():u,f=c.transitionEnd,p=nt(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var g in p){var v=e.getValue(g),y=p[g];if(!(!v||void 0===y||h&&Ea(h,g))){var b=tt({delay:a},d);e.shouldReduceMotion&&vn(g)&&(b=tt(tt({},b),{type:!1,delay:0}));var w=oa(g,v,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Qt(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=nt(r,["transitionEnd","transition"]);for(var s in a=tt(tt({},a),i))va(e,s,hr(a[s]))}(e,f)}))}function xa(e,t){return e.sortNodePosition(t)}function Ea(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ca=[wr.Animate,wr.InView,wr.Focus,wr.Hover,wr.Tap,wr.Drag,wr.Exit],Sa=ot([],rt(Ca),!1).reverse(),ka=Ca.length;function Ta(e){var t,n=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return ba(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=ba(e,t,n);else{var i="function"==typeof t?Qt(e,t,n.custom):t;r=wa(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),r=((t={})[wr.Animate]=La(!0),t[wr.InView]=La(),t[wr.Hover]=La(),t[wr.Tap]=La(),t[wr.Drag]=La(),t[wr.Focus]=La(),t[wr.Exit]=La(),t),o={},i=!0,a=function(t,n){var r=Qt(e,n);if(r){r.transition;var o=r.transitionEnd,i=nt(r,["transition","transitionEnd"]);t=tt(tt(tt({},t),i),o)}return t};function s(t,s){for(var l,c=e.getProps(),u=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(n){var o=Sa[n],h=r[o],g=null!==(l=c[o])&&void 0!==l?l:u[o],v=Jt(g),y=o===s?h.isActive:null;!1===y&&(m=n);var b=g===u[o]&&g!==c[o]&&v;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=tt({},p),!h.isActive&&null===y||!g&&!h.prevProp||fr(g)||"boolean"==typeof g)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Xt(t)&&!ao(t,e)}(h.prevProp,g),x=w||o===s&&h.isActive&&!b&&v||n>m&&v,E=Array.isArray(g)?g:[g],C=E.reduce(a,{});!1===y&&(C={});var S=h.prevResolvedValues,k=void 0===S?{}:S,T=tt(tt({},k),C),L=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var _ in T){var A=C[_],N=k[_];p.hasOwnProperty(_)||(A!==N?pr(A)&&pr(N)?!ao(A,N)||w?L(_):h.protectedKeys[_]=!0:void 0!==A?L(_):f.add(_):void 0!==A&&f.has(_)?L(_):h.protectedKeys[_]=!0)}h.prevProp=g,h.prevResolvedValues=C,h.isActive&&(p=tt(tt({},p),C)),i&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,ot([],rt(E.map((function(e){return{animation:e,options:tt({type:o},t)}}))),!1))},g=0;g<ka;g++)h(g);if(o=tt({},p),f.size){var v={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(v[t]=n)})),d.push({animation:v})}var y=Boolean(d.length);return i&&!1===c.initial&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?n(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,n,o){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;var a=s(o,t);for(var l in r)r[l].protectedKeys={};return a},setAnimateFunction:function(t){n=t(e)},getState:function(){return r}}}function La(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var _a={animation:ro((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ta(t)),fr(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:ro((function(e){var t=e.custom,n=e.visualElement,r=rt(io(),2),o=r[0],i=r[1],a=(0,s.useContext)(Tt);(0,s.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(wr.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const Aa=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Na=e=>Aa(e)&&e.hasOwnProperty("z"),Pa=(e,t)=>Math.abs(e-t);function Oa(e,t){if(Zo(e)&&Zo(t))return Pa(e,t);if(Aa(e)&&Aa(t)){const n=Pa(e.x,t.x),r=Pa(e.y,t.y),o=Na(e)&&Na(t)?Pa(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Ma=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Va(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Oa(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=xt().timestamp;r.history.push(tt(tt({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Ra(t,r.transformPagePoint),kr(e)&&0===e.buttons?r.handlePointerUp(e,t):Et.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=Va(Ra(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(Tr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=Ra(Nr(e),this.transformPagePoint),a=i.point,s=xt().timestamp;this.history=[tt(tt({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Va(i,this.history)),this.removeListeners=Gr(Ir(window,"pointermove",this.handlePointerMove),Ir(window,"pointerup",this.handlePointerUp),Ir(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),gt.update(this.updatePoint)},e}();function Ra(e,t){return t?{point:t(e.point)}:e}function Da(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Va(e,t){var n=e.point;return{point:n,delta:Da(n,Ia(t)),offset:Da(n,ja(t)),velocity:Fa(t,.1)}}function ja(e){return e[0]}function Ia(e){return e[e.length-1]}function Fa(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Ia(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ei(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ba(e){return e.max-e.min}function Ha(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Oa(e,t)<n}function Ua(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Eo(t.min,t.max,e.origin),e.scale=Ba(n)/Ba(t),(Ha(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Eo(n.min,n.max,e.origin)-e.originPoint,(Ha(e.translate)||isNaN(e.translate))&&(e.translate=0)}function za(e,t,n,r){Ua(e.x,t.x,n.x,null==r?void 0:r.originX),Ua(e.y,t.y,n.y,null==r?void 0:r.originY)}function qa(e,t,n){e.min=n.min+t.min,e.max=e.min+Ba(t)}function Za(e,t,n){e.min=t.min-n.min,e.max=e.min+Ba(t)}function Wa(e,t,n){Za(e.x,t.x,n.x),Za(e.y,t.y,n.y)}function $a(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ga(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=rt([o,r],2))[0],o=n[1]),{min:r,max:o}}var Ya=.35;function Xa(e,t,n){return{min:Ja(e,t),max:Ja(e,n)}}function Ja(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var Ka=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Qa=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function es(e){return[e("x"),e("y")]}function ts(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function ns(e){return void 0===e||1===e}function rs(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ns(t)||!ns(n)||!ns(r)}function os(e){return rs(e)||is(e.x)||is(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function is(e){return e&&"0%"!==e}function as(e,t,n){return n+t*(e-n)}function ss(e,t,n,r,o){return void 0!==o&&(e=as(e,o,r)),as(e,n,r)+t}function ls(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=ss(e.min,t,n,r,o),e.max=ss(e.max,t,n,r,o)}function cs(e,t){var n=t.x,r=t.y;ls(e.x,n.translate,n.scale,n.originPoint),ls(e.y,r.translate,r.scale,r.originPoint)}function us(e,t){e.min=e.min+t,e.max=e.max+t}function ds(e,t,n){var r=rt(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Eo(e.min,e.max,s);ls(e,t[o],t[i],l,t.scale)}var fs=["x","scaleX","originX"],ps=["y","scaleY","originY"];function ms(e,t){ds(e.x,t,fs),ds(e.y,t,ps)}function hs(e,t){return ts(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var gs=new WeakMap,vs=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Qa(),this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new Ma(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(Nr(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=zr(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),es((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(Rn.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];i&&(o=Ba(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(wr.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(wr.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ys(e,r,this.currentDirection)){var o,i,a,s,l,c=this.getAxisMotionValue(e),u=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=u,i=this.constraints[e],a=this.elastic[e],s=i.min,l=i.max,void 0!==s&&o<s?o=a?Eo(s,o,a.min):Math.max(o,s):void 0!==l&&o>l&&(o=a?Eo(l,o,a.max):Math.min(o,l)),u=o),c.set(u)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&Yt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:$a(e.x,r,i),y:$a(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Ya),!1===e?e=0:!0===e&&(e=Ya),{x:Xa(e,"left","right"),y:Xa(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&es((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Yt(t))return!1;var r=t.current;Bt(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=hs(e,n),o=t.scroll;return o&&(us(r.x,o.x),us(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Ga(e.x,t.x),y:Ga(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=ts(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},u=es((function(n){var l;if(ys(n,r,t.currentDirection)){var u=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};s&&(u={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=tt(tt({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,p)}}));return Promise.all(u).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return oa(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;es((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;es((function(n){if(ys(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-Eo(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(Yt(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};es((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var c=l.get();a[e]=(n={min:c,max:c},r=t.constraints[e],o=.5,i=Ba(n),(s=Ba(r))>i?o=xo(r.min,r.max-i,n.min):i>s&&(o=xo(n.min,n.max-s,r.min)),so(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),es((function(e){if(ys(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Eo(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;gs.set(this.visualElement,this);var n=Ir(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Yt(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Cr(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(es((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,c=e.dragElastic,u=void 0===c?Ya:c,d=e.dragMomentum,f=void 0===d||d;return tt(tt({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f})},e}();function ys(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var bs={pan:ro((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(null),c=(0,s.useContext)(qt).transformPagePoint,u={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,s.useEffect)((function(){null!==l.current&&l.current.updateHandlers(u)})),Fr(i,"pointerdown",a&&function(e){l.current=new Ma(e,u,{transformPagePoint:c})}),Rt((function(){return l.current&&l.current.end()}))})),drag:ro((function(e){var t=e.dragControls,n=e.visualElement,r=Lt((function(){return new vs(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},ws=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],xs=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,g=e.visualState,v=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,x=g.latestValues,E=g.renderState,C=function(){var e=ws.map((function(){return new la})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){ws.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+ws[t]]=function(t){return e.add(t)},n["notify"+ws[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ot([],rt(t),!1))}})),n}(),S=new Map,k=new Map,T={},L=tt({},x);function _(){y&&w&&(A(),s(y,E,p.style,j.projection))}function A(){r(j,E,x,t,p)}function N(){C.notifyUpdate(x)}function P(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&Et.update(N,!1,!0)})),r=t.onRenderRequest(j.scheduleRender);k.set(e,(function(){n(),r()}))}var O=d(p);for(var M in O){var R=O[M];void 0!==x[M]&&xn(R)&&R.set(x[M],!1)}var D=en(p),V=tn(p),j=tt(tt({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:v,variantChildren:V?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=j.current=e,j.projection&&j.projection.mount(e),V&&f&&!D&&(b=null==f?void 0:f.addVariantChild(j)),S.forEach((function(e,t){return P(t,e)})),null==f||f.children.add(j),j.setProps(p)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),gt.update(N),gt.render(_),k.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(j),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=j.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return u&&n===e.treeType?u(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return V?j:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(j,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),P(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=k.get(e))||void 0===t||t(),k.delete(e),delete x[e],c(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=da(t),j.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){L[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!xn(t))return t}return L[e]}},C),{build:function(){return A(),E},scheduleRender:function(){Et.render(_,!1,!0)},syncRender:_,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&j.scheduleRender(),p=e,C.updatePropListeners(e),T=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(xn(i))e.addValue(o,i);else if(xn(a))e.addValue(o,da(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,da(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,d(p),T)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Cs;r++){var o=Es[r],i=p[o];(Jt(i)||!1===i)&&(n[o]=i)}return n}});return j}},Es=ot(["initial"],rt(Ca),!1),Cs=Es.length;function Ss(e){return"string"==typeof e&&e.startsWith("var(--")}var ks=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ts=4;function Ls(e,t,n){void 0===n&&(n=1),Bt(n<=Ts,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=rt(function(e){var t=ks.exec(e);if(!t)return[,];var n=rt(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Ss(i)?Ls(i,t,n+1):i}}var _s,As=new Set(["width","height","top","left","right","bottom","x","y"]),Ns=function(e){return As.has(e)},Ps=function(e,t){e.set(t,!1),e.set(t)},Os=function(e){return e===Fn||e===Dn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(_s||(_s={}));var Ms=function(e,t){return parseFloat(e.split(", ")[t])},Rs=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return Ms(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Ms(a[1],e):0}},Ds=new Set(["x","y","z"]),Vs=mn.filter((function(e){return!Ds.has(e)})),js={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Rs(4,13),y:Rs(5,14)},Is=function(e,t,n,r){var o=function(e,t,n){var r,o=nt(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=tt({},n)),e.forEachValue((function(e){var t=e.get();if(Ss(t)){var n=Ls(t,i);n&&e.set(n)}})),o){var s=o[a];if(Ss(s)){var l=Ls(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return function(e,t,n,r){return function(e){return Object.keys(e).some(Ns)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=tt({},t),r=tt({},r);var o=Object.keys(t).filter(Ns),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var c,u=n[o],d=ma(u),f=t[o];if(pr(f)){var p=f.length,m=null===f[0]?1:0;u=f[m],d=ma(u);for(var h=m;h<p;h++)c?Bt(ma(f[h])===c,"All keyframes must be of the same type"):(c=ma(f[h]),Bt(c===d||Os(d)&&Os(c),"Keyframes must be of the same dimension as the current value"))}else c=ma(f);if(d!==c)if(Os(d)&&Os(c)){var g=l.get();"string"==typeof g&&l.set(parseFloat(g)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&c===Dn&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===u||0===f)?0===u?l.set(c.transform(u)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return Vs.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Ps(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=js[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Ps(r,s[n]),e[n]=js[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=rt(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}(e,t=o.target,n,r=o.transitionEnd)},Fs={treeType:"dom",readValueFromInstance:function(e,t){if(vn(t)){var n=Xi(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Cn(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return hs(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=nt(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=ya(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var c=0;c<l;c++){var u=s[c],d=t[u],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==o?o:t[u]),null!=f&&("string"==typeof f&&(/^\-?\d*\.?\d+$/.test(f)||ia(f))?f=parseFloat(f):!ga(f)&&qo.test(d)&&(f=Ji(u,d)),e.addValue(u,da(f)),null!==(i=(a=n)[u])&&void 0!==i||(a[u]=f),e.setBaseTarget(u,f))}}(e,s,l);var c=Is(e,s,l,a);a=c.transitionEnd,s=c.target}return tt({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:ur,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),qn(t,n,r,o.transformTemplate)},render:sr},Bs=xs(Fs),Hs=xs(tt(tt({},Fs),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return vn(t)?(null===(n=Xi(t))||void 0===n?void 0:n.default)||0:(t=lr.has(t)?t:ar(t),e.getAttribute(t))},scrapeMotionValuesFromProps:dr,build:function(e,t,n,r,o){tr(t,n,r,o.transformTemplate)},render:cr})),Us=function(e,t){return dn(e)?Hs(t,{enableHardwareAcceleration:!1}):Bs(t,{enableHardwareAcceleration:!0})};function zs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var qs={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Dn.test(e))return e;e=parseFloat(e)}var n=zs(e,t.target.x),r=zs(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Zs="_$css",Ws={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(ks,(function(e){return a.push(e),Zs})));var s=qo.parse(e);if(s.length>5)return o;var l=qo.createTransformer(e),c="number"!=typeof s[0]?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=u,s[1+c]/=d;var f=Eo(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=f),"number"==typeof s[3+c]&&(s[3+c]/=f);var p=l(s);if(i){var m=0;p=p.replace(Zs,(function(){var e=a[m];return m++,e}))}return p}},$s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=Gs,Object.assign(fn,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(tt(tt({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),rn.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Et.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(s.Component),Gs={borderRadius:tt(tt({},qs),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:qs,borderTopRightRadius:qs,borderBottomLeftRadius:qs,borderBottomRightRadius:qs,boxShadow:Ws},Ys={measureLayout:function(e){var t=rt(io(),2),n=t[0],r=t[1],o=(0,s.useContext)(Mt);return s.createElement($s,tt({},e,{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(an),isPresent:n,safeToRemove:r}))}},Xs=["TopLeft","TopRight","BottomLeft","BottomRight"],Js=Xs.length,Ks=function(e){return"string"==typeof e?parseFloat(e):e},Qs=function(e){return"number"==typeof e||Dn.test(e)};function el(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var tl=rl(0,.5,si),nl=rl(.5,.95,ni);function rl(e,t,n){return function(r){return r<e?0:r>t?1:n(xo(e,t,r))}}function ol(e,t){e.min=t.min,e.max=t.max}function il(e,t){ol(e.x,t.x),ol(e.y,t.y)}function al(e,t,n,r,o){return e=as(e-=t,1/n,r),void 0!==o&&(e=as(e,1/o,r)),e}function sl(e,t,n,r,o){var i=rt(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),Rn.test(t)&&(t=parseFloat(t),t=Eo(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Eo(i.min,i.max,r);e===i&&(s-=t),e.min=al(e.min,t,n,s,o),e.max=al(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var ll=["x","scaleX","originX"],cl=["y","scaleY","originY"];function ul(e,t,n,r){sl(e.x,t,ll,null==n?void 0:n.x,null==r?void 0:r.x),sl(e.y,t,cl,null==n?void 0:n.y,null==r?void 0:r.y)}function dl(e){return 0===e.translate&&1===e.scale}function fl(e){return dl(e.x)&&dl(e.y)}function pl(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var ml=function(){function e(){this.members=[]}return e.prototype.add=function(e){aa(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(sa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),hl="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function gl(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return(i+="scale(".concat(c,", ").concat(u,")"))===hl?"none":i}var vl=function(e,t){return e.depth-t.depth},yl=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){aa(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){sa(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(vl),this.isDirty=!1,this.children.forEach(e)},e}(),bl=1e3;function wl(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Ll),o.nodes.forEach(_l)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?ot(ot([],rt(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new yl)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new la),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,ot([],rt(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,s=i.layout,l=i.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var c,u=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(u,250),rn.hasAnimatedSinceResize&&(rn.hasAnimatedSinceResize=!1,o.nodes.forEach(Tl))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,s=e.delta,c=e.hasLayoutChanged,u=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:Rl,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,g=!o.targetLayout||!pl(o.targetLayout,d)||u,v=!c&&u;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||v||c&&(g||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,v);var y=tt(tt({},ra(f,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(a=(i=o.options).onExitComplete)||void 0===a||a.call(i));o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,gt.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Al))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Sl);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Dl),this.potentialNodes.clear()),this.nodes.forEach(kl),this.nodes.forEach(xl),this.nodes.forEach(El),this.clearAllSnapshots(),vt.update(),vt.preRender(),vt.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Cl),this.sharedNodes.forEach(Nl)},e.prototype.scheduleUpdateProjection=function(){Et.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Et.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));jl(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();jl(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=Qa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!fl(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||os(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return Qa();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(us(t.x,n.x),us(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=Qa();il(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options,a=r.isScrollRoot;if(r!==this.root&&o&&i.layoutScroll){if(a){il(t,e);var s=this.root.scroll;s&&(us(t.x,-s.x),us(t.y,-s.y))}us(t.x,o.x),us(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=Qa();il(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ms(n,{x:-o.scroll.x,y:-o.scroll.y}),os(o.latestValues)&&ms(n,o.latestValues)}return os(this.latestValues)&&ms(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=Qa();il(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&os(o.latestValues)){rs(o.latestValues)&&o.updateSnapshot();var i=Qa();il(i,o.measure()),ul(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return os(this.latestValues)&&ul(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=tt(tt(tt({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Qa(),this.relativeTargetOrigin=Qa(),Wa(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),il(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Qa(),this.targetWithTransforms=Qa()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,qa(t.x,n.x,r.x),qa(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):il(this.target,this.layout.actual),cs(this.target,this.targetDelta)):il(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Qa(),this.relativeTargetOrigin=Qa(),Wa(this.relativeTargetOrigin,this.target,this.relativeParent.target),il(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!os(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();il(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var c=0;c<a;c++)l=(s=n[c]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ms(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,cs(e,l)),r&&os(s.latestValues)&&ms(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta=Ka(),this.projectionDeltaWithTransform=Ka());var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;za(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=gl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a=tt({},this.latestValues),s=Ka();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l=Qa(),c=null==o?void 0:o.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some(Ml));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;Pl(s.x,e.x,h),Pl(s.y,e.y,h),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Wa(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,Ol(o.x,f.x,p.x,m),Ol(o.y,f.y,p.y,m)),c&&(r.animationValues=a,function(e,t,n,r,o,i){var a,s,l,c;o?(e.opacity=Eo(0,null!==(a=n.opacity)&&void 0!==a?a:1,tl(r)),e.opacityExit=Eo(null!==(s=t.opacity)&&void 0!==s?s:1,0,nl(r))):i&&(e.opacity=Eo(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var u=0;u<Js;u++){var d="border".concat(Xs[u],"Radius"),f=el(t,d),p=el(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Qs(f)===Qs(p)?(e[d]=Math.max(Eo(Ks(f),Ks(p),r),0),(Rn.test(p)||Rn.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Eo(t.rotate||0,n.rotate||0,r))}(a,i,r.latestValues,h,d,u)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=h},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(gt.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update((function(){rn.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=xn(0)?0:da(0);return oa("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,bl,tt(tt({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,bl),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(il(t,n),ms(t,o),za(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ml),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<pn.length;r++){var o="rotate"+pn[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=gr(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,u.pointerEvents=gr(e.pointerEvents)||""),this.hasProjected&&!os(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=gl(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,fn)if(void 0!==d[h]){var g=fn[h],v=g.correct,y=g.applyTo,b=v(d[h],c);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[h]=b}return this.options.layoutId&&(s.pointerEvents=c===this?gr(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Sl),this.root.sharedNodes.clear()},e}()}function xl(e){e.updateLayout()}function El(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?es((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Ba(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&es((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=Ba(s[e]);t.max=t.min+n}));var c=Ka();za(c,s,i.layout);var u=Ka();i.isShared?za(u,e.applyTransform(l,!0),i.measured):za(u,s,i.layout);var d=!fl(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,h=p.layout;if(m&&h){var g=Qa();Wa(g,i.layout,m.layout);var v=Qa();Wa(v,s,h.actual),pl(g,v)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function Cl(e){e.clearSnapshot()}function Sl(e){e.clearMeasurements()}function kl(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Tl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Ll(e){e.resolveTargetDelta()}function _l(e){e.calcProjection()}function Al(e){e.resetRotation()}function Nl(e){e.removeLeadSnapshot()}function Pl(e,t,n){e.translate=Eo(t.translate,0,n),e.scale=Eo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ol(e,t,n,r){e.min=Eo(t.min,n.min,r),e.max=Eo(t.max,n.max,r)}function Ml(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Rl={duration:.45,ease:[.4,0,.1,1]};function Dl(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Vl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function jl(e){Vl(e.x),Vl(e.y)}var Il=wl({attachResizeListener:function(e,t){return Cr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Fl={current:void 0},Bl=wl({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Fl.current){var e=new Il(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Fl.current=e}return Fl.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Hl=tt(tt(tt(tt({},_a),oo),bs),Ys),Ul=cn((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=dn(e)?xr:Er;return tt(tt({},s),{preloadedFeatures:n,useRender:or(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Hl,Us,Bl)})),zl={grad:.9,turn:360,rad:360/(2*Math.PI)},ql=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Zl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Wl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},$l=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Gl=function(e){return{r:Wl(e.r,0,255),g:Wl(e.g,0,255),b:Wl(e.b,0,255),a:Wl(e.a)}},Yl=function(e){return{r:Zl(e.r),g:Zl(e.g),b:Zl(e.b),a:Zl(e.a,3)}},Xl=/^#([0-9a-f]{3,8})$/i,Jl=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Kl=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},Ql=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},ec=function(e){return{h:$l(e.h),s:Wl(e.s,0,100),l:Wl(e.l,0,100),a:Wl(e.a)}},tc=function(e){return{h:Zl(e.h),s:Zl(e.s),l:Zl(e.l),a:Zl(e.a,3)}},nc=function(e){return Ql((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},rc=function(e){return{h:(t=Kl(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},oc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ic=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ac=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lc={string:[[function(e){var t=Xl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Zl(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Zl(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ac.exec(e)||sc.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Gl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=oc.exec(e)||ic.exec(e);if(!t)return null;var n,r,o=ec({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(zl[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return nc(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ql(t)&&ql(n)&&ql(r)?Gl({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ql(t)||!ql(n)||!ql(r))return null;var a=ec({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return nc(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ql(t)||!ql(n)||!ql(r))return null;var a=function(e){return{h:$l(e.h),s:Wl(e.s,0,100),v:Wl(e.v,0,100),a:Wl(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Ql(a)},"hsv"]]},cc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},uc=function(e){return"string"==typeof e?cc(e.trim(),lc.string):"object"==typeof e&&null!==e?cc(e,lc.object):[null,void 0]},dc=function(e,t){var n=rc(e);return{h:n.h,s:Wl(n.s+100*t,0,100),l:n.l,a:n.a}},fc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},pc=function(e,t){var n=rc(e);return{h:n.h,s:n.s,l:Wl(n.l+100*t,0,100),a:n.a}},mc=function(){function e(e){this.parsed=uc(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Zl(fc(this.rgba),2)},e.prototype.isDark=function(){return fc(this.rgba)<.5},e.prototype.isLight=function(){return fc(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Yl(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Jl(Zl(255*o)):"","#"+Jl(t)+Jl(n)+Jl(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Yl(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Yl(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return tc(rc(this.rgba))},e.prototype.toHslString=function(){return t=(e=tc(rc(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Kl(this.rgba),{h:Zl(e.h),s:Zl(e.s),v:Zl(e.v),a:Zl(e.a,3)};var e},e.prototype.invert=function(){return hc({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),hc(dc(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),hc(dc(this.rgba,-e))},e.prototype.grayscale=function(){return hc(dc(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),hc(pc(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),hc(pc(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?hc({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Zl(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=rc(this.rgba);return"number"==typeof e?hc({h:e,s:t.s,l:t.l,a:t.a}):Zl(t.h)},e.prototype.isEqual=function(e){return this.toHex()===hc(e).toHex()},e}(),hc=function(e){return e instanceof mc?e:new mc(e)},gc=o(688);const vc=new WeakMap,yc={},bc={},wc=()=>{},xc=wc(),Ec=Object,Cc=e=>e===xc,Sc=e=>"function"==typeof e,kc=(e,t)=>({...e,...t}),Tc="undefined",Lc=typeof window!=Tc,_c=typeof document!=Tc,Ac=(e,t)=>{const n=vc.get(e);return[()=>!Cc(t)&&e.get(t)||yc,r=>{if(!Cc(t)){const o=e.get(t);t in bc||(bc[t]=o),n[5](t,kc(o,r),o||yc)}},n[6],()=>!Cc(t)&&t in bc?bc[t]:!Cc(t)&&e.get(t)||yc]},Nc=new WeakMap;let Pc=0;const Oc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Ec(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=Nc.get(e),o)return o;if(o=++Pc+"~",Nc.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Oc(e[i])+",";Nc.set(e,o)}if(n==Ec){o="#";const t=Ec.keys(e).sort();for(;!Cc(i=t.pop());)Cc(e[i])||(o+=i+":"+Oc(e[i])+",");Nc.set(e,o)}}return o};let Mc=!0;const[Rc,Dc]=Lc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[wc,wc],Vc={isOnline:()=>Mc,isVisible:()=>{const e=_c&&document.visibilityState;return Cc(e)||"hidden"!==e}},jc={initFocus:e=>(_c&&document.addEventListener("visibilitychange",e),Rc("focus",e),()=>{_c&&document.removeEventListener("visibilitychange",e),Dc("focus",e)}),initReconnect:e=>{const t=()=>{Mc=!0,e()},n=()=>{Mc=!1};return Rc("online",t),Rc("offline",n),()=>{Dc("online",t),Dc("offline",n)}}},Ic=!s.useId,Fc=!Lc||"Deno"in window,Bc=Fc?s.useEffect:s.useLayoutEffect,Hc="undefined"!=typeof navigator&&navigator.connection,Uc=!Fc&&Hc&&(["slow-2g","2g"].includes(Hc.effectiveType)||Hc.saveData),zc=e=>{if(Sc(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Oc(e):"",t]};let qc=0;const Zc=()=>++qc,Wc=2;var $c=Wc;async function Gc(...e){const[t,n,r,o]=e,i=kc({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=!1!==i.revalidate,u=e=>"function"==typeof s?s(e):!1!==s,d=i.throwOnError;if(Sc(n)){const e=n,r=[],o=t.keys();for(let n=o.next();!n.done;n=o.next()){const o=n.value;!/^\$(inf|sub)\$/.test(o)&&e(t.get(o)._k)&&r.push(o)}return Promise.all(r.map(f))}return f(n);async function f(n){const[o]=zc(n);if(!o)return;const[i,s]=Ac(t,o),[f,p,m]=vc.get(t),h=f[o],g=()=>c&&(delete m[o],h&&h[0])?h[0](Wc).then((()=>i().data)):i().data;if(e.length<3)return g();let v,y=r;const b=Zc();p[o]=[b,0];const w=!Cc(l),x=i(),E=x.data,C=x._c,S=Cc(C)?E:C;if(w&&(l=Sc(l)?l(S):l,s({data:l,_c:S})),Sc(y))try{y=y(S)}catch(e){v=e}if(y&&Sc(y.then)){if(y=await y.catch((e=>{v=e})),b!==p[o][0]){if(v)throw v;return y}v&&w&&u(v)&&(a=!0,y=S,s({data:y,_c:xc}))}a&&(v||(Sc(a)&&(y=a(y,S)),s({data:y,_c:xc}))),p[o][1]=Zc();const k=await g();if(s({_c:xc}),!v)return a?k:y;if(d)throw v}}const Yc=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Xc=(e,t)=>{if(!vc.has(e)){const n=kc(jc,t),r={},o=Gc.bind(xc,e);let i=wc;const a={},s=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=a[t];if(o)for(const e of o)e(n,r)},c=()=>{if(!vc.has(e)&&(vc.set(e,[r,{},{},{},o,l,s]),!Fc)){const t=n.initFocus(setTimeout.bind(xc,Yc.bind(xc,r,0))),o=n.initReconnect(setTimeout.bind(xc,Yc.bind(xc,r,1)));i=()=>{t&&t(),o&&o(),vc.delete(e)}}};return c(),[e,o,c,i]}return[e,vc.get(e)[4]]},[Jc,Kc]=Xc(new Map),Qc=kc({onLoadingSlow:wc,onSuccess:wc,onError:wc,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!Cc(o)&&i>o||setTimeout(n,a,r)},onDiscarded:wc,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Uc?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Uc?5e3:3e3,compare:(e,t)=>Oc(e)==Oc(t),isPaused:()=>!1,cache:Jc,mutate:Kc,fallback:{}},Vc),eu=(e,t)=>{const n=kc(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=kc(o,a))}return n},tu=(0,s.createContext)({}),nu=Lc&&window.__SWR_DEVTOOLS_USE__,ru=nu?window.__SWR_DEVTOOLS_USE__:[],ou=ru.concat((e=>(t,n,r)=>{const o=n&&((...e)=>{const[r]=zc(t),[,,,o]=vc.get(Jc),i=o[r];return i?(delete o[r],i):n(...e)});return e(t,o,r)}));nu&&(window.__SWR_DEVTOOLS_REACT__=s);const iu={dedupe:!0},au=Ec.defineProperty((e=>{const{value:t}=e,n=(0,s.useContext)(tu),r=Sc(t),o=(0,s.useMemo)((()=>r?t(n):t),[r,n,t]),i=(0,s.useMemo)((()=>r?o:eu(n,o)),[r,n,o]),a=o&&o.provider,l=(0,s.useRef)(xc);a&&!l.current&&(l.current=Xc(a(i.cache||Jc),o));const c=l.current;return c&&(i.cache=c[0],i.mutate=c[1]),Bc((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,s.createElement)(tu.Provider,kc(e,{value:i}))}),"defaultValue",{value:Qc}),su=(lu=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[m,h,g]=vc.get(r),[v,y]=zc(e),b=(0,s.useRef)(!1),w=(0,s.useRef)(!1),x=(0,s.useRef)(v),E=(0,s.useRef)(t),C=(0,s.useRef)(n),S=()=>C.current,k=()=>S().isVisible()&&S().isOnline(),[T,L,_,A]=Ac(r,v),N=(0,s.useRef)({}).current,P=Cc(a)?n.fallback[v]:a,O=(e,t)=>{for(const n in N){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!Cc(e[r]))return!1;if(!o(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},M=(0,s.useMemo)((()=>{const e=!!v&&!!t&&(Cc(l)?!S().isPaused()&&!i&&(!!Cc(c)||c):l),n=t=>{const n=kc(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=T(),o=A(),a=n(r),s=r===o?a:n(o);let u=a;return[()=>{const e=n(T());return O(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]}),[r,v]),R=(0,gc.useSyncExternalStore)((0,s.useCallback)((e=>_(v,((t,n)=>{O(n,t)||e()}))),[r,v]),M[0],M[1]),D=!b.current,V=m[v]&&m[v].length>0,j=R.data,I=Cc(j)?P:j,F=R.error,B=(0,s.useRef)(I),H=p?Cc(j)?B.current:j:I,U=!(V&&!Cc(F))&&(D&&!Cc(l)?l:!S().isPaused()&&(i?!Cc(I)&&c:Cc(I)||c)),z=!!(v&&t&&D&&U),q=Cc(R.isValidating)?z:R.isValidating,Z=Cc(R.isLoading)?z:R.isLoading,W=(0,s.useCallback)((async e=>{const t=E.current;if(!v||!t||w.current||S().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!g[v]||!s.dedupe,c=()=>Ic?!w.current&&v===x.current&&b.current:v===x.current,u={isValidating:!1,isLoading:!1},d=()=>{L(u)},f=()=>{const e=g[v];e&&e[1]===i&&delete g[v]},p={isValidating:!0};Cc(T().data)&&(p.isLoading=!0);try{if(l&&(L(p),n.loadingTimeout&&Cc(T().data)&&setTimeout((()=>{a&&c()&&S().onLoadingSlow(v,n)}),n.loadingTimeout),g[v]=[t(y),Zc()]),[r,i]=g[v],r=await r,l&&setTimeout(f,n.dedupingInterval),!g[v]||g[v][1]!==i)return l&&c()&&S().onDiscarded(v),!1;u.error=xc;const e=h[v];if(!Cc(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&c()&&S().onDiscarded(v),!1;const s=T().data;u.data=o(s,r)?s:r,l&&c()&&S().onSuccess(r,v,n)}catch(e){f();const t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,v,t),(!0===n||Sc(n)&&n(e))&&k()&&t.onErrorRetry(e,v,t,(e=>{const t=m[v];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0}),[v,r]),$=(0,s.useCallback)(((...e)=>Gc(r,x.current,...e)),[]);if(Bc((()=>{E.current=t,C.current=n,Cc(j)||(B.current=j)})),Bc((()=>{if(!v)return;const e=W.bind(xc,iu);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(v,m,((n,r={})=>{if(0==n){const n=Date.now();S().revalidateOnFocus&&n>t&&k()&&(t=n+S().focusThrottleInterval,e())}else if(1==n)S().revalidateOnReconnect&&k()&&e();else{if(n==$c)return W();if(3==n)return W(r)}}));return w.current=!1,x.current=v,b.current=!0,L({_k:y}),U&&(Cc(I)||Fc?e():(e=>{Lc&&typeof window.requestAnimationFrame!=Tc?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{w.current=!0,n()}}),[v]),Bc((()=>{let e;function t(){const t=Sc(u)?u(T().data):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){T().error||!d&&!S().isVisible()||!f&&!S().isOnline()?t():W(iu).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[u,d,f,v]),(0,s.useDebugValue)(H),i&&Cc(I)&&v){if(!Ic&&Fc)throw new Error("Fallback data is required when using suspense in SSR.");throw E.current=t,C.current=n,w.current=!1,Cc(F)?W(iu):F}return{mutate:$,get data(){return N.data=!0,H},get error(){return N.error=!0,F},get isValidating(){return N.isValidating=!0,q},get isLoading(){return N.isLoading=!0,Z}}},function(...e){const t=kc(Qc,(0,s.useContext)(tu)),[n,r,o]=(e=>Sc(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),i=eu(t,o);let a=lu;const{use:l}=i,c=(l||[]).concat(ou);for(let e=c.length;e--;)a=c[e](a);return a(n,r||i.fetcher||null,i)});var lu;const cu=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i};var uu=o(798);const{useSyncExternalStoreWithSelector:du}=uu,fu=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?cu(e):cu)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=du(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,s.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},pu=e=>e?fu(e):fu,mu=new Map,hu=e=>{const t=mu.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},gu=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=mu.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return mu.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let f=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!f)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...hu(l.name),[s]:o.getState()}),c)};const p=(...e)=>{const t=f;f=!1,n(...e),f=t},m=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(m):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?m:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):vu(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(m),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(hu(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(hu(l.name));case"ROLLBACK":return vu(e.state,(e=>{if(void 0===s)return p(e),void(null==u||u.init(o.getState()));p(e[s]),null==u||u.init(hu(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return vu(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return f=!f}return}})),m},vu=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function yu(e){let t;try{t=e()}catch(e){return}const n={getItem:e=>{var n;const r=e=>null===e?null:JSON.parse(e),o=null!=(n=t.getItem(e))?n:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n)),removeItem:e=>t.removeItem(e)};return n}const bu=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return bu(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return bu(t)(e)}}}},wu=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=bu(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let m;const h=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return bu(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=i.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),a=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p})(e,t)):((e,t)=>(n,r,o)=>{let i={storage:yu((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const f=e(((...e)=>{n(...e),u()}),r,o);let p;const m=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:f)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:f))||void 0;return bu(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=i.merge(e,null!=(t=r())?t:f),n(p,!0),u()})).then((()=>{null==o||o(p,void 0),p=r(),a=!0,l.forEach((e=>e(p)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||m(),p||f})(e,t),xu=pu(wu(gu((e=>({designColors:{},queuedTour:null,setDesignColors(t){e({designColors:t})},queueTourForRedirect(t){e({queuedTour:t})},clearQueuedTour(){e({queuedTour:null})}})),{name:"Extendify Assist Globals Sync"}),{name:"extendify-assist-globals-sync"})),Eu=()=>{const{designColors:t,setDesignColors:n}=xu(),{data:r}=su("designColors",(()=>{const e=window.getComputedStyle(document.documentElement),n=e?.getPropertyValue("--ext-partner-theme-primary-bg");var r;if(n)return{mainColor:n,darkColor:hc(n).darken(.1).toHex(),textColor:null!==(r=e?.getPropertyValue("--ext-partner-theme-primary-text"))&&void 0!==r?r:"#fff"};const o=document?.querySelector("a.wp-has-current-submenu, li.current > a.current");if(!o)return t;const i=window.getComputedStyle(o)?.["background-color"];return{mainColor:i,darkColor:hc(i).darken(.1).toHex(),textColor:"#fff"}}));return(0,e.useEffect)((()=>{r?.mainColor&&document.documentElement.style.setProperty("--ext-design-main",r.mainColor),r?.darkColor&&document.documentElement.style.setProperty("--ext-design-dark",r.darkColor),r?.textColor&&document.documentElement.style.setProperty("--ext-design-text",r.textColor),n(r)}),[r,n]),r||{}};function Cu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Su}=Object.prototype,{getPrototypeOf:ku}=Object,Tu=(e=>t=>{const n=Su.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Lu=e=>(e=e.toLowerCase(),t=>Tu(t)===e),_u=e=>t=>typeof t===e,{isArray:Au}=Array,Nu=_u("undefined"),Pu=Lu("ArrayBuffer"),Ou=_u("string"),Mu=_u("function"),Ru=_u("number"),Du=e=>null!==e&&"object"==typeof e,Vu=e=>{if("object"!==Tu(e))return!1;const t=ku(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ju=Lu("Date"),Iu=Lu("File"),Fu=Lu("Blob"),Bu=Lu("FileList"),Hu=Lu("URLSearchParams");function Uu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Au(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function zu(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Zu=e=>!Nu(e)&&e!==qu,Wu=($u="undefined"!=typeof Uint8Array&&ku(Uint8Array),e=>$u&&e instanceof $u);var $u;const Gu=Lu("HTMLFormElement"),Yu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xu=Lu("RegExp"),Ju=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Uu(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},Ku="abcdefghijklmnopqrstuvwxyz",Qu="0123456789",ed={DIGIT:Qu,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Qu};var td={isArray:Au,isArrayBuffer:Pu,isBuffer:function(e){return null!==e&&!Nu(e)&&null!==e.constructor&&!Nu(e.constructor)&&Mu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Su.call(e)===t||Mu(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pu(e.buffer),t},isString:Ou,isNumber:Ru,isBoolean:e=>!0===e||!1===e,isObject:Du,isPlainObject:Vu,isUndefined:Nu,isDate:ju,isFile:Iu,isBlob:Fu,isRegExp:Xu,isFunction:Mu,isStream:e=>Du(e)&&Mu(e.pipe),isURLSearchParams:Hu,isTypedArray:Wu,isFileList:Bu,forEach:Uu,merge:function e(){const{caseless:t}=Zu(this)&&this||{},n={},r=(r,o)=>{const i=t&&zu(n,o)||o;Vu(n[i])&&Vu(r)?n[i]=e(n[i],r):Vu(r)?n[i]=e({},r):Au(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Uu(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Uu(t,((t,r)=>{n&&Mu(t)?e[r]=Cu(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ku(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Tu,kindOfTest:Lu,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Au(e))return e;let t=e.length;if(!Ru(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Gu,hasOwnProperty:Yu,hasOwnProp:Yu,reduceDescriptors:Ju,freezeMethods:e=>{Ju(e,((t,n)=>{if(Mu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Mu(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Au(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:zu,global:qu,isContextDefined:Zu,ALPHABET:ed,generateString:(e=16,t=ed.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Mu(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Du(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Au(e)?[]:{};return Uu(e,((e,t)=>{const i=n(e,r+1);!Nu(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)}};function nd(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}td.inherits(nd,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:td.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rd=nd.prototype,od={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{od[e]={value:e}})),Object.defineProperties(nd,od),Object.defineProperty(rd,"isAxiosError",{value:!0}),nd.from=(e,t,n,r,o,i)=>{const a=Object.create(rd);return td.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),nd.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var id=nd;function ad(e){return td.isPlainObject(e)||td.isArray(e)}function sd(e){return td.endsWith(e,"[]")?e.slice(0,-2):e}function ld(e,t,n){return e?e.concat(t).map((function(e,t){return e=sd(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const cd=td.toFlatObject(td,{},null,(function(e){return/^is[A-Z]/.test(e)}));var ud=function(e,t,n){if(!td.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=td.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!td.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&td.isSpecCompliantForm(t);if(!td.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(td.isDate(e))return e.toISOString();if(!s&&td.isBlob(e))throw new id("Blob is not supported. Use a Buffer instead.");return td.isArrayBuffer(e)||td.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(td.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(td.isArray(e)&&function(e){return td.isArray(e)&&!e.some(ad)}(e)||(td.isFileList(e)||td.endsWith(n,"[]"))&&(s=td.toArray(e)))return n=sd(n),s.forEach((function(e,r){!td.isUndefined(e)&&null!==e&&t.append(!0===a?ld([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!ad(e)||(t.append(ld(o,n,i),l(e)),!1)}const u=[],d=Object.assign(cd,{defaultVisitor:c,convertValue:l,isVisitable:ad});if(!td.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!td.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),td.forEach(n,(function(n,i){!0===(!(td.isUndefined(n)||null===n)&&o.call(t,n,td.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function dd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function fd(e,t){this._pairs=[],e&&ud(e,this,t)}const pd=fd.prototype;pd.append=function(e,t){this._pairs.push([e,t])},pd.toString=function(e){const t=e?function(t){return e.call(this,t,dd)}:dd;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var md=fd;function hd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gd(e,t,n){if(!t)return e;const r=n&&n.encode||hd,o=n&&n.serialize;let i;if(i=o?o(t,n):td.isURLSearchParams(t)?t.toString():new md(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var vd=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){td.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},yd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bd="undefined"!=typeof URLSearchParams?URLSearchParams:md,wd=FormData;const xd=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Ed="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var Cd={isBrowser:!0,classes:{URLSearchParams:bd,FormData:wd,Blob:Blob},isStandardBrowserEnv:xd,isStandardBrowserWebWorkerEnv:Ed,protocols:["http","https","file","blob","url","data"]},Sd=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&td.isArray(r)?r.length:i,s?(td.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&td.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&td.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(td.isFormData(e)&&td.isFunction(e.entries)){const n={};return td.forEachEntry(e,((e,r)=>{t(function(e){return td.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const kd={"Content-Type":void 0},Td={transitional:yd,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=td.isObject(e);if(o&&td.isHTMLForm(e)&&(e=new FormData(e)),td.isFormData(e))return r&&r?JSON.stringify(Sd(e)):e;if(td.isArrayBuffer(e)||td.isBuffer(e)||td.isStream(e)||td.isFile(e)||td.isBlob(e))return e;if(td.isArrayBufferView(e))return e.buffer;if(td.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ud(e,new Cd.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Cd.isNode&&td.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=td.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ud(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(td.isString(e))try{return(0,JSON.parse)(e),td.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Td.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&td.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw id.from(e,id.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cd.classes.FormData,Blob:Cd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};td.forEach(["delete","get","head"],(function(e){Td.headers[e]={}})),td.forEach(["post","put","patch"],(function(e){Td.headers[e]=td.merge(kd)}));var Ld=Td;const _d=td.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ad=Symbol("internals");function Nd(e){return e&&String(e).trim().toLowerCase()}function Pd(e){return!1===e||null==e?e:td.isArray(e)?e.map(Pd):String(e)}function Od(e,t,n,r){return td.isFunction(r)?r.call(this,t,n):td.isString(t)?td.isString(r)?-1!==t.indexOf(r):td.isRegExp(r)?r.test(t):void 0:void 0}class Md{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Nd(t);if(!o)throw new Error("header name must be a non-empty string");const i=td.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Pd(e))}const i=(e,t)=>td.forEach(e,((e,n)=>o(e,n,t)));return td.isPlainObject(e)||e instanceof this.constructor?i(e,t):td.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_d[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Nd(e)){const n=td.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(td.isFunction(t))return t.call(this,e,n);if(td.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Nd(e)){const n=td.findKey(this,e);return!(!n||void 0===this[n]||t&&!Od(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Nd(e)){const o=td.findKey(n,e);!o||t&&!Od(0,n[o],o,t)||(delete n[o],r=!0)}}return td.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Od(0,this[o],o,e)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return td.forEach(this,((r,o)=>{const i=td.findKey(n,o);if(i)return t[i]=Pd(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Pd(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return td.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&td.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ad]=this[Ad]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Nd(e);t[r]||(function(e,t){const n=td.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return td.isArray(e)?e.forEach(r):r(e),this}}Md.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),td.freezeMethods(Md.prototype),td.freezeMethods(Md);var Rd=Md;function Dd(e,t){const n=this||Ld,r=t||n,o=Rd.from(r.headers);let i=r.data;return td.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Vd(e){return!(!e||!e.__CANCEL__)}function jd(e,t,n){id.call(this,null==e?"canceled":e,id.ERR_CANCELED,t,n),this.name="CanceledError"}td.inherits(jd,id,{__CANCEL__:!0});var Id=jd,Fd=Cd.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),td.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),td.isString(r)&&a.push("path="+r),td.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Bd(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Hd=Cd.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=td.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ud=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};function zd(e,t){let n=0;const r=Ud(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var qd="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Rd.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}td.isFormData(r)&&(Cd.isStandardBrowserEnv||Cd.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const c=Bd(e.baseURL,e.url);function u(){if(!l)return;const r=Rd.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new id("Request failed with status code "+n.status,[id.ERR_BAD_REQUEST,id.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),gd(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(u)},l.onabort=function(){l&&(n(new id("Request aborted",id.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new id("Network Error",id.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||yd;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new id(t,r.clarifyTimeoutError?id.ETIMEDOUT:id.ECONNABORTED,e,l)),l=null},Cd.isStandardBrowserEnv){const t=(e.withCredentials||Hd(c))&&e.xsrfCookieName&&Fd.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&td.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),td.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",zd(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",zd(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Id(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===Cd.protocols.indexOf(d)?n(new id("Unsupported protocol "+d+":",id.ERR_BAD_REQUEST,e)):l.send(r||null)}))};const Zd={http:null,xhr:qd};td.forEach(Zd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Wd={getAdapter:e=>{e=td.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=td.isString(n)?Zd[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new id(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(td.hasOwnProp(Zd,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!td.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Zd};function $d(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Id(null,e)}function Gd(e){return $d(e),e.headers=Rd.from(e.headers),e.data=Dd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wd.getAdapter(e.adapter||Ld.adapter)(e).then((function(t){return $d(e),t.data=Dd.call(e,e.transformResponse,t),t.headers=Rd.from(t.headers),t}),(function(t){return Vd(t)||($d(e),t&&t.response&&(t.response.data=Dd.call(e,e.transformResponse,t.response),t.response.headers=Rd.from(t.response.headers))),Promise.reject(t)}))}const Yd=e=>e instanceof Rd?e.toJSON():e;function Xd(e,t){t=t||{};const n={};function r(e,t,n){return td.isPlainObject(e)&&td.isPlainObject(t)?td.merge.call({caseless:n},e,t):td.isPlainObject(t)?td.merge({},t):td.isArray(t)?t.slice():t}function o(e,t,n){return td.isUndefined(t)?td.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!td.isUndefined(t))return r(void 0,t)}function a(e,t){return td.isUndefined(t)?td.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Yd(e),Yd(t),!0)};return td.forEach(Object.keys(e).concat(Object.keys(t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);td.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Jd="1.3.2",Kd={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Kd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Qd={};Kd.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Jd+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new id(r(o," has been removed"+(t?" in "+t:"")),id.ERR_DEPRECATED);return t&&!Qd[o]&&(Qd[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var ef={assertOptions:function(e,t,n){if("object"!=typeof e)throw new id("options must be an object",id.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new id("option "+i+" must be "+n,id.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new id("Unknown option "+i,id.ERR_BAD_OPTION)}},validators:Kd};const tf=ef.validators;class nf{constructor(e){this.defaults=e,this.interceptors={request:new vd,response:new vd}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;let i;void 0!==n&&ef.assertOptions(n,{silentJSONParsing:tf.transitional(tf.boolean),forcedJSONParsing:tf.transitional(tf.boolean),clarifyTimeoutError:tf.transitional(tf.boolean)},!1),void 0!==r&&ef.assertOptions(r,{encode:tf.function,serialize:tf.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),i=o&&td.merge(o.common,o[t.method]),i&&td.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Rd.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Gd.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=Gd.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return gd(Bd((e=Xd(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}td.forEach(["delete","get","head","options"],(function(e){nf.prototype[e]=function(t,n){return this.request(Xd(n||{},{method:e,url:t,data:(n||{}).data}))}})),td.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Xd(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}nf.prototype[e]=t(),nf.prototype[e+"Form"]=t(!0)}));var rf=nf;class of{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Id(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new of((function(t){e=t}));return{token:t,cancel:e}}}var af=of;const sf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sf).forEach((([e,t])=>{sf[t]=e}));var lf=sf;const cf=function e(t){const n=new rf(t),r=Cu(rf.prototype.request,n);return td.extend(r,rf.prototype,n,{allOwnKeys:!0}),td.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Xd(t,n))},r}(Ld);cf.Axios=rf,cf.CanceledError=Id,cf.CancelToken=af,cf.isCancel=Vd,cf.VERSION=Jd,cf.toFormData=ud,cf.AxiosError=id,cf.Cancel=cf.CanceledError,cf.all=function(e){return Promise.all(e)},cf.spread=function(e){return function(t){return e.apply(null,t)}},cf.isAxiosError=function(e){return td.isObject(e)&&!0===e.isAxiosError},cf.mergeConfig=Xd,cf.AxiosHeaders=Rd,cf.formToJSON=e=>Sd(td.isHTMLForm(e)?new FormData(e):e),cf.HttpStatusCode=lf,cf.default=cf;const uf=cf.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});uf.interceptors.request.use((e=>df(e)),(e=>console.log(e)||e)),uf.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e),(e=>console.log(e)||e));const df=e=>(e.headers["X-Extendify-Assist-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Assist-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e);var ff=o(184),pf=o.n(ff);const mf={"site-type":{step:(0,t.__)("Site Industry","extendify"),title:(0,t.__)("Let's Start Building Your Website","extendify"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Select Site Industry","extendify")},"site-title":{step:(0,t.__)("Site Title","extendify"),title:(0,t.__)("Continue Building Your Website","extendify"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Set Site Title","extendify")},goals:{step:(0,t.__)("Goals","extendify"),title:(0,t.__)("Continue Building Your Website","extendify"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Select Site Goals","extendify")},layout:{step:(0,t.__)("Design","extendify"),title:(0,t.__)("Continue Building Your Website","extendify"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Select Site Design","extendify")},pages:{step:(0,t.__)("Pages","extendify"),title:(0,t.__)("Continue Building Your Website","extendify"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Select Site Pages","extendify")},confirmation:{step:(0,t.__)("Launch","extendify"),title:(0,t.__)("Let's Launch Your Site","extendify"),description:(0,t.__)("You're one step away from creating a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify"),buttonText:(0,t.__)("Launch The Site","extendify")}},hf=()=>{const t=(()=>{var e;const t=JSON.parse(null!==(e=localStorage.getItem("extendify-pages"))&&void 0!==e?e:null)?.state?.currentPageSlug;return Object.keys(mf).includes(t)?t:"site-type"})();let n=!1;return(0,e.createElement)("div",{className:"w-full border border-gray-300 text-base bg-white relative mb-6 pt-8 rounded overflow-hidden"},(0,e.createElement)("img",{className:"max-w-lg w-full block mx-auto",src:window.extAssistData.asset_path+"/extendify-preview.png"}),(0,e.createElement)("div",{className:"px-3 mx-6 text-center"},(0,e.createElement)("h2",{className:"text-2xl mb-4 mt-8"},mf[t]?.title),(0,e.createElement)("p",{className:"my-4 text-base"},mf[t]?.description),(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-launch`,className:"inline-block rounded my-4 px-4 py-2 bg-design-main text-white border-none no-underline cursor-pointer"},mf[t]?.buttonText)),(0,e.createElement)("div",{className:"justify-between items-center mt-4 py-6 px-20 flex bg-gray-50"},Object.keys(mf).map(((r,o)=>(r===t&&(n=!0),(0,e.createElement)(e.Fragment,{key:r},(0,e.createElement)(gf,{reached:n,stepName:mf[r].step,current:r===t}),o!==Object.keys(mf).length-1&&(0,e.createElement)("div",{className:pf()("hidden lg:block border-0 border-b-2 border-solid h-0 grow w-full",{"border-design-main":!n,"border-gray-300":n})})))))))},gf=t=>{let{reached:n,current:r,stepName:o,bgColor:i}=t;return(0,e.createElement)("div",{className:"flex-none text-sm flex items-center gap-x-2"},(0,e.createElement)("span",{style:{background:n?void 0:i},className:pf()("w-6 h-6 rounded-full flex items-center justify-center text-white",{"disc-checked bg-design-main border-opacity-10":!n,"disc-number bg-gray-300":n&&!r,"border-dashed border-2 border-design-main":r})},!n&&(0,e.createElement)("span",{className:"dashicons dashicons-saved"})),(0,e.createElement)("span",{className:"sr-only"},o))};var vf=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const yf=()=>{const{quickLinks:o,loading:i,error:a}=(()=>{const{data:e,error:t}=su("quicklinks",(async()=>{const e=await uf.get("assist/quicklinks");if(!e?.data||!Array.isArray(e.data))throw new Error("Bad Data");return e.data}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{quickLinks:e,error:t,loading:!e&&!t}})();return i||a?(0,e.createElement)("div",{className:"assist-quick-links-module w-full flex justify-center bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8 rounded-b-lg"},(0,e.createElement)(n.Spinner,null)):0===o.length?(0,e.createElement)("div",{className:"assist-quick-links-module w-full bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8 rounded-b-lg"},(0,t.__)("No quick links found...","extendify")):(0,e.createElement)("div",{id:"assist-quick-links-module",className:"w-full border-l border-r border-b border-gray-300 bg-white p-4 lg:p-8 rounded-b-lg"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0"},(0,t.__)("Quick Links","extendify")),(0,e.createElement)("div",{className:"grid grid-cols-1 xs:grid-cols-2 gap-4 mt-4"},o.map((t=>(0,e.createElement)("a",{key:t.slug,className:"flex items-center no-underline hover:underline text-black hover:text-design-main text-sm",href:"view-site"==t.slug?`${window.extAssistData.home}`:`${window.extAssistData.adminUrl}${t.internalLink}`},(0,e.createElement)("span",null,t.name),(0,e.createElement)(r,{icon:vf,className:"fill-current"}))))))},bf=(e,t)=>uf.post("assist/options",{option:e,value:t}),wf=async e=>{const{data:t}=await uf.get("assist/options",{params:{option:e}});return t},xf=()=>{const{data:e,error:t}=su("recommendations",(async()=>{const{data:e}=await uf.get("assist/active-plugins"),t=await uf.get("assist/recommendations");if(!t?.data||!Array.isArray(t.data))throw new Error("Bad Data");return t.data?.filter((t=>!t?.pluginDepSlugs?.length||t?.pluginDepSlugs?.some((t=>e?.includes(t)))))}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{recommendations:e,error:t,loading:!e&&!t}};var Ef;const Cf="extendify-assist-recommendations",Sf={viewedRecommendations:[],...null!==(Ef=JSON.parse(localStorage.getItem(Cf)||"{}")?.state)&&void 0!==Ef?Ef:{}},kf={getItem:async()=>JSON.stringify(await uf.get("assist/recommendation-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/recommendation-data",{data:n}))},removeItem:()=>{}},Tf=pu(wu((e=>({...Sf,track(t){const n=(new Date).toISOString(),r=n;e((e=>{let{viewedRecommendations:o}=e;const i=o.find((e=>e.slug===t));return{viewedRecommendations:[...o.filter((e=>e.slug!==t)),i?{...i,count:i.count+1,lastViewedAt:n}:{slug:t,firstViewedAt:r,lastViewedAt:n,count:1}]}}))}})),{name:Cf,storage:yu((()=>kf))})),Lf=()=>{const{recommendations:o,loading:i,error:a}=xf(),{track:s}=Tf();return i||a?(0,e.createElement)("div",{className:"assist-recommendations-module w-full flex justify-center bg-white border border-gray-300 p-2 lg:p-4 rounded"},(0,e.createElement)(n.Spinner,null)):0===o?.length?(0,e.createElement)("div",{className:"assist-recommendations-module w-full border border-gray-300 p-2 lg:p-4 bg-white rounded"},(0,t.__)("All set! We don't have any recommendations right now for your site.","extendify")):(0,e.createElement)("div",{id:"assist-recommendations-module",className:"w-full border border-gray-300 text-base bg-white p-4 md:p-8 rounded"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h2",{className:"text-lg leading-tight m-0"},(0,t.__)("Recommendations","extendify")),o?.length>2&&(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#recommendations",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},(0,t.sprintf)((0,t.__)("View all (%s)","extendify"),o?.length),(0,e.createElement)(r,{icon:vf,className:"fill-current"}))),(0,e.createElement)("div",{className:"w-full mt-4 text-base flex flex-col gap-4"},o.slice(0,5).map((t=>{let{slug:n,title:r,description:o,linkType:i,externalLink:a,internalLink:l}=t;return(0,e.createElement)("a",{key:n,className:"block p-4 bg-gray-100 hover:bg-gray-200 text-gray-900 no-underline",href:"externalLink"===i?`${a}`:`${window.extAssistData.adminUrl}${l}`,onClick:()=>s(n),target:"externalLink"===i?"_blank":"",rel:"externalLink"===i?"noreferrer":void 0},(0,e.createElement)("h3",{className:"text-base font-medium m-0 mb-1.5"},r),(0,e.createElement)("span",{className:"text-sm"},o))}))))};var _f=(0,e.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(i.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"}));var Af;const Nf="extendify-assist-globals",Pf={dismissedNotices:[],dismissedBanners:[],modals:[],...null!==(Af=JSON.parse(localStorage.getItem(Nf)||"{}")?.state)&&void 0!==Af?Af:{}},Of={getItem:async()=>JSON.stringify(await uf.get("assist/global-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/global-data",{data:n}))},removeItem:()=>{}},Mf=pu(wu(gu(((e,t)=>({...Pf,pushModal(t){e((e=>({modals:[t,...e.modals]})))},popModal(){e((e=>({modals:e.modals.slice(1)})))},clearModals(){e({modals:[]})},isDismissed(e){return t().dismissedNotices.some((t=>t.id===e))},dismissNotice(n){if(t().isDismissed(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedNotices:[...e.dismissedNotices,r]})))},isDismissedBanner(e){return t().dismissedBanners.some((t=>t.id===e))},dismissBanner(n){if(t().isDismissedBanner(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedBanners:[...e.dismissedBanners,r]})))}})),{name:"Extendify Assist Globals"}),{name:Nf,storage:yu((()=>Of)),partialize:e=>(delete e.modals,e)})),Rf=()=>{const{isDismissedBanner:n,dismissBanner:o}=Mf(),{recommendationsBanner:i,loading:a,error:s}=(()=>{const{data:e,error:t}=su("recommendationsBanner",(async()=>{const e=await uf.get("assist/recommendations-banner");return e?.data&&Array.isArray(e.data)?e.data:[]}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{recommendationsBanner:e,error:t,loading:!e&&!t}})();if(s||a)return null;if(!window.extAssistData.dismissedNotices.find((e=>"welcome-message"===e.id)))return null;const l=i?.filter((e=>{let{slug:t,siteAssistant:r}=e;return r&&!n(t)}))?.at(0);return l?.link?(0,e.createElement)("div",{className:"w-full relative mt-4 mb-2"},(0,e.createElement)("a",{key:l.slug,className:"",href:l.link,target:"_blank",rel:"noreferrer"},(0,e.createElement)("img",{src:l.mobileImageURL,className:"w-full sm:hidden"}),(0,e.createElement)("img",{src:l.desktopImageURL,className:"w-full hidden sm:block"})),(0,e.createElement)("button",{"aria-label":(0,t.__)("Dismiss Banner","extendify-sdk"),type:"button",className:"absolute top-0 right-0 m-3.5 p-0 bg-transparent cursor-pointer transition-opacity duration-200 opacity-60 hover:opacity-90",onClick:()=>o(l.slug)},(0,e.createElement)(r,{icon:_f,className:"text-white fill-current w-6 h-6"}))):null},Df=()=>{const{data:e,error:t}=su("support-articles",(async()=>{const e=await uf.get("assist/support-articles");if(!e?.data||!Array.isArray(e.data))throw new Error("Bad Data");return e.data}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{data:e,error:t,loading:!e&&!t}};var Vf;const jf="extendify-assist-knowledge-base",If={articles:[],recentArticles:[],viewedArticles:[],activeCategory:null,searchTerm:null,offset:0,...null!==(Vf=JSON.parse(localStorage.getItem(jf)||"{}")?.state)&&void 0!==Vf?Vf:{}},Ff={getItem:async()=>JSON.stringify(await uf.get("assist/support-articles-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/support-articles-data",{data:n}))},removeItem:()=>{}},Bf=pu(wu(gu((e=>({...If,pushArticle(t){const{slug:n,title:r}=t;e((e=>{const o=(new Date).toISOString(),i=o,a=e.viewedArticles.find((e=>e.slug===n));return{articles:[t,...e.articles],recentArticles:[t,...e.recentArticles.slice(0,9)],viewedArticles:[...e.viewedArticles.filter((e=>e.slug!==n)),a?{...a,count:a.count+1,lastViewedAt:o}:{slug:n,title:r,firstViewedAt:i,lastViewedAt:o,count:1}]}}))},popArticle(){e((e=>({articles:e.articles.slice(1)})))},clearArticles(){e({articles:[]})},setActiveCategory(t){e({activeCategory:t})},reset(){e({articles:[],activeCategory:null,searchTerm:null,offset:0})},updateTitle(t,n){e((e=>({articles:e.articles.map((e=>(e.slug===t&&(e.title=n),e)))})))},clearSearchTerm(){e({searchTerm:null,offset:0})},setSearchTerm(t){e({searchTerm:t,offset:0})},setOffset(t){e({offset:t})}})),{name:"Extendify Assist Knowledge Base"}),{name:jf,storage:yu((()=>Ff)),partialize:e=>(delete e.articles,delete e.activeCategory,delete e.searchTerm,delete e.offset,e)}));function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hf.apply(this,arguments)}function Uf(t){return(0,e.createElement)("svg",Hf({width:"111",height:"93",viewBox:"0 0 111 93",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M14.5101 87.2398C13.3358 90.2964 16.3444 93.2964 19.3977 92.1131L83.0531 65.0925L39.2382 22.4141L14.5101 87.2398Z",fill:"#495683"}),(0,e.createElement)("path",{d:"M40.2877 20.4995C36.3109 24.4124 42.7996 37.4558 54.7806 49.6327C66.7617 61.8097 79.6982 68.5091 83.6746 64.5962C87.6515 60.6834 81.1626 47.6398 69.1815 35.463C59.517 25.6405 49.2321 19.3822 43.5285 19.3828C42.1614 19.383 41.0566 19.7428 40.2877 20.4995Z",fill:"#2A3453"}),(0,e.createElement)("path",{d:"M34.2276 35.5482L33.7734 36.7374C33.7734 36.7393 33.7734 36.7413 33.7714 36.745C32.9333 41.096 37.9937 50.1253 46.3655 58.6339C54.4862 66.8873 63.1487 72.0336 67.6437 71.6321L69.788 70.722L74.5851 68.6868C73.5111 68.8561 72.1976 68.7082 70.7024 68.2774C65.3515 66.7413 57.6872 61.5758 50.4106 54.1803C43.3562 47.0103 38.4029 39.5096 36.7851 34.1605C36.3386 32.6887 36.1476 31.3786 36.2352 30.2852L34.2276 35.5482Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M28.0033 51.8643L27.8588 52.2422C27.8588 52.2442 27.8588 52.2462 27.8569 52.2481C26.9798 55.3069 30.699 62.0787 36.9658 68.4509C43.3477 74.9363 50.19 78.7863 53.1799 77.7709C53.186 77.7689 53.1895 77.7669 53.1934 77.7648L53.5014 77.6362L58.9633 75.3164C57.9282 75.7277 56.4508 75.5835 54.6846 74.9658C50.7841 73.6011 45.4804 69.9227 40.4276 64.7882C35.4825 59.7628 31.9351 54.5173 30.5667 50.6187C29.9605 48.8857 29.781 47.4198 30.1047 46.3594L28.0033 51.8643Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M22.4938 66.3067V66.3088L22.1664 67.1665C21.9033 69.3261 24.3282 73.5798 28.2773 77.5935C32.4528 81.8371 36.9223 84.381 38.9535 83.8079L39.3509 83.6403L44.2223 81.572C43.152 81.8135 41.5655 81.3867 39.7134 80.4219C37.2789 79.1547 34.3844 76.9579 31.6009 74.1275C28.8776 71.3596 26.7607 68.496 25.5211 66.0728C24.5426 64.1665 24.1079 62.5329 24.3516 61.4375L22.4938 66.3067Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M17.6223 79.0764C17.6223 79.0764 17.6223 79.0784 17.6203 79.0784L17.4352 79.5675C17.291 80.788 18.6574 83.1856 20.8834 85.4467C23.1446 87.7451 25.5596 89.1603 26.7645 88.9828H26.7665L27.2263 88.7861L31.1579 87.1174C30.1093 87.3239 28.2771 86.5131 26.273 84.9984C25.3824 84.3298 24.4583 83.5207 23.5539 82.6008C22.6963 81.7294 21.9359 80.8402 21.3006 79.9846C19.8446 78.0216 19.0298 76.2185 19.131 75.1211L17.6223 79.0764Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M105.061 51.8608C105.061 53.294 106.222 54.4556 107.655 54.4556C109.088 54.4556 110.25 53.294 110.25 51.8608C110.25 50.4275 109.088 49.2656 107.655 49.2656C106.222 49.2656 105.061 50.4275 105.061 51.8608Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M101.401 34.3311C101.401 36.3521 103.039 37.9907 105.06 37.9907C107.081 37.9907 108.719 36.3521 108.719 34.3311C108.719 32.31 107.081 30.6719 105.06 30.6719C103.039 30.6719 101.401 32.31 101.401 34.3311Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M85.2651 78.0852C85.2651 80.106 86.9037 81.7446 88.9244 81.7446C90.9454 81.7446 92.5837 80.106 92.5837 78.0852C92.5837 76.0641 90.9454 74.4258 88.9244 74.4258C86.9037 74.4258 85.2651 76.0641 85.2651 78.0852Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M64.5986 70.4947C64.5986 73.3612 66.9221 75.6847 69.7885 75.6847C72.6548 75.6847 74.9779 73.3612 74.9779 70.4947C74.9779 67.6282 72.6548 65.3047 69.7885 65.3047C66.9221 65.3047 64.5986 67.6282 64.5986 70.4947Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M83.1626 31.3154C83.1626 34.1817 85.4863 36.5055 88.3527 36.5055C91.2188 36.5055 93.5423 34.1817 93.5423 31.3154C93.5423 28.449 91.2188 26.125 88.3527 26.125C85.4863 26.125 83.1626 28.449 83.1626 31.3154Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M0.75 32.3154C0.75 35.1817 3.07369 37.5055 5.94006 37.5055C8.8062 37.5055 11.1297 35.1817 11.1297 32.3154C11.1297 29.449 8.8062 27.125 5.94006 27.125C3.07369 27.125 0.75 29.449 0.75 32.3154Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M85.7578 6.7825C85.7578 8.21584 86.9194 9.37751 88.3527 9.37751C89.7858 9.37751 90.9477 8.21584 90.9477 6.7825C90.9477 5.34938 89.7858 4.1875 88.3527 4.1875C86.9194 4.1875 85.7578 5.34938 85.7578 6.7825Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M24.0698 34.3311C24.0698 36.3521 25.7081 37.9907 27.7291 37.9907C29.7501 37.9907 31.3884 36.3521 31.3884 34.3311C31.3884 32.31 29.7501 30.6719 27.7291 30.6719C25.7081 30.6719 24.0698 32.31 24.0698 34.3311Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M23.8223 16.169C23.8223 17.6023 24.9841 18.7638 26.4172 18.7638C27.8503 18.7638 29.0121 17.6023 29.0121 16.169C29.0121 14.7359 27.8503 13.5742 26.4172 13.5742C24.9841 13.5742 23.8223 14.7359 23.8223 16.169Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M46.7744 3.0625C55.0321 9.74224 56.3113 21.8517 49.6318 30.1097",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M77.8042 8.66016C76.7538 12.07 69.3024 9.77439 68.2518 13.1842C67.2014 16.5942 74.6526 18.8898 73.6022 22.2998C72.5516 25.7099 65.1002 23.4141 64.0498 26.8239C62.9992 30.2343 70.4506 32.5301 69.3998 35.9404C68.3492 39.3508 60.8978 37.055 59.8472 40.4655",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M69.4951 54.7159C77.5638 47.8088 89.7037 48.7506 96.6105 56.8195",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}))}var zf=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M6.87171 7C7.02416 7 7.17037 7.05737 7.27818 7.15948C7.38598 7.2616 7.44654 7.40009 7.44654 7.54451V10.8115C7.44654 11.2448 7.62823 11.6603 7.95164 11.9666C8.27504 12.273 8.71367 12.4451 9.17104 12.4451H16.9807L14.3032 9.90984C14.2497 9.85922 14.2073 9.79911 14.1784 9.73297C14.1495 9.66682 14.1346 9.59593 14.1346 9.52433C14.1346 9.45273 14.1495 9.38184 14.1784 9.31569C14.2073 9.24955 14.2497 9.18945 14.3032 9.13882C14.4111 9.03658 14.5575 8.97914 14.7101 8.97914C14.7857 8.97914 14.8606 8.99324 14.9304 9.02064C15.0002 9.04804 15.0637 9.08819 15.1171 9.13882L18.7754 12.6041C18.8289 12.6546 18.8714 12.7147 18.9003 12.7809C18.9293 12.847 18.9442 12.9179 18.9442 12.9896C18.9442 13.0612 18.9293 13.1321 18.9003 13.1983C18.8714 13.2644 18.8289 13.3245 18.7754 13.3751L15.1171 16.8403C15.0092 16.9426 14.8628 17 14.7101 17C14.5575 17 14.4111 16.9426 14.3032 16.8403C14.1952 16.7381 14.1346 16.5994 14.1346 16.4548C14.1346 16.3102 14.1952 16.1715 14.3032 16.0693L16.9807 13.5341H9.17104C8.40876 13.5341 7.67771 13.2472 7.1387 12.7367C6.59969 12.2261 6.29688 11.5336 6.29688 10.8115V7.54451C6.29687 7.40009 6.35744 7.2616 6.46524 7.15948C6.57304 7.05737 6.71925 7 6.87171 7Z"})),qf=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,7.584 16.416,4 12,4ZM17.968,9.696L15.744,10.616C15.336,9.528 14.48,8.664 13.384,8.264L14.304,6.04C15.984,6.68 17.32,8.016 17.968,9.696ZM12,14.4C10.672,14.4 9.6,13.328 9.6,12C9.6,10.672 10.672,9.6 12,9.6C13.328,9.6 14.4,10.672 14.4,12C14.4,13.328 13.328,14.4 12,14.4ZM9.704,6.032L10.64,8.256C9.536,8.656 8.664,9.528 8.256,10.632L6.032,9.704C6.68,8.016 8.016,6.68 9.704,6.032ZM6.032,14.296L8.256,13.376C8.664,14.48 9.528,15.344 10.632,15.744L9.696,17.968C8.016,17.32 6.68,15.984 6.032,14.296ZM14.304,17.968L13.384,15.744C14.48,15.336 15.344,14.472 15.744,13.368L17.968,14.304C17.32,15.984 15.984,17.32 14.304,17.968Z"}));function Zf(t){return(0,e.createElement)("svg",Hf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),(0,e.createElement)("path",{d:"M12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,7.584 16.416,4 12,4ZM17.968,9.696L15.744,10.616C15.336,9.528 14.48,8.664 13.384,8.264L14.304,6.04C15.984,6.68 17.32,8.016 17.968,9.696ZM12,14.4C10.672,14.4 9.6,13.328 9.6,12C9.6,10.672 10.672,9.6 12,9.6C13.328,9.6 14.4,10.672 14.4,12C14.4,13.328 13.328,14.4 12,14.4ZM9.704,6.032L10.64,8.256C9.536,8.656 8.664,9.528 8.256,10.632L6.032,9.704C6.68,8.016 8.016,6.68 9.704,6.032ZM6.032,14.296L8.256,13.376C8.664,14.48 9.528,15.344 10.632,15.744L9.696,17.968C8.016,17.32 6.68,15.984 6.032,14.296ZM14.304,17.968L13.384,15.744C14.48,15.336 15.344,14.472 15.744,13.368L17.968,14.304C17.32,15.984 15.984,17.32 14.304,17.968Z"}))}var Wf=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M19.773,11.573L18.679,12.667L12,5.988L5.321,12.667L4.227,11.573L12,3.8L16.129,7.929L16.129,5.865L18.194,5.865L18.194,9.994L19.773,11.573ZM18.194,13.637L18.194,19.8L5.806,19.8L5.806,13.637L12,7.454L18.194,13.637ZM15.297,13.725C15.394,13.637 15.432,13.501 15.387,13.378L15.388,13.376C15.326,13.208 15.251,13.047 15.165,12.892L15.099,12.778C15.006,12.623 14.901,12.476 14.787,12.338C14.704,12.237 14.566,12.202 14.441,12.242L13.881,12.419C13.74,12.463 13.586,12.435 13.462,12.355C13.393,12.311 13.322,12.27 13.249,12.232C13.116,12.164 13.015,12.045 12.984,11.902L12.858,11.327C12.83,11.199 12.731,11.097 12.601,11.076C12.406,11.043 12.206,11.027 12.001,11.027C11.797,11.027 11.596,11.043 11.402,11.077C11.272,11.099 11.173,11.2 11.145,11.329L11.019,11.903C10.987,12.047 10.885,12.166 10.754,12.233C10.68,12.27 10.61,12.312 10.541,12.356C10.415,12.436 10.263,12.466 10.121,12.421L9.561,12.243C9.437,12.204 9.299,12.237 9.215,12.339C9.101,12.477 8.997,12.624 8.904,12.779L8.837,12.894C8.751,13.049 8.676,13.21 8.614,13.378C8.569,13.501 8.607,13.637 8.705,13.725L9.141,14.123C9.251,14.222 9.302,14.368 9.294,14.517C9.293,14.558 9.292,14.599 9.292,14.641C9.292,14.683 9.293,14.724 9.294,14.765C9.302,14.912 9.249,15.059 9.141,15.159L8.705,15.555C8.607,15.643 8.569,15.78 8.614,15.903C8.676,16.071 8.751,16.231 8.837,16.387L8.904,16.501C8.997,16.656 9.101,16.803 9.215,16.941C9.299,17.041 9.437,17.077 9.561,17.037L10.12,16.858C10.261,16.813 10.415,16.842 10.539,16.923C10.608,16.967 10.679,17.008 10.752,17.046C10.884,17.113 10.987,17.232 11.018,17.376L11.143,17.95C11.171,18.079 11.27,18.18 11.4,18.202C11.595,18.234 11.795,18.251 12,18.251C12.205,18.251 12.405,18.234 12.6,18.202C12.729,18.18 12.828,18.079 12.857,17.95L12.982,17.376C13.015,17.232 13.116,17.113 13.247,17.046C13.321,17.009 13.391,16.967 13.461,16.923C13.586,16.842 13.739,16.813 13.88,16.858L14.44,17.036C14.564,17.075 14.703,17.041 14.786,16.94C14.9,16.802 15.005,16.655 15.098,16.5L15.164,16.385C15.25,16.23 15.325,16.069 15.387,15.901C15.432,15.778 15.394,15.641 15.297,15.554L14.861,15.157C14.751,15.059 14.7,14.912 14.707,14.764C14.708,14.723 14.71,14.682 14.71,14.639C14.71,14.597 14.708,14.556 14.707,14.515C14.7,14.368 14.752,14.222 14.861,14.122L15.297,13.725ZM12.8,15.438C12.588,15.649 12.301,15.769 12.001,15.769C11.702,15.769 11.415,15.649 11.203,15.438C10.991,15.226 10.872,14.939 10.872,14.639C10.872,14.34 10.991,14.053 11.203,13.841C11.415,13.629 11.702,13.51 12.001,13.51C12.301,13.51 12.588,13.629 12.8,13.841C13.011,14.053 13.13,14.34 13.13,14.639C13.13,14.939 13.011,15.226 12.8,15.438Z"})),$f=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M10.578,17.689L13.422,17.689C13.422,18.471 12.782,19.111 12,19.111C11.218,19.111 10.578,18.471 10.578,17.689ZM9.156,16.978L14.844,16.978L14.844,15.556L9.156,15.556L9.156,16.978ZM17.333,10.222C17.333,12.939 15.442,14.389 14.652,14.844L9.348,14.844C8.558,14.389 6.667,12.939 6.667,10.222C6.667,7.278 9.056,4.889 12,4.889C14.944,4.889 17.333,7.278 17.333,10.222ZM15.911,10.222C15.911,8.068 14.155,6.311 12,6.311C9.845,6.311 8.089,8.068 8.089,10.222C8.089,11.979 9.148,12.988 9.76,13.422L14.24,13.422C14.852,12.988 15.911,11.979 15.911,10.222ZM20.796,8.708L19.822,9.156L20.796,9.604L21.244,10.578L21.692,9.604L22.667,9.156L21.692,8.708L21.244,7.733L20.796,8.708ZM19.111,7.733L19.78,6.268L21.244,5.6L19.78,4.932L19.111,3.467L18.443,4.932L16.978,5.6L18.443,6.268L19.111,7.733Z"})),Gf=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M20,6.544L10.872,15.68L7.48,12.288L8.608,11.16L10.872,13.424L18.872,5.424L20,6.544ZM18.232,10.576C18.336,11.032 18.4,11.512 18.4,12C18.4,15.536 15.536,18.4 12,18.4C8.464,18.4 5.6,15.536 5.6,12C5.6,8.464 8.464,5.6 12,5.6C13.264,5.6 14.432,5.968 15.424,6.6L16.576,5.448C15.28,4.536 13.704,4 12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,11.048 19.824,10.136 19.52,9.288L18.232,10.576Z"})),Yf=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18.72,8.267L20,8.267L20,17.653C20,18.949 18.95,20 17.654,20L6.56,20L6.56,18.72L17.654,18.72C18.243,18.72 18.72,18.242 18.72,17.653L18.72,8.267Z"}),(0,e.createElement)("path",{d:"M16.8,5.387L16.8,15.413C16.8,16.179 16.179,16.8 15.413,16.8L5.387,16.8C4.621,16.8 4,16.179 4,15.413L4,5.387C4,4.621 4.621,4 5.387,4L15.413,4C16.179,4 16.8,4.621 16.8,5.387ZM15.52,5.387C15.52,5.328 15.472,5.28 15.413,5.28L5.387,5.28C5.328,5.28 5.28,5.328 5.28,5.387L5.28,15.413C5.28,15.472 5.328,15.52 5.387,15.52L15.413,15.52C15.472,15.52 15.52,15.472 15.52,15.413L15.52,5.387Z"}),(0,e.createElement)("path",{d:"M9.573,13.839L8.667,12.934L10.775,10.827L8.667,8.719L9.573,7.814L12.585,10.827L9.573,13.839Z"}));function Xf(t){return(0,e.createElement)("svg",Hf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),(0,e.createElement)("path",{d:"M18.72,8.267L20,8.267L20,17.653C20,18.949 18.95,20 17.654,20L6.56,20L6.56,18.72L17.654,18.72C18.243,18.72 18.72,18.242 18.72,17.653L18.72,8.267Z"}),(0,e.createElement)("path",{d:"M16.8,5.387L16.8,15.413C16.8,16.179 16.179,16.8 15.413,16.8L5.387,16.8C4.621,16.8 4,16.179 4,15.413L4,5.387C4,4.621 4.621,4 5.387,4L15.413,4C16.179,4 16.8,4.621 16.8,5.387ZM15.52,5.387C15.52,5.328 15.472,5.28 15.413,5.28L5.387,5.28C5.328,5.28 5.28,5.328 5.28,5.387L5.28,15.413C5.28,15.472 5.328,15.52 5.387,15.52L15.413,15.52C15.472,15.52 15.52,15.472 15.52,15.413L15.52,5.387Z"}),(0,e.createElement)("path",{d:"M9.573,13.839L8.667,12.934L10.775,10.827L8.667,8.719L9.573,7.814L12.585,10.827L9.573,13.839Z"}))}function Jf(t){return(0,e.createElement)("svg",Hf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},t),(0,e.createElement)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM8 14.5V5.5L14 10L8 14.5Z"}))}function Kf(t){return(0,e.createElement)("svg",Hf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},t),(0,e.createElement)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 16.5C6.69 16.5 4 13.81 4 10.5H6C6 12.71 7.79 14.5 10 14.5C12.21 14.5 14 12.71 14 10.5C14 8.26 12.15 6.41 9.84 6.51L11.41 8.08L10 9.5L6 5.5L10 1.5L11.41 2.91L9.81 4.51C13.28 4.4 16 7.18 16 10.5C16 13.81 13.31 16.5 10 16.5Z"}))}const Qf=()=>{const{data:o,loading:i,error:a}=Df(),{navigateTo:s}=Rm(),{pushArticle:l,clearArticles:c,reset:u}=Bf(),d=window.extAssistData.wpLanguage;return i||a?(0,e.createElement)("div",{className:"assist-knowledge-base-module w-full flex justify-center bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8"},(0,e.createElement)(n.Spinner,null)):o&&0===o?.length?(0,e.createElement)("div",{className:"assist-knowledge-base-module w-full bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8"},(0,t.__)("No support articles found...","extendify")):(0,e.createElement)("div",{id:"assist-knowledge-base-module",className:"w-full bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8 text-base"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0"},d.startsWith("en")?(0,t.__)("Knowledge Base","extendify"):(0,t.__)("Knowledge Base (English only)","extendify")),(0,e.createElement)("a",{onClick:u,href:"admin.php?page=extendify-assist#knowledge-base",className:"inline-flex items-center no-underline hover:underline text-sm text-design-main"},(0,t.__)("Show all","extendify"),(0,e.createElement)(r,{icon:vf,className:"fill-current"}))),(0,e.createElement)("div",{className:"w-full mx-auto text-sm mt-4 flex flex-col gap-2"},o.slice(0,5).map((t=>{let{slug:n,extendifyTitle:o}=t;return(0,e.createElement)("button",{"aria-label":o,type:"button",key:n,onClick:e=>{e.preventDefault(),c(),l({slug:n,title:o}),s("knowledge-base")},className:"flex items-center gap-2 no-underline hover:underline hover:text-partner-primary-bg bg-transparent p-0 w-full cursor-pointer"},(0,e.createElement)(r,{icon:zf,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-snug text-left -mt-px"},o))}))))};var ep;const tp="extendify-assist-tasks",np={activeTests:[],seenTasks:[],completedTasks:[],inProgressTasks:[],...null!==(ep=JSON.parse(localStorage.getItem(tp)||"{}")?.state)&&void 0!==ep?ep:{}},rp={getItem:async()=>JSON.stringify(await uf.get("assist/task-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/task-data",{data:n}))},removeItem:()=>{}},op=pu(wu(gu(((e,t)=>({...np,isCompleted(e){return t().completedTasks.some((t=>t?.id===e))},completeTask(n){t().isCompleted(n)||e((e=>({completedTasks:[...e.completedTasks,{id:n,completedAt:(new Date).toISOString()}]})))},dismissTask(n){t().completeTask(n),e((e=>{const{completedTasks:t}=e,r=t.find((e=>e.id===n));return{completedTasks:[...t,{...r,dismissed:!0}]}}))},isSeen(e){return t().seenTasks.some((t=>t?.id===e))},seeTask(n){if(t().isSeen(n))return;const r={id:n,firstSeenAt:(new Date).toISOString()};e((e=>({seenTasks:[...e.seenTasks,r]})))},uncompleteTask(t){e((e=>({completedTasks:e.completedTasks.filter((e=>e.id!==t))})))},toggleCompleted(e){t().isCompleted(e)?t().uncompleteTask(e):t().completeTask(e)}})),{name:"Extendify Assist Tasks"}),{name:tp,storage:yu((()=>rp))})),ip=()=>{const{isCompleted:e,completeTask:t}=op(),{data:n,error:r}=su((()=>"tasks"),(async()=>{const n=await uf.get("assist/tasks");if(!n?.data||!Array.isArray(n.data))throw new Error("Bad Data");const r=n.data;for(const n of null!=r?r:[]){const{slug:r,doneDependencies:i}=n;if(!i)continue;if(e(r))continue;const{data:a}=await(o=r,uf.get("assist/tasks/dependency-completed",{params:{taskName:o}}));a&&t(n.slug)}var o;return r}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{tasks:n,error:r,loading:!n&&!r}},ap=t=>{var n;const{isCompleted:r}=op(),{tasks:o}=ip(),{themeSlug:i,launchCompleted:a}=window.extAssistData;if("extendable"!==i||!a)return null;const s=null!==(n=o?.filter((e=>{let{slug:t}=e;return!r(t)})).length)&&void 0!==n?n:0;return 0===s?null:(0,e.createElement)("span",Hf({className:"awaiting-mod"},t),s>9?"9":s)};var sp=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const lp=t=>{let{task:n}=t;const{completeTask:r}=op(),[o,i]=(0,e.useState)("edit-homepage"===n.slug?null:n.internalLink),a=(0,e.useCallback)((()=>{!n.doneDependencies&&r(n.slug)}),[n,r]);return(0,e.useLayoutEffect)((()=>{if("edit-homepage"===n.slug){const e=n.internalLink.split("$");wf("page_on_front").then((t=>{i(e[0]+t+e[1])}))}}),[n]),(0,e.createElement)("a",{href:window.extAssistData.adminUrl+o,target:"_blank",rel:"noreferrer",className:pf()("px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm transition ease-linear duration-150",{"text-gray-900":o,"text-gray-600 pointer-events-none":!o}),onClick:a,"aria-disabled":!o},n.buttonTextToDo)};var cp=window.wp.blob,up=window.wp.coreData,dp=window.wp.data,fp=window.wp.mediaUtils,pp=window.wp.hooks;const mp=r=>{let{type:o,onUpdate:i,title:a,actionLabel:s}=r;const{popModal:l}=Mf(),[c,u]=(0,e.useState)(!1),[d,f]=(0,e.useState)(0),p=(0,dp.useSelect)((e=>e(up.store).getMedia(d)),[d]),{mediaWidth:m,mediaHeight:h,mediaSourceUrl:g}=(e=>{var t,n,r;if(!e)return{};const o=(0,pp.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id);if(o in(null!==(t=e?.media_details?.sizes)&&void 0!==t?t:{}))return{mediaWidth:e.media_details.sizes[o].width,mediaHeight:e.media_details.sizes[o].height,mediaSourceUrl:e.media_details.sizes[o].source_url};const i=(0,pp.applyFilters)("editor.PostFeaturedImage.imageSize","medium",e.id);if(i in(null!==(n=e?.media_details?.sizes)&&void 0!==n?n:{}))return{mediaWidth:e.media_details.sizes[i].width,mediaHeight:e.media_details.sizes[i].height,mediaSourceUrl:e.media_details.sizes[i].source_url};const a=(0,pp.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id);return a in(null!==(r=e?.media_details?.sizes)&&void 0!==r?r:{})?{mediaWidth:e.media_details.sizes[a].width,mediaHeight:e.media_details.sizes[a].height,mediaSourceUrl:e.media_details.sizes[a].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}})(p);(0,e.useEffect)((()=>{wf(o).then((e=>f(Number(e))))}),[o]);const v=e=>{f(e.id),bf(o,e.id),i()},y=e=>{(0,fp.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange(e){let[t]=e;(0,cp.isBlobURL)(t?.url)?u(!0):(v(t),u(!1))},onError(e){console.error({message:e})}})};return(0,e.createElement)("div",null,(0,e.createElement)(hp,null,(0,e.createElement)(fp.MediaUpload,{title:a,onSelect:v,allowedTypes:["image"],value:d,modalClass:"",render:r=>{let{open:o}=r;return(0,e.createElement)("div",{className:"relative block"},(0,e.createElement)(n.Button,{className:"editor-post-featured-image__toggle extendify-assist-upload-logo p-0 m-0 border-0 cursor-pointer block w-full min-w-full text-center relative bg-gray-100 hover:bg-gray-300 hover:text-current h-48 items-center text-gray-900",onClick:o,"aria-label":d?(0,t.__)("Edit or update the image","extendify"):null,"aria-describedby":d?`image-${d}-describedby`:null},Boolean(d)&&p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ResponsiveWrapper,{naturalWidth:m,naturalHeight:h,isInline:!0},(0,e.createElement)("img",{className:"block m-auto w-auto h-auto max-w-full max-h-full absolute inset-0 p-6",src:g,alt:""}))),c&&(0,e.createElement)(n.Spinner,null),!d&&!c&&s),(0,e.createElement)(n.DropZone,{className:"w-full h-full absolute inset-0",onFilesDrop:y}))}})),Boolean(d)&&(0,e.createElement)("div",{className:"mt-6 gap-4 flex justify-between"},(0,e.createElement)(hp,null,(0,e.createElement)("div",null,d&&(0,e.createElement)(fp.MediaUpload,{title:a,onSelect:v,unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"image__media-modal",render:r=>{let{open:o}=r;return(0,e.createElement)(n.Button,{onClick:o,variant:"secondary"},(0,t.__)("Replace image","extendify"))}}),(0,e.createElement)(n.Button,{onClick:()=>{f(0),bf(o,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,t.__)("Remove image","extendify"))),(0,e.createElement)("div",null,(0,e.createElement)(n.Button,{variant:"primary",onClick:l,className:"bg-design-main text-design-text"},(0,t.__)("Done","extendify"))))))},hp=t=>{let{fallback:r=null,children:o}=t;const{checkingPermissions:i,hasUploadPermissions:a}=(0,dp.useSelect)((e=>{const t=e("core");return{hasUploadPermissions:t.canUser("read","media"),checkingPermissions:!t.hasFinishedResolution("canUser",["read","media"])}}));return(0,e.createElement)(e.Fragment,null,i&&(0,e.createElement)(n.Spinner,null),!i&&a?o:r)},gp=n=>{let{setModalTitle:r}=n;const{completeTask:o}=op();return(0,e.useEffect)((()=>{r((0,t.__)("Upload site logo","extendify"))}),[r]),(0,e.createElement)(mp,{type:"site_logo",title:(0,t.__)("Site logo","extendify"),actionLabel:(0,t.__)("Set site logo","extendify"),onUpdate:()=>{o("logo")}})},vp=n=>{let{popModal:r,setModalTitle:o}=n;const[i,a]=(0,e.useState)(void 0),[s,l]=(0,e.useState)(void 0),c=(0,e.useRef)(),{completeTask:u}=op(),{mainColor:d}=Eu();return(0,e.useEffect)((()=>{o((0,t.__)("Add site description","extendify"))}),[o]),(0,e.useEffect)((()=>{wf("blogdescription").then((e=>{a(e),l(e)}))}),[a]),(0,e.useEffect)((()=>{c?.current?.focus()}),[s]),void 0===i?(0,e.createElement)("div",{className:"h-32"},(0,t.__)("Loading...","extendify")):(0,e.createElement)("form",{className:"gap-6 flex flex-col",onSubmit:e=>e.preventDefault()},(0,e.createElement)("div",null,(0,e.createElement)("label",{className:"block mb-1 text-gray-900 text-sm",htmlFor:"extendify-site-description-input"},(0,t.__)("Site description","extendify")),(0,e.createElement)("input",{ref:c,type:"text",name:"extendify-site-description-input",id:"extendify-site-description-input",className:"w-96 max-w-full border border-gray-900 px-2 h-12 input-focus",onChange:e=>{a(e.target.value)},value:i,placeholder:(0,t.__)("Enter a site description...","extendify")})),(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:i===s,className:pf()("px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",{"opacity-50 cursor-default":i===s}),style:{backgroundColor:d},onClick:async()=>{await bf("blogdescription",i),u("site-description"),r()}},(0,t.__)("Save","extendify"))))},yp=n=>{let{setModalTitle:r}=n;const{completeTask:o}=op();return(0,e.useEffect)((()=>{r((0,t.__)("Upload site icon","extendify"))}),[r]),(0,e.createElement)(mp,{type:"site_icon",title:(0,t.__)("Site icon","extendify"),actionLabel:(0,t.__)("Set site icon","extendify"),onUpdate:()=>{o("site-icon")}})},bp=t=>{let{task:n}=t;const{pushModal:r}=Mf(),{isCompleted:o}=op(),i={UpdateLogo:gp,UpdateSiteDescription:vp,UpdateSiteIcon:yp};return i[n.modalFunction]?(0,e.createElement)("button",{className:"px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm",type:"button",onClick:()=>r(i[n.modalFunction])},o(n.slug)?n.buttonTextDone:n.buttonTextToDo):null};var wp;const xp="extendify-assist-tour-progress",Ep={currentTour:null,currentStep:void 0,preparingStep:void 0,progress:[],...null!==(wp=JSON.parse(localStorage.getItem(xp)||"{}")?.state)&&void 0!==wp?wp:{}},Cp={getItem:async()=>JSON.stringify(await uf.get("assist/tour-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/tour-data",{data:n}))},removeItem:()=>{}},Sp=pu(wu(gu(((e,t)=>({...Ep,startTour:async n=>{const{trackTourProgress:r,updateProgress:o,getStepData:i,onTourPage:a}=t();a(n?.settings?.startFrom)&&(await(n?.onStart?.(n)),n.steps=n.steps?.filter((e=>e?.showOnlyIf?.()||void 0===e?.showOnlyIf?.()))||[],await(i(0,n)?.events?.beforeAttach?.(n))),e({currentTour:n,currentStep:0,preparingStep:void 0});const s=r(n.id);o(s.id,{openedCount:s.openedCount+1,lastAction:"started"})},onTourPage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=window.location.href;if(e?.includes(n))return!0;const{currentTour:r}=t();return r?.settings?.startFrom?.includes(n)},completeCurrentTour:async()=>{const{currentTour:n,finishedTour:r,findTourProgress:o,updateProgress:i}=t(),a=o(n?.id);a?.id&&(r(a.id)||i(a.id,{completedAt:(new Date).toISOString(),lastAction:"completed"}),i(a.id,{completedCount:a.completedCount+1,lastAction:"completed"}),await(n?.onDetach?.()),await(n?.onFinish?.()),e({currentTour:null,currentStep:void 0}))},closeCurrentTour:async n=>{const{currentTour:r,findTourProgress:o,updateProgress:i}=t(),a=o(r?.id);if(!a?.id)return;const s={};return["redirected"].includes(n)?i(a?.id,{lastAction:n}):["closed-by-caught-error"].includes(n)?i(a?.id,{lastAction:n,errored:!0}):("closed-manually"===n&&(s.closedManuallyCount=a.closedManuallyCount+1),await(r?.onDetach?.()),await(r?.onFinish?.()),i(a?.id,{lastAction:n,...s}),void e({currentTour:null,currentStep:void 0,preparingStep:void 0}))},findTourProgress(e){return t().progress.find((t=>t.id===e))},finishedTour(e){return t().findTourProgress(e)?.completedAt},wasOpened(e){return t().findTourProgress(e)?.openedCount>0},isSeen(e){return t().findTourProgress(e)?.firstSeenAt},trackTourProgress(n){const{findTourProgress:r}=t();return r(n)||e((e=>({progress:[...e.progress,{id:n,firstSeenAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),completedAt:null,lastAction:"init",currentStep:0,openedCount:0,closedManuallyCount:0,completedCount:0,errored:!1}]}))),r(n)},updateProgress(t,n){var r;const o=null!==(r=n?.lastAction)&&void 0!==r?r:"unknown";e((e=>({progress:e.progress.map((e=>e.id===t?{...e,...n,lastAction:o,updatedAt:(new Date).toISOString()}:e))})))},getStepData(e){var n;return null!==(n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t().currentTour)?.steps?.[e])&&void 0!==n?n:{}},hasNextStep(){return!!t().currentTour&&t().currentStep<t().currentTour.steps.length-1},nextStep:async()=>{const{currentTour:e,goToStep:n,updateProgress:r,currentStep:o}=t(),i=o+1;await n(i),r(e.id,{currentStep:i,lastAction:"next"})},hasPreviousStep(){return!!t().currentTour&&t().currentStep>0},prevStep:async()=>{const{currentTour:e,goToStep:n,updateProgress:r,currentStep:o}=t(),i=o-1;await n(i),r(e.id,{currentStep:i,lastAction:"prev"})},goToStep:async n=>{const{currentTour:r,updateProgress:o,closeCurrentTour:i,getStepData:a}=t(),s=r;if(n<0||n>s.steps.length-1)return void i("closed-by-caught-error");o(s.id,{currentStep:n,lastAction:`go-to-step-${n}`});const l=a(n)?.events;l?.beforeAttach&&(e((()=>({preparingStep:n}))),await Promise.allSettled([l.beforeAttach?.(s),new Promise((e=>setTimeout(e,300)))]),e((()=>({preparingStep:void 0})))),e((()=>({currentStep:n})))}})),{name:"Extendify Assist Tour Progress"}),{name:xp,storage:yu((()=>Cp)),partialize:e=>{const{currentTour:t,currentStep:n,preparingStep:r,...o}=e;return o}})),kp=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)&&(clearInterval(n),t())}),50)})),Tp=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)||(clearInterval(n),t())}),50)}));var Lp={id:"library-tour",settings:{allowOverflow:!0,hideDotsNav:!0,startFrom:[window.extAssistData.adminUrl+"post-new.php?post_type=page"]},onStart:async()=>{await kp("#extendify-templates-inserter-btn"),document.querySelector(`[aria-label="${(0,t.__)("Settings")}"].is-pressed`)?.click()},steps:[{title:(0,t.__)("Open the Pattern Library","extendify"),text:(0,t.__)("The Extendify pattern library can be opened by clicking the button to the left.","extendify"),attachTo:{element:"#extendify-templates-inserter-btn",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>dispatchEvent(new CustomEvent("extendify::close-library"))}},{title:(0,t.__)("Patterns and Layouts","extendify"),text:(0,t.__)("Choose to insert individual block patterns, or full blown templates.","extendify"),attachTo:{element:"#patterns-toggle",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},options:{blockPointerEvents:!0},events:{beforeAttach:async()=>(dispatchEvent(new CustomEvent("extendify::open-library")),await kp("#patterns-toggle"))}},{title:(0,t.__)("Filter Patterns","extendify"),text:(0,t.__)("Click on any pattern category to refine the selection.","extendify"),attachTo:{element:"#filter-patterns",position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>{document.querySelector("ul#filter-patterns > li:first-of-type button").click()}}},{title:(0,t.__)("Select a Pattern","extendify"),text:(0,t.__)("Simply select any pattern you wish to insert into a page by clicking on it.","extendify"),attachTo:{element:"#masonry-grid > div:first-child > div:first-child",position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:async()=>(dispatchEvent(new CustomEvent("extendify::open-library")),await kp("#masonry-grid > div:first-child > div:first-child"))}},{title:(0,t.__)("View the Inserted Pattern","extendify"),text:(0,t.__)("The selected pattern has been inserted into the page.","extendify"),attachTo:{element:".wp-block-group:last-child",frame:'iframe[name="editor-canvas"]',offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector("#masonry-grid > div:first-child > div:first-child > div")?.click(),await Tp("#masonry-grid"))},options:{hideBackButton:!0}}]},_p=window.wp.blocks;const Ap=()=>!!document.querySelector('iframe[name="editor-canvas"]'),Np=e=>e.preventDefault();var Pp={id:"page-editor-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"post-new.php?post_type=page"]},onStart:async()=>(document.querySelector(`[aria-label="${(0,t.__)("Settings")}"].is-pressed`)?.click(),await dispatchEvent(new CustomEvent("extendify::close-library"))),steps:[{title:(0,t.__)("Add a Block","extendify"),text:(0,t.__)("Click the plus to open the block inserter.","extendify"),attachTo:{element:".edit-post-header-toolbar__inserter-toggle",offset:{marginTop:15,marginLeft:0},position:{x:"left",y:"bottom"},hook:"top left"},events:{}},{title:(0,t.__)("Block Inserter","extendify"),text:(0,t.__)("Add a block by clicking or dragging it onto the page.","extendify"),attachTo:{element:".block-editor-inserter__menu",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},options:{blockPointerEvents:!0},events:{beforeAttach:async()=>(document.querySelector(".edit-post-header-toolbar__inserter-toggle:not(.is-pressed)")?.click(),await kp(".block-editor-inserter__tabs")),onAttach:()=>{const e=document.querySelector(".edit-post-header-toolbar__inserter-toggle");Op.observe(e,{attributes:!0}),window.addEventListener("keydown",Np)},onDetach:async()=>{Op.disconnect(),window.removeEventListener("keydown",Np),document.querySelector(".edit-post-header-toolbar__inserter-toggle.is-pressed")?.click(),await Tp(".block-editor-inserter__block-list"),requestAnimationFrame((()=>{document.getElementById("assist-tour-next-button")?.focus()}))}}},{title:(0,t.__)("Page Title","extendify"),text:(0,t.__)("Edit the page title by clicking it. Note: The title may or may not show up on the published page, depending on the page template used.","extendify"),attachTo:{element:()=>Ap()?'iframe[name="editor-canvas"]':".wp-block-post-title",offset:()=>({marginTop:Ap()?15:0,marginLeft:Ap()?-15:15}),position:{x:"right",y:"top"},hook:()=>Ap()?"top right":"top left"},events:{beforeAttach:async()=>{await window.wp.data.dispatch("core/editor").editPost({title:"Sample Post"})}}},{title:(0,t.__)("Blocks","extendify"),text:(0,t.__)("Each block will show up on the page and can be edited by clicking on it.","extendify"),attachTo:{element:()=>Ap()?'iframe[name="editor-canvas"]':".wp-block-post-content > p",offset:()=>({marginTop:Ap()?15:0,marginLeft:Ap()?-15:15}),position:{x:"right",y:"top"},hook:()=>Ap()?"top right":"top left"},events:{beforeAttach:async()=>{if(await window.wp.data.select("core/block-editor").getBlockCount()>0)return;const e=(0,_p.createBlock)("core/paragraph",{content:(0,t.__)("This is a sample paragraph block. It can be several sentences long and will span multiple rows. You can add as many blocks as you'd like to the page.","extendify")});return await window.wp.data.dispatch("core/block-editor").insertBlock(e),Ap()?await window.wp.data.dispatch("core/block-editor").flashBlock(e.clientId):null}}},{title:(0,t.__)("Page and Block Settings","extendify"),text:(0,t.__)("Select either page or block to change the settings for the entire page or the block that is selected.","extendify"),attachTo:{element:".interface-interface-skeleton__sidebar",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>{document.querySelector(`[aria-label="${(0,t.__)("Settings")}"]:not(.is-pressed)`)?.click(),await kp(".interface-interface-skeleton__sidebar"),document.querySelector(".edit-post-sidebar__panel-tab")?.click(),await kp(".edit-post-post-status"),document.querySelector(".edit-post-post-status:not(.is-opened) button")?.click(),await kp(".edit-post-post-status.is-opened")}}},{title:(0,t.__)("Preview","extendify"),text:(0,t.__)("Click preview to view how your changes look on the front end of your site.","extendify"),attachTo:{element:".block-editor-post-preview__button-toggle",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Publish or Save","extendify"),text:(0,t.__)("Click publish or update to save the changes you’ve made to the page and make them live on the site.","extendify"),attachTo:{element:".editor-post-publish-button__button",offset:{marginTop:15},position:{x:"right",y:"bottom"},hook:"top right"},events:{}}]};const Op=new MutationObserver((()=>{document.querySelector(".edit-post-header-toolbar__inserter-toggle:not(.is-pressed)")?.click()}));var Mp={id:"plugin-install-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"plugin-install.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.add("opensub")},steps:[{title:(0,t.__)("Add New plugin menu","extendify"),text:(0,t.__)("Click here to access the Add Plugins page.","extendify"),attachTo:{element:'#menu-plugins .wp-submenu a[href="plugin-install.php"]',offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.remove("opensub")}}},{title:(0,t.__)("Search","extendify"),text:(0,t.__)("Search for a plugin by name or functionality.","extendify"),attachTo:{element:".search-form.search-plugins",offset:{marginTop:5,marginLeft:-15},boxPadding:{top:-5,bottom:3,left:5,right:5},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Plugin details","extendify"),text:(0,t.__)("See important information about each plugin.","extendify"),attachTo:{element:"#the-list .plugin-card:first-child .plugin-card-bottom",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"bottom"},hook:"bottom left"},events:{}},{title:(0,t.__)("Install now","extendify"),text:(0,t.__)("Install the plugin. Then, press this button again to activate the plugin.","extendify"),attachTo:{element:"#the-list .plugin-card:first-child .install-now",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Upload Plugin","extendify"),text:(0,t.__)("If you have a plugin from an external source, you can upload it directly here.","extendify"),attachTo:{element:".upload-view-toggle",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},Rp={id:"plugin-management-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"plugins.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.add("opensub")},steps:[{title:(0,t.__)("Installed Plugins menu","extendify"),text:(0,t.__)("Click this menu to see and manage the plugins you have installed.","extendify"),attachTo:{element:"#menu-plugins ul > li:nth-child(2)",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.remove("opensub")}}},{title:(0,t.__)("Installed plugins","extendify"),text:(0,t.__)("See all plugins installed on your site. This includes plugins that are active and deactivated.","extendify"),attachTo:{element:"tbody#the-list > tr:nth-child(1)",offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"bottom"},hook:"top right"},events:{}},{title:(0,t.__)("Deactivate/activate option","extendify"),text:(0,t.__)("Under each plugin you can activate or deactivate it.","extendify"),attachTo:{element:"tbody#the-list > tr:nth-child(1) > td.plugin-title",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Add another","extendify"),text:(0,t.__)("Click here to add another plugin to your site.","extendify"),attachTo:{element:"a.page-title-action",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},Dp={id:"site-assistant-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"admin.php?page=extendify-assist#dashboard"]},steps:[{title:(0,t.__)("Site Assistant","extendify"),text:(0,t.__)("The Site Assistant gives you personalized recommendations and helps with creating and maintaining your site.","extendify"),attachTo:{element:"#assist-menu-bar",offset:{marginTop:20,marginLeft:-5},position:{x:"left",y:"bottom"},hook:"top left",boxPadding:{top:5,bottom:5,left:5,right:5}},events:{onAttach:()=>{document.querySelector("#assist-menu-bar")?.scrollIntoView()}}},{title:(0,t.__)("Tasks","extendify"),text:(0,t.__)("Now that you've created your starter site, make it your own with these follow up tasks.","extendify"),showOnlyIf:()=>document.querySelector(".assist-tasks-module"),attachTo:{element:"#assist-tasks-module",offset:{marginTop:window.innerWidth<=1150?15:0,marginLeft:window.innerWidth<=1150?2:15},position:{x:window.innerWidth<=1150?"left":"right",y:window.innerWidth<=1150?"bottom":"top"},hook:"top left"},events:{beforeAttach:()=>kp("#assist-tasks-module"),onAttach:()=>{document.querySelector("#assist-tasks-module")?.scrollIntoView()}}},{title:(0,t.__)("Recommendations","extendify"),text:(0,t.__)("See our personalized recommendations for you that will help you accomplish your goals.","extendify"),showOnlyIf:()=>document.querySelector("#assist-recommendations-module"),attachTo:{element:"#assist-recommendations-module",offset:{marginTop:window.innerWidth<=1150?20:0,marginLeft:window.innerWidth<=1150?-5:15},position:{x:window.innerWidth<=1150?"left":"right",y:window.innerWidth<=1150?"bottom":"top"},hook:"top left"},events:{beforeAttach:()=>kp("#assist-recommendations-module"),onAttach:()=>{document.querySelector("#assist-recommendations-module")?.scrollIntoView()}}},{title:(0,t.__)("Knowledge Base","extendify"),text:(0,t.__)("Find articles with information on accomplishing different things with WordPress, including screenshots, and videos.","extendify"),attachTo:{element:"#assist-knowledge-base-module",offset:{marginTop:window.innerWidth<=1150?15:0,marginLeft:window.innerWidth<=1150?2:-15},position:{x:(window.innerWidth,"left"),y:window.innerWidth<=1150?"bottom":"top"},hook:window.innerWidth<=1150?"top left":"top right"},events:{beforeAttach:()=>kp("#assist-knowledge-base-module"),onAttach:()=>{document.querySelector("#assist-knowledge-base-module")?.scrollIntoView()}}},{title:(0,t.__)("Tours","extendify"),text:(0,t.__)("See additional tours of the different parts of WordPress. Restart your completed tours at any time.","extendify"),attachTo:{element:"#assist-tours-module",offset:{marginTop:window.innerWidth<=1150?15:0,marginLeft:window.innerWidth<=1150?2:-15},position:{x:(window.innerWidth,"left"),y:window.innerWidth<=1150?"bottom":"top"},hook:window.innerWidth<=1150?"top left":"top right"},events:{beforeAttach:()=>kp("#assist-tours-module"),onAttach:()=>{document.querySelector("#assist-tours-module")?.scrollIntoView()}}},{title:(0,t.__)("Quick Links","extendify"),text:(0,t.__)("Easily access some of the most common items in WordPress with these quick links.","extendify"),attachTo:{element:"#assist-quick-links-module",offset:{marginTop:window.innerWidth<=1150?10:0,marginLeft:window.innerWidth<=1150?10:-15},position:{x:window.innerWidth<=1150?"right":"left",y:"top"},hook:window.innerWidth<=1150?"top left":"top right"},events:{beforeAttach:()=>kp("#assist-quick-links-module"),onAttach:()=>{document.querySelector("#assist-quick-links-module")?.scrollIntoView()}}},{title:(0,t.__)("Site Assistant","extendify"),text:(0,t.__)("Come back to the Site Assistant any time by clicking the menu item.","extendify"),attachTo:{element:"#toplevel_page_extendify-admin-page",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:()=>{document.body.classList.contains("folded")&&(document.body.classList.remove("folded"),document.body.classList.add("temp-open"))},onDetach:()=>{document.body.classList.contains("temp-open")&&(document.body.classList.remove("temp-open"),document.body.classList.add("folded"))}}}]};const{adminUrl:Vp,themeSlug:jp,blockTheme:Ip}=window.extAssistData;var Fp={id:"style-editor-tour",settings:{allowOverflow:!1,startFrom:[Vp+`site-editor.php?canvas=edit&postType=wp_template&postId=${jp}%2F%2Fhome`],enabled:null!=Ip&&Ip},onStart:()=>{document.querySelector(".components-modal__header > button")?.click()},steps:[{title:(0,t.__)("Style Editor","extendify"),text:(0,t.__)("The style editor allows you to edit the styles, colors, and typographic elements of your site. To access the style editor, first open the Editor via Appearance > Editor.","extendify"),image:"https://placehold.co/342x240",attachTo:{element:".interface-pinned-items button:nth-child(2)",offset:{marginTop:10,marginLeft:-30},position:{x:"left",y:"bottom"},hook:"top left"},events:{beforeAttach:()=>kp(".interface-pinned-items")}},{title:(0,t.__)("Styles Panel","extendify"),text:(0,t.__)("The styles panel allows you to customize the appearance of your site. It includes style variations, colors, typography, and more.","extendify"),attachTo:{element:".edit-site-global-styles-sidebar",offset:{marginTop:1,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".interface-pinned-items button:nth-child(2):not(.is-pressed)")?.click(),await kp(".edit-site-global-styles-sidebar"))}},{title:(0,t.__)("Style Variations","extendify"),text:(0,t.__)("The Browse Styles button opens the style variations panel.","extendify"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/variations"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await kp(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Style Variations","extendify"),text:(0,t.__)("Choose a style you like to preview how it will look on your site.","extendify"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/variations"]')?.click(),await kp(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Typography","extendify"),text:(0,t.__)("The Typography button opens the typography settings panel.","extendify"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/typography"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await kp(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Typography","extendify"),text:(0,t.__)("Choose a typographic element to customize.","extendify"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/typography"]')?.click(),await kp(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Colors","extendify"),text:(0,t.__)("The Colors button opens the color settings panel.","extendify"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/colors"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await kp(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Colors","extendify"),text:(0,t.__)("Select the theme's palette or individual elements to customize their colors.","extendify"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/colors"]')?.click(),await kp(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Layout","extendify"),text:(0,t.__)("The Layout button opens the layout settings panel.","extendify"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/layout"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await kp(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Layout","extendify"),text:(0,t.__)("From here you can customize the dimensions, padding, and margins used for your site layout.","extendify"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/layout"]')?.click(),await kp(".components-tools-panel"))}}],onFinish:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await kp(".edit-site-global-styles-preview__iframe"))},Bp={id:"users-screen-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"users.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-users").classList.add("opensub")},steps:[{title:(0,t.__)("All Users menu","extendify"),text:(0,t.__)("Click here to view and manage the users on your site.","extendify"),attachTo:{element:"#menu-users ul > li:nth-child(2)",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-users").classList.remove("opensub")}}},{title:(0,t.__)("Users","extendify"),text:(0,t.__)("See all of your users, including admin users in this table.","extendify"),attachTo:{element:"tbody#the-list > tr:nth-child(1)",offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"bottom"},hook:"top right"},events:{}},{title:(0,t.__)("Edit user information","extendify"),text:(0,t.__)("Click the edit button to change the user's role, manage their account, or change their profile information.","extendify"),attachTo:{element:"tbody#the-list > tr:nth-child(1) > td.username",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:()=>{document.querySelector("tbody#the-list > tr:nth-child(1) > td.username .row-actions").style.left="0"},onDetach:()=>{document.querySelector("tbody#the-list > tr:nth-child(1) > td.username .row-actions").style.left="-9999em"}}},{title:(0,t.__)("Search for users","extendify"),text:(0,t.__)("Use the search bar to find a particular user.","extendify"),attachTo:{element:"p.search-box",offset:{marginTop:-5,marginLeft:-15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Add a new user","extendify"),text:(0,t.__)("Click the Add New button to add a new user to your site.","extendify"),attachTo:{element:".page-title-action",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},Hp={"welcome-tour":{id:"welcome-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"index.php",window.extAssistData.adminUrl+"admin.php?page=extendify-assist#dashboard"],minBoxWidth:"360px"},onStart:()=>{document.body.classList.contains("folded")&&(document.body.classList.remove("folded"),document.body.classList.add("temp-open"))},onFinish:()=>{document.body.classList.contains("temp-open")&&(document.body.classList.remove("temp-open"),document.body.classList.add("folded"))},steps:[{title:(0,t.__)("View Site","extendify"),text:(0,t.__)("At any time, you can view your site (from a visitor's perspective) from the top admin bar under your site's name.","extendify"),image:"https://assets.extendify.com/tours/welcome/view-site.gif",attachTo:{element:"#wp-admin-bar-view-site",offset:{marginTop:0,marginLeft:10},position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onAttach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onDetach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="absolute",e.style.display=""}}},{title:(0,t.__)("Site Assistant","extendify"),text:(0,t.__)("Access the Site Assistant at any time.","extendify"),attachTo:{element:"#toplevel_page_extendify-admin-page",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Dashboard","extendify"),text:(0,t.__)("The default WordPress dashboard will have some overall site metrics and modules added from certain plugins.","extendify"),attachTo:{element:"#menu-dashboard",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Posts","extendify"),text:(0,t.__)("Manage and create blog posts.","extendify"),attachTo:{element:"#menu-posts",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Media","extendify"),text:(0,t.__)("Add, edit, or remove images and other media from your library. When you upload an image to be used on your site, it will be added to the library.","extendify"),attachTo:{element:"#menu-media",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Pages","extendify"),text:(0,t.__)("Use the pages menu to add, delete, or edit the pages on your site.","extendify"),image:"https://assets.extendify.com/tours/welcome/add-pages.gif",attachTo:{element:"#menu-pages",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Comments","extendify"),text:(0,t.__)("If you have commenting enabled on your posts, you can manage those comments here.","extendify"),attachTo:{element:"#menu-comments",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Appearance","extendify"),text:(0,t.__)("Manage your theme and access the Site Editor from the Appearance menu. The Site Editor is where you can make global changes to your site (such as the menu, header/footer, and styles).","extendify"),attachTo:{element:"#menu-appearance",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Plugins","extendify"),text:(0,t.__)("Add or manage the plugins on your site.","extendify"),attachTo:{element:"#menu-plugins",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Users","extendify"),text:(0,t.__)("Add or manage users on your site, both admin users and others.","extendify"),attachTo:{element:"#menu-users",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Tools","extendify"),text:(0,t.__)("Import/export post data, check site health, and edit theme or plugin files directly in the WordPress admin.","extendify"),attachTo:{element:"#menu-tools",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Settings","extendify"),text:(0,t.__)("Advanced settings for your site and for certain plugins.","extendify"),attachTo:{element:"#menu-settings",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Collapse menu","extendify"),text:(0,t.__)("Use this toggle to collapse or expand the sidebar menu.","extendify"),attachTo:{element:"#collapse-menu",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("User","extendify"),text:(0,t.__)("Manage your profile or log out of your account here.","extendify"),attachTo:{element:"#wp-admin-bar-user-actions",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onAttach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onDetach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="absolute",e.style.display=""}}}]},"plugin-install-tour":Mp,"plugin-management-tour":Rp,"page-editor-tour":Pp,"library-tour":Lp,"style-editor-tour":Fp,"users-screen-tour":Bp,"site-assistant-tour":Dp};const Up=n=>{let{task:r}=n;const{startTour:o,wasOpened:i}=Sp();return Hp[r.slug]?(0,e.createElement)("button",{className:"px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm",type:"button",onClick:()=>o(Hp[r.slug])},(()=>{const{buttonTextDone:e,buttonTextToDo:n}=r;return i(r.slug)?null!=e?e:(0,t.__)("Restart Tour","extendify"):null!=n?n:(0,t.__)("Start Tour","extendify")})()):null},zp=o=>{let{task:i}=o;const{isCompleted:a,dismissTask:s}=op(),{slug:l}=i,c={modal:bp,tour:Up,"internal link":lp},u=i?.taskType?c[i.taskType]:null;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flex gap-1 sm:gap-2 items-center"},(0,e.createElement)("div",{className:"sr-only"},a(l)?(0,t.__)("Completed","extendify"):(0,t.__)("Not completed","extendify")),(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",className:"flex-shrink-0 w-6 h-6 rounded-full text-gray-400"},(0,e.createElement)("circle",{className:"checkbox__background",r:"5",cx:"8",cy:"8",stroke:a(l)?"var(--ext-design-main, #3959e9)":"currentColor",fill:a(l)?"var(--ext-design-main, #3959e9)":"none",strokeWidth:"1"}),(0,e.createElement)("polyline",{className:"checkbox__checkmark",points:"5,8 8,10 11,6",stroke:a(l)?"#fff":"transparent",strokeWidth:"1",fill:"none"})),(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"text-sm font-medium mr-2"},i.title))),(0,e.createElement)("div",{className:"flex items-center justify-end gap-1 sm:gap-3"},u&&(0,e.createElement)(u,{task:i}),a(l)?(0,e.createElement)("div",{className:"w-5"}):(0,e.createElement)(n.Dropdown,{className:"w-5",position:"bottom left",popoverProps:{placement:"bottom-end"},renderContent:n=>{let{onClose:r}=n;return(0,e.createElement)("button",{onClick:()=>{r(),s(i.slug)},type:"button",className:"-m-2 p-2 px-4 text-gray-900 text-sm border-0 cursor-pointer rounded-none bg-white hover:bg-gray-100 text-center no-underline"},(0,t.__)("Dismiss","extendify"))},renderToggle:t=>{let{onToggle:n}=t;return(0,e.createElement)("button",{onClick:n,type:"button",className:"p-0 text-white text-xs border-0 rounded cursor-pointer bg-transparent text-center no-underline"},(0,e.createElement)(r,{icon:sp,className:""}))}})))},qp=()=>{const{seeTask:o,isCompleted:i}=op(),{tasks:a,loading:s,error:l}=ip(),c=a?.filter((e=>!i(e.slug)));if((0,e.useEffect)((()=>{c?.length&&c.forEach((e=>o(e.slug)))}),[c,o]),s||l)return(0,e.createElement)("div",{className:"assist-tasks-module w-full flex justify-center bg-white border border-gray-300 p-2 lg:p-4 mb-6 rounded"},(0,e.createElement)(n.Spinner,null));if(0===a?.length)return(0,e.createElement)("div",{className:"assist-tasks-module w-full bg-white border border-gray-300 p-2 lg:p-4 mb-6 rounded"},(0,t.__)("No tasks found...","extendify"));const u=window.getComputedStyle(document?.querySelector("#wpadminbar"))?.["background-color"];return(0,e.createElement)("div",{id:"assist-tasks-module",className:"assist-tasks-module w-full border border-gray-300 text-base bg-white p-4 md:p-8 rounded mb-6"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h2",{className:"text-lg leading-tight m-0 flex items-center gap-1"},(0,e.createElement)("span",null,(0,t.__)("Tasks","extendify")),c?.length>0?(0,e.createElement)("span",{className:"rounded-full py-0 px-1.5 text-xss flex justify-center items-center text-white w-4 h-4",style:{backgroundColor:u}},(0,e.createElement)(ap,null)):null),(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#tasks",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},c?.length>0?(0,t.sprintf)((0,t.__)("View all (%s)","extendify"),a?.length):(0,t.__)("View completed tasks","extendify"),(0,e.createElement)(r,{icon:vf,className:"fill-current"}))),0===c.length?(0,e.createElement)(Wp,null):(0,e.createElement)("div",{className:"border border-b-0 border-gray-300 mt-4"},(0,e.createElement)(Vt,null,c.slice(0,5).map((t=>(0,e.createElement)(Ul.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(Zp,{task:t})))))))},Zp=t=>{let{task:n,Action:r}=t;return(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(zp,{task:n,Action:r}))},Wp=()=>(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-b border-gray-300 p-4 lg:p-8"},(0,e.createElement)(Uf,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify"))),$p=()=>{const{data:e,error:t}=su("tours",(async()=>{const e=await uf.get("assist/tours");if(!e?.data||!Array.isArray(e.data))throw new Error("Bad Data");return e.data}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{tours:e,error:t,loading:!e&&!t}},Gp=()=>{const{tours:o,loading:i,error:a}=$p(),{startTour:s,wasOpened:l}=Sp();return i||a?(0,e.createElement)("div",{className:"assist-tours-module w-full flex justify-center bg-white border-l border-r border-b border-gray-300 p-4 lg:p-8"},(0,e.createElement)(n.Spinner,null)):0===o.length?(0,e.createElement)("div",{className:"assist-tours-module w-full border-l border-r border-b border-gray-300 p-4 lg:p-8"},(0,t.__)("No tours found...","extendify")):(0,e.createElement)("div",{id:"assist-tours-module",className:"w-full border-l border-r border-b border-gray-300 bg-white p-4 lg:p-8 text-base"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0"},(0,t.__)("Tours","extendify")),o.length>5&&(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#tours",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},(0,t.sprintf)((0,t.__)("View all %s","extendify"),o?.length),(0,e.createElement)(r,{icon:vf,className:"fill-current"}))),(0,e.createElement)("div",{className:"w-full text-base flex flex-col gap-3 mt-4 relative"},o.slice(0,5).map((t=>{let{title:n,slug:r}=t;return(0,e.createElement)("button",{key:r,className:"p-4 button-focus bg-gray-100 hover:bg-gray-200 hover:text-design-main focus:shadow-button cursor-pointer no-underline flex justify-between gap-2 group text-sm",type:"button",onClick:()=>s(Hp[r])},(0,e.createElement)("span",{className:"text-gray-900"},n),(t=>l(t)?(0,e.createElement)(Kf,{className:"w-5 h-5 group-hover:fill-current"}):(0,e.createElement)(Jf,{className:"w-5 h-5 group-hover:fill-current"}))(r))})),(0,e.createElement)("div",{className:"bg-black bg-opacity-75 rounded w-full h-full p-6 absolute inset-0 flex lg:hidden items-center justify-center"},(0,e.createElement)("h3",{className:"text-lg m-0 text-white text-center"},(0,t.__)("Guided tours are optimized for large screens, ensuring the best possible experience.","extendify")))))},Yp="welcome-message",Xp=()=>{const{isDismissed:n,dismissNotice:r}=Mf(),o=window.extAssistData.dismissedNotices.find((e=>e.id===Yp)),[i,a]=(0,e.useState)(!1),{startTour:s}=Sp(),{launchCompleted:l}=window.extAssistData;return(0,e.useEffect)((()=>{o||n(Yp)||a(!0)}),[o,n,r]),(0,e.useEffect)((()=>{i&&l&&r(Yp)}),[r,i,l]),i&&l?(0,e.createElement)("div",{id:"assist-welcome-notice",className:"bg-design-main text-design-text w-full text-base p-6 md:p-8 rounded mb-6 relative"},(0,e.createElement)("div",{className:"absolute right-0 top-0"},(0,e.createElement)("button",{className:"bg-white bg-opacity-70 hover:bg-opacity-80 rounded-bl px-0.5 h-6 w-6 cursor-pointer flex items-center",type:"button",onClick:()=>a(!1)},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}))),(0,e.createElement)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 items-start"},(0,e.createElement)("div",{className:"xl:max-w-lg col-span-8"},(0,e.createElement)("h3",{className:"text-2xl mt-0 mb-3 text-white"},(0,t.__)("Your site is ready!","extendify")),(0,e.createElement)("p",{className:"text-sm my-0"},(0,t.__)("The Site Assistant is your go-to dashboard to help you get the most out of your site.","extendify"))),(0,e.createElement)("div",{className:"xl:max-w-lg col-span-4 flex sm:items-start lg:items-center lg:justify-evenly h-full"},(0,e.createElement)("button",{className:"h-12 bg-white border-none cursor-pointer gap-3 grid grid-flow-col items-center no-underline px-5 py-3 rounded-sm text-design-main text-base hover:bg-gray-200 focus:shadow-button",onClick:()=>s(Dp)},(0,t.__)("Take a tour","extendify"),(0,e.createElement)(Jf,{className:"w-5 h-5 group-hover:fill-current fill-current"}))))):null},Jp=t=>{let{children:n}=t;return(0,e.createElement)("div",{className:"max-w-screen-2xl mx-4 md:mx-12 3xl:mx-auto pt-2 xl:pt-8 flex justify-center flex-col"},n)},Kp=()=>{const{themeSlug:t,launchCompleted:n}=window.extAssistData;return"extendable"!==t||n?"extendable"===t?(0,e.createElement)(qp,null):null:(0,e.createElement)(hf,null)},Qp=()=>{var n,o,i;const{searchTerm:a,setSearchTerm:s,activeCategory:l,articles:c,clearArticles:u,popArticle:d,reset:f}=Bf();return l||c?(0,e.createElement)("div",{className:"flex items-center py-3 px-8 text-gray-700 bg-white border-l border-r border-gray-300"},(0,e.createElement)("button",{"aria-label":(0,t.__)("Knowledge Base home","extendify-sdk"),type:"button",className:"flex items-center underline p-0 text-xs bg-transparent text-gray-700 cursor-pointer",onClick:f},(0,e.createElement)(r,{icon:qf,className:"fill-current"})),a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{icon:vf,className:"fill-current"}),(0,e.createElement)("button",{type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:()=>{f(),s(a)}},(0,t.sprintf)((0,t.__)('Search results for "%s"',"extendify-sdk"),a))),l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{icon:vf,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":l?.title,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:u},l?.title)),c?.[1]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{icon:vf,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":null!==(n=c?.[1]?.title)&&void 0!==n?n:c?.[1]?.slug,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:d},null!==(o=c?.[1]?.title)&&void 0!==o?o:c?.[1]?.slug)),c?.[0]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{icon:vf,className:"fill-current"}),(0,e.createElement)("span",null,null!==(i=c?.[0]?.title)&&void 0!==i?i:c?.[0]?.slug))):null};var em=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),tm=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const nm=n=>{let{handleSubmission:o}=n;const{searchTerm:i,clearSearchTerm:a,reset:s}=Bf();return(0,e.createElement)("form",{method:"get",onSubmit:e=>{e.preventDefault(),o(i)},className:"relative w-full max-w-xs h-8"},(0,e.createElement)("label",{htmlFor:"s",className:"sr-only"},(0,t.__)("Search for articles","extendify")),(0,e.createElement)("input",{name:"s",id:"s",type:"text",value:null!=i?i:"",onChange:e=>o(e.target.value),placeholder:(0,t.__)("Search...","extendify"),className:"input w-full placeholder-gray-400 text-sm pr-16 h-full"}),(0,e.createElement)("div",{className:"absolute right-0 text-gray-400 flex items-center justify-center inset-y-0"},(0,e.createElement)(r,{icon:i?tm:em,className:pf()("fill-current",{"cursor-pointer":i}),onClick:()=>{s(),a()},size:30})))};var rm=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));const om=o=>{let{searchResponse:i}=o;const{data:a,loading:s,error:l}=i,{offset:c,setOffset:u}=Bf(),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return u("add"===e?c+t:c-t)};return s?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null)):l?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("There was an error loading articles","extendify"),(0,e.createElement)("br",null),l):a?.length?(0,e.createElement)("div",{className:"flex items-center flex-wrap justify-center"},(0,e.createElement)("div",{className:"max-w-4xl w-full flex flex-col gap-2","data-test":"search-results"},a.map((t=>(0,e.createElement)(im,Hf({key:t.id},t))))),(0,e.createElement)("div",{className:"flex items-center justify-between max-w-4xl w-full"},c>0?(0,e.createElement)("button",{className:"flex justify-start items-center no-underline hover:underline hover:text-partner-primary-bg bg-transparent mb-3 mt-2 p-0 w-full cursor-pointer font-semibold text-design-main",onClick:()=>d("remove")},(0,e.createElement)(r,{icon:rm,className:"fill-current"}),(0,t.__)("Previous","extendify")):(0,e.createElement)("div",{className:"w-full"}),a.length?(0,e.createElement)("button",{className:"flex justify-end items-center no-underline hover:underline hover:text-partner-primary-bg bg-transparent mb-3 mt-2 p-0 w-full cursor-pointer font-semibold text-design-main",onClick:()=>d("add")},(0,t.__)("Next","extendify"),(0,e.createElement)(r,{icon:vf,className:"fill-current"})):(0,e.createElement)("div",{className:"w-full"}))):(0,e.createElement)("div",{className:"p-8 text-base text-center","data-test":"no-results"},(0,t.__)("Sorry, we couldn't find anything","extendify"))},im=n=>{let{link:r,slug:o,title:i,excerpt:a}=n;const{pushArticle:s}=Bf();return(0,e.createElement)("a",{href:r,onClick:e=>{e.preventDefault(),s({slug:o,title:i.rendered})},className:"p-4 flex flex-col gap-1 no-underline bg-transparent w-full cursor-pointer text-gray-900 hover:bg-gray-100 focus:outline-none ring-design-main focus:ring-wp focus:ring-offset-1 focus:ring-offset-white"},(0,e.createElement)("h3",{className:"font-semibold text-lg text-left m-0"},i.rendered),(0,e.createElement)("div",{className:"text-sm text-left",dangerouslySetInnerHTML:{__html:(l=a.rendered,l.replaceAll((0,t.__)("Go to the list of Blocks","extendify"),"").replaceAll((0,t.__)("Go back to the list of Blocks","extendify"),"").replace(/<\/?p>/g,""))}}));var l};var am=o(488),sm=(am.domToReact,am.htmlToDOM,am.attributesToProps,am.Comment,am.Element,am.ProcessingInstruction,am.Text,am);const lm=()=>{const{articles:r,pushArticle:o,updateTitle:i}=Bf(),a=(0,e.useRef)(),s=r?.[0]?.slug,{data:l,error:c,loading:u}=(e=>{const{data:t,error:n}=su(`support-article-${e}`,(async()=>{var t;const n=await(e=>uf.get("assist/support-article",{params:{slug:e}}))(e);if(!n?.data||!Array.isArray(n.data))throw console.error(`We got an empty response while querying support-article-${e}`,n),new Error("Bad Data");return null!==(t=n.data?.[0])&&void 0!==t?t:{}}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{data:t,error:n,loading:!t&&!n}})(s),d=l?.title?.rendered;return(0,e.useEffect)((()=>{s&&d&&i(s,d)}),[d,i,s]),(0,e.useEffect)((()=>{if(!a.current)return;const e=a.current?.querySelectorAll("a"),t=async e=>{var t;if(e.preventDefault(),e.ctrlKey||e.metaKey)return e.stopPropagation(),window.open(e.target.href,"_blank");const n=null!==(t=e.target?.href)&&void 0!==t?t:e.target?.closest("a")?.href,{pathname:r}=new URL(n),i=r.split("/").filter(Boolean)?.at(-1),{data:a}=await(s=r,uf.get("assist/get-redirect",{params:{path:s}}));var s;if(!a)return r.startsWith("/documentation/article/")?o({slug:i,title:void 0}):window.open(`https://wordpress.org${r}`,"_blank");o({slug:a.split("/").filter(Boolean)?.at(-1)})},n=e=>{e.preventDefault(),window.open(e.target.href,"_blank")},r=e=>e.preventDefault();return e.forEach((e=>{const{hash:o,host:i,pathname:a}=new URL(e.href);if(o&&i===window.location.host||a.startsWith("/support/category"))return e.addEventListener("click",r),e.setAttribute("aria-disabled","true"),void e.classList.add("link-disabled");if(a.match(/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx)$/))return void e.addEventListener("click",r);if(a.startsWith("/documentation/article")||a.startsWith("/support/article"))return void e.addEventListener("click",t);e.addEventListener("click",n);const s=document.createElement("span");s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" class="components-external-link__icon css-rvs7bx esh4a730" aria-hidden="true" focusable="false"><path d="M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"></path></svg>',e.appendChild(s)})),()=>{e.forEach((e=>{e?.removeEventListener("click",t),e?.removeEventListener("click",n),e?.removeEventListener("click",r)}))}}),[l,o]),u?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null)):c?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("There was an error loading this article","extendify")):(0,e.createElement)("article",{ref:a,className:"extendify-documentation w-full"},(0,e.createElement)("h1",{className:"m-0 text-3xl"},d),l?.content?.rendered&&sm(l?.content?.rendered))},cm=()=>{const{setSearchTerm:n,searchTerm:r,offset:o,reset:i,articles:a,activeCategory:s}=Bf(),l=(e=>{let{term:t,perPage:n,offset:r}=e;const{data:o,error:i}=su({term:t,perPage:n,offset:r},(async e=>{let{term:t,perPage:n,offset:r}=e;if(!t)return[];const o=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return uf.get("assist/support-articles-search",{params:{search:e,per_page:t,offset:n}})}(t,n,r);if(!o?.data||!Array.isArray(o.data))throw console.error("We got an empty response while querying search-articles",o),new Error("Bad Data");return o.data}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{data:o,error:i,loading:!o&&!i}})({term:r,perPage:10,offset:o});return(0,e.useEffect)((()=>(Om.onRouteChange(i),()=>Om.removeOnRouteChange(i))),[i]),(0,e.createElement)("div",{className:"my-4"},(0,e.createElement)("div",{className:"bg-design-main p-8 m-0 rounded-t flex gap-3 flex-col md:flex-row justify-between"},(0,e.createElement)("h2",{className:"m-0"},(0,e.createElement)("button",{onClick:i,title:(0,t.__)("Back to Knowledge Base home","extendify"),type:"button",className:"text-partner-primary-text text-xl cursor-pointer font-normal focus:outline-none bg-transparent p-0 m-0"},(0,t.__)("Knowledge Base","extendify"))),(0,e.createElement)(nm,{handleSubmission:e=>{i(),n(e)}})),(a?.length>0||s||l?.data?.length>0)&&(0,e.createElement)(Qp,null),(0,e.createElement)("div",{className:"flex flex-col w-full bg-white border border-gray-300 p-4 lg:p-8 min-h-half","data-test":"kb-content"},(0,e.createElement)(um,{articles:a,search:r,searchResponse:l})))},um=t=>{let{articles:n,search:r,searchResponse:o}=t;return n?.length>0?(0,e.createElement)(lm,null):r?.length>0?(0,e.createElement)(om,{searchResponse:o}):(0,e.createElement)(dm,{articles:n})},dm=()=>{const{activeCategory:o,setActiveCategory:i,pushArticle:a}=Bf(),{data:s,error:l}=(()=>{const{data:e,error:t}=su("support-article-categories",(async()=>{const e=await uf.get("assist/support-article-categories");if(!e?.data||!Array.isArray(e.data))throw console.error("We got an empty response while querying support-article-categories",e),new Error("Bad Data");return e.data}),{refreshInterval:36e4,revalidateOnFocus:!1,dedupingInterval:36e4});return{data:e,error:t,loading:!e&&!t}})(),{data:c,loading:u,error:d}=Df(),f=window.extAssistData.wpLanguage||"en";if(d||l)return(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("There was an error loading articles","extendify"));if(u||!s)return(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null));if(c&&0===c?.length)return(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("No support articles found...","extendify"));const p=s?.map((e=>{const t=c?.filter((t=>t.supportArticleCategoriesSlug?.includes(e.slug)));return{...e,articles:t}}));return(0,e.createElement)(e.Fragment,null,f?.startsWith("en")?null:(0,e.createElement)("p",{className:"my-8 py-3.5 px-4 text-base border border-blue-300 bg-blue-50"},(0,t.__)("Please note: these articles are available in English only.","extendify")),(0,e.createElement)("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-x-4 gap-y-8"},p.filter((e=>{let{slug:t}=e;return!o||t===o.slug})).map((n=>(0,e.createElement)("div",{key:n.slug,"data-test":"kb-category"},(0,e.createElement)("button",{"aria-label":n.title,type:"button",className:pf()("mt-0 mb-4 text-base font-semibold no-underline bg-transparent p-0",{"hover:underline":!o,"hover:text-partner-primary-bg":!o,"cursor-pointer":!o}),onClick:()=>i({title:n.title,slug:n.slug})},n.title),n.articles.filter(((e,t)=>o||t<5)).map((t=>{let{slug:o,extendifyTitle:s}=t;return(0,e.createElement)("button",{"aria-label":s,key:o,type:"button",className:"flex items-center gap-2 no-underline hover:underline hover:text-partner-primary-bg bg-transparent mb-3 p-0 w-full cursor-pointer",onClick:()=>{i(n),a({slug:o,title:s})}},(0,e.createElement)(r,{icon:zf,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-tight font-normal text-left text-sm -mt-px"},s))})),!o&&n.articles.length>5&&(0,e.createElement)("button",{"aria-label":(0,t.__)("Show all","extendify"),type:"button",className:"text-left no-underline hover:underline hover:text-partner-primary-bg bg-transparent mb-3 mt-4 p-0 w-full cursor-pointer font-semibold text-design-main flex items-center",onClick:()=>{i({title:n.title,slug:n.slug})}},(0,t.__)("Show all","extendify"),(0,e.createElement)(r,{icon:vf,className:"fill-current"})))))))};var fm;const pm="extendify-site-selection",mm={siteType:{},siteInformation:{title:void 0},siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[],...null!==(fm=JSON.parse(localStorage.getItem(pm)||"{}")?.state)&&void 0!==fm?fm:{}},hm={getItem:async()=>JSON.stringify(await uf.get("assist/user-selection-data")),setItem:async(e,t)=>{var n;localStorage.setItem(e,t),await(n=t,uf.post("assist/user-selection-data",{data:n}))},removeItem:()=>{}},gm=pu(wu(gu((()=>({...mm})),{name:"Extendify User Selections"}),{name:pm,storage:yu((()=>hm))})),vm=()=>{var r,o,i;const{recommendations:a,loading:s,error:l}=xf(),{goals:c}=gm(),{completedTasks:u}=op(),{track:d}=Tf(),f=null!==(r=a?.filter((e=>c?.some((t=>e?.goalDepSlugs?.includes(t?.slug))))))&&void 0!==r?r:[],p=null!==(o=a?.filter((e=>u?.some((t=>e?.taskDepSlugs?.includes(t?.id))))))&&void 0!==o?o:[],m=[...null!==(i=a?.filter((e=>{let{goalDepSlugs:t,taskDepSlugs:n}=e;return null===t&&null===n})))&&void 0!==i?i:[],...f,...p];return s||l?(0,e.createElement)("div",{className:"my-4 w-full flex justify-center bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)(n.Spinner,null)):0===m.length?(0,e.createElement)("div",{className:"my-4 w-full mx-auto bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,t.__)("All set! We don't have any recommendations right now for your site.","extendify")):(0,e.createElement)("div",{className:"my-4 w-full mx-auto text-base"},m.map((t=>{let{slug:n,title:r,description:o,linkType:i,externalLink:a,internalLink:s,buttonText:l}=t;return(0,e.createElement)("div",{key:n,className:"mb-4 w-full bg-white border border-gray-300 p-4 lg:p-8 flex flex-col rounded"},(0,e.createElement)("h3",{className:"m-0 mb-2 text-md font-bold"},r),(0,e.createElement)("p",{className:"m-0 text-sm"},o),(0,e.createElement)("a",{className:"px-3 py-2 mt-4 w-max leading-tight min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded relative z-10 cursor-pointer text-center no-underline text-sm",href:"externalLink"===i?`${a}`:`${window.extAssistData.adminUrl}${s}`,onClick:()=>d(n),target:"externalLink"===i?"_blank":"",rel:"externalLink"===i?"noreferrer":void 0},(0,e.createElement)("span",null,l)))})))},ym=()=>{const{seeTask:r,isCompleted:o}=op(),{tasks:i,loading:a,error:s}=ip(),[l,c]=(0,e.useState)(!1),u=i?.filter((e=>o(e.slug))),d=i?.filter((e=>!o(e.slug)));return(0,e.useEffect)((()=>{i?.length&&i.forEach((e=>r(e.slug)))}),[i,r]),a||s?(0,e.createElement)("div",{className:"my-4 w-full flex justify-center bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)(n.Spinner,null)):0===i?.length||0===i?.length?(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded","data-test":"no-tasks-found"},(0,t.__)("No tasks found...","extendify")):(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,t.__)("Personalized tasks for your site","extendify")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("%s completed","extendify"),u.length)),u.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"·"),(0,e.createElement)("button",{className:"underline cursor-pointer p-0 bg-white",onClick:()=>{c(!l)}},l?(0,t.__)("Hide","extendify"):(0,t.__)("Show","extendify"))))),(0,e.createElement)("div",{className:"uncompleted-tasks w-full border border-b-0 border-gray-300","data-test":"uncompleted-tasks"},l?d.map((t=>(0,e.createElement)(bm,{key:t.slug,task:t}))):0===d.length?(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-b border-gray-300 p-2 lg:p-8"},(0,e.createElement)(Uf,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify"))):(0,e.createElement)(Vt,null,d.map((t=>(0,e.createElement)(Ul.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(bm,{task:t})))))),l&&(0,e.createElement)("div",{className:"completed-tasks w-full border border-b-0 border-t-0 border-gray-300"},u.map((t=>(0,e.createElement)(bm,{key:t.slug,task:t})))))},bm=t=>{let{task:n}=t;return(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(zp,{task:n}))},wm=n=>{let{tour:r}=n;const{wasOpened:o}=Sp(),{slug:i}=r;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flex gap-3 items-center"},(0,e.createElement)("div",{className:"sr-only"},o(i)?(0,t.__)("Completed","extendify"):(0,t.__)("Not completed","extendify")),(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",className:"flex-shrink-0 w-6 h-6 rounded-full text-gray-400"},(0,e.createElement)("circle",{className:"checkbox__background",r:"5",cx:"8",cy:"8",stroke:o(i)?"var(--ext-design-main, #3959e9)":"currentColor",fill:o(i)?"var(--ext-design-main, #3959e9)":"none",strokeWidth:"1"}),(0,e.createElement)("polyline",{className:"checkbox__checkmark",points:"5,8 8,10 11,6",stroke:o(i)?"#fff":"transparent",strokeWidth:"1",fill:"none"})),(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"text-base font-semibold mr-2"},r.title))),(0,e.createElement)("div",{className:"flex items-center justify-end gap-3"},(0,e.createElement)(Up,{task:r,className:"px-3 py-2 leading-tight min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm"})))},xm=()=>{const{tours:r,loading:o,error:i}=$p(),{wasOpened:a}=Sp(),s=r?.filter((e=>a(e.slug))),l=r?.filter((e=>{var t;return null===(t=Hp[e.slug]?.settings?.enabled)||void 0===t||t}));return o||i?(0,e.createElement)("div",{className:"my-4 w-full flex justify-center bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)(n.Spinner,null)):0===l?.length?(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded","data-test":"no-tours-found"},(0,t.__)("No tours found...","extendify")):(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,t.__)("Get going with these WordPress tours","extendify")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("%s completed","extendify"),s.length)))),(0,e.createElement)("div",{className:"all-tours w-full border border-b-0 border-gray-300 relative","data-test":"all-tours"},l.map((t=>(0,e.createElement)(Em,{key:t.slug,tour:t}))),(0,e.createElement)("div",{className:"bg-black bg-opacity-75 rounded w-full h-full p-6 absolute inset-0 flex lg:hidden items-center justify-center z-10"},(0,e.createElement)("h3",{className:"text-lg m-0 text-white text-center"},(0,t.__)("Guided tours are optimized for large screens, ensuring the best possible experience.","extendify")))))},Em=t=>{let{tour:n}=t;return(0,e.createElement)("div",{className:"tour-item-wrapper p-3 flex gap-3 justify-between border-0 border-b border-gray-300 bg-white relative items-center"},(0,e.createElement)(wm,{tour:n}))},Cm=[{slug:"dashboard",name:(0,t.__)("Dashboard","extendify"),icon:Wf,component:()=>{const{disableRecommendations:n}=window.extAssistData;return(0,e.createElement)(Jp,null,(0,e.createElement)(Rf,null),(0,e.createElement)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 items-start my-4"},(0,e.createElement)("div",{className:"col-span-12 xl:col-span-7"},(0,e.createElement)(Xp,null),(0,e.createElement)(Kp,null),n?null:(0,e.createElement)(Lf,null)),(0,e.createElement)("div",{className:"col-span-12 xl:col-span-5"},(0,e.createElement)("h2",{className:"text-base leading-tight m-0 bg-gray-800 text-white px-8 py-4 rounded-t-lg"},(0,t.__)("Help Center","extendify")),(0,e.createElement)(Qf,null),(0,e.createElement)(Gp,null),(0,e.createElement)(yf,null))))}},{slug:"tasks",name:(0,t.__)("Tasks","extendify"),icon:Gf,component:()=>(0,e.createElement)(Jp,null,(0,e.createElement)(ym,null))},{slug:"tours",name:(0,t.__)("Tours","extendify"),icon:Yf,component:()=>(0,e.createElement)(Jp,null,(0,e.createElement)(xm,null))},{slug:"recommendations",name:(0,t.__)("Recommendations","extendify"),icon:$f,component:()=>(0,e.createElement)(Jp,null,(0,e.createElement)(vm,null))},{slug:"knowledge-base",name:(0,t.__)("Knowledge Base","extendify"),icon:qf,component:()=>(0,e.createElement)(Jp,null,(0,e.createElement)(cm,null))}],{themeSlug:Sm,launchCompleted:km,disableRecommendations:Tm}=window.extAssistData,Lm="extendable"!==Sm||!km,_m=Cm.filter((e=>{const t="tasks"===e.slug&&Lm,n="recommendations"===e.slug&&Tm;return!t&&!n}));let Am=[];const Nm={getItem:async()=>JSON.stringify(await uf.get("assist/router-data")),setItem:async(e,t)=>{return await(n=t,uf.post("assist/router-data",{data:n}));var n},removeItem:()=>{}},Pm=pu(wu(gu(((e,t)=>({history:[],viewedPages:[],current:null,setCurrent:async n=>{if(n){for(const e of Am)await e(n,{...t()});t().history[0]?.slug!==n.slug&&e((e=>{const t=(new Date).toISOString(),r=t,o=e.viewedPages.find((e=>e.slug===n.slug));return{history:[n,...e.history].filter(Boolean),current:n,viewedPages:[...e.viewedPages.filter((e=>e.slug!==n.slug)),o?{...o,count:o.count+1,lastViewedAt:t}:{slug:n.slug,firstViewedAt:r,lastViewedAt:t,count:1}]}}))}}})),{name:"Extendify Assist Router"}),{name:"extendify-assist-router",storage:yu((()=>Nm)),partialize:e=>{let{viewedPages:t}=e;return{viewedPages:t}}})),Om={onRouteChange:e=>{Am.includes(e)||(Am=[...Am,e])},removeOnRouteChange:e=>{Am=Am.filter((t=>t!==e))}};let Mm=!1;const Rm=()=>{var t;const{current:n,setCurrent:r,history:o}=Pm(),i=null!==(t=n?.component)&&void 0!==t?t:()=>null,a=e=>{window.location.hash!==`#${e}`?window.location.hash=`#${e}`:window.dispatchEvent(new Event("hashchange"))};return(0,e.useLayoutEffect)((()=>{var e;window.location.hash||(window.location.hash=`#${null!==(e=n?.slug)&&void 0!==e?e:"dashboard"}`)}),[n]),(0,e.useEffect)((()=>{if(Mm)return;Mm=!0;const e=()=>{const e=window.location.hash.replace("#",""),t=_m.find((t=>t.slug===e));var o;t?(r(t),document.title=`${t.name} | Extendify Assist`):a(null!==(o=n?.slug)&&void 0!==o?o:"dashboard")};return window.addEventListener("hashchange",e),n||e(),()=>{Mm=!1,window.removeEventListener("hashchange",e)}}),[n,r]),{current:n,CurrentPage:(0,e.useCallback)((()=>(0,e.createElement)("div",{role:"region","aria-live":"polite"},(0,e.createElement)("h1",{className:"sr-only"},n?.name),(0,e.createElement)(i,null))),[n]),filteredPages:_m,navigateTo:a,history:o}},Dm=e=>{const{top:t,right:n,bottom:r,left:o,width:i,height:a,x:s,y:l}=e.getBoundingClientRect();return{top:t,right:n,bottom:r,left:o,width:i,height:a,x:s,y:l}},Vm=()=>{var n,o;const i=(0,e.useRef)(),{currentTour:s,currentStep:l,startTour:c,closeCurrentTour:u,getStepData:d,onTourPage:f}=Sp(),{settings:p}=s||{},{image:m,title:h,text:g,attachTo:v,events:y,options:b}=d(l),{queueTourForRedirect:w,queuedTour:x,clearQueuedTour:E}=xu(),{element:C,frame:S,offset:k,position:T,hook:L,boxPadding:_}=v||{},A=(0,e.useMemo)((()=>"function"==typeof C?C():C),[C]),N=(0,e.useMemo)((()=>"function"==typeof S?S():S),[S]),P=(0,e.useMemo)((()=>"function"==typeof k?k():k),[k]),O=(0,e.useMemo)((()=>"function"==typeof L?L():L),[L]),[M,R]=(0,e.useState)(null),D=(0,e.useRef)(),[V,j]=(0,e.useState)(!1),[I,F]=(0,e.useState)(!1),[B,H]=(0,e.useState)(null),[U,z]=(0,e.useState)({x:void 0,y:void 0,...P}),q=(0,e.useCallback)(((e,t)=>{z(20===e?{x:e,y:t}:{x:e,y:t,...P})}),[P]),Z=(0,e.useCallback)((()=>{const e=O?.split(" ")||[];return{x:e.includes("right")?i.current?.offsetWidth:0,y:e.includes("bottom")?i.current?.offsetHeight:0}}),[O]),W=(0,e.useCallback)((()=>{var e,t,n,r;if(!M)return;const o=N&&null!==(e=document.querySelector(N)?.contentDocument)&&void 0!==e?e:document,a=Dm(null!==(t=o.querySelector(A))&&void 0!==t?t:M);if(o!==document){const e=Dm(o.defaultView.frameElement);a.x+=e.x,a.left+=e.x,a.right+=e.x,a.y+=e.y,a.top+=e.y,a.bottom+=e.y}if(window.innerWidth<=960)return void u("closed-resize");if(void 0===T?.x)return q(void 0,void 0),H(null),void F(!1);const s=a?.[T.x]-Z().x,l=a?.[T.y]-Z().y,c=i.current;q(Math.min(s,window.innerWidth-(null!==(n=c?.offsetWidth)&&void 0!==n?n:0)-20),Math.min(l,window.innerHeight-(null!==(r=c?.offsetHeight)&&void 0!==r?r:0)-20)),H(a)}),[M,T,Z,q,N,A,u]);if((0,e.useLayoutEffect)((()=>{p?.startFrom&&(f()||(j(!0),w(s.id),u("redirected"),window.location.assign(p?.startFrom[0]),window.location.href.split("#")[0]===p.startFrom[0].split("#")[0]&&window.location.reload()))}),[p?.startFrom,s,w,u,f]),(0,e.useLayoutEffect)((()=>{if(V)return;const e=x;let t=0;if(!e||!Hp[e])return E();const n=()=>{requestAnimationFrame((()=>{c(Hp[e])})),E()};return addEventListener("load",n),"complete"===document.readyState&&(t=requestAnimationFrame(n)),()=>{cancelAnimationFrame(t),removeEventListener("load",n)}}),[c,x,E,V]),(0,e.useEffect)((()=>{var e;const t=(N&&null!==(e=document.querySelector(N)?.contentDocument)&&void 0!==e?e:document).querySelector(A);if(t)return R(t),()=>R(null)}),[N,A]),(0,e.useLayoutEffect)((()=>{if(M&&!V)return F(!0),W(),addEventListener("resize",W),M.style.pointerEvents="none",()=>{removeEventListener("resize",W),M.style.pointerEvents="auto"}}),[V,M,W]),(0,e.useEffect)((()=>{if(void 0===l||!M)return;y?.onAttach?.(M);let e=0;const t=requestAnimationFrame((()=>{e=requestAnimationFrame(W)}));return()=>{y?.onDetach?.(M),cancelAnimationFrame(t),cancelAnimationFrame(e)}}),[l,y,M,W]),(0,e.useLayoutEffect)((()=>{if(p?.allowOverflow)return document.documentElement.classList.add("ext-force-overflow-auto"),()=>{document.documentElement.classList.remove("ext-force-overflow-auto")}}),[p]),(0,e.useEffect)((()=>{const e=()=>u("assist-route-change");return Om.onRouteChange(e),()=>Om.removeOnRouteChange(e)}),[u]),!I)return null;const $=Im(B,_);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Vt,null,Boolean(s)&&(0,e.createElement)(Ke,{as:Ul.div,static:!0,initialFocus:D,className:"extendify-assist",open:Boolean(s),onClose:()=>{}},(0,e.createElement)("div",{className:"relative z-max"},(0,e.createElement)(Ul.div,{ref:i,animate:{opacity:1,...U},initial:{opacity:0,...U},onAnimationComplete:()=>{W()},transition:{duration:.5,ease:"easeInOut"},className:"fixed top-0 left-0 shadow-2xl sm:overflow-hidden bg-transparent flex flex-col max-w-xs z-20",style:{minWidth:null!==(n=p?.minBoxWidth)&&void 0!==n?n:"325px"}},(0,e.createElement)("button",{"data-test":"close-tour",className:"absolute bg-white cursor-pointer flex ring-gray-200 ring-1 focus:ring-wp focus:ring-design-main focus:shadow-none h-6 items-center justify-center leading-none m-2 outline-none p-0 right-0 rounded-full top-0 w-6 border-0 z-20",onClick:()=>u("closed-manually"),"aria-label":(0,t.__)("Close Modal","extendify")},(0,e.createElement)(r,{icon:a,className:"w-4 h-4"})),(0,e.createElement)(Ke.Title,{className:"sr-only"},null!==(o=s?.title)&&void 0!==o?o:(0,t.__)("Tour","extendify")),m&&(0,e.createElement)("div",{className:"w-full p-6",style:{minHeight:150,background:"linear-gradient(58.72deg, #485563 7.71%, #29323C 92.87%)"}},(0,e.createElement)("img",{src:m,className:"w-full block",alt:h})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative bg-white"},h&&(0,e.createElement)("h2",{className:"text-xl font-medium mb-2"},h),g&&(0,e.createElement)("p",{className:"mb-6"},g),(0,e.createElement)(jm,{initialFocus:D})))))),b?.blockPointerEvents&&(0,e.createElement)("div",{"aria-hidden":!0,className:"fixed inset-0 z-max-1"}),(0,e.createElement)(Vt,null,Boolean(s)&&void 0!==B?.left&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ul.div,{initial:{opacity:0,clipPath:"polygon(0px 0px, 100% 0px, 100% 100%, 0px 100%, 0 0)"},animate:{opacity:1,clipPath:`polygon(0px 0px, 100% 0px, 100% 100%, 0px 100%, 0 0, ${$.left}px 0, ${$.left}px ${$?.bottom}px, ${$?.right}px ${$.bottom}px, ${$.right}px ${$.top}px, ${$.left}px ${$.top}px)`},transition:{duration:.5,ease:"easeInOut"},className:"hidden lg:block fixed inset-0 bg-black bg-opacity-70 z-max-1","aria-hidden":"true"}),(0,e.createElement)(Ul.div,{initial:{opacity:0,...null!=$?$:{}},animate:{opacity:1,...null!=$?$:{}},transition:{duration:.5,ease:"easeInOut"},className:"hidden lg:block fixed inset-0 border-2 border-design-main z-high","aria-hidden":"true"}))))},jm=r=>{let{initialFocus:o}=r;const{goToStep:i,completeCurrentTour:a,currentStep:s,preparingStep:l,getStepData:c,hasNextStep:u,nextStep:d,hasPreviousStep:f,prevStep:p,currentTour:m}=Sp(),{options:h={}}=c(s),{hideBackButton:g=!1}=h,{id:v,steps:y,settings:b}=m||{},{mainColor:w}=Eu(),{completeTask:x}=op();return(0,e.createElement)("div",{id:"extendify-tour-navigation",className:"flex justify-between items-center w-full"},(0,e.createElement)("div",{className:"flex-1 flex justify-start"},(0,e.createElement)(Vt,null,f()&&!g&&(0,e.createElement)(Ul.div,{initial:{opacity:0},animate:{opacity:1}},(0,e.createElement)("button",{className:"flex gap-2 p-0 h-8 rounded-sm items-center justify-center bg-transparent hover:bg-transparent focus:outline-none ring-design-main focus:ring-wp focus:ring-offset-1 focus:ring-offset-white text-gray-900 disabled:opacity-60",onClick:p,disabled:l>-1},l<s&&(0,e.createElement)(n.Spinner,{style:{color:w,margin:0,height:"1em"}}),(0,t.__)("Back","extendify"))))),y?.length>2&&!b?.hideDotsNav?(0,e.createElement)("nav",{role:"navigation","aria-label":(0,t.__)("Tour Steps","extendify"),className:"flex-1 flex items-center justify-center gap-1 transform -translate-x-3"},y.map(((n,r)=>(0,e.createElement)("div",{key:r},(0,e.createElement)("button",{style:{backgroundColor:r===s?w:void 0},"aria-label":(0,t.sprintf)((0,t.__)("%s of %s","extendify"),r+1,y.length),"aria-current":r===s,className:"focus:ring-wp focus:outline-none ring-offset-1 ring-offset-white focus:ring-design-main block cursor-pointer w-2.5 h-2.5 m-0 p-0 rounded-full "+(r===s?"bg-design-main":"bg-gray-300"),onClick:()=>i(r),disabled:l>-1}))))):null,(0,e.createElement)("div",{className:"flex-1 flex justify-end"},u()?(0,e.createElement)(n.Button,{ref:o,id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:d,disabled:l>-1,style:{backgroundColor:w},className:"flex gap-2 text-design-text focus:text-design-text disabled:opacity-60",variant:"primary"},l>s&&(0,e.createElement)(n.Spinner,{style:{color:w,margin:0,height:"1em"}}),(0,t.__)("Next","extendify")):(0,e.createElement)(n.Button,{id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:()=>{x(v),a()},style:{backgroundColor:w},variant:"primary"},(0,t.__)("Done","extendify"))))},Im=(e,t)=>{var n,r,o,i,a,s,l,c,u,d;return{top:e.top-(null!==(n=t?.top)&&void 0!==n?n:0),left:e.left-(null!==(r=t?.left)&&void 0!==r?r:0),right:e.right+(null!==(o=t?.right)&&void 0!==o?o:0),bottom:e.bottom+(null!==(i=t?.bottom)&&void 0!==i?i:0),width:e.width+(null!==(a=t?.left)&&void 0!==a?a:0)+(null!==(s=t?.right)&&void 0!==s?s:0),height:e.height+(null!==(l=t?.top)&&void 0!==l?l:0)+(null!==(c=t?.bottom)&&void 0!==c?c:0),x:e.x-(null!==(u=t?.left)&&void 0!==u?u:0),y:e.y-(null!==(d=t?.top)&&void 0!==d?d:0)}},Fm=()=>{const{modals:o,popModal:i}=Mf(),s=o[0],[l,c]=(0,e.useState)("");return(0,e.useEffect)((()=>{o[0]||c("")}),[o]),(0,e.createElement)(Ke,{as:"div",className:"extendify-assist",open:o.length>0,onClose:i},(0,e.createElement)("div",{className:"fixed top-0 mx-auto w-full h-full overflow-hidden p-2 md:p-6 md:flex justify-center items-center z-high"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity","aria-hidden":"true"}),(0,e.createElement)("div",{className:"sm:flex relative shadow-2xl sm:overflow-hidden mx-auto bg-white flex flex-col sm:min-w-md rounded-sm"},(0,e.createElement)("div",{className:"flex items-center justify-between"},(0,e.createElement)(Ke.Title,{className:"m-0 px-6 text-base text-gray-900"},l),(0,e.createElement)(n.Button,{className:"border-0 cursor-pointer m-4",onClick:i,icon:(0,e.createElement)(r,{icon:a,size:24}),label:(0,t.__)("Close Modal","extendify"),showTooltip:!1})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative"},o?.length>0&&(0,e.createElement)(s,{popModal:i,setModalTitle:c})))))},Bm=()=>(Eu(),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fm,null),(0,e.createElement)(Vm,null)));var Hm=window.wp.url;const Um=(0,Hm.addQueryArgs)(`${window.extAssistData.adminUrl}admin.php`,{page:"extendify-admin-page"}),zm=()=>(0,e.createElement)("a",{href:Um,id:"assist-help-center",className:"ab-item ltr:pl-1 ltr:pr-2 rtl:pl-2 rtl:pr-1 inline-flex justify-center items-center gap-2"},(0,e.createElement)(Zf,{className:"w-6 h-6 fill-current leading-loose"}),(0,e.createElement)("span",null,(0,t.__)("Help Center","extendify"))),qm=(0,Hm.addQueryArgs)(`${window.extAssistData.adminUrl}admin.php`,{page:"extendify-assist"}),Zm=()=>(0,e.createElement)("ul",{className:"ab-submenu"},(0,e.createElement)("li",null,(0,e.createElement)("a",{href:`${qm}#knowledge-base`,className:"ab-item"},(0,t.__)("Knowledge Base","extendify"))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:`${qm}#tours`,className:"ab-item"},(0,t.__)("Tours","extendify")))),Wm=()=>{const{startTour:n,wasOpened:r}=Sp(),o=Object.values(Hp).filter((e=>e?.settings?.startFrom.includes(window.location.href)));if(!o.length)return null;const i=document?.querySelector("a.wp-has-current-submenu, li.current > a.current"),a=document?.querySelector("#wpadminbar"),s=r(o[0].id)?window.getComputedStyle(a)?.["background-color"]:window.getComputedStyle(i)?.["background-color"];return(0,e.createElement)("button",{onClick:()=>n(o[0]),className:"ab-item ltr:pl-1 ltr:pr-2 rtl:pl-2 rtl:pr-1 inline-flex justify-center items-center gap-2 rounded-full h-6 mt-1 pl-2.5 pr-3 cursor-pointer",style:{backgroundColor:s,color:"#fff"}},(0,e.createElement)(Xf,{className:"w-6 h-6 fill-current"}),(0,e.createElement)("span",null,(0,t.__)("Tour this page","extendify")))},$m=`${window.extAssistData.wpLanguage}-assist-cache`,Gm=()=>{if(window.location.search.includes("DEVMODE")||window.location.search.includes("LOCALMODE"))return localStorage.removeItem($m),new Map;const e=new Map(JSON.parse(localStorage.getItem($m)||"[]"));return window.addEventListener("beforeunload",(()=>{const t=JSON.stringify(Array.from(e.entries()).filter((e=>!e[1]?.error)));localStorage.setItem($m,t)})),e};(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))}));var Ym=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1.23 13.33V19H10.9v-1.69c-1.5-.31-2.77-1.28-2.86-2.97h1.71c.09.92.72 1.64 2.32 1.64 1.71 0 2.1-.86 2.1-1.39 0-.73-.39-1.41-2.34-1.87-2.17-.53-3.66-1.42-3.66-3.21 0-1.51 1.22-2.48 2.72-2.81V5h2.34v1.71c1.63.39 2.44 1.63 2.49 2.97h-1.71c-.04-.97-.56-1.64-1.94-1.64-1.31 0-2.1.59-2.1 1.43 0 .73.57 1.22 2.34 1.67 1.77.46 3.66 1.22 3.66 3.42-.01 1.6-1.21 2.48-2.74 2.77z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,e.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Hf({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));const Xm=n=>{let{pages:o,activePage:i,setActivePage:a,hideMenu:s}=n;return(0,e.createElement)("nav",{"aria-labelledby":"assist-landing-nav"},(0,e.createElement)("h2",{id:"assist-landing-nav",className:"sr-only"},(0,t.__)("Assist navigation","extendify")),(0,e.createElement)("ul",{className:"space-x-1 flex flex-wrap lg:flex-nowrap rounded-t-sm overflow-hidden m-0 p-0 pb-2 lg:pb-0 lg-gap-1.5 bg-white bg-opacity-5 lg:bg-transparent"},o.map((t=>(0,e.createElement)("li",{className:"list-none m-0 p-0 w-full lg:w-auto",key:t.slug},(0,e.createElement)("button",{onClick:()=>{a(t.slug),s()},type:"button","aria-current":i===t.slug,className:pf()("rounded-sm w-full px-3 lg:px-2 lg:pr-3 py-2 text-sm text-design-text whitespace-nowrap cursor-pointer flex gap-1.5 items-center focus:outline-none focus:bg-white focus:bg-opacity-20",i===t.slug?"bg-white bg-opacity-10 lg:bg-opacity-20":"bg-transparent hover:bg-white hover:bg-opacity-10 lg:hover:bg-opacity-20")},t.icon&&(0,e.createElement)(r,{icon:t.icon,className:"fill-current flex"}),t.name))))))},Jm=()=>{const{filteredPages:n,navigateTo:r,current:o}=Rm(),[i,a]=(0,e.useState)(!1);return Eu(),(0,e.createElement)("header",{className:"w-full flex bg-design-main"},(0,e.createElement)("div",{className:"max-w-screen-2xl w-full mx-4 md:mx-12 3xl:mx-auto mt-auto flex flex-col"},(0,e.createElement)("div",{className:"flex flex-wrap justify-between items-center my-6 xl:my-8 gap-x-4 gap-y-2"},window.extAssistData?.partnerLogo&&(0,e.createElement)("div",{className:"w-40 h-16 flex items-center"},(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-assist`},(0,e.createElement)("img",{className:"h-full w-full",src:window.extAssistData.partnerLogo,alt:window.extAssistData.partnerName}))),!window.extAssistData?.partnerLogo&&(0,e.createElement)("a",{href:"/wp-admin/admin.php?page=extendify-assist"},(0,e.createElement)(Ym,{className:"logo text-design-text w-32 sm:w-40"})),(0,e.createElement)("div",{className:"lg:hidden"},(0,e.createElement)("button",{type:"button",className:pf()("cursor-pointer bg-transparent hover:bg-white hover:bg-opacity-20 text-design-text h-8 rounded-sm flex items-center gap-2 text-base",{"bg-white bg-opacity-20":i}),onClick:()=>a((e=>!e))},(0,e.createElement)("span",{className:"dashicons dashicons-menu-alt text-design-text"}),(0,t.__)("Menu","extendify"))),(0,e.createElement)("div",{id:"assist-menu-bar",className:pf()("lg:flex lg:w-auto flex-wrap gap-4 items-center",{hidden:!i,block:i,"w-full":i})},(0,e.createElement)(Xm,{hideMenu:()=>a(!1),pages:n,activePage:o?.slug,setActivePage:r}),(0,e.createElement)("a",{className:"text-sm text-center text-design-main cursor-pointer rounded-b-sm lg:rounded-sm py-2 px-3 bg-white border-none no-underline block lg:inline-block",href:window.extAssistData.home,target:"_blank",rel:"noreferrer"},(0,t.__)("View site","extendify"))))))},Km=()=>{const{CurrentPage:t}=Rm();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Jm,null),(0,e.createElement)(t,null))},Qm=new URLSearchParams(window.location.search),eh=["page"].includes(Qm.get("extendify-launch")),th=document.getElementById("extendify-assist-landing-page");if(!eh&&th&&(document.querySelector(".screen-reader-shortcut").insertAdjacentHTML("afterend",`<a href="#extendify-assist-landing-page" class="screen-reader-shortcut">${(0,t.__)("Skip to Assist","extendify")}</a>`),(0,e.render)((0,e.createElement)((()=>(0,e.createElement)(au,{value:{provider:Gm,onError:()=>{localStorage.removeItem(`${window.extAssistData.wpLanguage}-assist-cache`)},onErrorRetry:(e,t,n,r,o)=>{let{retryCount:i}=o;404!==e.status&&(403!==e?.data?.status?setTimeout((()=>r({retryCount:i})),5e3):window.location.reload())}}},(0,e.createElement)(Km,null))),null),th)),!eh){const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});document.body.append(t),(0,e.render)((0,e.createElement)(Bm,null),t)}if(eh||(document.querySelector("#toplevel_page_extendify-admin-page.wp-has-current-submenu")?.classList.add("current"),document.querySelectorAll(".extendify-assist-badge-count")?.forEach((t=>(0,e.render)((0,e.createElement)(ap,null),t)))),!eh){const t=Object.assign(document.createElement("li"),{id:"wp-admin-bar-extendify-assist-tour-button",className:"extendify-assist"});document.querySelector("#wp-admin-bar-my-account")?.after(t),(0,e.render)((0,e.createElement)(Wm,null),t);const n=Object.assign(document.createElement("li"),{id:"wp-admin-bar-extendify-assist-help-center",className:"extendify-assist menupop"});document.querySelector("#wp-admin-bar-my-account")?.after(n),(0,e.render)((0,e.createElement)(zm,null),n);const r=Object.assign(document.createElement("div"),{id:"wp-admin-bar-extendify-assist-help-center-sub-menu",className:"ab-sub-wrapper",style:"margin-top: -7px"});document.querySelector("#assist-help-center")?.after(r),(0,e.render)((0,e.createElement)(Zm,null),r)}}()}();