Sindbad~EG File Manager
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e,t,n={20:(e,t,n)=>{"use strict";var r=n(609),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:s,_owner:a.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},67:(e,t)=>{"use strict";t.YW=function(e,t={}){const{decode:f=decodeURIComponent,delimiter:h=n}=t,{regexp:p,keys:g}=function(e,t={}){const{delimiter:f=n,end:h=!0,sensitive:p=!1,trailing:g=!0}=t,y=[],v=[],w=p?"":"i",b=(Array.isArray(e)?e:[e]).map((e=>e instanceof u?e:function(e,t={}){const{encodePath:n=r}=t,l=new c(function*(e){const t=[...e];let n=0;function r(){let e="";if(o.test(t[++n]))for(e+=t[n];s.test(t[++n]);)e+=t[n];else if('"'===t[n]){let r=n;for(;n<t.length;){if('"'===t[++n]){n++,r=0;break}e+="\\"===t[n]?t[++n]:t[n]}if(r)throw new TypeError(`Unterminated quote at ${r}: ${i}`)}if(!e)throw new TypeError(`Missing parameter name at ${n}: ${i}`);return e}for(;n<t.length;){const e=t[n],o=a[e];if(o)yield{type:o,index:n++,value:e};else if("\\"===e)yield{type:"ESCAPED",index:n++,value:t[n++]};else if(":"===e){const e=r();yield{type:"PARAM",index:n,value:e}}else if("*"===e){const e=r();yield{type:"WILDCARD",index:n,value:e}}else yield{type:"CHAR",index:n,value:t[n++]}}return{type:"END",index:n,value:""}}(e)),d=function e(t){const r=[];for(;;){const o=l.text();o&&r.push({type:"text",value:n(o)});const s=l.tryConsume("PARAM");if(s){r.push({type:"param",name:s});continue}const i=l.tryConsume("WILDCARD");if(i)r.push({type:"wildcard",name:i});else{if(!l.tryConsume("{"))return l.consume(t),r;r.push({type:"group",tokens:e("}")})}}}("END");return new u(d)}(e,t)));for(const{tokens:e}of b)for(const t of d(e,0,[])){const e=m(t,f,y);v.push(e)}let x=`^(?:${v.join("|")})`;return g&&(x+=`(?:${l(f)}$)?`),x+=h?"$":`(?=${l(f)}|$)`,{regexp:new RegExp(x,w),keys:y}}(e,t),y=g.map((e=>!1===f?r:"param"===e.type?f:e=>e.split(h).map(f)));return function(e){const t=p.exec(e);if(!t)return!1;const n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;const n=g[e-1],o=y[e-1];r[n.name]=o(t[e])}return{path:n,params:r}}};const n="/",r=e=>e,o=/^[$_\p{ID_Start}]$/u,s=/^[$\u200c\u200d\p{ID_Continue}]$/u,i="https://git.new/pathToRegexpError",a={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function l(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class c{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){const t=this.tryConsume(e);if(void 0!==t)return t;const{type:n,index:r}=this.peek();throw new TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class u{constructor(e){this.tokens=e}}function*d(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type){const o=n.slice();for(const n of d(r.tokens,0,o))yield*d(e,t+1,n)}else n.push(r);yield*d(e,t+1,n)}function m(e,t,n){let r="",o="",s=!0;for(let a=0;a<e.length;a++){const c=e[a];if("text"!==c.type)if("param"!==c.type&&"wildcard"!==c.type);else{if(!s&&!o)throw new TypeError(`Missing text after "${c.name}": ${i}`);"param"===c.type?r+=`(${f(t,s?"":o)}+)`:r+="([\\s\\S]+)",n.push(c),o="",s=!1}else r+=l(c.value),o+=c.value,s||(s=c.value.includes(t))}return r}function f(e,t){return t.length<2?e.length<2?`[^${l(e+t)}]`:`(?:(?!${l(e)})[^${l(t)}])`:e.length<2?`(?:(?!${l(t)})[^${l(e)}])`:`(?:(?!${l(t)}|${l(e)})[\\s\\S])`}},338:(e,t,n)=>{"use strict";var r=n(795);t.H=r.createRoot,r.hydrateRoot},609:e=>{"use strict";e.exports=window.React},795:e=>{"use strict";e.exports=window.ReactDOM},848:(e,t,n)=>{"use strict";e.exports=n(20)},942:(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];n&&(e=i(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},992:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,s,i=[];for(s in"string"!=typeof t&&(t="?"),e)if(n.call(e,s)){if((r=e[s])||null!=r&&!isNaN(r)||(r=""),s=o(s),r=o(r),null===s||null===r)continue;i.push(s+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var s=r(t[1]),i=r(t[2]);null===s||null===i||s in o||(o[s]=i)}return o}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(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 s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(s,i),s},o.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=o(338);const t=window.wp.domReady;var n=o.n(t);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.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}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,i,a=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=o(609),l=o.t(a,2),c=o.n(a);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=window.wp.element;var y,v=o(992);function w(e){return{path:e.pathname,hash:e.hash,query:v.parse(e.search)}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(null,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(y||(y={}));var x="beforeunload";function E(e){e.preventDefault(),e.returnValue=""}function _(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var S=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function o(){var e=n.location,t=e.pathname,o=e.search,s=e.hash,i=r.state||{};return[i.idx,{pathname:t,search:o,hash:s,state:i.usr||null,key:i.key||"default"}]}var s=null;n.addEventListener("popstate",(function(){if(s)d.call(s),s=null;else{var e=y.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var i=l-n;i&&(s={action:e,location:r,retry:function(){v(-1*i)}},v(i))}}else g(e)}}));var i=y.Pop,a=o(),l=a[0],c=a[1],u=_(),d=_();function m(e){return"string"==typeof e?e:(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,s=void 0===o?"":o,i=t.hash,a=void 0===i?"":i,s&&"?"!==s&&(r+="?"===s.charAt(0)?s:"?"+s),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r);var t,n,r,o,s,i,a}function f(e,t){return void 0===t&&(t=null),b({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function h(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function p(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){i=e;var t=o();l=t[0],c=t[1],u.call({action:i,location:c})}function v(e){r.go(e)}return null==l&&(l=0,r.replaceState(b({},r.state,{idx:l}),"")),{get action(){return i},get location(){return c},createHref:m,push:function e(t,o){var s=y.Push,i=f(t,o);if(p(s,i,(function(){e(t,o)}))){var a=h(i,l+1),c=a[0],u=a[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}g(s)}},replace:function e(t,n){var o=y.Replace,s=f(t,n);if(p(o,s,(function(){e(t,n)}))){var i=h(s,l),a=i[0],c=i[1];r.replaceState(a,"",c),g(o)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(x,E),function(){t(),d.length||n.removeEventListener(x,E)}}}}(),k=wp.element.createContext({route:w(S.location)}),P=o(67),N=wp.element.useContext,C="";function T(e){var t=e.path,n=e.onRoute,r=e.children,o=N(k).route,s=(0,P.YW)("".concat(t))("".concat(o.hash.substr(1)));return s?(n&&(C!==s.path&&n(),C=s.path),React.createElement("div",null,wp.element.cloneElement(r,{route:s}))):null}var j=o(942),R=o.n(j);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var F=wp.element.useContext;function D(e){var t=e.to,n=e.onClick,r=e.children,o=e.activeClassName,s=F(k).route,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete i.activeClassName,React.createElement("a",b({},i,{className:R()(p({},o,(0,P.YW)("".concat(t))("".concat(s.hash.substr(1)))),e.className),onClick:function(e){if(e.preventDefault(),s.path!==t||e.target.classList.contains("hfe-user-icon"))if(n&&n(e),"elementor-hf"===t&&hfeSettingsData.header_footer_builder)window.location.href=hfeSettingsData.header_footer_builder;else{var r=S.location.search,o=window.location.hash;if(r.includes("admin.php?page=hfe")&&o.includes(t))if(t.includes("settings")){var i=r+"&tab=1";e.target.classList.contains("hfe-user-icon")&&window.location.hash.includes("settings")?window.location.href="".concat(i,"#").concat(t):S.push("".concat(r,"#").concat(t))}else{var a=r.replace(/&tab=[^&]*/,"");S.push("".concat(a,"#").concat(t))}else window.location.href="".concat(hfeSettingsData.hfe_settings_url,"#").concat(t)}}}),r)}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}var L=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,[e]),p(n,"handleRouteChange",(function(e){localStorage.setItem("hfeSelectedItemId","1");var t=w(null==e?void 0:e.location);n.setState({route:t})})),n.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),n.unlisten=S.listen(n.handleRouteChange);var r=w(S.location),o=S.location.search;return n.state={route:r,defaultRoute:null!=e&&e.defaultRoute?"".concat(o,"#").concat(null==e?void 0:e.defaultRoute):"".concat(o,"#/")},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),function(e,t){return t&&m(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.NotFound,this.state),r=n.route,o=n.defaultRoute;if(!r.hash)return S.push(o),React.createElement("div",null);var s=!1;(this.routes||[]).forEach((function(e){var t=(0,P.YW)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(s={name:e,data:t})}));var i={route:r,matched:s},a=!s;return React.createElement(k.Provider,{value:i},a?React.createElement("div",null,"Not found"):t)}}])}(g.Component),O=o(848);const I=e=>{const t=U(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),V(n,t)||z(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},V=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?V(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find((({validator:e})=>e(s)))?.classGroupId},B=/^\[(.+)\]$/,z=e=>{if(B.test(e)){const t=B.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},U=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return q(Object.entries(e.classGroups),n).forEach((([e,n])=>{W(n,r,e,t)})),r},W=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return H(e)?void W(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{W(o,$(t,e),n,r)}))}else(""===e?t:$(t,e)).classGroupId=n}))},$=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},H=e=>e.isThemeGetter,q=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,X=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Y=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],s=t.length,i=e=>{const n=[];let i,a=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===a){if(u===o&&(r||e.slice(c,c+s)===t)){n.push(e.slice(l,c)),l=c+s;continue}if("/"===u){i=c;continue}}"["===u?a++:"]"===u&&a--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},G=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},K=/\s+/;function Z(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=J(e))&&(r&&(r+=" "),r+=t);return r}const J=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=J(e[r]))&&(n&&(n+=" "),n+=t);return n};function Q(e,...t){let n,r,o,s=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:X(e.cacheSize),parseClassName:Y(e),...I(e)}))(l),r=n.cache.get,o=n.cache.set,s=i,i(a)};function i(e){const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(K);let a="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let m=Boolean(d),f=r(m?u.substring(0,d):u);if(!f){if(!m){a=t+(a.length>0?" "+a:a);continue}if(f=r(u),!f){a=t+(a.length>0?" "+a:a);continue}m=!1}const h=G(l).join(":"),p=c?h+"!":h,g=p+f;if(s.includes(g))continue;s.push(g);const y=o(f,m);for(let e=0;e<y.length;++e){const t=y[e];s.push(p+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,s),s}return function(){return s(Z.apply(null,arguments))}}const ee=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},te=/^\[(?:([a-z-]+):)?(.+)\]$/i,ne=/^\d+\/\d+$/,re=new Set(["px","full","screen"]),oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,se=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,le=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>de(e)||re.has(e)||ne.test(e),ue=e=>Se(e,"length",ke),de=e=>Boolean(e)&&!Number.isNaN(Number(e)),me=e=>Se(e,"number",de),fe=e=>Boolean(e)&&Number.isInteger(Number(e)),he=e=>e.endsWith("%")&&de(e.slice(0,-1)),pe=e=>te.test(e),ge=e=>oe.test(e),ye=new Set(["length","size","percentage"]),ve=e=>Se(e,ye,Pe),we=e=>Se(e,"position",Pe),be=new Set(["image","url"]),xe=e=>Se(e,be,Ce),Ee=e=>Se(e,"",Ne),_e=()=>!0,Se=(e,t,n)=>{const r=te.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},ke=e=>se.test(e)&&!ie.test(e),Pe=()=>!1,Ne=e=>ae.test(e),Ce=e=>le.test(e),Te=(Symbol.toStringTag,()=>{const e=ee("colors"),t=ee("spacing"),n=ee("blur"),r=ee("brightness"),o=ee("borderColor"),s=ee("borderRadius"),i=ee("borderSpacing"),a=ee("borderWidth"),l=ee("contrast"),c=ee("grayscale"),u=ee("hueRotate"),d=ee("invert"),m=ee("gap"),f=ee("gradientColorStops"),h=ee("gradientColorStopPositions"),p=ee("inset"),g=ee("margin"),y=ee("opacity"),v=ee("padding"),w=ee("saturate"),b=ee("scale"),x=ee("sepia"),E=ee("skew"),_=ee("space"),S=ee("translate"),k=()=>["auto",pe,t],P=()=>[pe,t],N=()=>["",ce,ue],C=()=>["auto",de,pe],T=()=>["","0",pe],j=()=>[de,pe];return{cacheSize:500,separator:":",theme:{colors:[_e],spacing:[ce,ue],blur:["none","",ge,pe],brightness:j(),borderColor:[e],borderRadius:["none","","full",ge,pe],borderSpacing:P(),borderWidth:N(),contrast:j(),grayscale:T(),hueRotate:j(),invert:T(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[he,ue],inset:k(),margin:k(),opacity:j(),padding:P(),saturate:j(),scale:j(),sepia:T(),skew:j(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[ge]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",pe]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fe,pe]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",fe,pe]}],"grid-cols":[{"grid-cols":[_e]}],"col-start-end":[{col:["auto",{span:["full",fe,pe]},pe]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[_e]}],"row-start-end":[{row:["auto",{span:[fe,pe]},pe]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,t]}],"min-w":[{"min-w":[pe,t,"min","max","fit"]}],"max-w":[{"max-w":[pe,t,"none","full","min","max","fit","prose",{screen:[ge]},ge]}],h:[{h:[pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ge,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[_e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",pe]}],"line-clamp":[{"line-clamp":["none",de,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,ue]}],"underline-offset":[{"underline-offset":["auto",ce,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",we]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ve]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[ce,pe]}],"outline-w":[{outline:[ce,ue]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ce,ue]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ge,Ee]}],"shadow-color":[{shadow:[_e]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ge,pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[fe,pe]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,ue,me]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),je=Q(Te);function Re(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Re(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Re(e))&&(r&&(r+=" "),r+=t);return r}const Fe=(...e)=>je(Ae(...e)),De=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),Me=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Le={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Oe={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Ie={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},Ve={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},Be={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},ze={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Ue={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},We={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},$e={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},He={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},qe={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Xe={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Ye={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Ge={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Ke={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Ze={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Je={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Qe=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,s]of Object.entries(e))t[r]&&o.push(t?.[r]?.[s]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const s=r;o.push(t?.[s]?.[e]??t?.[s]?.[n?.[s]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},et=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:s,justify:i,gridFlow:a,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:m,...f})=>{const h=Qe(t,Le,1),p=Qe(n,Oe,"sm"),g=Qe(r,Ie,""),y=Qe(o,Ve,""),v=Qe(s,$e,""),w=Qe(i,We,""),b=Qe(a,Ue,"");return(0,O.jsx)("div",{className:Fe("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},h,p,g,y,v,w,b,e),...f,children:m})};et.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:s,...i})=>{const a=Qe(n,Be,0),l=Qe(r,ze,0),c=Qe(o,He,""),u=Qe(s,qe,"");return(0,O.jsx)("div",{className:Fe(a,l,c,u,e),...i,children:t})};const tt=(0,a.createContext)({}),nt=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:s,align:i,wrap:a,cols:l,className:c,children:u,...d})=>{if("grid"===e)return(0,O.jsx)(tt.Provider,{value:{containerType:e},children:(0,O.jsx)(et,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:i,justify:s,...d})});const m=Qe(a,Ye,""),f=Qe(t,Oe,"sm"),h=Qe(n,Ie,""),p=Qe(r,Ve,""),g=Qe(o,Xe,""),y=Qe(s,We,""),v=Qe(i,$e,""),w=Fe("flex",m,f,h,p,g,y,v,c);return(0,O.jsx)(tt.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,O.jsx)("div",{className:w,children:u}):(0,O.jsx)(et,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:u,align:i,justify:s,...d})})},rt=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:s,children:i,...l})=>{const{containerType:c,cols:u}=(0,a.useContext)(tt);if("grid"===c)return(0,O.jsx)(et.Item,{className:s,alignSelf:r,justifySelf:o,children:i,...l});const d=Qe(r,He,""),m=Qe(o,qe,""),f=Qe(e,Ze,0),h=Qe(t,Je,0),p=Qe(n,Ke,0),g=Qe(u,Ge,1);return(0,O.jsx)("div",{className:Fe("box-border",f,h,p,d,m,g,s),children:i})};nt.Item=rt,nt.displayName="Container",rt.displayName="Container.Item";const ot=({children:e,gap:t="lg",className:n,...r})=>(0,O.jsx)("div",{className:Fe("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",Me(t),n),...r,children:e});ot.displayName="Topbar";const st=({gap:e="sm",children:t,className:n})=>(0,O.jsx)("div",{className:Fe("flex items-center",Me(e),n),children:t});st.displayName="Topbar.Left";const it=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,O.jsx)("div",{className:Fe("flex items-center grow",Me(e),o,r),children:t})};it.displayName="Topbar.Middle";const at=({gap:e="sm",children:t,className:n})=>(0,O.jsx)("div",{className:Fe("flex items-center",Me(e),n),children:t});at.displayName="Topbar.Right";const lt=({children:e,className:t})=>(0,O.jsx)("div",{className:Fe("flex items-center [&>svg]:block h-full",t),children:e});lt.displayName="Topbar.Item",ot.Left=st,ot.Middle=it,ot.Right=at,ot.Item=lt;const ct=(0,a.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:s="button",className:i,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:m="left",loading:f=!1,...h}=e,p=u&&"focus:ring-focus-error",g=f?"opacity-50 disabled:cursor-not-allowed":"",y={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],v=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",w={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let b,x=null,E="";return d&&(E="flex items-center justify-center","left"===m?b=d:x=d),(0,O.jsxs)(s,{ref:t,type:o,className:Fe(E,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",w,y,v,p,g,{"cursor-default":c},i),disabled:c,...h,children:[(0,O.jsx)(a.Fragment,{children:b},"left-icon"),l?(0,O.jsx)("span",{className:"px-1",children:l}):null,(0,O.jsx)(a.Fragment,{children:x},"right-icon")]})}));function ut(){return"undefined"!=typeof window}function dt(e){return ht(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ft(e){var t;return null==(t=(ht(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ht(e){return!!ut()&&(e instanceof Node||e instanceof mt(e).Node)}function pt(e){return!!ut()&&(e instanceof Element||e instanceof mt(e).Element)}function gt(e){return!!ut()&&(e instanceof HTMLElement||e instanceof mt(e).HTMLElement)}function yt(e){return!(!ut()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wt(e){return["table","td","th"].includes(dt(e))}function bt(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function xt(e){const t=Et(),n=pt(e)?St(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Et(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function _t(e){return["html","body","#document"].includes(dt(e))}function St(e){return mt(e).getComputedStyle(e)}function kt(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if("html"===dt(e))return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||ft(e);return yt(t)?t.host:t}function Nt(e){const t=Pt(e);return _t(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&vt(t)?t:Nt(t)}function Ct(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Nt(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),i=mt(o);if(s){const e=Tt(i);return t.concat(i,i.visualViewport||[],vt(o)?o:[],e&&n?Ct(e):[])}return t.concat(o,Ct(o,[],n))}function Tt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jt(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Rt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function At(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ft(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Dt(){return/apple/i.test(navigator.vendor)}function Mt(){const e=/android/i;return e.test(At())||e.test(Ft())}function Lt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ot(e){return(null==e?void 0:e.ownerDocument)||document}function It(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Vt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Bt(e){return gt(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}ct.displayName="Button";var zt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Ut="undefined"==typeof Element,Wt=Ut?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$t=!Ut&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Ht=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},qt=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!Ht(i,!1))if("SLOT"===i.tagName){var a=i.assignedElements(),l=e(a.length?a:i.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{Wt.call(i,zt)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!Ht(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else s.unshift.apply(s,i.children)}}return o},Xt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Yt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Xt(e)?0:e.tabIndex},Gt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Kt=function(e){return"INPUT"===e.tagName},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Jt=function(e,t){return!(t.disabled||Ht(t)||function(e){return Kt(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Wt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Wt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Zt(e)}else{if("function"==typeof r){for(var s=e;e;){var i=e.parentElement,a=$t(e);if(i&&!i.shadowRoot&&!0===r(i))return Zt(e);e=e.assignedSlot?e.assignedSlot:i||a===e.ownerDocument?i:a.host}e=s}if(function(e){var t,n,r,o,s=e&&$t(e),i=null===(t=s)||void 0===t?void 0:t.host,a=!1;if(s&&s!==e)for(a=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&i;){var l,c,u;a=!(null===(c=i=null===(l=s=$t(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Wt.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Qt=function(e,t){return!(function(e){return function(e){return Kt(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||$t(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Yt(t)<0||!Jt(e,t))},en=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tn=function e(t){var n=[],r=[];return t.forEach((function(t,o){var s=!!t.scopeParent,i=s?t.scopeParent:t,a=function(e,t){var n=Yt(e);return n<0&&t&&!Xt(e)?0:n}(i,s),l=s?e(t.candidates):i;0===a?s?n.push.apply(n,l):n.push(i):r.push({documentOrder:o,tabIndex:a,item:t,isScope:s,content:l})})),r.sort(Gt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},nn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?qt([e],t.includeContainer,{filter:Qt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:en}):function(e,t,n){if(Ht(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(zt));return t&&Wt.call(e,zt)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Qt.bind(null,t)),tn(n)},rn=o(795);const on=Math.min,sn=Math.max,an=Math.round,ln=Math.floor,cn=e=>({x:e,y:e}),un={left:"right",right:"left",bottom:"top",top:"bottom"},dn={start:"end",end:"start"};function mn(e,t,n){return sn(e,on(t,n))}function fn(e,t){return"function"==typeof e?e(t):e}function hn(e){return e.split("-")[0]}function pn(e){return e.split("-")[1]}function gn(e){return"x"===e?"y":"x"}function yn(e){return"y"===e?"height":"width"}function vn(e){return["top","bottom"].includes(hn(e))?"y":"x"}function wn(e){return gn(vn(e))}function bn(e){return e.replace(/start|end/g,(e=>dn[e]))}function xn(e){return e.replace(/left|right|bottom|top/g,(e=>un[e]))}function En(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _n(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Sn(e,t,n){let{reference:r,floating:o}=e;const s=vn(t),i=wn(t),a=yn(i),l=hn(t),c="y"===s,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(pn(t)){case"start":f[i]-=m*(n&&c?-1:1);break;case"end":f[i]+=m*(n&&c?-1:1)}return f}async function kn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=fn(t,e),h=En(f),p=a[m?"floating"===d?"reference":"floating":d],g=_n(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(p)))||n?p:p.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),w=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},b=_n(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}function Pn(e){const t=St(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=an(n)!==s||an(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Nn(e){return pt(e)?e:e.contextElement}function Cn(e){const t=Nn(e);if(!gt(t))return cn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Pn(t);let i=(s?an(n.width):n.width)/r,a=(s?an(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}const Tn=cn(0);function jn(e){const t=mt(e);return Et()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Tn}function Rn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=Nn(e);let i=cn(1);t&&(r?pt(r)&&(i=Cn(r)):i=Cn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==mt(e))&&t}(s,n,r)?jn(s):cn(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const e=mt(s),t=r&&pt(r)?mt(r):r;let n=e,o=Tt(n);for(;o&&r&&t!==n;){const e=Cn(o),t=o.getBoundingClientRect(),r=St(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=s,c+=i,n=mt(o),o=Tt(n)}}return _n({width:u,height:d,x:l,y:c})}function An(e,t){const n=kt(e).scrollLeft;return t?t.left+n:Rn(ft(e)).left+n}function Fn(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:An(e,r)),y:r.top+t.scrollTop}}function Dn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=mt(e),r=ft(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const e=Et();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=ft(e),n=kt(e),r=e.ownerDocument.body,o=sn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=sn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+An(e);const a=-n.scrollTop;return"rtl"===St(r).direction&&(i+=sn(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}(ft(e));else if(pt(t))r=function(e,t){const n=Rn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Cn(e):cn(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=jn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _n(r)}function Mn(e,t){const n=Pt(e);return!(n===t||!pt(n)||_t(n))&&("fixed"===St(n).position||Mn(n,t))}function Ln(e,t,n){const r=gt(t),o=ft(t),s="fixed"===n,i=Rn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=cn(0);function c(){l.x=An(o)}if(r||!r&&!s)if(("body"!==dt(t)||vt(o))&&(a=kt(t)),r){const e=Rn(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();s&&!r&&o&&c();const u=!o||r||s?cn(0):Fn(o,a);return{x:i.left+a.scrollLeft-l.x-u.x,y:i.top+a.scrollTop-l.y-u.y,width:i.width,height:i.height}}function On(e){return"static"===St(e).position}function In(e,t){if(!gt(e)||"fixed"===St(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ft(e)===n&&(n=n.ownerDocument.body),n}function Vn(e,t){const n=mt(e);if(bt(e))return n;if(!gt(e)){let t=Pt(e);for(;t&&!_t(t);){if(pt(t)&&!On(t))return t;t=Pt(t)}return n}let r=In(e,t);for(;r&&wt(r)&&On(r);)r=In(r,t);return r&&_t(r)&&On(r)&&!xt(r)?n:r||function(e){let t=Pt(e);for(;gt(t)&&!_t(t);){if(xt(t))return t;if(bt(t))return null;t=Pt(t)}return null}(e)||n}const Bn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,i=ft(r),a=!!t&&bt(t.floating);if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=cn(1);const u=cn(0),d=gt(r);if((d||!d&&!s)&&(("body"!==dt(r)||vt(i))&&(l=kt(r)),gt(r))){const e=Rn(r);c=Cn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!i||d||s?cn(0):Fn(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}},getDocumentElement:ft,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?bt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter((e=>pt(e)&&"body"!==dt(e))),o=null;const s="fixed"===St(e).position;let i=s?Pt(e):e;for(;pt(i)&&!_t(i);){const t=St(i),n=xt(i);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vt(i)&&!n&&Mn(e,i))?r=r.filter((e=>e!==i)):o=t,i=Pt(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=s[0],a=s.reduce(((e,n)=>{const r=Dn(t,n,o);return e.top=sn(r.top,e.top),e.right=on(r.right,e.right),e.bottom=on(r.bottom,e.bottom),e.left=sn(r.left,e.left),e}),Dn(t,i,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Vn,getElementRects:async function(e){const t=this.getOffsetParent||Vn,n=this.getDimensions,r=await n(e.floating);return{reference:Ln(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Pn(e);return{width:t,height:n}},getScale:Cn,isElement:pt,isRTL:function(e){return"rtl"===St(e).direction}};function zn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Un(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Nn(e),u=o||s?[...c?Ct(c):[],...Ct(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=ft(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:f}=c;if(a||t(),!m||!f)return;const h={rootMargin:-ln(d)+"px "+-ln(o.clientWidth-(u+m))+"px "+-ln(o.clientHeight-(d+f))+"px "+-ln(u)+"px",threshold:sn(0,on(1,l))||1};let p=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!p)return i();r?i(!1,r):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==r||zn(c,e.getBoundingClientRect())||i(),p=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),s}(c,n):null;let m,f=-1,h=null;i&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let p=l?Rn(e):null;return l&&function t(){const r=Rn(e);p&&!zn(p,r)&&n(),p=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Wn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=hn(n),a=pn(n),l="y"===vn(n),c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,d=fn(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}(t,e);return i===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},$n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fn(e,t),c={x:n,y:r},u=await kn(t,l),d=vn(hn(o)),m=gn(d);let f=c[m],h=c[d];if(s){const e="y"===m?"bottom":"right";f=mn(f+u["y"===m?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";h=mn(h+u["y"===d?"top":"left"],h,h-u[e])}const p=a.fn({...t,[m]:f,[d]:h});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:s,[d]:i}}}}}},Hn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...g}=fn(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=hn(o),v=vn(a),w=hn(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(w||!p?[xn(a)]:function(e){const t=xn(e);return[bn(e),t,bn(t)]}(a)),E="none"!==h;!m&&E&&x.push(...function(e,t,n,r){const o=pn(e);let s=function(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}(hn(e),"start"===n,r);return o&&(s=s.map((e=>e+"-"+o)),t&&(s=s.concat(s.map(bn)))),s}(a,p,h,b));const _=[a,...x],S=await kn(t,g),k=[];let P=(null==(r=s.flip)?void 0:r.overflows)||[];if(u&&k.push(S[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=pn(e),o=wn(e),s=yn(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=xn(i)),[i,xn(i)]}(o,i,b);k.push(S[e[0]],S[e[1]])}if(P=[...P,{placement:o,overflows:k}],!k.every((e=>e<=0))){var N,C;const e=((null==(N=s.flip)?void 0:N.index)||0)+1,t=_[e];if(t){var T;const n="alignment"===d&&v!==vn(t),r=(null==(T=P[0])?void 0:T.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:P},reset:{placement:t}}}let n=null==(C=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var j;const e=null==(j=P.filter((e=>{if(E){const t=vn(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},qn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=fn(e,t)||{};if(null==c)return{};const d=En(u),m={x:n,y:r},f=wn(o),h=yn(f),p=await i.getDimensions(c),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=s.reference[h]+s.reference[f]-m[f]-s.floating[h],x=m[f]-s.reference[f],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let _=E?E[w]:0;_&&await(null==i.isElement?void 0:i.isElement(E))||(_=a.floating[w]||s.floating[h]);const S=b/2-x/2,k=_/2-p[h]/2-1,P=on(d[y],k),N=on(d[v],k),C=P,T=_-p[h]-N,j=_/2-p[h]/2+S,R=mn(C,j,T),A=!l.arrow&&null!=pn(o)&&j!==R&&s.reference[h]/2-(j<C?P:N)-p[h]/2<0,F=A?j<C?j-C:j-T:0;return{[f]:m[f]+F,data:{[f]:R,centerOffset:j-R-F,...A&&{alignmentOffset:F}},reset:A}}}),Xn=(e,t,n)=>{const r=new Map,o={platform:Bn,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Sn(c,r,l),m=r,f={},h=0;for(let n=0;n<a.length;n++){const{name:s,fn:p}=a[n],{x:g,y,data:v,reset:w}=await p({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,f={...f,[s]:{...f[s],...v}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(c=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Sn(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:f}})(e,t,{...o,platform:s})};var Yn="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function Gn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Gn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Gn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Kn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=Kn(e);return Math.round(t*n)/n}function Jn(e){const t=a.useRef(e);return Yn((()=>{t.current=e})),t}const Qn=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qn({element:n.current,padding:r}).fn(t):{}:n?qn({element:n,padding:r}).fn(t):{};var o}}),er=(e,t)=>({...Wn(e),options:[e,t]}),tr=(e,t)=>({...$n(e),options:[e,t]}),nr=(e,t)=>({...Hn(e),options:[e,t]}),rr={...l},or=rr.useInsertionEffect||(e=>e());function sr(e){const t=a.useRef((()=>{}));return or((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var ir="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function ar(){return ar=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},ar.apply(this,arguments)}let lr=!1,cr=0;const ur=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cr++,dr=rr.useId||function(){const[e,t]=a.useState((()=>lr?ur():void 0));return ir((()=>{null==e&&t(ur())}),[]),a.useEffect((()=>{lr=!0}),[]),e},mr=a.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:s}},width:i=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:m,d:f,style:{transform:h,...p}={},...g}=e,y=dr(),[v,w]=a.useState(!1);if(ir((()=>{r&&"rtl"===St(r).direction&&w(!0)}),[r]),!r)return null;const[b,x]=n.split("-"),E="top"===b||"bottom"===b;let _=d;(E&&null!=s&&s.x||!E&&null!=s&&s.y)&&(_=null);const S=2*u,k=S/2,P=i/2*(c/-8+1),N=l/2*c/4,C=!!f,T=_&&"end"===x?"bottom":"top";let j=_&&"end"===x?"right":"left";_&&v&&(j="end"===x?"left":"right");const R=null!=(null==o?void 0:o.x)?_||o.x:"",A=null!=(null==o?void 0:o.y)?_||o.y:"",F=f||"M0,0 H"+i+" L"+(i-P)+","+(l-N)+" Q"+i/2+","+l+" "+P+","+(l-N)+" Z",D={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[b];return a.createElement("svg",ar({},g,{"aria-hidden":!0,ref:t,width:C?i:i+S,height:i,viewBox:"0 0 "+i+" "+(l>i?l:i),style:{position:"absolute",pointerEvents:"none",[j]:R,[T]:A,[b]:E||C?"100%":"calc(100% - "+S/2+"px)",transform:[D,h].filter((e=>!!e)).join(" "),...p}}),S>0&&a.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:m,strokeWidth:S+(f?0:1),d:F}),a.createElement("path",{stroke:S&&!f?g.fill:"none",d:F}),a.createElement("clipPath",{id:y},a.createElement("rect",{x:-k,y:k*(C?-1:1),width:i+S,height:i})))}));const fr=a.createContext(null),hr=a.createContext(null),pr=()=>{var e;return(null==(e=a.useContext(fr))?void 0:e.id)||null},gr=()=>a.useContext(hr);function yr(e){return"data-floating-ui-"+e}function vr(e){const t=(0,a.useRef)(e);return ir((()=>{t.current=e})),t}const wr=yr("safe-polygon");function br(e,t,n){return n&&!Lt(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function xr(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const Er=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _r(e,t){const n=nn(e,Er());"prev"===t&&n.reverse();const r=n.indexOf(jt(Ot(e)));return n.slice(r+1)[0]}function Sr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Rt(n,r)}function kr(e){nn(e,Er()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Pr(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Nr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Cr(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Tr=a.forwardRef((function(e,t){const[n,r]=a.useState();ir((()=>(Dt()&&r("button"),document.addEventListener("keydown",Cr),()=>{document.removeEventListener("keydown",Cr)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[yr("focus-guard")]:"",style:Nr};return a.createElement("span",ar({},e,o))})),jr=a.createContext(null),Rr=yr("portal");function Ar(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=dr(),o=Fr(),[s,i]=a.useState(null),l=a.useRef(null);return ir((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{l.current=null}))}),[s]),ir((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Rr,""),e.appendChild(n),l.current=n,i(n)}),[t,r]),ir((()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!pt(e)&&(e=e.current),e=e||document.body;let s=null;t&&(s=document.createElement("div"),s.id=t,e.appendChild(s));const a=document.createElement("div");a.id=r,a.setAttribute(Rr,""),e=s||e,e.appendChild(a),l.current=a,i(a)}),[t,n,r,o]),s}({id:n,root:r}),[i,l]=a.useState(null),c=a.useRef(null),u=a.useRef(null),d=a.useRef(null),m=a.useRef(null),f=null==i?void 0:i.modal,h=null==i?void 0:i.open,p=!!i&&!i.modal&&i.open&&o&&!(!r&&!s);return a.useEffect((()=>{if(s&&o&&!f)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&Sr(e)&&("focusin"===e.type?Pr:kr)(s)}}),[s,o,f]),a.useEffect((()=>{s&&(h||Pr(s))}),[h,s]),a.createElement(jr.Provider,{value:a.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:m,portalNode:s,setFocusManagerState:l})),[o,s])},p&&s&&a.createElement(Tr,{"data-type":"outside",ref:c,onFocus:e=>{if(Sr(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=_r(document.body,"prev")||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),p&&s&&a.createElement("span",{"aria-owns":s.id,style:Nr}),s&&rn.createPortal(t,s),p&&s&&a.createElement(Tr,{"data-type":"outside",ref:u,onFocus:e=>{if(Sr(e,s)){var t;null==(t=m.current)||t.focus()}else{const t=_r(document.body,"next")||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Fr=()=>a.useContext(jr),Dr="data-floating-ui-focusable";function Mr(e){return gt(e.target)&&"BUTTON"===e.target.tagName}function Lr(e){return Bt(e)}function Or(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:s}}=e,{enabled:i=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,f=a.useRef(),h=a.useRef(!1),p=a.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Lt(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Lt(t,!0)&&u||(!n||!c||o.current.openEvent&&m&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||Mr(e)||(" "!==e.key||Lr(s)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Mr(e)||Lr(s)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[o,s,l,u,d,r,n,m,c]);return a.useMemo((()=>i?{reference:p}:{}),[i,p])}const Ir={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Vr={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Br=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function zr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:i=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:p}=t,g=gr(),y=sr("function"==typeof c?c:()=>!1),v="function"==typeof c?y:c,w=a.useRef(!1),b=a.useRef(!1),{escapeKey:x,outsidePress:E}=Br(h),{escapeKey:_,outsidePress:S}=Br(p),k=a.useRef(!1),P=sr((e=>{var t;if(!n||!i||!l||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,a=g?xr(g.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=sr((e=>{var t;const n=()=>{var t;P(e),null==(t=Vt(e))||t.removeEventListener("keydown",n)};null==(t=Vt(e))||t.addEventListener("keydown",n)})),C=sr((e=>{var t;const n=w.current;w.current=!1;const i=b.current;if(b.current=!1,"click"===u&&i)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=Vt(e),l="["+yr("inert")+"]",c=Ot(o.floating).querySelectorAll(l);let d=pt(a)?a:null;for(;d&&!_t(d);){const e=Pt(d);if(_t(e)||!pt(e))break;d=e}if(c.length&&pt(a)&&!a.matches("html,body")&&!Rt(a,o.floating)&&Array.from(c).every((e=>!Rt(d,e))))return;if(gt(a)&&R){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===St(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const m=null==(t=s.current.floatingContext)?void 0:t.nodeId,f=g&&xr(g.nodesRef.current,m).some((t=>{var n;return It(e,null==(n=t.context)?void 0:n.elements.floating)}));if(It(e,o.floating)||It(e,o.domReference)||f)return;const h=g?xr(g.nodesRef.current,m):[];if(h.length>0){let e=!0;if(h.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),T=sr((e=>{var t;const n=()=>{var t;C(e),null==(t=Vt(e))||t.removeEventListener(u,n)};null==(t=Vt(e))||t.addEventListener(u,n)}));a.useEffect((()=>{if(!n||!i)return;s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),k.current=!0}function c(){e=window.setTimeout((()=>{k.current=!1}),Et()?5:0)}const d=Ot(o.floating);l&&(d.addEventListener("keydown",_?N:P,_),d.addEventListener("compositionstart",a),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,S?T:C,S);let m=[];return f&&(pt(o.domReference)&&(m=Ct(o.domReference)),pt(o.floating)&&(m=m.concat(Ct(o.floating))),!pt(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(Ct(o.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",_?N:P,_),d.removeEventListener("compositionstart",a),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,S?T:C,S),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[s,o,l,v,u,n,r,f,i,x,E,P,_,N,C,S,T]),a.useEffect((()=>{w.current=!1}),[v,u]);const j=a.useMemo((()=>({onKeyDown:P,[Ir[m]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[P,r,d,m]),R=a.useMemo((()=>({onKeyDown:P,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Vr[u]]:()=>{w.current=!0}})),[P,u]);return a.useMemo((()=>i?{reference:j,floating:R}:{}),[i,j,R])}function Ur(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=dr(),s=a.useRef({}),[i]=a.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=pr(),[c,u]=a.useState(r.reference),d=sr(((e,t,r)=>{s.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),m=a.useMemo((()=>({setPositionReference:u})),[]),f=a.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return a.useMemo((()=>({dataRef:s,open:t,onOpenChange:d,elements:f,events:i,floatingId:o,refs:m})),[t,d,f,i,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=a.useState(null),[l,c]=a.useState(null),u=(null==o?void 0:o.domReference)||s,d=a.useRef(null),m=gr();ir((()=>{u&&(d.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=a.useState(r);Gn(f,r)||h(r);const[p,g]=a.useState(null),[y,v]=a.useState(null),w=a.useCallback((e=>{e!==_.current&&(_.current=e,g(e))}),[]),b=a.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),x=s||p,E=i||y,_=a.useRef(null),S=a.useRef(null),k=a.useRef(d),P=null!=c,N=Jn(c),C=Jn(o),T=Jn(u),j=a.useCallback((()=>{if(!_.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),Xn(_.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};R.current&&!Gn(k.current,t)&&(k.current=t,rn.flushSync((()=>{m(t)})))}))}),[f,t,n,C,T]);Yn((()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,m((e=>({...e,isPositioned:!1}))))}),[u]);const R=a.useRef(!1);Yn((()=>(R.current=!0,()=>{R.current=!1})),[]),Yn((()=>{if(x&&(_.current=x),E&&(S.current=E),x&&E){if(N.current)return N.current(x,E,j);j()}}),[x,E,j,N,P]);const A=a.useMemo((()=>({reference:_,floating:S,setReference:w,setFloating:b})),[w,b]),F=a.useMemo((()=>({reference:x,floating:E})),[x,E]),D=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=Zn(F.floating,d.x),r=Zn(F.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Kn(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,F.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:j,refs:A,elements:F,floatingStyles:D})),[d,j,A,F,D])}({...e,elements:{...o,...l&&{reference:l}}}),h=a.useCallback((e=>{const t=pt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)}),[f.refs]),p=a.useCallback((e=>{(pt(e)||null===e)&&(d.current=e,i(e)),(pt(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!pt(e))&&f.refs.setReference(e)}),[f.refs]),g=a.useMemo((()=>({...f.refs,setReference:p,setPositionReference:h,domReference:d})),[f.refs,p,h]),y=a.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),v=a.useMemo((()=>({...f,...r,refs:g,elements:y,nodeId:t})),[f,g,y,t,r]);return ir((()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),a.useMemo((()=>({...f,context:v,refs:g,elements:y})),[f,g,y,v])}function Wr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:s,elements:i}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=a.useRef(!1),d=a.useRef(),m=a.useRef(!0);a.useEffect((()=>{if(!l)return;const e=mt(i.domReference);function t(){!n&>(i.domReference)&&i.domReference===jt(Ot(i.domReference))&&(u.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[i.domReference,n,l]),a.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,l]),a.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const f=a.useMemo((()=>({onPointerDown(e){(function(e){return!Ft().includes("jsdom/")&&(!Mt()&&0===e.width&&0===e.height||Mt()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(m.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Vt(e.nativeEvent);if(c&&pt(t))try{if(Dt()&&At().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!Bt(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=pt(t)&&t.hasAttribute(yr("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const a=jt(i.domReference?i.domReference.ownerDocument:document);(t||a!==i.domReference)&&(Rt(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,a)||Rt(i.domReference,a)||o||r(!1,n,"focus"))}))}})),[s,i.domReference,r,c]);return a.useMemo((()=>l?{reference:f}:{}),[l,f])}const $r="active",Hr="selected";function qr(e,t,n){const r=new Map,o="item"===n;let s=e;if(o&&e){const{[$r]:t,[Hr]:n,...r}=e;s=r}return{..."floating"===n&&{tabIndex:-1,[Dr]:""},...s,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,s]=t;var i;o&&[$r,Hr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof s&&(null==(i=r.get(n))||i.push(s),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=s)})),e):e),{})}}function Xr(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>qr(t,e,"reference")),t),s=a.useCallback((t=>qr(t,e,"floating")),n),i=a.useCallback((t=>qr(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:i})),[o,s,i])}const Yr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Gr(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:i="dialog"}=t,l=null!=(n=Yr.get(i))?n:i,c=dr(),u=null!=pr(),d=a.useMemo((()=>"tooltip"===l||"label"===i?{["aria-"+("label"===i?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?o:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}}),[l,o,u,r,c,i]),m=a.useMemo((()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===i?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,o,c,i]),f=a.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(i){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,i]);return a.useMemo((()=>s?{reference:d,floating:m,item:f}:{}),[s,d,m,f])}const Kr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Zr(e,t){return"function"==typeof e?e(t):e}function Jr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:s,duration:i=250}=t,l=e.placement,c=l.split("-")[0],u=a.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof i,m=(d?i:i.open)||0,f=(d?i:i.close)||0,[h,p]=a.useState((()=>({...Zr(s,u),...Zr(n,u)}))),{isMounted:g,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,s=("number"==typeof o?o:o.close)||0,[i,l]=a.useState("unmounted"),c=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,s);return c||"close"!==i||l("unmounted"),ir((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:i}}(e,{duration:i}),v=vr(n),w=vr(r),b=vr(o),x=vr(s);return ir((()=>{const e=Zr(v.current,u),t=Zr(b.current,u),n=Zr(x.current,u),r=Zr(w.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===y&&p((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===y&&p({transitionProperty:Object.keys(r).map(Kr).join(","),transitionDuration:m+"ms",...n,...r}),"close"===y){const r=t||e;p({transitionProperty:Object.keys(r).map(Kr).join(","),transitionDuration:f+"ms",...n,...r})}}),[f,b,v,w,x,m,y,u]),{isMounted:g,styles:h}}function Qr(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let e=0,i=s-1;e<s;i=e++){const[s,a]=t[e]||[0,0],[l,c]=t[i]||[0,0];a>=r!=c>=r&&n<=(l-s)*(r-a)/(c-a)+s&&(o=!o)}return o}function eo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,s=!1,i=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:m,nodeId:f,tree:h}=e;return function(e){function p(){clearTimeout(o),m()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:y}=e,v=[g,y],w=Vt(e),b="mouseleave"===e.type,x=Rt(d.floating,w),E=Rt(d.domReference,w),_=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),k=u.split("-")[0],P=n>S.right-S.width/2,N=c>S.bottom-S.height/2,C=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,_),T=S.width>_.width,j=S.height>_.height,R=(T?_:S).left,A=(T?_:S).right,F=(j?_:S).top,D=(j?_:S).bottom;if(x&&(s=!0,!b))return;if(E&&(s=!1),E&&!b)return void(s=!0);if(b&&pt(e.relatedTarget)&&Rt(d.floating,e.relatedTarget))return;if(h&&xr(h.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=_.bottom-1||"bottom"===k&&c<=_.top+1||"left"===k&&n>=_.right-1||"right"===k&&n<=_.left+1)return p();let M=[];switch(k){case"top":M=[[R,_.top+1],[R,S.bottom-1],[A,S.bottom-1],[A,_.top+1]];break;case"bottom":M=[[R,S.top+1],[R,_.bottom-1],[A,_.bottom-1],[A,S.top+1]];break;case"left":M=[[S.right-1,D],[S.right-1,F],[_.left+1,F],[_.left+1,D]];break;case"right":M=[[_.right-1,D],[_.right-1,F],[S.left+1,F],[S.left+1,D]]}if(!Qr([g,y],M)){if(s&&!C)return p();if(!b&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===a||0===r)return i=e,a=t,l=n,null;const o=e-i,s=t-a,c=Math.sqrt(o*o+s*s);return i=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return p()}Qr([g,y],function(e){let[n,r]=e;switch(k){case"top":return[[T?n+t/2:P?n+4*t:n-4*t,r+t+1],[T?n-t/2:P?n+4*t:n-4*t,r+t+1],[S.left,P||T?S.bottom-t:S.top],[S.right,P?T?S.bottom-t:S.top:S.bottom-t]];case"bottom":return[[T?n+t/2:P?n+4*t:n-4*t,r-t],[T?n-t/2:P?n+4*t:n-4*t,r-t],[S.left,P||T?S.top+t:S.bottom],[S.right,P?T?S.top+t:S.bottom:S.top+t]];case"left":{const e=[n+t+1,j?r+t/2:N?r+4*t:r-4*t],o=[n+t+1,j?r-t/2:N?r+4*t:r-4*t];return[[N||j?S.right-t:S.left,S.top],[N?j?S.right-t:S.left:S.right-t,S.bottom],e,o]}case"right":return[[n-t,j?r+t/2:N?r+4*t:r-4*t],[n-t,j?r-t/2:N?r+4*t:r-4*t],[N||j?S.left+t:S.right,S.top],[N?j?S.left+t:S.right:S.left+t,S.bottom]]}}([n,c]))?!s&&r&&(o=window.setTimeout(p,40)):p()}}};return c.__options={blockPointerEvents:n},c}function to(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function no(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const ro=e=>Array.isArray(e);function oo(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function so(e){return"string"==typeof e||Array.isArray(e)}function io(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function ao(e,t,n,r){if("function"==typeof t){const[o,s]=io(r);t=t(void 0!==n?n:e.custom,o,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,s]=io(r);t=t(void 0!==n?n:e.custom,o,s)}return t}function lo(e,t,n){const r=e.getProps();return ao(r,t,void 0!==n?n:r.custom,e)}const co=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uo=["initial",...co];function mo(e){let t;return()=>(void 0===t&&(t=e()),t)}const fo=mo((()=>void 0!==window.ScrollTimeline));class ho{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>fo()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class po extends ho{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function go(e,t){return e?e[t]||e.default||e:void 0}const yo=2e4;function vo(e){let t=0,n=e.next(t);for(;!n.done&&t<yo;)t+=50,n=e.next(t);return t>=yo?1/0:t}function wo(e){return"function"==typeof e}function bo(e,t){e.timeline=t,e.onfinish=null}const xo=e=>Array.isArray(e)&&"number"==typeof e[0],Eo={linearEasing:void 0};function _o(e,t){const n=mo(e);return()=>{var e;return null!==(e=Eo[t])&&void 0!==e?e:n()}}const So=_o((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),ko=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Po=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(ko(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function No(e){return Boolean("function"==typeof e&&So()||!e||"string"==typeof e&&(e in To||So())||xo(e)||Array.isArray(e)&&e.every(No))}const Co=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,To={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Co([0,.65,.55,1]),circOut:Co([.55,0,1,.45]),backIn:Co([.31,.01,.66,-.59]),backOut:Co([.33,1.53,.69,.99])};function jo(e,t){return e?"function"==typeof e&&So()?Po(e,t):xo(e)?Co(e):Array.isArray(e)?e.map((e=>jo(e,t)||To.easeOut)):To[e]:void 0}const Ro={x:!1,y:!1};function Ao(){return Ro.x||Ro.y}function Fo(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Do(e){return t=>{"touch"===t.pointerType||Ao()||e(t)}}const Mo=(e,t)=>!!t&&(e===t||Mo(e,t.parentElement)),Lo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Oo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Io=new WeakSet;function Vo(e){return t=>{"Enter"===t.key&&e(t)}}function Bo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function zo(e){return Lo(e)&&!Ao()}const Uo=e=>1e3*e,Wo=e=>e/1e3,$o=e=>e,Ho=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qo=new Set(Ho),Xo=new Set(["width","height","top","left","right","bottom",...Ho]),Yo=e=>ro(e)?e[e.length-1]||0:e,Go=["read","resolveKeyframes","update","preRender","render","postRender"];function Ko(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Go.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,o=!1,i=!1)=>{const a=i&&r?t:n;return o&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),s.delete(e)},process:e=>{i=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(s),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:m}=i,f=()=>{const s=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:Go.reduce(((t,s)=>{const a=i[s];return t[s]=(t,s=!1,i=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(f)),a.schedule(t,s,i)),t}),{}),cancel:e=>{for(let t=0;t<Go.length;t++)i[Go[t]].cancel(e)},state:o,steps:i}}const{schedule:Zo,cancel:Jo,state:Qo,steps:es}=Ko("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:$o,!0);let ts;function ns(){ts=void 0}const rs={now:()=>(void 0===ts&&rs.set(Qo.isProcessing?Qo.timestamp:performance.now()),ts),set:e=>{ts=e,queueMicrotask(ns)}};function os(e,t){-1===e.indexOf(t)&&e.push(t)}function ss(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class is{constructor(){this.subscriptions=[]}add(e){return os(this.subscriptions,e),()=>ss(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function as(e,t){return t?e*(1e3/t):0}const ls={current:void 0};class cs{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=rs.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=rs.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new is);const n=this.events[e].add(t);return"change"===e?()=>{n(),Zo.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ls.current&&ls.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=rs.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return as(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function us(e,t){return new cs(e,t)}function ds(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,us(n))}const ms=e=>Boolean(e&&e.getVelocity);function fs(e,t){const n=e.getValue("willChange");if(r=n,Boolean(ms(r)&&r.add))return n.add(t);var r}const hs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ps="data-"+hs("framerAppearId");function gs(e){return e.props[ps]}const ys=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function vs(e,t,n,r){if(e===t&&n===r)return $o;return o=>0===o||1===o?o:ys(function(e,t,n,r,o){let s,i,a=0;do{i=t+(n-t)/2,s=ys(i,r,o)-e,s>0?n=i:t=i}while(Math.abs(s)>1e-7&&++a<12);return i}(o,0,1,e,n),t,r)}const ws=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bs=e=>t=>1-e(1-t),xs=vs(.33,1.53,.69,.99),Es=bs(xs),_s=ws(Es),Ss=e=>(e*=2)<1?.5*Es(e):.5*(2-Math.pow(2,-10*(e-1))),ks=e=>1-Math.sin(Math.acos(e)),Ps=bs(ks),Ns=ws(ks),Cs=e=>/^0[^.\s]+$/u.test(e),Ts=(e,t,n)=>n>t?t:n<e?e:n,js={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Rs={...js,transform:e=>Ts(0,1,e)},As={...js,default:1},Fs=e=>Math.round(1e5*e)/1e5,Ds=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Ms=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ls=(e,t)=>n=>Boolean("string"==typeof n&&Ms.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Os=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,s,i,a]=r.match(Ds);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},Is={...js,transform:e=>Math.round((e=>Ts(0,255,e))(e))},Vs={test:Ls("rgb","red"),parse:Os("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Is.transform(e)+", "+Is.transform(t)+", "+Is.transform(n)+", "+Fs(Rs.transform(r))+")"},Bs={test:Ls("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),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:Vs.transform},zs=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Us=zs("deg"),Ws=zs("%"),$s=zs("px"),Hs=zs("vh"),qs=zs("vw"),Xs={...Ws,parse:e=>Ws.parse(e)/100,transform:e=>Ws.transform(100*e)},Ys={test:Ls("hsl","hue"),parse:Os("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ws.transform(Fs(t))+", "+Ws.transform(Fs(n))+", "+Fs(Rs.transform(r))+")"},Gs={test:e=>Vs.test(e)||Bs.test(e)||Ys.test(e),parse:e=>Vs.test(e)?Vs.parse(e):Ys.test(e)?Ys.parse(e):Bs.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Vs.transform(e):Ys.transform(e)},Ks=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Zs="number",Js="color",Qs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ei(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const i=t.replace(Qs,(e=>(Gs.test(e)?(r.color.push(s),o.push(Js),n.push(Gs.parse(e))):e.startsWith("var(")?(r.var.push(s),o.push("var"),n.push(e)):(r.number.push(s),o.push(Zs),n.push(parseFloat(e))),++s,"${}"))).split("${}");return{values:n,split:i,indexes:r,types:o}}function ti(e){return ei(e).values}function ni(e){const{split:t,types:n}=ei(e),r=t.length;return e=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],void 0!==e[s]){const t=n[s];o+=t===Zs?Fs(e[s]):t===Js?Gs.transform(e[s]):e[s]}return o}}const ri=e=>"number"==typeof e?0:e,oi={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Ds))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Ks))||void 0===n?void 0:n.length)||0)>0},parse:ti,createTransformer:ni,getAnimatableNone:function(e){const t=ti(e);return ni(e)(t.map(ri))}},si=new Set(["brightness","contrast","saturate","opacity"]);function ii(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Ds)||[];if(!r)return e;const o=n.replace(r,"");let s=si.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const ai=/\b([a-z-]*)\(.*?\)/gu,li={...oi,getAnimatableNone:e=>{const t=e.match(ai);return t?t.map(ii).join(" "):e}},ci={borderWidth:$s,borderTopWidth:$s,borderRightWidth:$s,borderBottomWidth:$s,borderLeftWidth:$s,borderRadius:$s,radius:$s,borderTopLeftRadius:$s,borderTopRightRadius:$s,borderBottomRightRadius:$s,borderBottomLeftRadius:$s,width:$s,maxWidth:$s,height:$s,maxHeight:$s,top:$s,right:$s,bottom:$s,left:$s,padding:$s,paddingTop:$s,paddingRight:$s,paddingBottom:$s,paddingLeft:$s,margin:$s,marginTop:$s,marginRight:$s,marginBottom:$s,marginLeft:$s,backgroundPositionX:$s,backgroundPositionY:$s},ui={rotate:Us,rotateX:Us,rotateY:Us,rotateZ:Us,scale:As,scaleX:As,scaleY:As,scaleZ:As,skew:Us,skewX:Us,skewY:Us,distance:$s,translateX:$s,translateY:$s,translateZ:$s,x:$s,y:$s,z:$s,perspective:$s,transformPerspective:$s,opacity:Rs,originX:Xs,originY:Xs,originZ:$s},di={...js,transform:Math.round},mi={...ci,...ui,zIndex:di,size:$s,fillOpacity:Rs,strokeOpacity:Rs,numOctaves:di},fi={...mi,color:Gs,backgroundColor:Gs,outlineColor:Gs,fill:Gs,stroke:Gs,borderColor:Gs,borderTopColor:Gs,borderRightColor:Gs,borderBottomColor:Gs,borderLeftColor:Gs,filter:li,WebkitFilter:li},hi=e=>fi[e];function pi(e,t){let n=hi(e);return n!==li&&(n=oi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gi=new Set(["auto","none","0"]),yi=e=>e===js||e===$s,vi=(e,t)=>parseFloat(e.split(", ")[t]),wi=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return vi(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?vi(t[1],e):0}},bi=new Set(["x","y","z"]),xi=Ho.filter((e=>!bi.has(e))),Ei={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wi(4,13),y:wi(5,14)};Ei.translateX=Ei.x,Ei.translateY=Ei.y;const _i=new Set;let Si=!1,ki=!1;function Pi(){if(ki){const e=Array.from(_i).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return xi.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}ki=!1,Si=!1,_i.forEach((e=>e.complete())),_i.clear()}function Ni(){_i.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(ki=!0)}))}class Ci{constructor(e,t,n,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_i.add(this),Si||(Si=!0,Zo.read(Ni),Zo.resolveKeyframes(Pi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),s=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_i.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_i.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Ti=$o,ji=$o;const Ri=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ai=e=>t=>"string"==typeof t&&t.startsWith(e),Fi=Ai("--"),Di=Ai("var(--"),Mi=e=>!!Di(e)&&Li.test(e.split("/*")[0].trim()),Li=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ii(e,t,n=1){ji(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Oi.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const e=s.trim();return Ri(e)?parseFloat(e):e}return Mi(o)?Ii(o,t,n+1):o}const Vi=e=>t=>t.test(e),Bi=[js,$s,Ws,Us,qs,Hs,{test:e=>"auto"===e,parse:e=>e}],zi=e=>Bi.find(Vi(e));class Ui extends Ci{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Mi(r))){const o=Ii(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Xo.has(n)||2!==e.length)return;const[r,o]=e,s=zi(r),i=zi(o);if(s!==i)if(yi(s)&&yi(i))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||Cs(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!gi.has(t)&&ei(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=pi(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ei[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=Ei[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Wi=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!oi.test(e)&&"0"!==e||e.startsWith("url(")));function $i(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const s=e[e.length-1],i=Wi(o,t),a=Wi(s,t);return Ti(i===a,`You are trying to animate ${t} from "${o}" to "${s}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${s} via the \`style\` property.`),!(!i||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||wo(n))&&r)}const Hi=e=>null!==e;function qi(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Hi),s=t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class Xi{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rs.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:s,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Ni(),Pi()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=rs.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:s,onComplete:i,onUpdate:a,isGenerator:l}=this.options;if(!l&&!$i(e,n,r,o)){if(!s)return a&&a(qi(e,this.options,t)),i&&i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Yi=(e,t,n)=>e+(t-e)*n;function Gi(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 Ki(e,t){return n=>n>0?t:e}const Zi=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Ji=[Bs,Vs,Ys];function Qi(e){const t=(e=>Ji.find((t=>t.test(e))))(e);if(Ti(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Ys&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,s=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Gi(a,r,e+1/3),s=Gi(a,r,e),i=Gi(a,r,e-1/3)}else o=s=i=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*i),alpha:r}}(n)),n}const ea=(e,t)=>{const n=Qi(e),r=Qi(t);if(!n||!r)return Ki(e,t);const o={...n};return e=>(o.red=Zi(n.red,r.red,e),o.green=Zi(n.green,r.green,e),o.blue=Zi(n.blue,r.blue,e),o.alpha=Yi(n.alpha,r.alpha,e),Vs.transform(o))},ta=(e,t)=>n=>t(e(n)),na=(...e)=>e.reduce(ta),ra=new Set(["none","hidden"]);function oa(e,t){return n=>Yi(e,t,n)}function sa(e){return"number"==typeof e?oa:"string"==typeof e?Mi(e)?Ki:Gs.test(e)?ea:la:Array.isArray(e)?ia:"object"==typeof e?Gs.test(e)?ea:aa:Ki}function ia(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>sa(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function aa(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=sa(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const la=(e,t)=>{const n=oi.createTransformer(t),r=ei(e),o=ei(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?ra.has(e)&&!o.values.length||ra.has(t)&&!r.values.length?function(e,t){return ra.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):na(ia(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],a=e.indexes[i][o[i]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[s]=l,o[i]++}return r}(r,o),o.values),n):(Ti(!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.`),Ki(e,t))};function ca(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Yi(e,t,n):sa(e)(e,t)}function ua(e,t,n){const r=Math.max(t-5,0);return as(n-e(r),t-r)}const da=.01,ma=2,fa=.005,ha=.5;const pa=12;function ga(e,t){return e*Math.sqrt(1-t*t)}const ya=["duration","bounce"],va=["stiffness","damping","mass"];function wa(e,t){return t.some((t=>void 0!==e[t]))}function ba(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wa(e,va)&&wa(e,ya))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,s=2*Ts(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:s}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,s;Ti(e<=Uo(10),"Spring duration must be 10 seconds or less");let i=1-t;i=Ts(.05,1,i),e=Ts(.01,10,Wo(e)),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/ga(t,i)*Math.exp(-o)},s=t=>{const r=t*i*e,s=r*n+n,a=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ga(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((s-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,s=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<pa;n++)r-=e(r)/t(r);return r}(o,s,5/e);if(e=Uo(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Wo(n.velocity||0)}),h=m||0,p=c/(2*Math.sqrt(l*u)),g=i-s,y=Wo(Math.sqrt(l/u)),v=Math.abs(g)<5;let w;if(r||(r=v?da:ma),o||(o=v?fa:ha),p<1){const e=ga(y,p);w=t=>{const n=Math.exp(-p*y*t);return i-n*((h+p*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===p)w=e=>i-Math.exp(-y*e)*(g+(h+y*g)*e);else{const e=y*Math.sqrt(p*p-1);w=t=>{const n=Math.exp(-p*y*t),r=Math.min(e*t,300);return i-n*((h+p*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const b={calculatedDuration:f&&d||null,next:e=>{const t=w(e);if(f)a.done=e>=d;else{let n=0;p<1&&(n=0===e?Uo(h):ua(w,e,t));const s=Math.abs(n)<=r,l=Math.abs(i-t)<=o;a.done=s&&l}return a.value=a.done?i:t,a},toString:()=>{const e=Math.min(vo(b),yo),t=Po((t=>b.next(e*t).value),e,30);return e+"ms "+t}};return b}function xa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const p=d+h,g=void 0===i?p:i(p);g!==p&&(h=g-d);const y=e=>-h*Math.exp(-e/r),v=e=>g+y(e),w=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let b,x;const E=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(m.value)&&(b=e,x=ba({keyframes:[m.value,f(m.value)],velocity:ua(v,e,m.value),damping:o,stiffness:s,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==b||(t=!0,w(e),E(e)),void 0!==b&&e>=b?x.next(e-b):(!t&&w(e),m)}}}const Ea=vs(.42,0,1,1),_a=vs(0,0,.58,1),Sa=vs(.42,0,.58,1),ka={linear:$o,easeIn:Ea,easeInOut:Sa,easeOut:_a,circIn:ks,circInOut:Ns,circOut:Ps,backIn:Es,backInOut:_s,backOut:xs,anticipate:Ss},Pa=e=>{if(xo(e)){ji(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return vs(t,n,r,o)}return"string"==typeof e?(ji(void 0!==ka[e],`Invalid easing type '${e}'`),ka[e]):e};function Na({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Pa):Pa(r),s={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ko(0,t,r);e.push(Yi(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(ji(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||ca,s=e.length-1;for(let n=0;n<s;n++){let s=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||$o:t;s=na(e,s)}r.push(s)}return r}(t,r,o),l=a.length,c=n=>{if(i&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=ko(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Ts(e[0],e[s-1],t)):c}(i,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Sa)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}const Ca=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Zo.update(t,!0),stop:()=>Jo(t),now:()=>Qo.isProcessing?Qo.timestamp:rs.now()}},Ta={decay:xa,inertia:xa,tween:Na,keyframes:Na,spring:ba},ja=e=>e/100;class Ra extends Xi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,s=(null==r?void 0:r.KeyframeResolver)||Ci;this.resolver=new s(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,i=wo(t)?t:Ta[t]||Na;let a,l;i!==Na&&"number"!=typeof e[0]&&(a=na(ja,ca(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===o&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===c.calculatedDuration&&(c.calculatedDuration=vo(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:i,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:m,repeatType:f,repeatDelay:h,onUpdate:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,w=o;if(m){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,m+1),Boolean(t%2)&&("reverse"===f?(n=1-n,h&&(n-=h/u)):"mirror"===f&&(w=s)),v=Ts(0,1,n)*u}const b=y?{done:!1,value:a[0]}:w.next(v);i&&(b.value=i(b.value));let{done:x}=b;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&void 0!==r&&(b.value=qi(a,this.options,r)),p&&p(b.value),E&&this.finish(),b}get duration(){const{resolved:e}=this;return e?Wo(e.calculatedDuration):0}get time(){return Wo(this.currentTime)}set time(e){e=Uo(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Ca,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Aa=new Set(["opacity","clipPath","filter","transform"]),Fa=mo((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Da={anticipate:Ss,backInOut:_s,circInOut:Ns};class Ma extends Xi{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ui(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:s,motionValue:i,name:a,startTime:l}=this.options;if(!i.owner||!i.owner.current)return!1;var c;if("string"==typeof o&&So()&&o in Da&&(o=Da[o]),wo((c=this.options).type)||"spring"===c.type||!No(c.ease)){const{onComplete:t,onUpdate:i,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Ra({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let s=0;for(;!r.done&&s<2e4;)r=n.sample(s),o.push(r.value),s+=10;return{times:void 0,keyframes:o,duration:s-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,s="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=jo(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===i?"alternate":"normal"})}(i.owner.current,a,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(bo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;i.set(qi(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Wo(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Wo(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Uo(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return $o;const{animation:n}=t;bo(n,e)}else this.pendingTimeline=e;return $o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:s,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Ra({...c,keyframes:n,duration:r,type:o,ease:s,times:i,isGenerator:!0}),d=Uo(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return Fa()&&n&&Aa.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==s&&"inertia"!==i}}const La={type:"spring",stiffness:500,damping:25,restSpeed:10},Oa={type:"keyframes",duration:.8},Ia={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Va=(e,{keyframes:t})=>t.length>2?Oa:qo.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:La:Ia,Ba=(e,t,n,r={},o,s)=>i=>{const a=go(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=Uo(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...Va(e,u)}),u.duration&&(u.duration=Uo(u.duration)),u.repeatDelay&&(u.repeatDelay=Uo(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!s&&void 0!==t.get()){const e=qi(u.keyframes,a);if(void 0!==e)return Zo.update((()=>{u.onUpdate(e),u.onComplete()})),new po([])}return!s&&Ma.supports(u)?new Ma(u):new Ra(u)};function za({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Ua(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(s=e.latestValues[t])&&void 0!==s?s:null),o=l[t];if(void 0===o||u&&za(u,t))continue;const a={delay:n,...go(i||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=gs(e);if(n){const e=window.MotionHandoffAnimation(n,t,Zo);null!==e&&(a.startTime=e,d=!0)}}fs(e,t),r.start(Ba(t,r,o,e.shouldReduceMotion&&Xo.has(t)?{type:!1}:a,e,d));const m=r.animation;m&&c.push(m)}return a&&Promise.all(c).then((()=>{Zo.update((()=>{a&&function(e,t){const n=lo(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const t in s)ds(e,t,Yo(s[t]))}(e,a)}))})),c}function Wa(e,t,n={}){var r;const o=lo(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(Ua(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:a}=s;return function(e,t,n=0,r=0,o=1,s){const i=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort($a).forEach(((e,r)=>{e.notify("AnimationStart",t),i.push(Wa(e,t,{...s,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,o+r,i,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[e,t]="beforeChildren"===l?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function $a(e,t){return e.sortNodePosition(t)}const Ha=uo.length;function qa(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qa(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Ha;n++){const r=uo[n],o=e.props[r];(so(o)||!1===o)&&(t[r]=o)}return t}const Xa=[...co].reverse(),Ya=co.length;function Ga(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Wa(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Wa(e,t,n);else{const o="function"==typeof t?lo(e,t,n.custom):t;r=Promise.all(Ua(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Ja(),r=!0;const o=t=>(n,r)=>{var o;const s=lo(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(s){const{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function s(s){const{props:i}=e,a=qa(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Ya;t++){const m=Xa[t],f=n[m],h=void 0!==i[m]?i[m]:a[m],p=so(h),g=m===s?f.isActive:null;!1===g&&(d=t);let y=h===a[m]&&h!==i[m]&&p;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===g||!h&&!f.prevProp||no(h)||"boolean"==typeof h)continue;const v=Ka(f.prevProp,h);let w=v||m===s&&f.isActive&&!y&&p||t>d&&p,b=!1;const x=Array.isArray(h)?h:[h];let E=x.reduce(o(m),{});!1===g&&(E={});const{prevResolvedValues:_={}}=f,S={..._,...E},k=t=>{w=!0,c.has(t)&&(b=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=E[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ro(t)&&ro(n)?!oo(t,n):t!==n,r?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):f.protectedKeys[e]=!0}f.prevProp=h,f.prevResolvedValues=E,f.isActive&&(u={...u,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&(!y||!v||b)&&l.push(...x.map((e=>({animation:e,options:{type:m}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const i=s(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Ja(),r=!0}}}function Ka(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!oo(t,e)}function Za(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ja(){return{animate:Za(!0),whileInView:Za(),whileHover:Za(),whileTap:Za(),whileDrag:Za(),whileFocus:Za(),exit:Za()}}class Qa{constructor(e){this.isMounted=!1,this.node=e}update(){}}let el=0;const tl={animation:{Feature:class extends Qa{constructor(e){super(e),e.animationState||(e.animationState=Ga(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();no(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Qa{constructor(){super(...arguments),this.id=el++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function nl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rl(e){return{point:{x:e.pageX,y:e.pageY}}}function ol(e,t,n,r){return nl(e,t,(e=>t=>Lo(t)&&e(t,rl(t)))(n),r)}const sl=(e,t)=>Math.abs(e-t);class il{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=cl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=sl(e.x,t.x),r=sl(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Qo;this.history.push({...r,timestamp:o});const{onStart:s,onMove:i}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=al(t,this.transformPagePoint),Zo.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=cl("pointercancel"===e.type?this.lastMoveEventInfo:al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!Lo(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const s=al(rl(e),this.transformPagePoint),{point:i}=s,{timestamp:a}=Qo;this.history=[{...i,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,cl(s,this.history)),this.removeListeners=na(ol(this.contextWindow,"pointermove",this.handlePointerMove),ol(this.contextWindow,"pointerup",this.handlePointerUp),ol(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Jo(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function ll(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cl({point:e},t){return{point:e,delta:ll(e,dl(t)),offset:ll(e,ul(t)),velocity:ml(t,.1)}}function ul(e){return e[0]}function dl(e){return e[e.length-1]}function ml(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=dl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Uo(t)));)n--;if(!r)return{x:0,y:0};const s=Wo(o.timestamp-r.timestamp);if(0===s)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function fl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function hl(e){return e.max-e.min}function pl(e,t,n,r=.5){e.origin=r,e.originPoint=Yi(t.min,t.max,e.origin),e.scale=hl(n)/hl(t),e.translate=Yi(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function gl(e,t,n,r){pl(e.x,t.x,n.x,r?r.originX:void 0),pl(e.y,t.y,n.y,r?r.originY:void 0)}function yl(e,t,n){e.min=n.min+t.min,e.max=e.min+hl(t)}function vl(e,t,n){e.min=t.min-n.min,e.max=e.min+hl(t)}function wl(e,t,n){vl(e.x,t.x,n.x),vl(e.y,t.y,n.y)}function bl(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 xl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const El=.35;function _l(e,t,n){return{min:Sl(e,t),max:Sl(e,n)}}function Sl(e,t){return"number"==typeof e?e:e[t]||0}const kl=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Pl(e){return[e("x"),e("y")]}function Nl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cl(e){return void 0===e||1===e}function Tl({scale:e,scaleX:t,scaleY:n}){return!Cl(e)||!Cl(t)||!Cl(n)}function jl(e){return Tl(e)||Rl(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rl(e){return Al(e.x)||Al(e.y)}function Al(e){return e&&"0%"!==e}function Fl(e,t,n){return n+t*(e-n)}function Dl(e,t,n,r,o){return void 0!==o&&(e=Fl(e,o,r)),Fl(e,n,r)+t}function Ml(e,t=0,n=1,r,o){e.min=Dl(e.min,t,n,r,o),e.max=Dl(e.max,t,n,r,o)}function Ll(e,{x:t,y:n}){Ml(e.x,t.translate,t.scale,t.originPoint),Ml(e.y,n.translate,n.scale,n.originPoint)}const Ol=.999999999999,Il=1.0000000000001;function Vl(e,t){e.min=e.min+t,e.max=e.max+t}function Bl(e,t,n,r,o=.5){Ml(e,t,n,Yi(e.min,e.max,o),r)}function zl(e,t){Bl(e.x,t.x,t.scaleX,t.scale,t.originX),Bl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ul(e,t){return Nl(function(e,t){if(!t)return e;const 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))}const Wl=({current:e})=>e?e.ownerDocument.defaultView:null,$l=new WeakMap;class Hl{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new il(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rl(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?Ro[s]?null:(Ro[s]=!0,()=>{Ro[s]=!1}):Ro.x||Ro.y?null:(Ro.x=Ro.y=!0,()=>{Ro.x=Ro.y=!1}),!this.openDragLock))return;var s;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pl((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Ws.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=hl(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Zo.postRender((()=>o(e,t))),fs(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:i}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Pl((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Wl(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Zo.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!ql(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Yi(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Yi(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&fl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:bl(e.x,n,o),y:bl(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=El){return!1===e?e=0:!0===e&&(e=El),{x:_l(e,"left","right"),y:_l(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Pl((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!fl(e))return!1;const n=e.current;ji(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ul(e,n),{scroll:o}=t;return o&&(Vl(r.x,o.offset.x),Vl(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let s=function(e,t){return{x:xl(e.x,t.x),y:xl(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=Nl(e))}return s}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),a=this.constraints||{},l=Pl((i=>{if(!ql(i,t,this.currentDirection))return;let l=a&&a[i]||{};s&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return fs(this.visualElement,e),n.start(Ba(e,n,0,t,this.visualElement,!1))}stopAnimation(){Pl((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Pl((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Pl((t=>{const{drag:n}=this.getProps();if(!ql(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:s}=r.layout.layoutBox[t];o.set(e[t]-Yi(n,s,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!fl(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Pl((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=hl(e),o=hl(t);return o>r?n=ko(t.min,t.max-r,e.min):r>o&&(n=ko(e.min,e.max-o,t.min)),Ts(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Pl((t=>{if(!ql(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:s}=this.constraints[t];n.set(Yi(o,s,r[t]))}))}addListeners(){if(!this.visualElement.current)return;$l.set(this.visualElement,this);const e=ol(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();fl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Zo.read(t);const o=nl(window,"resize",(()=>this.scalePositionWithinConstraints())),s=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Pl((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=El,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:i}}}function ql(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Xl=e=>(t,n)=>{e&&Zo.postRender((()=>e(t,n)))},Yl=(0,a.createContext)(null);function Gl(e=!0){const t=(0,a.useContext)(Yl);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=(0,a.useId)();(0,a.useEffect)((()=>{e&&o(s)}),[e]);const i=(0,a.useCallback)((()=>e&&r&&r(s)),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Kl=(0,a.createContext)({}),Zl=(0,a.createContext)({}),Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ql(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ec={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!$s.test(e))return e;e=parseFloat(e)}return`${Ql(e,t.target.x)}% ${Ql(e,t.target.y)}%`}},tc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=oi.parse(e);if(o.length>5)return r;const s=oi.createTransformer(e),i="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const c=Yi(a,l,.5);return"number"==typeof o[2+i]&&(o[2+i]/=c),"number"==typeof o[3+i]&&(o[3+i]/=c),s(o)}},nc={},{schedule:rc,cancel:oc}=Ko(queueMicrotask,!1);class sc extends a.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var s;s=ac,Object.assign(nc,s),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,r||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Zo.postRender((()=>{const e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),rc.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ic(e){const[t,n]=Gl(),r=(0,a.useContext)(Kl);return(0,O.jsx)(sc,{...e,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(Zl),isPresent:t,safeToRemove:n})}const ac={borderRadius:{...ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ec,borderTopRightRadius:ec,borderBottomLeftRadius:ec,borderBottomRightRadius:ec,boxShadow:tc},lc=(e,t)=>e.depth-t.depth;class cc{constructor(){this.children=[],this.isDirty=!1}add(e){os(this.children,e),this.isDirty=!0}remove(e){ss(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEach(e)}}function uc(e){const t=ms(e)?e.get():e;return(e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue))(t)?t.toValue():t}const dc=["TopLeft","TopRight","BottomLeft","BottomRight"],mc=dc.length,fc=e=>"string"==typeof e?parseFloat(e):e,hc=e=>"number"==typeof e||$s.test(e);function pc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const gc=vc(0,.5,Ps),yc=vc(.5,.95,$o);function vc(e,t,n){return r=>r<e?0:r>t?1:n(ko(e,t,r))}function wc(e,t){e.min=t.min,e.max=t.max}function bc(e,t){wc(e.x,t.x),wc(e.y,t.y)}function xc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ec(e,t,n,r,o){return e=Fl(e-=t,1/n,r),void 0!==o&&(e=Fl(e,1/o,r)),e}function _c(e,t,[n,r,o],s,i){!function(e,t=0,n=1,r=.5,o,s=e,i=e){if(Ws.test(t)&&(t=parseFloat(t),t=Yi(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let a=Yi(s.min,s.max,r);e===s&&(a-=t),e.min=Ec(e.min,t,n,a,o),e.max=Ec(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,s,i)}const Sc=["x","scaleX","originX"],kc=["y","scaleY","originY"];function Pc(e,t,n,r){_c(e.x,t,Sc,n?n.x:void 0,r?r.x:void 0),_c(e.y,t,kc,n?n.y:void 0,r?r.y:void 0)}function Nc(e){return 0===e.translate&&1===e.scale}function Cc(e){return Nc(e.x)&&Nc(e.y)}function Tc(e,t){return e.min===t.min&&e.max===t.max}function jc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rc(e,t){return jc(e.x,t.x)&&jc(e.y,t.y)}function Ac(e){return hl(e.x)/hl(e.y)}function Fc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dc{constructor(){this.members=[]}add(e){os(this.members,e),e.scheduleRender()}remove(e){if(ss(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Lc="undefined"!=typeof window&&void 0!==window.MotionDebug,Oc=["","X","Y","Z"],Ic={visibility:"hidden"};let Vc=0;function Bc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gs(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Zo,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zc(r)}function Uc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Vc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Lc&&(Mc.totalNodes=Mc.resolvedTargetDeltas=Mc.recalculatedProjection=0),this.nodes.forEach(Hc),this.nodes.forEach(Jc),this.nodes.forEach(Qc),this.nodes.forEach(qc),Lc&&window.MotionDebug.record(Mc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new cc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new is),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:s,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=rs.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Jo(r),e(s-t))};return Zo.read(r,!0),()=>Jo(r)}(r,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(Zc))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&i&&(o||s)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||su,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Rc(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...go(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Zc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Jo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yc);this.isUpdating||this.nodes.forEach(Gc),this.isUpdating=!1,this.nodes.forEach(Kc),this.nodes.forEach(Wc),this.nodes.forEach($c),this.clearAllSnapshots();const e=rs.now();Qo.delta=Ts(0,1e3/60,e-Qo.timestamp),Qo.timestamp=e,Qo.isProcessing=!0,es.update.process(Qo),es.preRender.process(Qo),es.render.process(Qo),Qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xc),this.sharedNodes.forEach(tu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Zo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Zo.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Cc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&(t||jl(this.latestValues)||s)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),lu((r=n).x),lu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(uu)){const{scroll:e}=this.root;e&&(Vl(n.x,e.offset.x),Vl(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(bc(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:s}=r;r!==this.root&&o&&s.layoutScroll&&(o.wasRoot&&bc(n,e),Vl(n.x,o.offset.x),Vl(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};bc(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&zl(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),jl(r.latestValues)&&zl(n,r.latestValues)}return jl(this.latestValues)&&zl(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};bc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!jl(n.latestValues))continue;Tl(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};bc(r,n.measurePageBox()),Pc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return jl(this.latestValues)&&Pc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:s}=this.options;if(this.layout&&(o||s)){if(this.resolvedRelativeTargetAt=Qo.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},wl(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),bc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,a=this.relativeTarget,l=this.relativeParent.target,yl(i.x,a.x,l.x),yl(i.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):bc(this.target,this.layout.layoutBox),Ll(this.target,this.targetDelta)):bc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},wl(this.relativeTargetOrigin,this.target,e.target),bc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Lc&&Mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Tl(this.parent.latestValues)&&!Rl(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Qo.timestamp&&(r=!1),r)return;const{layout:o,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!s)return;bc(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let s,i;t.x=t.y=1;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:o}=s.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&zl(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,Ll(e,i)),r&&jl(s.latestValues)&&zl(e,s.latestValues))}t.x<Il&&t.x>Ol&&(t.x=1),t.y<Il&&t.y>Ol&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(xc(this.prevProjectionDelta.x,this.projectionDelta.x),xc(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),gl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&Fc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Fc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Lc&&Mc.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(ou));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,m,f,h;nu(s.x,e.x,n),nu(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wl(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,m=this.relativeTargetOrigin,f=i,h=n,ru(l.x,m.x,f.x,h),ru(l.y,m.y,f.y,h),d&&function(e,t){return Tc(e.x,t.x)&&Tc(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),bc(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,s){o?(e.opacity=Yi(0,void 0!==n.opacity?n.opacity:1,gc(r)),e.opacityExit=Yi(void 0!==t.opacity?t.opacity:1,0,yc(r))):s&&(e.opacity=Yi(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<mc;o++){const s=`border${dc[o]}Radius`;let i=pc(t,s),a=pc(n,s);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||hc(i)===hc(a)?(e[s]=Math.max(Yi(fc(i),fc(a),r),0),(Ws.test(a)||Ws.test(i))&&(e[s]+="%")):e[s]=a)}(t.rotate||n.rotate)&&(e.rotate=Yi(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Jo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Zo.update((()=>{Jl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=ms(0)?0:us(0);return r.start(Ba("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=hl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=hl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}bc(t,n),zl(t,o),gl(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dc),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Bc("z",e,r,this.animationValues);for(let t=0;t<Oc.length;t++)Bc(`rotate${Oc[t]}`,e,r,this.animationValues),Bc(`skew${Oc[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ic;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=uc(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=uc(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!jl(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const i=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:s,skewX:i,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),i&&(r+=`skewX(${i}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),o&&(r.transform=o(i,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r.opacity=s===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in nc){if(void 0===i[e])continue;const{correct:t,applyTo:n}=nc[e],o="none"===r.transform?i[e]:t(i[e],s);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=s===this?uc(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Yc),this.root.sharedNodes.clear()}}}function Wc(e){e.updateLayout()}function $c(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;"size"===o?Pl((e=>{const r=s?n.measuredBox[e]:n.layoutBox[e],o=hl(r);r.min=t[e].min,r.max=r.min+o})):cu(o,n.layoutBox,t)&&Pl((r=>{const o=s?n.measuredBox[r]:n.layoutBox[r],i=hl(t[r]);o.max=o.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)}));const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};gl(i,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?gl(a,e.applyTransform(r,!0),n.measuredBox):gl(a,t,n.layoutBox);const l=!Cc(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:s}=r;if(o&&s){const i={x:{min:0,max:0},y:{min:0,max:0}};wl(i,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};wl(a,t,s.layoutBox),Rc(i,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Hc(e){Lc&&Mc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xc(e){e.clearSnapshot()}function Yc(e){e.clearMeasurements()}function Gc(e){e.isLayoutDirty=!1}function Kc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jc(e){e.resolveTargetDelta()}function Qc(e){e.calcProjection()}function eu(e){e.resetSkewAndRotation()}function tu(e){e.removeLeadSnapshot()}function nu(e,t,n){e.translate=Yi(t.translate,0,n),e.scale=Yi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ru(e,t,n,r){e.min=Yi(t.min,n.min,r),e.max=Yi(t.max,n.max,r)}function ou(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const su={duration:.45,ease:[.4,0,.1,1]},iu=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),au=iu("applewebkit/")&&!iu("chrome/")?Math.round:$o;function lu(e){e.min=au(e.min),e.max=au(e.max)}function cu(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Ac(t),o=Ac(n),!(Math.abs(r-o)<=.2));var r,o}function uu(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const du=Uc({attachResizeListener:(e,t)=>nl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mu={current:void 0},fu=Uc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mu.current){const e=new du({});e.mount(window),e.setOptions({layoutScroll:!0}),mu.current=e}return mu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),hu={pan:{Feature:class extends Qa{constructor(){super(...arguments),this.removePointerDownListener=$o}onPointerDown(e){this.session=new il(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wl(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Xl(e),onStart:Xl(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Zo.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ol(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Qa{constructor(e){super(e),this.removeGroupControls=$o,this.removeListeners=$o,this.controls=new Hl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$o}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:fu,MeasureLayout:ic}};function pu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Zo.postRender((()=>o(t,rl(t))))}function gu(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Zo.postRender((()=>o(t,rl(t))))}const yu=new WeakMap,vu=new WeakMap,wu=e=>{const t=yu.get(e.target);t&&t(e)},bu=e=>{e.forEach(wu)};const xu={some:0,all:1},Eu={inView:{Feature:class extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:xu[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;vu.has(n)||vu.set(n,{});const r=vu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(bu,{root:e,...t})),r[o]}(t);return yu.set(e,n),r.observe(e),()=>{yu.delete(e),r.unobserve(e)}}(this.node.current,s,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Qa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,s]=Fo(e,n),i=e=>{const r=e.currentTarget;if(!zo(e)||Io.has(r))return;Io.add(r);const s=t(e),i=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),zo(e)&&Io.has(r)&&(Io.delete(r),"function"==typeof s&&s(e,{success:t}))},a=e=>{i(e,n.useGlobalTarget||Mo(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return Oo.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vo((()=>{if(Io.has(n))return;Bo(n,"down");const e=Vo((()=>{Bo(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Bo(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),s}(e,(e=>(gu(this.node,e,"Start"),(e,{success:t})=>gu(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Qa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=na(nl(this.node.current,"focus",(()=>this.onFocus())),nl(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Qa{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,s]=Fo(e,n),i=Do((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const s=Do((e=>{r(e),n.removeEventListener("pointerleave",s)}));n.addEventListener("pointerleave",s,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",i,o)})),s}(e,(e=>(pu(this.node,e,"Start"),e=>pu(this.node,e,"End")))))}unmount(){}}}},_u={layout:{ProjectionNode:fu,MeasureLayout:ic}},Su=(0,a.createContext)({strict:!1}),ku=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Pu=(0,a.createContext)({});function Nu(e){return no(e.animate)||uo.some((t=>so(e[t])))}function Cu(e){return Boolean(Nu(e)||e.variants)}function Tu(e){return Array.isArray(e)?e.join(" "):e}const ju="undefined"!=typeof window,Ru={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Au={};for(const e in Ru)Au[e]={isEnabled:t=>Ru[e].some((e=>!!t[e]))};const Fu=Symbol.for("motionComponentSymbol");function Du(e,t,n){return(0,a.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):fl(n)&&(n.current=r))}),[t])}const Mu=ju?a.useLayoutEffect:a.useEffect;function Lu(e,t,n,r,o){var s,i;const{visualElement:l}=(0,a.useContext)(Pu),c=(0,a.useContext)(Su),u=(0,a.useContext)(Yl),d=(0,a.useContext)(ku).reducedMotion,m=(0,a.useRef)(null);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));const f=m.current,h=(0,a.useContext)(Zl);!f||f.projection||!o||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ou(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(i)||a&&fl(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(m.current,n,o,h);const p=(0,a.useRef)(!1);(0,a.useInsertionEffect)((()=>{f&&p.current&&f.update(n,u)}));const g=n[ps],y=(0,a.useRef)(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(i=window.MotionHasOptimisedAnimation)||void 0===i?void 0:i.call(window,g)));return Mu((()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),rc.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())})),(0,a.useEffect)((()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)})),y.current=!1))})),f}function Ou(e){if(e)return!1!==e.options.allowProjection?e.projection:Ou(e.parent)}function Iu({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var s,i;function l(e,s){let i;const l={...(0,a.useContext)(ku),...e,layoutId:Vu(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Nu(e)){const{initial:t,animate:n}=e;return{initial:!1===t||so(t)?t:void 0,animate:so(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(Pu));return(0,a.useMemo)((()=>({initial:t,animate:n})),[Tu(t),Tu(n)])}(e),d=r(e,c);if(!c&&ju){(0,a.useContext)(Su).strict;const e=function(e){const{drag:t,layout:n}=Au;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);i=e.MeasureLayout,u.visualElement=Lu(o,d,l,t,e.ProjectionNode)}return(0,O.jsxs)(Pu.Provider,{value:u,children:[i&&u.visualElement?(0,O.jsx)(i,{visualElement:u.visualElement,...l}):null,n(o,e,Du(d,u.visualElement,s),d,c,u.visualElement)]})}e&&function(e){for(const t in e)Au[t]={...Au[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(i=null!==(s=o.displayName)&&void 0!==s?s:o.name)&&void 0!==i?i:""})`}`;const c=(0,a.forwardRef)(l);return c[Fu]=o,c}function Vu({layoutId:e}){const t=(0,a.useContext)(Kl).id;return t&&void 0!==e?t+"-"+e:e}const Bu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zu(e){return"string"==typeof e&&!e.includes("-")&&!!(Bu.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uu(e){const t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Wu=e=>(t,n)=>{const r=(0,a.useContext)(Pu),o=(0,a.useContext)(Yl),s=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,s){const i={latestValues:$u(r,o,s,e),renderState:t()};return n&&(i.onMount=e=>n({props:r,current:e,...i}),i.onUpdate=e=>n(e)),i}(e,t,r,o);return n?s():Uu(s)};function $u(e,t,n,r){const o={},s=r(e,{});for(const e in s)o[e]=uc(s[e]);let{initial:i,animate:a}=e;const l=Nu(e),c=Cu(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?a:i;if(d&&"boolean"!=typeof d&&!no(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=ao(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Hu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,qu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xu=Ho.length;function Yu(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const e in t){const n=t[e];if(qo.has(e))i=!0;else if(Fi(e))o[e]=n;else{const t=Hu(n,mi[e]);e.startsWith("origin")?(a=!0,s[e]=t):r[e]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",o=!0;for(let s=0;s<Xu;s++){const i=Ho[s],a=e[i];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(i.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=Hu(a,mi[i]);l||(o=!1,r+=`${qu[i]||i}(${e}) `),n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}const Gu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ku={offset:"strokeDashoffset",array:"strokeDasharray"};function Zu(e,t,n){return"string"==typeof e?e:$s.transform(t+n*e)}function Ju(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:s,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(Yu(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:f,dimensions:h}=e;m.transform&&(h&&(f.transform=m.transform),delete m.transform),h&&(void 0!==o||void 0!==s||f.transform)&&(f.transformOrigin=function(e,t,n){return`${Zu(t,e.x,e.width)} ${Zu(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?Gu:Ku;e[s.offset]=$s.transform(-r);const i=$s.transform(t),a=$s.transform(n);e[s.array]=`${i} ${a}`}(m,i,a,l,!1)}const Qu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ed(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const td=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nd(e,t,n,r){ed(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(td.has(n)?n:hs(n),t.attrs[n])}function rd(e,{layout:t,layoutId:n}){return qo.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nc[e]||"opacity"===e)}function od(e,t,n){var r;const{style:o}=e,s={};for(const i in o)(ms(o[i])||t.style&&ms(t.style[i])||rd(i,e)||void 0!==(null===(r=null==n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(s[i]=o[i]);return s}function sd(e,t,n){const r=od(e,t,n);for(const n in e)(ms(e[n])||ms(t[n]))&&(r[-1!==Ho.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const id=["x","y","width","height","cx","cy","r"],ad={useVisualState:Wu({scrapeMotionValuesFromProps:sd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let s=!!e.drag;if(!s)for(const e in o)if(qo.has(e)){s=!0;break}if(!s)return;let i=!t;if(t)for(let n=0;n<id.length;n++){const r=id[n];e[r]!==t[r]&&(i=!0)}i&&Zo.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),Zo.render((()=>{Ju(r,o,Qu(n.tagName),e.transformTemplate),nd(n,r)}))}))}})},ld={useVisualState:Wu({scrapeMotionValuesFromProps:od,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function cd(e,t,n){for(const r in t)ms(t[r])||rd(r,n)||(e[r]=t[r])}function ud(e,t){const n={},r=function(e,t){const n={};return cd(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Yu(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function md(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dd.has(e)}let fd=e=>!md(e);try{(hd=require("@emotion/is-prop-valid").default)&&(fd=e=>e.startsWith("on")?!md(e):hd(e))}catch(e){}var hd;function pd(e,t,n,r){const o=(0,a.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ju(n,t,Qu(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};cd(t,e.style,e),o.style={...t,...o.style}}return o}function gd(e=!1){return(t,n,r,{latestValues:o},s)=>{const i=(zu(t)?pd:ud)(n,o,s,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(fd(o)||!0===n&&md(o)||!t&&!md(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==a.Fragment?{...l,...i,ref:r}:{},{children:u}=n,d=(0,a.useMemo)((()=>ms(u)?u.get():u),[u]);return(0,a.createElement)(t,{...c,children:d})}}function yd(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Iu({...zu(n)?ad:ld,preloadedFeatures:e,useRender:gd(r),createVisualElement:t,Component:n})}}const vd={current:null},wd={current:!1},bd=[...Bi,Gs,oi],xd=new WeakMap,Ed=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _d{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ci,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=rs.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Zo.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:c}=s;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Nu(t),this.isVariantNode=Cu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==a[e]&&ms(t)&&t.set(a[e],!1)}}mount(e){this.current=e,xd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),wd.current||function(){if(wd.current=!0,ju)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vd.current=e.matches;e.addListener(t),t()}else vd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vd.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xd.delete(this.current),this.projection&&this.projection.unmount(),Jo(this.notifyUpdate),Jo(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=qo.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Zo.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),s&&s(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Au){const t=Au[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ed.length;t++){const n=Ed[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ms(o))e.addValue(r,o);else if(ms(s))e.addValue(r,us(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,us(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=us(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(Ri(r)||Cs(r))?r=parseFloat(r):!(e=>bd.find(Vi(e)))(r)&&oi.test(t)&&(r=pi(e,t)),this.setBaseTarget(e,ms(r)?r.get():r)),ms(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=ao(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ms(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new is),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Sd extends _d{constructor(){super(...arguments),this.KeyframeResolver=Ui}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ms(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class kd extends Sd{constructor(){super(...arguments),this.type="html",this.renderInstance=ed}readValueFromInstance(e,t){if(qo.has(t)){const e=hi(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Fi(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ul(e,t)}build(e,t,n){Yu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return od(e,t,n)}}class Pd extends Sd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kl}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(qo.has(t)){const e=hi(t);return e&&e.default||0}return t=td.has(t)?t:hs(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return sd(e,t,n)}build(e,t,n){Ju(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){nd(e,t,0,r)}mount(e){this.isSVGTag=Qu(e.tagName),super.mount(e)}}const Nd=to(yd({...tl,...Eu,...hu,..._u},((e,t)=>zu(e)?new Pd(t):new kd(t,{allowProjection:e!==a.Fragment}))));class Cd extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Td({children:e,isPresent:t}){const n=(0,a.useId)(),r=(0,a.useRef)(null),o=(0,a.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,a.useContext)(ku);return(0,a.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:l}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,O.jsx)(Cd,{isPresent:t,childRef:r,sizeRef:o,children:a.cloneElement(e,{ref:r})})}const jd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i})=>{const l=Uu(Rd),c=(0,a.useId)(),u=(0,a.useCallback)((e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()}),[l,r]),d=(0,a.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:u,register:e=>(l.set(e,!1),()=>l.delete(e))})),s?[Math.random(),u]:[n,u]);return(0,a.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),a.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===i&&(e=(0,O.jsx)(Td,{isPresent:n,children:e})),(0,O.jsx)(Yl.Provider,{value:d,children:e})};function Rd(){return new Map}const Ad=e=>e.key||"";function Fd(e){const t=[];return a.Children.forEach(e,(e=>{(0,a.isValidElement)(e)&&t.push(e)})),t}const Dd=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1})=>{const[l,c]=Gl(i),u=(0,a.useMemo)((()=>Fd(e)),[e]),d=i&&!l?[]:u.map(Ad),m=(0,a.useRef)(!0),f=(0,a.useRef)(u),h=Uu((()=>new Map)),[p,g]=(0,a.useState)(u),[y,v]=(0,a.useState)(u);Mu((()=>{m.current=!1,f.current=u;for(let e=0;e<y.length;e++){const t=Ad(y[e]);d.includes(t)?h.delete(t):!0!==h.get(t)&&h.set(t,!1)}}),[y,d.length,d.join("-")]);const w=[];if(u!==p){let e=[...u];for(let t=0;t<y.length;t++){const n=y[t],r=Ad(n);d.includes(r)||(e.splice(t,0,n),w.push(n))}return"wait"===s&&w.length&&(e=w),v(Fd(e)),void g(u)}const{forceRender:b}=(0,a.useContext)(Kl);return(0,O.jsx)(O.Fragment,{children:y.map((e=>{const a=Ad(e),p=!(i&&!l)&&(u===y||d.includes(a));return(0,O.jsx)(jd,{isPresent:p,initial:!(m.current&&!n)&&void 0,custom:p?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:p?void 0:()=>{if(!h.has(a))return;h.set(a,!0);let e=!0;h.forEach((t=>{t||(e=!1)})),e&&(null==b||b(),v(f.current),i&&(null==c||c()),r&&r())},children:e},a)}))})},Md=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var Ld={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Od=(0,a.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},c)=>(0,a.createElement)("svg",{ref:c,...Ld,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Md("lucide",o),...l},[...i.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),Id=(e,t)=>{const n=(0,a.forwardRef)((({className:n,...r},o)=>{return(0,a.createElement)(Od,{ref:o,iconNode:t,className:Md(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},Vd=Id("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Bd=(0,a.createContext)({}),zd=()=>(0,a.useContext)(Bd),Ud=({size:e="md",children:t,className:n})=>(0,O.jsx)(Bd.Provider,{value:{size:e},children:(0,O.jsx)("div",{className:Fe("flex flex-col bg-background-primary p-2",n),children:t})});Ud.displayName="Menu";const Wd=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:s,className:i})=>{const[l,c]=(0,a.useState)(r),[u,d]=(0,a.useState)(!1),{size:m}=zd(),f={sm:"text-xs",md:"text-sm"}[m??"md"],h={sm:"size-4",md:"size-5"}[m??"md"],p=()=>{c(!l),o&&o(!l)};return(0,O.jsxs)("div",{children:[!!e&&(0,O.jsxs)("div",{role:"button",tabIndex:0,onClick:p,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&p()},onMouseEnter:()=>n&&d(!0),onMouseLeave:()=>n&&d(!1),className:Fe("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",f,e?"p-1":"p-0",i),"aria-expanded":l,children:[(0,O.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,O.jsx)(Nd.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?l||u?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,O.jsx)(Nd.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:l?"open":"closed",transition:{duration:.15},children:(0,O.jsx)(Vd,{className:Fe("shrink-0",h)})})})]}),(0,O.jsx)(Dd,{initial:!1,children:l&&(0,O.jsx)(Nd.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:s})})]})};Wd.displayName="Menu.List";const $d=({disabled:e=!1,active:t,onClick:n,children:r,className:o})=>{const{size:s}=zd(),i={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[s??"md"];return(0,O.jsx)("li",{role:"menuitem",tabIndex:0,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:Fe("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",i,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),children:r})};$d.displayName="Menu.Item";const Hd=({variant:e="solid",className:t})=>{const n={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,O.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,O.jsx)("hr",{className:Fe("w-full border-0 border-t border-border-subtle",n,t)})})};Hd.displayName="Menu.Separator",Ud.List=Wd,Ud.Item=$d,Ud.Separator=Hd;const qd=(0,a.createContext)({}),Xd=()=>(0,a.useContext)(qd),Yd=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[s,i]=(0,a.useState)(!1),{refs:l,floatingStyles:c,context:u}=Ur({open:s,onOpenChange:i,placement:e,strategy:"fixed",middleware:[er(t),nr({boundary:n}),tr({boundary:n})],whileElementsMounted:Un}),d=Or(u),m=zr(u),f=Gr(u,{role:"menu"}),{getReferenceProps:h,getFloatingProps:p}=Xr([d,m,f]),{isMounted:g,styles:y}=Jr(u,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),v=()=>i((e=>!e));return(0,O.jsx)(qd.Provider,{value:{refs:l,handleClose:()=>i(!1),isMounted:g,styles:y,floatingStyles:c,getFloatingProps:p},children:(0,O.jsxs)("div",{className:Fe("relative inline-block",o),children:[a.Children.map(r,(e=>a.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,a.cloneElement)(e,{ref:l.setReference,onClick:v,...h()}):null)),a.Children.toArray(r).filter((e=>a.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||""))).map((e=>e))]})})};Yd.displayName="DropdownMenu";const Gd=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:s,styles:i}=Xd();return s&&(0,O.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...i},...o(),children:a.Children.map(e,(e=>"DropdownMenu.Content"===e?.type?.displayName?e:null))})};Gd.displayName="DropdownMenu.ContentWrapper";const Kd=({children:e,root:t,id:n})=>(0,O.jsx)(Ar,{id:n,root:t,children:e});Kd.displayName="DropdownMenu.Portal";const Zd=a.forwardRef((({children:e,className:t,...n},r)=>(0,a.isValidElement)(e)?a.cloneElement(e,{className:Fe(t,e.props.className),ref:r,...n}):(0,O.jsx)("div",{ref:r,className:Fe("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e})));Zd.displayName="DropdownMenu.Trigger";const Jd=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Fe("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,O.jsx)(Ud,{...n,children:e})});Jd.displayName="DropdownMenu.Content";const Qd=e=>(0,O.jsx)(Ud.List,{...e});Qd.displayName="DropdownMenu.List";const em=({children:e,as:t=Ud.Item,...n})=>{const{handleClose:r}=Xd();return e?t===a.Fragment&&(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{onClick:De(e.props?.onClick,r)}):(0,O.jsx)(t,{...n,className:Fe("px-2",n.className),onClick:De(n.onClick,r),children:e}):null};em.displayName="DropdownMenu.Item";const tm=e=>(0,O.jsx)(Ud.Separator,{...e});tm.displayName="DropdownMenu.Separator",Yd.Trigger=Zd,Yd.Content=Jd,Yd.List=Qd,Yd.Item=em,Yd.Separator=tm,Yd.Portal=Kd,Yd.ContentWrapper=Gd;const nm=Id("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rm=(0,a.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:s=null,disabled:i=!1,onClose:a=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const m={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let f="",h="group relative justify-center flex items-center cursor-pointer";const p={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return i?(f=m.disabled,h+=" cursor-not-allowed disabled"):f=m[o],e?(0,O.jsxs)("span",{className:Fe("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",f,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:d,children:[s?(0,O.jsx)("span",{className:Fe("justify-center flex items-center",p[t]),children:s}):null,(0,O.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,O.jsxs)("span",{className:Fe(h,p[t]),onMouseDown:c,role:"button",tabIndex:0,...!i&&{onClick:a},children:[(0,O.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,O.jsx)(nm,{}),(0,O.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));rm.displayName="Badge";const om=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var sm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const im=(0,a.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},c)=>(0,a.createElement)("svg",{ref:c,...sm,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:om("lucide",o),...l},[...i.map((([e,t])=>(0,a.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),am=(e,t)=>{const n=(0,a.forwardRef)((({className:n,...r},o)=>{return(0,a.createElement)(im,{ref:o,iconNode:t,className:om(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},lm=am("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),cm=am("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),um=am("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),dm=am("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]),mm=am("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),fm=window.wp.i18n;var hm={dashboard:{path:"dashboard"},widgets:{path:"widgets"},templates:{path:"templates"},settings:{path:"settings"},onboarding:{path:"onboarding"},upgrade:{path:"upgrade"},headerFooterBuilder:{path:"elementor-hf"},onboardingsuccess:{path:"onboardingsuccess"}},pm=function(){return pm=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},pm.apply(this,arguments)},gm=function(e,t,n,r){return new(n||(n=Promise))((function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))},ym=function(e,t){var n,r,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},vm={rssFeedURL:"",selector:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},wm=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),bm.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new xm(this),this.RSS_View_Instance=new Em(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector"].map((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=pm(pm(pm({},vm),e),{viewAll:pm(pm({},vm.viewAll),null==e?void 0:e.viewAll),triggerButton:pm(pm({},vm.triggerButton),null==e?void 0:e.triggerButton),flyout:pm(pm(pm({},vm.flyout),null==e?void 0:e.flyout),{innerContent:pm(pm({},vm.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:pm(pm({},vm.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return gm(this,void 0,void 0,(function(){var e=this;return ym(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){var n=t.key;return gm(e,void 0,void 0,(function(){var e;return ym(this,(function(t){switch(t.label){case 0:return e=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return e=t.sent(),[3,3];case 2:e=bm.getLastPostUnixTime(n),t.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+e:this.lastPostUnixTime=+e,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,s=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>s&&(r.forEach((function(t){t.date>s&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))}))];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),s=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),i=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var s=o[t];if(s.length){var i=+s[0].date,a=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;s.forEach((function(n){var o=!!a&&n.date>a,s=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),i='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(s,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(i,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=i,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(i,t):bm.setLastPostUnixTime(i,t)))}}))};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),!e.isMultiFeedRSS())return i(null);var r=s.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):bm.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),i(o)}))})),r[0].click()}));var a=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&a()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",a),o.addEventListener("click",a)},e}(),bm=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),xm=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(bm.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return gm(this,void 0,void 0,(function(){var e,t=this;return ym(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return gm(t,void 0,void 0,(function(){var t,n,r=this;return ym(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,s=t.querySelector("link").textContent,i=t.querySelector("content\\:encoded, encoded"),a=i?i.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:s,description:a.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),bm.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),Em=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e="\n\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t</a>\n\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t");this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,s=n.readMore;if(!r)return e;var i=e.replace(/<[^>]*>/g,"").split(/\s+/),a=i.slice(0,r).join(" ");return o&&(a+=o),r>i.length?e:t&&(null==s?void 0:s.label)?"<p>".concat(a,' <a href="').concat(t,'" target="_blank" class="').concat(s.className,'">').concat(s.label,"</a></p>"):"<p>".concat(a,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),s=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),s.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(s),s.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,s=24*o,i=7*s,a=30*s;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<s){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<i){var u=Math.floor(r/s);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<a){var d=Math.floor(r/i);return"".concat(d," week").concat(d>1?"s":""," ago")}var m=Math.floor(r/a);return"".concat(m," month").concat(m>1?"s":""," ago")},e}();function _m(){var e=window.location.hash;document.querySelectorAll("#adminmenu #toplevel_page_hfe a").forEach((function(t){var n=t.getAttribute("href"),r=t.closest("li"),o=t.textContent.trim();n&&(e.includes(n.split("#")[1])||"#dashboard"===e&&"Dashboard"===o)?r.classList.add("current"):r.classList.remove("current")}))}const Sm=function(){var e=i((0,a.useState)(!1),2),t=(e[0],e[1]);(0,a.useEffect)((function(){return _m(),window.addEventListener("hashchange",_m),function(){window.removeEventListener("hashchange",_m)}}),[]);var n=window.location.hash,r=function(e){return n.includes(e)},o=function(e){return{color:r(e)?"#111827":"#4B5563",borderBottom:r(e)?"2px solid #6005FF":"none",paddingBottom:"22px",marginBottom:"-16px"}},s=function(e){window.open(e,"_blank"),t(!1)};return function({selector:e,...t}){const n=(0,a.useRef)(null);(0,a.useEffect)((()=>{var r;return async function(){const e="whats-new-rss-styles";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=await async function(){return".whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:'⌃';font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}"}(),document.head.appendChild(t)}}(),n.current||(n.current=(r={selector:e,...t},new wm(r))),()=>{n.current&&"function"==typeof n.current.destroy&&n.current.destroy()}}),[e,...Object.values(t)]),n.current}({rssFeedURL:"https://ultimateelementor.com/whats-new/feed/",selector:"#hfe-whats-new",triggerButton:{beforeBtn:'<div class="w-4 sm:w-8 h-8 sm:h-10 flex items-center whitespace-nowrap justify-center cursor-pointer rounded-full border border-slate-200">',icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#434141" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-megaphone"><path d="m3 11 18-5v12L3 14v-3z"></path><path d="M11.6 16.8a3 3 0 1 1-5.8-1.6"></path></svg>',afterBtn:"</div>"},flyout:{title:(0,fm.__)("What's New?","astra-sites"),formatDate:function(e){var t=e.toLocaleDateString("en-US",{weekday:"long"}),n=e.toLocaleDateString("en-US",{month:"long"}),r=e.getDate(),o=e.getFullYear();return"".concat(t," ").concat(n," ").concat(r,", ").concat(o)}}}),c().createElement(ot,{className:"hfe-nav-menu relative",style:{width:"unset",padding:"0.5rem",zIndex:"9",paddingTop:"1rem"}},c().createElement("div",{className:"flex flex-col lg:flex-row items-start md:items-center w-full"},c().createElement("div",{className:"flex flex-row md:items-center md:gap-8 w-full"},c().createElement(ot.Left,null,c().createElement(ot.Item,null,c().createElement(D,{to:hm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_url),alt:"Icon",className:"ml-4 cursor-pointer",style:{height:"35px",width:"35px"}})))),c().createElement(ot.Middle,{className:"flex-grow",align:"left"},c().createElement(ot.Item,null,c().createElement("nav",{className:"flex flex-wrap gap-6 mt-2 md:mt-0 cursor-pointer"},c().createElement(D,{to:hm.dashboard.path,className:"".concat(r("dashboard")?"active-link":""),style:o("dashboard")},(0,fm.__)("Dashboard","header-footer-elementor")),c().createElement(D,{to:hm.headerFooterBuilder.path,className:"".concat(r("edit.php?post_type=elementor-hf")?"active-link":""),style:o("edit.php?post_type=elementor-hf"),onClick:function(){console.log("Navigating to Header & Footer Builder")}},(0,fm.__)("Header & Footer Builder","header-footer-elementor")),c().createElement(D,{to:hm.widgets.path,className:"".concat(r("widgets")?"active-link":""),style:o("widgets")},(0,fm.__)("Widgets","header-footer-elementor")),c().createElement(D,{to:hm.templates.path,className:"".concat(r("templates")?"active-link":""),style:o("templates")},(0,fm.__)("Templates","header-footer-elementor")),c().createElement(D,{to:hm.settings.path,className:"".concat(r("settings")?"active-link":""),style:o("settings")},(0,fm.__)("Settings","header-footer-elementor")),c().createElement(D,{to:hm.upgrade.path,className:"".concat(r("upgrade")?"active-link":""),style:o("upgrade")},(0,fm.__)("Free vs Pro","header-footer-elementor")))),c().createElement(ot.Item,null,c().createElement(ct,{icon:c().createElement(lm,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring mb-2",style:{color:"#6005FF",background:"none",border:"none",padding:0,cursor:"pointer"},onClick:function(){return s("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=navigation-bar&utm_campaign=uae-lite-upgrade")}},(0,fm.__)("Get Pro","header-footer-elementor")))),c().createElement(ot.Right,{className:"gap-4"},c().createElement(ot.Item,null,c().createElement(Yd,{placement:"bottom-end"},c().createElement(Yd.Trigger,null,c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}),c().createElement("span",{className:"sr-only"},"Open Menu")),c().createElement(Yd.Portal,null,c().createElement(Yd.ContentWrapper,null,c().createElement(Yd.Content,{className:"w-60"},c().createElement(Yd.List,null,c().createElement(Yd.Item,null,(0,fm.__)("Version","header-footer-elementor")),c().createElement(Yd.Item,null,c().createElement("div",{className:"flex justify-between w-full"},"".concat(hfeSettingsData.uaelite_current_version),c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",variant:"neutral"}))))))))),c().createElement(ot.Item,{className:"gap-4 cursor-pointer"},c().createElement(Yd,{placement:"bottom-end"},c().createElement(Yd.Trigger,null,c().createElement(cm,null)),c().createElement(Yd.Portal,null,c().createElement(Yd.ContentWrapper,null,c().createElement(Yd.Content,{className:"w-60"},c().createElement(Yd.List,null,c().createElement(Yd.Item,null,(0,fm.__)("Useful Resources","header-footer-elementor")),c().createElement(Yd.Item,{className:"text-text-primary",style:{color:"black"},onClick:function(){return s("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/")}},c().createElement(um,{style:{color:"black"}}),(0,fm.__)("Getting Started","header-footer-elementor")),c().createElement(Yd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/widgets/")}},c().createElement(um,null),(0,fm.__)("How to use widgets","header-footer-elementor")),c().createElement(Yd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/features/")}},c().createElement(um,null),(0,fm.__)("How to use features","header-footer-elementor")),c().createElement(Yd.Item,{onClick:function(){return s("https://ultimateelementor.com/docs-category/templates/")}},c().createElement(um,null),(0,fm.__)("How to use templates","header-footer-elementor")),c().createElement(Yd.Item,{onClick:function(){return s("https://ultimateelementor.com/contact/")}},c().createElement(dm,null),(0,fm.__)("Contact us","header-footer-elementor"))))))),c().createElement("div",{className:"pb-1",id:"hfe-whats-new"})),c().createElement(D,{to:hm.settings.path},c().createElement(mm,{className:"cursor-pointer hfe-user-icon",style:{color:"black"}}))))))};function km(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Pm=(0,a.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:s=!1,...i},a)=>{if(!e)return null;let l="";return s&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,O.jsx)(t,{ref:a,className:Fe("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...i,children:e})}));Pm.displayName="Label";const Nm=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const s={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},i={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},l={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,a.isValidElement)(e))return(0,O.jsxs)("div",{className:Fe("inline-flex items-center gap-3","items-start"),children:[r,e]});const c=!e?.heading&&!e?.description,u=e?.heading&&e?.description?"items-start":"items-center";return c?r:(0,O.jsxs)("div",{className:Fe("inline-flex",u,"gap-3"),children:[r,(()=>{const{heading:r="",description:a=""}=e||{};return(0,O.jsxs)("div",{className:Fe("space-y-0.5",l[o]),children:[r&&(0,O.jsx)(Pm,{htmlFor:t,className:Fe("m-0",s[o]),...n&&{variant:"disabled"},children:r}),a&&(0,O.jsx)(Pm,{tag:"p",variant:"help",className:Fe("text-sm font-normal leading-5 m-0",i[o]),...n&&{variant:"disabled"},children:a})]})})()]})},Cm=(0,a.forwardRef)((({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:s=!1,label:i={heading:"",description:""},name:l,className:c,...u},d)=>{const m="lg"===o?"md":o,f=(0,a.useMemo)((()=>typeof n<"u"),[n]),h=(0,a.useMemo)((()=>e||`switch-${((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})()}`),[]),[p,g]=(0,a.useState)(r),y="primary",v=(0,a.useCallback)((()=>f?n:p),[f,n,p]),w={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},b={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,O.jsx)(Nm,{label:i,switchId:h,disabled:s,size:m,children:(0,O.jsxs)("div",{className:Fe("relative group/switch inline-block cursor-pointer rounded-full shrink-0",b[m].container,c),children:[(0,O.jsx)("input",{ref:d,id:h,type:"checkbox",className:Fe("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",w[y].input,s&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!s&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[y].input),checked:v(),onChange:e=>{if(s)return;const n=e.target.checked;f||g(n),"function"==typeof t&&t(n)},disabled:s,name:l,...u}),(0,O.jsx)("label",{htmlFor:h,className:Fe("peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",b[m].toggleDial,w[y].toggleDial,s&&"peer-disabled:cursor-not-allowed",!s&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[m])})]})})}));Cm.displayName="Switch";const Tm=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},jm=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:s,setOpen:i,children:l,className:c,tooltipPortalRoot:u,tooltipPortalId:d,boundary:m="clippingAncestors",strategy:f="fixed",offset:h=8,triggers:p=["hover","focus"],interactive:g=!1})=>{const y=(0,a.useMemo)((()=>"boolean"==typeof s&&"function"==typeof i),[s,i]),[v,w]=(0,a.useState)(!1),b=(0,a.useRef)(null),{refs:x,floatingStyles:E,context:_}=Ur({open:y?s:v,onOpenChange:y?i:w,placement:t,strategy:f,middleware:[er(h),nr({boundary:m}),tr({boundary:m}),(M={element:b},{...Qn(M),options:[M,undefined]})],whileElementsMounted:Un}),S=Or(_,{enabled:!y&&p.includes("click")}),k=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:i}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:f=!0}=t,h=gr(),p=pr(),g=vr(u),y=vr(c),v=vr(n),w=a.useRef(),b=a.useRef(-1),x=a.useRef(),E=a.useRef(-1),_=a.useRef(!0),S=a.useRef(!1),k=a.useRef((()=>{})),P=a.useRef(!1),N=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(E.current),_.current=!0,P.current=!1)}}),[l,s]),a.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){N()&&r(!1,e,"hover")}const t=Ot(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[i.floating,n,r,l,g,N]);const C=a.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=br(y.current,"close",w.current);o&&!x.current?(clearTimeout(b.current),b.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(b.current),r(!1,e,n))}),[y,r]),T=sr((()=>{k.current(),x.current=void 0})),j=sr((()=>{if(S.current){const e=Ot(i.floating).body;e.style.pointerEvents="",e.removeAttribute(wr),S.current=!1}})),R=sr((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(l&&pt(i.domReference)){var e;const r=i.domReference;return n&&r.addEventListener("mouseleave",a),null==(e=i.floating)||e.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",s),()=>{var e;n&&r.removeEventListener("mouseleave",a),null==(e=i.floating)||e.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(b.current),_.current=!1,d&&!Lt(w.current)||m>0&&!br(y.current,"open"))return;const t=br(y.current,"open",w.current);t?b.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function s(e){if(R())return;k.current();const t=Ot(i.floating);if(clearTimeout(E.current),P.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(b.current),x.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),R()||C(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(k.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==w.current||!Rt(i.floating,e.relatedTarget))&&C(e)}function a(e){R()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),R()||C(e)}})(e))}}),[i,l,e,d,m,f,C,T,j,r,n,v,h,y,g,o,R]),ir((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&N()){S.current=!0;const e=i.floating;if(pt(i.domReference)&&e){var t;const n=Ot(i.floating).body;n.setAttribute(wr,"");const r=i.domReference,o=null==h||null==(t=h.nodesRef.current.find((e=>e.id===p)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,p,i,h,g,N]),ir((()=>{n||(w.current=void 0,P.current=!1,T(),j())}),[n,T,j]),a.useEffect((()=>()=>{T(),clearTimeout(b.current),clearTimeout(E.current),j()}),[l,i.domReference,T,j]);const A=a.useMemo((()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){_.current||v.current||r(!0,t,"hover")}d&&!Lt(w.current)||n||0===m||P.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(E.current),"touch"===w.current?o():(P.current=!0,E.current=window.setTimeout(o,m)))}}}),[d,r,n,v,m]),F=a.useMemo((()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){R()||C(e.nativeEvent,!1)}})),[C,R]);return a.useMemo((()=>l?{reference:A,floating:F}:{}),[l,A,F])}(_,{move:!1,enabled:!y&&p.includes("hover"),...g&&{handleClose:eo()}}),P=Wr(_,{enabled:!y&&p.includes("focus")}),N=zr(_),C=Gr(_,{role:"tooltip"}),{getReferenceProps:T,getFloatingProps:j}=Xr([S,k,P,N,C]),{isMounted:R,styles:A}=Jr(_,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),F={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],D="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var M;return(0,O.jsxs)(a.Fragment,{children:[(0,a.isValidElement)(l)&&(0,O.jsx)(a.Fragment,{children:(0,a.cloneElement)(l,{ref:Tm(l.ref,x.setReference),className:Fe(l.props.className),...T()})},"tooltip-reference"),(0,O.jsx)(Ar,{id:d,root:u,children:R&&(0,O.jsxs)("div",{className:Fe("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",F,"max-w-80 w-fit",c),ref:x.setFloating,style:{...E,...A},...j(),children:[(0,O.jsxs)("div",{children:[!!n&&(0,O.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,O.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,O.jsx)(mr,{ref:b,context:_,className:Fe("fill-current",D)})]})})]})};jm.displayName="Tooltip";const Rm=am("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Am=window.wp.apiFetch;var Fm=o.n(Am),Dm=[],Mm=function(){0!==Dm.length&&Dm.shift()()};const Lm=function(e){var t=e.widget,n=e.updateCounter,r=e.showTooltip,o=t.id,s=t.icon,l=t.title,u=(t.infoText,t.is_pro),d=(t.is_active,t.slug,t.demo_url),m=t.doc_url,f=t.description,h=(t.is_new,i((0,a.useState)(t.is_active),2)),p=h[0],g=h[1],y=i((0,a.useState)(!1),2),v=y[0],w=y[1];(0,a.useEffect)((function(){g(t.is_active)}),[t.is_active,n]);var b=function(e){var t=e?"hfe_deactivate_widget":"hfe_activate_widget",n=new window.FormData;n.append("action",t),n.append("nonce",hfe_admin_data.nonce),n.append("module_id",o),n.append("is_pro",u);try{var r=Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:n});r.success?g(p):r.error}catch(e){}finally{w(!1),Mm()}};return c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:""},c().createElement("div",{className:"flex items-center justify-between w-full"},c().createElement("div",{className:"h-10 w-10 mb-5 ".concat(null==s?void 0:s.props),style:{fontSize:"22px"}},s),c().createElement("div",{className:"flex items-center gap-x-2",style:{marginBottom:"15px"}},u&&c().createElement(rm,{label:"PRO",size:"xs",type:"pill",variant:"inverse"}),!u&&c().createElement(Cm,{onChange:function(){v||(w(!0),p?(g(!1),Dm.push((function(){return b(p)}))):(g(!0),Dm.push((function(){return b(p)}))),1===Dm.length&&Mm())},size:"sm",value:p,className:"hfe-remove-ring"}))),c().createElement("div",{className:"flex flex-col w-full"},c().createElement("p",{className:"text-sm font-medium text-text-primary pt-3 m-0 pb-1"},l),c().createElement("div",{className:"flex items-center justify-between w-full"},d&&c().createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-text-tertiary m-0 mb-1 hfe-remove-ring",style:{textDecoration:"none",lineHeight:"1.5rem"}},(0,fm.__)("View Demo","header-footer-elementor")),r&&c().createElement("div",{className:"".concat(d?"":"hfe-tooltip-wrap")},c().createElement(jm,{arrow:!0,content:c().createElement("div",null,c().createElement("span",{className:"font-semibold block mb-2"},l),c().createElement("span",{className:"block mb-2"},f),m&&c().createElement("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"cursor-pointer",style:{color:"#B498E5",textDecoration:"none"}},c().createElement(um,{style:{color:"#B498E5",width:"11px",height:"11px",marginRight:"3px"}}),(0,fm.__)("Read Documentation","header-footer-elementor"))),placement:"bottom",title:"",triggers:["click"],variant:"dark",size:"xs"},c().createElement(Rm,{className:"h-5 w-5",size:18,color:"#A0A5B2"}))))))},Om=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,O.jsx)("div",{className:Fe(r,"animate-pulse",o,t),...n})},Im=function(){var e=i((0,a.useState)(null),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1],l=i((0,a.useState)(!0),2),u=l[0];return l[1],(0,a.useEffect)((function(){s(!0),Fm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),s(!1)})).catch((function(e){s(!1)}))}),[]),c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},"Widgets / Features"),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"},c().createElement(D,{to:hm.widgets.path,className:"text-sm text-text-primary cursor-pointer",style:{lineHeight:"1rem"}},"View All",c().createElement(lm,{className:"ml-1",size:13})))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4"},o?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},km(Array(16)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},null==t?void 0:t.slice(0,16).map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Lm,{widget:e,showTooltip:u,key:e.id,updateCounter:0}))})))))},Vm=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:s="sm",className:i=""})=>{const a={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,O.jsx)(o,{className:Fe("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[s]),children:e});return t?(0,O.jsxs)("div",{className:i,children:[(0,O.jsxs)("div",{children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Fe("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Fe("flex items-center",a[s]),children:[l(),n]}),!n&&l()]}),(0,O.jsx)("p",{className:Fe("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[s]),children:t})]}):(0,O.jsxs)("div",{className:i,children:[n&&"left"===r&&(0,O.jsxs)("div",{className:Fe("flex items-center",a[s]),children:[n,l()]}),n&&"right"===r&&(0,O.jsxs)("div",{className:Fe("flex items-center",a[s]),children:[l(),n]}),!n&&l()]})},Bm=function(){var e=i((0,a.useState)(!0),2),t=e[0],n=e[1],r=i((0,a.useState)(null),2),o=r[0],s=r[1],l=i((0,a.useState)(null),2),u=l[0],d=l[1];if((0,a.useEffect)((function(){n(!0),Fm()({path:"/hfe/v1/templates",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.uael_nonce_action}}).then((function(e){s(e.templates_status),e.redirect_url&&d(e.redirect_url),n(!1)})).catch((function(e){n(!1)}))}),[]),!t)return c().createElement("div",{className:"box-border hfe-dashboard-templates p-4 bg-white rounded-lg shadow-md mb-6 hfe-subheading"},c().createElement("div",{className:"mb-4"},c().createElement("img",{src:"".concat(hfeSettingsData.templates_url),alt:"Template Showcase",className:"w-full h-auto rounded"})),c().createElement(Vm,{className:"mt-2",icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,fm.__)("Build Websites 10x Faster with Templates","header-footer-elementor")}),c().createElement("p",{className:"text-text-secondary text-text-tertiary mt-2 mb-2 text-sm"},(0,fm.__)("Choose from our professionally designed websites to build your site faster, with easy customization options.","header-footer-elementor")),"Activated"!==o?c().createElement(D,{to:hm.templates.path,className:"w-full"},c().createElement(ct,{className:"w-full mt-4",icon:null,iconPosition:"left",size:"md",variant:"secondary"},(0,fm.__)("View Templates","header-footer-elementor"))):c().createElement(ct,{className:"w-full mt-4",icon:null,iconPosition:"left",size:"md",variant:"secondary",onClick:function(e){"Activated"===o&&u&&window.open(u,"_blank")}},(0,fm.__)("View Templates","header-footer-elementor")))},zm=am("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),Um=am("NotepadText",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]]),Wm=function(){return c().createElement("div",{className:"box-border hfe-dashboard-quick-access p-4 bg-white rounded-lg shadow-md",style:{width:"-webkit-fill-available"}},c().createElement(Vm,{className:"mb-2",icon:null,iconPosition:"right",size:"xs",tag:"h3",title:(0,fm.__)("Quick Access","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"p-1 rounded-lg gap-1",containerType:"flex",direction:"column",gap:"",justify:"start",style:{width:"100%",backgroundColor:"#F9FAFB"}},c().createElement(nt.Item,{alignSelf:"auto",className:"p-4 bg-white rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(zm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/contact/","_blank")}},(0,fm.__)("Contact Us","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(cm,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/","_blank")}},(0,fm.__)("Help Centre","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(ct,{className:"text-black hfe-remove-ring",icon:c().createElement(Um,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ideas.ultimateelementor.com/boards/feature-requests","_blank")}},(0,fm.__)("Request a Feature","header-footer-elementor")))))},$m=am("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Hm=am("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),qm=function(){return c().createElement(Vm,{className:"hfe-header-title my-4",description:"",icon:null,iconPosition:"right",size:"xs",tag:"h6",title:(0,fm.__)("Formerly Elementor Header & Footer Builder","header-footer-elementor")})},Xm=function(){return c().createElement("div",null,c().createElement(nt,{align:"center",className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8 flex flex-col lg:flex-row",containerType:"flex",direction:"row",gap:"sm"},c().createElement(nt.Item,{shrink:1},c().createElement(Vm,{description:"",icon:null,iconPosition:"right",className:"max-w-lg",size:"lg",tag:"h3",title:(0,fm.__)("Welcome to Ultimate Addons for Elementor!","header-footer-elementor")}),c().createElement(qm,null),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0 mt-2"},(0,fm.__)("We're excited to help you supercharge your website-building experience. Effortlessly design stunning websites with our comprehensive range of free and premium widgets and features.","header-footer-elementor")),c().createElement("div",{className:"flex items-center pt-6 gap-2"},c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_blank")}},(0,fm.__)("Create Header/Footer","header-footer-elementor")),c().createElement(ct,{icon:c().createElement($m,null),iconPosition:"right",variant:"outline",className:"hfe-remove-ring",style:{color:"#7D4CDB",borderColor:"#E9DFFC"},onMouseEnter:function(e){return e.currentTarget.style.color="#000000"},onMouseLeave:function(e){return(e.currentTarget.style.color="#7D4CDB")&&(e.currentTarget.style.borderColor="#E9DFFC")},onClick:function(){window.open(hfeSettingsData.elementor_page_url,"_blank")}},(0,fm.__)("Create New Page","header-footer-elementor")),c().createElement("div",{style:{color:"black",background:"none",border:"none",padding:0,cursor:"pointer"},onMouseEnter:function(e){return e.currentTarget.style.color="#6005ff"},onMouseLeave:function(e){return e.currentTarget.style.color="black"},onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-with-ultimate-addons-for-elementor-lite/","_blank")}},c().createElement(ct,{icon:c().createElement(Hm,null),iconPosition:"right",variant:"link",className:"hfe-remove-ring text-black"},(0,fm.__)("Read full guide","header-footer-elementor")))))))},Ym=am("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Gm=am("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Km=function(){var e=[{id:1,icon:"",title:(0,fm.__)("Modal Popup","header-footer-elementor")},{id:2,icon:"",title:(0,fm.__)("Advanced Heading","header-footer-elementor")},{id:3,icon:"",title:(0,fm.__)("Post Layouts","header-footer-elementor")},{id:4,icon:"",title:(0,fm.__)("Info Box","header-footer-elementor")},{id:5,icon:"",title:(0,fm.__)("Pricing Cards","header-footer-elementor")},{id:6,icon:"",title:(0,fm.__)("Form Stylers and more...","header-footer-elementor")}];return c().createElement("div",null,c().createElement(nt,{className:"bg-background-primary p-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"row",justify:"between",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col pt-6 pb-3 justify-between",style:{width:"65%"}},c().createElement("div",null,c().createElement(Vm,{description:"",icon:c().createElement(Ym,null),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)("Unlock Ultimate Features","header-footer-elementor"),className:"text-xs font-semibold text-brand-primary-600"}),c().createElement(Vm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:(0,fm.__)("Create Stunning Designs with the Pro Version!","header-footer-elementor"),className:"py-1 text-[12px]"}),c().createElement("p",{className:"text-sm m-0 text-text-secondary"},(0,fm.__)("Get access to advanced widgets and features to create the website that stands out!","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-2 grid-flow-row gap-1 my-4"},e.map((function(e){return c().createElement(Vm,{key:e.id,description:"",icon:c().createElement(Gm,{className:"text-brand-primary-600 mr-1 h-3 w-3"}),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)(e.title,"header-footer-elementor"),className:"text-[14px]"})}))),c().createElement("div",{className:"flex items-center pb-3 gap-4"},c().createElement(ct,{variant:"secondary",className:"hfe-remove-ring",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-dashboard&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor")),c().createElement(D,{className:"text-black cursor-pointer",to:hm.upgrade.path},(0,fm.__)("Compare Free vs Pro","header-footer-elementor")))),c().createElement(nt.Item,{className:"flex justify-center items-center",style:{width:"34%"}},c().createElement("img",{src:"".concat(hfeSettingsData.column_url),alt:(0,fm.__)("Column Showcase","header-footer-elementor"),className:"w-full h-auto rounded"}))))};function Zm(e,t,n,r,o,s,i){try{var a=e[s](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Jm(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function i(e){Zm(s,r,o,i,a,"next",e)}function a(e){Zm(s,r,o,i,a,"throw",e)}i(void 0)}))}}const Qm=window.regeneratorRuntime;var ef=o.n(Qm);const tf=(0,a.createContext)({}),nf=()=>(0,a.useContext)(tf),rf={open:{opacity:1},exit:{opacity:0}},of={duration:.2},sf=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:s=!1,exitOnEsc:i=!0,design:l="simple",scrollLock:c=!0})=>{const u=void 0!==e&&void 0!==t,[d,m]=(0,a.useState)(!1),f=(0,a.useRef)(null),h=(0,a.useRef)(null),p=(0,a.useMemo)((()=>u?e:d),[e,d]),g=(0,a.useMemo)((()=>u?t:m),[m,m]),y=()=>{p||g(!0)},v=()=>{p&&g(!1)},w=(0,a.useCallback)((()=>(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{onClick:De(y,r?.props?.onClick)}):"function"==typeof r?r({onClick:y}):null),[r,y,v]),b=e=>{"Escape"===e.key&&i&&v()},x=e=>{s&&f.current&&!f.current.contains(e.target)&&v()};return(0,a.useEffect)((()=>(window.addEventListener("keydown",b),document.addEventListener("mousedown",x),()=>{window.removeEventListener("keydown",b),document.removeEventListener("mousedown",x)})),[p]),(0,a.useEffect)((()=>{if(!c)return;const e=document.querySelector("html");return p&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}}),[p]),(0,O.jsxs)(O.Fragment,{children:[w(),(0,O.jsx)(tf.Provider,{value:{open:p,setOpen:g,handleClose:v,design:l,dialogContainerRef:h,dialogRef:f},children:(0,O.jsx)("div",{ref:h,className:Fe("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};sf.displayName="Dialog";const af=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=nf();return(0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Nd.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:rf,role:"dialog",transition:of,children:(0,O.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,O.jsx)("div",{ref:o,className:Fe("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})};af.displayName="Dialog.Panel";const lf=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=nf();return r?.current?(0,O.jsx)(O.Fragment,{children:(0,rn.createPortal)((0,O.jsx)(Dd,{children:n&&(0,O.jsx)(Nd.div,{className:Fe("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:rf,transition:of})}),r.current)}):null};lf.displayName="Dialog.Backdrop";const cf=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Fe("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});cf.displayName="Dialog.Header";const uf=({children:e,as:t="h3",className:n,...r})=>(0,O.jsx)(t,{className:Fe("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});uf.displayName="Dialog.Title";const df=({children:e,as:t="p",className:n,...r})=>(0,O.jsx)(t,{className:Fe("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});df.displayName="Dialog.Description";const mf=({className:e,...t})=>(0,O.jsx)("button",{className:Fe("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,O.jsx)(nm,{className:"size-4 text-text-primary shrink-0"})}),ff=({children:e,as:t=a.Fragment,...n})=>{const{handleClose:r}=nf();return e?t===a.Fragment?"function"==typeof e?e({close:r}):(0,a.cloneElement)(e,{onClick:r}):(0,O.jsx)(t,{...n,onClick:r,children:e}):(0,O.jsx)(mf,{onClick:r,...n})};ff.displayName="Dialog.CloseButton";const hf=({children:e,className:t,...n})=>(0,O.jsx)("div",{className:Fe("px-5",t),...n,children:e});hf.displayName="Dialog.Body";const pf=({children:e,className:t})=>{const{design:n,handleClose:r}=nf();return(0,O.jsx)("div",{className:Fe("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};pf.displayName="Dialog.Footer",sf.Panel=af,sf.Title=uf,sf.Description=df,sf.CloseButton=ff,sf.Header=cf,sf.Body=hf,sf.Footer=pf,sf.Backdrop=lf;const gf=function(e){var t=e.plugin,n=e.setUpdateCounter,r=t.path,o=t.slug,s=t.siteUrl,l=t.icon,u=t.type,d=t.name,m=t.zipUrl,f=t.desc,h=(t.wporg,t.isFree),p=(t.action,t.status),g=t.settings_url,y=i((0,a.useState)(!1),2),v=y[0],w=y[1],b=i((0,a.useState)(null),2),x=b[0],E=b[1],_=function(e){w(!1);var t=new window.FormData;t.append("action","hfe_recommended_plugin_activate"),t.append("nonce",hfe_admin_data.nonce),t.append("plugin",e.init),t.append("type",e.type),t.append("slug",e.slug);var r=document.querySelector('[data-slug="'.concat(e.slug,'"]')),o=r.querySelector("span");o.innerText=(0,fm.__)("Activating..","header-footer-elementor"),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(t){if(t.success)o&&(r.style.color="#16A34A",r.dataset.action="site_redirect",r.classList.add("hfe-plugin-activated"),o.innerText=(0,fm.__)("Activated","header-footer-elementor"),window.open(g,"_blank"),setTimeout((function(){n((function(e){return e+1}))}),5e3));else{e.type;var s=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(s){var i=s.querySelector("span");i&&(i.innerText=(0,fm.__)("Activate","header-footer-elementor"))}}}))};return c().createElement(nt,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:"lg"},c().createElement("div",{className:"flex items-center justify-between w-full"},c().createElement("div",{className:"h-5 w-5"},c().createElement("img",{src:l,alt:"Recommended Plugins/Themes",className:"w-full h-auto rounded",style:{width:"24px",height:"24px"}})),c().createElement("div",{className:"flex items-center gap-x-2"},h&&c().createElement(rm,{label:(0,fm.__)("Free","header-footer-elementor"),size:"xs",type:"pill",variant:"green"}),c().createElement(ct,{size:"xs",variant:"link",className:"cursor-pointer hfe-remove-ring",onClick:function(e){var t=e.currentTarget.dataset.action,n=new window.FormData,r={init:e.currentTarget.dataset.init,type:e.currentTarget.dataset.type,slug:e.currentTarget.dataset.slug,name:e.currentTarget.dataset.pluginname};switch(t){case"hfe_recommended_plugin_activate":"theme"===r.type?(E(r),w(!0)):_(r);break;case"hfe_recommended_plugin_install":n.append("action","theme"===r.type?"hfe_recommended_theme_install":"hfe_recommended_plugin_install"),n.append("_ajax_nonce",hfe_admin_data.installer_nonce),n.append("slug",r.slug),e.target.innerText=(0,fm.__)("Installing..","header-footer-elementor"),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:n}).then((function(t){t.success||"folder_exists"===t.errorCode?(e.target.innerText=(0,fm.__)("Installed","header-footer-elementor"),"theme"===r.type?(document.querySelector('[data-slug="'.concat(r.slug,'"]')).dataset.action="hfe_recommended_plugin_activate",e.target.innerText=(0,fm.__)("Activate","header-footer-elementor")):_(r)):(e.target.innerText=(0,fm.__)("Install","header-footer-elementor"),alert("theme"===r.type?(0,fm.__)("Theme Installation failed, Please try again later.","header-footer-elementor"):(0,fm.__)("Plugin Installation failed, Please try again later.","header-footer-elementor")))}));break;case"site_redirect":window.open(s,"_blank")}},"data-plugin":m,"data-type":u,"data-pluginname":d,"data-slug":o,"data-site":s,"data-init":r,"data-action":function(e){return"Activated"===e?"site_redirect":"Installed"===e?"hfe_recommended_plugin_activate":"hfe_recommended_plugin_install"}(p),style:{color:"Activated"===p?"#16A34A":"#6005FF"}},"Activated"===p?(0,fm.__)("Visit Site","header-footer-elementor"):"Installed"===p?"Activate":p),c().createElement(sf,{design:"simple",open:v,setOpen:w},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(sf.Title,null,(0,fm.__)("Activate Theme","header-footer-elementor"))),c().createElement(sf.Description,null,(0,fm.__)("Are you sure you want to switch your current theme to Astra?","header-footer-elementor"))),c().createElement(sf.Footer,null,c().createElement(ct,{onClick:function(){return _(x)}},(0,fm.__)("Yes","header-footer-elementor")),c().createElement(ct,{variant:"outline",onClick:function(){return w(!1)}},(0,fm.__)("Close","header-footer-elementor"))))))),c().createElement("div",{className:"flex flex-col w-full pb-4"},c().createElement("p",{className:"text-sm font-medium text-text-primary pb-1 m-0 cursor-pointer",onClick:function(){return window.open(t.siteurl,"_blank")}},(0,fm.__)(d,"header-footer-elementor")),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0"},(0,fm.__)(f,"header-footer-elementor"))))};function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const vf=function(){var e=i((0,a.useState)([]),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1],l=i((0,a.useState)(0),2),u=l[0],d=l[1],m=i((0,a.useState)(!1),2),f=m[0],h=m[1];function g(e){return Object.keys(e).map((function(t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({path:t},e[t])}))}return(0,a.useEffect)((function(){var e=function(){var e=Jm(ef().mark((function e(){var t,r,o;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.prev=1,e.next=4,Fm()({path:"/hfe/v1/plugins",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}});case 4:t=e.sent,r=g(t),n(r),o=r.every((function(e){return e.is_installed})),h(o),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching plugins:",e.t0);case 14:return e.prev=14,s(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(){return e.apply(this,arguments)}}();e()}),[u]),f?null:c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},(0,fm.__)("Extend Your Website","header-footer-elementor")),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"})),c().createElement("div",{className:"flex flex-col rounded-lg p-4",style:{backgroundColor:"#F9FAFB"}},o?c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-2",containerType:"grid",justify:"start"},km(Array(2)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",style:{height:"150px"},className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement("div",{className:"flex flex-col gap-6",style:{marginTop:"40px"}},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"})))}))):c().createElement(nt,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-2",containerType:"grid",justify:"start"},t.slice(0,4).map((function(e){return c().createElement(nt.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(gf,{plugin:e,setUpdateCounter:d}))})))))},wf=function(){return(0,a.useEffect)((function(){var e="admin.php?page=hfe#dashboard";window.location.href.includes(e)&&window.history.pushState(null,"",e);var t=function(t){window.location.href.includes(e)&&(t.preventDefault(),window.history.pushState(null,"",e))};return window.addEventListener("popstate",t),function(){window.removeEventListener("popstate",t)}}),[]),c().createElement(c().Fragment,null,c().createElement(Sm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:0},c().createElement(Xm,null),c().createElement(Im,null),c().createElement(Km,null)),c().createElement(nt.Item,{className:"p-2 w-full hfe-35-width",shrink:1},c().createElement(Bm,null),c().createElement(vf,null),c().createElement(Wm,null)))))},bf=function(){var e=[{id:1,icon:"",title:(0,fm.__)("Modal Popup","header-footer-elementor")},{id:2,icon:"",title:(0,fm.__)("Advanced Heading","header-footer-elementor")},{id:1,icon:"",title:(0,fm.__)("Post Layouts","header-footer-elementor")},{id:1,icon:"",title:(0,fm.__)("Info Box","header-footer-elementor")},{id:1,icon:"",title:(0,fm.__)("Pricing Cards","header-footer-elementor")},{id:1,icon:"",title:(0,fm.__)("Form Stylers and more...","header-footer-elementor")}];return c().createElement("div",{className:"pt-4"},c().createElement(nt,{className:"bg-background-primary gap-1 p-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"column",justify:"between",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col justify-center items-center"},c().createElement("img",{src:"".concat(hfeSettingsData.column_url),alt:(0,fm.__)("Column Showcase","header-footer-elementor"),className:"h-auto rounded w-1/2"})),c().createElement(nt.Item,{className:"flex flex-col justify-between"},c().createElement("div",null,c().createElement(Vm,{description:"",icon:c().createElement(Ym,null),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)("Unlock Ultimate Features","header-footer-elementor"),className:"text-xs font-semibold text-brand-primary-600"}),c().createElement(Vm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:(0,fm.__)("Create Stunning Designs with the Pro Version!","header-footer-elementor"),className:"py-1 text-sm"}),c().createElement("p",{className:"text-md m-0 text-text-secondary"},(0,fm.__)("Get access to advanced widgets and features to create the website that stands out!","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-2 grid-flow-row gap-1 my-4"},e.map((function(e){return c().createElement(Vm,{key:e.id,description:"",icon:c().createElement(Gm,{className:"text-brand-primary-600 mr-1 h-3 w-3"}),iconPosition:"left",size:"xxs",tag:"h6",title:e.title,className:"text-md m-0 text-text-secondary hfe-compare-section"})}))),c().createElement("div",{className:"flex items-center pb-3 gap-4"},c().createElement(ct,{iconPosition:"right",variant:"secondary",className:"hfe-remove-ring",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=unlock-ultimate-feature&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor")),c().createElement(D,{className:"text-black cursor-pointer",to:hm.upgrade.path},(0,fm.__)("Compare Free vs Pro","header-footer-elementor"))))))},xf=am("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ef=am("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kf=function(){var e=i((0,a.useState)(null),2),t=e[0],n=e[1],r=i((0,a.useState)(""),2),o=r[0],s=r[1],l=i((0,a.useState)(!1),2),u=l[0],d=l[1],m=i((0,a.useState)(!1),2),f=m[0],h=m[1],p=i((0,a.useState)(!0),2),g=p[0],y=p[1],v=i((0,a.useState)(0),2),w=v[0],b=v[1],x=i((0,a.useState)(!0),2),E=x[0];x[1],(0,a.useEffect)((function(){y(!0),Fm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),y(!1)})).catch((function(e){y(!1)}))}),[]);var _=null==t?void 0:t.filter((function(e){var t;return e.title.toLowerCase().includes(o)||(null===(t=e.keywords)||void 0===t?void 0:t.some((function(e){return e.toLowerCase().includes(o)})))})),S=function(){var e=Jm(ef().mark((function e(){var t;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d(!0),(t=new window.FormData).append("action","hfe_bulk_activate_widgets"),t.append("nonce",hfe_admin_data.nonce),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){d(!1),e.success?(n((function(e){return e.map((function(e){return Sf(Sf({},e),{},{is_active:!0})}))})),b((function(e){return e+1}))):e.error&&(d(!1),console.error("Error during AJAX request:",error))})).catch((function(e){d(!1),console.error("Error during AJAX request:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Jm(ef().mark((function e(){var t;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h(!0),(t=new window.FormData).append("action","hfe_bulk_deactivate_widgets"),t.append("nonce",hfe_admin_data.nonce),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){h(!1),e.success?(n((function(e){return e.map((function(e){return Sf(Sf({},e),{},{is_active:!1})}))})),b((function(e){return e+1}))):e.error&&console.error("AJAX request failed:",e.error)})).catch((function(e){h(!1),console.error("Error during AJAX request:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c().createElement("div",{className:"rounded-lg bg-white w-full mb-4"},c().createElement("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between p-4",style:{paddingBottom:"0"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary mb-2 md:mb-0"},(0,fm.__)("Widgets / Features","header-footer-elementor")),c().createElement("div",{className:"flex flex-col md:flex-row items-center gap-y-2 md:gap-x-2 md:mr-7 relative"},c().createElement(xf,{className:"absolute top-1/2 transform -translate-y-1/2 text-gray-400",style:{backgroundColor:"#F9FAFB",left:"2%",width:"18px",height:"18px"}}),c().createElement("input",{type:"search",placeholder:(0,fm.__)("Search...","header-footer-elementor"),className:"mr-2 pl-10 w-full md:w-auto",style:{height:"40px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",backgroundColor:"#F9FAFB"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){s(e.target.value.toLowerCase())}}),c().createElement("div",{className:"flex flex-row gap-2 w-full md:w-auto"},c().createElement(ct,{icon:u?c().createElement(Ef,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",className:"hfe-bulk-action-button",onClick:S,disabled:!!o},u?(0,fm.__)("Activating...","header-footer-elementor"):(0,fm.__)("Activate All","header-footer-elementor")),c().createElement(ct,{icon:f?c().createElement(Ef,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",onClick:k,className:"hfe-bulk-action-button",disabled:!!o},f?(0,fm.__)("Deactivating...","header-footer-elementor"):(0,fm.__)("Deactivate All","header-footer-elementor"))))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4",style:{minHeight:"800px"}},g?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},km(Array(30)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},null==_?void 0:_.map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Lm,{widget:Sf(Sf({},e),{},{updateCounter:w}),showTooltip:E,key:e.id,updateCounter:w}))})))))},Pf=function(){return c().createElement(c().Fragment,null,c().createElement(Sm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:1},c().createElement(kf,null)),c().createElement(nt.Item,{className:"p-2 hfe-35-width",shrink:1},c().createElement(Bm,null),c().createElement(vf,null),c().createElement(bf,null),c().createElement("div",{className:"",style:{paddingTop:"16px"}},c().createElement(Wm,null))))))},Nf=function(){var e=i((0,a.useState)(!0),2),t=e[0],n=e[1],r=i((0,a.useState)(null),2),o=r[0],s=r[1],l=i((0,a.useState)(null),2),u=l[0],d=l[1],m=[{id:1,icon:"",title:(0,fm.__)("250+ templates for every niche","header-footer-elementor")},{id:2,icon:"",title:(0,fm.__)("Modern, timeless designs","header-footer-elementor")},{id:3,icon:"",title:(0,fm.__)("Full design flexibility for easy customization","header-footer-elementor")},{id:4,icon:"",title:(0,fm.__)("100% responsive across all devices","header-footer-elementor")}];if((0,a.useEffect)((function(){n(!0),Fm()({path:"/hfe/v1/templates",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){s(e.templates_status),e.redirect_url&&d(e.redirect_url),n(!1)})).catch((function(e){n(!1)}))}),[]),!t){var f="Install"===o?(0,fm.__)("Install Starter Templates","header-footer-elementor"):(0,fm.__)("Activate Starter Templates","header-footer-elementor"),h=function(){var e=new window.FormData,t="astra-sites/astra-sites.php",n="astra-sites";"Installed"!==hfeSettingsData.st_pro_status||"Install"!==hfeSettingsData.st_status&&"Installed"!==hfeSettingsData.st_status||(t="astra-pro-sites/astra-pro-sites.php",n="astra-pro-sites"),e.append("action","hfe_recommended_plugin_activate"),e.append("nonce",hfe_admin_data.nonce),e.append("plugin",t),e.append("type","plugin"),e.append("slug",n),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:e}).then((function(e){if(e.success){var t=document.querySelector(".hfe-starter-template-button");if(t){var n=t.querySelector("span");n&&(n.innerText=(0,fm.__)("Activating Starter Templates...","header-footer-elementor"),t.classList.add("hfe-plugin-activated"),n.innerText=(0,fm.__)("Activated Starter Templates","header-footer-elementor"),location.reload())}}else{var r=document.querySelector(".hfe-starter-template-button");if(r){var o=r.querySelector("span");o&&(o.innerText=(0,fm.__)("Activate Starter Templates","header-footer-elementor"))}}}))};return c().createElement("div",null,c().createElement(nt,{className:"flex gap-2 flex-col md:flex-row bg-background-primary p-6 md:p-10 border-[0.5px] border-subtle rounded-xl shadow-sm flex-col-reverse",containerType:"flex",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col justify-between w-full mt-4 md:w-1/2 mb-4 md:mb-0"},c().createElement("div",null,c().createElement(Vm,{description:"",icon:c().createElement(Ym,null),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)("Design Your Website in Minutes","header-footer-elementor"),className:"text-xs font-semibold text-brand-primary-600 mb-2"}),c().createElement(Vm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:(0,fm.__)("Build your website faster using our prebuilt templates","header-footer-elementor"),className:"py-1 text-sm mb-2"}),c().createElement("p",{className:"text-sm md:text-md m-0 text-text-secondary text-text-tertiary"},(0,fm.__)("Stop building your site from scratch. Use our professional templates for your stunning website.It is easy to customize and completely responsive. Explore hundreds of designs and bring your vision to life in no time.","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-1 gap-1 my-4"},m.map((function(e){return c().createElement(Vm,{key:e.id,description:"",icon:c().createElement(Gm,{className:"text-brand-primary-600 mr-1 h-3 w-3"}),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)(e.title,"header-footer-elementor"),className:""})}))),c().createElement("div",{className:"flex flex-col md:flex-row items-center pb-3 gap-4",style:{marginTop:"15px"}},c().createElement(ct,{icon:c().createElement($m,null),iconPosition:"right",variant:"secondary",style:{backgroundColor:"#6005FF",outlineWidth:"0px"},className:"w-auto hfe-starter-template-button hfe-remove-ring cursor-pointer",onClick:function(e){if(u)window.open(u,"_blank");else{var t=document.querySelector(".hfe-starter-template-button span"),n=new window.FormData;n.append("action","hfe_recommended_plugin_install"),n.append("_ajax_nonce",hfe_admin_data.installer_nonce),n.append("slug","astra-sites"),t&&"Install"===o&&(t.innerText=(0,fm.__)("Installing Starter Templates...","header-footer-elementor"),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:n}).then((function(e){e.success||"folder_exists"===e.errorCode?(t.innerText=(0,fm.__)("Installed Starter Templates","header-footer-elementor"),h()):t.innerText=(0,fm.__)("Install Starter Templates","header-footer-elementor")}))),t&&"Installed"===o&&(t.innerText=(0,fm.__)("Activating Starter Templates...","header-footer-elementor"),h())}}},"Activated"===o?(0,fm.__)("Explore Templates","header-footer-elementor"):f),c().createElement(ct,{icon:"",iconPosition:"right",variant:"ghost",className:"w-auto hfe-link-color hfe-remove-ring",onClick:function(){window.open("https://startertemplates.com/","_blank")}},(0,fm.__)("Learn More","header-footer-elementor")))),c().createElement(nt.Item,{className:"flex justify-center md:justify-end w-full md:w-1/2"},c().createElement("img",{src:"".concat(hfeSettingsData.template_url),alt:"Column Showcase",className:"object-contain w-full md:w-5/6"}))))}},Cf=function(){return c().createElement(c().Fragment,null,c().createElement(Sm,null),c().createElement("div",{className:""},c().createElement(nt,{align:"stretch",className:"p-2",containerType:"flex",direction:"row",gap:"sm",justify:"center",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2",alignSelf:"auto",order:"none",shrink:1,style:{width:"90%"}},c().createElement(Nf,null)))))},Tf=function(e){var t=e.items,n=e.onSelectItem,r=i((0,a.useState)(null),2),o=r[0],s=r[1];return c().createElement("div",{style:{padding:"1rem",width:"100%"}},t.map((function(e){return c().createElement("div",{key:e.id,className:"mb-2"},e.main&&c().createElement("p",{className:"text-sm text-text-tertiary font-normal mb-2"},e.main),c().createElement("div",{className:"h-10 flex items-center justify-start gap-2 px-2 rounded-md cursor-pointer ".concat(o===e.id?"bg-gray-100":"bg-background-primary"),style:{backgroundColor:o===e.id?"#F9FAFB":""},onClick:function(){return function(e){s(e.id),n(e)}(e)}},c().createElement("span",null,o===e.id?e.selected:e.icon),c().createElement("p",{className:"m-0 text-base font-normal"},e.title)))})))},jf=function(e){var t=e.selectedItem;return c().createElement("div",{className:"p-6",style:{marginLeft:"4px"}},c().createElement("div",null,null==t?void 0:t.content))};let Rf={data:""},Af=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Rf,Ff=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Df=/\/\*[^]*?\*\/| +/g,Mf=/\n+/g,Lf=(e,t)=>{let n="",r="",o="";for(let s in e){let i=e[s];"@"==s[0]?"i"==s[1]?n=s+" "+i+";":r+="f"==s[1]?Lf(i,s):s+"{"+Lf(i,"k"==s[1]?"":t)+"}":"object"==typeof i?r+=Lf(i,t?t.replace(/([^,])+/g,(e=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=i&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Lf.p?Lf.p(s,i):s+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Of={},If=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+If(e[n]);return t}return e};function Vf(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let s=If(e),i=Of[s]||(Of[s]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(s));if(!Of[i]){let t=s!==e?e:(e=>{let t,n,r=[{}];for(;t=Ff.exec(e.replace(Df,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Mf," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Mf," ").trim();return r[0]})(e);Of[i]=Lf(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let a=n&&Of.g?Of.g:null;return n&&(Of.g=Of[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Of[i],t,r,a),i})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let s=t[o];if(s&&s.call){let e=s(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":Lf(e,""):!1===e?"":e}return e+r+(null==s?"":s)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Af(t.target),t.g,t.o,t.k)}Vf.bind({g:1});let Bf,zf,Uf,Wf=Vf.bind({k:1});function $f(e,t){let n=this||{};return function(){let r=arguments;function o(s,i){let a=Object.assign({},s),l=a.className||o.className;n.p=Object.assign({theme:zf&&zf()},a),n.o=/ *go\d+/.test(l),a.className=Vf.apply(n,r)+(l?" "+l:""),t&&(a.ref=i);let c=e;return e[0]&&(c=a.as||e,delete a.as),Uf&&c[0]&&Uf(a),Bf(c,a)}return t?t(o):o}}var Hf=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,qf=(()=>{let e=0;return()=>(++e).toString()})(),Xf=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Yf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return Yf(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Gf=[],Kf={toasts:[],pausedAt:void 0},Zf=e=>{Kf=Yf(Kf,e),Gf.forEach((e=>{e(Kf)}))},Jf={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Qf=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||qf()}))(t,e,n);return Zf({type:2,toast:r}),r.id},eh=(e,t)=>Qf("blank")(e,t);eh.error=Qf("error"),eh.success=Qf("success"),eh.loading=Qf("loading"),eh.custom=Qf("custom"),eh.dismiss=e=>{Zf({type:3,toastId:e})},eh.remove=e=>Zf({type:4,toastId:e}),eh.promise=(e,t,n)=>{let r=eh.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?Hf(t.success,e):void 0;return o?eh.success(o,{id:r,...n,...null==n?void 0:n.success}):eh.dismiss(r),e})).catch((e=>{let o=t.error?Hf(t.error,e):void 0;o?eh.error(o,{id:r,...n,...null==n?void 0:n.error}):eh.dismiss(r)})),e};var th=(e,t)=>{Zf({type:1,toast:{id:e,height:t}})},nh=()=>{Zf({type:5,time:Date.now()})},rh=new Map,oh=Wf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,sh=Wf`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,ih=Wf`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,ah=$f("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${oh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${sh} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${ih} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,lh=Wf`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,ch=$f("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${lh} 1s linear infinite;
`,uh=Wf`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,dh=Wf`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,mh=$f("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${uh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${dh} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,fh=$f("div")`
position: absolute;
`,hh=$f("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,ph=Wf`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,gh=$f("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${ph} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,yh=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?a.createElement(gh,null,t):t:"blank"===n?null:a.createElement(hh,null,a.createElement(ch,{...r}),"loading"!==n&&a.createElement(fh,null,"error"===n?a.createElement(ah,{...r}):a.createElement(mh,{...r})))},vh=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,wh=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,bh=$f("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,xh=$f("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,Eh=a.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Xf()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[vh(n),wh(n)];return{animation:t?`${Wf(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Wf(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},s=a.createElement(yh,{toast:e}),i=a.createElement(xh,{...e.ariaProps},Hf(e.message,e));return a.createElement(bh,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:s,message:i}):a.createElement(a.Fragment,null,s,i))}));!function(e){Lf.p=void 0,Bf=e,zf=void 0,Uf=void 0}(a.createElement);var _h=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let s=a.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,r]);return a.createElement("div",{ref:s,className:t,style:n},o)},Sh=Vf`
z-index: 9999;
> * {
pointer-events: auto;
}
`,kh=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:s,containerClassName:i})=>{let{toasts:l,handlers:c}=(e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,a.useState)(Kf),r=(0,a.useRef)(Kf);(0,a.useEffect)((()=>(r.current!==Kf&&n(Kf),Gf.push(n),()=>{let e=Gf.indexOf(n);e>-1&&Gf.splice(e,1)})),[]);let o=t.toasts.map((t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Jf[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}}));return{...t,toasts:o}})(e);(0,a.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>eh.dismiss(t.id)),n);t.visible&&eh.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,a.useCallback)((()=>{n&&Zf({type:6,time:Date.now()})}),[n]),o=(0,a.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:s}=n||{},i=t.filter((t=>(t.position||s)===(e.position||s)&&t.height)),a=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<a&&e.visible)).length;return i.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return(0,a.useEffect)((()=>{t.forEach((e=>{if(e.dismissed)((e,t=1e3)=>{if(rh.has(e))return;let n=setTimeout((()=>{rh.delete(e),Zf({type:4,toastId:e})}),t);rh.set(e,n)})(e.id,e.removeDelay);else{let t=rh.get(e.id);t&&(clearTimeout(t),rh.delete(e.id))}}))}),[t]),{toasts:t,handlers:{updateHeight:th,startPause:nh,endPause:r,calculateOffset:o}}})(n);return a.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:i,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map((n=>{let s=n.position||t,i=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Xf()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(s,c.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return a.createElement(_h,{id:n.id,key:n.id,onHeightUpdate:c.updateHeight,className:n.visible?Sh:"",style:i},"custom"===n.type?Hf(n.message,n):o?o(n):a.createElement(Eh,{toast:n,position:s}))})))},Ph=eh,Nh=[{id:"1",title:(0,fm.__)("Option 1 (Recommended)","header-footer-elementor"),description:(0,fm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"1"},{id:"2",title:(0,fm.__)("Option 2","header-footer-elementor"),description:(0,fm.__)("This option will automatically replace your theme's header and footer files with custom templates from the plugin. It works with most themes and is selected by default.","header-footer-elementor"),value:"2"}];const Ch=function(){if("no"===hfeSettingsData.show_theme_support)return null;var e=i((0,a.useState)(hfeSettingsData.theme_option),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2),o=r[0],s=r[1];(0,a.useEffect)((function(){s(!1)}),[]);var l=function(e){var t=e.target.value;n(t),o||u(t)},u=function(){var e=Jm(ef().mark((function e(t){var n;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_theme_compatibility_option",hfe_compatibility_option:t,nonce:hfe_admin_data.nonce})});case 3:return n=e.sent,e.next=6,n.json();case 6:e.sent.success?Ph.success((0,fm.__)("Settings saved successfully!","header-footer-elementor")):Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement(Vm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("Theme Support","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px",maxWidth:"696px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("Select Option to Add Theme Support","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("To ensure compatibility between the header/footer and your theme, please choose one of the following options to enable theme support:","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 space-y-4",alignSelf:"auto",order:"none"},Nh.map((function(e){return c().createElement("div",{key:e.id,className:"flex items-start gap-1 justify-center cursor-pointer"},c().createElement("input",{id:e.id,value:e.value,type:"radio",className:"mt-1 cursor-pointer hfe-radio-field",name:"theme-support-option",onChange:l,checked:t===e.value}),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(Pm,{size:"sm",variant:"neutral",className:"text-sm font-semibold text-text-secondary cursor-pointer flex flex-col items-start justify-start",htmlFor:e.id},e.title,":",c().createElement("p",{className:"m-0 text-sm font-normal text-text-secondary cursor-pointer"},e.description))))}))),c().createElement("div",{className:"flex items-center p-4 border rounded-lg text-start",style:{paddingTop:"16px",paddingBottom:"16px",backgroundColor:"#F3F0FF"}},c().createElement("p",{className:"m-0 text-sm"},c().createElement("strong",null,(0,fm.__)("Note:","header-footer-elementor"))," ",(0,fm.__)("If neither option works, please contact your theme author to add support for this plugin.","header-footer-elementor")))),c().createElement(kh,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"80px"},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}))},Th=function(){var e=hfeSettingsData.uaelite_versions,t=(0,a.useRef)(e?e[0].value:""),n=i((0,a.useState)(e?e[0].value:""),2),r=n[0],o=n[1],s=i((0,a.useState)("elementor-header-footer"),2),l=(s[0],s[1]),u=i((0,a.useState)(!1),2),d=u[0],m=u[1];return(0,a.useEffect)((function(){}),[d]),c().createElement(c().Fragment,null,c().createElement(Vm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("Version Control","header-footer-elementor")}),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{marginTop:"24px"}},c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("Experiencing an issue with current version? Roll back to a previous version to help troubleshoot the issue.","header-footer-elementor"))),c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"bsf-rollback-version"},c().createElement("input",{type:"hidden",name:"product-name",id:"bsf-product-name",value:"header-footer-elementor"}),c().createElement("select",{id:"uaeliteVersionRollback",ref:t,onBlur:function(){l("elementor-header-footer")},onChange:function(e){o(e.target.value)},style:{padding:"8px",marginRight:"10px",marginTop:"16px",cursor:"pointer",borderRadius:"4px",height:"40px",width:"100px",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"}},e.map((function(e){return c().createElement("option",{key:e.value,value:e.value},e.label)})))),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(sf,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:d,setOpen:m,trigger:c().createElement(ct,{style:{backgroundColor:"#6005ff"}},(0,fm.__)("Rollback","header-footer-elementor"))},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(sf.Title,null,(0,fm.__)("Rollback to Previous Version","header-footer-elementor")),c().createElement(sf.CloseButton,null))),c().createElement(sf.Body,null,(0,fm.__)("Are you sure you want to rollback to Ultimate Addons for Elementor v".concat(r,"?"),"header-footer-elementor")),c().createElement(sf.Footer,null,c().createElement(ct,{onClick:function(){var e=hfeSettingsData.uaelite_rollback_url.replace("VERSION",r);m(!1),window.location.href=e}},(0,fm.__)("Rollback","header-footer-elementor")),c().createElement(ct,{onClick:function(){m(!1)}},(0,fm.__)("Cancel","header-footer-elementor"))))))))))},jh=function(){return c().createElement(c().Fragment,null,c().createElement(Vm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("My Account","header-footer-elementor")}),c().createElement(nt,{align:"stretch",className:"bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column",gap:"sm",justify:"start",style:{marginTop:"24px"}},c().createElement(nt.Item,{className:"flex flex-col space-y-2"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,fm.__)("License Key","header-footer-elementor")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,fm.__)("You are using the free version of Ultimate Addons for Elementor, no license key is needed.. "))),c().createElement("div",{className:"flex items-center justify-between px-4 rounded-xl",style:{paddingTop:"6px",paddingBottom:"6px",backgroundColor:"#F3F0FF"}},c().createElement("span",{className:"flex items-center gap-x-2 text-base font-semibold"},(0,fm.__)("Unlock Pro Features","header-footer-elementor"),c().createElement("p",{className:"text-base font-normal"},(0,fm.__)("Get access to advanced blocks and premium features.","header-footer-elementor"))),c().createElement(ct,{icon:c().createElement(lm,null),iconPosition:"right",variant:"link",style:{color:"#6005FF",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",fontSize:"16px"},className:"hfe-remove-ring text-[#6005FF]",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-settings&utm_medium=My-accounts&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor")))))},Rh=function(){var e=i((0,a.useState)(!0),2),t=e[0],n=e[1];(0,a.useEffect)((function(){n("yes"===hfeSettingsData.analytics_status)}),[]);var r=function(){var e=Jm(ef().mark((function e(){var r,o;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n(r=!t),e.prev=2,e.next=5,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_analytics_option",bsf_analytics_optin:r?"yes":"no",nonce:hfe_admin_data.nonce})});case 5:return o=e.sent,e.next=8,o.json();case 8:e.sent.success?Ph.success((0,fm.__)("Settings saved successfully!","header-footer-elementor")):Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor"));case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement(Vm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,fm.__)("Usage Tracking","header-footer-elementor")}),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{marginTop:"24px"}},c().createElement(nt,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(nt.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none"},c().createElement("div",{className:"flex flex-row items-start justify-start px-1 gap-3"},c().createElement(Cm,{onChange:r,size:"sm",value:t,className:"hfe-remove-ring"}),c().createElement("div",{className:"flex flex-col justify-start px-1 gap-3"},c().createElement("span",{className:"font-bold text-text-primary m-0"},(0,fm.__)("Enable Usage Tracking","header-footer-elementor")),c().createElement("span",{className:"font-normal text-text-primary m-0"},(0,fm.__)("Allow Brainstorm Force products to track non-sensitive usage tracking data. ","header-footer-elementor"),c().createElement("a",{href:"https://store.brainstormforce.com/usage-tracking/?utm_source=wp_dashboard&utm_medium=general_settings&utm_campaign=usage_tracking",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary"},(0,fm.__)("Learn More","header-footer-elementor")))),c().createElement(kh,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:1e3,style:{background:"white"},success:{duration:2e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}))))))},Ah=function(){var e=[{id:1,icon:c().createElement("img",{src:"".concat(hfeSettingsData.user_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.user__selected_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),title:(0,fm.__)("My Account","header-footer-elementor"),content:c().createElement(jh,null)},{id:2,icon:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.theme_url_selected),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,fm.__)("Editor","header-footer-elementor"),title:(0,fm.__)("Theme Support","header-footer-elementor"),content:c().createElement(Ch,null)},{id:3,icon:c().createElement("img",{src:"".concat(hfeSettingsData.version_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.version__selected_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),main:(0,fm.__)("Utilities","header-footer-elementor"),title:(0,fm.__)("Version Control","header-footer-elementor"),content:c().createElement(Th,null)},{id:4,icon:c().createElement("img",{src:"".concat(hfeSettingsData.tracking_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),selected:c().createElement("img",{src:"".concat(hfeSettingsData.tracking__selected_url),alt:(0,fm.__)("Custom SVG","header-footer-elementor"),className:"object-contain"}),title:(0,fm.__)("Usage Tracking","header-footer-elementor"),content:c().createElement(Rh,null)}].filter((function(e){return"no"!==hfeSettingsData.show_theme_support||2!==e.id})),t=i((0,a.useState)((function(){var t=localStorage.getItem("hfeSelectedItemId");return e.find((function(e){return e.id===Number(t)}))||e[0]})),2),n=t[0],r=t[1];return(0,a.useEffect)((function(){localStorage.setItem("hfeSelectedItemId",n.id.toString())}),[n]),(0,a.useEffect)((function(){var t=new URLSearchParams(window.location.search).get("tab");if(t){var n=Number(t),o=e.find((function(e){return e.id===n}));o&&r(o)}}),[]),c().createElement(c().Fragment,null,c().createElement(Sm,{onSettingsTabClick:function(){r(e[0])}}),c().createElement("div",{className:""},c().createElement(nt,{align:"stretch",className:"p-1 flex-col lg:flex-row hfe-settings-page",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{height:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-sticky-outer-wrapper",alignSelf:"auto",order:"none",shrink:1,style:{backgroundColor:"#ffffff"}},c().createElement("div",{className:"hfe-sticky-sidebar"},c().createElement(Tf,{items:e,onSelectItem:function(e){r(e)},selectedItemId:n.id}))),c().createElement(nt.Item,{className:"p-2 flex w-full justify-center items-start hfe-hide-scrollbar",alignSelf:"auto",order:"none",shrink:1,style:{height:"calc(100vh - 1px)",overflowY:"auto"}},c().createElement("div",{className:"hfe-78-width"},c().createElement(jf,{selectedItem:n}))))))},Fh=am("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Dh=function(){var e=[{title:(0,fm.__)("Essentials","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("White Label Option","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("24/7 Premium Support","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Cross-Domain Copy-Paste","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Dynamic Header & Footer Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Post Info","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:2,content:(0,fm.__)("Scroll to Top","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:3,content:(0,fm.__)("Breadcrumbs","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:4,content:(0,fm.__)("Retina Logo","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:5,content:(0,fm.__)("Copyright","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:6,content:(0,fm.__)("Page Title","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:7,content:(0,fm.__)("Site Tagline","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:8,content:(0,fm.__)("Site Logo","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:9,content:(0,fm.__)("Search","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:10,content:(0,fm.__)("Navigation Menu","header-footer-elementor"),iconFree:!0,iconPro:!1}]},{title:(0,fm.__)("Creative & Advanced Design Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Advanced Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Dual Color Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Fancy Heading","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Multi-Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Image Hotspots","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Content & Media Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Content Toggle Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Image Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Video Gallery","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Table","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Timeline","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,fm.__)("Google Map","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:7,content:(0,fm.__)("Before & After Slider","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:8,content:(0,fm.__)("Info Card","header-footer-elementor"),iconFree:!0,iconPro:!1},{id:9,content:(0,fm.__)("Video","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:10,content:(0,fm.__)("Conditional Display","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:11,content:(0,fm.__)("Info Box","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:12,content:(0,fm.__)("Login Form","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:13,content:(0,fm.__)("User Registration Form","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Marketing & Engagement Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Marketing Button","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Pricing Table","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Price List","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Countdown Timer","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Business Hours","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:6,content:(0,fm.__)("Modal Popup","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("E-Commerce Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("WooCommerce: Add to Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("WooCommerce: Product Category","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("WooCommerce: Mini Cart","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("WooCommerce: Product","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("WooCommerce: Checkout","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Forms Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Contact Form 7","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Gravity Forms","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("WPForms","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Fluent Forms","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("SEO Widgets","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("FAQ with Schema","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("How-To","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Table of Contents","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Business Reviews","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Creative Features","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Presets","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Welcome Music","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Particles","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Party Propz","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:5,content:(0,fm.__)("Shape Divider","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Social Media Integration","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Instagram Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Twitter Feed","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Social Share","header-footer-elementor"),iconFree:!1,iconPro:!0}]},{title:(0,fm.__)("Advanced Features","header-footer-elementor"),items:[{id:1,content:(0,fm.__)("Retina Image","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:2,content:(0,fm.__)("Team Member","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:3,content:(0,fm.__)("Post Layout","header-footer-elementor"),iconFree:!1,iconPro:!0},{id:4,content:(0,fm.__)("Off Canvas","header-footer-elementor"),iconFree:!1,iconPro:!0}]}],t=function(e){return e?c().createElement(Gm,{color:"#16A34A"}):c().createElement(Fh,{color:"#DC2626"})};return c().createElement("div",{className:"rounded-lg bg-white w-full mb-6"},c().createElement("div",{className:"flex items-center justify-between p-5",style:{paddingBottom:"0"}},c().createElement("div",{className:"flex flex-col"},c().createElement("p",{className:"m-0 text-xl font-semibold pt-4 text-text-primary"},(0,fm.__)("Free Vs Pro","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,fm.__)("Ultimate Addons for Elementor Pro offers 50+ widgets and features!","header-footer-elementor")),c().createElement("p",{className:"m-0 text-sm font-normal pt-1 text-text-secondary"},(0,fm.__)("Compare the popular features/widgets to find the best option for your website.","header-footer-elementor"))),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"},c().createElement(ct,{iconPosition:"right",variant:"primary",style:{color:"white",borderColor:"#6005FF",transition:"color 0.3s ease, border-color 0.3s ease",backgroundColor:"#6005ff"},className:"hfe-remove-ring text-[#6005FF]",onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-FreevsPro&utm_medium=get-uae-pro&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor")))),c().createElement("div",{className:"px-4"},c().createElement("div",{className:"flex flex-col space-y-2 pt-5"},e.map((function(e){return c().createElement(c().Fragment,{key:e.title},c().createElement("div",{className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item",style:{backgroundColor:"#F9FAFB"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},e.title),c().createElement("div",{className:"flex flex-row items-center",style:{gap:"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},(0,fm.__)("Free","header-footer-elementor")),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:"50px"}},(0,fm.__)("Pro","header-footer-elementor")))),e.items.map((function(e){return c().createElement("div",{key:e.id,className:"flex fle-row py-4 px-5 items-center h-4 justify-between rounded-lg shadow-container-item"},c().createElement("p",{className:"text-sm text-text-secondary font-medium"},e.content),c().createElement("div",{className:"flex flex-row items-center justify-between",style:{gap:10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?"10.7rem":"12rem"}},c().createElement("p",{className:"text-sm text-text-primary font-medium"},10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,fm.__)("Advanced","header-footer-elementor"):(0,fm.__)("Basic","header-footer-elementor"):t(e.iconFree)),c().createElement("p",{className:"text-sm text-text-primary font-medium",style:{marginRight:10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?"25px":"50px"}},10===e.id&&e.content===(0,fm.__)("Navigation Menu","header-footer-elementor")?e.iconPro?(0,fm.__)("Basic","header-footer-elementor"):(0,fm.__)("Advanced","header-footer-elementor"):t(e.iconPro))))})))})))))},Mh=function(){var e=[{id:1,icon:"",title:(0,fm.__)("Modal Popup","header-footer-elementor")},{id:2,icon:"",title:(0,fm.__)("Advanced Heading","header-footer-elementor")},{id:3,icon:"",title:(0,fm.__)("Post Layouts","header-footer-elementor")},{id:4,icon:"",title:(0,fm.__)("Info Box","header-footer-elementor")},{id:5,icon:"",title:(0,fm.__)("Pricing Cards","header-footer-elementor")},{id:6,icon:"",title:(0,fm.__)("Form Stylers and more...","header-footer-elementor")}];return c().createElement("div",{className:"",style:{paddingBottom:"16px"}},c().createElement(nt,{className:"bg-background-primary gap-1 p-4 border-[0.5px] border-subtle rounded-xl shadow-sm",containerType:"flex",direction:"column",justify:"between",gap:"xs"},c().createElement(nt.Item,{className:"flex flex-col justify-center items-center"},c().createElement("img",{src:"".concat(hfeSettingsData.column_url),alt:(0,fm.__)("Column Showcase","header-footer-elementor"),className:"h-auto rounded w-1/2"})),c().createElement(nt.Item,{className:"flex flex-col justify-between"},c().createElement("div",null,c().createElement(Vm,{description:"",icon:c().createElement(Ym,null),iconPosition:"left",size:"xs",tag:"h6",title:(0,fm.__)("Unlock Ultimate Features","header-footer-elementor"),className:"text-xs font-semibold text-brand-primary-600"}),c().createElement(Vm,{description:"",icon:"",iconPosition:"left",tag:"h6",title:(0,fm.__)("Create Stunning Designs with the Pro Version!","header-footer-elementor"),className:"py-1 text-sm"}),c().createElement("p",{className:"text-md m-0 text-text-secondary"},(0,fm.__)("Get access to advanced widgets and features to create the website that stands out!","header-footer-elementor"))),c().createElement("div",{className:"grid grid-cols-2 grid-flow-row gap-1 my-4"},e.map((function(e){return c().createElement(Vm,{key:e.id,description:"",icon:c().createElement(Gm,{className:"text-brand-primary-600 mr-1 h-3 w-3"}),iconPosition:"left",size:"xs",tag:"h6",title:e.title,className:"text-md m-0 text-text-secondary hfe-compare-section"})}))),c().createElement("div",{className:""},c().createElement(ct,{iconPosition:"right",variant:"secondary",className:"hfe-remove-ring",style:{width:"100%"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-free-vs-pro&utm_medium=My-accounts&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Upgrade Now","header-footer-elementor"))))))},Lh=function(){return c().createElement(c().Fragment,null,c().createElement(Sm,null),c().createElement("div",null,c().createElement(nt,{align:"stretch",className:"p-6 flex-col lg:flex-row box-border",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{width:"100%"}},c().createElement(nt.Item,{className:"p-2 hfe-65-width",alignSelf:"auto",order:"none",shrink:0},c().createElement(Dh,null)),c().createElement(nt.Item,{className:"p-2 w-full hfe-35-width",shrink:1},c().createElement(Mh,null),c().createElement(vf,null),c().createElement(Wm,null)))))},Oh=Id("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ih=Id("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Vh=(e,t)=>Fe("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),Bh={sm:{dot:"size-2.5",ring:"size-5",numberIcon:"size-5 text-tiny",icon:"size-5",label:"text-xs"},md:{dot:"size-3",ring:"size-6",numberIcon:"size-6 text-sm",icon:"size-6",label:"text-sm"},lg:{dot:"size-3.5",ring:"size-7",numberIcon:"size-7 text-md",icon:"size-7",label:"text-sm"}},zh=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:s,lineClassName:i="min-w-10",completedVariant:l="icon",completedIcon:c=(0,O.jsx)(Oh,{}),...u})=>{const d=a.Children.count(o);-1===r&&(r=d+1);const m=a.Children.map(o,((o,s)=>{const u={isCompleted:s+1<r,isCurrent:s+1===r,sizeClasses:Bh,size:t,variant:e,type:n,isLast:s+1===d,index:s,lineClassName:i,completedVariant:l,completedIcon:c};return(0,O.jsx)(a.Fragment,{children:a.isValidElement(o)?a.cloneElement(o,u):o},s)}));return(0,O.jsx)("div",{className:Fe("flex w-full",s,"inline"===n?"items-center justify-between":""),...u,children:m})},Uh=({labelText:e="",icon:t=(0,O.jsx)(Ih,{}),isCurrent:n,isCompleted:r,className:o,type:s,variant:i,sizeClasses:a,size:l,isLast:c,index:u,lineClassName:d,completedVariant:m="icon",completedIcon:f=(0,O.jsx)(Oh,{}),...h})=>{const p=Wh(i,r,n,a,l,t,u,m,f),g={lg:"left-[calc(50%+14px)] right-[calc(-50%+14px)]",md:"left-[calc(50%+12px)] right-[calc(-50%+12px)]",sm:"left-[calc(50%+10px)] right-[calc(-50%+10px)]"},y={lg:"top-3.5",md:"top-3",sm:"top-2.5"},v=()=>{if(e){const t=Fe(a[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===s?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,O.jsx)("span",{className:t,children:e})}return null},w=()=>{if(!c){const t=Fe("block",r?"border-brand-primary-600":"border-border-subtle",d);return"stack"===s?(0,O.jsx)("div",{className:Fe("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",y[l],g[l]),children:(0,O.jsx)("span",{className:"block"})}):(0,O.jsx)("div",{className:"flex-1",children:(0,O.jsx)("span",{className:Fe("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===s?(0,O.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,O.jsxs)("div",{className:Fe("flex items-center flex-col",o),...h,children:[p,v()]}),w()]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:Fe("flex items-center",o),...h,children:[p,v()]}),w()]})};Uh.displayName="ProgressSteps.Step";const Wh=(e,t,n,r,o,s,i,a="icon",l=(0,O.jsx)(Oh,{}))=>{if(t)return"number"===a?(0,O.jsx)("span",{className:Fe(Vh(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:i+1}):(0,O.jsx)("span",{className:Vh(r,o),children:l});const c=((e,t,n)=>Fe("relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1",e?"ring-brand-primary-600":"ring-border-subtle",t[n].ring))(!!n,r,o),u=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?Fe(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?Fe(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?Fe(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let d=null;return"number"===e?d=i+1:"icon"===e&&s&&(d=s),(0,O.jsx)("span",{className:c,children:(0,O.jsx)("span",{className:u,children:d})})};zh.Step=Uh;const $h=am("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Hh=am("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),qh=am("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Gh=function(){var e=i((0,a.useState)(null),2),t=e[0],n=e[1],r=i((0,a.useState)(""),2),o=r[0],s=(r[1],i((0,a.useState)(!1),2)),l=s[0],u=s[1],d=i((0,a.useState)(!1),2),m=d[0],f=d[1],h=i((0,a.useState)(!0),2),p=h[0],g=h[1],y=i((0,a.useState)(0),2),v=y[0],w=y[1];(0,a.useEffect)((function(){g(!0),Fm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);n(t),g(!1)})).catch((function(e){g(!1)}))}),[]);var b=null==t?void 0:t.filter((function(e){var t;return e.title.toLowerCase().includes(o)||(null===(t=e.keywords)||void 0===t?void 0:t.some((function(e){return e.toLowerCase().includes(o)})))})),x=function(){var e=Jm(ef().mark((function e(){var t;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(!0),(t=new window.FormData).append("action","hfe_bulk_activate_widgets"),t.append("nonce",hfe_admin_data.nonce),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){u(!1),e.success?(n((function(e){return e.map((function(e){return Yh(Yh({},e),{},{is_active:!0})}))})),w((function(e){return e+1}))):e.error&&(u(!1),console.error("Error during AJAX request:",error))})).catch((function(e){u(!1),console.error("Error during AJAX request:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=Jm(ef().mark((function e(){var t;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f(!0),(t=new window.FormData).append("action","hfe_bulk_deactivate_widgets"),t.append("nonce",hfe_admin_data.nonce),Fm()({url:hfe_admin_data.ajax_url,method:"POST",body:t}).then((function(e){f(!1),e.success?(n((function(e){return e.map((function(e){return Yh(Yh({},e),{},{is_active:!1})}))})),w((function(e){return e+1}))):e.error&&console.error("AJAX request failed:",e.error)})).catch((function(e){f(!1),console.error("Error during AJAX request:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c().createElement("div",{className:"rounded-lg w-full mb-4"},c().createElement("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between p-4",style:{paddingTop:"1.5rem"}},c().createElement("h4",{className:"m-0 font-semibold text-text-primary mb-2 md:mb-0"},(0,fm.__)("WIDGETS","header-footer-elementor")),c().createElement("div",{className:"flex flex-col md:flex-row items-center gap-y-2 md:gap-x-2 md:mr-7 relative",style:{paddingRight:"0.75rem"}},c().createElement("div",{className:"flex flex-row w-full md:w-auto"},c().createElement(ct,{icon:l?c().createElement(Ef,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",className:"hfe-bulk-action-button hfe-remove-ring",onClick:x,disabled:!!o,style:{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",borderRight:"0px",fontSize:"0.9em"}},l?(0,fm.__)("Activating...","header-footer-elementor"):(0,fm.__)("Activate All","header-footer-elementor")),c().createElement(ct,{icon:m?c().createElement(Ef,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",onClick:E,className:"hfe-bulk-action-button hfe-remove-ring",disabled:!!o,style:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",fontSize:"0.9em"}},m?(0,fm.__)("Deactivating...","header-footer-elementor"):(0,fm.__)("Deactivate All","header-footer-elementor"))))),c().createElement("div",{className:"hfe-custom-scrollbar bg-background-secondary p-1 rounded-lg max-h-80",style:{overflow:"auto",maxHeight:"20rem",paddingTop:"0"}},c().createElement("div",{className:"flex bg-black flex-col p-3",style:{minHeight:"800px",paddingTop:"0"}},p?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},km(Array(30)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-8 space-y-2"},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{paddingTop:"0"}},null==b?void 0:b.map((function(e){return c().createElement(nt.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Lm,{widget:Yh(Yh({},e),{},{updateCounter:v}),key:e.id,updateCounter:v}))}))))))};function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kh(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jh=function(e){e.widgets;var t=e.updateCounter,n=e.setCurrentStep,r=i((0,a.useState)([]),2),o=(r[0],r[1]),s=i((0,a.useState)(!1),2),l=(s[0],s[1]);(0,a.useEffect)((function(){var e=function(){var e=Jm(ef().mark((function e(){var t;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,Fm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}});case 4:t=e.sent,o(u(t)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Failed to fetch widgets:",e.t0);case 11:return e.prev=11,l(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}();e()}),[t]);var u=function(e){return Object.entries(e).map((function(e){var t=i(e,2),n=t[0],r=t[1];return Zh(Zh({id:n},r),{},{is_active:void 0===r.is_activate||r.is_activate})}))};return c().createElement("div",{className:"flex flex-col gap-4"},c().createElement("div",{className:"bg-background-secondary hfe-min-700"},c().createElement("form",null,c().createElement("div",{className:"md:w-[47rem] box-border mx-auto space-y-4"},c().createElement(Gh,null)))),c().createElement("div",{className:"flex justify-between items-center pt-1 px-4 gap-4 hfe-onboarding-bottom"},c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement(qh,null),variant:"outline",onClick:function(){return n(1)}},(0,fm.__)("Back","header-footer-elementor")),c().createElement("div",{className:"flex justify-end items-center gap-3"},c().createElement(ct,{className:"hfe-remove-ring",variant:"ghost",onClick:function(){return n(3)}}," ",(0,fm.__)("Skip","header-footer-elementor")),c().createElement(ct,{className:"flex items-center gap-1 hfe-remove-ring",icon:c().createElement($h,null),iconPosition:"right",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){return n(3)}},(0,fm.__)(" Continue Setup","header-footer-elementor")))))},Qh=function(e){var t=e.setCurrentStep,n=i((0,a.useState)(null),2),r=n[0],o=n[1],s=i((0,a.useState)(""),2),l=s[0],u=(s[1],i((0,a.useState)(!1),2)),d=(u[0],u[1],i((0,a.useState)(!1),2)),m=(d[0],d[1],i((0,a.useState)(!0),2)),f=m[0],h=m[1],p=i((0,a.useState)(0),2),g=p[0];p[1],(0,a.useEffect)((function(){h(!0),Fm()({path:"/hfe/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){var t=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t.push({id:n,slug:r.slug,title:r.title,keywords:r.keywords,icon:c().createElement("i",{className:r.icon}),title_url:r.title_url,default:r.default,doc_url:r.doc_url,is_pro:r.is_pro,description:r.description,is_active:void 0===r.is_activate||r.is_activate,demo_url:void 0!==r.demo_url?r.demo_url:r.doc_url})}return t}(e);o(t),h(!1)})).catch((function(e){h(!1)})),history.pushState(null,"",window.location.href);var e=function(e){e.preventDefault(),localStorage.setItem("currentStep","1"),window.location.reload()};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]);var y=null==r?void 0:r.filter((function(e){var t;return e.title.toLowerCase().includes(l)||(null===(t=e.keywords)||void 0===t?void 0:t.some((function(e){return e.toLowerCase().includes(l)})))}));return c().createElement("div",{className:"rounded-lg bg-white p-6 hfe-onboarding-customize"},c().createElement("h1",{className:"text-text-primary m-0 mb-2",style:{fontSize:"1.4rem",lineHeight:"1.3em"}},(0,fm.__)("Customize Your UAE Setup","header-footer-elementor")),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0",style:{lineHeight:"1.6em"}},(0,fm.__)("Activate only what you need to keep your website fast and optimized.","header-footer-elementor")),c().createElement("div",{className:"flex bg-black flex-col rounded-lg",style:{marginTop:"2rem"}},f?c().createElement(nt,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},km(Array(30)).map((function(e,t){return c().createElement(nt.Item,{key:t,alignSelf:"auto",style:{padding:"3.5rem"},className:"text-wrap rounded-md shadow-container-item bg-background-primary space-y-2"},c().createElement(Om,{className:"w-12 h-2 rounded-md"}),c().createElement(Om,{className:"w-16 h-2 rounded-md"}),c().createElement(Om,{className:"w-12 h-2 rounded-md"}))}))):c().createElement(nt,{align:"stretch"},c().createElement(Jh,{setCurrentStep:t,widgets:y,updateCounter:g}))))},ep=function(){return c().createElement(c().Fragment,null,c().createElement("div",{className:"w-full pb-10"},c().createElement("div",{className:"flex flex-col items-center justify-center"},c().createElement(ot,{className:"bg-none",style:{background:"none"}},c().createElement(ot.Left,null,c().createElement(ot.Item,null,hfeSettingsData.icon_svg&&c().createElement(D,{to:hm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_svg),alt:"Logo",className:"cursor-pointer",style:{height:"35px"}})))),c().createElement(ot.Middle,null,c().createElement(ot.Item,null,c().createElement(zh,{currentStep:3,className:"uae-steps",variant:"number"},["Welcome","Configure","Create"].map((function(e,t){return c().createElement(zh.Step,{key:t,className:"font-bold",labelText:e,size:"md"})}))))),c().createElement(ot.Right,null,c().createElement(ot.Item,null,c().createElement(D,{className:"hfe-remove-ring",to:hm.dashboard.path,style:{marginLeft:"125px"}},c().createElement(ct,{icon:c().createElement(Fh,{className:"size-4"}),iconPosition:"right",size:"xs",variant:"ghost",className:"hfe-remove-ring"}))))))),c().createElement("div",{className:"flex items-center justify-center"},c().createElement("div",{className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm",style:{borderRadius:"4px"}},c().createElement("div",{className:"bg-background-primary items-start justify-center flex flex-col",style:{borderRadius:"4px"}},c().createElement("div",null,c().createElement("div",{className:"flex justify-center items-center",style:{backgroundImage:"url(".concat(hfeSettingsData.success_banner,")"),backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"215px",borderRadius:"4px"}},c().createElement("img",{alt:"Success",className:"flex",style:{paddingTop:"3.5rem"},src:"".concat(hfeSettingsData.success_badge),loading:"lazy"})),c().createElement("div",{className:"p-6",style:{paddingLeft:"2rem",paddingRight:"2rem"}},c().createElement("div",{className:"flex flex-col items-center justify-center gap-1"},c().createElement("p",{className:"text-4xl font-bold text-text-primary m-0 mt-2",style:{fontSize:"25px",paddingTop:"1.5rem",paddingBottom:"1rem"}},(0,fm.__)("Congratulations!","header-footer-elementor")),c().createElement("span",{className:"block text-md font-medium text-text-tertiary m-0"},(0,fm.__)("You’ve unlocked a ","header-footer-elementor"),c().createElement("span",{style:{color:"#6005FF"}},"40%"),(0,fm.__)(" discount on UAE Pro. We’ve sent a discount","header-footer-elementor")),c().createElement("span",{className:"block text-md font-medium text-text-tertiary m-0"},(0,fm.__)(" coupon just for you to your email address.","header-footer-elementor"))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"2rem"}}),c().createElement("div",{className:"flex flex-col items-center",style:{paddingTop:"2rem"}},c().createElement(ct,{icon:c().createElement($h,null),iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring w-full",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",padding:"0.8rem"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open("https://ultimateelementor.com/pricing/?utm_source=uae-lite-settings&utm_medium=My-accounts&utm_campaign=uae-lite-upgrade","_blank")}},(0,fm.__)("Get Pro Now","header-footer-elementor")),c().createElement(D,{to:hm.dashboard.path,onClick:function(e){e.preventDefault(),window.location.href="admin.php?page=hfe#dashboard"}},c().createElement(ct,{iconPosition:"left",variant:"link",style:{paddingTop:"2rem",paddingBottom:"1rem"},className:"hfe-remove-ring text-text-primary"},(0,fm.__)("Go To The Dashboard","header-footer-elementor"))))))))))};var tp=[{label:"Welcome",component:function(e){var t=e.setCurrentStep;return c().createElement("div",{className:"bg-background-primary border-[0.5px] items-start justify-center border-subtle rounded-xl shadow-sm mb-6 p-8 flex flex-col",style:{maxWidth:"55%"}},c().createElement("div",{className:"px-1"},c().createElement("div",{className:"flex flex-col"},c().createElement("h1",{className:"text-text-primary m-0 mb-2 hfe-65-width",style:{fontSize:"1.6rem",lineHeight:"1.3em"}},c().createElement("span",{className:"block"},(0,fm.__)("Thank You For Choosing","header-footer-elementor")),c().createElement("span",{className:"block"},(0,fm.__)("Ultimate Addons for Elementor","header-footer-elementor"))),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0 mb-6 hfe-88-width",style:{lineHeight:"1.5em"}},(0,fm.__)("We're excited to have you onboard. Get ready to create stunning headers, footers, and custom blocks with ease while keeping your website lightweight and fast.","header-footer-elementor"))),c().createElement("img",{alt:"Welcome",className:"w-full h-auto mb-6 mt-2",src:"".concat(hfeSettingsData.welcome_banner),loading:"lazy"}),c().createElement(ct,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring p-3 px-5 font-bold mt-2",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){return t(2)}},(0,fm.__)("Let's Get Started","header-footer-elementor"))))}},{label:"Configure",component:function(e){var t=e.setCurrentStep;return c().createElement(Qh,{setCurrentStep:t})}},{label:"Create",component:function(e){e.setCurrentStep;var t=i((0,a.useState)(!1),2),n=t[0],r=t[1],o=i((0,a.useState)(""),2),s=o[0],l=o[1],u=i((0,a.useState)(""),2),d=u[0],m=u[1],f=i((0,a.useState)(""),2),h=f[0],p=f[1],g=i((0,a.useState)(!0),2),y=g[0],v=g[1],w=i((0,a.useState)(""),2),b=w[0],x=w[1],E=i((0,a.useState)(""),2),_=E[0],S=E[1],k=i((0,a.useState)(!1),2),P=k[0],N=k[1];(0,a.useEffect)((function(){l(hfeSettingsData.user_email),v("yes"===hfeSettingsData.analytics_status),history.pushState(null,"",window.location.href);var e=function(e){e.preventDefault(),localStorage.setItem("currentStep","2"),window.location.reload()};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[hfeSettingsData.user_email]);var C=function(){var e=Jm(ef().mark((function e(){var t,n;return ef().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(t=!y),e.prev=2,e.next=5,fetch(hfe_admin_data.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_analytics_option",bsf_analytics_optin:t?"yes":"no",nonce:hfe_admin_data.nonce})});case 5:return n=e.sent,e.next=8,n.json();case 8:e.sent.success?Ph.success((0,fm.__)("Settings saved successfully!","header-footer-elementor")):Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),Ph.error((0,fm.__)("Failed to save settings!","header-footer-elementor"));case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();return c().createElement("div",{className:"bg-background-primary border-[0.5px] border-subtle rounded-xl shadow-sm mb-6 p-8",style:{maxWidth:"55%"}},c().createElement("div",{className:"flex items-start hfe-display-flex"},c().createElement("div",{className:"flex flex-col items-start",style:{paddingRight:"35px"}},c().createElement("h1",{className:"text-text-primary m-0 mb-2",style:{fontSize:"1.6rem",lineHeight:"1.3em"}},(0,fm.__)("You're all set!🚀","header-footer-elementor")),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0 mb-4 hfe-88-width",style:{lineHeight:"1.6em"}},(0,fm.__)("Start creating headers, footers, or pages with UAE and take your website to the next level","header-footer-elementor")),c().createElement("span",{className:"font-bold m-0 pt-2"},(0,fm.__)("Here’s how to get started:","header-footer-elementor")),c().createElement("ol",{className:"list-decimal text-text-tertiary text-sm",style:{marginLeft:"1.4em",lineHeight:"1.6em",paddingBottom:"0.5rem"}},c().createElement("li",null,(0,fm.__)("Click on “Create” button","header-footer-elementor")),c().createElement("li",null,(0,fm.__)("Choose the type of template you want to create and customize the selected option","header-footer-elementor")),c().createElement("li",null,(0,fm.__)("Use the Elementor editor to customize your template according to your preferences using UAE widgets","header-footer-elementor")),c().createElement("li",null,(0,fm.__)("Click “Publish” to make it live","header-footer-elementor")))),c().createElement("div",{className:"w-1/2",style:{textAlign:"end"}},c().createElement("img",{alt:"Build",className:"w-full object-contain",style:{height:"255px",width:"auto"},src:"".concat(hfeSettingsData.build_banner),loading:"lazy"}))),c().createElement("div",{className:"flex flex-row gap-1 pb-4 hfe-display-flex"},c().createElement(ct,{icon:c().createElement($h,null),iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){window.open(hfeSettingsData.hfe_post_url,"_self")}},(0,fm.__)("Create Header/Footer","header-footer-elementor")),c().createElement(D,{to:hm.dashboard.path},c().createElement(ct,{icon:c().createElement($h,null),iconPosition:"right",variant:"ghost",className:"hfe-remove-ring",onMouseLeave:function(e){return(e.currentTarget.style.color="#000000")&&(e.currentTarget.style.borderColor="#000000")},onMouseEnter:function(e){return(e.currentTarget.style.color="#6005FF")&&(e.currentTarget.style.borderColor="#6005FF")}},(0,fm.__)("Go To Dashboard","header-footer-elementor")))),"done"!==hfeSettingsData.uaelite_subscription&&c().createElement("div",{className:"flex items-start justify-start mt-4",style:{backgroundImage:"url(".concat(hfeSettingsData.special_reward,")"),backgroundSize:"cover",backgroundPosition:"center",borderRadius:"5px"}},c().createElement("div",{className:"flex flex-col p-6 items-start"},c().createElement("h3",{className:"font-bold text-text-primary mt-0 mb-1",style:{lineHeight:"1.3em"}},(0,fm.__)("We have a special reward just for you!","header-footer-elementor")),c().createElement("span",{className:"font-medium text-text-secondary mt-2 mb-6"},(0,fm.__)("This special offer is available only on this page and for limited time","header-footer-elementor")),c().createElement(ct,{className:"hfe-remove-ring hfe-span hfe-popup-button",icon:c().createElement(Hh,{"aria-label":"icon",role:"img"}),iconPosition:"right",size:"md",tag:"button",type:"button",variant:"link",style:{alignItems:"center",justifyContent:"flex-start",color:"#6005FF"},onClick:function(){return r(!0)}},(0,fm.__)("Unlock My Surprise","header-footer-elementor")))),c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"34px",marginBottom:"34px",borderColor:"#E5E7EB"}}),c().createElement("div",{className:"bg-badge-background-gray border-[0.5px] border-subtle p-6",style:{borderRadius:"5px"}},c().createElement("div",{className:"flex flex-row items-center justify-start px-1 gap-3"},c().createElement(Cm,{onChange:C,size:"sm",value:y,className:"hfe-remove-ring"}),c().createElement("span",{className:"font-bold text-text-primary m-0"},(0,fm.__)("Help make UAE Better","header-footer-elementor"))),c().createElement(kh,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:1e3,style:{background:"white"},success:{duration:2e3,style:{color:""},iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}),c().createElement("span",{className:"flex flex-row items-center justify-start mt-4 gap-3",style:{lineHeight:"1.5em",fontSize:"0.95em"}},(0,fm.__)("Help us improve by sharing anonymous data about your website setup. This includes non-sensitive info about plugins, themes, and settings, so we can create a better product for you. Your privacy is always our top priority. Learn more in our privacy policy.","header-footer-elementor"))),c().createElement(sf,{design:"simple",open:n,setOpen:r},c().createElement(sf.Backdrop,null),c().createElement(sf.Panel,null,c().createElement(sf.Header,{style:{padding:"30px",marginBottom:"0.5rem"}},c().createElement("div",{className:"flex items-center justify-between"},c().createElement("div",{className:"flex items-center justify-center"},c().createElement(sf.Title,{style:{fontSize:"1.6rem",width:"80%",lineHeight:"1.3em"}},(0,fm.__)("We have a special Reward just for you! 🎁","header-footer-elementor")),c().createElement(ct,{icon:c().createElement(Fh,{className:"size-10"}),iconPosition:"right",size:"md",variant:"ghost",className:"hfe-remove-ring self-start",onClick:function(){return r(!1)},style:{marginLeft:"60px",marginBottom:"20px"}}))),c().createElement(sf.Description,{style:{width:"90%",color:"#64748B",marginTop:"10px"}},(0,fm.__)("Enter your details to get special offer that we have for you and stay updated on UAE’s latest news and updates.","header-footer-elementor")),c().createElement("div",{className:"flex w-full",style:{marginTop:"15px"}},c().createElement("div",{className:"block",style:{width:"50%",paddingRight:"13px"}},c().createElement("input",{type:"text",placeholder:(0,fm.__)("First Name","header-footer-elementor"),value:d,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(S(""),m(e.target.value))}}),_&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},_)),c().createElement("div",{className:"block",style:{width:"50%"}},c().createElement("input",{type:"text",placeholder:(0,fm.__)("Last Name","header-footer-elementor"),value:h,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"5px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&p(e.target.value)}}))),c().createElement("input",{type:"email",placeholder:(0,fm.__)("Your Email Address","header-footer-elementor"),value:s,className:"h-12 border border-subtle px-2 w-full",style:{borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"20px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},onChange:function(e){e&&e.target&&(x(""),l(e.target.value))}}),b&&c().createElement("span",{className:"absolute color-text-danger text-xs text-sm font-normal",style:{color:"#FF0000",marginTop:"0px"}},b),c().createElement(ct,{icon:P?c().createElement(Ef,{className:"animate-spin"}):null,iconPosition:"right",variant:"primary",className:"bg-[#6005FF] hfe-remove-ring w-full mt-2",disabled:P,style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",marginTop:"20px"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:function(){var e=!1;d.trim()?S(""):(S((0,fm.__)("This field is required","header-footer-elementor")),e=!0),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?x(""):(x((0,fm.__)("Entered email address is invalid!","header-footer-elementor")),e=!0),e||(x(""),S(""),N(!0),function(e,t,n){var r=(new Date).toISOString().split("T")[0],o=new URLSearchParams({email:e,date:r,fname:t,lname:n});fetch("/wp-json/hfe/v1/email-webhook/?".concat(o.toString()),{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":hfeSettingsData.hfe_nonce_action}}).then((function(e){if(!e.ok)throw new Error("HTTP error! Status: ".concat(e.status));return e.json()})).then((function(e){"success"===e.message?(N(!1),window.location.href=hfeSettingsData.onboarding_success_url):(N(!1),console.warn("Unexpected webhook response:",e))})).catch((function(e){console.error("Error calling webhook:",e)}))}(s,d,h))}},(0,fm.__)("Submit","header-footer-elementor"))))))}},{label:"Success",component:ep}],np=tp.slice(0,3);const rp=function(){var e,t=i(c().useState((function(){var e=localStorage.getItem("currentStep");return e?parseInt(e,10):1})),2),n=t[0],r=t[1];(0,a.useEffect)((function(){localStorage.setItem("currentStep",n)}),[n]),(0,a.useEffect)((function(){var e=setTimeout((function(){localStorage.removeItem("currentStep")}),18e4);return function(){return clearTimeout(e)}}),[]);var o=null===(e=tp[n-1])||void 0===e?void 0:e.component;return c().createElement("div",null,c().createElement("div",{className:"w-full pb-10"},c().createElement("div",{className:"flex flex-col items-center justify-center"},c().createElement(ot,{className:"bg-none",style:{background:"none"}},c().createElement(ot.Left,null,c().createElement(ot.Item,null,hfeSettingsData.icon_svg&&c().createElement(D,{to:hm.dashboard.path},c().createElement("img",{src:"".concat(hfeSettingsData.icon_svg),alt:"Logo",className:"cursor-pointer",style:{height:"35px"}})))),c().createElement(ot.Middle,null,c().createElement(ot.Item,null,c().createElement(zh,{currentStep:Math.min(n,np.length),className:"uae-steps",variant:"number"},np.map((function(e,t){return c().createElement(zh.Step,{key:t,className:"font-bold",labelText:e.label,size:"md"})}))))),c().createElement(ot.Right,null,c().createElement(ot.Item,null,c().createElement(D,{className:"hfe-remove-ring",to:hm.dashboard.path,style:{marginLeft:"125px"}},c().createElement(ct,{icon:c().createElement(Fh,{className:"size-4"}),iconPosition:"right",size:"xs",variant:"ghost",className:"hfe-remove-ring"}))))))),c().createElement("div",{className:"flex items-center justify-center"},o&&c().createElement(o,{currentStep:n,setCurrentStep:r})))},op=function(){return c().createElement(c().Fragment,null,c().createElement(rp,null))},sp=function(){var e;return React.createElement(L,{routes:hm,defaultRoute:null==hm||null===(e=hm.dashboard)||void 0===e?void 0:e.path},React.createElement(T,{path:hm.dashboard.path},React.createElement(wf,null)),React.createElement(T,{path:hm.onboarding.path},React.createElement(op,null)),React.createElement(T,{path:hm.widgets.path},React.createElement(Pf,null)),React.createElement(T,{path:hm.templates.path},React.createElement(Cf,null)),React.createElement(T,{path:hm.settings.path},React.createElement(Ah,null)),React.createElement(T,{path:hm.upgrade.path},React.createElement(Lh,null)),React.createElement(T,{path:hm.onboardingsuccess.path},React.createElement(ep,null)))},ip=Id("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ap=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],s={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,O.jsx)("span",{className:Fe("flex",s,o,r),children:n||(0,O.jsx)(ip,{className:"animate-spin shrink-0"})})},lp=function(){var e=i((0,a.useState)(!1),2),t=e[0],n=e[1],r=i((0,a.useState)(!0),2);return r[0],r[1],window.onhashchange=function(){window.scrollTo(0,0)},(0,a.useEffect)((function(){setTimeout((function(){n(!0)}),1e3)}),[]),t?React.createElement("div",{className:"app-container font-figtree"},React.createElement(sp,null)):React.createElement("div",{className:"loading-spinner flex items-center justify-center h-screen",style:{background:"#F9FAFB"}},React.createElement(ap,{icon:null,size:"lg",variant:"primary"}))};n()((function(){var t=document.getElementById("hfe-settings-app");if(t&&(0,e.H)(t).render(React.createElement(lp,null)),"yes"===hfe_admin_data.show_view_all||window.location.href===hfeSettingsData.header_footer_builder||"yes"===hfeSettingsData.is_hfe_post){var n=document.getElementById("hfe-admin-top-bar-root");if(n){var r=document.createElement("div");r.id="hfe-settings-app",n.appendChild(r),(0,e.H)(r).render(React.createElement(Sm,null))}}}))})()})();
//# sourceMappingURL=main.js.map
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists