HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/dfwmagic.com/wp-content/plugins/ultimate-elementor/build/main.js
/*! For license information please see main.js.LICENSE.txt */
!function(){var e,t,n={181:function(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,m=Math.max,p=Math.min,h=function(){return u.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||i.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function x(){var e=h();if(b(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?p(n,a-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?v(e):(r=o=void 0,i)}function _(){var e=h(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?v(e):i}(l);if(d)return s=setTimeout(x,t),v(l)}return void 0===s&&(s=setTimeout(x,t)),i}return t=g(t)||0,f(n)&&(u=!!n.leading,a=(d="maxWait"in n)?m(g(n.maxWait)||0,t):a,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},_.flush=function(){return void 0===s?i:w(h())},_}},67:function(e,t){"use strict";t.YW=function(e,t={}){const{decode:o=decodeURIComponent,delimiter:a=n}=t,{regexp:i,keys:l}=function(e,t={}){const{delimiter:r=n,end:o=!0,sensitive:a=!1,trailing:i=!0}=t,l=[],c=a?"":"i",h=[];for(const n of d(e,[])){const e="object"==typeof n?n:u(n,t);for(const t of m(e.tokens,0,[]))h.push(p(t,r,l,e.originalPath))}let f=`^(?:${h.join("|")})`;return i&&(f+=`(?:${s(r)}$)?`),f+=o?"$":`(?=${s(r)}|$)`,{regexp:new RegExp(f,c),keys:l}}(e,t),c=l.map(e=>!1===o?r:"param"===e.type?o:e=>e.split(a).map(o));return function(e){const t=i.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=l[e-1],o=c[e-1];r[n.name]=o(t[e])}return{path:n,params:r}}};const n="/",r=e=>e,o=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class l{constructor(e,t){this.tokens=e,this.originalPath=t}}class c extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=t}}function u(e,t={}){const{encodePath:n=r}=t,s=[...e],u=[];let d=0,m=0;function p(){let t="";if(o.test(s[d]))do{t+=s[d++]}while(a.test(s[d]));else if('"'===s[d]){let n=d;for(;d++<s.length;){if('"'===s[d]){d++,n=0;break}"\\"===s[d]&&d++,t+=s[d]}if(n)throw new c(`Unterminated quote at index ${n}`,e)}if(!t)throw new c(`Missing parameter name at index ${d}`,e);return t}for(;d<s.length;){const e=s[d],t=i[e];t?u.push({type:t,index:d++,value:e}):"\\"===e?u.push({type:"escape",index:d++,value:s[d++]}):":"===e?u.push({type:"param",index:d++,value:p()}):"*"===e?u.push({type:"wildcard",index:d++,value:p()}):u.push({type:"char",index:d++,value:e})}return u.push({type:"end",index:d,value:""}),new l(function t(r){const o=[];for(;;){const a=u[m++];if(a.type===r)break;if("char"===a.type||"escape"===a.type){let e=a.value,t=u[m];for(;"char"===t.type||"escape"===t.type;)e+=t.value,t=u[++m];o.push({type:"text",value:n(e)});continue}if("param"!==a.type&&"wildcard"!==a.type){if("{"!==a.type)throw new c(`Unexpected ${a.type} at index ${a.index}, expected ${r}`,e);o.push({type:"group",tokens:t("}")})}else o.push({type:a.type,name:a.value})}return o}("end"),e)}function d(e,t){if(Array.isArray(e))for(const n of e)d(n,t);else t.push(e);return t}function*m(e,t,n){if(t===e.length)return yield n;const r=e[t];if("group"===r.type)for(const o of m(r.tokens,0,n.slice()))yield*m(e,t+1,o);else n.push(r);yield*m(e,t+1,n)}function p(e,t,n,r){let o="",a="",i=!0;for(const l of e)if("text"!==l.type)if("param"!==l.type&&"wildcard"!==l.type);else{if(!i&&!a)throw new c(`Missing text before "${l.name}" ${l.type}`,r);"param"===l.type?o+=`(${h(t,i?"":a)}+)`:o+="([\\s\\S]+)",n.push(l),a="",i=!1}else o+=s(l.value),a+=l.value,i||(i=l.value.includes(t));return o}function h(e,t){return t.length<2?e.length<2?`[^${s(e+t)}]`:`(?:(?!${s(e)})[^${s(t)}])`:e.length<2?`(?:(?!${s(t)})[^${s(e)}])`:`(?:(?!${s(t)}|${s(e)})[\\s\\S])`}},992:function(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,a,i=[];for(a in"string"!=typeof t&&(t="?"),e)if(n.call(e,a)){if((r=e[a])||null!=r&&!isNaN(r)||(r=""),a=o(a),r=o(r),null===a||null===r)continue;i.push(a+"="+r)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var a=r(t[1]),i=r(t[2]);null===a||null===i||a in o||(o[a]=i)}return o}},338:function(e,t,n){"use strict";var r=n(795);t.H=r.createRoot,r.hydrateRoot},20:function(e,t,n){"use strict";var r=n(609),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=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,a={},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)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},848:function(e,t,n){"use strict";e.exports=n(20)},609:function(e){"use strict";e.exports=window.React},795:function(e){"use strict";e.exports=window.ReactDOM},942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(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)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,o),a.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(function(e){i[e]=function(){return n[e]}});return i.default=function(){return n},o.d(a,i),a},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=o(338),t=window.wp.domReady,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 a(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,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.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 s}}(e,t)||a(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 s=o(609),l=o.t(s,2),c=o.n(s),u=o(848);const d=e=>{const t=f(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),m(n,t)||h(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},m=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?m(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},p=/^\[(.+)\]$/,h=e=>{if(p.test(e)){const t=p.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},f=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return b(Object.entries(e.classGroups),n).forEach(([e,n])=>{g(n,r,e,t)}),r},g=(e,t,n,r)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?v(e)?void g(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,o])=>{g(o,y(t,e),n,r)});(""===e?t:y(t,e)).classGroupId=n})},y=(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},v=e=>e.isThemeGetter,b=(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,a)=>{n.set(o,a),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)}}},w=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}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},_=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},E=/\s+/;function k(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=S(e))&&(r&&(r+=" "),r+=t);return r}const S=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=S(e[r]))&&(n&&(n+=" "),n+=t);return n};function N(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:x(e.cacheSize),parseClassName:w(e),...d(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(E);let s="";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),p=r(m?u.substring(0,d):u);if(!p){if(!m){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}m=!1}const h=_(l).join(":"),f=c?h+"!":h,g=f+p;if(a.includes(g))continue;a.push(g);const y=o(p,m);for(let e=0;e<y.length;++e){const t=y[e];a.push(f+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(k.apply(null,arguments))}}const C=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},P=/^\[(?:([a-z-]+):)?(.+)\]$/i,T=/^\d+\/\d+$/,j=new Set(["px","full","screen"]),A=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D=/\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$/,R=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,F=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>L(e)||j.has(e)||T.test(e),I=e=>J(e,"length",Z),L=e=>Boolean(e)&&!Number.isNaN(Number(e)),V=e=>J(e,"number",L),z=e=>Boolean(e)&&Number.isInteger(Number(e)),B=e=>e.endsWith("%")&&L(e.slice(0,-1)),$=e=>P.test(e),U=e=>A.test(e),W=new Set(["length","size","percentage"]),H=e=>J(e,W,Q),q=e=>J(e,"position",Q),G=new Set(["image","url"]),X=e=>J(e,G,te),K=e=>J(e,"",ee),Y=()=>!0,J=(e,t,n)=>{const r=P.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Z=e=>D.test(e)&&!R.test(e),Q=()=>!1,ee=e=>F.test(e),te=e=>O.test(e),ne=(Symbol.toStringTag,()=>{const e=C("colors"),t=C("spacing"),n=C("blur"),r=C("brightness"),o=C("borderColor"),a=C("borderRadius"),i=C("borderSpacing"),s=C("borderWidth"),l=C("contrast"),c=C("grayscale"),u=C("hueRotate"),d=C("invert"),m=C("gap"),p=C("gradientColorStops"),h=C("gradientColorStopPositions"),f=C("inset"),g=C("margin"),y=C("opacity"),v=C("padding"),b=C("saturate"),x=C("scale"),w=C("sepia"),_=C("skew"),E=C("space"),k=C("translate"),S=()=>["auto",$,t],N=()=>[$,t],P=()=>["",M,I],T=()=>["auto",L,$],j=()=>["","0",$],A=()=>[L,$];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[M,I],blur:["none","",U,$],brightness:A(),borderColor:[e],borderRadius:["none","","full",U,$],borderSpacing:N(),borderWidth:P(),contrast:A(),grayscale:j(),hueRotate:A(),invert:j(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[B,I],inset:S(),margin:S(),opacity:A(),padding:N(),saturate:A(),scale:A(),sepia:j(),skew:A(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[U]}],"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",$]}],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:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",z,$]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",z,$]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",z,$]},$]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[z,$]},$]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],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":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",V]}],"font-family":[{font:[Y]}],"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",$]}],"line-clamp":[{"line-clamp":["none",L,V]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"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",M,I]}],"underline-offset":[{"underline-offset":["auto",M,$]}],"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:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],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",$]}],"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",q]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",H]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},X]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[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":[M,$]}],"outline-w":[{outline:[M,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[M,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,K]}],"shadow-color":[{shadow:[Y]}],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",U,$]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"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":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"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",$]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[z,$]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],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",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,I,V]}],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"]}}}),re=N(ne);function oe(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=oe(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=oe(e))&&(r&&(r+=" "),r+=t);return r}const ie=(...e)=>re(ae(...e)),se=(...e)=>(...t)=>e.forEach(e=>e?.(...t)),le=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},ce=({children:e,gap:t="lg",className:n,...r})=>(0,u.jsx)("div",{className:ie("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",le(t),n),...r,children:e});ce.displayName="Topbar";const ue=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:ie("flex items-center",le(e),n),children:t});ue.displayName="Topbar.Left";const de=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,u.jsx)("div",{className:ie("flex items-center grow",le(e),o,r),children:t})};de.displayName="Topbar.Middle";const me=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:ie("flex items-center",le(e),n),children:t});me.displayName="Topbar.Right";const pe=({children:e,className:t})=>(0,u.jsx)("div",{className:ie("flex items-center [&>svg]:block h-full",t),children:e});function he(){return"undefined"!=typeof window}function fe(e){return ve(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ye(e){var t;return null==(t=(ve(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ve(e){return!!he()&&(e instanceof Node||e instanceof ge(e).Node)}function be(e){return!!he()&&(e instanceof Element||e instanceof ge(e).Element)}function xe(e){return!!he()&&(e instanceof HTMLElement||e instanceof ge(e).HTMLElement)}function we(e){return!(!he()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot)}pe.displayName="Topbar.Item",ce.Left=ue,ce.Middle=de,ce.Right=me,ce.Item=pe;const _e=new Set(["inline","contents"]);function Ee(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_e.has(o)}const ke=new Set(["table","td","th"]);function Se(e){return ke.has(fe(e))}const Ne=[":popover-open",":modal"];function Ce(e){return Ne.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Pe=["transform","translate","scale","rotate","perspective"],Te=["transform","translate","scale","rotate","perspective","filter"],je=["paint","layout","strict","content"];function Ae(e){const t=De(),n=be(e)?Oe(e):e;return Pe.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Te.some(e=>(n.willChange||"").includes(e))||je.some(e=>(n.contain||"").includes(e))}function De(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Re=new Set(["html","body","#document"]);function Fe(e){return Re.has(fe(e))}function Oe(e){return ge(e).getComputedStyle(e)}function Me(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if("html"===fe(e))return e;const t=e.assignedSlot||e.parentNode||we(e)&&e.host||ye(e);return we(t)?t.host:t}function Le(e){const t=Ie(e);return Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&Ee(t)?t:Le(t)}function Ve(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Le(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=ge(o);if(a){const e=ze(i);return t.concat(i,i.visualViewport||[],Ee(o)?o:[],e&&n?Ve(e):[])}return t.concat(o,Ve(o,[],n))}function ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Be(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 $e(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&we(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ue(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function We(){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 He(){return/apple/i.test(navigator.vendor)}function qe(){const e=/android/i;return e.test(Ue())||e.test(We())}function Ge(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Xe(e){return(null==e?void 0:e.ownerDocument)||document}function Ke(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 Ye(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Je(e){return xe(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}var Ze=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),Qe="undefined"==typeof Element,et=Qe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tt=!Qe&&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},nt=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):nt(e.parentNode))},rt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var a=o.shift();if(!nt(a,!1))if("SLOT"===a.tagName){var i=a.assignedElements(),s=i.length?i:a.children,l=rt(s,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:a,candidates:l})}else{et.call(a,Ze)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),u=!nt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&u){var d=rt(!0===c?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return r},ot=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},at=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))&&!ot(e)?0:e.tabIndex},it=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},st=function(e){return"INPUT"===e.tagName},lt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ct=function(e,t){return!(t.disabled||function(e){return st(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=et.call(e,"details>summary:first-of-type")?e.parentElement:e;if(et.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return lt(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,s=tt(e);if(i&&!i.shadowRoot&&!0===r(i))return lt(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&tt(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(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));!s&&i;){var l,c,u;s=!(null===(c=i=null===(l=a=tt(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return s}(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!!et.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ut=function(e,t){return!(function(e){return function(e){return st(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||tt(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)||at(t)<0||!ct(e,t))},dt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mt=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,a=o?e.scopeParent:e,i=function(e,t){var n=at(e);return n<0&&t&&!ot(e)?0:n}(a,o),s=o?mt(e.candidates):a;0===i?o?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:i,item:e,isScope:o,content:s})}),n.sort(it).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},pt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rt([e],t.includeContainer,{filter:ut.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:dt}):function(e,t,n){if(nt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ze));return t&&et.call(e,Ze)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,ut.bind(null,t)),mt(n)},ht=o(795);const ft=Math.min,gt=Math.max,yt=Math.round,vt=Math.floor,bt=e=>({x:e,y:e}),xt={left:"right",right:"left",bottom:"top",top:"bottom"},wt={start:"end",end:"start"};function _t(e,t,n){return gt(e,ft(t,n))}function Et(e,t){return"function"==typeof e?e(t):e}function kt(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Nt(e){return"x"===e?"y":"x"}function Ct(e){return"y"===e?"height":"width"}const Pt=new Set(["top","bottom"]);function Tt(e){return Pt.has(kt(e))?"y":"x"}function jt(e){return Nt(Tt(e))}function At(e){return e.replace(/start|end/g,e=>wt[e])}const Dt=["left","right"],Rt=["right","left"],Ft=["top","bottom"],Ot=["bottom","top"];function Mt(e){return e.replace(/left|right|bottom|top/g,e=>xt[e])}function It(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 Lt(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 Vt(e,t,n){let{reference:r,floating:o}=e;const a=Tt(t),i=jt(t),s=Ct(i),l=kt(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(St(t)){case"start":p[i]-=m*(n&&c?-1:1);break;case"end":p[i]+=m*(n&&c?-1:1)}return p}async function zt(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Et(t,e),h=It(p),f=s[m?"floating"===d?"reference":"floating":d],g=Lt(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(f)))||n?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.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==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},x=Lt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}const Bt=new Set(["left","top"]);function $t(e){const t=Oe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=yt(n)!==a||yt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ut(e){return be(e)?e:e.contextElement}function Wt(e){const t=Ut(e);if(!xe(t))return bt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=$t(t);let i=(a?yt(n.width):n.width)/r,s=(a?yt(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Ht=bt(0);function qt(e){const t=ge(e);return De()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ht}function Gt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Ut(e);let i=bt(1);t&&(r?be(r)&&(i=Wt(r)):i=Wt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ge(e))&&t}(a,n,r)?qt(a):bt(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=ge(a),t=r&&be(r)?ge(r):r;let n=e,o=ze(n);for(;o&&r&&t!==n;){const e=Wt(o),t=o.getBoundingClientRect(),r=Oe(o),a=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+=a,c+=i,n=ge(o),o=ze(n)}}return Lt({width:u,height:d,x:l,y:c})}function Xt(e,t){const n=Me(e).scrollLeft;return t?t.left+n:Gt(ye(e)).left+n}function Kt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Xt(e,n),y:n.top+t.scrollTop}}const Yt=new Set(["absolute","fixed"]);function Jt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ge(e),r=ye(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=De();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Xt(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ye(e),n=Me(e),r=e.ownerDocument.body,o=gt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=gt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Xt(e);const s=-n.scrollTop;return"rtl"===Oe(r).direction&&(i+=gt(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(ye(e));else if(be(t))r=function(e,t){const n=Gt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xe(e)?Wt(e):bt(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=qt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Lt(r)}function Zt(e,t){const n=Ie(e);return!(n===t||!be(n)||Fe(n))&&("fixed"===Oe(n).position||Zt(n,t))}function Qt(e,t,n){const r=xe(t),o=ye(t),a="fixed"===n,i=Gt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bt(0);function c(){l.x=Xt(o)}if(r||!r&&!a)if(("body"!==fe(t)||Ee(o))&&(s=Me(t)),r){const e=Gt(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?bt(0):Kt(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function en(e){return"static"===Oe(e).position}function tn(e,t){if(!xe(e)||"fixed"===Oe(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function nn(e,t){const n=ge(e);if(Ce(e))return n;if(!xe(e)){let t=Ie(e);for(;t&&!Fe(t);){if(be(t)&&!en(t))return t;t=Ie(t)}return n}let r=tn(e,t);for(;r&&Se(r)&&en(r);)r=tn(r,t);return r&&Fe(r)&&en(r)&&!Ae(r)?n:r||function(e){let t=Ie(e);for(;xe(t)&&!Fe(t);){if(Ae(t))return t;if(Ce(t))return null;t=Ie(t)}return null}(e)||n}const rn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=ye(r),s=!!t&&Ce(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=bt(1);const u=bt(0),d=xe(r);if((d||!d&&!a)&&(("body"!==fe(r)||Ee(i))&&(l=Me(r)),xe(r))){const e=Gt(r);c=Wt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const m=!i||d||a?bt(0):Kt(i,l);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:ye,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Ce(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ve(e,[],!1).filter(e=>be(e)&&"body"!==fe(e)),o=null;const a="fixed"===Oe(e).position;let i=a?Ie(e):e;for(;be(i)&&!Fe(i);){const t=Oe(i),n=Ae(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&Yt.has(o.position)||Ee(i)&&!n&&Zt(e,i))?r=r.filter(e=>e!==i):o=t,i=Ie(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((e,n)=>{const r=Jt(t,n,o);return e.top=gt(r.top,e.top),e.right=ft(r.right,e.right),e.bottom=ft(r.bottom,e.bottom),e.left=gt(r.left,e.left),e},Jt(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nn,getElementRects:async function(e){const t=this.getOffsetParent||nn,n=this.getDimensions,r=await n(e.floating);return{reference:Qt(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}=$t(e);return{width:t,height:n}},getScale:Wt,isElement:be,isRTL:function(e){return"rtl"===Oe(e).direction}};function on(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function an(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ut(e),u=o||a?[...c?Ve(c):[],...Ve(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=ye(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:m,height:p}=c;if(s||t(),!m||!p)return;const h={rootMargin:-vt(d)+"px "+-vt(o.clientWidth-(u+m))+"px "+-vt(o.clientHeight-(d+p))+"px "+-vt(u)+"px",threshold:gt(0,ft(1,l))||1};let f=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!f)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||on(c,e.getBoundingClientRect())||i(),f=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(c,n):null;let m,p=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let f=l?Gt(e):null;return l&&function t(){const r=Gt(e);f&&!on(f,r)&&n(),f=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const sn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=kt(n),s=St(n),l="y"===Tt(n),c=Bt.has(i)?-1:1,u=a&&l?-1:1,d=Et(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:m*c}:{x:m*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},ln=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Et(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),m=Tt(kt(o)),p=Nt(m);let h=u[p],f=u[m];if(i){const e="y"===p?"bottom":"right";h=_t(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===m?"bottom":"right";f=_t(f+d["y"===m?"top":"left"],f,f-d[e])}const g=l.fn({...t,[p]:h,[m]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[m]:s}}}}}},cn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:f=!0,...g}=Et(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=kt(o),v=Tt(s),b=kt(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=m||(b||!f?[Mt(s)]:function(e){const t=Mt(e);return[At(e),t,At(t)]}(s)),_="none"!==h;!m&&_&&w.push(...function(e,t,n,r){const o=St(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Rt:Dt:t?Dt:Rt;case"left":case"right":return t?Ft:Ot;default:return[]}}(kt(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(At)))),a}(s,f,h,x));const E=[s,...w],k=await l.detectOverflow(t,g),S=[];let N=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&S.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=St(e),o=jt(e),a=Ct(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Mt(i)),[i,Mt(i)]}(o,i,x);S.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:S}],!S.every(e=>e<=0)){var C,P;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=E[e];if(t&&("alignment"!==d||v===Tt(t)||N.every(e=>Tt(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(P=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=N.filter(e=>{if(_){const t=Tt(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:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},un=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Et(e,t)||{};if(null==c)return{};const d=It(u),m={x:n,y:r},p=jt(o),h=Ct(p),f=await i.getDimensions(c),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=a.reference[h]+a.reference[p]-m[p]-a.floating[h],w=m[p]-a.reference[p],_=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let E=_?_[b]:0;E&&await(null==i.isElement?void 0:i.isElement(_))||(E=s.floating[b]||a.floating[h]);const k=x/2-w/2,S=E/2-f[h]/2-1,N=ft(d[y],S),C=ft(d[v],S),P=N,T=E-f[h]-C,j=E/2-f[h]/2+k,A=_t(P,j,T),D=!l.arrow&&null!=St(o)&&j!==A&&a.reference[h]/2-(j<P?N:C)-f[h]/2<0,R=D?j<P?j-P:j-T:0;return{[p]:m[p]+R,data:{[p]:A,centerOffset:j-A-R,...D&&{alignmentOffset:R}},reset:D}}}),dn=(e,t,n)=>{const r=new Map,o={platform:rn,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.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}=Vt(c,r,l),m=r,p={},h=0;for(let n=0;n<s.length;n++){var f;const{name:a,fn:g}=s[n],{x:y,y:v,data:b,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:{...i,detectOverflow:null!=(f=i.detectOverflow)?f:zt},elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=v?v:d,p={...p,[a]:{...p[a],...b}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Vt(c,m,l))),n=-1)}return{x:u,y:d,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var mn="undefined"!=typeof document?s.useLayoutEffect:function(){};function pn(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(!pn(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||pn(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function hn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fn(e,t){const n=hn(e);return Math.round(t*n)/n}function gn(e){const t=s.useRef(e);return mn(()=>{t.current=e}),t}const yn=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?un({element:n.current,padding:r}).fn(t):{}:n?un({element:n,padding:r}).fn(t):{};var o}}),vn=(e,t)=>({...sn(e),options:[e,t]}),bn=(e,t)=>({...ln(e),options:[e,t]}),xn=(e,t)=>({...cn(e),options:[e,t]}),wn={...l},_n=wn.useInsertionEffect||(e=>e());function En(e){const t=s.useRef(()=>{});return _n(()=>{t.current=e}),s.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 kn="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function Sn(){return Sn=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},Sn.apply(this,arguments)}let Nn=!1,Cn=0;const Pn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Cn++,Tn=wn.useId||function(){const[e,t]=s.useState(()=>Nn?Pn():void 0);return kn(()=>{null==e&&t(Pn())},[]),s.useEffect(()=>{Nn=!0},[]),e},jn=s.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:a}},width:i=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:m,d:p,style:{transform:h,...f}={},...g}=e,y=Tn(),[v,b]=s.useState(!1);if(kn(()=>{r&&"rtl"===Oe(r).direction&&b(!0)},[r]),!r)return null;const[x,w]=n.split("-"),_="top"===x||"bottom"===x;let E=d;(_&&null!=a&&a.x||!_&&null!=a&&a.y)&&(E=null);const k=2*u,S=k/2,N=i/2*(c/-8+1),C=l/2*c/4,P=!!p,T=E&&"end"===w?"bottom":"top";let j=E&&"end"===w?"right":"left";E&&v&&(j="end"===w?"left":"right");const A=null!=(null==o?void 0:o.x)?E||o.x:"",D=null!=(null==o?void 0:o.y)?E||o.y:"",R=p||"M0,0 H"+i+" L"+(i-N)+","+(l-C)+" Q"+i/2+","+l+" "+N+","+(l-C)+" Z",F={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[x];return s.createElement("svg",Sn({},g,{"aria-hidden":!0,ref:t,width:P?i:i+k,height:i,viewBox:"0 0 "+i+" "+(l>i?l:i),style:{position:"absolute",pointerEvents:"none",[j]:A,[T]:D,[x]:_||P?"100%":"calc(100% - "+k/2+"px)",transform:[F,h].filter(e=>!!e).join(" "),...f}}),k>0&&s.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:m,strokeWidth:k+(p?0:1),d:R}),s.createElement("path",{stroke:k&&!p?g.fill:"none",d:R}),s.createElement("clipPath",{id:y},s.createElement("rect",{x:-S,y:S*(P?-1:1),width:i+k,height:i})))});const An=s.createContext(null),Dn=s.createContext(null),Rn=()=>{var e;return(null==(e=s.useContext(An))?void 0:e.id)||null},Fn=()=>s.useContext(Dn);function On(e){return"data-floating-ui-"+e}function Mn(e){const t=(0,s.useRef)(e);return kn(()=>{t.current=e}),t}const In=On("safe-polygon");function Ln(e,t,n){return n&&!Ge(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Vn(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 zn=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Bn(e,t){const n=pt(e,zn());"prev"===t&&n.reverse();const r=n.indexOf(Be(Xe(e)));return n.slice(r+1)[0]}function $n(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$e(n,r)}function Un(e){pt(e,zn()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Wn(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 Hn={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 qn(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Gn=s.forwardRef(function(e,t){const[n,r]=s.useState();kn(()=>(He()&&r("button"),document.addEventListener("keydown",qn),()=>{document.removeEventListener("keydown",qn)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[On("focus-guard")]:"",style:Hn};return s.createElement("span",Sn({},e,o))}),Xn=s.createContext(null),Kn=On("portal");function Yn(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Tn(),o=Jn(),[a,i]=s.useState(null),l=s.useRef(null);return kn(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{l.current=null})},[a]),kn(()=>{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(Kn,""),e.appendChild(n),l.current=n,i(n)},[t,r]),kn(()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!be(e)&&(e=e.current),e=e||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,e.appendChild(a));const s=document.createElement("div");s.id=r,s.setAttribute(Kn,""),e=a||e,e.appendChild(s),l.current=s,i(s)},[t,n,r,o]),a}({id:n,root:r}),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),m=s.useRef(null),p=null==i?void 0:i.modal,h=null==i?void 0:i.open,f=!!i&&!i.modal&&i.open&&o&&!(!r&&!a);return s.useEffect(()=>{if(a&&o&&!p)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){a&&$n(e)&&("focusin"===e.type?Wn:Un)(a)}},[a,o,p]),s.useEffect(()=>{a&&(h||Wn(a))},[h,a]),s.createElement(Xn.Provider,{value:s.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:m,portalNode:a,setFocusManagerState:l}),[o,a])},f&&a&&s.createElement(Gn,{"data-type":"outside",ref:c,onFocus:e=>{if($n(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Bn(document.body,"prev")||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),f&&a&&s.createElement("span",{"aria-owns":a.id,style:Hn}),a&&ht.createPortal(t,a),f&&a&&s.createElement(Gn,{"data-type":"outside",ref:u,onFocus:e=>{if($n(e,a)){var t;null==(t=m.current)||t.focus()}else{const t=Bn(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 Jn=()=>s.useContext(Xn),Zn="data-floating-ui-focusable";function Qn(e){return xe(e.target)&&"BUTTON"===e.target.tagName}function er(e){return Je(e)}function tr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=t,p=s.useRef(),h=s.useRef(!1),f=s.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(Ge(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=p.current;"mousedown"===l&&p.current?p.current=void 0:Ge(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){p.current=void 0,e.defaultPrevented||!d||Qn(e)||(" "!==e.key||er(a)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Qn(e)||er(a)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[o,a,l,u,d,r,n,m,c]);return s.useMemo(()=>i?{reference:f}:{},[i,f])}const nr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},rr={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},or=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 ar(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:i=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:f}=t,g=Fn(),y=En("function"==typeof c?c:()=>!1),v="function"==typeof c?y:c,b=s.useRef(!1),x=s.useRef(!1),{escapeKey:w,outsidePress:_}=or(h),{escapeKey:E,outsidePress:k}=or(f),S=s.useRef(!1),N=En(e=>{var t;if(!n||!i||!l||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=a.current.floatingContext)?void 0:t.nodeId,s=g?Vn(g.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.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")}),C=En(e=>{var t;const n=()=>{var t;N(e),null==(t=Ye(e))||t.removeEventListener("keydown",n)};null==(t=Ye(e))||t.addEventListener("keydown",n)}),P=En(e=>{var t;const n=b.current;b.current=!1;const i=x.current;if(x.current=!1,"click"===u&&i)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Ye(e),l="["+On("inert")+"]",c=Xe(o.floating).querySelectorAll(l);let d=be(s)?s:null;for(;d&&!Fe(d);){const e=Ie(d);if(Fe(e)||!be(e))break;d=e}if(c.length&&be(s)&&!s.matches("html,body")&&!$e(s,o.floating)&&Array.from(c).every(e=>!$e(d,e)))return;if(xe(s)&&A){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===Oe(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const m=null==(t=a.current.floatingContext)?void 0:t.nodeId,p=g&&Vn(g.nodesRef.current,m).some(t=>{var n;return Ke(e,null==(n=t.context)?void 0:n.elements.floating)});if(Ke(e,o.floating)||Ke(e,o.domReference)||p)return;const h=g?Vn(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=En(e=>{var t;const n=()=>{var t;P(e),null==(t=Ye(e))||t.removeEventListener(u,n)};null==(t=Ye(e))||t.addEventListener(u,n)});s.useEffect(()=>{if(!n||!i)return;a.current.__escapeKeyBubbles=w,a.current.__outsidePressBubbles=_;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),S.current=!0}function c(){e=window.setTimeout(()=>{S.current=!1},De()?5:0)}const d=Xe(o.floating);l&&(d.addEventListener("keydown",E?C:N,E),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,k?T:P,k);let m=[];return p&&(be(o.domReference)&&(m=Ve(o.domReference)),be(o.floating)&&(m=m.concat(Ve(o.floating))),!be(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(Ve(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",E?C:N,E),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,k?T:P,k),m.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[a,o,l,v,u,n,r,p,i,w,_,N,E,C,P,k,T]),s.useEffect(()=>{b.current=!1},[v,u]);const j=s.useMemo(()=>({onKeyDown:N,[nr[m]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}}),[N,r,d,m]),A=s.useMemo(()=>({onKeyDown:N,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[rr[u]]:()=>{b.current=!0}}),[N,u]);return s.useMemo(()=>i?{reference:j,floating:A}:{},[i,j,A])}function ir(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Tn(),a=s.useRef({}),[i]=s.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!=Rn(),[c,u]=s.useState(r.reference),d=En((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),m=s.useMemo(()=>({setPositionReference:u}),[]),p=s.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return s.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:i,floatingId:o,refs:m}),[t,d,p,i,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=s.useState(null),[l,c]=s.useState(null),u=(null==o?void 0:o.domReference)||a,d=s.useRef(null),m=Fn();kn(()=>{u&&(d.current=u)},[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=s.useState(r);pn(p,r)||h(r);const[f,g]=s.useState(null),[y,v]=s.useState(null),b=s.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),x=s.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),w=a||f,_=i||y,E=s.useRef(null),k=s.useRef(null),S=s.useRef(d),N=null!=c,C=gn(c),P=gn(o),T=gn(u),j=s.useCallback(()=>{if(!E.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),dn(E.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};A.current&&!pn(S.current,t)&&(S.current=t,ht.flushSync(()=>{m(t)}))})},[p,t,n,P,T]);mn(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[u]);const A=s.useRef(!1);mn(()=>(A.current=!0,()=>{A.current=!1}),[]),mn(()=>{if(w&&(E.current=w),_&&(k.current=_),w&&_){if(C.current)return C.current(w,_,j);j()}},[w,_,j,C,N]);const D=s.useMemo(()=>({reference:E,floating:k,setReference:b,setFloating:x}),[b,x]),R=s.useMemo(()=>({reference:w,floating:_}),[w,_]),F=s.useMemo(()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=fn(R.floating,d.x),r=fn(R.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...hn(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,R.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:D,elements:R,floatingStyles:F}),[d,j,D,R,F])}({...e,elements:{...o,...l&&{reference:l}}}),h=s.useCallback(e=>{const t=be(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)},[p.refs]),f=s.useCallback(e=>{(be(e)||null===e)&&(d.current=e,i(e)),(be(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!be(e))&&p.refs.setReference(e)},[p.refs]),g=s.useMemo(()=>({...p.refs,setReference:f,setPositionReference:h,domReference:d}),[p.refs,f,h]),y=s.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),v=s.useMemo(()=>({...p,...r,refs:g,elements:y,nodeId:t}),[p,g,y,t,r]);return kn(()=>{r.dataRef.current.floatingContext=v;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),s.useMemo(()=>({...p,context:v,refs:g,elements:y}),[p,g,y,v])}function sr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:a,elements:i}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=s.useRef(!1),d=s.useRef(),m=s.useRef(!0);s.useEffect(()=>{if(!l)return;const e=ge(i.domReference);function t(){!n&&xe(i.domReference)&&i.domReference===Be(Xe(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]),s.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]),s.useEffect(()=>()=>{clearTimeout(d.current)},[]);const p=s.useMemo(()=>({onPointerDown(e){(function(e){return!We().includes("jsdom/")&&(!qe()&&0===e.width&&0===e.height||qe()&&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=Ye(e.nativeEvent);if(c&&be(t))try{if(He()&&Ue().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!Je(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=be(t)&&t.hasAttribute(On("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;const s=Be(i.domReference?i.domReference.ownerDocument:document);(t||s!==i.domReference)&&($e(null==(e=a.current.floatingContext)?void 0:e.refs.floating.current,s)||$e(i.domReference,s)||o||r(!1,n,"focus"))})}}),[a,i.domReference,r,c]);return s.useMemo(()=>l?{reference:p}:{},[l,p])}const lr="active",cr="selected";function ur(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[lr]:t,[cr]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,[Zn]:""},...a,...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,a]=t;var i;o&&[lr,cr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=a)}),e):e,{})}}function dr(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=s.useCallback(t=>ur(t,e,"reference"),t),a=s.useCallback(t=>ur(t,e,"floating"),n),i=s.useCallback(t=>ur(t,e,"item"),r);return s.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}const mr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pr(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,l=null!=(n=mr.get(i))?n:i,c=Tn(),u=null!=Rn(),d=s.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=s.useMemo(()=>{const e={id:o,...l&&{role:l}};return"tooltip"===l||"label"===i?e:{...e,..."menu"===l&&{"aria-labelledby":c}}},[l,o,c,i]),p=s.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 s.useMemo(()=>a?{reference:d,floating:m,item:p}:{},[a,d,m,p])}const hr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function fr(e,t){return"function"==typeof e?e(t):e}function gr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:a,duration:i=250}=t,l=e.placement,c=l.split("-")[0],u=s.useMemo(()=>({side:c,placement:l}),[c,l]),d="number"==typeof i,m=(d?i:i.open)||0,p=(d?i:i.close)||0,[h,f]=s.useState(()=>({...fr(a,u),...fr(n,u)})),{isMounted:g,status:y}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,a=("number"==typeof o?o:o.close)||0,[i,l]=s.useState("unmounted"),c=function(e,t){const[n,r]=s.useState(e);return e&&!n&&r(!0),s.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,a);return c||"close"!==i||l("unmounted"),kn(()=>{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=Mn(n),b=Mn(r),x=Mn(o),w=Mn(a);return kn(()=>{const e=fr(v.current,u),t=fr(x.current,u),n=fr(w.current,u),r=fr(b.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===y&&f(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===y&&f({transitionProperty:Object.keys(r).map(hr).join(","),transitionDuration:m+"ms",...n,...r}),"close"===y){const r=t||e;f({transitionProperty:Object.keys(r).map(hr).join(","),transitionDuration:p+"ms",...n,...r})}},[p,x,v,b,w,m,y,u]),{isMounted:g,styles:h}}function yr(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let e=0,i=a-1;e<a;i=e++){const[a,s]=t[e]||[0,0],[l,c]=t[i]||[0,0];s>=r!=c>=r&&n<=(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}function vr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:m,nodeId:p,tree:h}=e;return function(e){function f(){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],b=Ye(e),x="mouseleave"===e.type,w=$e(d.floating,b),_=$e(d.domReference,b),E=d.domReference.getBoundingClientRect(),k=d.floating.getBoundingClientRect(),S=u.split("-")[0],N=n>k.right-k.width/2,C=c>k.bottom-k.height/2,P=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,E),T=k.width>E.width,j=k.height>E.height,A=(T?E:k).left,D=(T?E:k).right,R=(j?E:k).top,F=(j?E:k).bottom;if(w&&(a=!0,!x))return;if(_&&(a=!1),_&&!x)return void(a=!0);if(x&&be(e.relatedTarget)&&$e(d.floating,e.relatedTarget))return;if(h&&Vn(h.nodesRef.current,p).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===S&&c>=E.bottom-1||"bottom"===S&&c<=E.top+1||"left"===S&&n>=E.right-1||"right"===S&&n<=E.left+1)return f();let O=[];switch(S){case"top":O=[[A,E.top+1],[A,k.bottom-1],[D,k.bottom-1],[D,E.top+1]];break;case"bottom":O=[[A,k.top+1],[A,E.bottom-1],[D,E.bottom-1],[D,k.top+1]];break;case"left":O=[[k.right-1,F],[k.right-1,R],[E.left+1,R],[E.left+1,F]];break;case"right":O=[[E.right-1,F],[E.right-1,R],[k.left+1,R],[k.left+1,F]]}if(!yr([g,y],O)){if(a&&!P)return f();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===s||0===r)return i=e,s=t,l=n,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return f()}yr([g,y],function(e){let[n,r]=e;switch(S){case"top":return[[T?n+t/2:N?n+4*t:n-4*t,r+t+1],[T?n-t/2:N?n+4*t:n-4*t,r+t+1],[k.left,N||T?k.bottom-t:k.top],[k.right,N?T?k.bottom-t:k.top:k.bottom-t]];case"bottom":return[[T?n+t/2:N?n+4*t:n-4*t,r-t],[T?n-t/2:N?n+4*t:n-4*t,r-t],[k.left,N||T?k.top+t:k.bottom],[k.right,N?T?k.top+t:k.bottom:k.top+t]];case"left":{const e=[n+t+1,j?r+t/2:C?r+4*t:r-4*t],o=[n+t+1,j?r-t/2:C?r+4*t:r-4*t];return[[C||j?k.right-t:k.left,k.top],[C?j?k.right-t:k.left:k.right-t,k.bottom],e,o]}case"right":return[[n-t,j?r+t/2:C?r+4*t:r-4*t],[n-t,j?r-t/2:C?r+4*t:r-4*t],[C||j?k.left+t:k.right,k.top],[C?j?k.left+t:k.right:k.left+t,k.bottom]]}}([n,c]))?!a&&r&&(o=window.setTimeout(f,40)):f()}}};return c.__options={blockPointerEvents:n},c}function br(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 xr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const wr=e=>Array.isArray(e);function _r(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 Er(e){return"string"==typeof e||Array.isArray(e)}function kr(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Sr(e,t,n,r){if("function"==typeof t){const[o,a]=kr(r);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,a]=kr(r);t=t(void 0!==n?n:e.custom,o,a)}return t}function Nr(e,t,n){const r=e.getProps();return Sr(r,t,void 0!==n?n:r.custom,e)}const Cr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pr=["initial",...Cr];function Tr(e){let t;return()=>(void 0===t&&(t=e()),t)}const jr=Tr(()=>void 0!==window.ScrollTimeline);class Ar{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=>jr()&&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 Dr extends Ar{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Rr(e,t){return e?e[t]||e.default||e:void 0}const Fr=2e4;function Or(e){let t=0,n=e.next(t);for(;!n.done&&t<Fr;)t+=50,n=e.next(t);return t>=Fr?1/0:t}function Mr(e){return"function"==typeof e}function Ir(e,t){e.timeline=t,e.onfinish=null}const Lr=e=>Array.isArray(e)&&"number"==typeof e[0],Vr={linearEasing:void 0};function zr(e,t){const n=Tr(e);return()=>{var e;return null!==(e=Vr[t])&&void 0!==e?e:n()}}const Br=zr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),$r=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ur=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e($r(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Wr(e){return Boolean("function"==typeof e&&Br()||!e||"string"==typeof e&&(e in qr||Br())||Lr(e)||Array.isArray(e)&&e.every(Wr))}const Hr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hr([0,.65,.55,1]),circOut:Hr([.55,0,1,.45]),backIn:Hr([.31,.01,.66,-.59]),backOut:Hr([.33,1.53,.69,.99])};function Gr(e,t){return e?"function"==typeof e&&Br()?Ur(e,t):Lr(e)?Hr(e):Array.isArray(e)?e.map(e=>Gr(e,t)||qr.easeOut):qr[e]:void 0}const Xr={x:!1,y:!1};function Kr(){return Xr.x||Xr.y}function Yr(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 Jr(e){return t=>{"touch"===t.pointerType||Kr()||e(t)}}const Zr=(e,t)=>!!t&&(e===t||Zr(e,t.parentElement)),Qr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,eo=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),to=new WeakSet;function no(e){return t=>{"Enter"===t.key&&e(t)}}function ro(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oo(e){return Qr(e)&&!Kr()}const ao=e=>1e3*e,io=e=>e/1e3,so=e=>e,lo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],co=new Set(lo),uo=new Set(["width","height","top","left","right","bottom",...lo]),mo=e=>wr(e)?e[e.length-1]||0:e,po=["read","resolveKeyframes","update","preRender","render","postRender"];function ho(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=po.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,o=!1,i=!1)=>{const s=i&&r?t:n;return o&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{i=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(a),e),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:m}=i,p=()=>{const a=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,s.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(p))};return{schedule:po.reduce((t,a)=>{const s=i[a];return t[a]=(t,a=!1,i=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(p)),s.schedule(t,a,i)),t},{}),cancel:e=>{for(let t=0;t<po.length;t++)i[po[t]].cancel(e)},state:o,steps:i}}const{schedule:fo,cancel:go,state:yo,steps:vo}=ho("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:so,!0);let bo;function xo(){bo=void 0}const wo={now:()=>(void 0===bo&&wo.set(yo.isProcessing?yo.timestamp:performance.now()),bo),set:e=>{bo=e,queueMicrotask(xo)}};function _o(e,t){-1===e.indexOf(t)&&e.push(t)}function Eo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ko{constructor(){this.subscriptions=[]}add(e){return _o(this.subscriptions,e),()=>Eo(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 So(e,t){return t?e*(1e3/t):0}const No={current:void 0};class Co{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=wo.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=wo.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 ko);const n=this.events[e].add(t);return"change"===e?()=>{n(),fo.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 No.current&&No.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=wo.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return So(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 Po(e,t){return new Co(e,t)}function To(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Po(n))}const jo=e=>Boolean(e&&e.getVelocity);function Ao(e,t){const n=e.getValue("willChange");if(r=n,Boolean(jo(r)&&r.add))return n.add(t);var r}const Do=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ro="data-"+Do("framerAppearId");function Fo(e){return e.props[Ro]}const Oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Mo(e,t,n,r){if(e===t&&n===r)return so;return o=>0===o||1===o?o:Oo(function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Oo(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<12);return i}(o,0,1,e,n),t,r)}const Io=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lo=e=>t=>1-e(1-t),Vo=Mo(.33,1.53,.69,.99),zo=Lo(Vo),Bo=Io(zo),$o=e=>(e*=2)<1?.5*zo(e):.5*(2-Math.pow(2,-10*(e-1))),Uo=e=>1-Math.sin(Math.acos(e)),Wo=Lo(Uo),Ho=Io(Uo),qo=e=>/^0[^.\s]+$/u.test(e);function Go(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||qo(e)}const Xo=(e,t,n)=>n>t?t:n<e?e:n,Ko={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Yo={...Ko,transform:e=>Xo(0,1,e)},Jo={...Ko,default:1},Zo=e=>Math.round(1e5*e)/1e5,Qo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ea=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ta=(e,t)=>n=>Boolean("string"==typeof n&&ea.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),na=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,a,i,s]=r.match(Qo);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},ra={...Ko,transform:e=>Math.round((e=>Xo(0,255,e))(e))},oa={test:ta("rgb","red"),parse:na("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ra.transform(e)+", "+ra.transform(t)+", "+ra.transform(n)+", "+Zo(Yo.transform(r))+")"},aa={test:ta("#"),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:oa.transform},ia=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),sa=ia("deg"),la=ia("%"),ca=ia("px"),ua=ia("vh"),da=ia("vw"),ma={...la,parse:e=>la.parse(e)/100,transform:e=>la.transform(100*e)},pa={test:ta("hsl","hue"),parse:na("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+la.transform(Zo(t))+", "+la.transform(Zo(n))+", "+Zo(Yo.transform(r))+")"},ha={test:e=>oa.test(e)||aa.test(e)||pa.test(e),parse:e=>oa.test(e)?oa.parse(e):pa.test(e)?pa.parse(e):aa.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?oa.transform(e):pa.transform(e)},fa=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ga="number",ya="color",va=/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 ba(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const i=t.replace(va,e=>(ha.test(e)?(r.color.push(a),o.push(ya),n.push(ha.parse(e))):e.startsWith("var(")?(r.var.push(a),o.push("var"),n.push(e)):(r.number.push(a),o.push(ga),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:i,indexes:r,types:o}}function xa(e){return ba(e).values}function wa(e){const{split:t,types:n}=ba(e),r=t.length;return e=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],void 0!==e[a]){const t=n[a];o+=t===ga?Zo(e[a]):t===ya?ha.transform(e[a]):e[a]}return o}}const _a=e=>"number"==typeof e?0:e,Ea={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Qo))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(fa))||void 0===n?void 0:n.length)||0)>0},parse:xa,createTransformer:wa,getAnimatableNone:function(e){const t=xa(e);return wa(e)(t.map(_a))}},ka=new Set(["brightness","contrast","saturate","opacity"]);function Sa(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Qo)||[];if(!r)return e;const o=n.replace(r,"");let a=ka.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const Na=/\b([a-z-]*)\(.*?\)/gu,Ca={...Ea,getAnimatableNone:e=>{const t=e.match(Na);return t?t.map(Sa).join(" "):e}},Pa={borderWidth:ca,borderTopWidth:ca,borderRightWidth:ca,borderBottomWidth:ca,borderLeftWidth:ca,borderRadius:ca,radius:ca,borderTopLeftRadius:ca,borderTopRightRadius:ca,borderBottomRightRadius:ca,borderBottomLeftRadius:ca,width:ca,maxWidth:ca,height:ca,maxHeight:ca,top:ca,right:ca,bottom:ca,left:ca,padding:ca,paddingTop:ca,paddingRight:ca,paddingBottom:ca,paddingLeft:ca,margin:ca,marginTop:ca,marginRight:ca,marginBottom:ca,marginLeft:ca,backgroundPositionX:ca,backgroundPositionY:ca},Ta={rotate:sa,rotateX:sa,rotateY:sa,rotateZ:sa,scale:Jo,scaleX:Jo,scaleY:Jo,scaleZ:Jo,skew:sa,skewX:sa,skewY:sa,distance:ca,translateX:ca,translateY:ca,translateZ:ca,x:ca,y:ca,z:ca,perspective:ca,transformPerspective:ca,opacity:Yo,originX:ma,originY:ma,originZ:ca},ja={...Ko,transform:Math.round},Aa={...Pa,...Ta,zIndex:ja,size:ca,fillOpacity:Yo,strokeOpacity:Yo,numOctaves:ja},Da={...Aa,color:ha,backgroundColor:ha,outlineColor:ha,fill:ha,stroke:ha,borderColor:ha,borderTopColor:ha,borderRightColor:ha,borderBottomColor:ha,borderLeftColor:ha,filter:Ca,WebkitFilter:Ca},Ra=e=>Da[e];function Fa(e,t){let n=Ra(e);return n!==Ca&&(n=Ea),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Oa=new Set(["auto","none","0"]),Ma=e=>e===Ko||e===ca,Ia=(e,t)=>parseFloat(e.split(", ")[t]),La=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Ia(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Ia(t[1],e):0}},Va=new Set(["x","y","z"]),za=lo.filter(e=>!Va.has(e)),Ba={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:La(4,13),y:La(5,14)};Ba.translateX=Ba.x,Ba.translateY=Ba.y;const $a=new Set;let Ua=!1,Wa=!1;function Ha(){if(Wa){const e=Array.from($a).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 za.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)})}Wa=!1,Ua=!1,$a.forEach(e=>e.complete()),$a.clear()}function qa(){$a.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wa=!0)})}class Ga{constructor(e,t,n,r,o,a=!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=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?($a.add(this),Ua||(Ua=!0,fo.read(qa),fo.resolveKeyframes(Ha))):(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(),a=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),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),$a.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$a.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Xa=so,Ka=so;const Ya=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ja=e=>t=>"string"==typeof t&&t.startsWith(e),Za=Ja("--"),Qa=Ja("var(--"),ei=e=>!!Qa(e)&&ti.test(e.split("/*")[0].trim()),ti=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ni=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ri(e,t,n=1){Ka(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=ni.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return Ya(e)?parseFloat(e):e}return ei(o)?ri(o,t,n+1):o}const oi=e=>t=>t.test(e),ai=[Ko,ca,la,sa,da,ua,{test:e=>"auto"===e,parse:e=>e}],ii=e=>ai.find(oi(e));class si extends Ga{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(),ei(r))){const o=ri(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uo.has(n)||2!==e.length)return;const[r,o]=e,a=ii(r),i=ii(o);if(a!==i)if(Ma(a)&&Ma(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++)Go(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Oa.has(t)&&ba(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=Fa(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=Ba[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 a=r.length-1,i=r[a];r[a]=Ba[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 li=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Ea.test(e)&&"0"!==e||e.startsWith("url(")));function ci(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],i=li(o,t),s=li(a,t);return Xa(i===s,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!(!i||!s)&&(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||Mr(n))&&r)}const ui=e=>null!==e;function di(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(ui),a=t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class mi{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=wo.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:a,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(qa(),Ha()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=wo.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:a,onComplete:i,onUpdate:s,isGenerator:l}=this.options;if(!l&&!ci(e,n,r,o)){if(!a)return s&&s(di(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 pi=(e,t,n)=>e+(t-e)*n;function hi(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 fi(e,t){return n=>n>0?t:e}const gi=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},yi=[aa,oa,pa];function vi(e){const t=(e=>yi.find(t=>t.test(e)))(e);if(Xa(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===pa&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=hi(s,r,e+1/3),a=hi(s,r,e),i=hi(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}(n)),n}const bi=(e,t)=>{const n=vi(e),r=vi(t);if(!n||!r)return fi(e,t);const o={...n};return e=>(o.red=gi(n.red,r.red,e),o.green=gi(n.green,r.green,e),o.blue=gi(n.blue,r.blue,e),o.alpha=pi(n.alpha,r.alpha,e),oa.transform(o))},xi=(e,t)=>n=>t(e(n)),wi=(...e)=>e.reduce(xi),_i=new Set(["none","hidden"]);function Ei(e,t){return n=>pi(e,t,n)}function ki(e){return"number"==typeof e?Ei:"string"==typeof e?ei(e)?fi:ha.test(e)?bi:Ci:Array.isArray(e)?Si:"object"==typeof e?ha.test(e)?bi:Ni:fi}function Si(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>ki(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Ni(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=ki(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ci=(e,t)=>{const n=Ea.createTransformer(t),r=ba(e),o=ba(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?_i.has(e)&&!o.values.length||_i.has(t)&&!r.values.length?function(e,t){return _i.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):wi(Si(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],s=e.indexes[i][o[i]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[a]=l,o[i]++}return r}(r,o),o.values),n):(Xa(!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.`),fi(e,t))};function Pi(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?pi(e,t,n):ki(e)(e,t)}function Ti(e,t,n){const r=Math.max(t-5,0);return So(n-e(r),t-r)}const ji=.01,Ai=2,Di=.005,Ri=.5;const Fi=12;function Oi(e,t){return e*Math.sqrt(1-t*t)}const Mi=["duration","bounce"],Ii=["stiffness","damping","mass"];function Li(e,t){return t.some(t=>void 0!==e[t])}function Vi(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Li(e,Ii)&&Li(e,Mi))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,a=2*Xo(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:a}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,a;Xa(e<=ao(10),"Spring duration must be 10 seconds or less");let i=1-t;i=Xo(.05,1,i),e=Xo(.01,10,io(e)),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Oi(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Oi(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Fi;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e=ao(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,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:-io(n.velocity||0)}),h=m||0,f=c/(2*Math.sqrt(l*u)),g=i-a,y=io(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?ji:Ai),o||(o=v?Di:Ri),f<1){const e=Oi(y,f);b=t=>{const n=Math.exp(-f*y*t);return i-n*((h+f*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===f)b=e=>i-Math.exp(-y*e)*(g+(h+y*g)*e);else{const e=y*Math.sqrt(f*f-1);b=t=>{const n=Math.exp(-f*y*t),r=Math.min(e*t,300);return i-n*((h+f*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const x={calculatedDuration:p&&d||null,next:e=>{const t=b(e);if(p)s.done=e>=d;else{let n=0;f<1&&(n=0===e?ao(h):Ti(b,e,t));const a=Math.abs(n)<=r,l=Math.abs(i-t)<=o;s.done=a&&l}return s.value=s.done?i:t,s},toString:()=>{const e=Math.min(Or(x),Fr),t=Ur(t=>x.next(e*t).value,e,30);return e+"ms "+t}};return x}function zi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const f=d+h,g=void 0===i?f:i(f);g!==f&&(h=g-d);const y=e=>-h*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let x,w;const _=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(m.value)&&(x=e,w=Vi({keyframes:[m.value,p(m.value)],velocity:Ti(v,e,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),_(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),m)}}}const Bi=Mo(.42,0,1,1),$i=Mo(0,0,.58,1),Ui=Mo(.42,0,.58,1),Wi={linear:so,easeIn:Bi,easeInOut:Ui,easeOut:$i,circIn:Uo,circInOut:Ho,circOut:Wo,backIn:zo,backInOut:Bo,backOut:Vo,anticipate:$o},Hi=e=>{if(Lr(e)){Ka(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Mo(t,n,r,o)}return"string"==typeof e?(Ka(void 0!==Wi[e],`Invalid easing type '${e}'`),Wi[e]):e};function qi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Hi):Hi(r),a={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=$r(0,t,r);e.push(pi(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(Ka(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Pi,a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||so:t;a=wi(e,a)}r.push(a)}return r}(t,r,o),l=s.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=$r(e[r],e[r+1],n);return s[r](o)};return n?t=>c(Xo(e[0],e[a-1],t)):c}(i,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Ui).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Gi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>fo.update(t,!0),stop:()=>go(t),now:()=>yo.isProcessing?yo.timestamp:wo.now()}},Xi={decay:zi,inertia:zi,tween:qi,keyframes:qi,spring:Vi},Ki=e=>e/100;class Yi extends mi{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,a=(null==r?void 0:r.KeyframeResolver)||Ga;this.resolver=new a(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:a=0}=this.options,i=Mr(t)?t:Xi[t]||qi;let s,l;i!==qi&&"number"!=typeof e[0]&&(s=wi(Ki,Pi(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===o&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=Or(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,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:a,mapPercentToKeyframes:i,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:m,repeatType:p,repeatDelay:h,onUpdate:f}=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,b=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"===p?(n=1-n,h&&(n-=h/u)):"mirror"===p&&(b=a)),v=Xo(0,1,n)*u}const x=y?{done:!1,value:s[0]}:b.next(v);i&&(x.value=i(x.value));let{done:w}=x;y||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(x.value=di(s,this.options,r)),f&&f(x.value),_&&this.finish(),x}get duration(){const{resolved:e}=this;return e?io(e.calculatedDuration):0}get time(){return io(this.currentTime)}set time(e){e=ao(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=io(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Gi,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 Ji=new Set(["opacity","clipPath","filter","transform"]),Zi=Tr(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qi={anticipate:$o,backInOut:Bo,circInOut:Ho};class es extends mi{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new si(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:a,motionValue:i,name:s,startTime:l}=this.options;if(!i.owner||!i.owner.current)return!1;var c;if("string"==typeof o&&Br()&&o in Qi&&(o=Qi[o]),Mr((c=this.options).type)||"spring"===c.type||!Wr(c.ease)){const{onComplete:t,onUpdate:i,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new Yi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),o.push(r.value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,a="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:a=0,repeatType:i="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Gr(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(i.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Ir(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;i.set(di(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return io(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return io(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=ao(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 so;const{animation:n}=t;Ir(n,e)}else this.pendingTimeline=e;return so}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:a,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new Yi({...c,keyframes:n,duration:r,type:o,ease:a,times:i,isGenerator:!0}),d=ao(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),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:a,type:i}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return Zi()&&n&&Ji.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==a&&"inertia"!==i}}const ts={type:"spring",stiffness:500,damping:25,restSpeed:10},ns={type:"keyframes",duration:.8},rs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},os=(e,{keyframes:t})=>t.length>2?ns:co.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ts:rs,as=(e,t,n,r={},o,a)=>i=>{const s=Rr(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=ao(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...os(e,u)}),u.duration&&(u.duration=ao(u.duration)),u.repeatDelay&&(u.repeatDelay=ao(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&&!a&&void 0!==t.get()){const e=di(u.keyframes,s);if(void 0!==e)return fo.update(()=>{u.onUpdate(e),u.onComplete()}),new Dr([])}return!a&&es.supports(u)?new es(u):new Yi(u)};function is({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ss(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...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!==(a=e.latestValues[t])&&void 0!==a?a:null),o=l[t];if(void 0===o||u&&is(u,t))continue;const s={delay:n,...Rr(i||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Fo(e);if(n){const e=window.MotionHandoffAnimation(n,t,fo);null!==e&&(s.startTime=e,d=!0)}}Ao(e,t),r.start(as(t,r,o,e.shouldReduceMotion&&uo.has(t)?{type:!1}:s,e,d));const m=r.animation;m&&c.push(m)}return s&&Promise.all(c).then(()=>{fo.update(()=>{s&&function(e,t){const n=Nr(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const t in a)To(e,t,mo(a[t]))}(e,s)})}),c}function ls(e,t,n={}){var r;const o=Nr(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(ss(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(cs).forEach((e,r)=>{e.notify("AnimationStart",t),i.push(ls(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(i)}(e,t,o+r,i,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function cs(e,t){return e.sortNodePosition(t)}const us=Pr.length;function ds(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ds(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<us;n++){const r=Pr[n],o=e.props[r];(Er(o)||!1===o)&&(t[r]=o)}return t}const ms=[...Cr].reverse(),ps=Cr.length;function hs(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=>ls(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=ls(e,t,n);else{const o="function"==typeof t?Nr(e,t,n.custom):t;r=Promise.all(ss(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=ys(),r=!0;const o=t=>(n,r)=>{var o;const a=Nr(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const{props:i}=e,s=ds(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<ps;t++){const m=ms[t],p=n[m],h=void 0!==i[m]?i[m]:s[m],f=Er(h),g=m===a?p.isActive:null;!1===g&&(d=t);let y=h===s[m]&&h!==i[m]&&f;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...u},!p.isActive&&null===g||!h&&!p.prevProp||xr(h)||"boolean"==typeof h)continue;const v=fs(p.prevProp,h);let b=v||m===a&&p.isActive&&!y&&f||t>d&&f,x=!1;const w=Array.isArray(h)?h:[h];let _=w.reduce(o(m),{});!1===g&&(_={});const{prevResolvedValues:E={}}=p,k={...E,..._},S=t=>{b=!0,c.has(t)&&(x=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=_[e],n=E[e];if(u.hasOwnProperty(e))continue;let r=!1;r=wr(t)&&wr(n)?!_r(t,n):t!==n,r?null!=t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):p.protectedKeys[e]=!0}p.prevProp=h,p.prevResolvedValues=_,p.isActive&&(u={...u,..._}),r&&e.blockInitialAnimation&&(b=!1),b&&(!y||!v||x)&&l.push(...w.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:a,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=a(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ys(),r=!0}}}function fs(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!_r(t,e)}function gs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ys(){return{animate:gs(!0),whileInView:gs(),whileHover:gs(),whileTap:gs(),whileDrag:gs(),whileFocus:gs(),exit:gs()}}class vs{constructor(e){this.isMounted=!1,this.node=e}update(){}}let bs=0;const xs={animation:{Feature:class extends vs{constructor(e){super(e),e.animationState||(e.animationState=hs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();xr(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 vs{constructor(){super(...arguments),this.id=bs++}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 ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _s(e){return{point:{x:e.pageX,y:e.pageY}}}function Es(e,t,n,r){return ws(e,t,(e=>t=>Qr(t)&&e(t,_s(t)))(n),r)}const ks=(e,t)=>Math.abs(e-t);class Ss{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=Ps(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=ks(e.x,t.x),r=ks(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}=yo;this.history.push({...r,timestamp:o});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ns(t,this.transformPagePoint),fo.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 a=Ps("pointercancel"===e.type?this.lastMoveEventInfo:Ns(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Qr(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const a=Ns(_s(e),this.transformPagePoint),{point:i}=a,{timestamp:s}=yo;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Ps(a,this.history)),this.removeListeners=wi(Es(this.contextWindow,"pointermove",this.handlePointerMove),Es(this.contextWindow,"pointerup",this.handlePointerUp),Es(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),go(this.updatePoint)}}function Ns(e,t){return t?{point:t(e.point)}:e}function Cs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ps({point:e},t){return{point:e,delta:Cs(e,js(t)),offset:Cs(e,Ts(t)),velocity:As(t,.1)}}function Ts(e){return e[0]}function js(e){return e[e.length-1]}function As(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=js(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ao(t)));)n--;if(!r)return{x:0,y:0};const a=io(o.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ds(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Rs(e){return e.max-e.min}function Fs(e,t,n,r=.5){e.origin=r,e.originPoint=pi(t.min,t.max,e.origin),e.scale=Rs(n)/Rs(t),e.translate=pi(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 Os(e,t,n,r){Fs(e.x,t.x,n.x,r?r.originX:void 0),Fs(e.y,t.y,n.y,r?r.originY:void 0)}function Ms(e,t,n){e.min=n.min+t.min,e.max=e.min+Rs(t)}function Is(e,t,n){e.min=t.min-n.min,e.max=e.min+Rs(t)}function Ls(e,t,n){Is(e.x,t.x,n.x),Is(e.y,t.y,n.y)}function Vs(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 zs(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 Bs=.35;function $s(e,t,n){return{min:Us(e,t),max:Us(e,n)}}function Us(e,t){return"number"==typeof e?e:e[t]||0}const Ws=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Hs(e){return[e("x"),e("y")]}function qs({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Gs(e){return void 0===e||1===e}function Xs({scale:e,scaleX:t,scaleY:n}){return!Gs(e)||!Gs(t)||!Gs(n)}function Ks(e){return Xs(e)||Ys(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ys(e){return Js(e.x)||Js(e.y)}function Js(e){return e&&"0%"!==e}function Zs(e,t,n){return n+t*(e-n)}function Qs(e,t,n,r,o){return void 0!==o&&(e=Zs(e,o,r)),Zs(e,n,r)+t}function el(e,t=0,n=1,r,o){e.min=Qs(e.min,t,n,r,o),e.max=Qs(e.max,t,n,r,o)}function tl(e,{x:t,y:n}){el(e.x,t.translate,t.scale,t.originPoint),el(e.y,n.translate,n.scale,n.originPoint)}const nl=.999999999999,rl=1.0000000000001;function ol(e,t){e.min=e.min+t,e.max=e.max+t}function al(e,t,n,r,o=.5){el(e,t,n,pi(e.min,e.max,o),r)}function il(e,t){al(e.x,t.x,t.scaleX,t.scale,t.originX),al(e.y,t.y,t.scaleY,t.scale,t.originY)}function sl(e,t){return qs(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 ll=({current:e})=>e?e.ownerDocument.defaultView:null,cl=new WeakMap;class ul{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 Ss(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(_s(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(a=n)||"y"===a?Xr[a]?null:(Xr[a]=!0,()=>{Xr[a]=!1}):Xr.x||Xr.y?null:(Xr.x=Xr.y=!0,()=>{Xr.x=Xr.y=!1}),!this.openDragLock))return;var a;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hs(e=>{let t=this.getAxisMotionValue(e).get()||0;if(la.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Rs(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&fo.postRender(()=>o(e,t)),Ao(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:a}=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(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Hs(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:ll(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&&fo.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||!dl(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?pi(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?pi(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}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&&Ds(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Vs(e.x,n,o),y:Vs(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Bs){return!1===e?e=0:!0===e&&(e=Bs),{x:$s(e,"left","right"),y:$s(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Hs(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||!Ds(e))return!1;const n=e.current;Ka(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=sl(e,n),{scroll:o}=t;return o&&(ol(r.x,o.offset.x),ol(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:zs(e.x,t.x),y:zs(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}}(a));this.hasMutatedConstraints=!!e,e&&(a=qs(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=Hs(i=>{if(!dl(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(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 Ao(this.visualElement,e),n.start(as(e,n,0,t,this.visualElement,!1))}stopAnimation(){Hs(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Hs(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){Hs(t=>{const{drag:n}=this.getProps();if(!dl(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t];o.set(e[t]-pi(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ds(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Hs(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=Rs(e),o=Rs(t);return o>r?n=$r(t.min,t.max-r,e.min):r>o&&(n=$r(e.min,e.max-o,t.min)),Xo(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(),Hs(t=>{if(!dl(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(pi(o,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;cl.set(this.visualElement,this);const e=Es(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Ds(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()),fo.read(t);const o=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Hs(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(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:a=Bs,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:a,dragMomentum:i}}}function dl(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ml=e=>(t,n)=>{e&&fo.postRender(()=>e(t,n))},pl=(0,s.createContext)(null);function hl(e=!0){const t=(0,s.useContext)(pl);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=(0,s.useId)();(0,s.useEffect)(()=>{e&&o(a)},[e]);const i=(0,s.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,i]:[!0]}const fl=(0,s.createContext)({}),gl=(0,s.createContext)({}),yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bl={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ca.test(e))return e;e=parseFloat(e)}return`${vl(e,t.target.x)}% ${vl(e,t.target.y)}%`}},xl={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ea.parse(e);if(o.length>5)return r;const a=Ea.createTransformer(e),i="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=s,o[1+i]/=l;const c=pi(s,l,.5);return"number"==typeof o[2+i]&&(o[2+i]/=c),"number"==typeof o[3+i]&&(o[3+i]/=c),a(o)}},wl={},{schedule:_l,cancel:El}=ho(queueMicrotask,!1);class kl extends s.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var a;a=Nl,Object.assign(wl,a),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()})),yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,a=n.projection;return a?(a.isPresent=o,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||fo.postRender(()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),_l.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 Sl(e){const[t,n]=hl(),r=(0,s.useContext)(fl);return(0,u.jsx)(kl,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(gl),isPresent:t,safeToRemove:n})}const Nl={borderRadius:{...bl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bl,borderTopRightRadius:bl,borderBottomLeftRadius:bl,borderBottomRightRadius:bl,boxShadow:xl},Cl=(e,t)=>e.depth-t.depth;class Pl{constructor(){this.children=[],this.isDirty=!1}add(e){_o(this.children,e),this.isDirty=!0}remove(e){Eo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cl),this.isDirty=!1,this.children.forEach(e)}}function Tl(e){const t=jo(e)?e.get():e;return(e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue))(t)?t.toValue():t}const jl=["TopLeft","TopRight","BottomLeft","BottomRight"],Al=jl.length,Dl=e=>"string"==typeof e?parseFloat(e):e,Rl=e=>"number"==typeof e||ca.test(e);function Fl(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ol=Il(0,.5,Wo),Ml=Il(.5,.95,so);function Il(e,t,n){return r=>r<e?0:r>t?1:n($r(e,t,r))}function Ll(e,t){e.min=t.min,e.max=t.max}function Vl(e,t){Ll(e.x,t.x),Ll(e.y,t.y)}function zl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Bl(e,t,n,r,o){return e=Zs(e-=t,1/n,r),void 0!==o&&(e=Zs(e,1/o,r)),e}function $l(e,t,[n,r,o],a,i){!function(e,t=0,n=1,r=.5,o,a=e,i=e){if(la.test(t)&&(t=parseFloat(t),t=pi(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=pi(a.min,a.max,r);e===a&&(s-=t),e.min=Bl(e.min,t,n,s,o),e.max=Bl(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,a,i)}const Ul=["x","scaleX","originX"],Wl=["y","scaleY","originY"];function Hl(e,t,n,r){$l(e.x,t,Ul,n?n.x:void 0,r?r.x:void 0),$l(e.y,t,Wl,n?n.y:void 0,r?r.y:void 0)}function ql(e){return 0===e.translate&&1===e.scale}function Gl(e){return ql(e.x)&&ql(e.y)}function Xl(e,t){return e.min===t.min&&e.max===t.max}function Kl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Yl(e,t){return Kl(e.x,t.x)&&Kl(e.y,t.y)}function Jl(e){return Rs(e.x)/Rs(e.y)}function Zl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ql{constructor(){this.members=[]}add(e){_o(this.members,e),e.scheduleRender()}remove(e){if(Eo(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 ec={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tc="undefined"!=typeof window&&void 0!==window.MotionDebug,nc=["","X","Y","Z"],rc={visibility:"hidden"};let oc=0;function ac(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ic(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fo(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",fo,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ic(r)}function sc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=oc++,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,tc&&(ec.totalNodes=ec.resolvedTargetDeltas=ec.recalculatedProjection=0),this.nodes.forEach(uc),this.nodes.forEach(yc),this.nodes.forEach(vc),this.nodes.forEach(dc),tc&&window.MotionDebug.record(ec)},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 Pl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ko),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:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(a||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=wo.now(),r=({timestamp:o})=>{const a=o-n;a>=t&&(go(r),e(a-t))};return fo.read(r,!0),()=>go(r)}(r,250),yl.hasAnimatedSinceResize&&(yl.hasAnimatedSinceResize=!1,this.nodes.forEach(gc))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&i&&(o||a)&&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()||kc,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!Yl(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={...Rr(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||gc(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,go(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(bc),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&&ic(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(pc);this.isUpdating||this.nodes.forEach(hc),this.isUpdating=!1,this.nodes.forEach(fc),this.nodes.forEach(lc),this.nodes.forEach(cc),this.clearAllSnapshots();const e=wo.now();yo.delta=Xo(0,1e3/60,e-yo.timestamp),yo.timestamp=e,yo.isProcessing=!0,vo.update.process(yo),vo.preRender.process(yo),vo.render.process(yo),yo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_l.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mc),this.sharedNodes.forEach(xc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,fo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){fo.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&&!Gl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&(t||Ks(this.latestValues)||a)&&(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)),Cc((r=n).x),Cc(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(Tc)){const{scroll:e}=this.root;e&&(ol(n.x,e.offset.x),ol(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Vl(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:a}=r;r!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&Vl(n,e),ol(n.x,o.offset.x),ol(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Vl(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&&il(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ks(r.latestValues)&&il(n,r.latestValues)}return Ks(this.latestValues)&&il(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Vl(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Ks(n.latestValues))continue;Xs(n.latestValues)&&n.updateSnapshot();const r=Ws();Vl(r,n.measurePageBox()),Hl(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ks(this.latestValues)&&Hl(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!==yo.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:a}=this.options;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=yo.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}},Ls(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Vl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,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,s=this.relativeTarget,l=this.relativeParent.target,Ms(i.x,s.x,l.x),Ms(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Vl(this.target,this.layout.layoutBox),tl(this.target,this.targetDelta)):Vl(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}},Ls(this.relativeTargetOrigin,this.target,e.target),Vl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tc&&ec.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Xs(this.parent.latestValues)&&!Ys(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===yo.timestamp&&(r=!1),r)return;const{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!a)return;Vl(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let a,i;t.x=t.y=1;for(let s=0;s<o;s++){a=n[s],i=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&il(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,tl(e,i)),r&&Ks(a.latestValues)&&il(e,a.latestValues))}t.x<rl&&t.x>nl&&(t.x=1),t.y<rl&&t.y>nl&&(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?(zl(this.prevProjectionDelta.x,this.projectionDelta.x),zl(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Os(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&Zl(this.projectionDelta.x,this.prevProjectionDelta.x)&&Zl(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tc&&ec.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},a={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}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Ec));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;wc(a.x,e.x,n),wc(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ls(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){_c(e.x,t.x,n.x,r),_c(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,i,n),d&&function(e,t){return Xl(e.x,t.x)&&Xl(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Vl(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,a){o?(e.opacity=pi(0,void 0!==n.opacity?n.opacity:1,Ol(r)),e.opacityExit=pi(void 0!==t.opacity?t.opacity:1,0,Ml(r))):a&&(e.opacity=pi(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Al;o++){const a=`border${jl[o]}Radius`;let i=Fl(t,a),s=Fl(n,a);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||Rl(i)===Rl(s)?(e[a]=Math.max(pi(Dl(i),Dl(s),r),0),(la.test(s)||la.test(i))&&(e[a]+="%")):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=pi(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&&(go(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fo.update(()=>{yl.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=jo(0)?0:Po(0);return r.start(as("",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&&Pc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Rs(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Rs(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Vl(t,n),il(t,o),Os(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ql),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&&ac("z",e,r,this.animationValues);for(let t=0;t<nc.length;t++)ac(`rotate${nc[t]}`,e,r,this.animationValues),ac(`skew${nc[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 rc;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Tl(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Tl(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Ks(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((o||a||i)&&(r=`translate3d(${o}px, ${a}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:a,skewX:i,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),i&&(r+=`skewX(${i}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),o&&(r.transform=o(i,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,a.animationValues?r.opacity=a===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=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const e in wl){if(void 0===i[e])continue;const{correct:t,applyTo:n}=wl[e],o="none"===r.transform?i[e]:t(i[e],a);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=a===this?Tl(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(pc),this.root.sharedNodes.clear()}}}function lc(e){e.updateLayout()}function cc(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,a=n.source!==e.layout.source;"size"===o?Hs(e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],o=Rs(r);r.min=t[e].min,r.max=r.min+o}):Pc(o,n.layoutBox,t)&&Hs(r=>{const o=a?n.measuredBox[r]:n.layoutBox[r],i=Rs(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}};Os(i,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a?Os(s,e.applyTransform(r,!0),n.measuredBox):Os(s,t,n.layoutBox);const l=!Gl(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:a}=r;if(o&&a){const i={x:{min:0,max:0},y:{min:0,max:0}};Ls(i,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Ls(s,t,a.layoutBox),Yl(i,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function uc(e){tc&&ec.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 dc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mc(e){e.clearSnapshot()}function pc(e){e.clearMeasurements()}function hc(e){e.isLayoutDirty=!1}function fc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yc(e){e.resolveTargetDelta()}function vc(e){e.calcProjection()}function bc(e){e.resetSkewAndRotation()}function xc(e){e.removeLeadSnapshot()}function wc(e,t,n){e.translate=pi(t.translate,0,n),e.scale=pi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _c(e,t,n,r){e.min=pi(t.min,n.min,r),e.max=pi(t.max,n.max,r)}function Ec(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const kc={duration:.45,ease:[.4,0,.1,1]},Sc=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nc=Sc("applewebkit/")&&!Sc("chrome/")?Math.round:so;function Cc(e){e.min=Nc(e.min),e.max=Nc(e.max)}function Pc(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Jl(t),o=Jl(n),!(Math.abs(r-o)<=.2));var r,o}function Tc(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const jc=sc({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ac={current:void 0},Dc=sc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ac.current){const e=new jc({});e.mount(window),e.setOptions({layoutScroll:!0}),Ac.current=e}return Ac.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Rc={pan:{Feature:class extends vs{constructor(){super(...arguments),this.removePointerDownListener=so}onPointerDown(e){this.session=new Ss(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ll(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ml(e),onStart:ml(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&fo.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Es(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 vs{constructor(e){super(e),this.removeGroupControls=so,this.removeListeners=so,this.controls=new ul(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||so}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Dc,MeasureLayout:Sl}};function Fc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&fo.postRender(()=>o(t,_s(t)))}function Oc(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&&fo.postRender(()=>o(t,_s(t)))}const Mc=new WeakMap,Ic=new WeakMap,Lc=e=>{const t=Mc.get(e.target);t&&t(e)},Vc=e=>{e.forEach(Lc)};const zc={some:0,all:1},Bc={inView:{Feature:class extends vs{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,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:zc[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Ic.has(n)||Ic.set(n,{});const r=Ic.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Vc,{root:e,...t})),r[o]}(t);return Mc.set(e,n),r.observe(e),()=>{Mc.delete(e),r.unobserve(e)}}(this.node.current,a,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(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends vs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=Yr(e,n),i=e=>{const r=e.currentTarget;if(!oo(e)||to.has(r))return;to.add(r);const a=t(e),i=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),oo(e)&&to.has(r)&&(to.delete(r),"function"==typeof a&&a(e,{success:t}))},s=e=>{i(e,n.useGlobalTarget||Zr(r,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach(e=>{(function(e){return eo.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=no(()=>{if(to.has(n))return;ro(n,"down");const e=no(()=>{ro(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ro(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o),o)}),a}(e,e=>(Oc(this.node,e,"Start"),(e,{success:t})=>Oc(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends vs{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=wi(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends vs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,a]=Yr(e,n),i=Jr(e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const a=Jr(e=>{r(e),n.removeEventListener("pointerleave",a)});n.addEventListener("pointerleave",a,o)});return r.forEach(e=>{e.addEventListener("pointerenter",i,o)}),a}(e,e=>(Fc(this.node,e,"Start"),e=>Fc(this.node,e,"End"))))}unmount(){}}}},$c={layout:{ProjectionNode:Dc,MeasureLayout:Sl}},Uc=(0,s.createContext)({strict:!1}),Wc=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Hc=(0,s.createContext)({});function qc(e){return xr(e.animate)||Pr.some(t=>Er(e[t]))}function Gc(e){return Boolean(qc(e)||e.variants)}function Xc(e){return Array.isArray(e)?e.join(" "):e}const Kc="undefined"!=typeof window,Yc={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"]},Jc={};for(const e in Yc)Jc[e]={isEnabled:t=>Yc[e].some(e=>!!t[e])};const Zc=Symbol.for("motionComponentSymbol");function Qc(e,t,n){return(0,s.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ds(n)&&(n.current=r))},[t])}const eu=Kc?s.useLayoutEffect:s.useEffect;function tu(e,t,n,r,o){var a,i;const{visualElement:l}=(0,s.useContext)(Hc),c=(0,s.useContext)(Uc),u=(0,s.useContext)(pl),d=(0,s.useContext)(Wc).reducedMotion,m=(0,s.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 p=m.current,h=(0,s.useContext)(gl);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(e,t,n,r){const{layoutId:o,layout:a,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:nu(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(i)||s&&Ds(s),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(m.current,n,o,h);const f=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{p&&f.current&&p.update(n,u)});const g=n[Ro],y=(0,s.useRef)(Boolean(g)&&!(null===(a=window.MotionHandoffIsComplete)||void 0===a?void 0:a.call(window,g))&&(null===(i=window.MotionHasOptimisedAnimation)||void 0===i?void 0:i.call(window,g)));return eu(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),_l.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,s.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),y.current=!1))}),p}function nu(e){if(e)return!1!==e.options.allowProjection?e.projection:nu(e.parent)}function ru({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var a,i;function l(e,a){let i;const l={...(0,s.useContext)(Wc),...e,layoutId:ou(e)},{isStatic:c}=l,d=function(e){const{initial:t,animate:n}=function(e,t){if(qc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Er(t)?t:void 0,animate:Er(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(Hc));return(0,s.useMemo)(()=>({initial:t,animate:n}),[Xc(t),Xc(n)])}(e),m=r(e,c);if(!c&&Kc){(0,s.useContext)(Uc).strict;const e=function(e){const{drag:t,layout:n}=Jc;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,d.visualElement=tu(o,m,l,t,e.ProjectionNode)}return(0,u.jsxs)(Hc.Provider,{value:d,children:[i&&d.visualElement?(0,u.jsx)(i,{visualElement:d.visualElement,...l}):null,n(o,e,Qc(m,d.visualElement,a),m,c,d.visualElement)]})}e&&function(e){for(const t in e)Jc[t]={...Jc[t],...e[t]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(i=null!==(a=o.displayName)&&void 0!==a?a:o.name)&&void 0!==i?i:""})`}`;const c=(0,s.forwardRef)(l);return c[Zc]=o,c}function ou({layoutId:e}){const t=(0,s.useContext)(fl).id;return t&&void 0!==e?t+"-"+e:e}const au=["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 iu(e){return"string"==typeof e&&!e.includes("-")&&!!(au.indexOf(e)>-1||/[A-Z]/u.test(e))}function su(e){const t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}const lu=e=>(t,n)=>{const r=(0,s.useContext)(Hc),o=(0,s.useContext)(pl),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,a){const i={latestValues:cu(r,o,a,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?a():su(a)};function cu(e,t,n,r){const o={},a=r(e,{});for(const e in a)o[e]=Tl(a[e]);let{initial:i,animate:s}=e;const l=qc(e),c=Gc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?s:i;if(d&&"boolean"!=typeof d&&!xr(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Sr(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 uu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,du={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mu=lo.length;function pu(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let i=!1,s=!1;for(const e in t){const n=t[e];if(co.has(e))i=!0;else if(Za(e))o[e]=n;else{const t=uu(n,Aa[e]);e.startsWith("origin")?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",o=!0;for(let a=0;a<mu;a++){const i=lo[a],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=uu(s,Aa[i]);l||(o=!1,r+=`${du[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")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const hu={offset:"stroke-dashoffset",array:"stroke-dasharray"},fu={offset:"strokeDashoffset",array:"strokeDasharray"};function gu(e,t,n){return"string"==typeof e?e:ca.transform(t+n*e)}function yu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(pu(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:p,dimensions:h}=e;m.transform&&(h&&(p.transform=m.transform),delete m.transform),h&&(void 0!==o||void 0!==a||p.transform)&&(p.transformOrigin=function(e,t,n){return`${gu(t,e.x,e.width)} ${gu(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==a?a:.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 a=o?hu:fu;e[a.offset]=ca.transform(-r);const i=ca.transform(t),s=ca.transform(n);e[a.array]=`${i} ${s}`}(m,i,s,l,!1)}const vu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function bu(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 xu=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 wu(e,t,n,r){bu(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(xu.has(n)?n:Do(n),t.attrs[n])}function _u(e,{layout:t,layoutId:n}){return co.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!wl[e]||"opacity"===e)}function Eu(e,t,n){var r;const{style:o}=e,a={};for(const i in o)(jo(o[i])||t.style&&jo(t.style[i])||_u(i,e)||void 0!==(null===(r=null==n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(a[i]=o[i]);return a}function ku(e,t,n){const r=Eu(e,t,n);for(const n in e)(jo(e[n])||jo(t[n]))&&(r[-1!==lo.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const Su=["x","y","width","height","cx","cy","r"],Nu={useVisualState:lu({scrapeMotionValuesFromProps:ku,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a)for(const e in o)if(co.has(e)){a=!0;break}if(!a)return;let i=!t;if(t)for(let n=0;n<Su.length;n++){const r=Su[n];e[r]!==t[r]&&(i=!0)}i&&fo.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),fo.render(()=>{yu(r,o,vu(n.tagName),e.transformTemplate),wu(n,r)})})}})},Cu={useVisualState:lu({scrapeMotionValuesFromProps:Eu,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Pu(e,t,n){for(const r in t)jo(t[r])||_u(r,n)||(e[r]=t[r])}function Tu(e,t){const n={},r=function(e,t){const n={};return Pu(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return pu(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 ju=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 Au(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ju.has(e)}let Du=e=>!Au(e);try{(Ru=require("@emotion/is-prop-valid").default)&&(Du=e=>e.startsWith("on")?!Au(e):Ru(e))}catch(e){}var Ru;function Fu(e,t,n,r){const o=(0,s.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return yu(n,t,vu(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Pu(t,e.style,e),o.style={...t,...o.style}}return o}function Ou(e=!1){return(t,n,r,{latestValues:o},a)=>{const i=(iu(t)?Fu:Tu)(n,o,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Du(o)||!0===n&&Au(o)||!t&&!Au(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==s.Fragment?{...l,...i,ref:r}:{},{children:u}=n,d=(0,s.useMemo)(()=>jo(u)?u.get():u,[u]);return(0,s.createElement)(t,{...c,children:d})}}function Mu(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return ru({...iu(n)?Nu:Cu,preloadedFeatures:e,useRender:Ou(r),createVisualElement:t,Component:n})}}const Iu={current:null},Lu={current:!1},Vu=[...ai,ha,Ea],zu=new WeakMap,Bu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $u{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ga,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=wo.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,fo.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=a;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},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=qc(t),this.isVariantNode=Gc(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!==s[e]&&jo(t)&&t.set(s[e],!1)}}mount(e){this.current=e,zu.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)),Lu.current||function(){if(Lu.current=!0,Kc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iu.current=e.matches;e.addListener(t),t()}else Iu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Iu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zu.delete(this.current),this.projection&&this.projection.unmount(),go(this.notifyUpdate),go(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=co.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&fo.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o(),a&&a(),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 Jc){const t=Jc[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<Bu.length;t++){const n=Bu[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],a=n[r];if(jo(o))e.addValue(r,o);else if(jo(a))e.addValue(r,Po(o,{owner:e}));else if(a!==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,Po(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=Po(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&&(Ya(r)||qo(r))?r=parseFloat(r):!(e=>Vu.find(oi(e)))(r)&&Ea.test(t)&&(r=Fa(e,t)),this.setBaseTarget(e,jo(r)?r.get():r)),jo(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=Sr(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||jo(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 ko),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Uu extends $u{constructor(){super(...arguments),this.KeyframeResolver=si}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;jo(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class Wu extends Uu{constructor(){super(...arguments),this.type="html",this.renderInstance=bu}readValueFromInstance(e,t){if(co.has(t)){const e=Ra(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Za(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return sl(e,t)}build(e,t,n){pu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Eu(e,t,n)}}class Hu extends Uu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ws}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(co.has(t)){const e=Ra(t);return e&&e.default||0}return t=xu.has(t)?t:Do(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ku(e,t,n)}build(e,t,n){yu(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){wu(e,t,0,r)}mount(e){this.isSVGTag=vu(e.tagName),super.mount(e)}}const qu=br(Mu({...xs,...Bc,...Rc,...$c},(e,t)=>iu(e)?new Hu(t):new Wu(t,{allowProjection:e!==s.Fragment})));class Gu extends s.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 Xu({children:e,isPresent:t}){const n=(0,s.useId)(),r=(0,s.useRef)(null),o=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,s.useContext)(Wc);return(0,s.useInsertionEffect)(()=>{const{width:e,height:i,top:s,left:l}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return a&&(c.nonce=a),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: ${s}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(c)}},[t]),(0,u.jsx)(Gu,{isPresent:t,childRef:r,sizeRef:o,children:s.cloneElement(e,{ref:r})})}const Ku=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:a,mode:i})=>{const l=su(Yu),c=(0,s.useId)(),d=(0,s.useCallback)(e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()},[l,r]),m=(0,s.useMemo)(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:d,register:e=>(l.set(e,!1),()=>l.delete(e))}),a?[Math.random(),d]:[n,d]);return(0,s.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),s.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),"popLayout"===i&&(e=(0,u.jsx)(Xu,{isPresent:n,children:e})),(0,u.jsx)(pl.Provider,{value:m,children:e})};function Yu(){return new Map}const Ju=e=>e.key||"";function Zu(e){const t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}const Qu=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:a="sync",propagate:i=!1})=>{const[l,c]=hl(i),d=(0,s.useMemo)(()=>Zu(e),[e]),m=i&&!l?[]:d.map(Ju),p=(0,s.useRef)(!0),h=(0,s.useRef)(d),f=su(()=>new Map),[g,y]=(0,s.useState)(d),[v,b]=(0,s.useState)(d);eu(()=>{p.current=!1,h.current=d;for(let e=0;e<v.length;e++){const t=Ju(v[e]);m.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}},[v,m.length,m.join("-")]);const x=[];if(d!==g){let e=[...d];for(let t=0;t<v.length;t++){const n=v[t],r=Ju(n);m.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===a&&x.length&&(e=x),b(Zu(e)),void y(d)}const{forceRender:w}=(0,s.useContext)(fl);return(0,u.jsx)(u.Fragment,{children:v.map(e=>{const s=Ju(e),g=!(i&&!l)&&(d===v||m.includes(s));return(0,u.jsx)(Ku,{isPresent:g,initial:!(p.current&&!n)&&void 0,custom:g?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:g?void 0:()=>{if(!f.has(s))return;f.set(s,!0);let e=!0;f.forEach(t=>{t||(e=!1)}),e&&(null==w||w(),b(h.current),i&&(null==c||c()),r&&r())},children:e},s)})})},ed=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");var td={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 nd=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},c)=>(0,s.createElement)("svg",{ref:c,...td,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:ed("lucide",o),...l},[...i.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(a)?a:[a]])),rd=(e,t)=>{const n=(0,s.forwardRef)(({className:n,...r},o)=>{return(0,s.createElement)(nd,{ref:o,iconNode:t,className:ed(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var a});return n.displayName=`${e}`,n},od=rd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ad=(0,s.createContext)({}),id=()=>(0,s.useContext)(ad),sd=({size:e="md",children:t,className:n})=>(0,u.jsx)(ad.Provider,{value:{size:e},children:(0,u.jsx)("div",{className:ie("flex flex-col bg-background-primary p-2",n),children:t})});sd.displayName="Menu";const ld=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:a,className:i})=>{const[l,c]=(0,s.useState)(r),[d,m]=(0,s.useState)(!1),{size:p}=id(),h={sm:"text-xs",md:"text-sm"}[p??"md"],f={sm:"size-4",md:"size-5"}[p??"md"],g=()=>{c(!l),o&&o(!l)};return(0,u.jsxs)("div",{children:[!!e&&(0,u.jsxs)("div",{role:"button",tabIndex:0,onClick:g,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&g()},onMouseEnter:()=>n&&m(!0),onMouseLeave:()=>n&&m(!1),className:ie("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",h,e?"p-1":"p-0",i),"aria-expanded":l,children:[(0,u.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,u.jsx)(qu.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?l||d?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,u.jsx)(qu.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:l?"open":"closed",transition:{duration:.15},children:(0,u.jsx)(od,{className:ie("shrink-0",f)})})})]}),(0,u.jsx)(Qu,{initial:!1,children:l&&(0,u.jsx)(qu.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:a})})]})};ld.displayName="Menu.List";const cd=({disabled:e=!1,active:t,onClick:n,children:r,className:o})=>{const{size:a}=id(),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"}[a??"md"];return(0,u.jsx)("li",{role:"menuitem",tabIndex:0,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:ie("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})};cd.displayName="Menu.Item";const ud=({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,u.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,u.jsx)("hr",{className:ie("w-full border-0 border-t border-border-subtle",n,t)})})};ud.displayName="Menu.Separator",sd.List=ld,sd.Item=cd,sd.Separator=ud;const dd=(0,s.createContext)({}),md=()=>(0,s.useContext)(dd),pd=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[a,i]=(0,s.useState)(!1),{refs:l,floatingStyles:c,context:d}=ir({open:a,onOpenChange:i,placement:e,strategy:"fixed",middleware:[vn(t),xn({boundary:n}),bn({boundary:n})],whileElementsMounted:an}),m=tr(d),p=ar(d),h=pr(d,{role:"menu"}),{getReferenceProps:f,getFloatingProps:g}=dr([m,p,h]),{isMounted:y,styles:v}=gr(d,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),b=()=>i(e=>!e);return(0,u.jsx)(dd.Provider,{value:{refs:l,handleClose:()=>i(!1),isMounted:y,styles:v,floatingStyles:c,getFloatingProps:g},children:(0,u.jsxs)("div",{className:ie("relative inline-block",o),children:[s.Children.map(r,e=>s.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,s.cloneElement)(e,{ref:l.setReference,onClick:b,...f()}):null),s.Children.toArray(r).filter(e=>s.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||"")).map(e=>e)]})})};pd.displayName="DropdownMenu";const hd=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:a,styles:i}=md();return a&&(0,u.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...i},...o(),children:s.Children.map(e,e=>"DropdownMenu.Content"===e?.type?.displayName?e:null)})};hd.displayName="DropdownMenu.ContentWrapper";const fd=({children:e,root:t,id:n})=>(0,u.jsx)(Yn,{id:n,root:t,children:e});fd.displayName="DropdownMenu.Portal";const gd=s.forwardRef(({children:e,className:t,...n},r)=>(0,s.isValidElement)(e)?s.cloneElement(e,{className:ie(t,e.props.className),ref:r,...n}):(0,u.jsx)("div",{ref:r,className:ie("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e}));gd.displayName="DropdownMenu.Trigger";const yd=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:ie("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,u.jsx)(sd,{...n,children:e})});yd.displayName="DropdownMenu.Content";const vd=e=>(0,u.jsx)(sd.List,{...e});vd.displayName="DropdownMenu.List";const bd=({children:e,as:t=sd.Item,...n})=>{const{handleClose:r}=md();return e?t===s.Fragment&&(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{onClick:se(e.props?.onClick,r)}):(0,u.jsx)(t,{...n,className:ie("px-2",n.className),onClick:se(n.onClick,r),children:e}):null};bd.displayName="DropdownMenu.Item";const xd=e=>(0,u.jsx)(sd.Separator,{...e});xd.displayName="DropdownMenu.Separator",pd.Trigger=gd,pd.Content=yd,pd.List=vd,pd.Item=bd,pd.Separator=xd,pd.Portal=fd,pd.ContentWrapper=hd;const wd=rd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_d=(0,s.forwardRef)(({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:a=null,disabled:i=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:d=!1},m)=>{const p={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 h="",f="group relative justify-center flex items-center cursor-pointer";const g={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return i?(h=p.disabled,f+=" cursor-not-allowed disabled"):h=p[o],e?(0,u.jsxs)("span",{className:ie("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",h,!d&&{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:m,children:[a?(0,u.jsx)("span",{className:ie("justify-center flex items-center",g[t]),children:a}):null,(0,u.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,u.jsxs)("span",{className:ie(f,g[t]),onMouseDown:c,role:"button",tabIndex:0,...!i&&{onClick:s},children:[(0,u.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,u.jsx)(wd,{}),(0,u.jsx)("span",{className:"absolute -inset-1"})]})]}):null});_d.displayName="Badge";const Ed=(...e)=>e.filter((e,t,n)=>Boolean(e)&&n.indexOf(e)===t).join(" ");var kd={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 Sd=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},c)=>(0,s.createElement)("svg",{ref:c,...kd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Ed("lucide",o),...l},[...i.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(a)?a:[a]])),Nd=(e,t)=>{const n=(0,s.forwardRef)(({className:n,...r},o)=>{return(0,s.createElement)(Sd,{ref:o,iconNode:t,className:Ed(`lucide-${a=e,a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var a});return n.displayName=`${e}`,n},Cd=Nd("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"}]]),Pd=Nd("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"}]]),Td=Nd("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"}]]),jd=Nd("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"}]]);var Ad=window.wp.i18n,Dd={dashboard:{path:"dashboard"},widgets:{path:"widgets"},settings:{path:"settings"},headerFooterBuilder:{path:"elementor-hf"},onboarding:{path:"onboarding"}};function Rd(e){return Rd="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},Rd(e)}function Fd(e){var t=function(e){if("object"!=Rd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rd(t)?t:t+""}function Od(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,Fd(r.key),r)}}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Md(e)}function Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Id(e,t)}function Ld(e,t,n){return(t=Fd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vd,zd=window.wp.element,Bd=o(992);function $d(e){return{path:e.pathname,hash:e.hash,query:Bd.parse(e.search)}}function Ud(){return Ud=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},Ud.apply(null,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Vd||(Vd={}));var Wd="beforeunload";function Hd(e){e.preventDefault(),e.returnValue=""}function qd(){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 Gd=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,a=e.hash,i=r.state||{};return[i.idx,{pathname:t,search:o,hash:a,state:i.usr||null,key:i.key||"default"}]}var a=null;n.addEventListener("popstate",function(){if(a)d.call(a),a=null;else{var e=Vd.Pop,t=o(),n=t[0],r=t[1];if(d.length){if(null!=n){var i=l-n;i&&(a={action:e,location:r,retry:function(){y(-1*i)}},y(i))}}else g(e)}});var i=Vd.Pop,s=o(),l=s[0],c=s[1],u=qd(),d=qd();function m(e){return"string"==typeof e?e:(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,i=t.hash,s=void 0===i?"":i,a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),s&&"#"!==s&&(r+="#"===s.charAt(0)?s:"#"+s),r);var t,n,r,o,a,i,s}function p(e,t){return void 0===t&&(t=null),Ud({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 f(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 y(e){r.go(e)}return null==l&&(l=0,r.replaceState(Ud({},r.state,{idx:l}),"")),{get action(){return i},get location(){return c},createHref:m,push:function e(t,o){var a=Vd.Push,i=p(t,o);if(f(a,i,function(){e(t,o)})){var s=h(i,l+1),c=s[0],u=s[1];try{r.pushState(c,"",u)}catch(e){n.location.assign(u)}g(a)}},replace:function e(t,n){var o=Vd.Replace,a=p(t,n);if(f(o,a,function(){e(t,n)})){var i=h(a,l),s=i[0],c=i[1];r.replaceState(s,"",c),g(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(Wd,Hd),function(){t(),d.length||n.removeEventListener(Wd,Hd)}}}}(),Xd=wp.element.createContext({route:$d(Gd.location)}),Kd=o(67),Yd=wp.element.useContext,Jd="";function Zd(e){var t=e.path,n=e.onRoute,r=e.children,o=Yd(Xd).route,a=(0,Kd.YW)("".concat(t))("".concat(o.hash.substr(1)));return a?(n&&(Jd!==a.path&&n(),Jd=a.path),React.createElement("div",null,wp.element.cloneElement(r,{route:a}))):null}var Qd=o(942),em=o.n(Qd);function tm(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 nm=wp.element.useContext;function rm(e){var t=e.to,n=e.onClick,r=e.children,o=e.activeClassName,a=nm(Xd).route,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return delete i.activeClassName,React.createElement("a",Ud({},i,{className:em()(Ld({},o,(0,Kd.YW)("".concat(t))("".concat(a.hash.substr(1)))),e.className),onClick:function(e){if(e.preventDefault(),a.path!==t||e.target.classList.contains("uae-user-icon"))if(n&&n(e),"elementor-hf"===t&&uaelSettingsData.header_footer_builder)window.location.href=uaelSettingsData.header_footer_builder;else{var r=Gd.location.search,o=window.location.hash;if(r.includes("admin.php?page=uaepro")&&o.includes(t))if(t.includes("settings")){var i=r+"&tab=1";e.target.classList.contains("uae-user-icon")&&window.location.hash.includes("settings")?window.location.href="".concat(i,"#").concat(t):Gd.push("".concat(r,"#").concat(t))}else{var s=r.replace(/&tab=[^&]*/,"");Gd.push("".concat(s,"#").concat(t))}else window.location.href="".concat(uaelSettingsData.uaepro_settings_url,"#").concat(t)}}}),r)}function om(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(om=function(){return!!e})()}var am=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=Md(t),function(e,t){if(t&&("object"==Rd(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,om()?Reflect.construct(t,n||[],Md(e).constructor):t.apply(e,n))}(this,t,[e]),Ld(n,"handleRouteChange",function(e){localStorage.setItem("selectedItemId","1");var t=$d(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=Gd.listen(n.handleRouteChange);var r=$d(Gd.location),o=Gd.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&&Id(e,t)}(t,e),function(e,t){return t&&Od(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 Gd.push(o),React.createElement("div",null);var a=!1;(this.routes||[]).forEach(function(e){var t=(0,Kd.YW)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(a={name:e,data:t})});var i={route:r,matched:a},s=!a;return React.createElement(Xd.Provider,{value:i},s?React.createElement("div",null,"Not found"):t)}}])}(zd.Component),im=function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(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,s)}l((r=r.apply(e,t||[])).next())})};const sm={rssFeedURL:"",selector:"",uniqueKey:"",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:{label:"",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:()=>{}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"&hellip;",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:()=>{},onClose:()=>{},onReady:()=>{}}};class lm{constructor(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(),cm.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new um(this),this.RSS_View_Instance=new dm(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}validateArgs(e){["rssFeedURL","selector","uniqueKey"].forEach(t=>{if(!e[t])throw new Error(`${t} is a required argument. It cannot be empty or undefined.`);if("rssFeedURL"===t){const n=e[t];Array.isArray(n)&&n.forEach(e=>{if(!(null==e?void 0:e.key))throw new Error(`The parameter "key" is required for "${t}" parameter in multi-feed mode.`);if(e.key.includes(" "))throw new Error(`The parameter "key" cannot have spaces for "${t}" parameter in multi-feed mode. Ref Key: "${e.key}"`)})}})}parseDefaults(e){var t,n;this.args=Object.assign(Object.assign(Object.assign({},sm),e),{viewAll:Object.assign(Object.assign({},sm.viewAll),null==e?void 0:e.viewAll),triggerButton:Object.assign(Object.assign({},sm.triggerButton),null==e?void 0:e.triggerButton),flyout:Object.assign(Object.assign(Object.assign({},sm.flyout),null==e?void 0:e.flyout),{innerContent:Object.assign(Object.assign({},sm.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:Object.assign(Object.assign({},sm.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})}getArgs(){return this.args}setElement(){this.element=document.querySelector(this.args.selector)}getElement(){return this.element}setID(){const e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach(t=>{e.push(t.key)}):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey}isMultiFeedRSS(){return"string"!=typeof this.getArgs().rssFeedURL}setRSSFeedURLs(){const e=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(e)&&e.forEach(e=>{this.rssFeedURLs.push(e)}):this.rssFeedURLs.push({key:null,label:"",url:e.toString()})}getRSSFeedURLs(){return this.rssFeedURLs}getID(){return this.ID}setNotificationsCount(){return im(this,void 0,void 0,function*(){yield Promise.all(this.getRSSFeedURLs().map(e=>im(this,[e],void 0,function*({key:e}){let t=0;t="function"==typeof this.getArgs().notification.getLastPostUnixTime?yield this.getArgs().notification.getLastPostUnixTime(e,this):cm.getLastPostUnixTime(e),this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]=+t:this.lastPostUnixTime=+t}))),yield this.RSS_Fetch_Instance.fetchData().then(e=>{Object.keys(e).forEach(t=>{const n=e[t];if(!n.length)return;this.multiNotificationCount[t]=0;const r=+n[0].date,o=this.isMultiFeedRSS()?this.multiLastPostUnixTime[t]:this.lastPostUnixTime;r>o&&(n.forEach(e=>{e.date>o&&(this.isMultiFeedRSS()&&(this.multiNotificationCount[t]++,this.multiHasNewFeeds[t]=!0),this.notificationsCount++,this.hasNewFeeds=!0)}),this.RSS_View_Instance.setNotification(this.notificationsCount))})}).catch(console.error)})}getNotificationsCount(){return this.notificationsCount}setTriggers(){const e=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),t=document.getElementById(this.RSS_View_Instance.getFlyoutID()),n=t.querySelector(".whats-new-rss-flyout-inner-content"),r=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),o=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),a=e=>{this.RSS_Fetch_Instance.fetchData().then(r=>{n.innerHTML="";const o=r[e];if(!o.length)return;const a=+o[0].date,i=this.isMultiFeedRSS()?this.multiLastPostUnixTime[e]:this.lastPostUnixTime;o.forEach(t=>{const r=!!i&&t.date>i,o=this.getArgs().flyout.innerContent.titleLink?`<a href="${t.postLink}" target="_blank">\n\t\t\t\t\t\t\t\t<h2>${t.title}</h2>\n\t\t\t\t\t\t\t</a>`:`<h2>${t.title}</h2>`,a=`\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>${this.RSS_View_Instance.formatDate(new Date(t.date))}</p>\n\t\t\t\t\t\t\t\t\t${o}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.createExcerpt(t.description,t.postLink,this.getArgs().flyout.excerpt)}\n\t\t\t\t\t\t\t\t${this.RSS_View_Instance.listChildrenPosts(t.children)}\n\t\t\t\t\t\t\t`,s=this.getArgs().flyout.innerContent.additionalClasses;e&&s.push("`inner-content-item-feed-key-${key}`"),n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(a,r,s.join(" "))}),this.getArgs().viewAll.link&&(n.innerHTML+=this.RSS_View_Instance.innerContentWrapper(`\n\t\t\t\t\t\t\t<a href="${this.getArgs().viewAll.link}" class="button view-all">${this.getArgs().viewAll.label}</a>\n\t\t\t\t\t\t\t`)),this.RSS_View_Instance.setIsLoading(!1),t.classList.add("ready"),this.getArgs().flyout.onReady(this),t.focus(),this.isMultiFeedRSS()||(this.lastPostUnixTime=a,this.hasNewFeeds&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(a,e):cm.setLastPostUnixTime(a,e)))}).catch(console.error)};e.addEventListener("click",e=>{e.preventDefault();const n=window.innerWidth-document.documentElement.clientWidth;if(this.getArgs().triggerButton.onClick(this),this.RSS_View_Instance.setIsLoading(!0),t.removeAttribute("style"),t.classList.remove("closed"),t.classList.add("open"),document.body.classList.add("whats-new-rss-is-active"),n){const e=document.getElementById("whats-new-rss-styles");(null==e?void 0:e.sheet)&&e.sheet.insertRule(`.whats-new-rss-is-active { background-color: yellow; padding-right: ${n}px; }`,e.sheet.cssRules.length)}if(this.getArgs().flyout.onOpen(this),!this.isMultiFeedRSS())return void a(null);const r=o.querySelectorAll("button");r.forEach(e=>{this.RSS_View_Instance.setMultiFeedTabNotificationCount(e.dataset.feedKey,this.multiNotificationCount[e.dataset.feedKey]),e.addEventListener("click",t=>{t.preventDefault();const n=e.dataset.feedKey;this.multiNotificationCount[n]=0,this.RSS_Fetch_Instance.fetchData().then(e=>{const t=e[n][0].date;this.multiLastPostUnixTime[n]=t,!0===this.multiHasNewFeeds[n]&&("function"==typeof this.getArgs().notification.setLastPostUnixTime?this.getArgs().notification.setLastPostUnixTime(t,n):cm.setLastPostUnixTime(t,n)),this.multiHasNewFeeds[n]=!1}).catch(console.error),r.forEach(e=>{e.classList.remove("selected");const t=e.dataset.feedKey,r=`.inner-content-item-feed-key-${t}`;document.querySelectorAll(r).forEach(e=>{n!==t?e.classList.add("hidden"):e.classList.remove("hidden")})}),e.classList.add("selected"),a(n)})}),r[0].click()});const i=()=>{t.classList.add("closed"),t.classList.remove("open"),t.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),this.isMultiFeedRSS()?this.RSS_View_Instance.setNotification(Object.values(this.multiNotificationCount).filter(Boolean).length):(this.hasNewFeeds=!1,this.RSS_View_Instance.setNotification(!1)),n.innerHTML="",this.getArgs().flyout.onClose(this),e.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.contains("open")&&i()}),this.getArgs().flyout.closeOnOverlayClick&&t.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",i),r.addEventListener("click",i)}}class cm{static setInstanceID(e){this.instanceID||(this.instanceID=e)}static prefixer(e,t=""){if(!this.instanceID)throw new Error("Instance ID not set.");return t?`${this.keys[e]}-${this.instanceID}-${t}`:`${this.keys[e]}-${this.instanceID}`}static _setDataExpiry(e=""){const t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))}static _isDataExpired(e=""){const t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;const r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)}static setSessionData(e,t=""){return this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)}static getSessionData(e=""){return this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))}static setLastPostUnixTime(e,t=""){return window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())}static getLastPostUnixTime(e=""){return+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))}}cm.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"};class um{constructor(e){this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach(e=>{const t=JSON.parse(cm.getSessionData(e.key));t&&t.length&&(this.data[e.key]=t)})}fetchData(){return im(this,void 0,void 0,function*(){if(Object.keys(this.data).length)return this.data;const e=this.RSS.getRSSFeedURLs().map(e=>im(this,void 0,void 0,function*(){this.data[e.key]=[];const t=yield fetch(e.url);let n=yield t.text();n=n.replace(/&raquo;/g,"&amp;raquo;"),(new DOMParser).parseFromString(n,"text/xml").querySelectorAll("item").forEach(t=>{var n;const r=t.querySelector("title").textContent,o=t.querySelector("link").textContent,a=t.querySelector("content\\:encoded, encoded"),i=a?a.textContent:"",s=t.querySelector("pubDate").innerHTML;this.data[e.key].push({title:r,date:s?+new Date(s):null,postLink:o,description:i.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)||"{}")})}),cm.setSessionData(JSON.stringify(this.data[e.key]),e.key)}));return yield Promise.all(e),this.data})}}class dm{constructor(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}getTriggerButtonID(){return`whats-new-rss-btn-${this.RSS.getID()}`}getFlyoutID(){return`whats-new-rss-flyout-${this.RSS.getID()}`}getFlyoutCloseBtnID(){return`whats-new-rss-flyout-close-${this.RSS.getID()}`}getFlyoutMultiFeedNavID(){return`whats-new-rss-flyout-multi-feed-nav-${this.RSS.getID()}`}setIsLoading(e=!1){const t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")}setNotification(e){const t=document.querySelector(`#${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")}createTriggerButton(){let e="";const t=this.RSS.getArgs().triggerButton.label;e=t?`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="${this.getTriggerButtonID()}">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t${t}\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`:`\n\t\t\t${this.RSS.getArgs().triggerButton.beforeBtn}\n\t\t\t<a class="whats-new-rss-trigger-button" id="${this.getTriggerButtonID()}">\n\t\t\t\t${this.RSS.getArgs().triggerButton.icon}\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t${this.RSS.getArgs().triggerButton.afterBtn}\n\t\t\t`,this.RSS.getElement().innerHTML+=e}createFlyOut(){const e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);let t=[];this.RSS.isMultiFeedRSS()&&(t.push(`<nav id="${this.getFlyoutMultiFeedNavID()}" class="whats-new-rss-multi-feed-nav">`),this.RSS.getRSSFeedURLs().forEach(e=>{t.push(`<button type="button" data-feed-key="${e.key}">\n\t\t\t\t\t\t${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>"));const n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility:hidden"),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>${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${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="${this.getFlyoutCloseBtnID()}">${this.RSS.getArgs().flyout.closeBtnIcon}</button>\n\t\t\t</div>\n\n\t\t\t${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)}setMultiFeedTabNotificationCount(e,t=0){const n=document.querySelector(`#${this.getFlyoutMultiFeedNavID()} button[data-feed-key="${e}"]`);if(!n)return;const r=n.querySelector(".new-notification-count");if(t){const e=t>9?"9+":t;r.innerHTML=e.toString()}else r.innerHTML=""}innerContentWrapper(e,t=!1,n=""){const r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),`\n\t\t<div class="${r.join(" ")}">\n\t\t\t${t?'<small class="new-post-badge">New ✨</small>':""}\n\t\t\t${e}\n\t\t</div>\n\t\t`}createExcerpt(e,t,n){const{wordLimit:r,moreSymbol:o,readMore:a}=n;if(!r)return e;const i=e.replace(/<[^>]*>/g,"").split(/\s+/);let s=i.slice(0,r).join(" ");return o&&(s+=o),r>i.length?e:t&&(null==a?void 0:a.label)?`<p>${s} <a href="${t}" target="_blank" class="${a.className}">${a.label}</a></p>`:`<p>${s}</p>`}listChildrenPosts(e){const t=Object.values(e);if(!t.length)return"";const n=document.createElement("details"),r=document.createElement("summary"),o=document.createElement("div");return t.forEach(e=>{const t=(new DOMParser).parseFromString(e.post_content,"text/html"),n=document.createElement("div");n.classList.add("sub-version-item"),n.innerHTML=`\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">${e.post_title}</h4>\n\t\t\t\t\t<span class="sub-version-date">${this.formatDate(new Date(e.post_date))}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">${t.documentElement.textContent}</div>\n\t\t\t`,o.appendChild(n)}),r.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',n.appendChild(r),n.appendChild(o),o.classList.add("sub-version-items-wrapper"),n.classList.add("whats-new-rss-sub-version-details"),n.outerHTML}formatDate(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);const t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,a=24*o,i=7*a,s=30*a;if(r<6e4)return"Just now";if(r<o){const e=Math.floor(r/6e4);return`${e} minute${e>1?"s":""} ago`}if(r<a){const e=Math.floor(r/o);return`${e} hour${e>1?"s":""} ago`}if(r<i){const e=Math.floor(r/a);return`${e} day${e>1?"s":""} ago`}if(r<s){const e=Math.floor(r/i);return`${e} week${e>1?"s":""} ago`}{const e=Math.floor(r/s);return`${e} month${e>1?"s":""} ago`}}}function mm(){var e=window.location.hash;document.querySelectorAll("#adminmenu #toplevel_page_uaepro 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")})}function pm(){var e=i((0,s.useState)(!1),2),t=e[0],n=e[1],r=i((0,s.useState)(!1),2),o=r[0],a=r[1];(0,s.useEffect)(function(){return mm(),window.addEventListener("hashchange",mm),function(){window.removeEventListener("hashchange",mm)}},[]),(0,s.useEffect)(function(){var e=function(e){e.target.closest(".uae-help-dropdown")||a(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]);var l=window.location.hash,u=function(e){return l.includes(e)},d=function(e){return{color:u(e)?"#111827":"#4B5563",borderBottom:u(e)?"2px solid #6005FF":"none",paddingBottom:"22px",marginBottom:"-16px"}},m=function(e){window.open(e,"_blank"),a(!1),n(!1)};return function({selector:e,...t}){const n=(0,s.useRef)(null);(0,s.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:0!important;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-9px;width:18px;height:18px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:#ff580e;display:flex;align-items:center;justify-content:center;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!important}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:unset}.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;height:100vh;font-size:15px;font-weight:400;line-height:20px;color:#475569;margin-bottom:5px}.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 p{font-size:15px;font-weight:400;line-height:1.5em;color:#475569;margin-bottom:15px}.whats-new-rss-flyout p a{color:#1170ff}.whats-new-rss-flyout .wp-block-uagb-buttons{background:#ff6c0a;padding:10px 18px;width:fit-content;color:#fff;border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.05);margin-bottom:15px}.whats-new-rss-flyout .wp-block-uagb-buttons .uagb-button__link{color:#fff;font-size:1rem;font-weight:600;line-height:1.5rem}.whats-new-rss-flyout .ast-oembed-container{position:relative;padding-top:56.25%;height:0;overflow:hidden;max-width:100%;height:auto}.whats-new-rss-flyout .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.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:18px 24px!important;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:20px;line-height:24px;margin-bottom:0!important}.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:24px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .wp-smiley{display:inline-block;margin:0;min-height:1em;margin-bottom:4px}.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 h2{font-size:22px;font-weight:700;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-size:20px;font-weight:700;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-size:18px;font-weight:700;line-height:1.5em;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-size:16px;font-weight:700;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-size:13px;font-weight:700;line-height:1.5em;margin-bottom:15px;padding-top:12px;padding-bottom:4px}.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:#ff6c0a;border-radius:4px;top:22px;right:24px;padding:0 4px;color:#fff;position:absolute}.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:4px;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;line-height:16px;font-size:12px;margin-bottom:0!important}.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:1.5em;font-size:24px;padding:0}.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:15px}.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;margin-bottom: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;max-width:100%}.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;margin-bottom:15px}.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;margin-left:10px}.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{font-size:15px;font-weight:400;line-height:1.5em;color:#475569;margin-bottom:4px}.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 lm(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:"#uae-whats-new",uniqueKey:"uael-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,Ad.__)("What's New?","uael"),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(ce,{className:"uae-nav-menu relative",style:{width:"unset",padding:"0.5rem",zIndex:"9"}},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(ce.Left,null,c().createElement(ce.Item,null,uaelSettingsData.icon_url&&c().createElement(rm,{to:Dd.dashboard.path},c().createElement("img",{src:"".concat(uaelSettingsData.icon_url),alt:"Logo",className:"ml-4 cursor-pointer",style:{height:"35px",width:"35px"}})))),c().createElement(ce.Middle,{className:"flex-grow",align:"left"},c().createElement("nav",{className:"flex flex-wrap gap-6 mt-2 md:mt-0 cursor-pointer"},c().createElement(rm,{to:Dd.dashboard.path,className:"".concat(u("dashboard")?"active-link":""),style:d("dashboard")},(0,Ad.__)("Dashboard","uael")),uaelSettingsData.is_lite_active&&c().createElement(rm,{to:Dd.headerFooterBuilder.path,className:"".concat(u("edit.php?post_type=elementor-hf")?"active-link":""),style:d("edit.php?post_type=elementor-hf")},(0,Ad.__)("Header & Footer","uael")),c().createElement(rm,{to:Dd.widgets.path,className:"".concat(u("widgets")?"active-link":""),style:d("widgets")},(0,Ad.__)("Widgets","uael")),c().createElement(rm,{to:Dd.settings.path,className:"".concat(u("settings")?"active-link":""),style:d("settings")},(0,Ad.__)("Settings","uael")))),c().createElement(ce.Right,{className:"flex flex-col lg:flex-row gap-4 mt-4 md:mt-0"},c().createElement(ce.Item,null,c().createElement(pd,{placement:"bottom-start",isOpen:t,onOpenChange:n},c().createElement(pd.Trigger,null,c().createElement(_d,{label:(0,Ad.__)("PRO","uael"),size:"md",variant:"neutral",className:"bg-gradient-to-r from-[#A78BFA] to-[#6005FF] text-white hidden md:flex"})),c().createElement(pd.ContentWrapper,null,c().createElement(pd.Content,{className:"w-52"},c().createElement(pd.List,null,c().createElement(pd.Item,null,(0,Ad.__)("Version","uael")),uaelSettingsData.is_lite_active&&c().createElement(pd.Item,null,c().createElement("div",{className:"flex justify-between w-full"},"".concat(uaelSettingsData.uaelite_current_version),c().createElement("img",{src:"".concat(uaelSettingsData.core_badge),alt:"CORE",style:{height:"30px",width:"38px"}}))),c().createElement(pd.Item,null,c().createElement("div",{className:"flex justify-between w-full"},"".concat(uaelSettingsData.uael_current_version),c().createElement("img",{src:"".concat(uaelSettingsData.pro_badge),alt:"PRO",style:{height:"30px",width:"38px"}})))))))),!uaelSettingsData.hide_settings&&c().createElement(ce.Item,{className:"gap-4 flex items-center uae-help-dropdown relative"},c().createElement("div",{onClick:function(){return a(function(e){return!e})},className:"cursor-pointer",title:"Help"},c().createElement(Cd,null)),o&&c().createElement("div",{className:"absolute right-0 top-8 w-64 bg-white border border-gray-200 rounded shadow-md z-50"},c().createElement("ul",{className:"text-sm text-gray-700"},c().createElement("li",{className:"px-4 py-2 border-b font-semibold"},(0,Ad.__)("Useful Resources","uael")),c().createElement("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex gap-2 items-center",onClick:function(){return m("https://ultimateelementor.com/docs/getting-started-uael/")}},c().createElement(Pd,null),(0,Ad.__)("Getting Started","uael")),c().createElement("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex gap-2 items-center",onClick:function(){return m("https://ultimateelementor.com/docs-category/widgets/")}},c().createElement(Pd,null),(0,Ad.__)("How to use widgets","uael")),c().createElement("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex gap-2 items-center",onClick:function(){return m("https://ultimateelementor.com/docs-category/features/")}},c().createElement(Pd,null),(0,Ad.__)("How to use features","uael")),c().createElement("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex gap-2 items-center",onClick:function(){return m("https://ultimateelementor.com/docs-category/templates/")}},c().createElement(Pd,null),(0,Ad.__)("How to use templates","uael")),c().createElement("li",{className:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex gap-2 items-center",onClick:function(){return m("https://ultimateelementor.com/contact/")}},c().createElement(Td,null),(0,Ad.__)("Contact us","uael")))),c().createElement("div",{className:"pb-1",id:"uae-whats-new"}),c().createElement(rm,{to:Dd.settings.path},c().createElement(jd,{className:"cursor-pointer uae-user-icon",style:{color:"black"}})))))))}const hm={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"}},fm={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"}},gm={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"}},ym={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"}},vm={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"}},bm={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"}},xm={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"}},wm={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"}},_m={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"}},Em={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"}},km={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"}},Sm={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"}},Nm={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"}},Cm={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"}},Pm={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"}},Tm={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},jm={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Am=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,a]of Object.entries(e))t[r]&&o.push(t?.[r]?.[a]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const a=r;o.push(t?.[a]?.[e]??t?.[a]?.[n?.[a]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Dm=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:a,justify:i,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:d=!1,autoCols:m=!1,children:p,...h})=>{const f=Am(t,hm,1),g=Am(n,fm,"sm"),y=Am(r,gm,""),v=Am(o,ym,""),b=Am(a,_m,""),x=Am(i,wm,""),w=Am(s,xm,"");return(0,u.jsx)("div",{className:ie("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":m,"auto-rows-auto":d},f,g,y,v,b,x,w,e),...h,children:p})};Dm.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:a,...i})=>{const s=Am(n,vm,0),l=Am(r,bm,0),c=Am(o,Em,""),d=Am(a,km,"");return(0,u.jsx)("div",{className:ie(s,l,c,d,e),...i,children:t})};const Rm=(0,s.createContext)({}),Fm=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:a,align:i,wrap:s,cols:l,className:c,children:d,...m})=>{if("grid"===e)return(0,u.jsx)(Rm.Provider,{value:{containerType:e},children:(0,u.jsx)(Dm,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:i,justify:a,...m})});const p=Am(s,Nm,""),h=Am(t,fm,"sm"),f=Am(n,gm,""),g=Am(r,ym,""),y=Am(o,Sm,""),v=Am(a,wm,""),b=Am(i,_m,""),x=ie("flex",p,h,f,g,y,v,b,c);return(0,u.jsx)(Rm.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,u.jsx)("div",{className:x,children:d}):(0,u.jsx)(Dm,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:i,justify:a,...m})})},Om=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:a,children:i,...l})=>{const{containerType:c,cols:d}=(0,s.useContext)(Rm);if("grid"===c)return(0,u.jsx)(Dm.Item,{className:a,alignSelf:r,justifySelf:o,children:i,...l});const m=Am(r,Em,""),p=Am(o,km,""),h=Am(e,Tm,0),f=Am(t,jm,0),g=Am(n,Pm,0),y=Am(d,Cm,1);return(0,u.jsx)("div",{className:ie("box-border",h,f,g,m,p,y,a),children:i})};Fm.Item=Om,Fm.displayName="Container",Om.displayName="Container.Item";const Mm=({title:e="",description:t="",icon:n=null,iconPosition:r="right",tag:o="h2",size:a="sm",className:i=""})=>{const s={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,u.jsx)(o,{className:ie("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"}[a]),children:e});return t?(0,u.jsxs)("div",{className:i,children:[(0,u.jsxs)("div",{children:[n&&"left"===r&&(0,u.jsxs)("div",{className:ie("flex items-center",s[a]),children:[n,l()]}),n&&"right"===r&&(0,u.jsxs)("div",{className:ie("flex items-center",s[a]),children:[l(),n]}),!n&&l()]}),(0,u.jsx)("p",{className:ie("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[a]),children:t})]}):(0,u.jsxs)("div",{className:i,children:[n&&"left"===r&&(0,u.jsxs)("div",{className:ie("flex items-center",s[a]),children:[n,l()]}),n&&"right"===r&&(0,u.jsxs)("div",{className:ie("flex items-center",s[a]),children:[l(),n]}),!n&&l()]})};var Im=function(){return c().createElement(Mm,{className:"hfe-header-title m-4",description:"",icon:null,iconPosition:"right",size:"xs",tag:"h6"})};const Lm=(0,s.forwardRef)(({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:a=!1,...i},s)=>{if(!e)return null;let l="";return a&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,u.jsx)(t,{ref:s,className:ie("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})});Lm.displayName="Label";const Vm=({label:e,switchId:t,disabled:n=!1,children:r,size:o})=>{const a={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,s.isValidElement)(e))return(0,u.jsxs)("div",{className:ie("inline-flex items-center gap-3","items-start"),children:[r,e]});const c=!e?.heading&&!e?.description,d=e?.heading&&e?.description?"items-start":"items-center";return c?r:(0,u.jsxs)("div",{className:ie("inline-flex",d,"gap-3"),children:[r,(()=>{const{heading:r="",description:s=""}=e||{};return(0,u.jsxs)("div",{className:ie("space-y-0.5",l[o]),children:[r&&(0,u.jsx)(Lm,{htmlFor:t,className:ie("m-0",a[o]),...n&&{variant:"disabled"},children:r}),s&&(0,u.jsx)(Lm,{tag:"p",variant:"help",className:ie("text-sm font-normal leading-5 m-0",i[o]),...n&&{variant:"disabled"},children:s})]})})()]})},zm=(0,s.forwardRef)(({id:e,onChange:t,value:n,defaultValue:r=!1,size:o="sm",disabled:a=!1,label:i={heading:"",description:""},name:l,className:c,...d},m)=>{const p="lg"===o?"md":o,h=(0,s.useMemo)(()=>typeof n<"u",[n]),f=(0,s.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})()}`,[]),[g,y]=(0,s.useState)(r),v="primary",b=(0,s.useCallback)(()=>h?n:g,[h,n,g]),x={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"}},w={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,u.jsx)(Vm,{label:i,switchId:f,disabled:a,size:p,children:(0,u.jsxs)("div",{className:ie("relative group/switch inline-block cursor-pointer rounded-full shrink-0",w[p].container,c),children:[(0,u.jsx)("input",{ref:m,id:f,type:"checkbox",className:ie("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]",x[v].input,a&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!a&&{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"}}[v].input),checked:b(),onChange:e=>{if(a)return;const n=e.target.checked;h||y(n),"function"==typeof t&&t(n)},disabled:a,name:l,...d}),(0,u.jsx)("label",{htmlFor:f,className:ie("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",w[p].toggleDial,x[v].toggleDial,a&&"peer-disabled:cursor-not-allowed",!a&&{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"}[p])})]})})});zm.displayName="Switch";const Bm=rd("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),$m=rd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Um=rd("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Wm=rd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Hm=(0,s.forwardRef)((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:a="button",className:i,children:l,disabled:c=!1,destructive:d=!1,icon:m=null,iconPosition:p="left",loading:h=!1,...f}=e,g=d&&"focus:ring-focus-error",y=h?"opacity-50 disabled:cursor-not-allowed":"",v={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],b=d&&!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]:"",x={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 w,_=null,E="";return m&&(E="flex items-center justify-center","left"===p?w=m:_=m),(0,u.jsxs)(a,{ref:t,type:o,className:ie(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",x,v,b,g,y,{"cursor-default":c},i),disabled:c,...f,children:[(0,u.jsx)(s.Fragment,{children:w},"left-icon"),l?(0,u.jsx)("span",{className:"px-1",children:l}):null,(0,u.jsx)(s.Fragment,{children:_},"right-icon")]})});Hm.displayName="Button";const qm="light",Gm="neutral",Xm=({icon:e,theme:t=qm,variant:n=Gm})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=qm,variant:t=Gm})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,s.isValidElement)(e))return(0,s.cloneElement)(e,{className:ie(r,o,e?.props?.className??"")});const a={neutral:(0,u.jsx)(Bm,{className:ie(r,o)}),info:(0,u.jsx)(Bm,{className:ie(r,o)}),success:(0,u.jsx)($m,{className:ie(r,o)}),warning:(0,u.jsx)(Um,{className:ie(r,o)}),error:(0,u.jsx)(Wm,{className:ie(r,o)})};return a[n]||a.neutral},Km=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=qm})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let a="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(a="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,u.jsx)(Hm,{variant:"outline",size:"xs",onClick:t,className:ie("rounded",o,a,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,u.jsx)(Hm,{variant:"link",size:"xs",onClick:t,className:ie(o,a),children:n});default:return null}},Ym=({theme:e=qm,title:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:ie("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Jm=({theme:e=qm,content:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:ie({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,Zm=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},Qm=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:a,setOpen:i,children:l,className:c,tooltipPortalRoot:d,tooltipPortalId:m,boundary:p="clippingAncestors",strategy:h="fixed",offset:f=8,triggers:g=["hover","focus"],interactive:y=!1})=>{const v=(0,s.useMemo)(()=>"boolean"==typeof a&&"function"==typeof i,[a,i]),[b,x]=(0,s.useState)(!1),w=(0,s.useRef)(null),{refs:_,floatingStyles:E,context:k}=ir({open:v?a:b,onOpenChange:v?i:x,placement:t,strategy:h,middleware:[vn(f),xn({boundary:p}),bn({boundary:p}),(M={element:w},{...yn(M),options:[M,void 0]})],whileElementsMounted:an}),S=tr(k,{enabled:!v&&g.includes("click")}),N=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=t,h=Fn(),f=Rn(),g=Mn(u),y=Mn(c),v=Mn(n),b=s.useRef(),x=s.useRef(-1),w=s.useRef(),_=s.useRef(-1),E=s.useRef(!0),k=s.useRef(!1),S=s.useRef(()=>{}),N=s.useRef(!1),C=s.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]);s.useEffect(()=>{if(l)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(_.current),E.current=!0,N.current=!1)}},[l,a]),s.useEffect(()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Xe(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[i.floating,n,r,l,g,C]);const P=s.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Ln(y.current,"close",b.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(x.current),r(!1,e,n))},[y,r]),T=En(()=>{S.current(),w.current=void 0}),j=En(()=>{if(k.current){const e=Xe(i.floating).body;e.style.pointerEvents="",e.removeAttribute(In),k.current=!1}}),A=En(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));s.useEffect(()=>{if(l&&be(i.domReference)){var e;const r=i.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=i.floating)||e.addEventListener("mouseleave",s),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=i.floating)||e.removeEventListener("mouseleave",s),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(x.current),E.current=!1,d&&!Ge(b.current)||m>0&&!Ln(y.current,"open"))return;const t=Ln(y.current,"open",b.current);t?x.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function a(e){if(A())return;S.current();const t=Xe(i.floating);if(clearTimeout(_.current),N.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(x.current),w.current=g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),A()||P(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(S.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!$e(i.floating,e.relatedTarget))&&P(e)}function s(e){A()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){j(),T(),A()||P(e)}})(e))}},[i,l,e,d,m,p,P,T,j,r,n,v,h,y,g,o,A]),kn(()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){k.current=!0;const e=i.floating;if(be(i.domReference)&&e){var t;const n=Xe(i.floating).body;n.setAttribute(In,"");const r=i.domReference,o=null==h||null==(t=h.nodesRef.current.find(e=>e.id===f))||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,f,i,h,g,C]),kn(()=>{n||(b.current=void 0,N.current=!1,T(),j())},[n,T,j]),s.useEffect(()=>()=>{T(),clearTimeout(x.current),clearTimeout(_.current),j()},[l,i.domReference,T,j]);const D=s.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){E.current||v.current||r(!0,t,"hover")}d&&!Ge(b.current)||n||0===m||N.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(_.current),"touch"===b.current?o():(N.current=!0,_.current=window.setTimeout(o,m)))}}},[d,r,n,v,m]),R=s.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){A()||P(e.nativeEvent,!1)}}),[P,A]);return s.useMemo(()=>l?{reference:D,floating:R}:{},[l,D,R])}(k,{move:!1,enabled:!v&&g.includes("hover"),...y&&{handleClose:vr()}}),C=sr(k,{enabled:!v&&g.includes("focus")}),P=ar(k),T=pr(k,{role:"tooltip"}),{getReferenceProps:j,getFloatingProps:A}=dr([S,N,C,P,T]),{isMounted:D,styles:R}=gr(k,{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],O="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var M;return(0,u.jsxs)(s.Fragment,{children:[(0,s.isValidElement)(l)&&(0,u.jsx)(s.Fragment,{children:(0,s.cloneElement)(l,{ref:Zm(l.ref,_.setReference),className:ie(l.props.className),...j()})},"tooltip-reference"),(0,u.jsx)(Yn,{id:m,root:d,children:D&&(0,u.jsxs)("div",{className:ie("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:_.setFloating,style:{...E,...R},...A(),children:[(0,u.jsxs)("div",{children:[!!n&&(0,u.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,u.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,u.jsx)(jn,{ref:w,context:k,className:ie("fill-current",O)})]})})]})};Qm.displayName="Tooltip";const ep=Nd("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var tp=window.wp.apiFetch,np=o.n(tp),rp=[],op=function(){0!==rp.length&&rp.shift()()},ap=function(e){var t=e.widget,n=e.updateCounter,r=e.showTooltip,o=t.id,a=t.icon,l=t.title,u=(t.infoText,t.is_pro),d=(t.is_active,t.slug,t.demo_url),m=t.doc_url,p=t.description,h=i((0,s.useState)(t.is_active),2),f=h[0],g=h[1],y=i((0,s.useState)(!1),2),v=y[0],b=y[1];(0,s.useEffect)(function(){g(t.is_active)},[t.is_active,n]);var x=function(e){var t=e?"uael_deactivate_widget":"uael_activate_widget",n=new window.FormData;n.append("action",t),n.append("nonce",uaelSettingsData.ajax_nonce),n.append("module_id",o),n.append("is_pro",u);try{var r=np()({url:uaelSettingsData.ajax_url,method:"POST",body:n});r.success?g(f):r.error}catch(e){}finally{b(!1),op()}};return c().createElement(Fm,{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==a?void 0:a.props),style:{fontSize:"22px"}},a),c().createElement("div",{className:"flex items-center gap-x-2",style:{marginBottom:"15px"}},c().createElement(zm,{onChange:function(){v||(b(!0),f?(g(!1),rp.push(function(){return x(f)})):(g(!0),rp.push(function(){return x(f)})),1===rp.length&&op())},size:"sm",value:f,className:"uael-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"},(0,Ad.__)(l,"uael")),c().createElement("div",{className:"flex items-center justify-between w-full"},!uaelSettingsData.hide_settings&&d&&c().createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-text-tertiary m-0 mb-1 uael-remove-ring",style:{textDecoration:"none",lineHeight:"1.5rem"}},(0,Ad.__)("View Demo","uael")),r&&c().createElement("div",{className:"".concat(d?"":"uae-tooltip-wrap")},c().createElement(Qm,{arrow:!0,content:c().createElement("div",null,c().createElement("span",{className:"font-semibold block mb-2"},(0,Ad.__)(l,"uael")),c().createElement("span",{className:"block mb-2"},(0,Ad.__)(p,"uael")),!uaelSettingsData.hide_settings&&m&&c().createElement("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"cursor-pointer",style:{color:"#C8AEFF",textDecoration:"none"}},c().createElement(Pd,{style:{color:"#C8AEFF",width:"11px",height:"11px",marginRight:"3px"}}),(0,Ad.__)("Read Documentation","uael"))),placement:"bottom",title:"",triggers:["click"],variant:"dark",size:"xs"},c().createElement(ep,{className:"h-5 w-5",size:18,color:"#A0A5B2"}))))))},ip=function(){var e=i((0,s.useState)(!0),2),t=e[0],n=e[1],r=i((0,s.useState)(null),2),o=(r[0],r[1]),a=i((0,s.useState)(null),2),l=(a[0],a[1]);if((0,s.useEffect)(function(){n(!0),np()({path:"/uael/v1/templates",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action}}).then(function(e){o(e.templates_status),e.redirect_url&&l(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 uae-subheading"},c().createElement("div",{className:"mb-4"},c().createElement("img",{src:"".concat(uaelSettingsData.templates_url),alt:"Template Showcase",className:"w-full h-auto rounded"})),c().createElement(Mm,{className:"mt-2",icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Build Websites 10x Faster with Templates","uael")}),c().createElement("p",{className:"text-text-secondary mt-2 mb-2 text-sm"},(0,Ad.__)("Choose from our professionally designed websites to build your site faster, with easy customization options.","uael")),c().createElement(Hm,{className:"w-full mt-4",icon:null,iconPosition:"left",size:"md",variant:"secondary",onClick:function(){window.open("https://startertemplates.com/","_blank")}},(0,Ad.__)("Explore Templates","uael")))};const sp=Nd("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"}]]),lp=Nd("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"}]]);var cp=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(Mm,{className:"mb-2",icon:null,iconPosition:"right",size:"xs",tag:"h3",title:(0,Ad.__)("Quick Access","uael")}),c().createElement(Fm,{align:"stretch",className:"p-1 rounded-lg bg-[#F9FAFB] gap-1",containerType:"flex",direction:"column",gap:"",justify:"start",style:{width:"100%",backgroundColor:"#F9FAFB"}},c().createElement(Fm.Item,{alignSelf:"auto",className:"p-4 bg-white rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(Hm,{className:"text-black uael-remove-ring",icon:c().createElement(sp,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://store.brainstormforce.com/support/","_blank")}},(0,Ad.__)("VIP Priority Support","uael"))),c().createElement(Fm.Item,{alignSelf:"auto",className:"p-4 bg-white rounded-lg shadow-container-item",order:"none",shrink:1},c().createElement(Hm,{className:"text-black uael-remove-ring",icon:c().createElement(sp,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/getting-started-uael/","_blank")}},(0,Ad.__)("Knowledge Base","uael"))),c().createElement(Fm.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(Hm,{className:"text-black uael-remove-ring",icon:c().createElement(Cd,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ultimateelementor.com/docs/","_blank")}},(0,Ad.__)("Help Centre","uael"))),c().createElement(Fm.Item,{className:"p-4 bg-white rounded-lg shadow-container-item"},c().createElement(Hm,{className:"text-black uael-remove-ring",icon:c().createElement(lp,null),iconPosition:"left",variant:"link",onClick:function(){window.open("https://ideas.ultimateelementor.com/boards/feature-requests","_blank")}},(0,Ad.__)("Request a Feature","uael")))))};const up=Nd("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var dp=function(){return c().createElement("div",null,c().createElement(Fm,{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(Fm.Item,{shrink:1},c().createElement(Mm,{description:"",icon:null,iconPosition:"right",className:"max-w-lg",size:"lg",tag:"h3",title:(0,Ad.__)("Hello,","uael")}),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0 mt-2"},(0,Ad.__)("Effortlessly design modern websites with "+uaelSettingsData.plugin_short_name+" using our powerful range of widgets & features. Get started by selecting an option based on your needs.","uael")),c().createElement("div",{className:"flex items-center pt-6 gap-2"},uaelSettingsData.is_lite_active?c().createElement(c().Fragment,null,c().createElement(Hm,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] uael-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(uaelSettingsData.uael_hfe_post_url,"_blank")}},(0,Ad.__)("Create Header/Footer","uael")),c().createElement(Hm,{icon:c().createElement(up,null),iconPosition:"right",className:"text-[#6005FF] uael-remove-ring",style:{backgroundColor:"#DDD6FE",outline:"none",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#DDD6FE"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#DDD6FE"},onClick:function(){window.open(uaelSettingsData.elementor_page_url,"_blank")}},(0,Ad.__)("Create New Page","uael"))):c().createElement(Hm,{icon:c().createElement(up,null),iconPosition:"right",className:"text-[#6005FF] uael-remove-ring",style:{backgroundColor:"#DDD6FE",outline:"none",transition:"background-color 0.3s ease"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#DDD6FE"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#DDD6FE"},onClick:function(){window.open(uaelSettingsData.elementor_page_url,"_blank")}},(0,Ad.__)("Create New Page","uael")),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-uael/","_blank")}}))),c().createElement(Fm.Item,{className:"md:mt-0 mt-4"},c().createElement("iframe",{width:"260",height:"160",src:"https://www.youtube.com/embed/YqWd3VYlxcY",frameBorder:"0",style:{borderRadius:"8px"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))};function mp(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)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pp(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function hp(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){pp(a,r,o,i,s,"next",e)}function s(e){pp(a,r,o,i,s,"throw",e)}i(void 0)})}}var fp=window.regeneratorRuntime,gp=o.n(fp);const yp=(0,s.createContext)({}),vp=()=>(0,s.useContext)(yp),bp={open:{opacity:1},exit:{opacity:0}},xp={duration:.2},_p=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:a=!1,exitOnEsc:i=!0,design:l="simple",scrollLock:c=!0})=>{const d=void 0!==e&&void 0!==t,[m,p]=(0,s.useState)(!1),h=(0,s.useRef)(null),f=(0,s.useRef)(null),g=(0,s.useMemo)(()=>d?e:m,[e,m]),y=(0,s.useMemo)(()=>d?t:p,[p,p]),v=()=>{g||y(!0)},b=()=>{g&&y(!1)},x=(0,s.useCallback)(()=>(0,s.isValidElement)(r)?(0,s.cloneElement)(r,{onClick:se(v,r?.props?.onClick)}):"function"==typeof r?r({onClick:v}):null,[r,v,b]),w=e=>{"Escape"===e.key&&i&&b()},_=e=>{a&&h.current&&!h.current.contains(e.target)&&b()};return(0,s.useEffect)(()=>(window.addEventListener("keydown",w),document.addEventListener("mousedown",_),()=>{window.removeEventListener("keydown",w),document.removeEventListener("mousedown",_)}),[g]),(0,s.useEffect)(()=>{if(!c)return;const e=document.querySelector("html");return g&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}},[g]),(0,u.jsxs)(u.Fragment,{children:[x(),(0,u.jsx)(yp.Provider,{value:{open:g,setOpen:y,handleClose:b,design:l,dialogContainerRef:f,dialogRef:h},children:(0,u.jsx)("div",{ref:f,className:ie("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};_p.displayName="Dialog";const Ep=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=vp();return(0,u.jsx)(Qu,{children:n&&(0,u.jsx)(qu.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:bp,role:"dialog",transition:xp,children:(0,u.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,u.jsx)("div",{ref:o,className:ie("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})})})})};Ep.displayName="Dialog.Panel";const kp=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=vp();return r?.current?(0,u.jsx)(u.Fragment,{children:(0,ht.createPortal)((0,u.jsx)(Qu,{children:n&&(0,u.jsx)(qu.div,{className:ie("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:bp,transition:xp})}),r.current)}):null};kp.displayName="Dialog.Backdrop";const Sp=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:ie("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});Sp.displayName="Dialog.Header";const Np=({children:e,as:t="h3",className:n,...r})=>(0,u.jsx)(t,{className:ie("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});Np.displayName="Dialog.Title";const Cp=({children:e,as:t="p",className:n,...r})=>(0,u.jsx)(t,{className:ie("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});Cp.displayName="Dialog.Description";const Pp=({className:e,...t})=>(0,u.jsx)("button",{className:ie("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,u.jsx)(wd,{className:"size-4 text-text-primary shrink-0"})}),Tp=({children:e,as:t=s.Fragment,...n})=>{const{handleClose:r}=vp();return e?t===s.Fragment?"function"==typeof e?e({close:r}):(0,s.cloneElement)(e,{onClick:r}):(0,u.jsx)(t,{...n,onClick:r,children:e}):(0,u.jsx)(Pp,{onClick:r,...n})};Tp.displayName="Dialog.CloseButton";const jp=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:ie("px-5",t),...n,children:e});jp.displayName="Dialog.Body";const Ap=({children:e,className:t})=>{const{design:n,handleClose:r}=vp();return(0,u.jsx)("div",{className:ie("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};Ap.displayName="Dialog.Footer",_p.Panel=Ep,_p.Title=Np,_p.Description=Cp,_p.CloseButton=Tp,_p.Header=Sp,_p.Body=jp,_p.Footer=Ap,_p.Backdrop=kp;var Dp=function(e){var t=e.plugin,n=e.setUpdateCounter,r=t.path,o=t.slug,a=t.siteUrl,l=t.icon,u=t.type,d=t.name,m=t.zipUrl,p=t.desc,h=(t.wporg,t.isFree,t.action,t.status),f=t.settings_url,g=i((0,s.useState)(!1),2),y=g[0],v=g[1],b=i((0,s.useState)(null),2),x=b[0],w=b[1],_=function(e){v(!1);var t=new window.FormData;t.append("action","uael_recommended_plugin_activate"),t.append("nonce",uaelSettingsData.ajax_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,Ad.__)("Activating..","uael"),np()({url:uaelSettingsData.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("uae-plugin-activated"),o.innerText=(0,Ad.__)("Activated","uael"),window.open(f,"_blank"),setTimeout(function(){n(function(e){return e+1})},5e3));else{e.type;var a=document.querySelector('[data-slug="'.concat(e.slug,'"]'));if(a){var i=a.querySelector("span");i&&(i.innerText=(0,Ad.__)("Activate","uael"))}}})};return c().createElement(Fm,{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:"140px",height:"140px",marginTop:"-55px"}})),c().createElement("div",{className:"flex items-center gap-x-2"},c().createElement(_p,{design:"simple",open:y,setOpen:v},c().createElement(_p.Backdrop,null),c().createElement(_p.Panel,null,c().createElement(_p.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(_p.Title,null,(0,Ad.__)("Activate Theme","uael"))),c().createElement(_p.Description,null,(0,Ad.__)("Are you sure you want to switch your current theme to Astra?","uael"))),c().createElement(_p.Footer,null,c().createElement(Hm,{onClick:function(){return _(x)}},(0,Ad.__)("Yes","uael")),c().createElement(Hm,{variant:"outline",onClick:function(){return v(!1)}},(0,Ad.__)("Close","uael"))))))),c().createElement("div",{className:"flex flex-col w-full pb-4"},c().createElement("p",{className:"text-base font-medium text-text-primary pb-1 m-0 cursor-pointer",onClick:function(){return window.open(t.siteurl,"_blank")},style:{marginTop:"-8px"}},(0,Ad.__)(d,"uael")),c().createElement("p",{className:"text-sm font-medium text-text-tertiary m-0"},(0,Ad.__)(p,"uael")),c().createElement("div",{className:"uael-remove-ring"},c().createElement(Hm,{size:"sm",variant:"link",className:"cursor-pointer uael-remove-ring bg-white hover:bg-gray-100 hover:text-gray-900 hover:shadow-md text-gray-800 rounded mt-4 px-2 py-2 transition-all duration-200 ease-in-out transform hover:scale-105 hover:border-gray-400",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"uael_recommended_plugin_activate":"theme"===r.type?(w(r),v(!0)):_(r);break;case"uael_recommended_plugin_install":n.append("action","theme"===r.type?"uael_recommended_theme_install":"uael_recommended_plugin_install"),n.append("_ajax_nonce",uaelSettingsData.installer_nonce),n.append("slug",r.slug),e.target.innerText=(0,Ad.__)("Installing..","uael"),np()({url:uaelSettingsData.ajax_url,method:"POST",body:n}).then(function(t){t.success||"folder_exists"===t.errorCode?(e.target.innerText=(0,Ad.__)("Installed","uael"),function(e){var t=(new Date).toISOString().split("T")[0],n=new URLSearchParams({source:"UAE Pro",target_plugin:e.name,date:t});fetch("".concat("https://webhook.suretriggers.com/suretriggers/a7ac4b20-18f9-4ec6-9813-dfac83328d00","?").concat(n.toString()),{method:"GET"}).then(function(e){return e.json()}).then(function(e){}).catch(function(e){})}(r),"theme"===r.type?(document.querySelector('[data-slug="'.concat(r.slug,'"]')).dataset.action="uael_recommended_plugin_activate",e.target.innerText=(0,Ad.__)("Activate","uael")):_(r)):(e.target.innerText=(0,Ad.__)("Install","uael"),alert("theme"===r.type?(0,Ad.__)("Theme Installation failed, Please try again later.","uael"):(0,Ad.__)("Plugin Installation failed, Please try again later.","uael")))});break;case"site_redirect":window.open(a,"_blank")}},"data-plugin":m,"data-type":u,"data-pluginname":d,"data-slug":o,"data-site":a,"data-init":r,"data-action":function(e){return"Activated"===e?"site_redirect":"Installed"===e?"uael_recommended_plugin_activate":"uael_recommended_plugin_install"}(h),style:{outline:"none",border:"1px solid #ccc"},onMouseEnter:function(e){return e.currentTarget.style.color="#5C2EDE"},onMouseLeave:function(e){return e.currentTarget.style.color="black"}},"Activated"===h?(0,Ad.__)("Visit Site","uael"):"Installed"===h?(0,Ad.__)("Activate","uael"):(0,Ad.__)("Install & Activate","uael")))))};const Rp=({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,u.jsx)("div",{className:ie(r,"animate-pulse",o,t),...n})};function Fp(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 Op=function(){var e=i((0,s.useState)([]),2),t=e[0],n=e[1],r=i((0,s.useState)(!0),2),o=r[0],a=r[1],l=i((0,s.useState)(0),2),u=l[0],d=l[1],m=i((0,s.useState)(!1),2),p=m[0],h=m[1];function f(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?Fp(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({path:t},e[t])})}return(0,s.useEffect)(function(){var e=function(){var e=hp(gp().mark(function e(){var t,r,o,i;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.prev=1,e.next=2,np()({path:"/uael/v1/plugins",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action}});case 2:t=e.sent,r=f(t),n(r),o=r.every(function(e){return e.is_installed}),h(o),e.next=4;break;case 3:e.prev=3,i=e.catch(1),console.error("Error fetching plugins:",i);case 4:return e.prev=4,a(!1),e.finish(4);case 5:case"end":return e.stop()}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()},[u]),p?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,Ad.__)("Extend Your Website","uael")),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:"white"}},o?c().createElement(Fm,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start"},mp(Array(2)).map(function(e,t){return c().createElement(Fm.Item,{key:t,alignSelf:"auto",style:{height:"150px"},className:"text-wrap rounded-md shadow-container-item bg-[#F9FAFB] p-4"},c().createElement("div",{className:"flex flex-col gap-6",style:{marginTop:"40px"}},c().createElement(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"})))})):c().createElement(Fm,{align:"stretch",className:"gap-1 p-1 grid grid-cols-1 md:grid-cols-1",containerType:"grid",justify:"start",style:{backgroundColor:"#F9FAFB"}},t.slice(0,1).map(function(e){return c().createElement(Fm.Item,{key:e.slug,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Dp,{plugin:e,setUpdateCounter:d}))}))))};const Mp=Nd("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ip=Nd("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var Lp=[{id:1,videoId:"kXuXfaetch4",title:(0,Ad.__)("Video Tutorial 1","uael")},{id:2,videoId:"8fu8W4quFg0",title:(0,Ad.__)("Video Tutorial 2","uael")},{id:3,videoId:"wwu4ZzXrhGc",title:(0,Ad.__)("Video Tutorial 3","uael")},{id:4,videoId:"88kTeBv4mWY",title:(0,Ad.__)("Video Tutorial 4","uael")},{id:5,videoId:"NovIe5b2EkQ",title:(0,Ad.__)("Video Tutorial 5","uael")},{id:6,videoId:"kaGfSpGFcnw",title:(0,Ad.__)("Video Tutorial 6","uael")},{id:7,videoId:"7Q-3fAKKhbg",title:(0,Ad.__)("Video Tutorial 7","uael")},{id:8,videoId:"qhFfKf2R-SM",title:(0,Ad.__)("Video Tutorial 8","uael")},{id:9,videoId:"jWzW_oT1iSQ",title:(0,Ad.__)("Video Tutorial 9","uael")},{id:10,videoId:"-FErpbu2F58",title:(0,Ad.__)("Video Tutorial 10","uael")},{id:11,videoId:"hrDAFmPTDgg",title:(0,Ad.__)("Video Tutorial 11","uael")},{id:12,videoId:"2RlvBU_EFV4",title:(0,Ad.__)("Video Tutorial 12","uael")},{id:13,videoId:"7m6FD8Yk3N0",title:(0,Ad.__)("Video Tutorial 13","uael")},{id:14,videoId:"OCD3oZas60w",title:(0,Ad.__)("Video Tutorial 14","uael")},{id:15,videoId:"K4gCczaX-Sg",title:(0,Ad.__)("Video Tutorial 15","uael")},{id:16,videoId:"Izbr-oO0VkU",title:(0,Ad.__)("Video Tutorial 16","uael")},{id:17,videoId:"ruGOgho6RQM",title:(0,Ad.__)("Video Tutorial 17","uael")},{id:18,videoId:"8N_CW1rgvp0",title:(0,Ad.__)("Video Tutorial 18","uael")},{id:19,videoId:"WmrSMl5g3ac",title:(0,Ad.__)("Video Tutorial 19","uael")},{id:20,videoId:"BqXOvmpulQQ",title:(0,Ad.__)("Video Tutorial 20","uael")},{id:21,videoId:"bVfJNMZOsv0",title:(0,Ad.__)("Video Tutorial 21","uael")},{id:22,videoId:"IigQsUdvcRo",title:(0,Ad.__)("Video Tutorial 22","uael")},{id:23,videoId:"tZRjCiUFa-o",title:(0,Ad.__)("Video Tutorial 23","uael")},{id:24,videoId:"TJmcPWToHU0",title:(0,Ad.__)("Video Tutorial 24","uael")},{id:25,videoId:"XuQZzQJbNas",title:(0,Ad.__)("Video Tutorial 25","uael")},{id:26,videoId:"Eh8a3skmVDM",title:(0,Ad.__)("Video Tutorial 26","uael")},{id:27,videoId:"zGvbznihzH8",title:(0,Ad.__)("Video Tutorial 27","uael")},{id:28,videoId:"lgCG5--xyR4",title:(0,Ad.__)("Video Tutorial 28","uael")},{id:29,videoId:"p3zlIYoaaG0",title:(0,Ad.__)("Video Tutorial 29","uael")}],Vp=function(e){var t=e.videoId,n=e.title,r=e.playingVideoId,o=e.setPlayingVideoId,a=r===t;return React.createElement("div",{className:"video-thumbnail-container",onClick:function(){o(t)},style:{cursor:"pointer"}},a?React.createElement("iframe",{width:"300",height:"180",src:"https://www.youtube.com/embed/".concat(t,"?autoplay=1"),frameBorder:"0",style:{borderRadius:"8px"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:n}):React.createElement("div",{style:{position:"relative"}},React.createElement("img",{src:"https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg"),alt:n,width:"300",height:"180",style:{borderRadius:"8px"}}),React.createElement("img",{src:"".concat(uaelSettingsData.video_control),alt:"Play",style:{left:"43%",top:"50%",transform:"translate(-50%, -50%)"},className:"absolute inset-0 w-11 h-11"})))};function zp(){var e=i((0,s.useState)(0),2),t=e[0],n=e[1],r=i((0,s.useState)(null),2),o=r[0],a=r[1];return React.createElement("div",{className:"rounded-lg bg-white w-full mb-4"},React.createElement("div",{className:"flex items-center justify-between p-4",style:{paddingBottom:"0"}},React.createElement("p",{className:"m-0 text-sm pt-4 pl-3 font-semibold text-text-primary"},(0,Ad.__)("Video Tutorials","uael")),React.createElement("div",{className:"flex items-center cursor-pointer gap-x-2 mr-7"},React.createElement(Mp,{className:0===t?"text-gray-300 cursor-not-allowed":"cursor-pointer",onClick:function(){t>0&&n(function(e){return e-1})}}),React.createElement(Ip,{className:t>=Lp.length-3?"text-gray-300 cursor-not-allowed":"cursor-pointer",onClick:function(){t<Lp.length-3&&n(function(e){return e+1})}}))),React.createElement("div",{className:"overflow-hidden bg-black flex-col rounded-lg pl-2 pr-4 py-2 relative"},React.createElement("div",{className:"flex transition-transform duration-300 ease-in-out",style:{transform:"translateX(-".concat(t*(100/Lp.length),"%)"),width:"".concat(Lp.length/2.95*100,"%")}},Lp.map(function(e){return React.createElement("div",{key:e.id,className:"py-2 px-1"},React.createElement(Vp,{videoId:e.videoId,title:e.title,playingVideoId:o,setPlayingVideoId:a}))}))))}const Bp=Nd("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),$p=Nd("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),Up=Nd("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]),Wp=Nd("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);var Hp=function(){var e=i((0,s.useState)(!1),2),t=e[0],n=(e[1],[{label:"Product License",tab:1,icon:Bp},{label:"Widgets/Features",route:Dd.widgets.path,icon:$p},{label:"Post Skins",tab:6,icon:Up},{label:"Integrations",tab:5,icon:Wp}]);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,Ad.__)("Quick Settings","uael"))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4"},t?c().createElement(Fm,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},mp(Array(4)).map(function(e,t){return c().createElement(Fm.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"}))})):c().createElement(Fm,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},null==n?void 0:n.map(function(e,t){var n=e.icon;return c().createElement(Fm.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement("div",{className:"flex flex-col items-start "},n&&c().createElement(n,{className:"h-5 w-5 text-text-secondary"}),c().createElement("h3",{className:"text-sm font-medium text-text-primary"},e.label),c().createElement("button",{onClick:function(t){return e.route?function(e,t){e.preventDefault(),Gd.push("".concat(window.location.pathname,"#").concat(t))}(t,e.route):function(e,t){e.preventDefault();var n=new URLSearchParams(window.location.search);n.set("tab",t);var r=n.toString();Gd.push("".concat(window.location.pathname).concat(r?"?"+r:"","#").concat(Dd.settings.path))}(t,e.tab)},className:"text-sm text-text-tertiary cursor-pointer no-underline hover:text-gray-600 bg-transparent border-none p-0 text-left"},(0,Ad.__)("Configure","uael"))))}))))};let qp=1;const Gp=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter(t=>t!==e)}}publish(e){this.#t.forEach(t=>t(e))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter(t=>t.id!==e),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const a="number"==typeof t?t:qp++;return this.#e.find(e=>e.id===a)&&(this.#e=this.#e.map(e=>e.id===a?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e)),this.add({id:a,title:n,jsx:r,...o}),a}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map(t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t)}dismiss(e){return e||this.#e.forEach(e=>this.#t.forEach(t=>t({id:e.id,dismiss:!0}))),this.#t.forEach(t=>t({id:e,dismiss:!0})),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},Xp=Object.seal(Object.assign((e,t)=>Gp.default(e,t),{success:Gp.success.bind(Gp),error:Gp.error.bind(Gp),warning:Gp.warning.bind(Gp),info:Gp.info.bind(Gp),custom:Gp.custom.bind(Gp),dismiss:Gp.dismiss.bind(Gp),update:Gp.update.bind(Gp)},{getHistory:Gp.history.bind(Gp)})),Kp={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Yp={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},Jp="bg-background-inverse border-background-inverse",Zp={light:"text-icon-secondary",dark:"text-icon-inverse"};let Qp=!1;const eh=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:a="light",design:i="stack",icon:l,variant:c="neutral",removeToast:d})=>{const m=(0,s.useRef)(0),p=(0,s.useRef)(0),h=(0,s.useRef)(),f=(e,t=o)=>{if(r&&!(o<0))return m.current=(new Date).getTime(),setTimeout(()=>{"function"==typeof d&&d(e.id)},t)};(0,s.useEffect)(()=>{const t=o;return h.current=f(e,t),()=>{clearTimeout(h.current)}},[]),(0,s.useEffect)(()=>{!e?.dismiss||"function"!=typeof d||d(e.id)},[e]);const g=()=>{"function"==typeof d&&e?.action?.onClick?.(()=>d(e.id))};let y=null;return"stack"===i&&(y=(0,u.jsx)("div",{className:ie("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===a?Jp:Yp?.[c],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(h.current),p.current=(new Date).getTime()},onMouseLeave:()=>{h.current=f(e,o-(p.current-m.current))},children:"custom"!==e.type?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Xm({variant:c,icon:l,theme:a})}),(0,u.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Ym({title:t,theme:a}),Jm({content:n,theme:a}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,u.jsx)("div",{className:"mt-2.5",children:Km({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:g,theme:a})})]}),(0,u.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,u.jsx)("button",{className:ie("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Zp[a]??Zp.light),onClick:()=>{"function"==typeof d&&d(e.id)},children:(0,u.jsx)(wd,{})})})]}):e?.jsx?.({close:()=>d(e.id),action:e?.action?{...e?.action,onClick:g}:null})})),"inline"===i&&(y=(0,u.jsxs)("div",{className:ie("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===a?Jp:Yp?.[c],"lg:w-[47.5rem] w-full"),children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Xm({variant:c,icon:l,theme:a})}),(0,u.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Ym({title:t,theme:a}),Jm({content:n,theme:a})]}),(0,u.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,u.jsx)("button",{className:ie("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Zp[a]??Zp.light),onClick:()=>d(e.id),children:(0,u.jsx)(wd,{})})})]})),y},th=(e=>(0,s.memo)(t=>{const n=t.singleTon;return Qp&&n?null:(Qp=!0,(0,u.jsx)(e,{...t}))}))(({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:a=5e3})=>{const[i,l]=(0,s.useState)([]);(0,s.useEffect)(()=>{Gp.subscribe(e=>{e?.dismiss?l(t=>t.map(t=>t.id===e.id?{...t,dismiss:!0}:t)):setTimeout(()=>{(0,ht.flushSync)(()=>l(t=>-1!==t.findIndex(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,...e}:t):[...t,e]))})})},[]);const c=e=>{l(t=>t.filter(t=>t.id!==e))};return(0,u.jsx)("ul",{className:ie("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Kp[e]??Kp["top-right"],r),children:(0,u.jsx)(Qu,{initial:!1,children:i.map(e=>(0,u.jsx)(qu.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,u.jsx)(eh,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??a,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id))})})}),nh=Nd("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),rh=Nd("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var oh=function(){var e=i((0,s.useState)(""),2),t=e[0],n=e[1],r=i((0,s.useState)(!1),2),o=r[0],a=r[1],l=i((0,s.useState)(""),2),u=l[0],d=l[1],m=uaelSettingsData.license_status,p=m?(0,Ad.__)("Your license is active.","uael"):(0,Ad.__)("Paste your license key here","uael"),h=uaelSettingsData.is_whitelabel;return c().createElement(c().Fragment,null,c().createElement(th,{dismissAfter:3e3}),c().createElement(Fm,{align:"stretch",className:"bg-background-primary p-6 rounded-lg ",containerType:"flex",direction:"column",gap:"",justify:"start",style:{marginTop:"24px"}},c().createElement(Fm.Item,{className:"flex flex-col space-y-2"},c().createElement("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-solid p-1",style:{borderColor:"rgb(230, 230, 239)"}},c().createElement(rh,{size:24,className:"text-gray-600"})),c().createElement("h3",{className:"m-0 flex items-center text-2xl font-semibold"},m?(0,Ad.__)("Your License","uael"):(0,Ad.__)("License not active","uael")),m?c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.sprintf)((0,Ad.__)("You are using %s Pro!","uael"),uaelSettingsData.plugin_short_name)):c().createElement(c().Fragment,null,c().createElement("p",{className:"text-sm font-normal m-0"},h?c().createElement(c().Fragment,null,(0,Ad.sprintf)((0,Ad.__)("Activate %s Pro to get professional support and automatic updates from your WordPress dashboard.","uael"),uaelSettingsData.plugin_short_name)):c().createElement(c().Fragment,null,(0,Ad.__)("Activate","uael")," ",c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=free-plugin&utm_medium=dashboard&utm_campaign=upgrade",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary",style:{color:"#6005FF"}},uaelSettingsData.plugin_short_name," Pro")," ",(0,Ad.__)("to get professional support and automatic updates from your WordPress dashboard.","uael"))),c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.sprintf)((0,Ad.__)("Please enter your valid license key below to activate %s Pro!","uael"),uaelSettingsData.plugin_short_name),!h&&c().createElement(c().Fragment,null," ",c().createElement("a",{href:"https://store.brainstormforce.com/account/",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary",style:{color:"#6005FF"}},(0,Ad.__)("Click Here","uael"))," ",(0,Ad.__)("to find your license key.","uael"))))),c().createElement(Fm.Item,{className:"flex flex-col lg:flex-row gap-1 items-center mt-2 mb-2",alignSelf:"auto",order:"none"},c().createElement("input",{value:t,onChange:function(e){return n(e.target.value)},placeholder:p,readOnly:m,size:"md",type:"text",className:"w-full shrink ".concat(m?"uael-green-placeholder":"uael-default-placeholder"),style:{height:"48px",outline:"none",boxShadow:"none",borderColor:u?"red":"#e0e0e0"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}),c().createElement("div",{className:"cursor-pointer shrink",style:{minWidth:"fit-content"}},c().createElement(Hm,{icon:o?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",style:{paddingTop:"14px",paddingBottom:"14px",borderColor:"#6005FF",outline:"none"},className:"bg-[#6005FF] rounded-md border border-solid hover:bg-[#6005FF]",variant:"primary",onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:m?function(){a(!0),d("");var e=new window.FormData;e.append("action","uael_license_deactivation"),e.append("security",uaelSettingsData.license_deactivation_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:e}).then(function(e){a(!1),e.success?(Xp.success((0,Ad.__)("License successfully deactivated!","uael")),location.reload()):(Xp.error(e.message||(0,Ad.__)("An error occurred while deactivating license.","uael")),d(e.message||(0,Ad.__)("An error occurred while deactivating license.","uael")))})}:function(){if(!t)return Xp.error((0,Ad.__)("Please enter a valid license key!","uael")),void d((0,Ad.__)("Enter a valid license key!","uael"));a(!0),d("");var e=new window.FormData;e.append("key",t),e.append("action","uael_license_activation"),e.append("security",uaelSettingsData.license_activation_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:e}).then(function(e){a(!1),e.success?(Xp.success((0,Ad.__)("License successfully validated!","uael")),location.reload()):(Xp.error(e.message||(0,Ad.__)("Please enter a valid license key!","uael")),d(e.message||(0,Ad.__)("Enter a valid license key!","uael")))})},disabled:o},o?m?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Activating...","uael"):m?(0,Ad.__)("Deactivate","uael"):(0,Ad.__)("Activate","uael")))),!h&&c().createElement("p",{className:"m-0 text-sm font-semibold text-link-primary no-underline mb-2"},c().createElement("a",{className:"no-underline",href:m?"https://ultimateelementor.com/pricing/?utm_source=pro-plugin&utm_medium=dashboard&utm_campaign=more-upgrade":"https://store.brainstormforce.com/support",target:"_blank",rel:"noopener noreferrer",style:{color:"#6005FF"}},m?(0,Ad.__)("Get another license?","uael"):(0,Ad.__)("Need Help?","uael"))),u&&c().createElement("p",{className:"text-red-500 text-xs",style:{color:"red",marginTop:"-10px"}},u)))},ah=function(){var e=uaelSettingsData.hide_settings?"w-full":"uael-65-width";return c().createElement(c().Fragment,null,c().createElement(pm,null),c().createElement("div",{className:""},c().createElement(Im,null),c().createElement(Fm,{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(Fm.Item,{className:"p-2 ".concat(e),alignSelf:"auto",order:"none",shrink:0},!uaelSettingsData.hide_settings&&c().createElement(dp,null),c().createElement("div",{className:""},c().createElement(Hp,null)),!uaelSettingsData.hide_settings&&c().createElement(zp,null),c().createElement(Op,null)),!uaelSettingsData.hide_settings&&c().createElement(Fm.Item,{className:"p-2 w-full uael-35-width",shrink:1},c().createElement(ip,null),c().createElement("div",{className:"pt-2"},c().createElement(cp,null)),c().createElement("div",{className:"pt-2"},c().createElement(oh,null))))))};const ih=Nd("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),sh=Nd("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function lh(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 ch(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var uh=function(){var e=i((0,s.useState)(null),2),t=e[0],n=e[1],r=i((0,s.useState)(""),2),o=r[0],a=r[1],l=i((0,s.useState)(!1),2),u=l[0],d=l[1],m=i((0,s.useState)(!1),2),p=m[0],h=m[1],f=i((0,s.useState)(!1),2),g=f[0],y=f[1],v=i((0,s.useState)(!0),2),b=v[0],x=v[1],w=i((0,s.useState)(0),2),_=w[0],E=w[1],k=i((0,s.useState)(!0),2),S=k[0];k[1],(0,s.useEffect)(function(){x(!0),np()({path:"/uael/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_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),x(!1)}).catch(function(e){x(!1)})},[]);var N=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)}))}),C=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d(!0),(t=new window.FormData).append("action","uael_bulk_activate_widgets"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){d(!1),e.success?(n(function(e){return e.map(function(e){return ch(ch({},e),{},{is_active:!0})})}),E(function(e){return e+1})):e.error&&console.error("AJAX request failed:",e.error)}).catch(function(e){d(!1),console.error("Error during AJAX request:",e)});case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),P=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(!0),(t=new window.FormData).append("action","uael_bulk_deactivate_unused_widgets"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){var t;if(h(!1),e.success&&Array.isArray(null===(t=e.data)||void 0===t?void 0:t.deactivated)){var r=e.data.deactivated;n(function(e){return e.map(function(e){return r.includes(e.id)?ch(ch({},e),{},{is_active:!1}):e})}),E(function(e){return e+1})}else e.error?console.error("AJAX request failed:",e.error):console.error("Unexpected response structure:",e)}).catch(function(e){h(!1),console.error("Error during AJAX request:",e)});case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),T=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:y(!0),(t=new window.FormData).append("action","uael_bulk_deactivate_widgets"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){y(!1),e.success?(n(function(e){return e.map(function(e){return ch(ch({},e),{},{is_active:!1})})}),E(function(e){return e+1})):e.error&&console.error("AJAX request failed:",e.error)}).catch(function(e){y(!1),console.error("Error during AJAX request:",e)});case 1: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,Ad.__)("Widgets / Features","uael")),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(ih,{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,Ad.__)("Search...","uael"),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){a(e.target.value.toLowerCase())}}),c().createElement("div",{className:"flex flex-row gap-2 w-full md:w-auto"},c().createElement(Qm,{arrow:!0,content:c().createElement("div",null,c().createElement("p",null,(0,Ad.__)("Click here to activate all widgets & extensions.","uael"))),placement:"top",title:"",triggers:["hover"],variant:"dark",size:"xs"},c().createElement(Hm,{icon:u?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",className:"uae-bulk-action-button",onClick:C,disabled:!!o},u?(0,Ad.__)("Activating...","uael"):(0,Ad.__)("Activate All","uael"))),c().createElement(Qm,{arrow:!0,content:c().createElement("div",null,c().createElement("p",null,(0,Ad.__)("Click here to deactivate all unused widgets, except Extensions.","uael"))),placement:"top",title:"",triggers:["hover"],variant:"dark",size:"xs"},c().createElement(Hm,{icon:p?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",onClick:P,className:"uae-bulk-action-button",disabled:!!o},p?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Deactivate Unused","uael"))),c().createElement(Qm,{arrow:!0,content:c().createElement("div",null,c().createElement("p",null,g?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Deactivate All ","uael"))),placement:"top",title:"",triggers:["hover"],variant:"dark",size:"xs"},c().createElement(sh,{className:"relative text-gray-400",onClick:T,style:{backgroundColor:"#F9FAFB",top:"5%",margin:"auto",width:"22px",height:"22px"}},g?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Deactivate All","uael")))))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4",style:{minHeight:"800px"}},b?c().createElement(Fm,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},mp(Array(50)).map(function(e,t){return c().createElement(Fm.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-6 space-y-2"},c().createElement(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"}))})):c().createElement(Fm,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},null==N?void 0:N.map(function(e){return c().createElement(Fm.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(ap,{widget:ch(ch({},e),{},{updateCounter:_}),showTooltip:S,key:e.id,updateCounter:_}))}))))},dh=function(){var e=uaelSettingsData.hide_settings?"w-full":"uael-65-width";return c().createElement(c().Fragment,null,c().createElement(pm,null),c().createElement("div",{className:""},c().createElement(Im,null),c().createElement(Fm,{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(Fm.Item,{className:"p-2 ".concat(e),alignSelf:"auto",order:"none",shrink:1},c().createElement(uh,null)),!uaelSettingsData.hide_settings&&c().createElement(Fm.Item,{className:"p-2 uael-35-width",shrink:1},c().createElement(cp,null),c().createElement("div",{className:"pt-5"})))))},mh=function(e){var t=e.items,n=e.onSelectItem,r=e.selectedItemId;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"},(0,Ad.__)(e.main,"uael")),c().createElement("div",{className:"h-10 flex items-center justify-start gap-2 px-2 rounded-md cursor-pointer ".concat(r===e.id?"bg-gray-100":"bg-background-primary"),style:{backgroundColor:r===e.id?"#F9FAFB":""},onClick:function(){return function(e){n(e)}(e)}},c().createElement("span",null,r===e.id?e.selected:e.icon),c().createElement("p",{className:"m-0 text-base font-normal"},(0,Ad.__)(e.title,"uael")),e.badge&&c().createElement("span",{style:{background:"#6005ff",color:"#fff",fontSize:"10px",fontWeight:600,lineHeight:1,padding:"3px 7px",borderRadius:"999px",letterSpacing:"0.02em"}},e.badge)))}))},ph=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 hh={data:""},fh=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,gh=/\/\*[^]*?\*\/|  +/g,yh=/\n+/g,vh=(e,t)=>{let n="",r="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+i+";":r+="f"==a[1]?vh(i,a):a+"{"+vh(i,"k"==a[1]?"":t)+"}":"object"==typeof i?r+=vh(i,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=vh.p?vh.p(a,i):a+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},bh={},xh=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+xh(e[n]);return t}return e};function wh(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let a=xh(e),i=bh[a]||(bh[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(a));if(!bh[i]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=fh.exec(e.replace(gh,""));)t[4]?r.shift():t[3]?(n=t[3].replace(yh," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(yh," ").trim();return r[0]})(e);bh[i]=vh(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let s=n&&bh.g?bh.g:null;return n&&(bh.g=bh[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)})(bh[i],t,r,s),i})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let a=t[o];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":vh(e,""):!1===e?"":e}return e+r+(null==a?"":a)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||hh})(t.target),t.g,t.o,t.k)}wh.bind({g:1});let _h,Eh,kh,Sh=wh.bind({k:1});function Nh(e,t){let n=this||{};return function(){let r=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;n.p=Object.assign({theme:Eh&&Eh()},s),n.o=/ *go\d+/.test(l),s.className=wh.apply(n,r)+(l?" "+l:""),t&&(s.ref=i);let c=e;return e[0]&&(c=s.as||e,delete s.as),kh&&c[0]&&kh(s),_h(c,s)}return t?t(o):o}}var Ch=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Ph=(()=>{let e=0;return()=>(++e).toString()})(),Th=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),jh="default",Ah=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return Ah(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...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 a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},Dh=[],Rh={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},Fh={},Oh=(e,t=jh)=>{Fh[t]=Ah(Fh[t]||Rh,e),Dh.forEach(([e,n])=>{e===t&&n(Fh[t])})},Mh=e=>Object.keys(Fh).forEach(t=>Oh(e,t)),Ih=(e=jh)=>t=>{Oh(t,e)},Lh={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Vh=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)||Ph()}))(t,e,n);return Ih(r.toasterId||(e=>Object.keys(Fh).find(t=>Fh[t].toasts.some(t=>t.id===e)))(r.id))({type:2,toast:r}),r.id},zh=(e,t)=>Vh("blank")(e,t);zh.error=Vh("error"),zh.success=Vh("success"),zh.loading=Vh("loading"),zh.custom=Vh("custom"),zh.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Ih(t)(n):Mh(n)},zh.dismissAll=e=>zh.dismiss(void 0,e),zh.remove=(e,t)=>{let n={type:4,toastId:e};t?Ih(t)(n):Mh(n)},zh.removeAll=e=>zh.remove(void 0,e),zh.promise=(e,t,n)=>{let r=zh.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?Ch(t.success,e):void 0;return o?zh.success(o,{id:r,...n,...null==n?void 0:n.success}):zh.dismiss(r),e}).catch(e=>{let o=t.error?Ch(t.error,e):void 0;o?zh.error(o,{id:r,...n,...null==n?void 0:n.error}):zh.dismiss(r)}),e};var Bh=Sh`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,$h=Sh`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Uh=Sh`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,Wh=Nh("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Bh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${$h} 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: ${Uh} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,Hh=Sh`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,qh=Nh("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: ${Hh} 1s linear infinite;
`,Gh=Sh`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,Xh=Sh`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,Kh=Nh("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Gh} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${Xh} 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;
  }
`,Yh=Nh("div")`
  position: absolute;
`,Jh=Nh("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,Zh=Sh`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Qh=Nh("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${Zh} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,ef=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?s.createElement(Qh,null,t):t:"blank"===n?null:s.createElement(Jh,null,s.createElement(qh,{...r}),"loading"!==n&&s.createElement(Yh,null,"error"===n?s.createElement(Wh,{...r}):s.createElement(Kh,{...r})))},tf=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,nf=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,rf=Nh("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;
`,of=Nh("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,af=s.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=Th()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[tf(n),nf(n)];return{animation:t?`${Sh(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Sh(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},a=s.createElement(ef,{toast:e}),i=s.createElement(of,{...e.ariaProps},Ch(e.message,e));return s.createElement(rf,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:a,message:i}):s.createElement(s.Fragment,null,a,i))});!function(e){vh.p=void 0,_h=e,Eh=void 0,kh=void 0}(s.createElement);var sf=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let a=s.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 s.createElement("div",{ref:a,className:t,style:n},o)},lf=wh`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,cf=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:a,containerStyle:i,containerClassName:l})=>{let{toasts:c,handlers:u}=((e,t="default")=>{let{toasts:n,pausedAt:r}=((e={},t=jh)=>{let[n,r]=(0,s.useState)(Fh[t]||Rh),o=(0,s.useRef)(Fh[t]);(0,s.useEffect)(()=>(o.current!==Fh[t]&&r(Fh[t]),Dh.push([t,r]),()=>{let e=Dh.findIndex(([e])=>e===t);e>-1&&Dh.splice(e,1)}),[t]);let a=n.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)||Lh[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...n,toasts:a}})(e,t),o=(0,s.useRef)(new Map).current,a=(0,s.useCallback)((e,t=1e3)=>{if(o.has(e))return;let n=setTimeout(()=>{o.delete(e),i({type:4,toastId:e})},t);o.set(e,n)},[]);(0,s.useEffect)(()=>{if(r)return;let e=Date.now(),o=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(!(r<0))return setTimeout(()=>zh.dismiss(n.id,t),r);n.visible&&zh.dismiss(n.id)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let i=(0,s.useCallback)(Ih(t),[t]),l=(0,s.useCallback)(()=>{i({type:5,time:Date.now()})},[i]),c=(0,s.useCallback)((e,t)=>{i({type:1,toast:{id:e,height:t}})},[i]),u=(0,s.useCallback)(()=>{r&&i({type:6,time:Date.now()})},[r,i]),d=(0,s.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:a}=t||{},i=n.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=i.findIndex(t=>t.id===e.id),l=i.filter((e,t)=>t<s&&e.visible).length;return i.filter(e=>e.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[n]);return(0,s.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}})(n,a);return s.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(n=>{let a=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:Th()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(a,u.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return s.createElement(sf,{id:n.id,key:n.id,onHeightUpdate:u.updateHeight,className:n.visible?lf:"",style:i},"custom"===n.type?Ch(n.message,n):o?o(n):s.createElement(af,{toast:n,position:a}))}))},uf=zh,df=[{id:"1",title:(0,Ad.__)("Option 1 (Recommended)","uael"),description:(0,Ad.__)("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.","uael"),value:"1"},{id:"2",title:(0,Ad.__)("Option 2","uael"),description:(0,Ad.__)("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.","uael"),value:"2"}],mf=function(){var e=i((0,s.useState)(uaelSettingsData.theme_option),2),t=e[0],n=e[1],r=i((0,s.useState)(!0),2),o=r[0],a=r[1];(0,s.useEffect)(function(){a(!1)},[]);var l=function(e){var t=e.target.value;n(t),o||u(t)},u=function(){var e=hp(gp().mark(function e(t){var n;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,fetch(uaelSettingsData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_hfe_compatibility_option",hfe_compatibility_option:t,nonce:uaelSettingsData.ajax_nonce})});case 1:return n=e.sent,e.next=2,n.json();case 2:e.sent.success?uf.success("Settings saved successfully!"):uf.error("Failed to save settings"),e.next=4;break;case 3:e.prev=3,e.catch(0),uf.error("Error saving settings");case 4:case"end":return e.stop()}},e,null,[[0,3]])}));return function(t){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:"Theme Support"}),c().createElement(Fm,{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(Fm.Item,{className:"flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,Ad.__)("Select Option to Add Theme Support","uael")),c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.__)("To ensure compatibility between the ".concat(uaelSettingsData.plugin_short_name,"'s header/footer and your theme, please choose one of the following options to enable theme support:"),"uael"))),c().createElement(Fm.Item,{className:"p-2 space-y-4",alignSelf:"auto",order:"none"},df.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 uae-radio-field",name:"hfe_compatibility_option",onChange:l,checked:t===e.value}),c().createElement("div",{className:"flex flex-col cursor-pointer"},c().createElement(Lm,{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-md text-start",style:{paddingTop:"16px",paddingBottom:"16px",backgroundColor:"#F3F0FF"}},c().createElement("p",{className:"m-0"},c().createElement("strong",null,(0,Ad.__)("Note:","uael"))," ",(0,Ad.__)("If neither option works, please contact your theme author to add support for this plugin.","uael")))),c().createElement(cf,{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"}}}}))},pf=function(){var e=i((0,s.useState)(!1),2),t=e[0],n=e[1],r=uaelSettingsData.license_status,o=uaelSettingsData.uael_versions,a=uaelSettingsData.uaelite_versions,l=(0,s.useRef)(o[0].value),u=(0,s.useRef)(a?a[0].value:""),d=i((0,s.useState)(o[0].value),2),m=d[0],p=d[1],h=i((0,s.useState)(a?a[0].value:""),2),f=h[0],g=h[1],y=i((0,s.useState)("uael"),2),v=(y[0],y[1]),b=i((0,s.useState)("elementor-header-footer"),2),x=(b[0],b[1]),w=i((0,s.useState)(!1),2),_=w[0],E=w[1],k=i((0,s.useState)(!1),2),S=k[0],N=k[1];return(0,s.useEffect)(function(){n("enable"===uaelSettingsData.beta_enabled)},[_,S]),c().createElement(c().Fragment,null,c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Version Control","uael")}),c().createElement("div",{className:"box-border bg-background-primary p-6 rounded-lg",style:{marginTop:"24px"}},uaelSettingsData.is_lite_active&&c().createElement(c().Fragment,null,c().createElement(Fm,{align:"stretch",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(Fm.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,Ad.sprintf)((0,Ad.__)("Rollback %s to Previous Version","uael"),uaelSettingsData.plugin_short_name)),c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.__)("Experiencing an issue with current version? Roll back to a previous version to help troubleshoot the issue.","uael"))),c().createElement(Fm.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:"uael"}),c().createElement("select",{id:"uaeliteVersionRollback",ref:u,onBlur:function(){x("elementor-header-footer")},onChange:function(e){g(e.target.value)},style:{padding:"8px",marginRight:"10px",marginTop:"16px",cursor:"pointer",borderRadius:"4px",height:"44px",width:"100px"}},a.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(_p,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:S,setOpen:N,trigger:c().createElement(Hm,{style:{backgroundColor:"#6005ff"}},(0,Ad.__)("Rollback","uael"))},c().createElement(_p.Backdrop,null),c().createElement(_p.Panel,null,c().createElement(_p.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(_p.Title,null,(0,Ad.__)("Rollback to Previous Version","uael")),c().createElement(_p.CloseButton,null))),c().createElement(_p.Body,null,(0,Ad.sprintf)((0,Ad.__)("Are you sure you want to rollback to %s v%s?","uael"),uaelSettingsData.plugin_short_name,f)),c().createElement(_p.Footer,null,c().createElement(Hm,{style:{backgroundColor:"#6005ff"},onClick:function(){var e=uaelSettingsData.uaelite_rollback_url.replace("VERSION",f);N(!1),window.location.href=e}},(0,Ad.__)("Rollback","uael")),c().createElement(Hm,{style:{backgroundColor:"#6005ff"},onClick:function(){N(!1)}},(0,Ad.__)("Cancel","uael")))))))),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"16px",marginBottom:"16px"}})),r&&c().createElement(c().Fragment,null,c().createElement(Fm,{align:"stretch",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(Fm.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("p",{className:"text-base font-semibold m-0"},(0,Ad.sprintf)((0,Ad.__)("Rollback %s Pro to Previous Version","uael"),uaelSettingsData.plugin_short_name)),c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.__)("Experiencing an issue with current version? Roll back to a previous version to help troubleshoot the issue.","uael"))),c().createElement(Fm.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:"uael"}),c().createElement("select",{id:"uaelVersionRollback",ref:l,onBlur:function(e){v("uael"),e.target.style.borderColor="#e0e0e0"},onChange:function(e){p(e.target.value)},style:{padding:"8px",marginRight:"10px",marginTop:"16px",cursor:"pointer",borderRadius:"4px",height:"40px",width:"100px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"}},o.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(_p,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:_,setOpen:E,trigger:c().createElement(Hm,{style:{backgroundColor:"#6005ff"}},(0,Ad.__)("Rollback","uael"))},c().createElement(_p.Backdrop,null),c().createElement(_p.Panel,null,c().createElement(_p.Header,null,c().createElement("div",{className:"flex items-center justify-between"},c().createElement(_p.Title,null,(0,Ad.__)("Rollback to Previous Version","uael")),c().createElement(_p.CloseButton,null))),c().createElement(_p.Body,null,(0,Ad.__)("Are you sure you want to rollback to ".concat(uaelSettingsData.plugin_name," v").concat(m,"?"),"uael")),c().createElement(_p.Footer,null,c().createElement(Hm,{onClick:function(){var e=uaelSettingsData.uael_rollback_url.replace("VERSION",m);E(!1),window.location.href=e},style:{backgroundColor:"#6005ff"}},(0,Ad.__)("Rollback","uael")),c().createElement(Hm,{onClick:function(){E(!1)},style:{backgroundColor:"#6005ff"}},(0,Ad.__)("Cancel","uael")))))))),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"16px",marginBottom:"16px"}})),c().createElement(Fm,{align:"stretch",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(Fm.Item,{className:"shrink flex flex-col space-y-1"},c().createElement("div",{className:"text-base font-semibold m-0 mb-2"},(0,Ad.__)("Enable Beta Version","uael")),c().createElement("div",{className:"text-sm font-normal m-0"},(0,Ad.sprintf)((0,Ad.__)("Turn this on to get notified when a new beta version of %s is available. The beta version will not install automatically. You will need to install it manually. We recommend using it only in a test environment.","uael"),uaelSettingsData.plugin_name)),c().createElement("div",{className:"text-sm font-normal mt-2 pt-2"},(0,Ad.__)("Please read ","uael"),c().createElement("a",{href:"https://ultimateelementor.com/docs/enabling-automatic-beta-updates-for-uael/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin",className:"uael-link-color no-underline uael-remove-ring",target:"_blank",rel:"noopener noreferrer"},(0,Ad.__)("this article","uael")),(0,Ad.__)(" to know more.","uael"))),c().createElement(Fm.Item,{className:"shrink-0 p-2 flex space-y-6",alignSelf:"auto",order:"none",style:{marginTop:"40px"}},c().createElement(zm,{size:"lg",value:t,onChange:function(e){var t=e?"enable":"disable";n(e);var r=new window.FormData;r.append("allow_beta",t),r.append("action","uael_allow_beta_updates"),r.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:r}).then(function(t){t.success||n(!e)}).catch(function(t){n(!e)})}})))))},hf=function(){var e=i((0,s.useState)(!0),2),t=e[0],n=e[1];(0,s.useEffect)(function(){n("no"!==uaelSettingsData.analytics_status)},[]);var r=function(){var e=hp(gp().mark(function e(){var r,o;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n(r=!t),e.prev=1,e.next=2,fetch(uaelSettingsData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"uael_save_analytics_option",uae_usage_optin:r?"yes":"no",nonce:uaelSettingsData.ajax_nonce})});case 2:return o=e.sent,e.next=3,o.json();case 3:e.sent.success?uf.success((0,Ad.__)("Settings saved successfully!","uael")):uf.error((0,Ad.__)("Failed to save settings!","uael")),e.next=5;break;case 4:e.prev=4,e.catch(1),uf.error((0,Ad.__)("Failed to save settings!","uael"));case 5:case"end":return e.stop()}},e,null,[[1,4]])}));return function(){return e.apply(this,arguments)}}();return c().createElement(c().Fragment,null,c().createElement("hr",{className:"w-full border-b-0 border-x-0 border-t border-solid border-t-border-subtle",style:{marginTop:"20px",marginBottom:"20px",borderColor:"#E5E7EB"}}),c().createElement(Fm,{align:"center",className:"flex flex-col lg:flex-row",containerType:"flex",direction:"column",gap:"sm",justify:"start"},c().createElement(Fm.Item,{className:"p-2 flex space-y-4",alignSelf:"auto",order:"none",style:{maxWidth:"100%"}},c().createElement("div",{className:"flex flex-row items-start justify-start px-1 gap-3"},c().createElement(zm,{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-normal text-text-primary m-0"},(0,Ad.__)("Help shape the future of Ultimate Addons for Elementor Pro. Share how you use the plugin so we can build features that matter, fix issues faster, and make smarter decisions. ","uael"),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,Ad.__)("Learn More","uael")))),c().createElement(cf,{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"}}}})))))},ff=function(){var e=i((0,s.useState)(""),2),t=e[0],n=e[1],r=i((0,s.useState)(!1),2),o=r[0],a=r[1],l=i((0,s.useState)(""),2),u=l[0],d=l[1],m=uaelSettingsData.license_status,p=m?(0,Ad.__)("Your license is active.","uael"):(0,Ad.__)("Paste your license key here","uael"),h=uaelSettingsData.is_whitelabel;return c().createElement(c().Fragment,null,c().createElement(cf,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}),c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("My Account","uael")}),c().createElement(Fm,{align:"stretch",className:"bg-background-primary p-6 rounded-lg uael-78-width",containerType:"flex",direction:"column",gap:"",justify:"start",style:{marginTop:"24px"}},c().createElement(Fm.Item,{className:"flex flex-col space-y-2"},c().createElement("span",{className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-solid p-1",style:{borderColor:"rgb(230, 230, 239)"}},c().createElement(rh,{size:24,className:"text-gray-600"})),c().createElement("h3",{className:"m-0 flex items-center text-2xl font-semibold"},m?(0,Ad.__)("Your License","uael"):(0,Ad.__)("License not active","uael")),m?c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.sprintf)((0,Ad.__)("You are using %s Pro!","uael"),uaelSettingsData.plugin_short_name)):c().createElement(c().Fragment,null,c().createElement("p",{className:"text-sm font-normal m-0"},h?c().createElement(c().Fragment,null,(0,Ad.sprintf)((0,Ad.__)("Activate %s Pro to get professional support and automatic updates from your WordPress dashboard.","uael"),uaelSettingsData.plugin_short_name)):c().createElement(c().Fragment,null,(0,Ad.__)("Activate","uael")," ",c().createElement("a",{href:"https://ultimateelementor.com/pricing/?utm_source=free-plugin&utm_medium=account-setting&utm_campaign=upgrade",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary",style:{color:"#6005FF"}},uaelSettingsData.plugin_short_name," Pro")," ",(0,Ad.__)("to get professional support and automatic updates from your WordPress dashboard.","uael"))),c().createElement("p",{className:"text-sm font-normal m-0"},(0,Ad.sprintf)((0,Ad.__)("Please enter your valid license key below to activate %s Pro!","uael"),uaelSettingsData.plugin_short_name),!h&&c().createElement(c().Fragment,null," ",c().createElement("a",{href:"https://store.brainstormforce.com/account/",target:"_blank",rel:"noopener noreferrer",className:"text-link-primary",style:{color:"#6005FF"}},(0,Ad.__)("Click Here","uael"))," ",(0,Ad.__)("to find your license key.","uael"))))),c().createElement(Fm.Item,{className:"flex flex-col lg:flex-row gap-1 items-center space-y-2",alignSelf:"auto",order:"none"},c().createElement("input",{value:t,onChange:function(e){return n(e.target.value)},placeholder:p,readOnly:m,size:"md",type:"text",className:"w-full shrink ".concat(m?"uael-green-placeholder":"uael-default-placeholder"),style:{height:"48px",outline:"none",boxShadow:"none",borderColor:u?"red":"#e0e0e0"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}),c().createElement("div",{className:"cursor-pointer mb-2 shrink",style:{minWidth:"fit-content"}},c().createElement(Hm,{icon:o?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",style:{paddingTop:"14px",paddingBottom:"14px",borderColor:"#6005FF",outline:"none"},className:"bg-[#6005FF] rounded-md border border-solid hover:bg-[#6005FF] mb-2",variant:"primary",onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#4B00CC"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="#6005FF"},onClick:m?function(){a(!0),d("");var e=new window.FormData;e.append("action","uael_license_deactivation"),e.append("security",uaelSettingsData.license_deactivation_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:e}).then(function(e){a(!1),e.success?(zh.success((0,Ad.__)("License successfully deactivated!","uael")),location.reload()):(zh.error(e.message||(0,Ad.__)("An error occurred while deactivating license.","uael")),d(e.message||(0,Ad.__)("An error occurred while deactivating license.","uael")))})}:function(){if(!t)return zh.error((0,Ad.__)("Please enter a valid license key!","uael")),void d((0,Ad.__)("Enter a valid license key!","uael"));a(!0),d("");var e=new window.FormData;e.append("key",t),e.append("action","uael_license_activation"),e.append("security",uaelSettingsData.license_activation_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:e}).then(function(e){a(!1),e.success?(zh.success((0,Ad.__)("License successfully validated!","uael")),location.reload()):(zh.error(e.message||(0,Ad.__)("Please enter a valid license key!","uael")),d(e.message||(0,Ad.__)("Enter a valid license key!","uael")))})},disabled:o},o?m?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Activating...","uael"):m?(0,Ad.__)("Deactivate","uael"):(0,Ad.__)("Activate","uael")))),!h&&c().createElement("p",{className:"m-0 text-sm font-semibold text-link-primary no-underline mb-2"},c().createElement("a",{className:"no-underline",href:m?"https://ultimateelementor.com/pricing/?utm_source=pro-plugin&utm_medium=account-setting&utm_campaign=more-upgrade":"https://store.brainstormforce.com/support",target:"_blank",rel:"noopener noreferrer",style:{color:"#6005FF"}},m?(0,Ad.__)("Get another license?","uael"):(0,Ad.__)("Need Help?","uael"))),u&&c().createElement("p",{className:"text-red-500 text-xs",style:{color:"red",marginTop:"-10px"}},u),c().createElement(hf,null)))};const gf=rd("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),yf=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],a={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,u.jsx)("span",{className:ie("flex",a,o,r),children:n||(0,u.jsx)(gf,{className:"animate-spin shrink-0"})})},vf=Nd("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);var bf=o(181),xf=o.n(bf);function wf(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 _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ef=function(){var e=i((0,s.useState)({google_api:"",developer_mode:!1,language:"",google_places_api:"",yelp_api:"",recaptcha_v3_key:"",recaptcha_v3_secretkey:"",recaptcha_v3_score:"0.5",google_client_id:"",facebook_app_id:"",facebook_app_secret:"",uael_share_button:"",uael_maxmind_geolocation_license_key:"",uael_maxmind_geolocation_db_path:"",uael_twitter_feed_consumer_key:"",uael_twitter_feed_consumer_secret:"",instagram_app_id:"",instagram_app_secret:"",instagram_app_token:"",cloudflare_turnstile_site_key:"",cloudflare_turnstile_secret_key:""}),2),t=e[0],n=e[1],r=i((0,s.useState)(!0),2),o=r[0],a=r[1],l=i((0,s.useState)(null),2),u=l[0],d=l[1],m=i((0,s.useState)(""),2),p=(m[0],m[1]),h=i((0,s.useState)(!1),2),f=h[0],g=h[1],y=i((0,s.useState)(!1),2),v=y[0],b=y[1],x=i((0,s.useState)("success"),2),w=x[0],_=x[1],E="object"===Rd(window.uaeLanguagesData)&&null!==window.uaeLanguagesData?Object.entries(window.uaeLanguagesData):[];(0,s.useEffect)(function(){a(!0),d(null),np()({path:"/uael/v1/settings",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action}}).then(function(e){n(e),a(!1)}).catch(function(e){d(e.message),a(!1)})},[]);var k=(0,s.useCallback)(xf()(function(e,t){if(""!==e&&""!==t){var n="google"===t?"Google Places API Key":"facebook"===t?"Facebook Access Token":"Yelp API Key";np()({path:"/uael/v1/validateApiKey",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action},body:JSON.stringify({apiKey:e,source:t})}).then(function(e){e.success?uf.success("".concat(n," authenticated successfully!")):uf.error("Entered ".concat(n," is invalid"))}).catch(function(e){uf.error(e.message)})}},500),[]),S=function(e,t){n(function(n){return _f(_f({},n),{},Ld({},e,t))}),"google_places_api"===e&&k(t,"google"),"yelp_api"===e&&k(t,"yelp"),"uael_share_button"===e&&k(t,"facebook")};return o?c().createElement("div",{className:"h-screen w-screen flex items-center justify-center",style:{position:"relative"}},c().createElement(yf,{icon:null,size:"lg",className:"bg-transparent relative uae-loader-icon"})):u?c().createElement("div",null,"Error: ",u):c().createElement("form",{onSubmit:function(e){e.preventDefault(),d(null),g(!0),np()({path:"/uael/v1/settings",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action},data:t}).then(function(e){"error"===e.maxmind_status?_("error"):_("success"),p("Settings saved successfully!"),uf.success("Settings saved successfully!")}).catch(function(e){uf.error("Settings cannot be saved!")}).finally(function(){g(!1)})}},c().createElement("div",{className:"rounded-lg uael-settings-page"},c().createElement("div",{className:"flex flex-row items-center justify-between",style:{paddingBottom:"24px"}},c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Integrations","uael")}),c().createElement("div",{className:"flex items-center justify-between [&_h2]:text-[#6005ff]",style:{gap:"22px"}},c().createElement(Hm,{type:"submit",style:{backgroundColor:"#6005ff",position:"relative"},className:"flex items-center justify-center",icon:f?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",disabled:f},f?(0,Ad.__)("Saving...","uael"):(0,Ad.__)("Save","uael")))),c().createElement("div",{className:"w-full flex flex-col gap-8",style:{marginTop:"24px"}},c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Google Map","uael"),description:"",className:""}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("API Key","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Google Map in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/create-google-map-api-key/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael")),"."),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"google_api",value:t.google_api,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Paste your API Key here","uael"),className:"w-full border border-subtle",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"16px"}}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Localization Language","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting sets localization language to google map. The language affects the names of controls, copyright notices, driving directions, and control labels. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/how-to-display-uaels-google-maps-widget-in-your-local-language/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael")),"."),className:"uae-subtitle"}),c().createElement("select",{name:"language",value:t.language,onChange:function(e){return S(e.target.name,e.target.value)},className:"border border-subtle rounded p-2 w-full",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}},c().createElement("option",{value:""},"Default"),E.map(function(e){var t=i(e,2),n=t[0],r=t[1];return c().createElement("option",{key:n,value:n},r)})))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Business Reviews","uael"),description:"",className:""}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Google Places API Key","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Google Places Reviews in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/get-google-places-api-key/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"google_places_api",value:t.google_places_api,className:"w-full border border-subtle",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Google Places API Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}),c().createElement("p",{className:"text-sm font-medium mt-2"},!uaelSettingsData.hide_settings&&c().createElement(c().Fragment,null,(0,Ad.__)("Google now requires an active billing account associated with your API Key. To enable billing click ","uael"),c().createElement("a",{href:"https://console.cloud.google.com/projectselector2/billing/enable",target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("here!","uael"))))),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"16px"}}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Yelp API Key","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Yelp Reviews in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/get-yelp-api-key/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"yelp_api",value:t.yelp_api,className:"w-full border border-subtle px-2",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Yelp API Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Setup reCAPTCHA v3","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: ","uael"),c().createElement("a",{href:"https://www.google.com/recaptcha/about/",target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("reCAPTCHA v3","uael")),(0,Ad.__)(" is a free service by Google that protects your website from spam and abuse. It does this while letting your valid users pass through with ease. ","uael"),c().createElement("a",{href:"https://ultimateelementor.com/docs/user-registration-form-with-recaptcha/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin",target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael")))}),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Site key","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"recaptcha_v3_key",value:t.recaptcha_v3_key,className:"w-full border border-subtle px-2",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter reCAPTCHA v3 Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Secret key","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"recaptcha_v3_secretkey",value:t.recaptcha_v3_secretkey,onChange:function(e){return S(e.target.name,e.target.value)},className:"w-full border border-subtle px-2",placeholder:(0,Ad.__)("Enter reCAPTCHA v3 Secret Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Score Threshold","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"recaptcha_v3_score",value:t.recaptcha_v3_score,onChange:function(e){return S(e.target.name,e.target.value)},className:"w-full border border-subtle px-2",placeholder:(0,Ad.__)("Enter reCAPTCHA v3 Score","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Setup Cloudflare Turnstile","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: ","uael"),c().createElement("a",{href:"https://www.cloudflare.com/products/turnstile/",target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Cloudflare Turnstile","uael")),(0,Ad.__)(" is a privacy-first alternative to CAPTCHA that protects your website from spam and abuse. ","uael"),c().createElement("a",{href:"https://ultimateelementor.com/docs/how-to-setup-cloudflare-turnstile/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin",target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael")))}),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Site key","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"cloudflare_turnstile_site_key",value:t.cloudflare_turnstile_site_key,className:"w-full border border-subtle px-2",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Cloudflare Turnstile Site Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 space-x-2 mt-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Secret key","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"password",name:"cloudflare_turnstile_secret_key",value:t.cloudflare_turnstile_secret_key,onChange:function(e){return S(e.target.name,e.target.value)},className:"w-full border border-subtle px-2",placeholder:(0,Ad.__)("Enter Cloudflare Turnstile Secret Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Login Form","uael"),description:"",className:""}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Google Client ID","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Login with Google in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/create-google-client-id-for-login-form-widget/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"google_client_id",value:t.google_client_id,className:"w-full border border-subtle rounded p-2",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Google Client ID","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"16px"}}),c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Facebook App Details","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Login with Google in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/create-facebook-app-id-for-login-form-widget/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:""}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("App ID","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"facebook_app_id",value:t.facebook_app_id,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Facebook App ID","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},className:"w-full border border-subtle px-2"})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("App Secret","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"facebook_app_secret",value:t.facebook_app_secret,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Facebook App Secret","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},className:"w-full border border-subtle px-2"})))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Social Share","uael"),description:"",className:""}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Facebook Access Token","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to fetch share count of your post/page from Facebook. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/display-share-count-for-facebook/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"uael_share_button",value:t.uael_share_button,className:"w-full border border-subtle rounded p-2",onChange:function(e){return S(e.target.name,e.target.value)},placeholder:"",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("MaxMind Geolocation","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: An integration for utilizing MaxMind to do Geolocation lookups. Please note that this integration will only do Country lookups. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/display-conditions-geolocation/?utm_source=uael-pro-dashboard&utm_medium=uael-menu-page&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:""}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("License Key","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"uael_maxmind_geolocation_license_key",value:t.uael_maxmind_geolocation_license_key,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter MaxMind License Key","uael"),className:"w-full border border-subtle px-2",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Database File Path","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",disabled:!0,name:"uael_maxmind_geolocation_db_path",placeholder:uaelSettingsData.maxmind_db_path,style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},className:"w-full border border-subtle px-2"}))),"error"===w&&c().createElement("div",{className:"error-message font-normal my-0 text-sm"},(0,Ad.__)("The MaxMind license key is invalid. If you have recently created this key, you may need to wait for it to become active.","uael"))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Twitter Feed","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: To display your Twitter Feed on your website, you'll need to acquire Twitter's basic plan and obtain your Twitter Consumer Key and Consumer Secret Key. For guidance on obtaining these keys, ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/twitter-feed-widget/?utm_source=uael-pro-dashboard&utm_medium=uael-editor-screen&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:""}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Consumer Key","uael"),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"uael_twitter_feed_consumer_key",value:t.uael_twitter_feed_consumer_key,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Twitter Consumer Key","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},className:"w-full border border-subtle px-2"})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Consumer Secret","uael"),className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"uael_twitter_feed_consumer_secret",value:t.uael_twitter_feed_consumer_secret,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Twitter Consumer Secret","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"},className:"w-full border border-subtle px-2"})))),c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Instagram Feed - Instagram Product API Details","uael"),description:uaelSettingsData.hide_settings?"":c().createElement(c().Fragment,null,(0,Ad.__)("Note: This setting is required if you wish to use Instagram Feed in your website. ","uael"),c().createElement("a",{href:"".concat(uaelSettingsData.uael_domain,"docs/instagram-feed-widget/?utm_source=uael-pro-dashboard&utm_medium=uael-editor-screen&utm_campaign=uael-pro-plugin"),target:"_blank",rel:"noopener noreferrer",className:"uael-link-color no-underline"},(0,Ad.__)("Need Help?","uael"))),className:""}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("App ID","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"instagram_app_id",value:t.instagram_app_id,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Instagram App ID","uael"),className:"w-full border border-subtle px-2",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("App Secret","uael"),description:"",className:"uae-subtitle"}),c().createElement("input",{type:"text",name:"instagram_app_secret",value:t.instagram_app_secret,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Instagram App Secret","uael"),className:"w-full border border-subtle px-2",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2 mt-1"},c().createElement("div",{className:"flex flex-row items-center justify-between pb-1"},c().createElement(Mm,{icon:null,iconPosition:"right",size:"xs",tag:"h2",title:(0,Ad.__)("Access Token","uael"),description:"",className:"uae-subtitle"}),c().createElement(Hm,{icon:v?c().createElement(nh,{className:"animate-spin"}):c().createElement(vf,{style:{color:"#6005FF"}}),className:"uael-remove-ring",variant:"link",iconPosition:"left",onClick:function(){t.instagram_app_token&&(b(!0),fetch("https://graph.instagram.com/refresh_access_token"+"?grant_type=ig_refresh_token&access_token=".concat(t.instagram_app_token),{method:"GET",headers:{"Content-Type":"application/json"}}).then(function(e){return e.json()}).then(function(e){b(!1),e.access_token?(n(function(t){return _f(_f({},t),{},{instagram_app_token:e.access_token})}),uf.success("Access token refreshed successfully")):e.error&&uf.error(e.error.message||"An error occurred while refreshing the token.")}).catch(function(e){b(!1),uf.error("Failed to refresh the access token. Please try again.")}))},style:{width:"fit-content",outline:"none",textDecoration:"none",color:"#6005FF"}},v?(0,Ad.__)("Refreshing token...","uael"):(0,Ad.__)("Refresh Access Token","uael"))),c().createElement("input",{type:"text",name:"instagram_app_token",value:t.instagram_app_token,onChange:function(e){return S(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Enter Instagram Access Token","uael"),className:"w-full border border-subtle",style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Hm,{type:"submit",style:{backgroundColor:"#6005ff"},icon:f?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",disabled:f,className:"w-full mt-4 sticky"},f?(0,Ad.__)("Saving...","uael"):(0,Ad.__)("Save","uael")),c().createElement(cf,{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"}}}}))))};function kf(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?kf(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nf=function(e){var t=i((0,s.useState)({author:"",author_url:"",plugin_name:"",short_name:"",description:"",hide_branding:!1,logo_url:"",internal_help_links:!1,replace_logo:!1}),2),n=t[0],r=t[1],o=i((0,s.useState)(!0),2),a=o[0],l=o[1],u=i((0,s.useState)(!1),2),d=u[0],m=u[1];if((0,s.useEffect)(function(){l(!0),np()({path:"/uael/v1/branding",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action}}).then(function(e){r({author:e.agency.author||"",author_url:e.agency.author_url||"",plugin_name:e.plugin.name||"",short_name:e.plugin.short_name||"",description:e.plugin.description||"",hide_branding:"1"===e.agency.hide_branding||"enable"===e.agency.hide_branding,replace_logo:"enable"===e.replace_logo,logo_url:e.logo_url||"",internal_help_links:"enable"===e.internal_help_links}),l(!1)}).catch(function(e){console.error("Error fetching branding settings:",e),uf.error((0,Ad.__)("Error fetching settings. Please try again.","uael")),l(!1)})},[]),a)return c().createElement("div",{className:"h-screen w-screen flex items-center justify-center",style:{position:"relative"}},c().createElement(yf,{icon:null,size:"lg",className:"bg-transparent relative uae-loader-icon"}));var p=function(e,t){r(function(n){return Sf(Sf({},n),{},Ld({},e,t))})};return c().createElement("form",{onSubmit:function(e){e.preventDefault(),m(!0);var t={agency:{author:n.author,author_url:n.author_url,hide_branding:n.hide_branding?"enable":"disable"},plugin:{name:n.plugin_name,short_name:n.short_name,description:n.description},logo_url:n.logo_url,internal_help_links:n.internal_help_links?"enable":"disable",replace_logo:n.replace_logo?"enable":"disable"};fetch("/wp-json/uael/v1/branding",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action},body:JSON.stringify(t)}).then(function(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}).then(function(){uf.success((0,Ad.__)("Settings saved successfully!","uael")),location.reload()}).catch(function(e){console.error("Error saving settings:",e),uf.error((0,Ad.__)("Error saving settings. Please try again.","uael"))}).finally(function(){m(!1)})}},c().createElement("div",{className:"rounded-lg"},c().createElement("div",{className:"flex flex-row items-center justify-between",style:{paddingBottom:"24px"}},c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("White Label","uael")}),c().createElement("div",{className:"flex items-center justify-between [&_h2]:text-[#6005ff]",style:{gap:"22px"}},c().createElement("div",{className:"flex items-center gap-1 cursor-pointer",style:{position:"relative"}},c().createElement(Pd,{style:{color:"#6005ff",size:"20px"}}),c().createElement("a",{href:"https://ultimateelementor.com/docs/how-to-white-label-uael/",target:"_blank",className:"text-[#6005ff] text-sm font-medium no-underline",style:{color:"#6005ff",boxShadow:"none"}},(0,Ad.__)("Read Documentation","uael"))),c().createElement(Hm,{type:"submit",style:{backgroundColor:"#6005ff",position:"relative"},className:"flex items-center justify-center",icon:d?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",disabled:d},d?(0,Ad.__)("Saving...","uael"):(0,Ad.__)("Save","uael")))),c().createElement("div",{className:"w-full",style:{marginTop:"24px"}},c().createElement(Fm,{align:"stretch",className:"flex flex-column bg-background-primary p-6 rounded-lg",containerType:"flex",direction:"column"},c().createElement(Mm,{size:"sm",tag:"h2",title:(0,Ad.__)("Plugins Details","uael"),description:(0,Ad.__)("You can change the author name and plugin details that are displayed in the WordPress backend.","uael")}),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Author"),c().createElement("input",{label:(0,Ad.__)("Author:","uael"),name:"author",type:"text",value:n.author,className:"w-full border border-subtle px-2",onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Brainstorm Force","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Author URL"),c().createElement("input",{label:(0,Ad.__)("Author URL:","uael"),name:"author_url",className:"w-full border border-subtle px-2",type:"url",value:n.author_url,onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("https://www.brainstormforce.com","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement("div",{className:"flex flex-row items-center mt-1 w-full gap-3"},c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Plugin Name"),c().createElement("input",{label:(0,Ad.__)("Plugin Name:","uael"),name:"plugin_name",type:"text",className:"w-full border border-subtle px-2",value:n.plugin_name,onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Ultimate Addons","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col space-y-1 basis-1/2 flex-1"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0 mb-2"},"Plugin Short Name"),c().createElement("input",{label:(0,Ad.__)("Plugin Short Name:","uael"),name:"short_name",type:"text",className:"w-full border border-subtle px-2",value:n.short_name,onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("UAE","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}}))),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0"},"Plugin Description"),c().createElement("input",{label:(0,Ad.__)("Plugin Description:","uael"),name:"description",type:"text",className:"w-full border border-subtle",value:n.description,onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("Ultimate Addons is a premium extension for Elementor...","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"6px"}}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement("div",null,c().createElement(Mm,{size:"xs",tag:"h3",title:(0,Ad.__)("Replace or Hide Logo","uael"),className:"mt-4",description:(0,Ad.__)("Enable this option to hide the default logo or replace it with your own logo. (Note: To hide the logo, leave the logo URL field empty.)","uael")})),c().createElement(zm,{onChange:function(e){return p("replace_logo",e)},size:"md",value:n.replace_logo,className:"uael-remove-ring"}))),n.replace_logo&&c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"text-base text-field-label font-semibold m-0"},(0,Ad.__)("Enter logo URL to replace","uael")),c().createElement("input",{label:(0,Ad.__)("Replace Plugin Logo URL:","uael"),name:"logo_url",type:"url",className:"w-full border border-subtle",value:n.logo_url,onChange:function(e){return p(e.target.name,e.target.value)},placeholder:(0,Ad.__)("https://www.example.com/logo.svg","uael"),style:{height:"48px",borderColor:"#e0e0e0",outline:"none",boxShadow:"none",marginTop:"16px"},onFocus:function(e){return e.target.style.borderColor="#6005FF"},onBlur:function(e){return e.target.style.borderColor="#e0e0e0"}})),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement("div",null,c().createElement(Mm,{size:"xs",tag:"h3",title:(0,Ad.__)("Hide White Label Settings","uael"),className:"mt-4",description:(0,Ad.__)("Enabling this option will hide the White Label settings. To access it again, re-activate the plugin.","uael")})),c().createElement(zm,{onChange:function(e){return p("hide_branding",e)},size:"md",value:n.hide_branding}))),c().createElement("div",{className:"border border-subtle",style:{height:"2px",backgroundColor:"#E5E7EB",marginTop:"6px"}}),c().createElement(Fm.Item,{className:"flex flex-col w-full space-y-1 space-x-2"},c().createElement(Mm,{size:"sm",tag:"h2",title:(0,Ad.__)("Elementor Editor Area","uael"),className:"mt-1"}),c().createElement("div",{className:"flex flex-row items-center justify-between px-1"},c().createElement(Mm,{size:"xs",tag:"h3",title:(0,Ad.__)("Show Help Links","uael"),className:"mt-4",description:(0,Ad.__)("Display internal help links in widget editor area.","uael")}),c().createElement(zm,{onChange:function(e){return p("internal_help_links",e)},size:"md",value:n.internal_help_links}))))),c().createElement(cf,{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"}}}})))},Cf=[],Pf=function(){0!==Cf.length&&Cf.shift()()},Tf=function(e){var t=e.widget,n=e.updateCounter,r=t.id,o=t.image,a=t.title,l=i((0,s.useState)(t.is_active),2),u=l[0],d=l[1],m=i((0,s.useState)(!1),2),p=m[0],h=m[1];(0,s.useEffect)(function(){d(t.is_active)},[t.is_active,n]);var f=function(e){var t=e?"uael_deactivate_widget":"uael_activate_widget",n=new window.FormData;n.append("action",t),n.append("nonce",uaelSettingsData.ajax_nonce),n.append("module_id",r);try{var o=np()({url:uaelSettingsData.ajax_url,method:"POST",body:n});o.success?d(u):o.error}catch(e){}finally{h(!1),Pf()}};return c().createElement(Fm,{align:"center",containerType:"flex",direction:"row",justify:"between",gap:""},c().createElement("div",{className:"flex flex-col w-full"},c().createElement("div",{className:"flex items-center justify-between w-full"},c().createElement("p",{className:"text-sm font-medium text-text-primary pt-3 m-0 pb-1"},a),c().createElement("div",{className:"flex items-center"},c().createElement(zm,{onChange:function(){p||(h(!0),u?(d(!1),Cf.push(function(){return f(u)})):(d(!0),Cf.push(function(){return f(u)})),1===Cf.length&&Pf())},size:"sm",value:u}))),c().createElement("img",{src:o,alt:"Custom SVG",className:"mt-2"})))};function jf(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 Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Df=function(){var e=i((0,s.useState)(null),2),t=e[0],n=e[1],r=i((0,s.useState)(!1),2),o=r[0],a=r[1],l=i((0,s.useState)(!1),2),u=l[0],d=l[1],m=i((0,s.useState)(0),2),p=m[0],h=m[1],f=i((0,s.useState)(!0),2),g=f[0],y=f[1];(0,s.useEffect)(function(){y(!0),np()({path:"/uael/v1/postskins",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_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,image:r.image,default:r.default,is_active:void 0===r.is_activate||r.is_activate})}return t}(e);n(t),y(!1)}).catch(function(e){y(!1)})},[]);var v=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a(!0),(t=new window.FormData).append("action","uael_bulk_activate_skins"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){a(!1),e.success?(n(function(e){return e.map(function(e){return Af(Af({},e),{},{is_active:!0})})}),h(function(e){return e+1}),uf.success((0,Ad.__)("All skins activated successfully!.","uael"))):e.error&&(console.error("AJAX request failed:",e.error),uf.error((0,Ad.__)("Failed to activate all skins.","uael")))}).catch(function(e){a(!1),console.error("Error during AJAX request:",e),uf.error((0,Ad.__)("An error occurred while activating all skins.","uael"))});case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:d(!0),(t=new window.FormData).append("action","uael_bulk_deactivate_skins"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){d(!1),e.success?(n(function(e){return e.map(function(e){return Af(Af({},e),{},{is_active:!1})})}),h(function(e){return e+1}),uf.success((0,Ad.__)("All skins deactivated successfully!.","uael"))):e.error&&(console.error("AJAX request failed:",e.error),uf.error((0,Ad.__)("Failed to deactivate all skins.","uael")))}).catch(function(e){d(!1),console.error("Error during AJAX request:",e),uf.error((0,Ad.__)("An error occurred while deactivating all skins.","uael"))});case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return g?c().createElement("div",{className:"h-screen w-screen flex items-center justify-center",style:{position:"relative"}},c().createElement(yf,{icon:null,size:"lg",className:"bg-transparent relative uae-loader-icon"})):c().createElement(c().Fragment,null,c().createElement(cf,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:"40px"},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}),c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("Post Widget Skins","uael")}),c().createElement("div",{className:"rounded-lg bg-white mb-4"},c().createElement("div",{className:"flex flex-col md:flex-row items-center justify-between p-4",style:{paddingBottom:"0",marginTop:"16px"}},c().createElement("p",{className:"m-0 text-sm font-semibold text-text-primary"},"Skins"),c().createElement("div",{className:"flex items-center gap-x-2 mr-7"},c().createElement(Hm,{icon:o?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",className:"uae-bulk-action-button",onClick:v},o?"Activating...":"Activate All"),c().createElement(Hm,{icon:u?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",onClick:b,className:"uae-bulk-action-button"},u?"Deactivating...":"Deactivate All"))),c().createElement("div",{className:"flex bg-black flex-col rounded-lg p-4"},g?c().createElement(Fm,{align:"stretch",className:"p-2 gap-1.5",cols:1,style:{backgroundColor:"#F9FAFB",height:"380px"},containerType:"grid",gap:"",justify:"start"},mp(Array(4)).map(function(e,t){return c().createElement(Fm.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md bg-background-primary p-6 space-y-2"},c().createElement(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"}))})):c().createElement(Fm,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-1 md:grid-cols-2",containerType:"grid",gap:"",justify:"start",style:{backgroundColor:"#F9FAFB"}},null==t?void 0:t.slice(0,4).map(function(e){return c().createElement(Fm.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(Tf,{widget:Af(Af({},e),{},{updateCounter:p}),key:e.id,updateCounter:p}))})))))};const Rf=Nd("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),Ff=Nd("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Of=Nd("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]),Mf=Nd("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),If=Nd("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),Lf=Nd("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Vf=Nd("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"}]]),zf=Nd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Bf=Nd("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),$f=Nd("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Uf=Nd("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);function Wf(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 Hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qf=function(e){var t=e.children;return c().createElement("div",{className:"uae-ai-card"},t)},Gf=function(e){var t=e.title,n=e.description,r=e.right;return c().createElement("div",{className:"uae-ai-cardhead"},c().createElement("div",{className:"uae-ai-cardhead-main"},c().createElement("h3",{className:"uae-ai-c-ink text-base font-semibold m-0"},t),n&&c().createElement("p",{className:"uae-ai-c-muted text-sm font-normal m-0"},n)),r)},Xf=function(e){var t=e.tone,n=void 0===t?"ok":t,r=e.dot,o=e.dotClass,a=void 0===o?"":o,i=e.children;return c().createElement("span",{className:"uae-ai-hbadge text-xs font-semibold ".concat("ok"===n?"is-ok":"")},r&&c().createElement("span",{className:"uae-ai-hbadge-dot ".concat(a)}),i)},Kf=function(e){var t=e.tone,n=void 0===t?"ok":t,r=e.children;return c().createElement("span",{className:"uae-ai-chip text-xxs font-semibold ".concat("ok"===n?"is-ok":"is-muted")},c().createElement("span",{className:"uae-ai-chip-dot"}),r)},Yf=function(){return c().createElement("div",{className:"uae-ai-notice",role:"status"},c().createElement($f,{size:20,className:"uae-ai-notice-icon"}),c().createElement("div",{className:"uae-ai-notice-main"},c().createElement("div",{className:"uae-ai-notice-title uae-ai-c-ink text-base font-semibold"},(0,Ad.__)("MCP Adapter plugin not detected","uael")),c().createElement("p",{className:"uae-ai-notice-body uae-ai-c-ink2 text-sm m-0"},(0,Ad.__)("To connect AI clients to your site, the","uael")," ",c().createElement("a",{className:"uae-ai-notice-link",href:"https://github.com/WordPress/mcp-adapter",target:"_blank",rel:"noopener noreferrer"},(0,Ad.__)("WP MCP Adapter","uael"))," ",(0,Ad.__)("plugin is required. Download the latest release from GitHub, upload it via Plugins > Add New > Upload Plugin, and activate.","uael")),c().createElement("a",{className:"uae-ai-notice-btn text-sm font-semibold",href:"https://github.com/WordPress/mcp-adapter/releases/latest/download/mcp-adapter.zip",target:"_blank",rel:"noopener noreferrer"},(0,Ad.__)("Download from GitHub","uael"))))},Jf=function(e){var t=e.emphasized,n=e.icon,r=e.title,o=e.description,a=e.tag,i=e.locked,s=e.value,l=e.onChange,u=e.disabled,d=e.switchSize,m=void 0===d?"sm":d;return c().createElement("div",{className:"uae-ai-trow ".concat(t?"is-emphasized":""," ").concat(i?"is-locked":"")},c().createElement("div",{className:"uae-ai-trow-icon"},n),c().createElement("div",{className:"uae-ai-trow-body"},c().createElement("div",{className:"uae-ai-trow-title uae-ai-c-ink font-semibold ".concat(t?"text-base":"text-sm")},r,"write"===a&&c().createElement("span",{className:"uae-ai-tag is-write text-xxs font-semibold"},(0,Ad.__)("Write","uael")),"read"===a&&c().createElement("span",{className:"uae-ai-tag is-read text-xxs font-semibold"},(0,Ad.__)("Read","uael")),i&&c().createElement(Uf,{size:12,className:"uae-ai-c-muted"})),c().createElement("div",{className:"uae-ai-trow-desc uae-ai-c-muted text-sm"},o)),c().createElement(zm,{size:m,value:!!s,onChange:l,disabled:u,"aria-label":"string"==typeof r?r:void 0}))},Zf=function(e){var t=e.active,n=e.onClick,r=e.children;return c().createElement("button",{onClick:n,className:"uae-ai-tab text-sm ".concat(t?"is-active font-semibold":"font-medium")},r)},Qf=function(e){var t=e.active,n=e.onClick,r=e.count,o=e.children;return c().createElement("button",{onClick:n,className:"uae-ai-fchip text-xs ".concat(t?"is-active":"")},o,c().createElement("span",{className:"uae-ai-fchip-count text-xxs"},r))},eg=function(e){var t=e.active,n=e.onClick,r=e.children;return c().createElement("button",{onClick:n,className:"uae-ai-scope-btn text-sm ".concat(t?"is-active font-semibold":"font-medium")},r)},tg=function(e){var t=e.readonly;return c().createElement("span",{className:"uae-ai-tag text-xxs font-semibold ".concat(t?"is-read":"is-write")},t?(0,Ad.__)("Read","uael"):(0,Ad.__)("Write","uael"))},ng=function(){var e,t,n,r,o,a=window.uaelSettingsData||{},l=a.mcp_settings||{},u=a.is_abilities_api_active,d=a.is_mcp_adapter_active,m=a.is_angie_active,p=a.site_url||window.location.origin,h=a.current_user||"admin",f=a.rest_url||p.replace(/\/$/,"")+"/wp-json/",g=a.application_passwords_url||p+"/wp-admin/profile.php#application-passwords-section",y=i((0,s.useState)({enable_abilities:null!==(e=l.enable_abilities)&&void 0!==e&&e,allow_modifications:null===(t=l.allow_modifications)||void 0===t||t,dedicated_server:null!==(n=l.dedicated_server)&&void 0!==n&&n,angie_enabled:null!==(r=l.angie_enabled)&&void 0!==r&&r,disabled_abilities:null!==(o=l.disabled_abilities)&&void 0!==o?o:[]}),2),v=y[0],b=y[1],x=(0,s.useRef)(v);(0,s.useEffect)(function(){x.current=v},[v]);var w=i((0,s.useState)(!1),2),_=(w[0],w[1]),E=i((0,s.useState)([]),2),k=E[0],S=E[1],N=i((0,s.useState)({}),2),C=N[0],P=N[1],T=i((0,s.useState)("overview"),2),j=T[0],A=T[1],D=i((0,s.useState)("uae-only"),2),R=D[0],F=D[1],O=i((0,s.useState)(!1),2),M=O[0],I=O[1],L=i((0,s.useState)(!1),2),V=L[0],z=L[1],B=i((0,s.useState)(""),2),$=B[0],U=B[1],W=i((0,s.useState)("all"),2),H=W[0],q=W[1];(0,s.useEffect)(function(){np()({path:"/uael/v1/mcp-abilities",headers:{"X-WP-Nonce":a.uael_nonce_action}}).then(function(e){Array.isArray(e)&&S(e)}).catch(function(){})},[]),(0,s.useEffect)(function(){"server"!==j||v.enable_abilities&&v.dedicated_server||A("overview")},[j,v.enable_abilities,v.dedicated_server]);var G={"hfe-info":(0,Ad.__)("Plugin Info","uael"),"hfe-pages":(0,Ad.__)("Pages","uael"),"hfe-templates":(0,Ad.__)("Templates & Builder","uael"),"hfe-widgets":(0,Ad.__)("Widgets","uael"),"hfe-extensions":(0,Ad.__)("Extensions","uael"),"hfe-display-rules":(0,Ad.__)("Display Rules","uael"),"hfe-active-templates":(0,Ad.__)("Active Templates","uael"),"hfe-theme-compat":(0,Ad.__)("Theme","uael"),"hfe-settings":(0,Ad.__)("Settings","uael"),"hfe-shortcodes":(0,Ad.__)("Shortcode","uael"),"hfe-design":(0,Ad.__)("Design System","uael"),"hfe-maintenance":(0,Ad.__)("Maintenance","uael"),"hfe-pro":(0,Ad.__)("Pro Features","uael"),"uael-info":(0,Ad.__)("Plugin Info","uael"),"uael-skins":(0,Ad.__)("Post Skins","uael"),"uael-settings":(0,Ad.__)("Integrations & Branding","uael"),"uael-widgets":(0,Ad.__)("Widget Management","uael"),"uael-builder":(0,Ad.__)("Page Builder","uael"),"uael-pages":(0,Ad.__)("Page Management","uael"),"uael-design":(0,Ad.__)("Design System","uael"),"uael-maintenance":(0,Ad.__)("Maintenance","uael")},X={"hfe-info":(0,Ad.__)("Plugin version, health, and compatibility info","uael"),"hfe-pages":(0,Ad.__)("Create and manage WordPress pages","uael"),"hfe-templates":(0,Ad.__)("Create, edit, and manage templates and page layouts","uael"),"hfe-widgets":(0,Ad.__)("Activate, deactivate, and list available widgets","uael"),"hfe-extensions":(0,Ad.__)("Toggle Scroll to Top and Reading Progress Bar","uael"),"hfe-display-rules":(0,Ad.__)("Control where templates appear on your site","uael"),"hfe-active-templates":(0,Ad.__)("See which header/footer is active on any page","uael"),"hfe-theme-compat":(0,Ad.__)("Theme detection and compatibility settings","uael"),"hfe-settings":(0,Ad.__)("Read and update plugin configuration","uael"),"hfe-shortcodes":(0,Ad.__)("Render template shortcodes","uael"),"hfe-design":(0,Ad.__)("Get site colors, fonts, and spacing","uael"),"hfe-maintenance":(0,Ad.__)("Clear caches and run maintenance tasks","uael"),"hfe-pro":(0,Ad.__)("UAE Pro upgrade information and pricing","uael"),"uael-info":(0,Ad.__)("Plugin version, widgets, and compatibility info","uael"),"uael-skins":(0,Ad.__)("Manage post display skins","uael"),"uael-settings":(0,Ad.__)("Manage API keys and white-label branding","uael"),"uael-widgets":(0,Ad.__)("Activate, deactivate, and list Pro widgets","uael"),"uael-builder":(0,Ad.__)("Build and modify page layouts with Elementor","uael"),"uael-pages":(0,Ad.__)("Create and manage WordPress pages","uael"),"uael-design":(0,Ad.__)("Get site colors, fonts, and spacing","uael"),"uael-maintenance":(0,Ad.__)("Clear caches and run maintenance tasks","uael")},K=(0,s.useMemo)(function(){var e={};return k.forEach(function(t){var n=t.category||"other";e[n]||(e[n]=[]),e[n].push(t)}),e},[k]),Y=(0,s.useMemo)(function(){return k.filter(function(e){return e.readonly}).length},[k]),J=k.length-Y,Z=function(e){return!(!v.enable_abilities||!e.readonly&&!v.allow_modifications||v.disabled_abilities.includes(e.name))},Q=(0,s.useMemo)(function(){return k.filter(Z).length},[k,v.enable_abilities,v.allow_modifications,v.disabled_abilities]),ee=function(e){return(K[e]||[]).every(function(e){return!v.disabled_abilities.includes(e.name)})},te=(0,s.useRef)(Promise.resolve()),ne=(0,s.useRef)(v),re=(0,s.useRef)(0),oe=function(){var e=hp(gp().mark(function e(t,n){var r,o;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.prev=1,e.next=2,np()({path:"/uael/v1/mcp-settings",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":a.uael_nonce_action},body:JSON.stringify(t)});case 2:if((r=e.sent)&&r.success){e.next=3;break}throw new Error(r&&r.message?r.message:"save_failed");case 3:ne.current=t,uf.success((0,Ad.__)("Settings saved.","uael")),e.next=5;break;case 4:e.prev=4,e.catch(1),n===re.current&&(o=Hf({},ne.current),x.current=o,b(o)),uf.error((0,Ad.__)("Failed to save settings.","uael"));case 5:return e.prev=5,_(!1),e.finish(5);case 6:case"end":return e.stop()}},e,null,[[1,4,5,6]])}));return function(t,n){return e.apply(this,arguments)}}(),ae=function(e){var t=++re.current;return te.current=te.current.then(function(){return oe(e,t)},function(){return oe(e,t)}),te.current},ie=function(e,t){var n=Hf(Hf({},x.current),{},Ld({},e,t));x.current=n,b(n),ae(n)},se=(0,s.useMemo)(function(){try{return new URL(f).hostname.replace(/[^a-zA-Z0-9-]/g,"-")}catch(e){return"site"}},[f]),le="uae-only"===R,ce="".concat(se,le?"-uae":"-global"),ue="".concat(f,le?"uae/mcp":"mcp/mcp-adapter-default-server"),de={command:"npx",args:["-y","@automattic/mcp-wordpress-remote@latest"],env:{WP_API_URL:ue,WP_API_USERNAME:h,WP_API_PASSWORD:"your-application-password"}},me=JSON.stringify({mcpServers:Ld({},ce,de)},null,2),pe=JSON.stringify(Ld({},ce,de),null,2),he="Add this MCP server to my AI client so I can connect to my WordPress site:\n".concat(pe,"\n\nSteps:\n1. Ask which AI client I use if unsure (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, ChatGPT, etc.) and what OS I'm on (macOS, Windows, Linux) — both are needed to locate the correct config file.\n\n2. Ask for my Application Password upfront (before proceeding to any other steps). The placeholder in the JSON above says \"your-application-password\" — replace it with what I provide. If I don't have one, direct me to:\n   ").concat(g,"\n\n3. If using ChatGPT:\n   Go to Settings → Connectors → Add Connector and paste this URL as the Connector URL:\n   ").concat(ue,"\n\n   Use HTTP Basic Auth with my WordPress username and an Application Password.\n\n   If I don't have an Application Password, direct me to:\n   ").concat(g,'\n\n   See also:\n   https://developers.openai.com/apps-sdk/deploy/connect-chatgpt\n\n   Skip steps 4–8.\n\n4. Locate the correct MCP config file for my client and OS. Verify the path exists on my system — do not guess. If it doesn\'t exist, confirm the path with me before creating.\n\n5. Merge into existing config if present — do NOT overwrite other MCP server entries. For VS Code, use "servers" key instead of "mcpServers".\n\n6. Detect my Node.js setup by running:\n   which npx && node --version && echo $PATH\n\n   - If you can run terminal commands directly (e.g. Claude Code, Cursor, Windsurf, VS Code agent), run this yourself.\n   - If you are sandboxed and cannot run terminal commands (e.g. Claude Desktop, ChatGPT), ask me to run it and paste the output back.\n   - Requires Node.js v20 or v22. If below v20 or v23+, warn me and stop.\n   - Set "command" to the full npx path from "which npx" — never use a path from your own environment.\n   - Add "PATH" to "env" using the actual $PATH output — include the node bin directory, Homebrew paths (/opt/homebrew/bin, /usr/local/bin), and system paths.\n   - MCP servers don\'t inherit the user\'s shell PATH, so include everything needed for node, npx, and git.\n\n7. If you\'re sandboxed (e.g. Claude Desktop) and can\'t write to the real filesystem, don\'t write to a sandbox path. Instead, output the final JSON in a code block with the file path so I can save it manually.\n\n8. Verify the final JSON is valid and confirm what was added.'),fe=function(e){if("read"===H&&!e.readonly)return!1;if("write"===H&&e.readonly)return!1;if($){var t=$.toLowerCase();return(e.label||"").toLowerCase().includes(t)||(e.description||"").toLowerCase().includes(t)||e.name.toLowerCase().includes(t)}return!0};if(!u)return c().createElement("div",{className:"uae-ai-tools uae-ai-empty"},c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("AI Tools","uael")}),c().createElement("div",{className:"uae-ai-empty-note text-sm"},c().createElement("strong",{className:"uae-ai-c-ink"},(0,Ad.__)("Requires WordPress 6.8+","uael"))," ",(0,Ad.__)("AI Tools requires WordPress 6.8 or later, which includes the Abilities API.","uael")),c().createElement(cf,{position:"top-right"}));var ge=v.enable_abilities,ye=ge&&v.dedicated_server,ve=ge&&v.allow_modifications,be=ge&&v.angie_enabled&&m,xe=k.length?Math.round(Q/k.length*100):0;return c().createElement("div",{className:"uae-ai-tools"},c().createElement("div",{className:"uae-ai-header"},c().createElement("div",null,c().createElement(Mm,{description:"",icon:null,iconPosition:"right",size:"sm",tag:"h2",title:(0,Ad.__)("AI Tools","uael")}),c().createElement("div",{className:"uae-ai-badges"},ge?c().createElement(Xf,{tone:"ok",dot:!0},(0,Ad.__)("Abilities enabled","uael")):c().createElement(Xf,{tone:"neutral",dot:!0},(0,Ad.__)("Abilities disabled","uael")),c().createElement(Xf,{tone:"neutral",dot:!0,dotClass:ge?"is-blue":"is-grey"},(0,Ad.sprintf)((0,Ad.__)("%1$d / %2$d abilities","uael"),ge?Q:0,k.length||0)))),c().createElement("button",{onClick:function(){var e={enable_abilities:!1,allow_modifications:!0,dedicated_server:!1,angie_enabled:!1,disabled_abilities:[]};x.current=e,b(e),ae(e),A("overview")},disabled:!1,className:"uae-ai-reset text-xs font-medium"},c().createElement(Rf,{size:14}),(0,Ad.__)("Reset to defaults","uael"))),c().createElement(qf,null,c().createElement(Gf,{title:(0,Ad.__)("Settings","uael"),description:(0,Ad.__)("Control how UAE registers AI tools with WordPress and exposes them to clients.","uael")}),c().createElement("div",null,c().createElement(Jf,{emphasized:!0,icon:c().createElement(Ff,{size:18}),title:(0,Ad.__)("Enable Abilities","uael"),description:(0,Ad.__)("Register UAE AI tools with WordPress so they can be used by MCP clients (such as Claude, Cursor, and VS Code) and Elementor's Angie assistant. Disabled by default — enable this option to expose AI tools.","uael"),value:v.enable_abilities,onChange:function(e){return ie("enable_abilities",e)}}),c().createElement(Jf,{icon:c().createElement(Of,{size:18}),title:(0,Ad.__)("Enable Edit Abilities","uael"),tag:"write",locked:!ge,description:(0,Ad.__)("When enabled, AI clients can create, edit, and delete templates, pages, and widget settings. When disabled, AI clients have read-only access to your data.","uael"),value:v.allow_modifications,onChange:function(e){return ie("allow_modifications",e)},disabled:!ge}),c().createElement(Jf,{icon:c().createElement(Mf,{size:18}),title:(0,Ad.__)("Enable MCP Server","uael"),locked:!ge,description:(0,Ad.__)("Creates a dedicated UAE MCP endpoint that AI clients like Claude, Cursor, and VS Code can connect to. When disabled, the endpoint is removed and external AI clients cannot discover or call any UAE abilities.","uael"),value:v.dedicated_server,onChange:function(e){return ie("dedicated_server",e)},disabled:!ge}),c().createElement(Jf,{icon:c().createElement(If,{size:18}),title:(0,Ad.__)("Angie Integration","uael"),locked:!ge||!m,description:m?(0,Ad.__)("Enable UAE abilities within Elementor's Angie AI assistant so it can use them in-browser without an external MCP client.","uael"):(0,Ad.__)("Install and activate the Angie plugin to use in-browser AI.","uael"),value:v.angie_enabled&&m,onChange:function(e){return ie("angie_enabled",e)},disabled:!ge||!m}))),ge&&c().createElement(c().Fragment,null,c().createElement("div",{className:"uae-ai-tabs"},c().createElement(Zf,{active:"overview"===j,onClick:function(){return A("overview")}},(0,Ad.__)("Overview","uael")),c().createElement(Zf,{active:"abilities"===j,onClick:function(){return A("abilities")}},(0,Ad.__)("Abilities","uael"),c().createElement("span",{className:"uae-ai-tab-count text-xxs font-semibold ".concat("abilities"===j?"is-active":"")},k.length)),ye&&c().createElement(Zf,{active:"server"===j,onClick:function(){return A("server")}},(0,Ad.__)("Server & Connect","uael"))),"overview"===j&&c().createElement(qf,null,c().createElement(Gf,{title:(0,Ad.__)("Connection status","uael"),description:(0,Ad.__)("How AI clients reach your site right now","uael")}),c().createElement("div",{className:"uae-ai-connbanner ".concat(ge?"is-active":"is-off")},c().createElement("span",{className:"uae-ai-connbanner-dot"}),c().createElement("div",{className:"uae-ai-connbanner-main"},c().createElement("div",{className:"uae-ai-connbanner-title text-sm font-semibold"},ge?(0,Ad.__)("AI Tools are active","uael"):(0,Ad.__)("AI Tools are off","uael")),c().createElement("div",{className:"uae-ai-connbanner-sub text-xs"},ge?(0,Ad.sprintf)((0,Ad.__)("%1$s · %2$s · %3$d of %4$d abilities exposed","uael"),ye?(0,Ad.__)("MCP server on","uael"):(0,Ad.__)("MCP server off","uael"),ve?(0,Ad.__)("Read & write","uael"):(0,Ad.__)("Read-only","uael"),Q,k.length):(0,Ad.__)("Enable “Enable Abilities” above to connect AI clients.","uael")))),c().createElement("div",{className:"uae-ai-conngrid"},c().createElement("div",{className:"uae-ai-conncard"},c().createElement("div",{className:"uae-ai-conncard-head"},c().createElement("span",{className:"uae-ai-conncard-title text-sm font-semibold"},(0,Ad.__)("External MCP server","uael")),c().createElement("span",{className:"uae-ai-pill ".concat(ye?"is-ok":"is-muted")},ye?(0,Ad.__)("Ready","uael"):(0,Ad.__)("Server off","uael"))),ye?c().createElement(c().Fragment,null,c().createElement("div",{className:"uae-ai-conncard-endpoint"},c().createElement("span",{className:"is-mono text-xs"},ue),c().createElement("button",{onClick:function(){navigator.clipboard.writeText(ue).then(function(){uf.success((0,Ad.__)("Endpoint copied to clipboard","uael"))})},className:"uae-ai-iconbtn","aria-label":(0,Ad.__)("Copy endpoint","uael")},c().createElement(Lf,{size:13}))),c().createElement("button",{onClick:function(){return A("server")},className:"uae-ai-connlink text-xs font-medium"},(0,Ad.__)("Connect a client","uael")," ",c().createElement(Ip,{size:13}))):c().createElement("div",{className:"uae-ai-conncard-hint text-xs"},(0,Ad.__)("Turn on Enable MCP Server above to expose the endpoint.","uael"))),c().createElement("div",{className:"uae-ai-conncard"},c().createElement("div",{className:"uae-ai-conncard-head"},c().createElement("span",{className:"uae-ai-conncard-title text-sm font-semibold"},(0,Ad.__)("Angie (in-editor)","uael")),c().createElement("span",{className:"uae-ai-pill ".concat(be?"is-ok":"is-muted")},m?be?(0,Ad.__)("Enabled","uael"):(0,Ad.__)("Disabled","uael"):(0,Ad.__)("Not installed","uael"))),c().createElement("div",{className:"uae-ai-conncard-hint text-xs"},m?be?(0,Ad.__)("UAE tools are available in Elementor’s in-browser AI.","uael"):(0,Ad.__)("Turn on Angie Integration above to use it in the editor.","uael"):(0,Ad.__)("Install the Angie plugin to use in-browser AI.","uael"))),c().createElement("div",{className:"uae-ai-conncard"},c().createElement("div",{className:"uae-ai-conncard-head"},c().createElement("span",{className:"uae-ai-conncard-title text-sm font-semibold"},(0,Ad.__)("Abilities exposed","uael")),c().createElement("span",{className:"uae-ai-conncard-count text-sm font-bold"},ge?Q:0,c().createElement("span",{className:"uae-ai-c-muted text-xs font-medium"}," / ",k.length))),c().createElement("div",{className:"uae-ai-progress-track",style:{marginBottom:"10px"}},c().createElement("div",{className:"uae-ai-progress-bar",style:{width:"".concat(ge?xe:0,"%")}})),c().createElement("button",{onClick:function(){return A("abilities")},className:"uae-ai-connlink text-xs font-medium"},(0,Ad.__)("Manage abilities","uael")," ",c().createElement(Ip,{size:13}))),c().createElement("div",{className:"uae-ai-conncard"},c().createElement("div",{className:"uae-ai-conncard-head"},c().createElement("span",{className:"uae-ai-conncard-title text-sm font-semibold"},(0,Ad.__)("Access mode","uael")),c().createElement("span",{className:"uae-ai-pill ".concat(ve?"is-brand":"is-muted")},ve?(0,Ad.__)("Read & write","uael"):(0,Ad.__)("Read-only","uael"))),c().createElement("div",{className:"uae-ai-conncard-hint text-xs"},ve?(0,Ad.__)("AI can create, edit and delete. Toggle “Enable Edit Abilities” above for read-only.","uael"):(0,Ad.__)("AI can only read your data. Toggle “Enable Edit Abilities” above to allow changes.","uael")))),ge&&c().createElement("div",{className:"uae-ai-connactions"},c().createElement("a",{href:g,target:"_blank",rel:"noreferrer",className:"uae-ai-connbtn text-xs font-medium"},c().createElement(Vf,{size:13})," ",(0,Ad.__)("Create application password","uael")),ye&&c().createElement("button",{onClick:function(){return A("server")},className:"uae-ai-connbtn text-xs font-medium"},c().createElement(Mf,{size:13})," ",(0,Ad.__)("Server & connect","uael")))),"abilities"===j&&c().createElement(qf,null,c().createElement(Gf,{title:(0,Ad.__)("Ability toggles","uael"),description:(0,Ad.__)("Choose exactly which actions AI tools are allowed to perform","uael"),right:c().createElement(Kf,{tone:"ok"},(0,Ad.sprintf)((0,Ad.__)("%1$d of %2$d enabled","uael"),Q,k.length))}),c().createElement("div",{className:"uae-ai-toolbar"},c().createElement("div",{className:"uae-ai-search"},c().createElement(ih,{size:14,className:"uae-ai-c-muted"}),c().createElement("input",{value:$,onChange:function(e){return U(e.target.value)},"aria-label":(0,Ad.__)("Search abilities","uael"),placeholder:(0,Ad.__)("Search abilities - e.g. widget, page, skin …","uael"),className:"uae-ai-search-input text-sm"})),c().createElement("div",{className:"uae-ai-filters"},c().createElement(Qf,{active:"all"===H,onClick:function(){return q("all")},count:k.length},(0,Ad.__)("All","uael")),c().createElement(Qf,{active:"read"===H,onClick:function(){return q("read")},count:Y},(0,Ad.__)("Read","uael")),c().createElement(Qf,{active:"write"===H,onClick:function(){return q("write")},count:J},(0,Ad.__)("Write","uael"))),c().createElement("button",{onClick:function(){var e=Object.keys(K),t=e.every(function(e){return C[e]});P(t?{}:Object.fromEntries(e.map(function(e){return[e,!0]})))},className:"uae-ai-expand text-sm font-medium"},Object.keys(K).every(function(e){return C[e]})?(0,Ad.__)("Collapse all","uael"):(0,Ad.__)("Expand all","uael"))),Object.entries(K).map(function(e){var t=i(e,2),n=t[0],r=t[1],o=r.filter(fe);if(0===o.length)return null;var a=!!C[n],s=function(e){return e.filter(function(e){return!v.disabled_abilities.includes(e.name)}).length}(r);return c().createElement("div",{key:n,className:"uae-ai-group"},c().createElement("div",{className:"uae-ai-group-head"},c().createElement("button",{type:"button",className:"uae-ai-group-toggle","aria-expanded":a,"aria-controls":"uae-ai-group-".concat(n),onClick:function(){return P(function(e){return Hf(Hf({},e),{},Ld({},n,!e[n]))})}},c().createElement(Ip,{size:12,className:"uae-ai-group-chevron ".concat(a?"is-open":"")}),c().createElement("div",{className:"uae-ai-group-letter text-xs font-bold"},(G[n]||n).charAt(0)),c().createElement("div",{className:"uae-ai-group-info"},c().createElement("div",{className:"uae-ai-c-ink text-sm font-semibold"},G[n]||n,c().createElement("span",{className:"uae-ai-c-muted text-xs font-medium",style:{marginLeft:6}},(0,Ad.sprintf)((0,Ad.__)("%d abilities","uael"),r.length))),X[n]&&c().createElement("div",{className:"uae-ai-c-muted text-xs"},X[n])),c().createElement(Kf,{tone:s===r.length?"ok":"muted"},s,"/",r.length," ",(0,Ad.__)("on","uael"))),c().createElement(zm,{size:"sm",value:ee(n),onChange:function(e){return function(e,t){var n=(K[e]||[]).map(function(e){return e.name}),r=mp(x.current.disabled_abilities);t?r=r.filter(function(e){return!n.includes(e)}):n.forEach(function(e){r.includes(e)||r.push(e)});var o=Hf(Hf({},x.current),{},{disabled_abilities:r});x.current=o,b(o),ae(o)}(n,e)},disabled:!1,"aria-label":(0,Ad.sprintf)((0,Ad.__)("Toggle all %s abilities","uael"),G[n]||n)})),a&&c().createElement("div",{id:"uae-ai-group-".concat(n)},o.map(function(e){return c().createElement("div",{key:e.name,className:"uae-ai-arow"},c().createElement("div",null,c().createElement("div",{className:"uae-ai-arow-title uae-ai-c-ink text-sm font-semibold"},e.label||e.name,c().createElement(tg,{readonly:e.readonly})),c().createElement("div",{className:"uae-ai-c-muted text-xs"},e.description)),c().createElement("span",null),c().createElement(zm,{size:"sm",value:Z(e),onChange:function(t){return function(e,t){var n=mp(x.current.disabled_abilities);t?n=n.filter(function(t){return t!==e}):n.includes(e)||n.push(e);var r=Hf(Hf({},x.current),{},{disabled_abilities:n});x.current=r,b(r),ae(r)}(e.name,t)},disabled:!e.readonly&&!v.allow_modifications,"aria-label":(0,Ad.sprintf)((0,Ad.__)("Toggle %s","uael"),e.label||e.name)}))})))})),"server"===j&&ye&&c().createElement(c().Fragment,null,!d&&c().createElement(Yf,null),c().createElement(qf,null,c().createElement(Gf,{title:(0,Ad.__)("Connect your AI client","uael"),description:d?(0,Ad.__)("UAE's MCP endpoint is live. Wire it into your AI tool below.","uael"):(0,Ad.__)("Once the WP MCP Adapter plugin is active, this is how you connect your AI client.","uael"),right:d?c().createElement(Kf,{tone:"ok"},(0,Ad.__)("Endpoint live","uael")):c().createElement(Kf,{tone:"muted"},(0,Ad.__)("Setup required","uael"))}),c().createElement("div",{className:"uae-ai-panel"},c().createElement("ol",{className:"uae-ai-steps text-sm"},c().createElement("li",null,(0,Ad.__)("Create an Application Password","uael")," — ",c().createElement("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"uae-ai-link"},(0,Ad.__)("Open Application Passwords","uael"),c().createElement(Vf,{size:13}))),c().createElement("li",null,(0,Ad.__)("Add to your AI client:","uael")," ",c().createElement("a",{href:"https://developer.wordpress.org/news/2026/02/from-abilities-to-ai-agents-introducing-the-wordpress-mcp-adapter/",target:"_blank",rel:"noopener noreferrer",className:"uae-ai-link"},(0,Ad.__)("Learn More","uael"),c().createElement(Vf,{size:13})),c().createElement("ul",{className:"uae-ai-substeps"},c().createElement("li",null,c().createElement("strong",null,(0,Ad.__)("Claude Code","uael")),": ",c().createElement("code",{className:"uae-ai-inlinecode text-xs"},".mcp.json")),c().createElement("li",null,c().createElement("strong",null,(0,Ad.__)("Claude Desktop","uael")),": ",c().createElement("code",{className:"uae-ai-inlinecode text-xs"},"claude_desktop_config.json")),c().createElement("li",null,c().createElement("strong",null,(0,Ad.__)("Cursor","uael")),": ",c().createElement("code",{className:"uae-ai-inlinecode text-xs"},".cursor/mcp.json")),c().createElement("li",null,c().createElement("strong",null,(0,Ad.__)("VS Code","uael")),": ",c().createElement("code",{className:"uae-ai-inlinecode text-xs"},".vscode/mcp.json")),c().createElement("li",null,c().createElement("strong",null,(0,Ad.__)("ChatGPT","uael")),": ",(0,Ad.__)("go to Settings → Connectors → Add Connector, paste the endpoint URL, and use your WordPress username + Application Password.","uael")))),c().createElement("li",null,(0,Ad.__)("Replace","uael")," ",c().createElement("code",{className:"uae-ai-inlinecode text-xs"},'"your-application-password"')," ",(0,Ad.__)("in the JSON with the password from Step 1.","uael"))),c().createElement("div",{className:"uae-ai-scope"},c().createElement(eg,{active:"uae-only"===R,onClick:function(){return F("uae-only")}},(0,Ad.__)("UAE Only","uael")),c().createElement(eg,{active:"global"===R,onClick:function(){return F("global")}},(0,Ad.__)("Global","uael"))),c().createElement("div",{className:"uae-ai-code"},c().createElement("div",{className:"uae-ai-code-actions"},c().createElement(Qm,{content:(0,Ad.__)("Copy setup prompt for AI client","uael"),delay:50,arrow:!0},c().createElement("button",{onClick:function(){navigator.clipboard.writeText(he).then(function(){z(!0),uf.success((0,Ad.__)("Prompt copied! Paste it into your AI client.","uael")),setTimeout(function(){return z(!1)},2e3)})},className:"uae-ai-iconbtn","aria-label":(0,Ad.__)("Copy setup prompt","uael")},V?c().createElement(zf,{size:14,color:"#95E1A0"}):c().createElement(Bf,{size:14}))),c().createElement(Qm,{content:(0,Ad.__)("Copy JSON config","uael"),delay:50,arrow:!0},c().createElement("button",{onClick:function(){navigator.clipboard.writeText(me).then(function(){I(!0),uf.success((0,Ad.__)("Copied to clipboard","uael")),setTimeout(function(){return I(!1)},2e3)})},className:"uae-ai-iconbtn","aria-label":(0,Ad.__)("Copy JSON config","uael")},M?c().createElement(zf,{size:14,color:"#95E1A0"}):c().createElement(Lf,{size:14})))),c().createElement("pre",{className:"uae-ai-code-pre text-xs"},me)))))),c().createElement(cf,{position:"top-right",reverseOrder:!1,gutter:8,containerStyle:{top:20,right:20,marginTop:80},toastOptions:{duration:5e3,style:{background:"white"},success:{duration:3e3,iconTheme:{primary:"#6005ff",secondary:"#fff"}}}}))},rg=function(){var e=[{id:1,icon:c().createElement("img",{src:"".concat(uaelSettingsData.user_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.user__selected_url),alt:"Custom SVG",className:"object-contain"}),title:(0,Ad.__)("My Account","uael"),content:c().createElement(ff,null)},{id:2,icon:c().createElement("img",{src:"".concat(uaelSettingsData.theme_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.theme__selected_url),alt:"Custom SVG",className:"object-contain"}),main:(0,Ad.__)("Editor","uael"),title:(0,Ad.__)("Theme Support","uael"),content:c().createElement(mf,null)},{id:3,icon:c().createElement("img",{src:"".concat(uaelSettingsData.version_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.version__selected_url),alt:"Custom SVG",className:"object-contain"}),main:(0,Ad.__)("Utilities","uael"),title:(0,Ad.__)("Version Control","uael"),content:c().createElement(pf,null)},{id:4,icon:c().createElement("img",{src:"".concat(uaelSettingsData.branding_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.branding__selected_url),alt:"Custom SVG",className:"object-contain"}),main:"",title:(0,Ad.__)("White Label","uael"),content:c().createElement(Nf,null)},{id:5,icon:c().createElement("img",{src:"".concat(uaelSettingsData.integrations_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.integrations__selected_url),alt:"Custom SVG",className:"object-contain"}),main:(0,Ad.__)("Preferences","uael"),title:(0,Ad.__)("Integrations","uael"),content:c().createElement(Ef,null)},{id:6,icon:c().createElement("img",{src:"".concat(uaelSettingsData.postskins_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.postskins_selected_url),alt:"Custom SVG",className:"object-contain"}),main:(0,Ad.__)("Skins","uael"),title:(0,Ad.__)("Post Widget Skins","uael"),content:c().createElement(Df,null)},{id:7,icon:c().createElement("img",{src:"".concat(uaelSettingsData.ai_tools_url),alt:"Custom SVG",className:"object-contain"}),selected:c().createElement("img",{src:"".concat(uaelSettingsData.ai_tools__selected_url),alt:"Custom SVG",className:"object-contain"}),main:(0,Ad.__)("AI","uael"),title:(0,Ad.__)("AI Tools","uael"),badge:(0,Ad.__)("NEW","uael"),content:c().createElement(ng,null)}].filter(function(e){return("no"!==uaelSettingsData.show_theme_support||2!==e.id)&&(!uaelSettingsData.hide_settings||3!==e.id&&4!==e.id)}),t=i((0,s.useState)(function(){var t=localStorage.getItem("selectedItemId");return e.find(function(e){return e.id===Number(t)})||e[0]}),2),n=t[0],r=t[1];return(0,s.useEffect)(function(){localStorage.setItem("selectedItemId",n.id.toString())},[n]),(0,s.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(pm,{onSettingsTabClick:function(){r(e[0])}})," ",c().createElement("div",null,c().createElement(Im,null),c().createElement(Fm,{align:"stretch",className:"p-1 flex-col lg:flex-row uae-settings-page",containerType:"flex",direction:"row",gap:"sm",justify:"start",style:{height:"100%"}},c().createElement(Fm.Item,{className:"p-2 uae-sticky-outer-wrapper",alignSelf:"auto",order:"none",shrink:1,style:{backgroundColor:"#ffffff"}},c().createElement("div",{className:"uae-sticky-sidebar"},c().createElement(mh,{items:e,onSelectItem:function(e){r(e)},selectedItemId:n.id}))),c().createElement(Fm.Item,{className:"p-2 flex w-full justify-center items-start uae-hide-scrollbar",alignSelf:"auto",order:"none",shrink:1,style:{height:"calc(100vh - 1px)",overflowY:"auto"}},c().createElement("div",{className:"uael-78-width"},c().createElement(ph,{selectedItem:n}))))))};const og=rd("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),ag=(e,t)=>ie("rounded-full text-brand-primary-600 transition-colors duration-300",e[t].dot,e[t].ring),ig={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"}},sg=({variant:e="dot",size:t="sm",type:n="inline",currentStep:r=1,children:o,className:a,lineClassName:i="min-w-10",completedVariant:l="icon",completedIcon:c=(0,u.jsx)($m,{}),...d})=>{const m=s.Children.count(o);-1===r&&(r=m+1);const p=s.Children.map(o,(o,a)=>{const d={isCompleted:a+1<r,isCurrent:a+1===r,sizeClasses:ig,size:t,variant:e,type:n,isLast:a+1===m,index:a,lineClassName:i,completedVariant:l,completedIcon:c};return(0,u.jsx)(s.Fragment,{children:s.isValidElement(o)?s.cloneElement(o,d):o},a)});return(0,u.jsx)("div",{className:ie("flex w-full",a,"inline"===n?"items-center justify-between":""),...d,children:p})},lg=({labelText:e="",icon:t=(0,u.jsx)(og,{}),isCurrent:n,isCompleted:r,className:o,type:a,variant:i,sizeClasses:s,size:l,isLast:c,index:d,lineClassName:m,completedVariant:p="icon",completedIcon:h=(0,u.jsx)($m,{}),...f})=>{const g=cg(i,r,n,s,l,t,d,p,h),y={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)]"},v={lg:"top-3.5",md:"top-3",sm:"top-2.5"},b=()=>{if(e){const t=ie(s[l].label,"text-text-tertiary",n?"text-brand-primary-600":"","break-word","stack"===a?"mt-2 transform max-w-xs":"mx-2 max-w-32");return(0,u.jsx)("span",{className:t,children:e})}return null},x=()=>{if(!c){const t=ie("block",r?"border-brand-primary-600":"border-border-subtle",m);return"stack"===a?(0,u.jsx)("div",{className:ie("relative","flex","border-solid","border-y","absolute",r?"border-brand-primary-600":"border-border-subtle",v[l],y[l]),children:(0,u.jsx)("span",{className:"block"})}):(0,u.jsx)("div",{className:"flex-1",children:(0,u.jsx)("span",{className:ie("mr-2 border-y border-solid",!e&&"ml-2",t)})})}return null};return"stack"===a?(0,u.jsxs)("div",{className:"relative flex-1 justify-center",children:[(0,u.jsxs)("div",{className:ie("flex items-center flex-col",o),...f,children:[g,b()]}),x()]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:ie("flex items-center",o),...f,children:[g,b()]}),x()]})};lg.displayName="ProgressSteps.Step";const cg=(e,t,n,r,o,a,i,s="icon",l=(0,u.jsx)($m,{}))=>{if(t)return"number"===s?(0,u.jsx)("span",{className:ie(ag(r,o),"flex items-center justify-center bg-brand-primary-600 text-text-on-color rounded-full"),children:i+1}):(0,u.jsx)("span",{className:ag(r,o),children:l});const c=((e,t,n)=>ie("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),d=((e,t,n,r)=>{const o=`absolute rounded-full transition-colors duration-500 ${n[r].dot}`;return"dot"===e?ie(o,n[r].dot,t?"bg-brand-primary-600":"bg-text-tertiary"):"number"===e?ie(o,n[r].dot,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):"icon"===e?ie(o,t?"text-brand-primary-600":"text-text-tertiary","flex items-center justify-center"):""})(e,n,r,o);let m=null;return"number"===e?m=i+1:"icon"===e&&a&&(m=a),(0,u.jsx)("span",{className:c,children:(0,u.jsx)("span",{className:d,children:m})})};sg.Step=lg;const ug=Nd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),dg=Nd("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function mg(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 pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mg(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hg=function(){var e=i((0,s.useState)(null),2),t=e[0],n=e[1],r=i((0,s.useState)(""),2),o=r[0],a=(r[1],i((0,s.useState)(!1),2)),l=a[0],u=a[1],d=i((0,s.useState)(!1),2),m=d[0],p=d[1],h=i((0,s.useState)(!0),2),f=h[0],g=h[1],y=i((0,s.useState)(0),2),v=y[0],b=y[1];(0,s.useEffect)(function(){g(!0),np()({path:"/uael/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_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 x=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)}))}),w=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u(!0),(t=new window.FormData).append("action","uael_bulk_activate_widgets"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){u(!1),e.success?(n(function(e){return e.map(function(e){return pg(pg({},e),{},{is_active:!0})})}),b(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 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),_=function(){var e=hp(gp().mark(function e(){var t;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:p(!0),(t=new window.FormData).append("action","uael_bulk_deactivate_widgets"),t.append("nonce",uaelSettingsData.ajax_nonce),np()({url:uaelSettingsData.ajax_url,method:"POST",body:t}).then(function(e){p(!1),e.success?(n(function(e){return e.map(function(e){return pg(pg({},e),{},{is_active:!1})})}),b(function(e){return e+1})):e.error&&console.error("AJAX request failed:",e.error)}).catch(function(e){p(!1),console.error("Error during AJAX request:",e)});case 1: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,Ad.__)("WIDGETS","uael")),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(Hm,{icon:l?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",className:"uael-bulk-action-button uael-remove-ring",onClick:w,disabled:!!o,style:{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",borderRight:"0px",fontSize:"0.9em"}},l?(0,Ad.__)("Activating...","uael"):(0,Ad.__)("Activate All","uael")),c().createElement(Hm,{icon:m?c().createElement(nh,{className:"animate-spin"}):null,iconPosition:"left",variant:"outline",onClick:_,className:"uael-bulk-action-button uael-remove-ring",disabled:!!o,style:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",fontSize:"0.9em"}},m?(0,Ad.__)("Deactivating...","uael"):(0,Ad.__)("Deactivate All","uael"))))),c().createElement("div",{className:"uael-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"}},f?c().createElement(Fm,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},mp(Array(30)).map(function(e,t){return c().createElement(Fm.Item,{key:t,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-8 space-y-2"},c().createElement(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"}))})):c().createElement(Fm,{align:"stretch",className:"p-1 gap-1.5 grid-cols-2 md:grid-cols-4",containerType:"grid",gap:"",justify:"start",style:{paddingTop:"0"}},null==x?void 0:x.map(function(e){return c().createElement(Fm.Item,{key:e.id,alignSelf:"auto",className:"text-wrap rounded-md shadow-container-item bg-background-primary p-4"},c().createElement(ap,{widget:pg(pg({},e),{},{updateCounter:v}),key:e.id,updateCounter:v}))})))))};function fg(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 gg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach(function(t){Ld(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yg=function(e){e.widgets;var t=e.updateCounter,n=e.setCurrentStep,r=e.markStepCompleted,o=e.markStepSkipped,a=i((0,s.useState)([]),2),l=(a[0],a[1]),u=i((0,s.useState)(!1),2),d=(u[0],u[1]);(0,s.useEffect)(function(){var e=function(){var e=hp(gp().mark(function e(){var t,n;return gp().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=1,np()({path:"/uael/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_nonce_action}});case 1:t=e.sent,l(m(t)),e.next=3;break;case 2:e.prev=2,n=e.catch(0),console.error("Failed to fetch widgets:",n);case 3:return e.prev=3,d(!1),e.finish(3);case 4:case"end":return e.stop()}},e,null,[[0,2,3,4]])}));return function(){return e.apply(this,arguments)}}();e()},[t]);var m=function(e){return Object.entries(e).map(function(e){var t=i(e,2),n=t[0],r=t[1];return gg(gg({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 uael-min-700"},c().createElement("form",null,c().createElement("div",{className:"md:w-[47rem] box-border mx-auto space-y-4"},c().createElement(hg,null)))),c().createElement("div",{className:"flex justify-between items-center pt-1 px-4 gap-4 uael-onboarding-bottom"},c().createElement(Hm,{className:"flex items-center gap-1 uael-remove-ring",icon:c().createElement(Mp,null),variant:"outline",onClick:function(){return n(1)}},(0,Ad.__)("Back","uael")),c().createElement("div",{className:"flex justify-end items-center gap-3"},c().createElement(Hm,{className:"uael-remove-ring",variant:"ghost",onClick:function(){o("configure"),n(3)}}," ",(0,Ad.__)("Skip","uael")),c().createElement(Hm,{className:"flex items-center gap-1 uael-remove-ring",icon:c().createElement(dg,null),iconPosition:"right",style:{backgroundColor:"#6005FF",transition:"background-color 0.3s ease",padding:"12px"},onClick:function(){r("configure"),n(3)}},(0,Ad.__)(" Continue Setup","uael")))))},vg=function(e){var t=e.setCurrentStep,n=e.markStepCompleted,r=e.markStepSkipped,o=i((0,s.useState)(null),2),a=o[0],l=o[1],u=i((0,s.useState)(""),2),d=u[0],m=(u[1],i((0,s.useState)(!1),2)),p=(m[0],m[1],i((0,s.useState)(!1),2)),h=(p[0],p[1],i((0,s.useState)(!0),2)),f=h[0],g=h[1],y=i((0,s.useState)(0),2),v=y[0];y[1],(0,s.useEffect)(function(){g(!0),np()({path:"/uael/v1/widgets",headers:{"Content-Type":"application/json","X-WP-Nonce":uaelSettingsData.uael_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);l(t),g(!1)}).catch(function(e){g(!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 b=null==a?void 0:a.filter(function(e){var t;return e.title.toLowerCase().includes(d)||(null===(t=e.keywords)||void 0===t?void 0:t.some(function(e){return e.toLowerCase().includes(d)}))});return c().createElement("div",{className:"rounded-lg bg-white p-6 uae-onboarding-customize"},c().createElement("h1",{className:"text-text-primary m-0 mb-2",style:{fontSize:"1.4rem",lineHeight:"1.3em"}},(0,Ad.__)("Customize Your UAE Setup","uael")),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0",style:{lineHeight:"1.6em"}},(0,Ad.__)("Activate only what you need to keep your website fast and optimized.","uael")),c().createElement("div",{className:"flex bg-black flex-col rounded-lg",style:{marginTop:"2rem"}},f?c().createElement(Fm,{align:"stretch",className:"p-2 gap-1.5 grid grid-cols-2 md:grid-cols-4",style:{backgroundColor:"#F9FAFB"},containerType:"grid",gap:"",justify:"start"},mp(Array(30)).map(function(e,t){return c().createElement(Fm.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(Rp,{className:"w-12 h-2 rounded-md"}),c().createElement(Rp,{className:"w-16 h-2 rounded-md"}),c().createElement(Rp,{className:"w-12 h-2 rounded-md"}))})):c().createElement(Fm,{align:"stretch"},c().createElement(yg,{setCurrentStep:t,widgets:b,updateCounter:v,markStepCompleted:n,markStepSkipped:r}))))},bg=[{label:"Welcome",component:function(e){var t=e.setCurrentStep,n=e.markStepCompleted;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 uael-65-width",style:{fontSize:"1.6rem",lineHeight:"1.3em"}},c().createElement("span",{className:"block"},(0,Ad.__)("Thank You For Choosing","uael")),c().createElement("span",{className:"block"},(0,Ad.__)("Ultimate Addons for Elementor","uael"))),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0 mb-6 uael-88-width",style:{lineHeight:"1.5em"}},(0,Ad.__)("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.","uael"))),c().createElement("img",{alt:"Welcome",className:"w-full h-auto mb-6 mt-2",src:"".concat(uaelSettingsData.welcome_banner),loading:"lazy"}),c().createElement(Hm,{iconPosition:"right",variant:"primary",className:"bg-[#6005FF] uael-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(){n("welcome"),t(2)}},(0,Ad.__)("Let's Get Started","uael"))))}},{label:"Configure",component:function(e){var t=e.setCurrentStep,n=e.markStepCompleted,r=e.markStepSkipped;return c().createElement(vg,{setCurrentStep:t,markStepCompleted:n,markStepSkipped:r})}},{label:"Create",component:function(e){e.setCurrentStep;var t=e.saveOnboardingAnalytics,n=e.stepsCompleted,r=e.stepsSkipped,o=i((0,s.useState)(!1),2),a=(o[0],o[1],i((0,s.useState)(""),2)),l=(a[0],a[1]),u=i((0,s.useState)(!1),2);return u[0],u[1],(0,s.useEffect)(function(){l(uaelSettingsData.user_email);var e=(null==n?void 0:n.current)||JSON.parse(localStorage.getItem("uael_onboarding_steps_completed")||"[]"),o=(null==r?void 0:r.current)||JSON.parse(localStorage.getItem("uael_onboarding_steps_skipped")||"[]");t({exitedEarly:!1,exitAtStep:"",completedSteps:e,skippedSteps:o}),localStorage.removeItem("uael_onboarding_steps_completed"),localStorage.removeItem("uael_onboarding_steps_skipped"),history.pushState(null,"",window.location.href);var a=function(e){e.preventDefault(),localStorage.setItem("currentStep","2"),window.location.reload()};return window.addEventListener("popstate",a),function(){window.removeEventListener("popstate",a)}},[uaelSettingsData.user_email]),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 uael-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,Ad.__)("You're all set!🚀","uael")),c().createElement("span",{className:"text-md font-medium text-text-tertiary m-0 mb-4 uael-88-width",style:{lineHeight:"1.6em"}},uaelSettingsData.is_lite_active?c().createElement(c().Fragment,null,(0,Ad.__)("Start creating headers, footers, or pages with UAE and take your website to the next level","uael")):c().createElement(c().Fragment,null,(0,Ad.__)("Start creating amazing designs with UAE and take your website to the next level","uael"))),c().createElement("span",{className:"font-bold m-0 pt-2"},(0,Ad.__)("Here’s how to get started:","uael")),uaelSettingsData.is_lite_active?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,Ad.__)("Click on “Create” button","uael")),c().createElement("li",null,(0,Ad.__)("Use the Elementor editor to customize your header, footer, page or post according to your preferences","uael")),c().createElement("li",null,(0,Ad.__)("Use UAE widgets for your designs","uael")),c().createElement("li",null,(0,Ad.__)("Click “Publish” to make it live","uael"))):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,Ad.__)("Click on “Create New Page” button","uael")),c().createElement("li",null,(0,Ad.__)("Use the Elementor editor to customize your page/post according to your preferences","uael")),c().createElement("li",null,(0,Ad.__)("Use UAE widgets to design your pages.","uael")),c().createElement("li",null,(0,Ad.__)("Click “Publish” to make it live","uael")))),c().createElement("div",{className:"w-1/2",style:{textAlign:"end"}},c().createElement("img",{alt:"Build",className:"w-full object-contain",style:{height:"210px",width:"auto"},src:"".concat(uaelSettingsData.build_banner),loading:"lazy"}))),c().createElement("div",{className:"flex flex-row gap-1 pb-4 uael-display-flex"},uaelSettingsData.is_lite_active?c().createElement(c().Fragment,null,c().createElement(Hm,{icon:c().createElement(dg,null),iconPosition:"right",variant:"primary",className:"bg-[#6005FF] uael-remove-ring mr-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(){window.open(uaelSettingsData.uael_hfe_post_url,"_blank")}},(0,Ad.__)("Create Header/Footer","uael")),c().createElement(Hm,{icon:c().createElement(up,null),iconPosition:"right",variant:"outline",className:"uael-remove-ring",style:{color:"#6005FF",borderColor:"#6005FF"},onMouseEnter:function(e){return(e.currentTarget.style.color="#000000")&&(e.currentTarget.style.borderColor="#000000")},onMouseLeave:function(e){return(e.currentTarget.style.color="#6005FF")&&(e.currentTarget.style.borderColor="#6005FF")},onClick:function(){window.open(uaelSettingsData.elementor_page_url,"_blank")}},(0,Ad.__)("Create New Page","uael"))):c().createElement(Hm,{icon:c().createElement(up,null),iconPosition:"right",variant:"primary",className:"bg-[#6005FF] uael-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(uaelSettingsData.elementor_page_url,"_blank")}},(0,Ad.__)("Create New Page","uael")),c().createElement(rm,{to:Dd.dashboard.path},c().createElement(Hm,{icon:c().createElement(dg,null),iconPosition:"right",variant:"ghost",className:"uael-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,Ad.__)("Go To Dashboard","uael")))))}}],xg={1:"welcome",2:"configure",3:"success"},wg=function(e){var t=new URLSearchParams;t.append("action","uael_save_onboarding_analytics"),t.append("nonce",uaelSettingsData.ajax_nonce),t.append("exited_early",e.exitedEarly?"true":"false"),t.append("exit_at_step",e.exitAtStep||""),(e.completedSteps||[]).forEach(function(e){return t.append("completed_steps[]",e)}),(e.skippedSteps||[]).forEach(function(e){return t.append("skipped_steps[]",e)}),fetch(uaelSettingsData.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}).catch(function(e){return console.error("Onboarding analytics error:",e)})},_g=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],o=(0,s.useRef)(JSON.parse(localStorage.getItem("uael_onboarding_steps_completed")||"[]")),a=(0,s.useRef)(JSON.parse(localStorage.getItem("uael_onboarding_steps_skipped")||"[]")),l=(0,s.useCallback)(function(e){o.current.includes(e)||(o.current.push(e),localStorage.setItem("uael_onboarding_steps_completed",JSON.stringify(o.current)))},[]),u=(0,s.useCallback)(function(e){a.current.includes(e)||(a.current.push(e),localStorage.setItem("uael_onboarding_steps_skipped",JSON.stringify(a.current)))},[]);(0,s.useEffect)(function(){localStorage.setItem("currentStep",n)},[n]),(0,s.useEffect)(function(){var e=setTimeout(function(){localStorage.removeItem("currentStep")},18e4);return function(){return clearTimeout(e)}},[]);var d=null===(e=bg[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(ce,{className:"bg-none",style:{background:"none"}},c().createElement(ce.Left,null,c().createElement(ce.Item,null,uaelSettingsData.uae_logo&&c().createElement(rm,{to:Dd.dashboard.path},c().createElement("img",{src:"".concat(uaelSettingsData.uae_logo),alt:"Logo",className:"cursor-pointer",style:{height:"35px"}})))),c().createElement(ce.Middle,null,c().createElement(ce.Item,null,c().createElement(sg,{currentStep:n,className:"uae-steps",variant:"number"},bg.map(function(e,t){return c().createElement(sg.Step,{key:t,className:"font-bold",labelText:e.label,size:"md"})})))),c().createElement(ce.Right,null,c().createElement(ce.Item,null,c().createElement(rm,{className:"uael-remove-ring",to:Dd.dashboard.path,style:{marginLeft:"125px"},onClick:function(){n>=3||(wg({exitedEarly:!0,exitAtStep:xg[n]||"",completedSteps:o.current,skippedSteps:a.current}),localStorage.removeItem("uael_onboarding_steps_completed"),localStorage.removeItem("uael_onboarding_steps_skipped"))}},c().createElement(Hm,{icon:c().createElement(ug,{className:"size-4"}),iconPosition:"right",size:"xs",variant:"ghost",className:"uael-remove-ring"}))))))),c().createElement("div",{className:"flex items-center justify-center"},d&&c().createElement(d,{currentStep:n,setCurrentStep:r,saveOnboardingAnalytics:wg,markStepCompleted:l,markStepSkipped:u,stepsCompleted:o,stepsSkipped:a})))},Eg=function(){return c().createElement(c().Fragment,null,c().createElement(_g,null))},kg=function(){var e,t=i((0,s.useState)(!1),2),n=t[0],r=t[1];return(0,s.useEffect)(function(){setTimeout(function(){r(!0)},1e3)},[]),n?React.createElement(am,{routes:Dd,defaultRoute:null==Dd||null===(e=Dd.dashboard)||void 0===e?void 0:e.path},React.createElement(Zd,{path:Dd.dashboard.path},React.createElement(ah,null)),React.createElement(Zd,{path:Dd.onboarding.path},React.createElement(Eg,null)),React.createElement(Zd,{path:Dd.widgets.path},React.createElement(dh,null)),React.createElement(Zd,{path:Dd.settings.path},React.createElement(rg,null))):React.createElement("div",{className:"loading-spinner flex items-center justify-center h-screen",style:{background:"#F9FAFB"}},React.createElement(yf,{icon:null,size:"lg",variant:"primary"}))},Sg=function(){var e=i((0,s.useState)(!1),2),t=e[0],n=e[1];return window.onhashchange=function(){window.scrollTo(0,0)},(0,s.useEffect)(function(){setTimeout(function(){n(!0)},1e3)},[]),t?React.createElement("div",{className:"app-container font-figtree"},React.createElement(kg,null)):React.createElement("div",{className:"loading-spinner flex items-center justify-center h-screen",style:{background:"#F9FAFB"}},React.createElement(yf,{icon:null,size:"lg",variant:"primary"}))};n()(function(){var t=document.getElementById("uae-settings-app");if(t&&(0,e.H)(t).render(React.createElement(Sg,null)),uaelSettingsData.is_lite_active&&(window.location.href===uaelSettingsData.header_footer_builder||"yes"===uaelSettingsData.is_hfe_post)){var n=document.getElementById("hfe-admin-top-bar-root");if(n){var r=document.createElement("div");r.id="uae-settings-app",n.appendChild(r),(0,e.H)(r).render(React.createElement(pm,null))}}})}()}();
//# sourceMappingURL=main.js.map