(function(){var Wa={69:(function(l,B,Y){"use strict";l.exports=Y(5369)}),1609:(function(l){"use strict";l.exports=window.React}),3593:(function(l,B,Y){"use strict";l.exports=Y(3691)}),3691:(function(l,B,Y){"use strict";/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Y(9645);var p=Y(1609),C=60103;if(B.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;C=O("react.element"),B.Fragment=O("react.fragment")}var me=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,f={key:!0,ref:!0,__self:!0,__source:!0};function g(v,k,L){var T,z={},W=null,ne=null;L!==void 0&&(W=""+L),k.key!==void 0&&(W=""+k.key),k.ref!==void 0&&(ne=k.ref);for(T in k)u.call(k,T)&&!f.hasOwnProperty(T)&&(z[T]=k[T]);if(v&&v.defaultProps)for(T in k=v.defaultProps,k)z[T]===void 0&&(z[T]=k[T]);return{$$typeof:C,type:v,key:W,ref:ne,props:z,_owner:me.current}}B.jsx=g,B.jsxs=g}),5369:(function(l,B){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Y=typeof Symbol=="function"&&Symbol.for,p=Y?Symbol.for("react.element"):60103,C=Y?Symbol.for("react.portal"):60106,O=Y?Symbol.for("react.fragment"):60107,me=Y?Symbol.for("react.strict_mode"):60108,u=Y?Symbol.for("react.profiler"):60114,f=Y?Symbol.for("react.provider"):60109,g=Y?Symbol.for("react.context"):60110,v=Y?Symbol.for("react.async_mode"):60111,k=Y?Symbol.for("react.concurrent_mode"):60111,L=Y?Symbol.for("react.forward_ref"):60112,T=Y?Symbol.for("react.suspense"):60113,z=Y?Symbol.for("react.suspense_list"):60120,W=Y?Symbol.for("react.memo"):60115,ne=Y?Symbol.for("react.lazy"):60116,se=Y?Symbol.for("react.block"):60121,oe=Y?Symbol.for("react.fundamental"):60117,pe=Y?Symbol.for("react.responder"):60118,ye=Y?Symbol.for("react.scope"):60119;function Q(F){if(typeof F=="object"&&F!==null){var He=F.$$typeof;switch(He){case p:switch(F=F.type,F){case v:case k:case O:case u:case me:case T:return F;default:switch(F=F&&F.$$typeof,F){case g:case L:case ne:case W:case f:return F;default:return He}}case C:return He}}}function Te(F){return Q(F)===k}B.AsyncMode=v,B.ConcurrentMode=k,B.ContextConsumer=g,B.ContextProvider=f,B.Element=p,B.ForwardRef=L,B.Fragment=O,B.Lazy=ne,B.Memo=W,B.Portal=C,B.Profiler=u,B.StrictMode=me,B.Suspense=T,B.isAsyncMode=function(F){return Te(F)||Q(F)===v},B.isConcurrentMode=Te,B.isContextConsumer=function(F){return Q(F)===g},B.isContextProvider=function(F){return Q(F)===f},B.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===p},B.isForwardRef=function(F){return Q(F)===L},B.isFragment=function(F){return Q(F)===O},B.isLazy=function(F){return Q(F)===ne},B.isMemo=function(F){return Q(F)===W},B.isPortal=function(F){return Q(F)===C},B.isProfiler=function(F){return Q(F)===u},B.isStrictMode=function(F){return Q(F)===me},B.isSuspense=function(F){return Q(F)===T},B.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===O||F===k||F===u||F===me||F===T||F===z||typeof F=="object"&&F!==null&&(F.$$typeof===ne||F.$$typeof===W||F.$$typeof===f||F.$$typeof===g||F.$$typeof===L||F.$$typeof===oe||F.$$typeof===pe||F.$$typeof===ye||F.$$typeof===se)},B.typeOf=Q}),7621:(function(l,B,Y){"use strict";var p=Y(69),C={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},O={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},me={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[p.ForwardRef]=me,f[p.Memo]=u;function g(se){return p.isMemo(se)?u:f[se.$$typeof]||C}var v=Object.defineProperty,k=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,W=Object.prototype;function ne(se,oe,pe){if(typeof oe!="string"){if(W){var ye=z(oe);ye&&ye!==W&&ne(se,ye,pe)}var Q=k(oe);L&&(Q=Q.concat(L(oe)));for(var Te=g(se),F=g(oe),He=0;He<Q.length;++He){var nt=Q[He];if(!O[nt]&&!(pe&&pe[nt])&&!(F&&F[nt])&&!(Te&&Te[nt])){var at=T(oe,nt);try{v(se,nt,at)}catch{}}}}return se}l.exports=ne}),8140:(function(l,B,Y){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var p=Y(1609);function C(z,W){return z===W&&(z!==0||1/z===1/W)||z!==z&&W!==W}var O=typeof Object.is=="function"?Object.is:C,me=p.useState,u=p.useEffect,f=p.useLayoutEffect,g=p.useDebugValue;function v(z,W){var ne=W(),se=me({inst:{value:ne,getSnapshot:W}}),oe=se[0].inst,pe=se[1];return f(function(){oe.value=ne,oe.getSnapshot=W,k(oe)&&pe({inst:oe})},[z,ne,W]),u(function(){return k(oe)&&pe({inst:oe}),z(function(){k(oe)&&pe({inst:oe})})},[z]),g(ne),ne}function k(z){var W=z.getSnapshot;z=z.value;try{var ne=W();return!O(z,ne)}catch{return!0}}function L(z,W){return W()}var T=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?L:v;B.useSyncExternalStore=p.useSyncExternalStore!==void 0?p.useSyncExternalStore:T}),8279:(function(l,B,Y){"use strict";l.exports=Y(8140)}),8623:(function(l){(function(B,Y){l.exports=Y()})(window,(()=>(()=>{"use strict";var B={d:(u,f)=>{for(var g in f)B.o(f,g)&&!B.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:f[g]})},o:(u,f)=>Object.prototype.hasOwnProperty.call(u,f)},Y={};let p;B.d(Y,{default:()=>me}),window.DoMini===void 0?(p=function(u,f){return arguments[2]!==void 0?this.constructor.call(this,u,f):arguments.length!==1||typeof arguments[0]!="function"?new p(u,f,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[p]):window.addEventListener("DOMContentLoaded",(()=>{arguments[0].apply(this,[p])})))},p.prototype=p.fn={constructor:function(u,f){if(this.length=0,f!==void 0){if(f instanceof p)return f.find(u);if(this.isValidNode(f)||typeof f=="string")return p(f).find(u)}else if(typeof u=="string"&&u!=="")this.push(...this._(u));else{if(u instanceof p)return u;this.isValidNode(u)&&this.push(u)}return this},_:function(u){return u.charAt(0)==="<"?p._fn.createElementsFromHTML(u):[...document.querySelectorAll(u)]},isValidNode:u=>u instanceof Element||u instanceof Document||u instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},p.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],p._fn={},p.version="0.2.8"):p=window.DoMini;const C=p;C.fn.get=function(u){return u===void 0?Array.from(this):this[u]},C.fn.extend=function(){for(let u=1;u<arguments.length;u++)for(let f in arguments[u])arguments[u].hasOwnProperty(f)&&(arguments[0][f]=arguments[u][f]);return arguments[0]},C.fn.forEach=function(u){return this.get().forEach((function(f,g,v){u.apply(f,[f,g,v])})),this},C.fn.each=function(u){return this.get().forEach((function(f,g,v){u.apply(f,[g,f,v])})),this},C.fn.css=function(u,f){for(const g of this)if(arguments.length===1){if(typeof u!="object")return window.getComputedStyle(g)[u];Object.keys(u).forEach((function(v){g.style[v]=u[v]}))}else g.style[u]=f;return this},C.fn.hasClass=function(u){let f=this.get(0);return f!=null&&f.classList.contains(u)},C.fn.addClass=function(u){let f=u;return typeof u=="string"&&(f=u.split(" ")),f=f.filter((function(g){return g.trim()!==""})),f.length>0&&this.forEach((function(g){g.classList.add.apply(g.classList,f)})),this},C.fn.removeClass=function(u){if(u!==void 0){let f=u;typeof u=="string"&&(f=u.split(" ")),f=f.filter((function(g){return g.trim()!==""})),f.length>0&&this.forEach((function(g){g.classList.remove.apply(g.classList,f)}))}else this.forEach((function(f){f.classList.length>0&&f.classList.remove.apply(f.classList,f.classList)}));return this},C.fn.isVisible=function(){let u,f=this.get(0),g=!0;for(;f!==null;){if(u=window.getComputedStyle(f),u.display==="none"||u.visibility==="hidden"||parseInt(u.opacity)===0){g=!1;break}f=f.parentElement}return g},C.fn.val=function(u){let f;if(arguments.length===1){for(const g of this)if(g.type==="select-multiple"){u=typeof u=="string"?u.split(","):u;for(let v,k=0,L=g.options.length;k<L;k++)v=g.options[k],v.selected=u.indexOf(v.value)!==-1}else g.value=u;f=this}else{let g=this.get(0);g!=null&&(f=g.type==="select-multiple"?Array.prototype.map.call(g.selectedOptions,(function(v){return v.value})):g.value)}return f},C.fn.attr=function(u,f){let g;for(const v of this)if(arguments.length===2)v.setAttribute(u,f),g=this;else{if(typeof u!="object"){g=v.getAttribute(u);break}Object.keys(u).forEach((function(k){v.setAttribute(k,u[k])}))}return g},C.fn.removeAttr=function(u){for(const f of this)f.removeAttribute(u);return this},C.fn.prop=function(u,f){let g;for(const v of this){if(arguments.length!==2){g=v[u]!==void 0?v[u]:null;break}v[u]=f}return arguments.length===2?this:g},C.fn.data=function(u,f){const g=u.replace(/-([a-z])/g,(function(v){return v[1].toUpperCase()}));if(arguments.length===2){for(const v of this)v!=null&&(v.dataset[g]=f);return this}{let v=this.get(0);return v!=null&&v.dataset[g]!==void 0?v.dataset[g]:""}},C.fn.html=function(u){if(arguments.length===1){for(const f of this)f.innerHTML=u;return this}{let f=this.get(0);return f==null?"":f.innerHTML}},C.fn.text=function(u){if(arguments.length===1){for(const f of this)f.textContent=u;return this}{let f=this.get(0);return f==null?"":f.textContent}},C.fn.position=function(){let u=this.get(0);return u!=null?{top:u.offsetTop,left:u.offsetLeft}:{top:0,left:0}},C.fn.offset=function(){let u=this.get(0);return u!=null?C._fn.hasFixedParent(u)?u.getBoundingClientRect():C._fn.absolutePosition(u):{top:0,left:0}},C.fn.outerWidth=function(u){u=u||!1;let f=this.get(0);return f!=null?u?parseInt(f.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(f.offsetWidth):0},C.fn.outerHeight=function(u){u=u||!1;let f=this.get(0);return f!=null?u?parseInt(f.offsetHeight)+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(f.offsetHeight):0},C.fn.noPaddingHeight=function(u){return u=u||!1,this.length>0?u?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},C.fn.noPaddingWidth=function(u){return u=u||!1,this.length>0?u?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},C.fn.innerWidth=function(){let u=this.get(0);if(u!=null){let f=window.getComputedStyle(u);return this.outerWidth()-parseFloat(f.borderLeftWidth)-parseFloat(f.borderRightWidth)}return 0},C.fn.innerHeight=function(){let u=this.get(0);if(u!=null){let f=window.getComputedStyle(u);return this.outerHeight()-parseFloat(f.borderTopWidth)-parseFloat(f.borderBottomtWidth)}return 0},C.fn.width=function(){return this.outerWidth()},C.fn.height=function(){return this.outerHeight()},C.fn.on=function(){let u=arguments,f=function(v,k){let L;if(k.type==="mouseenter"||k.type==="mouseleave"||k.type==="mouseover"){let T=document.elementFromPoint(k.clientX,k.clientY);if(!T.matches(v[1]))for(;(T=T.parentElement)&&!T.matches(v[1]););T!=null&&(L=C(T))}else L=C(k.target).closest(v[1]);if(L!=null&&L.closest(this).length>0){let T=[];if(T.push(k),v[4]!==void 0)for(let z=4;z<v.length;z++)T.push(v[z]);v[2].apply(L.get(0),T)}},g=u[0].split(" ");for(let v=0;v<g.length;v++){let k=g[v];if(typeof u[1]=="string")this.forEach((function(L){if(!C._fn.hasEventListener(L,k,u[2])){let T=f.bind(L,u);L.addEventListener(k,T,u[3]),L._domini_events=L._domini_events===void 0?[]:L._domini_events,L._domini_events.push({type:k,selector:u[1],func:T,trigger:u[2],args:u[3]})}}));else for(let L=0;L<g.length;L++){let T=g[L];this.forEach((function(z){C._fn.hasEventListener(z,T,u[1])||(z.addEventListener(T,u[1],u[2]),z._domini_events=z._domini_events===void 0?[]:z._domini_events,z._domini_events.push({type:T,func:u[1],trigger:u[1],args:u[2]}))}))}}return this},C.fn.off=function(u,f){return this.forEach((function(g){if(g._domini_events!==void 0&&g._domini_events.length>0)if(u===void 0){let v;for(;v=g._domini_events.pop();)g.removeEventListener(v.type,v.func,v.args);g._domini_events=[]}else u.split(" ").forEach((function(v){let k,L=[];for(;k=g._domini_events.pop();)k.type!==v||f!==void 0&&k.trigger!==f?L.push(k):g.removeEventListener(v,k.func,k.args);g._domini_events=L}))})),this},C.fn.offForced=function(){let u=this;return this.forEach((function(f,g){let v=f.cloneNode(!0);f.parentNode.replaceChild(v,f),u[g]=v})),this},C.fn.trigger=function(u,f,g,v){return g=g||!1,v=v||!1,this.forEach((function(k){let L=!1;if(v&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(k,"events")!==void 0&&jQuery._data(k,"events")[u]!==void 0&&(jQuery(k).trigger(u,f),L=!0),!L&&g){let T=new Event(u);T.detail=f,k.dispatchEvent(T)}if(k._domini_events!==void 0)k._domini_events.forEach((function(T){if(T.type===u){let z=new Event(u);T.trigger.apply(k,[z].concat(f))}}));else{let T=!1,z=k;for(;z=z.parentElement,z!=null&&(z._domini_events!==void 0&&z._domini_events.forEach((function(W){if(W.selector!==void 0){let ne=C(z).find(W.selector);if(ne.length>0&&ne.get().indexOf(k)>=0&&W.type===u){let se=new Event(u);W.trigger.apply(k,[se].concat(f)),T=!0}}})),!T););}})),this},C.fn.clear=function(){for(const u of this)delete u._domini_events;return this},C.fn.clone=function(){let u=[];for(const f of this)u.push(f.cloneNode(!0));return C().add(u)},C.fn.detach=function(u){let f=this,g=[];u!==void 0&&(f=this.find(u));for(const v of f)v.parentElement!=null&&g.push(v.parentElement.removeChild(v));return C().add(g)},C.fn.remove=function(u){return this.detach(u).off().clear()},C.fn.prepend=function(u){if((u=C._fn.elementArrayFromAny(u)).length>0)for(const f of this)for(const g of u)f.insertBefore(g,f.children[0]);return this},C.fn.append=function(u){if((u=C._fn.elementArrayFromAny(u)).length>0)for(const f of this)for(const g of u)f.appendChild(g);return this},C.fn.is=function(u){let f=!1;for(const g of this)if(g.matches(u)){f=!0;break}return f},C.fn.parent=function(u){let f=[];for(const g of this){let v=g.parentElement;typeof u=="string"&&(v==null||v.matches(u)||(v=null)),f.push(v)}return C().add(f)},C.fn.copy=function(u,f){let g,v,k;if(typeof u!="object"||u===null)return g=u,g;for(v in g=new u.constructor,u)u.hasOwnProperty(v)&&(k=typeof u[v],f&&k==="object"&&u[v]!==null?g[v]=this.copy(u[v]):g[v]=u[v]);return g},C.fn.first=function(){return C(this[0])},C.fn.last=function(){return C(this[this.length-1])},C.fn.prev=function(u){let f=[];for(const g of this){let v;if(typeof u=="string")for(v=g.previousElementSibling;v!=null;){if(v.matches(u)){f.push(v);break}v=v.previousElementSibling}else f.push(g.previousElementSibling)}return C(null).add(f)},C.fn.next=function(u){let f=[];for(const g of this){let v;if(typeof u=="string")for(v=g.nextElementSibling;v!=null;){if(v.matches(u)){f.includes(v)||f.push(v);break}v=v.nextElementSibling}else f.push(g.nextElementSibling)}return C(null).add(f)},C.fn.closest=function(u){let f=[];for(let g of this)if(typeof u=="string"&&u!==""){for(;!g.matches(u)&&(g=g.parentElement););f.includes(g)||f.push(g)}else{if((u=u instanceof C?u.get(0):u)instanceof Element)for(;g!==u&&(g=g.parentElement););else g=null;f.includes(g)||f.push(g)}return C().add(f)},C.fn.add=function(u){let f=C._fn.elementArrayFromAny(u);for(const g of f)Array.from(this).includes(g)||this.push(g);return this},C.fn.find=function(u){const f=new C;if(typeof u=="string"){let g=[];this.get().forEach((function(v){const k=v.querySelectorAll?.(u)??[];g=g.concat(Array.from(k))})),g.length>0&&f.add(g)}return f},C._fn.bodyTransform=function(){let u=0,f=0;if(typeof WebKitCSSMatrix<"u"){let g=window.getComputedStyle(document.body);if(g.transform!==void 0){let v=new WebKitCSSMatrix(g.transform);v.m41!=="undefined"&&(u=v.m41),v.m42!=="undefined"&&(f=v.m42)}}return{x:u,y:f}},C._fn.bodyTransformY=function(){return this.bodyTransform().y},C._fn.bodyTransformX=function(){return this.bodyTransform().x},C._fn.hasFixedParent=function(u){if(C._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(u).position=="fixed")return!0;while(u=u.parentElement);return!1},C._fn.hasEventListener=function(u,f,g){if(u._domini_events===void 0)return!1;for(let v=0;v<u._domini_events.length;v++)if(u._domini_events[v].trigger===g&&u._domini_events[v].type===f)return!0;return!1},C._fn.allDescendants=function(u){let f=[],g=this;return Array.isArray(u)||(u=[u]),u.forEach((function(v){for(let k=0;k<v.childNodes.length;k++){let L=v.childNodes[k];f.push(L),f=f.concat(g.allDescendants(L))}})),f},C._fn.createElementsFromHTML=function(u){let f=document.createElement("template");return f.innerHTML=u.replace(/(\r\n|\n|\r)/gm,""),[...f.content.childNodes]},C._fn.elementArrayFromAny=function(u){if(typeof u=="string")u=C(u).get();else if(u instanceof C)u=u.get();else if(u instanceof Element)u=[u];else{if(!(u instanceof Array))return[];u=u.filter((f=>f instanceof Element))}return u},C._fn.ElementArrayFromAny=C._fn.elementArrayFromAny,C._fn.absolutePosition=function(u){if(!u.getClientRects().length)return{top:0,left:0};let f=u.getBoundingClientRect(),g=u.ownerDocument.defaultView;return{top:f.top+g.pageYOffset,left:f.left+g.pageXOffset}},C._fn.plugin=function(u,f){C.fn[u]=function(g){return g!==void 0&&f[g]?f[g].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach((function(v){v["domini_"+u]=Object.create(f).init(g,v)}))}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const O=C;C.fn.animate=function(u,f,g){f=f||200,g=g||"easeInOutQuad";for(const v of this){let k,L,T,z,W,ne=0,se=60,oe={},pe={};if(T=this.prop("_domini_animations"),T=T??[],u===!1)T.forEach((function(ye){clearInterval(ye)}));else{let ye=function(){ne++,ne>k?clearInterval(z):(L=W(ne/k),Object.keys(pe).forEach((function(Q){Q.indexOf("scroll")>-1?v[Q]=oe[Q]+pe[Q]*L:v.style[Q]=oe[Q]+pe[Q]*L+"px"})))};W=C.fn.animate.easing[g]??C.fn.animate.easing.easeInOutQuad,Object.keys(u).forEach((function(Q){Q.indexOf("scroll")>-1?(oe[Q]=v[Q],pe[Q]=u[Q]-oe[Q]):(oe[Q]=parseInt(window.getComputedStyle(v)[Q]),pe[Q]=u[Q]-oe[Q])})),k=f/1e3*se,z=setInterval(ye,1e3/se),T.push(z),this.prop("_domini_animations",T)}}return this},C.fn.animate.easing={linear:function(u){return u},easeInOutQuad:function(u){return u<.5?2*u*u:1-Math.pow(-2*u+2,2)/2},easeOutQuad:function(u){return 1-(1-u)*(1-u)}},C.fn.unhighlight=function(u){let f={className:"highlight",element:"span"};return C.fn.extend(f,u),this.find(f.element+"."+f.className).forEach((function(){let g=this.parentNode;g.replaceChild(this.firstChild,this),g.normalize()}))},C.fn.highlight=function(u,f){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const g=C,v={...this.defaults,...f};if(u.constructor===String&&(u=[u]),(u=u.filter((function(W){return W!==""}))).forEach((function(W,ne,se){se[ne]=W.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")})),u.length===0)return this;let k=v.caseSensitive?"":"i",L="("+u.join("|")+")";v.wordsOnly&&(L="(?:,|^|\\s)"+L+"(?:,|$|\\s)");let T=new RegExp(L,k);function z(W,ne,se,oe,pe){if(pe=pe===""?g.fn.highlight.defaults:pe,W.nodeType===3){if(!g(W.parentNode).is(pe)){let ye=W.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(ne);if(ye){let Q,Te=document.createElement(se||"span");Te.className=oe||"highlight",Q=/\.|,|\s/.test(ye[0].charAt(0))?ye.index+1:ye.index;let F=W.splitText(Q);F.splitText(ye[1].length);let He=F.cloneNode(!0);return Te.appendChild(He),F.parentNode.replaceChild(Te,F),1}}}else if(W.nodeType===1&&W.childNodes&&!/(script|style)/i.test(W.tagName)&&!g(W).closest(pe).length>0&&(W.tagName!==se.toUpperCase()||W.className!==oe))for(let ye=0;ye<W.childNodes.length;ye++)ye+=z(W.childNodes[ye],ne,se,oe,pe);return 0}return this.forEach((function(W){z(W,T,v.element,v.className,v.excludeParents)}))},C.fn.serialize=function(){let u=this.get(0);if(!u||u.nodeName!=="FORM")return"";let f,g,v=[];for(f=u.elements.length-1;f>=0;f-=1)if(u.elements[f].name!=="")switch(u.elements[f].nodeName){case"INPUT":switch(u.elements[f].type){case"checkbox":case"radio":u.elements[f].checked&&v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].value));break;case"file":break;default:v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].value))}break;case"TEXTAREA":v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].value));break;case"SELECT":switch(u.elements[f].type){case"select-one":v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].value));break;case"select-multiple":for(g=u.elements[f].options.length-1;g>=0;g-=1)u.elements[f].options[g].selected&&v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].options[g].value))}break;case"BUTTON":switch(u.elements[f].type){case"reset":case"submit":case"button":v.push(u.elements[f].name+"="+encodeURIComponent(u.elements[f].value))}}return v.join("&")},C.fn.serializeObject=function(u,f){let g,v=[];for(g in u)if(u.hasOwnProperty(g)){let k=f?f+"["+g+"]":g,L=u[g];v.push(L!==null&&typeof L=="object"?C.fn.serializeObject(L,k):encodeURIComponent(k)+"="+encodeURIComponent(L))}return v.join("&")},C.fn.inViewPort=function(u,f){let g,v,k=this.get(0);if(k==null)return!1;u=u===void 0?0:u,f=f===void 0?window:typeof f=="string"?document.querySelector(f):f;let L=k.getBoundingClientRect(),T=L.top,z=L.bottom,W=L.left,ne=L.right,se=!1;if(f==null&&(f=window),f===window)g=window.innerWidth||0,v=window.innerHeight||0;else{g=f.clientWidth,v=f.clientHeight;let oe=f.getBoundingClientRect();T-=oe.top,z-=oe.top,W-=oe.left,ne-=oe.left}return u=~~Math.round(parseFloat(u)),ne<=0||W>=g||(se=u>0?T>=u&&z<v-u:(z>0&&T<=v-u)|(T<=0&&z>u)),se},C.fn.ajax=function(u){if((u=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},u)).cors==="cors"){let f=new XMLHttpRequest;return f.onreadystatechange=function(){u.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&u.success(this.responseText),u.fail!=null&&this.readyState===4&&this.status>=400&&u.fail(this)},f.open(u.method.toUpperCase(),u.url,!0),f.setRequestHeader("Content-type",u.contentType),f.setRequestHeader("Accept",u.accept),f.send(this.serializeObject(u.data)),f}{let f="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(v){let k=16*Math.random()|0;return(v==="x"?k:3&k|8).toString(16)})).replaceAll("-","");C.fn[f]=function(){u.success.apply(this,arguments),delete C.fn[u.data.fn]},u.data.callback="DoMini.fn."+f,u.data.fn=f;let g=document.createElement("script");g.type="text/javascript",g.src=u.url+"?"+this.serializeObject(u.data),g.onload=function(){this.remove()},document.body.appendChild(g)}};const me=O;return Y.default})()))}),9645:(function(l){"use strict";/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var B=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function C(me){if(me==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(me)}function O(){try{if(!Object.assign)return!1;var me=new String("abc");if(me[5]="de",Object.getOwnPropertyNames(me)[0]==="5")return!1;for(var u={},f=0;f<10;f++)u["_"+String.fromCharCode(f)]=f;var g=Object.getOwnPropertyNames(u).map(function(k){return u[k]});if(g.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(k){v[k]=k}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}l.exports=O()?Object.assign:function(me,u){for(var f,g=C(me),v,k=1;k<arguments.length;k++){f=Object(arguments[k]);for(var L in f)Y.call(f,L)&&(g[L]=f[L]);if(B){v=B(f);for(var T=0;T<v.length;T++)p.call(f,v[T])&&(g[v[T]]=f[v[T]])}}return g}})},Cr={};function je(l){var B=Cr[l];if(B!==void 0)return B.exports;var Y=Cr[l]={exports:{}};return Wa[l](Y,Y.exports,je),Y.exports}(function(){je.n=function(l){var B=l&&l.__esModule?function(){return l.default}:function(){return l};return je.d(B,{a:B}),B}})(),(function(){je.d=function(l,B){for(var Y in B)je.o(B,Y)&&!je.o(l,Y)&&Object.defineProperty(l,Y,{enumerable:!0,get:B[Y]})}})(),(function(){je.o=function(l,B){return Object.prototype.hasOwnProperty.call(l,B)}})();var Vd={};(function(){"use strict";var l=je(3593),B=window.ReactDOM,Y=je.n(B),p=je(1609),C=je.n(p),O=window.wp.i18n,me=window.wp.apiFetch,u=je.n(me);function f(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=f(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function g(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=f(e))&&(o&&(o+=" "),o+=t);return o}var v=g;const k=({children:e,onOverlayClick:t,isOpen:r=!1,...o})=>(0,l.jsx)("div",{className:v("wdo:modal",r&&"open"),onClick:t,children:(0,l.jsx)("div",{className:"wdo:modal-content",onClick:n=>n.stopPropagation(),...o,children:e})});var L=C().memo(k);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ne=e=>{const t=W(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var se={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"};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oe=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pe=(0,p.createContext)({});function ye({children:e,size:t,color:r,strokeWidth:o,absoluteStrokeWidth:n,className:a}){const i=useMemo(()=>({size:t,color:r,strokeWidth:o,absoluteStrokeWidth:n,className:a}),[t,r,o,n,a]);return createElement(pe.Provider,{value:i},e)}const Q=()=>(0,p.useContext)(pe);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Te=(0,p.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:o,className:n="",children:a,iconNode:i,...c},s)=>{const{size:d=24,strokeWidth:h=2,absoluteStrokeWidth:m=!1,color:x="currentColor",className:b=""}=Q()??{},_=o??m?Number(r??h)*24/Number(t??d):r??h;return(0,p.createElement)("svg",{ref:s,...se,width:t??d??se.width,height:t??d??se.height,stroke:e??x,strokeWidth:_,className:T("lucide",b,n),...!a&&!oe(c)&&{"aria-hidden":"true"},...c},[...i.map(([y,w])=>(0,p.createElement)(y,w)),...Array.isArray(a)?a:[a]])});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F=(e,t)=>{const r=(0,p.forwardRef)(({className:o,...n},a)=>(0,p.createElement)(Te,{ref:a,iconNode:t,className:T(`lucide-${z(ne(e))}`,`lucide-${e}`,o),...n}));return r.displayName=ne(e),r};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nt=F("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),at=({className:e="",children:t,isLoading:r,...o})=>(0,l.jsx)("button",{className:`wdo:button ${e}`,...o,...r?{disabled:!0}:{},children:r?(0,l.jsx)(nt,{className:"wdo:animate-spin wdo:w-4 wdo:h-4"}):t}),Rt=({className:e="",children:t,...r})=>(0,l.jsx)(at,{className:`wdo:button-primary ${e}`,...r,children:t}),Bd=({className:e="",children:t,...r})=>jsx(at,{className:`wdo:button-danger ${e}`,...r,children:t}),Or=({className:e="",children:t,...r})=>(0,l.jsx)(at,{className:`wdo:button-ghost ${e}`,...r,children:t});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ga=F("triangle-alert",[["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"}]]);var kr=({className:e,children:t})=>(0,l.jsxs)("div",{className:`wdo:flex wdo:gap-3 wdo:items-center wdo:p-3 wdo:rounded-sm wdo:border wdo:border-amber-500/30 wdo:bg-amber-500/10 wdo:text-amber-700 wdo:dark:text-amber-400 wdo:text-sm ${e??""}`,children:[(0,l.jsx)(Ga,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),(0,l.jsx)("div",{children:t})]}),qa=({forceOpen:e,onClose:t})=>{const[r,o]=(0,p.useState)(!1),[n,a]=(0,p.useState)(""),[i,c]=(0,p.useState)(!1),[s,d]=(0,p.useState)("");(0,p.useEffect)(()=>{Number(ASP_BACKEND.asset_rev)>0&&o(!0),u()({path:"/ajax-search-pro/updates-help/check"}).then(b=>{b.message==="ok"&&o(!0)}).catch(()=>{})},[]),(0,p.useEffect)(()=>{e&&o(!0)},[e]);const h=()=>{o(!1),a(""),d(""),t?.()},m=()=>{c(!0),d(""),u()({path:"/ajax-search-pro/updates-help/activate",method:"POST",data:{key:n}}).then(()=>{h()}).catch(b=>{d(b?.message||(0,O.__)("Activation failed. Please try again.","ajax-search-pro"))}).finally(()=>{c(!1)})},x=()=>{h(),t||(window.history.length>1?window.history.back():window.location.href=ASP_BACKEND.admin_url)};return(0,l.jsx)(L,{isOpen:r,children:(0,l.jsxs)("div",{className:"wdo:p-8 wdo:min-w-[480px] wdo:max-w-lg",children:[(0,l.jsx)("h2",{className:"wdo:text-lg wdo:font-semibold wdo:text-gray-900 wdo:dark:text-white wdo:mb-3",children:(0,O.__)("Activate your license","ajax-search-pro")}),(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-600 wdo:dark:text-gray-400 wdo:mb-2",children:(0,O.__)("A valid license is required to use Ajax Search Pro. Enter your purchase code to activate it on this site.","ajax-search-pro")}),(0,l.jsx)("p",{className:"wdo:text-sm wdo:mb-5",children:(0,l.jsx)("a",{href:"https://documentation.ajaxsearchpro.com/plugin-updates/automatic-updates/purchase-code",target:"_blank",rel:"noreferrer",className:"wdo:text-blue-600 wdo:dark:text-blue-400 wdo:underline",children:(0,O.__)("Where do I find my license key?","ajax-search-pro")})}),s&&(0,l.jsx)(kr,{className:"wdo:mb-4",children:s}),(0,l.jsx)("label",{className:"wdo:block wdo:text-sm wdo:font-medium wdo:text-gray-700 wdo:dark:text-gray-200 wdo:mb-1",children:(0,O.__)("License key","ajax-search-pro")}),(0,l.jsx)("input",{type:"text",value:n,onChange:b=>{a(b.target.value),d("")},className:"wdo:block wdo:w-full wdo:mb-4 wdo:px-3 wdo:py-2 wdo:rounded wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:dark:bg-gray-700 wdo:dark:text-white wdo:text-sm",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}),(0,l.jsxs)("div",{className:"wdo:flex wdo:gap-3",children:[(0,l.jsx)(Rt,{isLoading:i,disabled:i||n.trim().length!==36,onClick:m,children:(0,O.__)("Activate","ajax-search-pro")}),e&&(0,l.jsx)(at,{disabled:i,onClick:x,children:(0,O.__)("Go back","ajax-search-pro")})]})]})})};const Ar=["Yay","Top of the morning to you","You did it","All good chief","Looking good","Good job"],jr=["Something went south :(","Ooof, please try again","Ouch, that didn't work...","Ooops, that didn't work..."];let it=[],Nt=[];const Dr=()=>Nt.forEach(e=>e(it)),bn=e=>{it=it.filter(t=>t.id!==e),Dr()},Tt=(e,t="")=>{const r=Math.random().toString(36).substring(2,9);t===""&&(e==="success"?t=Ar[Math.floor(Math.random()*Ar.length)]:t=jr[Math.floor(Math.random()*jr.length)]),it=[...it,{id:r,type:e,text:t}],Dr(),setTimeout(()=>bn(r),e==="success"?3e3:15e3)},Ya=(e="")=>Tt("success",e),Za=(e="")=>{typeof e=="string"?Tt("error",e):Tt("error",e.message)},Lt=()=>{const[e,t]=(0,p.useState)(it);return(0,p.useEffect)(()=>(Nt.push(t),t(it),()=>{Nt=Nt.filter(r=>r!==t)}),[]),{messages:e,addSuccess:Ya,addError:Za,addMessage:Tt,dismissMessage:bn}};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xa=F("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ja=F("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fr=F("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qa={success:(0,l.jsx)(Xa,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),error:(0,l.jsx)(Ja,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"})};var Ka=({messages:e})=>(0,l.jsx)("div",{className:"wdo:fixed wdo:top-16 wdo:left-1/2 wdo:-translate-x-1/2 wdo:w-full wdo:max-w-md wdo:z-50 wdo:flex wdo:flex-col wdo:gap-2 wdo:px-4",children:e.map(t=>(0,l.jsxs)("div",{className:v("wdo:toast",t.type==="success"?"wdo:toast-success":"wdo:toast-error"),children:[(0,l.jsx)("span",{className:v("wdo:shrink-0",t.type==="success"?"wdo:text-green-600 wdo:dark:text-green-400":"wdo:text-red-600 wdo:dark:text-red-400"),children:Qa[t.type]}),(0,l.jsx)("span",{className:"wdo:grow wdo:text-sm",children:t.text}),(0,l.jsx)("button",{className:"wdo:shrink-0 wdo:p-0.5 wdo:rounded wdo:border-0 wdo:cursor-pointer wdo:bg-transparent wdo:text-wp-admin-500 wdo:hover:text-wp-admin-800 wdo:dark:text-wp-admin-400 wdo:dark:hover:text-wp-admin-100 wdo:transition-colors",onClick:()=>bn(t.id),"aria-label":"Dismiss",children:(0,l.jsx)(Fr,{className:"wdo:w-4 wdo:h-4"})})]},t.id))});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ei=F("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"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ti=F("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ni=F("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),Pr=(0,p.createContext)(void 0),Mr=e=>e==="light"||e==="dark"||e==="system",Ir=e=>e==="dark"?!0:e==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches,ri=({children:e})=>{const[t,r]=(0,p.useState)(()=>{const i=localStorage.getItem("wdo_darkmode");return Mr(i)?i:"system"}),[o,n]=(0,p.useState)(()=>Ir(t)),a=i=>{r(i),localStorage.setItem("wdo_darkmode",i)};return(0,p.useEffect)(()=>{n(Ir(t))},[t]),(0,p.useEffect)(()=>{if(t!=="system")return;const i=window.matchMedia("(prefers-color-scheme: dark)"),c=s=>n(s.matches);return i.addEventListener("change",c),()=>i.removeEventListener("change",c)},[t]),(0,p.useEffect)(()=>{document.body.classList.toggle("wdo:dark",o)},[o]),(0,p.useEffect)(()=>{const i=c=>{c.key==="wdo_darkmode"&&Mr(c.newValue)&&r(c.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),(0,l.jsx)(Pr.Provider,{value:{isDark:o,mode:t,setMode:a},children:e})},Rr=()=>{const e=(0,p.useContext)(Pr);if(e===void 0)throw new Error("useIsDark must be used within a DarkModeProvider");return e},oi=[{mode:"light",icon:(0,l.jsx)(ei,{}),title:"Light"},{mode:"system",icon:(0,l.jsx)(ti,{}),title:"System"},{mode:"dark",icon:(0,l.jsx)(ni,{}),title:"Dark"}],ai=()=>{const{isDark:e,mode:t,setMode:r}=Rr();return(0,l.jsx)("div",{className:v("wdo:inline-flex wdo:rounded-lg wdo:p-0.5 wdo:gap-0.5",e?"wdo:bg-wp-admin-700":"wdo:bg-wp-admin-200"),children:oi.map(({mode:o,icon:n,title:a})=>{const i=t===o;return(0,l.jsx)("button",{title:a,onClick:()=>r(o),className:v("wdo:rounded wdo:p-1.5 wdo:border-0 wdo:cursor-pointer","wdo:transition-colors wdo:flex wdo:items-center wdo:justify-center",i?e?"wdo:bg-wp-admin-500 wdo:text-white":"wdo:bg-white wdo:text-wp-admin-700 wdo:shadow-sm":e?"wdo:bg-transparent wdo:text-wp-admin-300":"wdo:bg-transparent wdo:text-wp-admin-500"),children:(0,l.jsx)("span",{className:"wdo:w-[18px] wdo:h-[18px] wdo:flex wdo:items-center wdo:justify-center",children:n})},o)})})};var ii=()=>{const e=typeof window<"u"&&Array.isArray(window.wpdrmsSharedConflicts)?window.wpdrmsSharedConflicts:[];return e.length===0?null:(0,l.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:gap-2 wdo:mb-4",children:e.map((t,r)=>(0,l.jsx)("div",{role:"alert",className:"wdo:p-3 wdo:rounded wdo:text-sm wdo:bg-red-50 wdo:text-red-800 wdo:dark:bg-red-900/20 wdo:dark:text-red-200",children:t.message},r))})},si=({subtitle:e="",logo:t,className:r=""})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ii,{}),(0,l.jsxs)("div",{className:"wdo:top-bar",children:[(0,l.jsxs)("div",{className:v("wdo:flex wdo:items-baseline wdo:gap-3",r),children:[t,e?(0,l.jsx)("h2",{children:e}):""]}),(0,l.jsx)(ai,{})]})]}),ui=()=>(0,l.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right"},"aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})}),ci=()=>(0,l.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right",transform:"rotate(180deg)"},"aria-hidden":"true",focusable:"false",children:(0,l.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})});const yn=(0,p.createContext)(null),li=({children:e})=>{const[t,r]=(0,p.useState)(null),[o,n]=(0,p.useState)(()=>window.location.hash.slice(1)||null),[a,i]=(0,p.useState)([]),c=(0,p.useRef)([]),[s,d]=(0,p.useState)(()=>({})),h=w=>{const S=c.current.reduce((E,A)=>(E[A]=!0,E),{});d(E=>({...E,...S,[w]:!0}))},m=w=>{d(S=>({...S,[w]:!1}))},x=w=>{d(S=>({...S,[w]:!(S[w]??!1)}))},b=w=>{i(S=>[...S,o]),n(w),w?window.history.pushState(null,"",`#${w}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},_=()=>{if(a.length===0)return;const w=a[a.length-1];i(S=>S.slice(0,-1)),n(w),w?window.history.pushState(null,"",`#${w}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},y=a.length>0;return(0,p.useEffect)(()=>{const w=()=>{n(window.location.hash.slice(1)||null),o&&h(o)};return o&&h(o),window.addEventListener("hashchange",w),()=>window.removeEventListener("hashchange",w)},[]),(0,l.jsx)(yn.Provider,{value:{activeId:o,setActiveId:n,isOpen:s,toggleOpen:x,open:h,close:m,openedParents:c,confirmBeforeSwap:t,setConfirmBeforeSwap:r,navigate:b,goBack:_,canGoBack:y},children:e})},di=({children:e,...t})=>(0,l.jsx)("ul",{style:{listStyleType:"none",padding:0,userSelect:"none"},...t,children:p.Children.map(e,r=>(0,p.cloneElement)(r,{level:0}))}),Nr=({label:e,id:t,children:r,iconBefore:o,iconAfter:n,disabled:a,defaultActive:i=!1,level:c=0,parents:s=[],...d})=>{const h=(0,p.useContext)(yn);if(!h)throw new Error("MenuItem must be used within a MenuProvider");const{activeId:m,isOpen:x,toggleOpen:b,openedParents:_,confirmBeforeSwap:y,setConfirmBeforeSwap:w,navigate:S}=h,E=m!==null?m===t:i,A=p.Children.count(r)>0,M=A?x[t]:!1;E&&(A&&(_.current=[...new Set(_.current.concat([t]))]),s.length&&(_.current=[...new Set(_.current.concat(s))]));const R=["","wdo:pl-4","wdo:pl-6","wdo:pl-8","wdo:pl-10"];return(0,l.jsxs)("li",{...d,children:[(0,l.jsxs)("a",{href:t?`#${t}`:void 0,onClick:I=>{I.preventDefault(),A&&!M&&b(t),!a&&(y===null||confirm(y))&&(w(null),A||S(t))},className:`
					${R[c]??""} 
					${E?"wdo:menu-item-active":""}
				    wdo:menu-item
				 `,children:[o&&(0,l.jsx)("span",{children:o}),(0,l.jsx)("span",{children:e}),n&&(0,l.jsx)("span",{children:n}),A&&(0,l.jsx)("span",{className:"wdo:dark:fill-gray-300",onClick:I=>{I.stopPropagation(),I.preventDefault(),b(t)},children:M?(0,l.jsx)(ci,{}):(0,l.jsx)(ui,{})})]}),A&&(0,l.jsx)("ul",{style:{listStyleType:"none",padding:0,display:M?"block":"none"},children:p.Children.map(r,I=>(0,p.cloneElement)(I,{level:c+1,parents:s.concat([t]),...d}))})]})};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fi=F("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pi=F("external-link",[["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"}]]);var rf=je(8623);const of=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Tr=e=>{let t=!1;return typeof window.$<"u"&&(typeof e>"u"||typeof window.$.fn[e]<"u")&&(t=window.$),t===!1&&typeof window.jQuery<"u"&&(t=window.jQuery,(typeof e>"u"||typeof window.jQuery.fn[e]<"u")&&(t=window.jQuery)),t},af=function(e,t){let r=e.find("input,textarea,select,button").get();if(arguments.length===1){const o={};return r.forEach(function(n){n.name&&!n.disabled&&(n.checked||/select|textarea/i.test(n.nodeName)||/text/i.test(n.type)||$(n).hasClass("hasDatepicker")||$(n).hasClass("asp_slider_hidden"))&&(o[n.name]===void 0&&(o[n.name]=[]),$(n).hasClass("hasDatepicker")?o[n.name].push($(n).parent().find(".asp_datepicker_hidden").val()):o[n.name].push($(n).val()))}),JSON.stringify(o)}else if(t!==void 0){const o=typeof t!="object"?JSON.parse(t):t;return r.forEach(function(n){if(n.name)if(o[n.name]){let a=o[n.name],i=$(n);if(Object.prototype.toString.call(a)!=="[object Array]"&&(a=[a]),n.type==="checkbox"||n.type==="radio"){let c=i.val(),s=!1;for(let d=0;d<a.length;d++)if(a[d]===c){s=!0;break}i.prop("checked",s)}else i.val(a[0]),$(n).hasClass("asp_gochosen")||$(n).hasClass("asp_goselect2")?intervalUntilExecute(function(c){c(n).trigger("change.asp_select2")},function(){return Tr("asp_select2")},50,3):$(n).hasClass("hasDatepicker")&&intervalUntilExecute(function(c){const s=i.get(0);if(s===void 0)return;let d=a[0],h=c(s).datepicker("option","dateFormat");c(s).datepicker("option","dateFormat","yy-mm-dd"),c(s).datepicker("setDate",d),c(s).datepicker("option","dateFormat",h),c(s).trigger("selectnochange")},function(){return Tr("datepicker")},50,3)}else(n.type==="checkbox"||n.type==="radio")&&$(n).prop("checked",!1)}),e}},sf=function(e,t,r,o="self"){let n;n=$('<form style="display: none;" />'),n.attr("action",e),n.attr("method",t),$("body").append(n),typeof r<"u"&&r!==null&&Object.keys(r).forEach(function(a){let i=r[a],c=$('<input type="hidden" />');c.attr("name",a),c.attr("value",i),n.append(c)}),o=="new"&&n.attr("target","_blank"),n.get(0).submit()},hi=function(e){Object.assign(document.createElement("a"),{target:"_blank",href:e}).click()},uf=function(e,t=0){for(const r of e)if(mi(r))return window.scrollTo({top:r.getBoundingClientRect().top-120+window.pageYOffset+t,behavior:"smooth"}),!0;return!1},mi=function(e){if(typeof e.checkVisibility>"u")return!0;let t=e,r=!0;for(;t!==null;){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0})){r=!1;break}t=t.parentElement}return r};var gi=()=>(0,l.jsx)("svg",{width:"200",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.64 26.62",children:(0,l.jsxs)("g",{children:[(0,l.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m13.59 20.4-1.32-2.93H5.78L4.46 20.4H.6L8.75 3.6h.55l8.15 16.8h-3.86Zm-6.5-5.81h3.84l-1.92-4.25-1.92 4.25Z"}),(0,l.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"M22.03 7.92V21.6c0 1.23-.34 2.16-1.01 2.78-.67.62-1.6.94-2.78.94-.66 0-1.53-.19-2.64-.58v-3.43c.19.05.41.11.66.18.25.07.44.13.58.17.14.04.29.08.46.11.17.03.32.05.47.05.56 0 .84-.45.84-1.34V7.92h3.43Zm0-4.32v3.05H18.6V3.6h3.43ZM29.63 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM46.7 20.4l-2.85-4.06L41 20.4h-3.86l4.79-6.41-4.31-6.07h3.76l2.47 3.72 2.47-3.72h3.76l-4.31 6.07 4.79 6.41H46.7ZM61.63 3.43c1.34 0 2.49.32 3.45.96.96.64 1.68 1.42 2.16 2.33l-3.09 1.06c-.42-.86-1.21-1.3-2.37-1.3-.58 0-1.06.13-1.45.38-.39.26-.59.58-.59.98s.14.78.42 1.09.81.6 1.59.85l.65.22c1.87.64 3.22 1.42 4.04 2.35.82.93 1.23 2.01 1.23 3.24 0 1.09-.34 2.02-1.01 2.81-.67.78-1.45 1.34-2.35 1.67-.9.33-1.81.49-2.76.49-1.53 0-2.85-.35-3.94-1.06-1.09-.7-1.87-1.66-2.31-2.88l2.9-1.3c.24.62.66 1.14 1.27 1.56s1.3.62 2.09.62c.67 0 1.27-.16 1.79-.48.52-.32.78-.8.78-1.44s-.19-1.08-.56-1.4c-.38-.33-1.08-.68-2.12-1.04l-.62-.24c-1.47-.51-2.61-1.16-3.4-1.96-.8-.79-1.2-1.83-1.2-3.11s.54-2.34 1.61-3.17c1.07-.83 2.34-1.25 3.81-1.25ZM74.84 7.78c.69 0 1.39.14 2.1.41s1.38.66 2.01 1.16c.63.5 1.14 1.18 1.53 2.03.39.85.59 1.79.59 2.83 0 .46-.03.88-.1 1.25h-8.92c.19.66.56 1.18 1.11 1.57.55.39 1.14.59 1.76.59.97 0 1.7-.26 2.18-.77l2.83 1.44c-1.33 1.52-3 2.28-5.03 2.28-.67 0-1.37-.13-2.09-.4s-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.2-1.98.6-2.83.91-1.52 1.55-2.03c.63-.5 1.31-.89 2.03-1.16s1.43-.41 2.13-.41Zm0 2.98c-.62 0-1.19.18-1.69.55-.5.37-.85.89-1.04 1.56h5.49c-.18-.67-.53-1.19-1.06-1.56-.53-.37-1.09-.55-1.7-.55ZM88.1 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM103.94 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM112.14 7.78c.96 0 1.92.24 2.88.71s1.74 1.18 2.35 2.12l-3.04 1.1c-.48-.67-1.21-1.01-2.18-1.01-.78 0-1.46.32-2.04.95-.58.63-.86 1.48-.86 2.56s.29 1.85.86 2.47c.58.62 1.25.94 2.04.94.99 0 1.72-.33 2.18-.98l3.07 1.1c-.62.94-1.41 1.65-2.37 2.12-.96.47-1.92.71-2.88.71-.67 0-1.36-.13-2.07-.4-.71-.26-1.39-.64-2.04-1.14-.65-.5-1.18-1.16-1.59-2s-.62-1.78-.62-2.82.21-2.01.62-2.87c.42-.86.95-1.53 1.59-2.03s1.33-.88 2.04-1.14c.71-.26 1.4-.4 2.07-.4ZM126.16 7.8c1.29 0 2.4.45 3.31 1.34.91.9 1.37 2.26 1.37 4.08v7.18h-3.43v-6.96c0-1.81-.67-2.71-2.01-2.71-.64 0-1.22.2-1.75.61s-.9.8-1.13 1.19c-.22.38-.36.69-.41.91v6.96h-3.43V3.6h3.43v6.67c.06-.48.47-1.01 1.22-1.6.75-.58 1.69-.88 2.83-.88ZM142.75 3.6c1.93 0 3.45.5 4.55 1.5 1.1 1 1.65 2.28 1.65 3.83s-.56 2.83-1.67 3.84c-1.11 1.01-2.62 1.51-4.54 1.51h-2.33v6.12h-3.52V3.6h5.85Zm-.1 7.54c.86 0 1.54-.19 2.04-.56.5-.38.74-.92.74-1.64s-.25-1.27-.74-1.64c-.5-.38-1.17-.56-2.04-.56h-2.23v4.42h2.23ZM158.05 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM163.71 8.18c.73-.27 1.43-.41 2.1-.41s1.37.14 2.09.41 1.4.66 2.05 1.16c.65.5 1.18 1.18 1.59 2.03.42.85.62 1.79.62 2.83s-.21 1.98-.62 2.82c-.42.84-.95 1.51-1.59 2-.65.5-1.33.88-2.05 1.14s-1.41.4-2.09.4-1.37-.13-2.09-.4-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.21-1.98.62-2.83.95-1.52 1.59-2.03c.65-.5 1.33-.89 2.06-1.16Zm2.1 2.52c-.78 0-1.47.31-2.06.94-.59.62-.89 1.48-.89 2.57s.3 1.89.89 2.5c.59.61 1.28.91 2.06.91s1.45-.3 2.04-.91.89-1.44.89-2.5-.3-1.94-.89-2.57c-.59-.62-1.27-.94-2.04-.94Z"}),(0,l.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m174.49 24.75-6.88-7.26 1.29-1.39 7.74 6.34-2.15 2.31z"})]})}),vi=window.lodash,wi=je.n(vi);function st(e){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(e)}function bi(e,t){if(st(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(st(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lr(e){var t=bi(e,"string");return st(t)=="symbol"?t:t+""}function xt(e,t,r){return(t=Lr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(o){xt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function yi(e){if(Array.isArray(e))return e}function xi(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,a,i,c=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(o=a.call(r)).done)&&(c.push(o.value),c.length!==t);s=!0);}catch(h){d=!0,n=h}finally{try{if(!s&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return c}}function xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function Br(e,t){if(e){if(typeof e=="string")return xn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xn(e,t):void 0}}function Ei(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e,t){return yi(e)||xi(e,t)||Br(e,t)||Ei()}function Si(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function Je(e,t){if(e==null)return{};var r,o,n=Si(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var _i=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ci(e){var t=e.defaultInputValue,r=t===void 0?"":t,o=e.defaultMenuIsOpen,n=o===void 0?!1:o,a=e.defaultValue,i=a===void 0?null:a,c=e.inputValue,s=e.menuIsOpen,d=e.onChange,h=e.onInputChange,m=e.onMenuClose,x=e.onMenuOpen,b=e.value,_=Je(e,_i),y=(0,p.useState)(c!==void 0?c:r),w=Xe(y,2),S=w[0],E=w[1],A=(0,p.useState)(s!==void 0?s:n),M=Xe(A,2),R=M[0],I=M[1],D=(0,p.useState)(b!==void 0?b:i),j=Xe(D,2),N=j[0],ee=j[1],V=(0,p.useCallback)(function(we,le){typeof d=="function"&&d(we,le),ee(we)},[d]),P=(0,p.useCallback)(function(we,le){var Ce;typeof h=="function"&&(Ce=h(we,le)),E(Ce!==void 0?Ce:we)},[h]),X=(0,p.useCallback)(function(){typeof x=="function"&&x(),I(!0)},[x]),K=(0,p.useCallback)(function(){typeof m=="function"&&m(),I(!1)},[m]),ae=c!==void 0?c:S,te=s!==void 0?s:R,ve=b!==void 0?b:N;return q(q({},_),{},{inputValue:ae,menuIsOpen:te,onChange:V,onInputChange:P,onMenuClose:K,onMenuOpen:X,value:ve})}function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Z.apply(null,arguments)}function Oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $r(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Lr(o.key),o)}}function ki(e,t,r){return t&&$r(e.prototype,t),r&&$r(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},En(e,t)}function Ai(e,t){if(typeof t!="function"&&t!==null)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&&En(e,t)}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vt(e)}function Hr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hr=function(){return!!e})()}function ji(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e,t){if(t&&(st(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ji(e)}function Fi(e){var t=Hr();return function(){var r,o=Vt(e);if(t){var n=Vt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return Di(this,r)}}function Pi(e){if(Array.isArray(e))return xn(e)}function Mi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ii(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sn(e){return Pi(e)||Mi(e)||Br(e)||Ii()}var Ri=!1;function Ni(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ti(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Li=(function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!Ri:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ti(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Ni(n);try{a.insertRule(o,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})(),Vi=Math.abs,Bt=String.fromCharCode,Bi=Object.assign;function $i(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function Ur(e){return e.trim()}function Hi(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,r){return e.replace(t,r)}function _n(e,t){return e.indexOf(t)}function ke(e,t){return e.charCodeAt(t)|0}function Et(e,t,r){return e.slice(t,r)}function Ue(e){return e.length}function Cn(e){return e.length}function $t(e,t){return t.push(e),e}function Ui(e,t){return e.map(t).join("")}var Ht=1,lt=1,zr=0,Fe=0,ge=0,dt="";function Ut(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Ht,column:lt,length:i,return:""}}function St(e,t){return Bi(Ut("",null,null,"",null,null,0),e,{length:-e.length},t)}function zi(){return ge}function Wi(){return ge=Fe>0?ke(dt,--Fe):0,lt--,ge===10&&(lt=1,Ht--),ge}function Pe(){return ge=Fe<zr?ke(dt,Fe++):0,lt++,ge===10&&(lt=1,Ht++),ge}function ze(){return ke(dt,Fe)}function zt(){return Fe}function _t(e,t){return Et(dt,e,t)}function ft(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function On(e){return Ht=lt=1,zr=Ue(dt=e),Fe=0,[]}function kn(e){return dt="",e}function Ct(e){return Ur(_t(Fe-1,An(e===91?e+2:e===40?e+1:e)))}function lf(e){return kn(qi(On(e)))}function Gi(e){for(;(ge=ze())&&ge<33;)Pe();return ft(e)>2||ft(ge)>3?"":" "}function qi(e){for(;Pe();)switch(ft(ge)){case 0:append(Wr(Fe-1),e);break;case 2:append(Ct(ge),e);break;default:append(from(ge),e)}return e}function Yi(e,t){for(;--t&&Pe()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return _t(e,zt()+(t<6&&ze()==32&&Pe()==32))}function An(e){for(;Pe();)switch(ge){case e:return Fe;case 34:case 39:e!==34&&e!==39&&An(ge);break;case 40:e===41&&An(e);break;case 92:Pe();break}return Fe}function Zi(e,t){for(;Pe()&&e+ge!==57;)if(e+ge===84&&ze()===47)break;return"/*"+_t(t,Fe-1)+"*"+Bt(e===47?e:Pe())}function Wr(e){for(;!ft(ze());)Pe();return _t(e,Fe)}var De="-ms-",Wt="-moz-",ce="-webkit-",Gr="comm",jn="rule",Dn="decl",df="@page",ff="@media",Xi="@import",pf="@charset",hf="@viewport",mf="@supports",gf="@document",vf="@namespace",qr="@keyframes",wf="@font-face",bf="@counter-style",yf="@font-feature-values",Ji="@layer";function pt(e,t){for(var r="",o=Cn(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function Qi(e,t,r,o){switch(e.type){case Ji:if(e.children.length)break;case Xi:case Dn:return e.return=e.return||e.value;case Gr:return"";case qr:return e.return=e.value+"{"+pt(e.children,o)+"}";case jn:e.value=e.props.join(",")}return Ue(r=pt(e.children,o))?e.return=e.value+"{"+r+"}":""}function Ki(e){var t=Cn(e);return function(r,o,n,a){for(var i="",c=0;c<t;c++)i+=e[c](r,o,n,a)||"";return i}}function es(e){return function(t){t.root||(t=t.return)&&e(t)}}function xf(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,r);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],o);case RULESET:if(e.length)return combine(e.props,function(n){switch(match(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(n,/:(read-\w+)/,":"+MOZ+"$1")]})],o);case"::placeholder":return serialize([copy(e,{props:[replace(n,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(n,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(n,/:(plac\w+)/,MS+"input-$1")]})],o)}return""})}}function Ef(e){switch(e.type){case RULESET:e.props=e.props.map(function(t){return combine(tokenize(t),function(r,o,n){switch(charat(r,0)){case 12:return substr(r,1,strlen(r));case 0:case 40:case 43:case 62:case 126:return r;case 58:n[++o]==="global"&&(n[o]="",n[++o]="\f"+substr(n[o],o=1,-1));case 32:return o===1?"":r;default:switch(o){case 0:return e=r,sizeof(n)>1?"":r;case(o=sizeof(n)-1):case 2:return o===2?r+e+e:r+e;default:return r}}})})}}function ts(e){return kn(Gt("",null,null,null,[""],e=On(e),0,[0],e))}function Gt(e,t,r,o,n,a,i,c,s){for(var d=0,h=0,m=i,x=0,b=0,_=0,y=1,w=1,S=1,E=0,A="",M=n,R=a,I=o,D=A;w;)switch(_=E,E=Pe()){case 40:if(_!=108&&ke(D,m-1)==58){_n(D+=ue(Ct(E),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:D+=Ct(E);break;case 9:case 10:case 13:case 32:D+=Gi(_);break;case 92:D+=Yi(zt()-1,7);continue;case 47:switch(ze()){case 42:case 47:$t(ns(Zi(Pe(),zt()),t,r),s);break;default:D+="/"}break;case 123*y:c[d++]=Ue(D)*S;case 125*y:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+h:S==-1&&(D=ue(D,/\f/g,"")),b>0&&Ue(D)-m&&$t(b>32?Zr(D+";",o,r,m-1):Zr(ue(D," ","")+";",o,r,m-2),s);break;case 59:D+=";";default:if($t(I=Yr(D,t,r,d,h,n,c,A,M=[],R=[],m),a),E===123)if(h===0)Gt(D,t,I,I,M,a,m,c,R);else switch(x===99&&ke(D,3)===110?100:x){case 100:case 108:case 109:case 115:Gt(e,I,I,o&&$t(Yr(e,I,I,0,0,n,c,A,n,M=[],m),R),n,R,m,c,o?M:R);break;default:Gt(D,I,I,I,[""],R,0,c,R)}}d=h=b=0,y=S=1,A=D="",m=i;break;case 58:m=1+Ue(D),b=_;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&Wi()==125)continue}switch(D+=Bt(E),E*y){case 38:S=h>0?1:(D+="\f",-1);break;case 44:c[d++]=(Ue(D)-1)*S,S=1;break;case 64:ze()===45&&(D+=Ct(Pe())),x=ze(),h=m=Ue(A=D+=Wr(zt())),E++;break;case 45:_===45&&Ue(D)==2&&(y=0)}}return a}function Yr(e,t,r,o,n,a,i,c,s,d,h){for(var m=n-1,x=n===0?a:[""],b=Cn(x),_=0,y=0,w=0;_<o;++_)for(var S=0,E=Et(e,m+1,m=Vi(y=i[_])),A=e;S<b;++S)(A=Ur(y>0?x[S]+" "+E:ue(E,/&\f/g,x[S])))&&(s[w++]=A);return Ut(e,t,r,n===0?jn:c,s,d,h)}function ns(e,t,r){return Ut(e,t,r,Gr,Bt(zi()),Et(e,2,-2),0)}function Zr(e,t,r,o){return Ut(e,t,r,Dn,Et(e,0,o),Et(e,o+1,-1),o)}var rs=function(t,r,o){for(var n=0,a=0;n=a,a=ze(),n===38&&a===12&&(r[o]=1),!ft(a);)Pe();return _t(t,Fe)},os=function(t,r){var o=-1,n=44;do switch(ft(n)){case 0:n===38&&ze()===12&&(r[o]=1),t[o]+=rs(Fe-1,r,o);break;case 2:t[o]+=Ct(n);break;case 4:if(n===44){t[++o]=ze()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Bt(n)}while(n=Pe());return t},as=function(t,r){return kn(os(On(t),r))},Xr=new WeakMap,is=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xr.get(o))&&!n){Xr.set(t,!0);for(var a=[],i=as(r,a),c=o.props,s=0,d=0;s<i.length;s++)for(var h=0;h<c.length;h++,d++)t.props[d]=a[s]?i[s].replace(/&\f/g,c[h]):c[h]+" "+i[s]}}},ss=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Jr(e,t){switch($i(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+Wt+e+De+e+e;case 6828:case 4268:return ce+e+De+e+e;case 6165:return ce+e+De+"flex-"+e+e;case 5187:return ce+e+ue(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+De+"flex-$1$2")+e;case 5443:return ce+e+De+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return ce+e+De+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+De+ue(e,"shrink","negative")+e;case 5292:return ce+e+De+ue(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+ue(e,"-grow","")+ce+e+De+ue(e,"grow","positive")+e;case 4554:return ce+ue(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+De+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+Wt+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_n(e,"stretch")?Jr(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,Ue(e)-3-(~_n(e,"!important")&&10))){case 107:return ue(e,":",":"+ce)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(ke(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return ce+e+De+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+De+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+De+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+De+e+e}return e}var us=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case Dn:t.return=Jr(t.value,t.length);break;case qr:return pt([St(t,{value:ue(t.value,"@","@"+ce)})],n);case jn:if(t.length)return Ui(t.props,function(a){switch(Hi(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pt([St(t,{props:[ue(a,/:(read-\w+)/,":"+Wt+"$1")]})],n);case"::placeholder":return pt([St(t,{props:[ue(a,/:(plac\w+)/,":"+ce+"input-$1")]}),St(t,{props:[ue(a,/:(plac\w+)/,":"+Wt+"$1")]}),St(t,{props:[ue(a,/:(plac\w+)/,De+"input-$1")]})],n)}return""})}},cs=[us],ls=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=t.stylisPlugins||cs,a={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;c.push(y)});var s,d=[is,ss];{var h,m=[Qi,es(function(y){h.insert(y)})],x=Ki(d.concat(n,m)),b=function(w){return pt(ts(w),x)};s=function(w,S,E,A){h=E,b(w?w+"{"+S.styles+"}":S.styles),A&&(_.inserted[S.name]=!0)}}var _={key:r,sheet:new Li({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:s};return _.sheet.hydrate(c),_},ds=!0;function fs(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(o+=n+" ")}),o}var Qr=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||ds===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},ps=function(t,r,o){Qr(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function hs(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ms={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function gs(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vs=!1,ws=/[A-Z]|^ms/g,bs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kr=function(t){return t.charCodeAt(1)===45},eo=function(t){return t!=null&&typeof t!="boolean"},Fn=gs(function(e){return Kr(e)?e:e.replace(ws,"-$&").toLowerCase()}),to=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(bs,function(o,n,a){return We={name:n,styles:a,next:We},n})}return ms[t]!==1&&!Kr(t)&&typeof r=="number"&&r!==0?r+"px":r},ys="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ot(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return We={name:n.name,styles:n.styles,next:We},n.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)We={name:i.name,styles:i.styles,next:We},i=i.next;var c=a.styles+";";return c}return xs(e,t,r)}case"function":{if(e!==void 0){var s=We,d=r(e);return We=s,Ot(e,t,d)}break}}var h=r;if(t==null)return h;var m=t[h];return m!==void 0?m:h}function xs(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Ot(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var c=i;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":eo(c)&&(o+=Fn(a)+":"+to(a,c)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&vs)throw new Error(ys);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)eo(i[s])&&(o+=Fn(a)+":"+to(a,i[s])+";");else{var d=Ot(e,t,i);switch(a){case"animation":case"animationName":{o+=Fn(a)+":"+d+";";break}default:o+=a+"{"+d+"}"}}}}return o}var no=/label:\s*([^\s;{]+)\s*(;|$)/g,We;function ro(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";We=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,n+=Ot(r,t,a);else{var i=a;n+=i[0]}for(var c=1;c<e.length;c++)if(n+=Ot(r,t,e[c]),o){var s=a;n+=s[c]}no.lastIndex=0;for(var d="",h;(h=no.exec(n))!==null;)d+="-"+h[1];var m=hs(n)+d;return{name:m,styles:n,next:We}}var Es=function(t){return t()},oo=p.useInsertionEffect?p.useInsertionEffect:!1,Ss=oo||Es,Sf=oo||p.useLayoutEffect,_s=!1,Pn=p.createContext(typeof HTMLElement<"u"?ls({key:"css"}):null),_f=Pn.Provider,Cf=function(){return useContext(Pn)},Cs=function(t){return(0,p.forwardRef)(function(r,o){var n=(0,p.useContext)(Pn);return t(r,n,o)})},kt=p.createContext({}),Of=function(){return React.useContext(kt)},kf=function(t,r){if(typeof r=="function"){var o=r(t);return o}return _extends({},t,r)},Os=null,Af=function(t){var r=React.useContext(kt);return t.theme!==r&&(r=Os(r)(t.theme)),React.createElement(kt.Provider,{value:r},t.children)};function jf(e){var t=e.displayName||e.name||"Component",r=React.forwardRef(function(n,a){var i=React.useContext(kt);return React.createElement(e,_extends({theme:i,ref:a},n))});return r.displayName="WithTheme("+t+")",hoistNonReactStatics(r,e)}var Mn={}.hasOwnProperty,In="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ks=function(t,r){var o={};for(var n in r)Mn.call(r,n)&&(o[n]=r[n]);return o[In]=t,o},As=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Qr(r,o,n),Ss(function(){return ps(r,o,n)}),null},js=Cs(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[In],a=[o],i="";typeof e.className=="string"?i=fs(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var c=ro(a,void 0,p.useContext(kt));i+=t.key+"-"+c.name;var s={};for(var d in e)Mn.call(e,d)&&d!=="css"&&d!==In&&!_s&&(s[d]=e[d]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(As,{cache:t,serialized:c,isStringTag:typeof n=="string"}),p.createElement(n,s))}),Ds=js,Df=je(7621),G=function(t,r){var o=arguments;if(r==null||!Mn.call(r,"css"))return p.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=Ds,a[1]=ks(t,r);for(var i=2;i<n;i++)a[i]=o[i];return p.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(G||(G={}));var Ff=null;function Rn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ro(t)}function Fs(){var e=Rn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Pf=function e(t){for(var r=t.length,o=0,n="";o<r;o++){var a=t[o];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var c in a)a[c]&&c&&(i&&(i+=" "),i+=c)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}}return n};function Mf(e,t,r){var o=[],n=getRegisteredStyles(e,o,r);return o.length<2?r:n+t(o)}var If=function(t){var r=t.cache,o=t.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var n=0;n<o.length;n++)insertStyles(r,o[n],!1)}),null},Rf=null;function Ps(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Nf=null,Tf=null,Lf=null,qt=Math.min,ut=Math.max,Yt=Math.round,Zt=Math.floor,Ge=e=>({x:e,y:e}),Ms={left:"right",right:"left",bottom:"top",top:"bottom"},Is={start:"end",end:"start"};function Vf(e,t,r){return ut(e,qt(t,r))}function Bf(e,t){return typeof e=="function"?e(t):e}function ao(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function Rs(e){return e==="x"?"y":"x"}function Ns(e){return e==="y"?"height":"width"}const Ts=new Set(["top","bottom"]);function Ls(e){return Ts.has(ao(e))?"y":"x"}function Vs(e){return Rs(Ls(e))}function $f(e,t,r){r===void 0&&(r=!1);const o=io(e),n=Vs(e),a=Ns(n);let i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Tn(i)),[i,Tn(i)]}function Hf(e){const t=Tn(e);return[Nn(e),t,Nn(t)]}function Nn(e){return e.replace(/start|end/g,t=>Is[t])}const so=null,uo=null,Bs=null,$s=null;function Hs(e,t,r){switch(e){case"top":case"bottom":return r?t?uo:so:t?so:uo;case"left":case"right":return t?Bs:$s;default:return[]}}function Uf(e,t,r,o){const n=io(e);let a=Hs(ao(e),r==="start",o);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(Nn)))),a}function Tn(e){return e.replace(/left|right|bottom|top/g,t=>Ms[t])}function Us(e){return{top:0,right:0,bottom:0,left:0,...e}}function zf(e){return typeof e!="number"?Us(e):{top:e,right:e,bottom:e,left:e}}function co(e){const{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function Xt(){return typeof window<"u"}function ht(e){return lo(e)?(e.nodeName||"").toLowerCase():"#document"}function Me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qe(e){var t;return(t=(lo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lo(e){return Xt()?e instanceof Node||e instanceof Me(e).Node:!1}function Le(e){return Xt()?e instanceof Element||e instanceof Me(e).Element:!1}function Ye(e){return Xt()?e instanceof HTMLElement||e instanceof Me(e).HTMLElement:!1}function fo(e){return!Xt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Me(e).ShadowRoot}const zs=new Set(["inline","contents"]);function At(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=Ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!zs.has(n)}const Ws=new Set(["table","td","th"]);function Gs(e){return Ws.has(ht(e))}const qs=[":popover-open",":modal"];function Jt(e){return qs.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ys=["transform","translate","scale","rotate","perspective"],Zs=["transform","translate","scale","rotate","perspective","filter"],Xs=["paint","layout","strict","content"];function Ln(e){const t=Vn(),r=Le(e)?Ve(e):e;return Ys.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Zs.some(o=>(r.willChange||"").includes(o))||Xs.some(o=>(r.contain||"").includes(o))}function Js(e){let t=rt(e);for(;Ye(t)&&!mt(t);){if(Ln(t))return t;if(Jt(t))return null;t=rt(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qs=new Set(["html","body","#document"]);function mt(e){return Qs.has(ht(e))}function Ve(e){return Me(e).getComputedStyle(e)}function Qt(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(ht(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fo(e)&&e.host||qe(e);return fo(t)?t.host:t}function po(e){const t=rt(e);return mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&At(t)?t:po(t)}function jt(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=po(e),a=n===((o=e.ownerDocument)==null?void 0:o.body),i=Me(n);if(a){const c=Bn(i);return t.concat(i,i.visualViewport||[],At(n)?n:[],c&&r?jt(c):[])}return t.concat(n,jt(n,[],r))}function Bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ho(e){const t=Ve(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Ye(e),a=n?e.offsetWidth:r,i=n?e.offsetHeight:o,c=Yt(r)!==a||Yt(o)!==i;return c&&(r=a,o=i),{width:r,height:o,$:c}}function $n(e){return Le(e)?e:e.contextElement}function gt(e){const t=$n(e);if(!Ye(t))return Ge(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:a}=ho(t);let i=(a?Yt(r.width):r.width)/o,c=(a?Yt(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Ks=Ge(0);function mo(e){const t=Me(e);return!Vn()||!t.visualViewport?Ks:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Me(e)?!1:t}function ct(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=$n(e);let i=Ge(1);t&&(o?Le(o)&&(i=gt(o)):i=gt(e));const c=eu(a,r,o)?mo(a):Ge(0);let s=(n.left+c.x)/i.x,d=(n.top+c.y)/i.y,h=n.width/i.x,m=n.height/i.y;if(a){const x=Me(a),b=o&&Le(o)?Me(o):o;let _=x,y=Bn(_);for(;y&&o&&b!==_;){const w=gt(y),S=y.getBoundingClientRect(),E=Ve(y),A=S.left+(y.clientLeft+parseFloat(E.paddingLeft))*w.x,M=S.top+(y.clientTop+parseFloat(E.paddingTop))*w.y;s*=w.x,d*=w.y,h*=w.x,m*=w.y,s+=A,d+=M,_=Me(y),y=Bn(_)}}return co({width:h,height:m,x:s,y:d})}function Kt(e,t){const r=Qt(e).scrollLeft;return t?t.left+r:ct(qe(e)).left+r}function go(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Kt(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function tu(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const a=n==="fixed",i=qe(o),c=t?Jt(t.floating):!1;if(o===i||c&&a)return r;let s={scrollLeft:0,scrollTop:0},d=Ge(1);const h=Ge(0),m=Ye(o);if((m||!m&&!a)&&((ht(o)!=="body"||At(i))&&(s=Qt(o)),Ye(o))){const b=ct(o);d=gt(o),h.x=b.x+o.clientLeft,h.y=b.y+o.clientTop}const x=i&&!m&&!a?go(i,s):Ge(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+h.x+x.x,y:r.y*d.y-s.scrollTop*d.y+h.y+x.y}}function nu(e){return Array.from(e.getClientRects())}function ru(e){const t=qe(e),r=Qt(e),o=e.ownerDocument.body,n=ut(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=ut(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-r.scrollLeft+Kt(e);const c=-r.scrollTop;return Ve(o).direction==="rtl"&&(i+=ut(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:i,y:c}}const vo=25;function ou(e,t){const r=Me(e),o=qe(e),n=r.visualViewport;let a=o.clientWidth,i=o.clientHeight,c=0,s=0;if(n){a=n.width,i=n.height;const h=Vn();(!h||h&&t==="fixed")&&(c=n.offsetLeft,s=n.offsetTop)}const d=Kt(o);if(d<=0){const h=o.ownerDocument,m=h.body,x=getComputedStyle(m),b=h.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,_=Math.abs(o.clientWidth-m.clientWidth-b);_<=vo&&(a-=_)}else d<=vo&&(a+=d);return{width:a,height:i,x:c,y:s}}const au=new Set(["absolute","fixed"]);function iu(e,t){const r=ct(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,a=Ye(e)?gt(e):Ge(1),i=e.clientWidth*a.x,c=e.clientHeight*a.y,s=n*a.x,d=o*a.y;return{width:i,height:c,x:s,y:d}}function wo(e,t,r){let o;if(t==="viewport")o=ou(e,r);else if(t==="document")o=ru(qe(e));else if(Le(t))o=iu(t,r);else{const n=mo(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return co(o)}function bo(e,t){const r=rt(e);return r===t||!Le(r)||mt(r)?!1:Ve(r).position==="fixed"||bo(r,t)}function su(e,t){const r=t.get(e);if(r)return r;let o=jt(e,[],!1).filter(c=>Le(c)&&ht(c)!=="body"),n=null;const a=Ve(e).position==="fixed";let i=a?rt(e):e;for(;Le(i)&&!mt(i);){const c=Ve(i),s=Ln(i);!s&&c.position==="fixed"&&(n=null),(a?!s&&!n:!s&&c.position==="static"&&!!n&&au.has(n.position)||At(i)&&!s&&bo(e,i))?o=o.filter(h=>h!==i):n=c,i=rt(i)}return t.set(e,o),o}function uu(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const i=[...r==="clippingAncestors"?Jt(t)?[]:su(t,this._c):[].concat(r),o],c=i[0],s=i.reduce((d,h)=>{const m=wo(t,h,n);return d.top=ut(m.top,d.top),d.right=qt(m.right,d.right),d.bottom=qt(m.bottom,d.bottom),d.left=ut(m.left,d.left),d},wo(t,c,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function cu(e){const{width:t,height:r}=ho(e);return{width:t,height:r}}function lu(e,t,r){const o=Ye(t),n=qe(t),a=r==="fixed",i=ct(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const s=Ge(0);function d(){s.x=Kt(n)}if(o||!o&&!a)if((ht(t)!=="body"||At(n))&&(c=Qt(t)),o){const b=ct(t,!0,a,t);s.x=b.x+t.clientLeft,s.y=b.y+t.clientTop}else n&&d();a&&!o&&n&&d();const h=n&&!o&&!a?go(n,c):Ge(0),m=i.left+c.scrollLeft-s.x-h.x,x=i.top+c.scrollTop-s.y-h.y;return{x:m,y:x,width:i.width,height:i.height}}function Hn(e){return Ve(e).position==="static"}function yo(e,t){if(!Ye(e)||Ve(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qe(e)===r&&(r=r.ownerDocument.body),r}function xo(e,t){const r=Me(e);if(Jt(e))return r;if(!Ye(e)){let n=rt(e);for(;n&&!mt(n);){if(Le(n)&&!Hn(n))return n;n=rt(n)}return r}let o=yo(e,t);for(;o&&Gs(o)&&Hn(o);)o=yo(o,t);return o&&mt(o)&&Hn(o)&&!Ln(o)?r:o||Js(e)||r}const du=async function(e){const t=this.getOffsetParent||xo,r=this.getDimensions,o=await r(e.floating);return{reference:lu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function fu(e){return Ve(e).direction==="rtl"}const pu={convertOffsetParentRelativeRectToViewportRelativeRect:tu,getDocumentElement:qe,getClippingRect:uu,getOffsetParent:xo,getElementRects:du,getClientRects:nu,getDimensions:cu,getScale:gt,isElement:Le,isRTL:fu};function Eo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hu(e,t){let r=null,o;const n=qe(e);function a(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function i(c,s){c===void 0&&(c=!1),s===void 0&&(s=1),a();const d=e.getBoundingClientRect(),{left:h,top:m,width:x,height:b}=d;if(c||t(),!x||!b)return;const _=Zt(m),y=Zt(n.clientWidth-(h+x)),w=Zt(n.clientHeight-(m+b)),S=Zt(h),A={rootMargin:-_+"px "+-y+"px "+-w+"px "+-S+"px",threshold:ut(0,qt(1,s))||1};let M=!0;function R(I){const D=I[0].intersectionRatio;if(D!==s){if(!M)return i();D?i(!1,D):o=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!Eo(d,e.getBoundingClientRect())&&i(),M=!1}try{r=new IntersectionObserver(R,{...A,root:n.ownerDocument})}catch{r=new IntersectionObserver(R,A)}r.observe(e)}return i(!0),a}function mu(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:s=!1}=o,d=$n(e),h=n||a?[...d?jt(d):[],...jt(t)]:[];h.forEach(S=>{n&&S.addEventListener("scroll",r,{passive:!0}),a&&S.addEventListener("resize",r)});const m=d&&c?hu(d,r):null;let x=-1,b=null;i&&(b=new ResizeObserver(S=>{let[E]=S;E&&E.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),r()}),d&&!s&&b.observe(d),b.observe(t));let _,y=s?ct(e):null;s&&w();function w(){const S=ct(e);y&&!Eo(y,S)&&r(),y=S,_=requestAnimationFrame(w)}return r(),()=>{var S;h.forEach(E=>{n&&E.removeEventListener("scroll",r),a&&E.removeEventListener("resize",r)}),m?.(),(S=b)==null||S.disconnect(),b=null,s&&cancelAnimationFrame(_)}}const Wf=null,Gf=null,qf=null,Yf=null,Zf=null,Xf=null,Jf=null,Qf=null,Kf=null,ep=null,tp=(e,t,r)=>{const o=new Map,n={platform:pu,...r},a={...n.platform,_c:o};return computePosition$1(e,t,{...n,platform:a})};var Un=p.useLayoutEffect,gu=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],en=function(){};function vu(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function wu(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];var a=[].concat(o);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(vu(e,i)));return a.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var So=function(t){return ku(t)?t.filter(Boolean):st(t)==="object"&&t!==null?[t]:[]},_o=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=Je(t,gu);return q({},r)},be=function(t,r,o){var n=t.cx,a=t.getStyles,i=t.getClassNames,c=t.className;return{css:a(r,t),className:n(o??{},i(r,t),c)}};function np(e,t,r){if(r){var o=r(e,t);if(typeof o=="string")return o}return e}function tn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function bu(e){return tn(e)?window.innerHeight:e.clientHeight}function Co(e){return tn(e)?window.pageYOffset:e.scrollTop}function nn(e,t){if(tn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function yu(e){var t=getComputedStyle(e),r=t.position==="absolute",o=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&o.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function xu(e,t,r,o){return r*((e=e/o-1)*e*e+1)+t}function rn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:en,n=Co(e),a=t-n,i=10,c=0;function s(){c+=i;var d=xu(c,n,a,r);nn(e,d),c<r?window.requestAnimationFrame(s):o(e)}s()}function Oo(e,t){var r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n=t.offsetHeight/3;o.bottom+n>r.bottom?nn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):o.top-n<r.top&&nn(e,Math.max(t.offsetTop-n,0))}function Eu(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ko(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Su(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ao=!1,_u={get passive(){return Ao=!0}},on=typeof window<"u"?window:{};on.addEventListener&&on.removeEventListener&&(on.addEventListener("p",en,_u),on.removeEventListener("p",en,!1));var Cu=Ao;function Ou(e){return e!=null}function ku(e){return Array.isArray(e)}function an(e,t,r){return e?t:r}function rp(e){return e}function op(e){return e}var Au=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];var a=Object.entries(t).filter(function(i){var c=Xe(i,1),s=c[0];return!o.includes(s)});return a.reduce(function(i,c){var s=Xe(c,2),d=s[0],h=s[1];return i[d]=h,i},{})},ju=["children","innerProps"],Du=["children","innerProps"];function Fu(e){var t=e.maxHeight,r=e.menuEl,o=e.minHeight,n=e.placement,a=e.shouldScroll,i=e.isFixedPosition,c=e.controlHeight,s=yu(r),d={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return d;var h=s.getBoundingClientRect(),m=h.height,x=r.getBoundingClientRect(),b=x.bottom,_=x.height,y=x.top,w=r.offsetParent.getBoundingClientRect(),S=w.top,E=i?window.innerHeight:bu(s),A=Co(s),M=parseInt(getComputedStyle(r).marginBottom,10),R=parseInt(getComputedStyle(r).marginTop,10),I=S-R,D=E-y,j=I+A,N=m-A-y,ee=b-E+A+M,V=A+y-R,P=160;switch(n){case"auto":case"bottom":if(D>=_)return{placement:"bottom",maxHeight:t};if(N>=_&&!i)return a&&rn(s,ee,P),{placement:"bottom",maxHeight:t};if(!i&&N>=o||i&&D>=o){a&&rn(s,ee,P);var X=i?D-M:N-M;return{placement:"bottom",maxHeight:X}}if(n==="auto"||i){var K=t,ae=i?I:j;return ae>=o&&(K=Math.min(ae-M-c,t)),{placement:"top",maxHeight:K}}if(n==="bottom")return a&&nn(s,ee),{placement:"bottom",maxHeight:t};break;case"top":if(I>=_)return{placement:"top",maxHeight:t};if(j>=_&&!i)return a&&rn(s,V,P),{placement:"top",maxHeight:t};if(!i&&j>=o||i&&I>=o){var te=t;return(!i&&j>=o||i&&I>=o)&&(te=i?I-R:j-R),a&&rn(s,V,P),{placement:"top",maxHeight:te}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return d}function Pu(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var jo=function(t){return t==="auto"?"bottom":t},Mu=function(t,r){var o,n=t.placement,a=t.theme,i=a.borderRadius,c=a.spacing,s=a.colors;return q((o={label:"menu"},xt(o,Pu(n),"100%"),xt(o,"position","absolute"),xt(o,"width","100%"),xt(o,"zIndex",1),o),r?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},Do=(0,p.createContext)(null),Iu=function(t){var r=t.children,o=t.minMenuHeight,n=t.maxMenuHeight,a=t.menuPlacement,i=t.menuPosition,c=t.menuShouldScrollIntoView,s=t.theme,d=(0,p.useContext)(Do)||{},h=d.setPortalPlacement,m=(0,p.useRef)(null),x=(0,p.useState)(n),b=Xe(x,2),_=b[0],y=b[1],w=(0,p.useState)(null),S=Xe(w,2),E=S[0],A=S[1],M=s.spacing.controlHeight;return Un(function(){var R=m.current;if(R){var I=i==="fixed",D=c&&!I,j=Fu({maxHeight:n,menuEl:R,minHeight:o,placement:a,shouldScroll:D,isFixedPosition:I,controlHeight:M});y(j.maxHeight),A(j.placement),h?.(j.placement)}},[n,a,i,c,o,h,M]),r({ref:m,placerProps:q(q({},t),{},{placement:E||jo(a),maxHeight:_})})},Ru=function(t){var r=t.children,o=t.innerRef,n=t.innerProps;return G("div",Z({},be(t,"menu",{menu:!0}),{ref:o},n),r)},Nu=Ru,Tu=function(t,r){var o=t.maxHeight,n=t.theme.spacing.baseUnit;return q({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},Lu=function(t){var r=t.children,o=t.innerProps,n=t.innerRef,a=t.isMulti;return G("div",Z({},be(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:n},o),r)},Fo=function(t,r){var o=t.theme,n=o.spacing.baseUnit,a=o.colors;return q({textAlign:"center"},r?{}:{color:a.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Vu=Fo,Bu=Fo,$u=function(t){var r=t.children,o=r===void 0?"No options":r,n=t.innerProps,a=Je(t,ju);return G("div",Z({},be(q(q({},a),{},{children:o,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),o)},Hu=function(t){var r=t.children,o=r===void 0?"Loading...":r,n=t.innerProps,a=Je(t,Du);return G("div",Z({},be(q(q({},a),{},{children:o,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),o)},Uu=function(t){var r=t.rect,o=t.offset,n=t.position;return{left:r.left,position:n,top:o,width:r.width,zIndex:1}},zu=function(t){var r=t.appendTo,o=t.children,n=t.controlElement,a=t.innerProps,i=t.menuPlacement,c=t.menuPosition,s=(0,p.useRef)(null),d=(0,p.useRef)(null),h=(0,p.useState)(jo(i)),m=Xe(h,2),x=m[0],b=m[1],_=(0,p.useMemo)(function(){return{setPortalPlacement:b}},[]),y=(0,p.useState)(null),w=Xe(y,2),S=w[0],E=w[1],A=(0,p.useCallback)(function(){if(n){var D=Eu(n),j=c==="fixed"?0:window.pageYOffset,N=D[x]+j;(N!==S?.offset||D.left!==S?.rect.left||D.width!==S?.rect.width)&&E({offset:N,rect:D})}},[n,c,x,S?.offset,S?.rect.left,S?.rect.width]);Un(function(){A()},[A]);var M=(0,p.useCallback)(function(){typeof d.current=="function"&&(d.current(),d.current=null),n&&s.current&&(d.current=mu(n,s.current,A,{elementResize:"ResizeObserver"in window}))},[n,A]);Un(function(){M()},[M]);var R=(0,p.useCallback)(function(D){s.current=D,M()},[M]);if(!r&&c!=="fixed"||!S)return null;var I=G("div",Z({ref:R},be(q(q({},t),{},{offset:S.offset,position:c,rect:S.rect}),"menuPortal",{"menu-portal":!0}),a),o);return G(Do.Provider,{value:_},r?(0,B.createPortal)(I,r):I)},Wu=function(t){var r=t.isDisabled,o=t.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Gu=function(t){var r=t.children,o=t.innerProps,n=t.isDisabled,a=t.isRtl;return G("div",Z({},be(t,"container",{"--is-disabled":n,"--is-rtl":a}),o),r)},qu=function(t,r){var o=t.theme.spacing,n=t.isMulti,a=t.hasValue,i=t.selectProps.controlShouldRenderValue;return q({alignItems:"center",display:n&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},Yu=function(t){var r=t.children,o=t.innerProps,n=t.isMulti,a=t.hasValue;return G("div",Z({},be(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":a}),o),r)},Zu=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Xu=function(t){var r=t.children,o=t.innerProps;return G("div",Z({},be(t,"indicatorsContainer",{indicators:!0}),o),r)},Po,Ju=["size"],Qu=["innerProps","isRtl","size"];function ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ku={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Mo=function(t){var r=t.size,o=Je(t,Ju);return G("svg",Z({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ku},o))},zn=function(t){return G(Mo,Z({size:20},t),G("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Io=function(t){return G(Mo,Z({size:20},t),G("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ro=function(t,r){var o=t.isFocused,n=t.theme,a=n.spacing.baseUnit,i=n.colors;return q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:o?i.neutral60:i.neutral20,padding:a*2,":hover":{color:o?i.neutral80:i.neutral40}})},ec=Ro,tc=function(t){var r=t.children,o=t.innerProps;return G("div",Z({},be(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),r||G(Io,null))},nc=Ro,rc=function(t){var r=t.children,o=t.innerProps;return G("div",Z({},be(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),r||G(zn,null))},oc=function(t,r){var o=t.isDisabled,n=t.theme,a=n.spacing.baseUnit,i=n.colors;return q({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:o?i.neutral10:i.neutral20,marginBottom:a*2,marginTop:a*2})},ac=function(t){var r=t.innerProps;return G("span",Z({},r,be(t,"indicatorSeparator",{"indicator-separator":!0})))},ic=Fs(Po||(Po=Ps([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),sc=function(t,r){var o=t.isFocused,n=t.size,a=t.theme,i=a.colors,c=a.spacing.baseUnit;return q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:o?i.neutral60:i.neutral20,padding:c*2})},Wn=function(t){var r=t.delay,o=t.offset;return G("span",{css:Rn({animation:"".concat(ic," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},uc=function(t){var r=t.innerProps,o=t.isRtl,n=t.size,a=n===void 0?4:n,i=Je(t,Qu);return G("div",Z({},be(q(q({},i),{},{innerProps:r,isRtl:o,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),G(Wn,{delay:0,offset:o}),G(Wn,{delay:160,offset:!0}),G(Wn,{delay:320,offset:!o}))},cc=function(t,r){var o=t.isDisabled,n=t.isFocused,a=t.theme,i=a.colors,c=a.borderRadius,s=a.spacing;return q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:o?i.neutral5:i.neutral0,borderColor:o?i.neutral10:n?i.primary:i.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:n?i.primary:i.neutral30}})},lc=function(t){var r=t.children,o=t.isDisabled,n=t.isFocused,a=t.innerRef,i=t.innerProps,c=t.menuIsOpen;return G("div",Z({ref:a},be(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":n,"control--menu-is-open":c}),i,{"aria-disabled":o||void 0}),r)},dc=lc,fc=["data"],pc=function(t,r){var o=t.theme.spacing;return r?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},hc=function(t){var r=t.children,o=t.cx,n=t.getStyles,a=t.getClassNames,i=t.Heading,c=t.headingProps,s=t.innerProps,d=t.label,h=t.theme,m=t.selectProps;return G("div",Z({},be(t,"group",{group:!0}),s),G(i,Z({},c,{selectProps:m,theme:h,getStyles:n,getClassNames:a,cx:o}),d),G("div",null,r))},mc=function(t,r){var o=t.theme,n=o.colors,a=o.spacing;return q({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},gc=function(t){var r=_o(t);r.data;var o=Je(r,fc);return G("div",Z({},be(t,"groupHeading",{"group-heading":!0}),o))},vc=hc,wc=["innerRef","isDisabled","isHidden","inputClassName"],bc=function(t,r){var o=t.isDisabled,n=t.value,a=t.theme,i=a.spacing,c=a.colors;return q(q({visibility:o?"hidden":"visible",transform:n?"translateZ(0)":""},yc),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:c.neutral80})},No={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},yc={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},No)},xc=function(t){return q({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},No)},Ec=function(t){var r=t.cx,o=t.value,n=_o(t),a=n.innerRef,i=n.isDisabled,c=n.isHidden,s=n.inputClassName,d=Je(n,wc);return G("div",Z({},be(t,"input",{"input-container":!0}),{"data-value":o||""}),G("input",Z({className:r({input:!0},s),ref:a,style:xc(c),disabled:i},d)))},Sc=Ec,_c=function(t,r){var o=t.theme,n=o.spacing,a=o.borderRadius,i=o.colors;return q({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:n.baseUnit/2})},Cc=function(t,r){var o=t.theme,n=o.borderRadius,a=o.colors,i=t.cropWithEllipsis;return q({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Oc=function(t,r){var o=t.theme,n=o.spacing,a=o.borderRadius,i=o.colors,c=t.isFocused;return q({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:c?i.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},To=function(t){var r=t.children,o=t.innerProps;return G("div",o,r)},kc=To,Ac=To;function jc(e){var t=e.children,r=e.innerProps;return G("div",Z({role:"button"},r),t||G(zn,{size:14}))}var Dc=function(t){var r=t.children,o=t.components,n=t.data,a=t.innerProps,i=t.isDisabled,c=t.removeProps,s=t.selectProps,d=o.Container,h=o.Label,m=o.Remove;return G(d,{data:n,innerProps:q(q({},be(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:s},G(h,{data:n,innerProps:q({},be(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),G(m,{data:n,innerProps:q(q({},be(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:s}))},Fc=Dc,Pc=function(t,r){var o=t.isDisabled,n=t.isFocused,a=t.isSelected,i=t.theme,c=i.spacing,s=i.colors;return q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?s.primary:n?s.primary25:"transparent",color:o?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:a?s.primary:s.primary50}})},Mc=function(t){var r=t.children,o=t.isDisabled,n=t.isFocused,a=t.isSelected,i=t.innerRef,c=t.innerProps;return G("div",Z({},be(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":n,"option--is-selected":a}),{ref:i,"aria-disabled":o},c),r)},Ic=Mc,Rc=function(t,r){var o=t.theme,n=o.spacing,a=o.colors;return q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Nc=function(t){var r=t.children,o=t.innerProps;return G("div",Z({},be(t,"placeholder",{placeholder:!0}),o),r)},Tc=Nc,Lc=function(t,r){var o=t.isDisabled,n=t.theme,a=n.spacing,i=n.colors;return q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:o?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Vc=function(t){var r=t.children,o=t.isDisabled,n=t.innerProps;return G("div",Z({},be(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),n),r)},Bc=Vc,$c={ClearIndicator:rc,Control:dc,DropdownIndicator:tc,DownChevron:Io,CrossIcon:zn,Group:vc,GroupHeading:gc,IndicatorsContainer:Xu,IndicatorSeparator:ac,Input:Sc,LoadingIndicator:uc,Menu:Nu,MenuList:Lu,MenuPortal:zu,LoadingMessage:Hu,NoOptionsMessage:$u,MultiValue:Fc,MultiValueContainer:kc,MultiValueLabel:Ac,MultiValueRemove:jc,Option:Ic,Placeholder:Tc,SelectContainer:Gu,SingleValue:Bc,ValueContainer:Yu},Hc=function(t){return q(q({},$c),t.components)},Lo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Uc(e,t){return!!(e===t||Lo(e)&&Lo(t))}function zc(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Uc(e[r],t[r]))return!1;return!0}function Wc(e,t){t===void 0&&(t=zc);var r=null;function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return o.clear=function(){r=null},o}function ip(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var Gc={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},qc=function(t){return G("span",Z({css:Gc},t))},Vo=qc,Yc={guidance:function(t){var r=t.isSearchable,o=t.isMulti,n=t.tabSelectsValue,a=t.context,i=t.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,o=t.label,n=o===void 0?"":o,a=t.labels,i=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,o=t.focused,n=t.options,a=t.label,i=a===void 0?"":a,c=t.selectValue,s=t.isDisabled,d=t.isSelected,h=t.isAppleDevice,m=function(y,w){return y&&y.length?"".concat(y.indexOf(w)+1," of ").concat(y.length):""};if(r==="value"&&c)return"value ".concat(i," focused, ").concat(m(c,o),".");if(r==="menu"&&h){var x=s?" disabled":"",b="".concat(d?" selected":"").concat(x);return"".concat(i).concat(b,", ").concat(m(n,o),".")}return""},onFilter:function(t){var r=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(r?" for search term "+r:"",".")}},Zc=function(t){var r=t.ariaSelection,o=t.focusedOption,n=t.focusedValue,a=t.focusableOptions,i=t.isFocused,c=t.selectValue,s=t.selectProps,d=t.id,h=t.isAppleDevice,m=s.ariaLiveMessages,x=s.getOptionLabel,b=s.inputValue,_=s.isMulti,y=s.isOptionDisabled,w=s.isSearchable,S=s.menuIsOpen,E=s.options,A=s.screenReaderStatus,M=s.tabSelectsValue,R=s.isLoading,I=s["aria-label"],D=s["aria-live"],j=(0,p.useMemo)(function(){return q(q({},Yc),m||{})},[m]),N=(0,p.useMemo)(function(){var ae="";if(r&&j.onChange){var te=r.option,ve=r.options,we=r.removedValue,le=r.removedValues,Ce=r.value,Ie=function(xe){return Array.isArray(xe)?null:xe},U=we||te||Ie(Ce),J=U?x(U):"",de=ve||le||void 0,H=de?de.map(x):[],ie=q({isDisabled:U&&y(U,c),label:J,labels:H},r);ae=j.onChange(ie)}return ae},[r,j,y,c,x]),ee=(0,p.useMemo)(function(){var ae="",te=o||n,ve=!!(o&&c&&c.includes(o));if(te&&j.onFocus){var we={focused:te,label:x(te),isDisabled:y(te,c),isSelected:ve,options:a,context:te===o?"menu":"value",selectValue:c,isAppleDevice:h};ae=j.onFocus(we)}return ae},[o,n,x,y,j,a,c,h]),V=(0,p.useMemo)(function(){var ae="";if(S&&E.length&&!R&&j.onFilter){var te=A({count:a.length});ae=j.onFilter({inputValue:b,resultsMessage:te})}return ae},[a,b,S,j,E,A,R]),P=r?.action==="initial-input-focus",X=(0,p.useMemo)(function(){var ae="";if(j.guidance){var te=n?"value":S?"menu":"input";ae=j.guidance({"aria-label":I,context:te,isDisabled:o&&y(o,c),isMulti:_,isSearchable:w,tabSelectsValue:M,isInitialFocus:P})}return ae},[I,o,n,_,y,w,S,j,c,M,P]),K=G(p.Fragment,null,G("span",{id:"aria-selection"},N),G("span",{id:"aria-focused"},ee),G("span",{id:"aria-results"},V),G("span",{id:"aria-guidance"},X));return G(p.Fragment,null,G(Vo,{id:d},P&&K),G(Vo,{"aria-live":D,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!P&&K))},Xc=Zc,Gn=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Jc=new RegExp("["+Gn.map(function(e){return e.letters}).join("")+"]","g"),Bo={},qn=0;qn<Gn.length;qn++)for(var Yn=Gn[qn],Zn=0;Zn<Yn.letters.length;Zn++)Bo[Yn.letters[Zn]]=Yn.base;var $o=function(t){return t.replace(Jc,function(r){return Bo[r]})},Qc=Wc($o),Ho=function(t){return t.replace(/^\s+|\s+$/g,"")},Kc=function(t){return"".concat(t.label," ").concat(t.value)},el=function(t){return function(r,o){if(r.data.__isNew__)return!0;var n=q({ignoreCase:!0,ignoreAccents:!0,stringify:Kc,trim:!0,matchFrom:"any"},t),a=n.ignoreCase,i=n.ignoreAccents,c=n.stringify,s=n.trim,d=n.matchFrom,h=s?Ho(o):o,m=s?Ho(c(r)):c(r);return a&&(h=h.toLowerCase(),m=m.toLowerCase()),i&&(h=Qc(h),m=$o(m)),d==="start"?m.substr(0,h.length)===h:m.indexOf(h)>-1}},tl=["innerRef"];function nl(e){var t=e.innerRef,r=Je(e,tl),o=Au(r,"onExited","in","enter","exit","appear");return G("input",Z({ref:t},o,{css:Rn({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var rl=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function ol(e){var t=e.isEnabled,r=e.onBottomArrive,o=e.onBottomLeave,n=e.onTopArrive,a=e.onTopLeave,i=(0,p.useRef)(!1),c=(0,p.useRef)(!1),s=(0,p.useRef)(0),d=(0,p.useRef)(null),h=(0,p.useCallback)(function(w,S){if(d.current!==null){var E=d.current,A=E.scrollTop,M=E.scrollHeight,R=E.clientHeight,I=d.current,D=S>0,j=M-R-A,N=!1;j>S&&i.current&&(o&&o(w),i.current=!1),D&&c.current&&(a&&a(w),c.current=!1),D&&S>j?(r&&!i.current&&r(w),I.scrollTop=M,N=!0,i.current=!0):!D&&-S>A&&(n&&!c.current&&n(w),I.scrollTop=0,N=!0,c.current=!0),N&&rl(w)}},[r,o,n,a]),m=(0,p.useCallback)(function(w){h(w,w.deltaY)},[h]),x=(0,p.useCallback)(function(w){s.current=w.changedTouches[0].clientY},[]),b=(0,p.useCallback)(function(w){var S=s.current-w.changedTouches[0].clientY;h(w,S)},[h]),_=(0,p.useCallback)(function(w){if(w){var S=Cu?{passive:!1}:!1;w.addEventListener("wheel",m,S),w.addEventListener("touchstart",x,S),w.addEventListener("touchmove",b,S)}},[b,x,m]),y=(0,p.useCallback)(function(w){w&&(w.removeEventListener("wheel",m,!1),w.removeEventListener("touchstart",x,!1),w.removeEventListener("touchmove",b,!1))},[b,x,m]);return(0,p.useEffect)(function(){if(t){var w=d.current;return _(w),function(){y(w)}}},[t,_,y]),function(w){d.current=w}}var Uo=["boxSizing","height","overflow","paddingRight","position"],zo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wo(e){e.cancelable&&e.preventDefault()}function Go(e){e.stopPropagation()}function qo(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Yo(){return"ontouchstart"in window||navigator.maxTouchPoints}var Zo=!!(typeof window<"u"&&window.document&&window.document.createElement),Dt=0,vt={capture:!1,passive:!1};function al(e){var t=e.isEnabled,r=e.accountForScrollbars,o=r===void 0?!0:r,n=(0,p.useRef)({}),a=(0,p.useRef)(null),i=(0,p.useCallback)(function(s){if(Zo){var d=document.body,h=d&&d.style;if(o&&Uo.forEach(function(_){var y=h&&h[_];n.current[_]=y}),o&&Dt<1){var m=parseInt(n.current.paddingRight,10)||0,x=document.body?document.body.clientWidth:0,b=window.innerWidth-x+m||0;Object.keys(zo).forEach(function(_){var y=zo[_];h&&(h[_]=y)}),h&&(h.paddingRight="".concat(b,"px"))}d&&Yo()&&(d.addEventListener("touchmove",Wo,vt),s&&(s.addEventListener("touchstart",qo,vt),s.addEventListener("touchmove",Go,vt))),Dt+=1}},[o]),c=(0,p.useCallback)(function(s){if(Zo){var d=document.body,h=d&&d.style;Dt=Math.max(Dt-1,0),o&&Dt<1&&Uo.forEach(function(m){var x=n.current[m];h&&(h[m]=x)}),d&&Yo()&&(d.removeEventListener("touchmove",Wo,vt),s&&(s.removeEventListener("touchstart",qo,vt),s.removeEventListener("touchmove",Go,vt)))}},[o]);return(0,p.useEffect)(function(){if(t){var s=a.current;return i(s),function(){c(s)}}},[t,i,c]),function(s){a.current=s}}function sp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var il=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},sl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ul(e){var t=e.children,r=e.lockEnabled,o=e.captureEnabled,n=o===void 0?!0:o,a=e.onBottomArrive,i=e.onBottomLeave,c=e.onTopArrive,s=e.onTopLeave,d=ol({isEnabled:n,onBottomArrive:a,onBottomLeave:i,onTopArrive:c,onTopLeave:s}),h=al({isEnabled:r}),m=function(b){d(b),h(b)};return G(p.Fragment,null,r&&G("div",{onClick:il,css:sl}),t(m))}function up(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ll=function(t){var r=t.name,o=t.onFocus;return G("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:cl,value:"",onChange:function(){}})},dl=ll;function Xn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function fl(){return Xn(/^iPhone/i)}function Xo(){return Xn(/^Mac/i)}function pl(){return Xn(/^iPad/i)||Xo()&&navigator.maxTouchPoints>1}function hl(){return fl()||pl()}function ml(){return Xo()||hl()}var gl=function(t){return t.label},vl=function(t){return t.label},wl=function(t){return t.value},bl=function(t){return!!t.isDisabled},yl={clearIndicator:nc,container:Wu,control:cc,dropdownIndicator:ec,group:pc,groupHeading:mc,indicatorsContainer:Zu,indicatorSeparator:oc,input:bc,loadingIndicator:sc,loadingMessage:Bu,menu:Mu,menuList:Tu,menuPortal:Uu,multiValue:_c,multiValueLabel:Cc,multiValueRemove:Oc,noOptionsMessage:Vu,option:Pc,placeholder:Rc,singleValue:Lc,valueContainer:qu};function cp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=_objectSpread({},e);return Object.keys(t).forEach(function(o){var n=o;e[n]?r[n]=function(a,i){return t[n](e[n](a,i),i)}:r[n]=t[n]}),r}var xl={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},El=4,Jo=4,Sl=38,_l=Jo*2,Cl={baseUnit:Jo,controlHeight:Sl,menuGutter:_l},Jn={borderRadius:El,colors:xl,spacing:Cl},Ol={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ko(),captureMenuScroll:!ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:el(),formatGroupLabel:gl,getOptionLabel:vl,getOptionValue:wl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:bl,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Su(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Qo(e,t,r,o){var n=ra(e,t,r),a=oa(e,t,r),i=na(e,t),c=un(e,t);return{type:"option",data:t,isDisabled:n,isSelected:a,label:i,value:c,index:o}}function sn(e,t){return e.options.map(function(r,o){if("options"in r){var n=r.options.map(function(i,c){return Qo(e,i,t,c)}).filter(function(i){return ta(e,i)});return n.length>0?{type:"group",data:r,options:n,index:o}:void 0}var a=Qo(e,r,t,o);return ta(e,a)?a:void 0}).filter(Ou)}function Ko(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Sn(r.options.map(function(o){return o.data}))):t.push(r.data),t},[])}function ea(e,t){return e.reduce(function(r,o){return o.type==="group"?r.push.apply(r,Sn(o.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(o.index,"-").concat(n.index)}}))):r.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),r},[])}function kl(e,t){return Ko(sn(e,t))}function ta(e,t){var r=e.inputValue,o=r===void 0?"":r,n=t.data,a=t.isSelected,i=t.label,c=t.value;return(!ia(e)||!a)&&aa(e,{label:i,value:c,data:n},o)}function Al(e,t){var r=e.focusedValue,o=e.selectValue,n=o.indexOf(r);if(n>-1){var a=t.indexOf(r);if(a>-1)return r;if(n<t.length)return t[n]}return null}function jl(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Qn=function(t,r){var o,n=(o=t.find(function(a){return a.data===r}))===null||o===void 0?void 0:o.id;return n||null},na=function(t,r){return t.getOptionLabel(r)},un=function(t,r){return t.getOptionValue(r)};function ra(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function oa(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var o=un(e,t);return r.some(function(n){return un(e,n)===o})}function aa(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var ia=function(t){var r=t.hideSelectedOptions,o=t.isMulti;return r===void 0?o:r},Dl=1,sa=(function(e){Ai(r,e);var t=Fi(r);function r(o){var n;if(Oi(this,r),n=t.call(this,o),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,d){var h=n.props,m=h.onChange,x=h.name;d.name=x,n.ariaOnChange(s,d),m(s,d)},n.setValue=function(s,d,h){var m=n.props,x=m.closeMenuOnSelect,b=m.isMulti,_=m.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:_}),x&&(n.setState({inputIsHiddenAfterUpdate:!b}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:d,option:h})},n.selectOption=function(s){var d=n.props,h=d.blurInputOnSelect,m=d.isMulti,x=d.name,b=n.state.selectValue,_=m&&n.isOptionSelected(s,b),y=n.isOptionDisabled(s,b);if(_){var w=n.getOptionValue(s);n.setValue(b.filter(function(S){return n.getOptionValue(S)!==w}),"deselect-option",s)}else if(!y)m?n.setValue([].concat(Sn(b),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:x});return}h&&n.blurInput()},n.removeValue=function(s){var d=n.props.isMulti,h=n.state.selectValue,m=n.getOptionValue(s),x=h.filter(function(_){return n.getOptionValue(_)!==m}),b=an(d,x,x[0]||null);n.onChange(b,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange(an(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,d=n.state.selectValue,h=d[d.length-1],m=d.slice(0,d.length-1),x=an(s,m,m[0]||null);h&&n.onChange(x,{action:"pop-value",removedValue:h})},n.getFocusedOptionId=function(s){return Qn(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return ea(sn(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,d=new Array(s),h=0;h<s;h++)d[h]=arguments[h];return wu.apply(void 0,[n.props.classNamePrefix].concat(d))},n.getOptionLabel=function(s){return na(n.props,s)},n.getOptionValue=function(s){return un(n.props,s)},n.getStyles=function(s,d){var h=n.props.unstyled,m=yl[s](d,h);m.boxSizing="border-box";var x=n.props.styles[s];return x?x(m,d):m},n.getClassNames=function(s,d){var h,m;return(h=(m=n.props.classNames)[s])===null||h===void 0?void 0:h.call(m,d)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return Hc(n.props)},n.buildCategorizedOptions=function(){return sn(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Ko(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,d){n.setState({ariaSelection:q({value:s},d)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var d=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():d&&n.openMenu("first"):(d&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var d=n.props,h=d.isMulti,m=d.menuIsOpen;n.focusInput(),m?(n.setState({inputIsHiddenAfterUpdate:!h}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&tn(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var d=s.touches,h=d&&d.item(0);h&&(n.initialTouchX=h.clientX,n.initialTouchY=h.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var d=s.touches,h=d&&d.item(0);if(h){var m=Math.abs(h.clientX-n.initialTouchX),x=Math.abs(h.clientY-n.initialTouchY),b=5;n.userIsDragging=m>b||x>b}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var d=n.props.inputValue,h=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(h,{action:"input-change",prevInputValue:d}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var d=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:d}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var d=n.getFocusableOptions(),h=d.indexOf(s);n.setState({focusedOption:s,focusedOptionId:h>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return ia(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var d=n.props,h=d.isMulti,m=d.backspaceRemovesValue,x=d.escapeClearsValue,b=d.inputValue,_=d.isClearable,y=d.isDisabled,w=d.menuIsOpen,S=d.onKeyDown,E=d.tabSelectsValue,A=d.openMenuOnFocus,M=n.state,R=M.focusedOption,I=M.focusedValue,D=M.selectValue;if(!y&&!(typeof S=="function"&&(S(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!h||b)return;n.focusValue("previous");break;case"ArrowRight":if(!h||b)return;n.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(I)n.removeValue(I);else{if(!m)return;h?n.popValue():_&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!w||!E||!R||A&&n.isOptionSelected(R,D))return;n.selectOption(R);break;case"Enter":if(s.keyCode===229)break;if(w){if(!R||n.isComposing)return;n.selectOption(R);break}return;case"Escape":w?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:b}),n.onMenuClose()):_&&x&&n.clearValue();break;case" ":if(b)return;if(!w){n.openMenu("first");break}if(!R)return;n.selectOption(R);break;case"ArrowUp":w?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":w?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!w)return;n.focusOption("pageup");break;case"PageDown":if(!w)return;n.focusOption("pagedown");break;case"Home":if(!w)return;n.focusOption("first");break;case"End":if(!w)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Dl),n.state.selectValue=So(o.value),o.menuIsOpen&&n.state.selectValue.length){var a=n.getFocusableOptionsWithIds(),i=n.buildFocusableOptions(),c=i.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=a,n.state.focusedOption=i[c],n.state.focusedOptionId=Qn(a,i[c])}return n}return ki(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Oo(this.menuListRef,this.focusedOptionRef),ml()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var a=this.props,i=a.isDisabled,c=a.menuIsOpen,s=this.state.isFocused;(s&&!i&&n.isDisabled||s&&c&&!n.menuIsOpen)&&this.focusInput(),s&&i&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Oo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,a){this.props.onInputChange(n,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var a=this,i=this.state,c=i.selectValue,s=i.isFocused,d=this.buildFocusableOptions(),h=n==="first"?0:d.length-1;if(!this.props.isMulti){var m=d.indexOf(c[0]);m>-1&&(h=m)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[h],focusedOptionId:this.getFocusedOptionId(d[h])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(n){var a=this.state,i=a.selectValue,c=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(c);c||(s=-1);var d=i.length-1,h=-1;if(i.length){switch(n){case"previous":s===0?h=0:s===-1?h=d:h=s-1;break;case"next":s>-1&&s<d&&(h=s+1);break}this.setState({inputIsHidden:h!==-1,focusedValue:i[h]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var s=0,d=c.indexOf(i);i||(d=-1),n==="up"?s=d>0?d-1:c.length-1:n==="down"?s=(d+1)%c.length:n==="pageup"?(s=d-a,s<0&&(s=0)):n==="pagedown"?(s=d+a,s>c.length-1&&(s=c.length-1)):n==="last"&&(s=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Jn):q(q({},Jn),this.props.theme):Jn})},{key:"getCommonProps",value:function(){var n=this.clearValue,a=this.cx,i=this.getStyles,c=this.getClassNames,s=this.getValue,d=this.selectOption,h=this.setValue,m=this.props,x=m.isMulti,b=m.isRtl,_=m.options,y=this.hasValue();return{clearValue:n,cx:a,getStyles:i,getClassNames:c,getValue:s,hasValue:y,isMulti:x,isRtl:b,options:_,selectOption:d,selectProps:m,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,a=n.isClearable,i=n.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(n,a){return ra(this.props,n,a)}},{key:"isOptionSelected",value:function(n,a){return oa(this.props,n,a)}},{key:"filterOption",value:function(n,a){return aa(this.props,n,a)}},{key:"formatOptionLabel",value:function(n,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(n,{context:a,inputValue:i,selectValue:c})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var n=this.props,a=n.isDisabled,i=n.isSearchable,c=n.inputId,s=n.inputValue,d=n.tabIndex,h=n.form,m=n.menuIsOpen,x=n.required,b=this.getComponents(),_=b.Input,y=this.state,w=y.inputIsHidden,S=y.ariaSelection,E=this.commonProps,A=c||this.getElementId("input"),M=q(q(q({"aria-autocomplete":"list","aria-expanded":m,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":x,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},m&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?S?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?p.createElement(_,Z({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:A,innerRef:this.getInputRef,isDisabled:a,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:h,type:"text",value:s},M)):p.createElement(nl,Z({id:A,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:en,onFocus:this.onInputFocus,disabled:a,tabIndex:d,inputMode:"none",form:h,value:""},M))})},{key:"renderPlaceholderOrValue",value:function(){var n=this,a=this.getComponents(),i=a.MultiValue,c=a.MultiValueContainer,s=a.MultiValueLabel,d=a.MultiValueRemove,h=a.SingleValue,m=a.Placeholder,x=this.commonProps,b=this.props,_=b.controlShouldRenderValue,y=b.isDisabled,w=b.isMulti,S=b.inputValue,E=b.placeholder,A=this.state,M=A.selectValue,R=A.focusedValue,I=A.isFocused;if(!this.hasValue()||!_)return S?null:p.createElement(m,Z({},x,{key:"placeholder",isDisabled:y,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),E);if(w)return M.map(function(j,N){var ee=j===R,V="".concat(n.getOptionLabel(j),"-").concat(n.getOptionValue(j));return p.createElement(i,Z({},x,{components:{Container:c,Label:s,Remove:d},isFocused:ee,isDisabled:y,key:V,index:N,removeProps:{onClick:function(){return n.removeValue(j)},onTouchEnd:function(){return n.removeValue(j)},onMouseDown:function(X){X.preventDefault()}},data:j}),n.formatOptionLabel(j,"value"))});if(S)return null;var D=M[0];return p.createElement(h,Z({},x,{data:D,isDisabled:y}),this.formatOptionLabel(D,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),a=n.ClearIndicator,i=this.commonProps,c=this.props,s=c.isDisabled,d=c.isLoading,h=this.state.isFocused;if(!this.isClearable()||!a||s||!this.hasValue()||d)return null;var m={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,Z({},i,{innerProps:m,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),a=n.LoadingIndicator,i=this.commonProps,c=this.props,s=c.isDisabled,d=c.isLoading,h=this.state.isFocused;if(!a||!d)return null;var m={"aria-hidden":"true"};return p.createElement(a,Z({},i,{innerProps:m,isDisabled:s,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator,i=n.IndicatorSeparator;if(!a||!i)return null;var c=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return p.createElement(i,Z({},c,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),a=n.DropdownIndicator;if(!a)return null;var i=this.commonProps,c=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(a,Z({},i,{innerProps:d,isDisabled:c,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,a=this.getComponents(),i=a.Group,c=a.GroupHeading,s=a.Menu,d=a.MenuList,h=a.MenuPortal,m=a.LoadingMessage,x=a.NoOptionsMessage,b=a.Option,_=this.commonProps,y=this.state.focusedOption,w=this.props,S=w.captureMenuScroll,E=w.inputValue,A=w.isLoading,M=w.loadingMessage,R=w.minMenuHeight,I=w.maxMenuHeight,D=w.menuIsOpen,j=w.menuPlacement,N=w.menuPosition,ee=w.menuPortalTarget,V=w.menuShouldBlockScroll,P=w.menuShouldScrollIntoView,X=w.noOptionsMessage,K=w.onMenuScrollToTop,ae=w.onMenuScrollToBottom;if(!D)return null;var te=function(J,de){var H=J.type,ie=J.data,he=J.isDisabled,xe=J.isSelected,yt=J.label,gn=J.value,Pt=y===ie,vn=he?void 0:function(){return n.onOptionHover(ie)},Er=he?void 0:function(){return n.selectOption(ie)},ot="".concat(n.getElementId("option"),"-").concat(de),wn={id:ot,onClick:Er,onMouseMove:vn,onMouseOver:vn,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:xe};return p.createElement(b,Z({},_,{innerProps:wn,data:ie,isDisabled:he,isSelected:xe,key:ot,label:yt,type:H,value:gn,isFocused:Pt,innerRef:Pt?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(J.data,"menu"))},ve;if(this.hasOptions())ve=this.getCategorizedOptions().map(function(U){if(U.type==="group"){var J=U.data,de=U.options,H=U.index,ie="".concat(n.getElementId("group"),"-").concat(H),he="".concat(ie,"-heading");return p.createElement(i,Z({},_,{key:ie,data:J,options:de,Heading:c,headingProps:{id:he,data:U.data},label:n.formatGroupLabel(U.data)}),U.options.map(function(xe){return te(xe,"".concat(H,"-").concat(xe.index))}))}else if(U.type==="option")return te(U,"".concat(U.index))});else if(A){var we=M({inputValue:E});if(we===null)return null;ve=p.createElement(m,_,we)}else{var le=X({inputValue:E});if(le===null)return null;ve=p.createElement(x,_,le)}var Ce={minMenuHeight:R,maxMenuHeight:I,menuPlacement:j,menuPosition:N,menuShouldScrollIntoView:P},Ie=p.createElement(Iu,Z({},_,Ce),function(U){var J=U.ref,de=U.placerProps,H=de.placement,ie=de.maxHeight;return p.createElement(s,Z({},_,Ce,{innerRef:J,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:A,placement:H}),p.createElement(ul,{captureEnabled:S,onTopArrive:K,onBottomArrive:ae,lockEnabled:V},function(he){return p.createElement(d,Z({},_,{innerRef:function(yt){n.getMenuListRef(yt),he(yt)},innerProps:{role:"listbox","aria-multiselectable":_.isMulti,id:n.getElementId("listbox")},isLoading:A,maxHeight:ie,focusedOption:y}),ve)}))});return ee||N==="fixed"?p.createElement(h,Z({},_,{appendTo:ee,controlElement:this.controlRef,menuPlacement:j,menuPosition:N}),Ie):Ie}},{key:"renderFormField",value:function(){var n=this,a=this.props,i=a.delimiter,c=a.isDisabled,s=a.isMulti,d=a.name,h=a.required,m=this.state.selectValue;if(h&&!this.hasValue()&&!c)return p.createElement(dl,{name:d,onFocus:this.onValueInputFocus});if(!(!d||c))if(s)if(i){var x=m.map(function(y){return n.getOptionValue(y)}).join(i);return p.createElement("input",{name:d,type:"hidden",value:x})}else{var b=m.length>0?m.map(function(y,w){return p.createElement("input",{key:"i-".concat(w),name:d,type:"hidden",value:n.getOptionValue(y)})}):p.createElement("input",{name:d,type:"hidden",value:""});return p.createElement("div",null,b)}else{var _=m[0]?this.getOptionValue(m[0]):"";return p.createElement("input",{name:d,type:"hidden",value:_})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,a=this.state,i=a.ariaSelection,c=a.focusedOption,s=a.focusedValue,d=a.isFocused,h=a.selectValue,m=this.getFocusableOptions();return p.createElement(Xc,Z({},n,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:c,focusedValue:s,isFocused:d,selectValue:h,focusableOptions:m,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),a=n.Control,i=n.IndicatorsContainer,c=n.SelectContainer,s=n.ValueContainer,d=this.props,h=d.className,m=d.id,x=d.isDisabled,b=d.menuIsOpen,_=this.state.isFocused,y=this.commonProps=this.getCommonProps();return p.createElement(c,Z({},y,{className:h,innerProps:{id:m,onKeyDown:this.onKeyDown},isDisabled:x,isFocused:_}),this.renderLiveRegion(),p.createElement(a,Z({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:x,isFocused:_,menuIsOpen:b}),p.createElement(s,Z({},y,{isDisabled:x}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(i,Z({},y,{isDisabled:x}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,a){var i=a.prevProps,c=a.clearFocusValueOnUpdate,s=a.inputIsHiddenAfterUpdate,d=a.ariaSelection,h=a.isFocused,m=a.prevWasFocused,x=a.instancePrefix,b=n.options,_=n.value,y=n.menuIsOpen,w=n.inputValue,S=n.isMulti,E=So(_),A={};if(i&&(_!==i.value||b!==i.options||y!==i.menuIsOpen||w!==i.inputValue)){var M=y?kl(n,E):[],R=y?ea(sn(n,E),"".concat(x,"-option")):[],I=c?Al(a,E):null,D=jl(a,M),j=Qn(R,D);A={selectValue:E,focusedOption:D,focusedOptionId:j,focusableOptionsWithIds:R,focusedValue:I,clearFocusValueOnUpdate:!1}}var N=s!=null&&n!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},ee=d,V=h&&m;return h&&!V&&(ee={value:an(S,E,E[0]||null),options:E,action:"initial-input-focus"},V=!m),d?.action==="initial-input-focus"&&(ee=null),q(q(q({},A),N),{},{prevProps:n,ariaSelection:ee,prevWasFocused:V})}}]),r})(p.Component);sa.defaultProps=Ol;var Fl=(0,p.forwardRef)(function(e,t){var r=Ci(e);return p.createElement(sa,Z({ref:t},r))}),Pl=Fl,lp=(function(e){var t=e.nonce,r=e.children,o=e.cacheKey,n=useMemo(function(){return createCache({key:o,nonce:t})},[o,t]);return React.createElement(CacheProvider,{value:n},r)}),dp=null,fp=null;const Ml=({...e})=>(0,l.jsx)(Pl,{classNamePrefix:"wdo:select",...e}),pp=({...e})=>jsx(Creatable,{classNamePrefix:"wdo:select",...e});var cn=Ml;/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Il=F("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 Rl=({className:e,children:t})=>(0,l.jsxs)("div",{className:`wdo:flex wdo:gap-3 wdo:items-center wdo:p-3 wdo:rounded-sm wdo:border wdo:border-blue-500/30 wdo:bg-blue-500/10 wdo:text-blue-700 wdo:dark:text-blue-400 wdo:text-sm ${e??""}`,children:[(0,l.jsx)(Il,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),(0,l.jsx)("div",{children:t})]}),Nl=({totalItems:e=0,pageSize:t,currentPage:r,onPageChange:o,onPageSizeChange:n,pageSizeOptions:a=[10,25,50],className:i,disabled:c=!1})=>{const[s,d]=(0,p.useState)(t??a[0]??10),[h,m]=(0,p.useState)(r??1),x=t!==void 0,b=r!==void 0,_=x?t:s,y=b?r:h,w=Math.max(1,Math.ceil(e/_)),[S,E]=(0,p.useState)(y.toString());(0,p.useEffect)(()=>{x&&d(t),b&&m(r),y>w&&(b?o?.(1):m(1))},[t,r,e,w,x,b,o]),(0,p.useEffect)(()=>{E(y.toString())},[y]);const A=j=>{j>=1&&j<=w&&j!==y&&(b||m(j),o?.(j))},M=j=>{const N=j.target.value;E(N)},R=j=>{if(j.key!=="Enter")return;const N=parseInt(S,10);!isNaN(N)&&N>=1&&N<=w&&A(N)},I=j=>{const N=parseInt(j.target.value,10);x||d(N),n?.(N),A(1)},D=()=>{const N=[];let ee=Math.max(1,y-Math.floor(2.5)),V=Math.min(w,ee+5-1);V-ee+1<5&&(ee=Math.max(1,V-5+1)),ee>1&&N.push(1),ee>2&&N.push("...");for(let P=ee;P<=V;P++)N.push(P);return V<w-1&&N.push("..."),V<w&&N.push(w),N};return(0,l.jsxs)("div",{className:v("wdo:pagination wdo:flex wdo:items-center wdo:flex-wrap wdo:gap-2 wdo:justify-between wdo:mt-4 wdo:text-sm",i),children:[(0,l.jsxs)("div",{className:"wdo:rows-count-container",children:[(0,l.jsx)("span",{className:"wdo:text-wp-admin-700 wdo:dark:text-wp-admin-200",children:"Rows per page:"}),(0,l.jsx)("select",{className:"wdo:pagination-select",value:_,onChange:I,disabled:c,"aria-label":"Rows per page",children:a.map(j=>(0,l.jsx)("option",{value:j,children:j},j))})]}),(0,l.jsxs)("div",{className:"wdo:buttons-container",children:[(0,l.jsx)("button",{className:"wdo:button wdo:min-w-[100px] wdo:hover:not-disabled:bg-asp wdo:hover:not-disabled:border-asp wdo:focus:not-disabled:border-asp",onClick:()=>A(y-1),disabled:y===1||c,"aria-label":"Previous page",children:"Previous"}),(0,l.jsx)("div",{className:"wdo:lg:flex wdo:hidden wdo:items-center wdo:gap-1",children:D().map((j,N)=>typeof j=="string"?(0,l.jsx)("span",{className:"wdo:px-3 wdo:py-2 wdo:text-wp-admin-500 wdo:dark:text-wp-admin-400",children:j},N):(0,l.jsx)("button",{className:v("wdo:button wdo:focus:border-asp wdo:hover:bg-asp wdo:hover:border-asp wdo:focus:shadow-none",j===y&&"wdo:bg-asp wdo:border-asp "),onClick:()=>A(j),"aria-current":j===y?"page":void 0,"aria-label":`Page ${j}`,disabled:c,children:j},N))}),(0,l.jsx)("button",{className:"wdo:button wdo:min-w-[100px] wdo:hover:not-disabled:bg-asp wdo:hover:not-disabled:border-asp wdo:focus:not-disabled:border-asp",onClick:()=>A(y+1),disabled:y===w||c,"aria-label":"Next page",children:"Next"}),(0,l.jsxs)("div",{className:"wdo:flex wdo:items-center wdo:gap-2",children:[(0,l.jsx)("span",{className:"wdo:text-wp-admin-700 wdo:dark:text-wp-admin-200",children:"Page:"}),(0,l.jsx)("input",{type:"number",className:"wdo:input wdo:input-number wdo:w-16",value:S,onChange:M,onKeyDown:R,min:"1",max:w,"aria-label":"Current page",disabled:c}),(0,l.jsxs)("span",{className:"wdo:text-wp-admin-700 wdo:dark:text-wp-admin-200",children:["of ",w]})]})]})]})},ua=je(8279);const ca=0,la=1,da=2,fa=3;var pa=Object.prototype.hasOwnProperty;function Kn(e,t){var r,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((o=e.length)===t.length)for(;o--&&Kn(e[o],t[o]););return o===-1}if(!r||typeof e=="object"){o=0;for(r in e)if(pa.call(e,r)&&++o&&!pa.call(t,r)||!(r in t)||!Kn(e[r],t[r]))return!1;return Object.keys(t).length===o}}return e!==e&&t!==t}const Qe=new WeakMap,Ke=()=>{},Ae=Ke(),ln=Object,re=e=>e===Ae,Be=e=>typeof e=="function",et=(e,t)=>({...e,...t}),ha=e=>Be(e.then),er={},dn={},tr="undefined",Ft=typeof window!=tr,nr=typeof document!=tr,Tl=Ft&&"Deno"in window,Ll=()=>Ft&&typeof window.requestAnimationFrame!=tr,ma=(e,t)=>{const r=Qe.get(e);return[()=>!re(t)&&e.get(t)||er,o=>{if(!re(t)){const n=e.get(t);t in dn||(dn[t]=n),r[5](t,et(n,o),n||er)}},r[6],()=>!re(t)&&t in dn?dn[t]:!re(t)&&e.get(t)||er]};let rr=!0;const Vl=()=>rr,[or,ar]=Ft&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],Bl=()=>{const e=nr&&document.visibilityState;return re(e)||e!=="hidden"},$l=e=>(nr&&document.addEventListener("visibilitychange",e),or("focus",e),()=>{nr&&document.removeEventListener("visibilitychange",e),ar("focus",e)}),Hl=e=>{const t=()=>{rr=!0,e()},r=()=>{rr=!1};return or("online",t),or("offline",r),()=>{ar("online",t),ar("offline",r)}},Ul={isOnline:Vl,isVisible:Bl},zl={initFocus:$l,initReconnect:Hl},ga=!p.useId,wt=!Ft||Tl,Wl=e=>Ll()?window.requestAnimationFrame(e):setTimeout(e,1),fn=wt?p.useEffect:p.useLayoutEffect,ir=typeof navigator<"u"&&navigator.connection,va=!wt&&ir&&(["slow-2g","2g"].includes(ir.effectiveType)||ir.saveData),pn=new WeakMap,Gl=e=>ln.prototype.toString.call(e),sr=(e,t)=>e===`[object ${t}]`;let ql=0;const ur=e=>{const t=typeof e,r=Gl(e),o=sr(r,"Date"),n=sr(r,"RegExp"),a=sr(r,"Object");let i,c;if(ln(e)===e&&!o&&!n){if(i=pn.get(e),i)return i;if(i=++ql+"~",pn.set(e,i),Array.isArray(e)){for(i="@",c=0;c<e.length;c++)i+=ur(e[c])+",";pn.set(e,i)}if(a){i="#";const s=ln.keys(e).sort();for(;!re(c=s.pop());)re(e[c])||(i+=c+":"+ur(e[c])+",");pn.set(e,i)}}else i=o?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},cr=e=>{if(Be(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ur(e):"",[e,t]};let Yl=0;const lr=()=>++Yl;async function wa(...e){const[t,r,o,n]=e,a=et({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{});let i=a.populateCache;const c=a.rollbackOnError;let s=a.optimisticData;const d=x=>typeof c=="function"?c(x):c!==!1,h=a.throwOnError;if(Be(r)){const x=r,b=[],_=t.keys();for(const y of _)!/^\$(inf|sub)\$/.test(y)&&x(t.get(y)._k)&&b.push(y);return Promise.all(b.map(m))}return m(r);async function m(x){const[b]=cr(x);if(!b)return;const[_,y]=ma(t,b),[w,S,E,A]=Qe.get(t),M=()=>{const K=w[b];return(Be(a.revalidate)?a.revalidate(_().data,x):a.revalidate!==!1)&&(delete E[b],delete A[b],K&&K[0])?K[0](da).then(()=>_().data):_().data};if(e.length<3)return M();let R=o,I,D=!1;const j=lr();S[b]=[j,0];const N=!re(s),ee=_(),V=ee.data,P=ee._c,X=re(P)?V:P;if(N&&(s=Be(s)?s(X,V):s,y({data:s,_c:X})),Be(R))try{R=R(X)}catch(K){I=K,D=!0}if(R&&ha(R))if(R=await R.catch(K=>{I=K,D=!0}),j!==S[b][0]){if(D)throw I;return R}else D&&N&&d(I)&&(i=!0,y({data:X,_c:Ae}));if(i&&!D)if(Be(i)){const K=i(R,X);y({data:K,error:Ae,_c:Ae})}else y({data:R,error:Ae,_c:Ae});if(S[b][1]=lr(),Promise.resolve(M()).then(()=>{y({_c:Ae})}),D){if(h)throw I;return}return R}}const ba=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},ya=(e,t)=>{if(!Qe.has(e)){const r=et(zl,t),o=Object.create(null),n=wa.bind(Ae,e);let a=Ke;const i=Object.create(null),c=(h,m)=>{const x=i[h]||[];return i[h]=x,x.push(m),()=>x.splice(x.indexOf(m),1)},s=(h,m,x)=>{e.set(h,m);const b=i[h];if(b)for(const _ of b)_(m,x)},d=()=>{if(!Qe.has(e)&&(Qe.set(e,[o,Object.create(null),Object.create(null),Object.create(null),n,s,c]),!wt)){const h=r.initFocus(setTimeout.bind(Ae,ba.bind(Ae,o,ca))),m=r.initReconnect(setTimeout.bind(Ae,ba.bind(Ae,o,la)));a=()=>{h&&h(),m&&m(),Qe.delete(e)}}};return d(),[e,n,d,a]}return[e,Qe.get(e)[4]]},Zl=(e,t,r,o,n)=>{const a=r.errorRetryCount,i=n.retryCount,c=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!re(a)&&i>a||setTimeout(o,c,n)},Xl=Kn,[dr,Jl]=ya(new Map),xa=et({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:Zl,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:va?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:va?5e3:3e3,compare:Xl,isPaused:()=>!1,cache:dr,mutate:Jl,fallback:{}},Ul),Ea=(e,t)=>{const r=et(e,t);if(t){const{use:o,fallback:n}=e,{use:a,fallback:i}=t;o&&a&&(r.use=o.concat(a)),n&&i&&(r.fallback=et(n,i))}return r},fr=(0,p.createContext)({}),Ql=e=>{const{value:t}=e,r=(0,p.useContext)(fr),o=Be(t),n=(0,p.useMemo)(()=>o?t(r):t,[o,r,t]),a=(0,p.useMemo)(()=>o?n:Ea(r,n),[o,r,n]),i=n&&n.provider,c=(0,p.useRef)(Ae);i&&!c.current&&(c.current=ya(i(a.cache||dr),n));const s=c.current;return s&&(a.cache=s[0],a.mutate=s[1]),fn(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,p.createElement)(fr.Provider,et(e,{value:a}))},Kl="$inf$",Sa=Ft&&window.__SWR_DEVTOOLS_USE__,ed=Sa?window.__SWR_DEVTOOLS_USE__:[],td=()=>{Sa&&(window.__SWR_DEVTOOLS_REACT__=p)},_a=e=>Be(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],nd=()=>{const e=(0,p.useContext)(fr);return(0,p.useMemo)(()=>et(xa,e),[e])},vp=(e,t)=>{if(IS_SERVER)return;const[r,o]=serialize(e),[,,,n]=SWRGlobalState.get(cache);if(n[r])return n[r];const a=t(o);return n[r]=a,a},rd=e=>(t,r,o)=>e(t,r&&((...a)=>{const[i]=cr(t),[,,,c]=Qe.get(dr);if(i.startsWith(Kl))return r(...a);const s=c[i];return re(s)?r(...a):(delete c[i],s)}),o),od=ed.concat(rd),ad=e=>function(...r){const o=nd(),[n,a,i]=_a(r),c=Ea(o,i);let s=e;const{use:d}=c,h=(d||[]).concat(od);for(let m=h.length;m--;)s=h[m](s);return s(n,a||c.fetcher||null,c)},id=(e,t,r)=>{const o=t[e]||(t[e]=[]);return o.push(r),()=>{const n=o.indexOf(r);n>=0&&(o[n]=o[o.length-1],o.pop())}},wp=(e,t)=>(...r)=>{const[o,n,a]=_a(r),i=(a.use||[]).concat(t);return e(o,n,{...a,use:i})};td();const sd=void 0,pr=null,Ca=e=>e===sd,ud=e=>typeof e=="function",hn=new WeakMap,cd=e=>pr.prototype.toString.call(e),hr=(e,t)=>e===`[object ${t}]`;let ld=0;const mr=e=>{const t=typeof e,r=cd(e),o=hr(r,"Date"),n=hr(r,"RegExp"),a=hr(r,"Object");let i,c;if(pr(e)===e&&!o&&!n){if(i=hn.get(e),i)return i;if(i=++ld+"~",hn.set(e,i),Array.isArray(e)){for(i="@",c=0;c<e.length;c++)i+=mr(e[c])+",";hn.set(e,i)}if(a){i="#";const s=pr.keys(e).sort();for(;!Ca(c=s.pop());)Ca(e[c])||(i+=c+":"+mr(e[c])+",");hn.set(e,i)}}else i=o?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},dd=e=>{if(ud(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?mr(e):"",[e,t]},yp=e=>dd(e)[0],gr=p.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),vr={dedupe:!0},Oa=Promise.resolve(Ae),fd=()=>Ke,pd=(e,t,r)=>{const{cache:o,compare:n,suspense:a,fallbackData:i,revalidateOnMount:c,revalidateIfStale:s,refreshInterval:d,refreshWhenHidden:h,refreshWhenOffline:m,keepPreviousData:x,strictServerPrefetchWarning:b}=r,[_,y,w,S]=Qe.get(o),[E,A]=cr(e),M=(0,p.useRef)(!1),R=(0,p.useRef)(!1),I=(0,p.useRef)(E),D=(0,p.useRef)(t),j=(0,p.useRef)(r),N=()=>j.current,ee=()=>N().isVisible()&&N().isOnline(),[V,P,X,K]=ma(o,E),ae=(0,p.useRef)({}).current,te=re(i)?re(r.fallback)?Ae:r.fallback[E]:i,ve=(fe,Ee)=>{for(const Se in ae){const _e=Se;if(_e==="data"){if(!n(fe[_e],Ee[_e])&&(!re(fe[_e])||!n(ie,Ee[_e])))return!1}else if(Ee[_e]!==fe[_e])return!1}return!0},we=!M.current,le=(0,p.useMemo)(()=>{const fe=V(),Ee=K(),Se=Oe=>{const $e=et(Oe);return delete $e._k,(()=>{if(!E||!t||N().isPaused())return!1;if(we&&!re(c))return c;const It=re(te)?$e.data:te;return re(It)||s})()?{isValidating:!0,isLoading:!0,...$e}:$e},_e=Se(fe),Ze=fe===Ee?_e:Se(Ee);let Re=_e;return[()=>{const Oe=Se(V());return ve(Oe,Re)?(Re.data=Oe.data,Re.isLoading=Oe.isLoading,Re.isValidating=Oe.isValidating,Re.error=Oe.error,Re):(Re=Oe,Oe)},()=>Ze]},[o,E]),Ce=(0,ua.useSyncExternalStore)((0,p.useCallback)(fe=>X(E,(Ee,Se)=>{ve(Se,Ee)||fe()}),[o,E]),le[0],le[1]),Ie=_[E]&&_[E].length>0,U=Ce.data,J=re(U)?te&&ha(te)?gr(te):te:U,de=Ce.error,H=(0,p.useRef)(J),ie=x?re(U)?re(H.current)?J:H.current:U:J,he=E&&re(J),xe=(0,p.useRef)(null);!wt&&(0,ua.useSyncExternalStore)(fd,()=>(xe.current=!1,xe),()=>(xe.current=!0,xe));const yt=xe.current;b&&yt&&!a&&he&&console.warn(`Missing pre-initiated data for serialized key "${E}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const gn=!E||!t||N().isPaused()||Ie&&!re(de)?!1:we&&!re(c)?c:a?re(J)?!1:s:re(J)||s,Pt=we&&gn,vn=re(Ce.isValidating)?Pt:Ce.isValidating,Er=re(Ce.isLoading)?Pt:Ce.isLoading,ot=(0,p.useCallback)(async fe=>{const Ee=D.current;if(!E||!Ee||R.current||N().isPaused())return!1;let Se,_e,Ze=!0;const Re=fe||{},Oe=!w[E]||!Re.dedupe,$e=()=>ga?!R.current&&E===I.current&&M.current:E===I.current,Mt={isValidating:!1,isLoading:!1},It=()=>{P(Mt)},Ua=()=>{const Ne=w[E];Ne&&Ne[1]===_e&&delete w[E]},za={isValidating:!0};re(V().data)&&(za.isLoading=!0);try{if(Oe&&(P(za),r.loadingTimeout&&re(V().data)&&setTimeout(()=>{Ze&&$e()&&N().onLoadingSlow(E,r)},r.loadingTimeout),w[E]=[Ee(A),lr()]),[Se,_e]=w[E],Se=await Se,Oe&&setTimeout(Ua,r.dedupingInterval),!w[E]||w[E][1]!==_e)return Oe&&$e()&&N().onDiscarded(E),!1;Mt.error=Ae;const Ne=y[E];if(!re(Ne)&&(_e<=Ne[0]||_e<=Ne[1]||Ne[1]===0))return It(),Oe&&$e()&&N().onDiscarded(E),!1;const tt=V().data;Mt.data=n(tt,Se)?tt:Se,Oe&&$e()&&N().onSuccess(Se,E,r)}catch(Ne){Ua();const tt=N(),{shouldRetryOnError:Sr}=tt;tt.isPaused()||(Mt.error=Ne,Oe&&$e()&&(tt.onError(Ne,E,tt),(Sr===!0||Be(Sr)&&Sr(Ne))&&(!N().revalidateOnFocus||!N().revalidateOnReconnect||ee())&&tt.onErrorRetry(Ne,E,tt,Ld=>{const _r=_[E];_r&&_r[0]&&_r[0](fa,Ld)},{retryCount:(Re.retryCount||0)+1,dedupe:!0})))}return Ze=!1,It(),!0},[E,o]),wn=(0,p.useCallback)((...fe)=>wa(o,I.current,...fe),[]);if(fn(()=>{D.current=t,j.current=r,re(U)||(H.current=U)}),fn(()=>{if(!E)return;const fe=ot.bind(Ae,vr);let Ee=0;N().revalidateOnFocus&&(Ee=Date.now()+N().focusThrottleInterval);const _e=id(E,_,(Ze,Re={})=>{if(Ze==ca){const Oe=Date.now();N().revalidateOnFocus&&Oe>Ee&&ee()&&(Ee=Oe+N().focusThrottleInterval,fe())}else if(Ze==la)N().revalidateOnReconnect&&ee()&&fe();else{if(Ze==da)return ot();if(Ze==fa)return ot(Re)}});return R.current=!1,I.current=E,M.current=!0,P({_k:A}),gn&&(w[E]||(re(J)||wt?fe():Wl(fe))),()=>{R.current=!0,_e()}},[E]),fn(()=>{let fe;function Ee(){const _e=Be(d)?d(V().data):d;_e&&fe!==-1&&(fe=setTimeout(Se,_e))}function Se(){!V().error&&(h||N().isVisible())&&(m||N().isOnline())?ot(vr).then(Ee):Ee()}return Ee(),()=>{fe&&(clearTimeout(fe),fe=-1)}},[d,h,m,E]),(0,p.useDebugValue)(ie),a){if(!ga&&wt&&he)throw new Error("Fallback data is required when using Suspense in SSR.");he&&(D.current=t,j.current=r,R.current=!1);const fe=S[E],Ee=!re(fe)&&he?wn(fe):Oa;if(gr(Ee),!re(de)&&he)throw de;const Se=he?ot(vr):Oa;!re(ie)&&he&&(Se.status="fulfilled",Se.value=!0),gr(Se)}return{mutate:wn,get data(){return ae.data=!0,ie},get error(){return ae.error=!0,de},get isValidating(){return ae.isValidating=!0,vn},get isLoading(){return ae.isLoading=!0,Er}}},xp=ln.defineProperty(Ql,"defaultValue",{value:xa}),ka=ad(pd);var wr=window.wp.url,hd=({search:e,lang:t,page:r=1,perPage:o=25})=>{const{data:n,isLoading:a,error:i,mutate:c}=ka(["/ajax-search-pro/synonyms",e,t,r,o],([s,d,h,m,x])=>u()({path:(0,wr.addQueryArgs)(s,{search:d,lang:h,page:m,per_page:x})}),{revalidateOnFocus:!1});return{data:n?.items??[],total:n?.total??0,totalPages:n?.pages??1,index_stale:n?.index_stale??!1,isLoading:a,error:i,mutate:c}};let bt={};function md(e,t=!1,r=!0){const o=JSON.stringify(e);if(!t&&bt[o])return bt[o];r&&(e.path=(0,wr.addQueryArgs)(e.path,{timestamp:Date.now()}));const n=u()(e).then(a=>a).catch(a=>{throw delete bt[o],a});return bt[o]=n,n}function Sp(e){if(e===void 0){bt={};return}delete bt[e]}const gd="wpdrms_plugin_core",vd=e=>md({path:e});var Aa=()=>{const{data:e,isLoading:t,mutate:r,error:o}=ka(`/${gd}/options/languages/get`,vd,{revalidateOnFocus:!1,revalidateOnReconnect:!1});return{data:e??[],isLoading:t,mutate:r,error:o}};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const br=F("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);function ja(e,t){const r=(0,p.useRef)(!1);(0,p.useEffect)(()=>{r.current?e():r.current=!0},t)}function wd({text:e,remove:t,disabled:r,className:o}){const n=a=>{a.stopPropagation(),t(e)};return(0,l.jsxs)("span",{className:o,children:[(0,l.jsx)("span",{children:e}),!r&&(0,l.jsx)("button",{type:"button",onClick:n,"aria-label":`remove ${e}`,children:"\u2715"})]})}var yr;(e=>{let t;(n=>{n.Backspace="Backspace",n.Tab="Tab",n.Enter="Enter",n.Shift="Shift",n.Control="Control",n.Alt="Alt",n.Pause="Pause",n.CapsLock="CapsLock",n.Escape="Escape",n.Space=" ",n.PageUp="PageUp",n.PageDown="PageDown",n.End="End",n.Home="Home",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.PrintScreen="PrintScreen",n.Insert="Insert",n.Delete="Delete",n.Digit0="0",n.Digit1="1",n.Digit2="2",n.Digit3="3",n.Digit4="4",n.Digit5="5",n.Digit6="6",n.Digit7="7",n.Digit8="8",n.Digit9="9",n.A="A",n.B="B",n.C="C",n.D="D",n.E="E",n.F="F",n.G="G",n.H="H",n.I="I",n.J="J",n.K="K",n.L="L",n.M="M",n.N="N",n.O="O",n.P="P",n.Q="Q",n.R="R",n.S="S",n.T="T",n.U="U",n.V="V",n.W="W",n.X="X",n.Y="Y",n.Z="Z",n.a="a",n.b="b",n.c="c",n.d="d",n.e="e",n.f="f",n.g="g",n.h="h",n.i="i",n.j="j",n.k="k",n.l="l",n.m="m",n.n="n",n.o="o",n.p="p",n.q="q",n.r="r",n.s="s",n.t="t",n.u="u",n.v="v",n.w="w",n.x="x",n.y="y",n.z="z",n.Meta="Meta",n.ContextMenu="ContextMenu",n.AudioVolumeMute="AudioVolumeMute",n.AudioVolumeDown="AudioVolumeDown",n.AudioVolumeUp="AudioVolumeUp",n.F1="F1",n.F2="F2",n.F3="F3",n.F4="F4",n.F5="F5",n.F6="F6",n.F7="F7",n.F8="F8",n.F9="F9",n.F10="F10",n.F11="F11",n.F12="F12",n.NumLock="NumLock",n.ScrollLock="ScrollLock",n.Semicolon=";",n.Equal="=",n.Comma=",",n.Minus="-",n.Period=".",n.Slash="/",n.Backquote="`",n.BracketLeft="[",n.Backslash="\\",n.BracketRight="]",n.Quote="'",n.Tilde="~",n.Exclamation="!",n.At="@",n.Sharp="#",n.Dollar="$",n.Percent="%",n.Caret="^",n.Ampersand="&",n.Asterisk="*",n.ParenthesisLeft="(",n.ParenthesisRight=")",n.Underscore="_",n.Plus="+",n.OpenBrace="{",n.CloseBrace="}",n.Pipe="|",n.Colon=":",n.Quote2='"',n.AngleBracketLeft="<",n.AngleBracketRight=">",n.QuestionMark="?"})(t=e.Keys||(e.Keys={}));let r;(n=>{n.Backspace="Backspace",n.Tab="Tab",n.Enter="Enter",n.ShiftLeft="ShiftLeft",n.ShiftRight="ShiftRight",n.ControlLeft="ControlLeft",n.ControlRight="ControlRight",n.AltLeft="AltLeft",n.AltRight="AltRight",n.Pause="Pause",n.CapsLock="CapsLock",n.Escape="Escape",n.Space="Space",n.PageUp="PageUp",n.PageDown="PageDown",n.End="End",n.Home="Home",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.PrintScreen="PrintScreen",n.Insert="Insert",n.Delete="Delete",n.Digit0="Digit0",n.Digit1="Digit1",n.Digit2="Digit2",n.Digit3="Digit3",n.Digit4="Digit4",n.Digit5="Digit5",n.Digit6="Digit6",n.Digit7="Digit7",n.Digit8="Digit8",n.Digit9="Digit9",n.AudioVolumeMute="AudioVolumeMute",n.AudioVolumeDown="AudioVolumeDown",n.AudioVolumeUp="AudioVolumeUp",n.KeyA="KeyA",n.KeyB="KeyB",n.KeyC="KeyC",n.KeyD="KeyD",n.KeyE="KeyE",n.KeyF="KeyF",n.KeyG="KeyG",n.KeyH="KeyH",n.KeyI="KeyI",n.KeyJ="KeyJ",n.KeyK="KeyK",n.KeyL="KeyL",n.KeyM="KeyM",n.KeyN="KeyN",n.KeyO="KeyO",n.KeyP="KeyP",n.KeyQ="KeyQ",n.KeyR="KeyR",n.KeyS="KeyS",n.KeyT="KeyT",n.KeyU="KeyU",n.KeyV="KeyV",n.KeyW="KeyW",n.KeyX="KeyX",n.KeyY="KeyY",n.KeyZ="KeyZ",n.MetaLeft="MetaLeft",n.MetaRight="MetaRight",n.ContextMenu="ContextMenu",n.Numpad0="Numpad0",n.Numpad1="Numpad1",n.Numpad2="Numpad2",n.Numpad3="Numpad3",n.Numpad4="Numpad4",n.Numpad5="Numpad5",n.Numpad6="Numpad6",n.Numpad7="Numpad7",n.Numpad8="Numpad8",n.Numpad9="Numpad9",n.NumpadMultiply="NumpadMultiply",n.NumpadAdd="NumpadAdd",n.NumpadSubtract="NumpadSubtract",n.NumpadDecimal="NumpadDecimal",n.NumpadDivide="NumpadDivide",n.F1="F1",n.F2="F2",n.F3="F3",n.F4="F4",n.F5="F5",n.F6="F6",n.F7="F7",n.F8="F8",n.F9="F9",n.F10="F10",n.F11="F11",n.F12="F12",n.NumLock="NumLock",n.ScrollLock="ScrollLock",n.Semicolon="Semicolon",n.Equal="Equal",n.Comma="Comma",n.Minus="Minus",n.Period="Period",n.Slash="Slash",n.Backquote="Backquote",n.BracketLeft="BracketLeft",n.Backslash="Backslash",n.BracketRight="BracketRight",n.Quote="Quote"})(r=e.Codes||(e.Codes={}));function o(n){return n.length===1}e.isTypingContent=o})(yr||(yr={}));const bd=(e=10)=>[...Array(e)].map(()=>Math.random().toString(36)[2]).join(""),yd=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",focusable:"false","aria-hidden":"true",style:{pointerEvents:"none",width:"100%",height:"100%",display:"inherit"},children:(0,l.jsx)("path",{d:"M19 6v15H8V6h11m-4-4H4v16h1V3h10V2zm5 3H7v17h13V5z"})}),xd=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",focusable:"false","aria-hidden":"true",style:{pointerEvents:"none",width:"100%",height:"100%",display:"inherit"},children:(0,l.jsx)("path",{d:"m12.7 12 6.6 6.6-.7.7-6.6-6.6-6.6 6.6-.7-.7 6.6-6.6-6.7-6.6.7-.7 6.6 6.6 6.6-6.6.7.7-6.5 6.6Z"})});async function Ed(e){if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(e);else if(document.execCommand){const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-999999px",document.body.prepend(t),t.select();try{document.execCommand("copy")}catch(r){console.error(r)}finally{t.remove()}}}const Da=["Enter"],Sd=({name:e,placeHolder:t,value:r,onChange:o,onBlur:n,separators:a,disableBackspaceRemove:i,onExisting:c,onRemoved:s,disabled:d,isEditOnRemove:h,beforeAddValidate:m,onKeyUp:x,classNames:b,maxNumber:_,maxTagLength:y,onCopied:w,onAllRemoved:S})=>{const[E,A]=(0,p.useState)(r||[]),M=(0,p.useRef)(null),R=P=>{const X=[],K=Object.values(yr.Codes),ae=(a||Da).filter(le=>!K.includes(le)),te=bd(20);ae.map(le=>{P=P.replaceAll(le,te)}),P.split(te).map(le=>{le=y!==void 0&&y>0?le.substring(0,y):le,le=le.trim(),le!==""&&!E.includes(le)&&!X.includes(le)&&X.push(le)});const we=[...E,...X];_!==void 0&&_>0?A(we.slice(0,_)):A(we)};ja(()=>{o&&o(E)},[E]),ja(()=>{JSON.stringify(r)!==JSON.stringify(E)&&A(r??[])},[r]);const I=P=>{P.stopPropagation();let X=P.currentTarget.value;if(X=y!==void 0&&y>0?X.substring(0,y):X,X=X.trim(),!X&&!i&&E.length&&P.key==="Backspace"&&(P.currentTarget.value=h?`${E.at(-1)} `:"",A([...E.slice(0,-1)])),X&&(a||Da).includes(P.key)){if(P.preventDefault(),m&&!m(X,E))return;if(E.includes(X)){c&&c(X);return}const K=[...E,X];_!==void 0&&_>0?A(K.slice(0,_)):A(K),P.currentTarget.value=""}},D=P=>{P.preventDefault(),P.stopPropagation();let X=P.clipboardData.getData("text/plain");X&&R(X)},j=P=>{A(E.filter(X=>X!==P)),s&&s(P)},N=P=>{P.preventDefault(),w?.(E,E.join(",")),Ed(E.join(","))},ee=P=>{P.preventDefault(),E.length>0&&confirm((0,O.__)("Do you want to remove all?","wpdrms-admin-ui"))&&(S?.(E),A([]))},V=P=>{R(P.currentTarget.value),M.current&&(M.current.value=""),n?.(P)};return(0,l.jsxs)("div",{"aria-labelledby":e,className:v("wdo:tagsinput-container",b?.container),children:[(0,l.jsxs)("div",{className:"wdo:tagsinput-tag-container",children:[E.map(P=>(0,l.jsx)(wd,{className:v("wdo:tagsinput-tag",b?.tag),text:P,remove:j,disabled:d},P)),(0,l.jsx)("input",{ref:M,className:v("wdo:tagsinput-input",b?.input),type:"text",name:e,maxLength:y,placeholder:t,onKeyDown:I,onPaste:D,onBlur:V,disabled:d,onKeyUp:x})]}),(0,l.jsxs)("div",{className:"wdo:tagsinput-buttons-container",children:[(0,l.jsx)("button",{onClick:N,children:(0,l.jsx)(yd,{})}),(0,l.jsx)("button",{onClick:ee,children:(0,l.jsx)(xd,{})})]})]})},Fa={value:"",label:(0,O.__)("Default","ajax-search-pro")};var Pa=({pluginLangs:e,initialState:t,onSave:r,onCancel:o,saving:n})=>{const[a,i]=(0,p.useState)(t??{keyword:"",synonyms:[],lang:"",overwrite_existing:!0}),c=[Fa,...e],s=c.find(h=>h.value===a.lang)??Fa,d=async()=>{await r(a)};return(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-4 wdo:p-4 wdo:bg-white wdo:dark:bg-gray-800 wdo:rounded wdo:border wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-1",children:[(0,l.jsx)("label",{className:"wdo:font-medium wdo:text-gray-700 wdo:dark:text-gray-300",children:(0,O.__)("Term","ajax-search-pro")}),(0,l.jsx)("input",{type:"text",className:"wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:rounded wdo:px-3 wdo:py-2 wdo:bg-white wdo:dark:bg-gray-700 wdo:text-gray-900 wdo:dark:text-gray-100 wdo:focus:outline-none wdo:focus:ring-2 wdo:focus:ring-wp-admin-500",value:a.keyword,placeholder:(0,O.__)("Enter term\u2026","ajax-search-pro"),onChange:h=>i({...a,keyword:h.target.value}),disabled:n})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-1",children:[(0,l.jsx)("label",{className:"wdo:font-medium wdo:text-gray-700 wdo:dark:text-gray-300",children:(0,O.__)("Synonyms","ajax-search-pro")}),(0,l.jsx)(Sd,{value:a.synonyms,onChange:h=>i({...a,synonyms:h}),separators:[",","Enter"],placeHolder:(0,O.__)("Add a synonym\u2026","ajax-search-pro"),disabled:n})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-1",children:[(0,l.jsx)("label",{className:"wdo:font-medium wdo:text-gray-700 wdo:dark:text-gray-300",children:(0,O.__)("Language","ajax-search-pro")}),(0,l.jsx)(cn,{options:c,value:s,onChange:h=>i({...a,lang:h?.value??""}),isDisabled:n})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:gap-2 wdo:mt-2",children:[(0,l.jsx)("button",{className:"wdo:px-4 wdo:py-2 wdo:rounded wdo:bg-wp-admin-600 wdo:text-white wdo:font-medium wdo:cursor-pointer wdo:hover:bg-wp-admin-700 wdo:disabled:opacity-50 wdo:border-0",onClick:d,disabled:n||a.keyword.trim()==="",children:n?(0,O.__)("Saving\u2026","ajax-search-pro"):(0,O.__)("Save","ajax-search-pro")}),(0,l.jsx)("button",{className:"wdo:px-4 wdo:py-2 wdo:rounded wdo:bg-gray-100 wdo:dark:bg-gray-700 wdo:text-gray-700 wdo:dark:text-gray-300 wdo:font-medium wdo:cursor-pointer wdo:hover:bg-gray-200 wdo:dark:hover:bg-gray-600 wdo:border wdo:border-gray-300 wdo:dark:border-gray-600",onClick:o,disabled:n,children:(0,O.__)("Cancel","ajax-search-pro")})]})]})};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ma=F("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ia=typeof ajaxurl<"u"?ajaxurl.replace("admin-ajax.php","admin.php?page=asp_ai_features"):"",xr=[{value:25,label:(0,O.__)("Top 25 keywords","ajax-search-pro")},{value:50,label:(0,O.__)("Top 50 keywords","ajax-search-pro")},{value:100,label:(0,O.__)("Top 100 keywords","ajax-search-pro")}],Ra={value:"",label:(0,O.__)("Default","ajax-search-pro")},mn=(e,t)=>`${e}\0${t}`;var _d=({isOpen:e,defaultLang:t,onClose:r,onApplied:o})=>{const{addSuccess:n,addError:a}=Lt(),{data:i=[]}=Aa(),c=t&&t!=="any"?t:"",[s,d]=(0,p.useState)("configure"),[h,m]=(0,p.useState)(25),[x,b]=(0,p.useState)(c),[_,y]=(0,p.useState)(!1),[w,S]=(0,p.useState)(!1),[E,A]=(0,p.useState)(!1),[M,R]=(0,p.useState)(null),[I,D]=(0,p.useState)(new Set),j=[Ra,...i],N=j.find(U=>U.value===x)??Ra,ee=xr.find(U=>U.value===h)??xr[0],V=(0,p.useRef)(null),[P,X]=(0,p.useState)(!1),[K,ae]=(0,p.useState)(!1),te=(0,p.useCallback)(()=>{const U=V.current;U&&(X(U.scrollTop>4),ae(U.scrollTop+U.clientHeight<U.scrollHeight-4))},[]);(0,p.useEffect)(()=>{te()},[M,s,te]);const ve=()=>{d("configure"),R(null),D(new Set),A(!1),r()},we=()=>{y(!0),A(!1),u()({path:"/ajax-search-pro/ai/synonyms/generate",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:h,lang:x})}).then(U=>{R(U);const J=new Set;U.items.forEach(de=>{de.synonyms.forEach(H=>{H.exists||J.add(mn(de.keyword,H.term))})}),D(J),d("review")}).catch(U=>{U?.code==="feature_disabled"?A(!0):a(U)}).finally(()=>y(!1))},le=(U,J)=>{D(de=>{const H=new Set(de),ie=mn(U,J);return H.has(ie)?H.delete(ie):H.add(ie),H})},Ce=()=>{if(!M)return;const U=M.items.map(J=>({keyword:J.keyword,synonyms:J.synonyms.filter(de=>I.has(mn(J.keyword,de.term))).map(de=>de.term)})).filter(J=>J.synonyms.length>0);if(U.length===0){a((0,O.__)("Select at least one synonym to add.","ajax-search-pro"));return}S(!0),u()({path:"/ajax-search-pro/ai/synonyms/bulk-apply",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:x,items:U})}).then(J=>{n(`${(0,O.__)("Synonyms added for","ajax-search-pro")} ${J.applied} ${(0,O.__)("keyword(s).","ajax-search-pro")}`),o(),ve()}).catch(J=>a(J)).finally(()=>S(!1))},Ie=I.size;return(0,l.jsx)(L,{isOpen:e,onOverlayClick:ve,children:(0,l.jsxs)("div",{className:"wdo:p-6 wdo:min-w-[600px] wdo:max-w-[760px]",children:[(0,l.jsxs)("div",{className:"wdo:flex wdo:items-center wdo:gap-2 wdo:mb-4",children:[(0,l.jsx)(br,{size:18,className:"wdo:text-violet-500"}),(0,l.jsx)("h2",{className:"wdo:text-lg wdo:font-semibold wdo:text-gray-900 wdo:dark:text-white",children:(0,O.__)("Generate synonyms from popular keywords","ajax-search-pro")})]}),s==="configure"&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-500 wdo:dark:text-gray-400 wdo:mb-5",children:(0,O.__)("The AI looks at your most popular indexed keywords and suggests synonyms for each. You can review and pick which to keep before anything is saved.","ajax-search-pro")}),E?(0,l.jsxs)("div",{className:"wdo:text-sm wdo:text-gray-700 wdo:dark:text-gray-300 wdo:mb-5",children:[(0,O.__)("AI Synonym Discovery is disabled.","ajax-search-pro")," ",Ia&&(0,l.jsxs)("a",{href:Ia,target:"_blank",rel:"noreferrer",className:"wdo:underline",children:[(0,O.__)("Enable in Search AI settings","ajax-search-pro")," \u2192"]})]}):(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-4 wdo:mb-5",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"wdo:block wdo:text-xs wdo:font-medium wdo:text-gray-500 wdo:dark:text-gray-400 wdo:mb-1",children:(0,O.__)("How many keywords","ajax-search-pro")}),(0,l.jsx)("div",{className:"wdo:w-56",children:(0,l.jsx)(cn,{options:xr,value:ee,onChange:U=>m(U?.value??25)})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"wdo:block wdo:text-xs wdo:font-medium wdo:text-gray-500 wdo:dark:text-gray-400 wdo:mb-1",children:(0,O.__)("Language","ajax-search-pro")}),(0,l.jsx)("div",{className:"wdo:w-56",children:(0,l.jsx)(cn,{options:j,value:N,onChange:U=>b(U?.value??"")})})]}),(0,l.jsx)("p",{className:"wdo:text-xs wdo:text-gray-400 wdo:dark:text-gray-500",children:(0,O.__)("Generating for more keywords uses more of your monthly AI token budget.","ajax-search-pro")})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:justify-end wdo:gap-3 wdo:pt-4 wdo:border-t wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,l.jsx)(Or,{onClick:ve,disabled:_,children:(0,O.__)("Cancel","ajax-search-pro")}),!E&&(0,l.jsx)(Rt,{isLoading:_,disabled:_,onClick:we,children:_?(0,O.__)("Generating\u2026","ajax-search-pro"):(0,O.__)("Generate","ajax-search-pro")})]})]}),s==="review"&&M&&(0,l.jsxs)(l.Fragment,{children:[M.items.length===0?(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-500 wdo:dark:text-gray-400 wdo:mb-5",children:(0,O.__)("No keywords were found in the index, or the AI returned no suggestions. Make sure the index is built.","ajax-search-pro")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-500 wdo:dark:text-gray-400 wdo:mb-4",children:(0,O.__)('Click a synonym to toggle it. Greyed-out ones are already saved. Selected synonyms will be added when you click "Add selected".',"ajax-search-pro")}),(0,l.jsxs)("div",{className:"wdo:relative wdo:mb-5",children:[P&&(0,l.jsx)("div",{className:"wdo:pointer-events-none wdo:absolute wdo:top-0 wdo:inset-x-0 wdo:h-6 wdo:bg-gradient-to-b wdo:from-white wdo:dark:from-wp-admin-900 wdo:to-transparent wdo:z-10"}),(0,l.jsx)("div",{ref:V,onScroll:te,className:"wdo:flex wdo:flex-col wdo:gap-4 wdo:max-h-[24rem] wdo:overflow-y-auto",children:M.items.map(U=>(0,l.jsxs)("div",{className:"wdo:border-b wdo:border-gray-100 wdo:dark:border-gray-700 wdo:pb-3 last:wdo:border-0",children:[(0,l.jsxs)("div",{className:"wdo:flex wdo:items-center wdo:gap-2 wdo:mb-2",children:[(0,l.jsx)("span",{className:"wdo:font-medium wdo:text-gray-900 wdo:dark:text-gray-100",children:U.keyword}),U.keyword_has_existing&&(0,l.jsx)("span",{className:"wdo:text-xs wdo:text-gray-400 wdo:dark:text-gray-500",children:(0,O.__)("\xB7 complements existing","ajax-search-pro")})]}),(0,l.jsx)("div",{className:"wdo:flex wdo:flex-wrap wdo:gap-1.5",children:U.synonyms.map(J=>{if(J.exists)return(0,l.jsxs)("span",{className:"wdo:inline-flex wdo:items-center wdo:gap-1 wdo:px-2 wdo:py-0.5 wdo:rounded wdo:bg-gray-50 wdo:dark:bg-gray-800 wdo:text-gray-400 wdo:dark:text-gray-500 wdo:text-sm wdo:border wdo:border-gray-200 wdo:dark:border-gray-700",title:(0,O.__)("Already in the list","ajax-search-pro"),children:[J.term,(0,l.jsx)("span",{className:"wdo:text-[10px] wdo:uppercase wdo:tracking-wide",children:(0,O.__)("added","ajax-search-pro")})]},J.term);const de=I.has(mn(U.keyword,J.term));return(0,l.jsxs)("button",{type:"button",onClick:()=>le(U.keyword,J.term),className:`wdo:inline-flex wdo:items-center wdo:gap-1 wdo:px-2 wdo:py-0.5 wdo:rounded wdo:text-sm wdo:cursor-pointer wdo:border ${de?"wdo:bg-violet-600 wdo:text-white wdo:border-violet-600":"wdo:bg-white wdo:dark:bg-gray-700 wdo:text-gray-700 wdo:dark:text-gray-200 wdo:border-gray-300 wdo:dark:border-gray-600 wdo:hover:border-violet-400"}`,children:[de&&(0,l.jsx)(Ma,{size:11}),J.term]},J.term)})})]},U.keyword))}),K&&(0,l.jsx)("div",{className:"wdo:pointer-events-none wdo:absolute wdo:bottom-0 wdo:inset-x-0 wdo:h-6 wdo:bg-gradient-to-t wdo:from-white wdo:dark:from-wp-admin-900 wdo:to-transparent wdo:z-10"})]})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:justify-between wdo:items-center wdo:pt-4 wdo:border-t wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,l.jsxs)(at,{onClick:()=>d("configure"),disabled:w,children:["\u2190 ",(0,O.__)("Back","ajax-search-pro")]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:gap-3",children:[(0,l.jsx)(Or,{onClick:ve,disabled:w,children:(0,O.__)("Cancel","ajax-search-pro")}),(0,l.jsxs)(Rt,{isLoading:w,disabled:w||Ie===0,onClick:Ce,children:[(0,O.__)("Add selected","ajax-search-pro"),Ie>0?` (${Ie})`:""]})]})]})]})]})})};const Na=(e,t)=>`asp_ai_synonym_added:${e}:${t??""}`,Ta=(e,t)=>{try{return JSON.parse(localStorage.getItem(Na(e,t))??"[]")}catch{return[]}},Cd=(e,t,r)=>{localStorage.setItem(Na(t,r),JSON.stringify(e))},La=typeof ajaxurl<"u"?ajaxurl.replace("admin-ajax.php","admin.php?page=asp_ai_features"):"";var Od=({phrase:e,lang:t,label:r,existingSynonyms:o=[],onAdded:n})=>{const{addError:a}=Lt(),[i,c]=(0,p.useState)(!1),[s,d]=(0,p.useState)(!1),[h,m]=(0,p.useState)(null),[x,b]=(0,p.useState)(null),[_,y]=(0,p.useState)(()=>Ta(e,t)),[w,S]=(0,p.useState)(null),[E,A]=(0,p.useState)(!1),[M,R]=(0,p.useState)(null),I=(0,p.useRef)(null),D=(0,p.useRef)(null);(0,p.useEffect)(()=>{b(null),S(null),A(!1),c(!1),y(Ta(e,t))},[e,t]),(0,p.useEffect)(()=>{if(!i)return;const V=P=>{I.current?.contains(P.target)||D.current?.contains(P.target)||c(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[i]),(0,p.useEffect)(()=>{if(!i)return;const V=()=>{const P=I.current?.getBoundingClientRect();P&&R({top:P.bottom+4,right:window.innerWidth-P.right})};return window.addEventListener("scroll",V,!0),window.addEventListener("resize",V),()=>{window.removeEventListener("scroll",V,!0),window.removeEventListener("resize",V)}},[i]);const j=()=>{if(i)return;const V=I.current?.getBoundingClientRect();V&&R({top:V.bottom+4,right:window.innerWidth-V.right}),c(!0),!(x!==null||s)&&(d(!0),S(null),u()({path:(0,wr.addQueryArgs)("/ajax-search-pro/ai/synonym-discover",{phrase:e,...t?{lang:t}:{}})}).then(P=>{b(P.suggestions)}).catch(P=>{P?.code==="feature_disabled"?A(!0):S(P.message??(0,O.__)("Error loading suggestions.","ajax-search-pro"))}).finally(()=>{d(!1)}))},N=V=>{m(V),u()({path:"/ajax-search-pro/ai/synonym-apply",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyword:e,synonym:V,...t?{lang:t}:{}})}).then(()=>{y(P=>{const X=[...P,V];return Cd(X,e,t),X}),n?.()}).catch(P=>{a(P)}).finally(()=>{m(null)})},ee=i&&M?Y().createPortal((0,l.jsxs)("div",{ref:D,style:{position:"fixed",top:M.top,right:M.right,zIndex:99999,width:"18rem"},className:"wdo:bg-white wdo:dark:bg-gray-800 wdo:rounded wdo:border wdo:border-gray-200 wdo:dark:border-gray-600 wdo:shadow-xl",children:[(0,l.jsxs)("div",{className:"wdo:flex wdo:items-center wdo:justify-between wdo:px-3 wdo:py-2 wdo:border-b wdo:border-gray-100 wdo:dark:border-gray-700",children:[(0,l.jsxs)("span",{className:"wdo:text-xs wdo:font-medium wdo:text-gray-600 wdo:dark:text-gray-400 wdo:truncate",children:[(0,O.__)("Synonyms for","ajax-search-pro")," ",(0,l.jsxs)("span",{className:"wdo:text-gray-900 wdo:dark:text-gray-100",children:['"',e,'"']})]}),(0,l.jsx)("button",{className:"wdo:ml-2 wdo:shrink-0 wdo:p-0.5 wdo:rounded wdo:border-0 wdo:bg-transparent wdo:text-gray-400 wdo:hover:text-gray-700 wdo:dark:hover:text-gray-200 wdo:cursor-pointer",onClick:()=>c(!1),"aria-label":(0,O.__)("Close","ajax-search-pro"),children:(0,l.jsx)(Fr,{size:14})})]}),(0,l.jsxs)("div",{className:"wdo:p-3",children:[s&&(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-500 wdo:py-2 wdo:text-center",children:(0,O.__)("Loading suggestions\u2026","ajax-search-pro")}),!s&&E&&(0,l.jsxs)("p",{className:"wdo:text-xs wdo:text-gray-600 wdo:dark:text-gray-400 wdo:py-2",children:[(0,O.__)("AI Synonym Discovery is disabled.","ajax-search-pro")," ",La&&(0,l.jsxs)("a",{href:La,target:"_blank",rel:"noreferrer",className:"wdo:underline",children:[(0,O.__)("Enable in Search AI settings","ajax-search-pro")," \u2192"]})]}),!s&&!E&&w&&(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-red-600 wdo:dark:text-red-400 wdo:py-2",children:w}),!s&&!E&&!w&&x!==null&&x.length===0&&(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-gray-500 wdo:dark:text-gray-400 wdo:py-2",children:(0,O.__)("No suggestions found.","ajax-search-pro")}),!s&&!E&&!w&&x!==null&&x.length>0&&(0,l.jsx)("ul",{className:"wdo:flex wdo:flex-col wdo:gap-2",children:x.map(V=>{const P=V.term.toLowerCase(),X=_.some(K=>K.toLowerCase()===P)||o.some(K=>K.toLowerCase()===P);return(0,l.jsxs)("li",{className:"wdo:flex wdo:flex-col wdo:gap-0.5 wdo:border-b wdo:border-gray-100 wdo:dark:border-gray-700 wdo:pb-2 last:wdo:border-0 last:wdo:pb-0",children:[(0,l.jsxs)("div",{className:"wdo:flex wdo:items-center wdo:justify-between wdo:gap-2",children:[(0,l.jsx)("span",{className:"wdo:font-medium wdo:text-gray-900 wdo:dark:text-gray-100 wdo:text-sm",children:V.term}),!!V.occurrences&&(0,l.jsxs)("span",{className:"wdo:text-xs wdo:text-gray-400 wdo:shrink-0",children:[V.occurrences," ",(0,O.__)("hits","ajax-search-pro")]})]}),V.reason&&(0,l.jsx)("p",{className:"wdo:text-xs wdo:italic wdo:text-gray-500 wdo:dark:text-gray-400",children:V.reason}),X?(0,l.jsxs)("span",{className:"wdo:mt-1 wdo:self-start wdo:inline-flex wdo:items-center wdo:gap-1 wdo:px-2 wdo:py-0.5 wdo:rounded wdo:bg-green-100 wdo:dark:bg-green-900/40 wdo:text-green-700 wdo:dark:text-green-400 wdo:text-xs wdo:font-medium",children:[(0,l.jsx)(Ma,{size:11}),(0,O.__)("Added","ajax-search-pro")]}):(0,l.jsx)("button",{className:"wdo:mt-1 wdo:self-start wdo:px-2 wdo:py-0.5 wdo:rounded wdo:bg-wp-admin-600 wdo:text-white wdo:text-xs wdo:cursor-pointer wdo:hover:bg-wp-admin-700 wdo:border-0 wdo:disabled:opacity-50",disabled:h===V.term,onClick:()=>N(V.term),children:h===V.term?(0,O.__)("Adding\u2026","ajax-search-pro"):(0,O.__)("Add","ajax-search-pro")})]},V.term)})})]})]}),document.getElementById("wdo")??document.body):null;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{ref:I,className:"wdo:px-3 wdo:py-1 wdo:rounded wdo:bg-violet-600 wdo:text-white wdo:cursor-pointer wdo:hover:bg-violet-700 wdo:border wdo:border-violet-500 wdo:dark:bg-violet-700 wdo:dark:hover:bg-violet-600 wdo:dark:border-violet-600 wdo:flex wdo:items-center wdo:gap-1.5 wdo:whitespace-nowrap",onClick:j,children:[(0,l.jsx)(br,{size:13,className:"wdo:animate-pulse wdo:[animation-duration:2.5s]"}),r??(0,O.__)("Discover","ajax-search-pro")]}),ee]})};const kd={value:"any",label:(0,O.__)("Any language","ajax-search-pro")},Ad={value:"",label:(0,O.__)("Default","ajax-search-pro")},jd=(e,t)=>{if(e==="")return(0,O.__)("Default","ajax-search-pro");const r=t.find(o=>o.value===e);return r?r.label:e},Dd=(e,t)=>e.length<=t?e:e.substring(0,t)+"\u2026";var Fd=()=>{const{addSuccess:e,addError:t}=Lt(),[r,o]=(0,p.useState)(""),[n,a]=(0,p.useState)(""),[i,c]=(0,p.useState)("any"),[s,d]=(0,p.useState)(1),[h,m]=(0,p.useState)(25),[x,b]=(0,p.useState)({mode:"none"}),[_,y]=(0,p.useState)(!1),[w,S]=(0,p.useState)(!1),[E,A]=(0,p.useState)(!1),[M,R]=(0,p.useState)(!1),[I,D]=(0,p.useState)(!1),j=(0,p.useRef)(null),{data:N,total:ee,totalPages:V,index_stale:P,isLoading:X,mutate:K}=hd({search:n,lang:i,page:s,perPage:h}),{data:ae=[]}=Aa(),te=[kd,Ad,...ae],ve=(0,p.useRef)(wi().debounce(H=>{a(H)},300)).current;(0,p.useEffect)(()=>()=>{ve.cancel()},[ve]);const we=H=>{o(H.target.value),d(1),ve(H.target.value)},le=(0,p.useCallback)(async H=>{y(!0);try{await u()({path:"/ajax-search-pro/synonyms",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyword:H.keyword,synonyms:H.synonyms,lang:H.lang,overwrite_existing:H.overwrite_existing})}),e((0,O.__)("Synonym saved.","ajax-search-pro")),b({mode:"none"}),K()}catch(ie){t(ie)}finally{y(!1)}},[e,t,K]),Ce=(0,p.useCallback)(async H=>{if(confirm((0,O.__)("Delete this synonym?","ajax-search-pro")))try{await u()({path:`/ajax-search-pro/synonyms/${H.id}`,method:"DELETE"}),e((0,O.__)("Synonym deleted.","ajax-search-pro")),K()}catch(ie){t(ie)}},[e,t,K]),Ie=(0,p.useCallback)(async()=>{if(confirm((0,O.__)("This will delete ALL synonyms. Are you sure?","ajax-search-pro"))){S(!0);try{await u()({path:"/ajax-search-pro/synonyms/wipe",method:"POST"}),e((0,O.__)("All synonyms wiped.","ajax-search-pro")),K()}catch(H){t(H)}finally{S(!1)}}},[e,t,K]),U=(0,p.useCallback)(async()=>{A(!0);try{const ie=await(await u()({path:"/ajax-search-pro/synonyms/export",parse:!1})).blob(),he=URL.createObjectURL(ie),xe=document.createElement("a");xe.href=he,xe.download=`asp_synonyms_export_${new Date().toISOString().slice(0,19).replace(/[:T]/g,"-")}.json`,xe.click(),URL.revokeObjectURL(he),e((0,O.__)("Synonyms exported.","ajax-search-pro"))}catch(H){t(H)}finally{A(!1)}},[e,t]),J=(0,p.useCallback)(async H=>{const ie=H.target.files?.[0];if(ie){R(!0);try{const he=new FormData;he.append("file",ie);const xe=await u()({path:"/ajax-search-pro/synonyms/import",method:"POST",body:he});e(`${(0,O.__)("Imported","ajax-search-pro")} ${xe.imported} ${(0,O.__)("rows.","ajax-search-pro")}`),K()}catch(he){t(he)}finally{R(!1),j.current&&(j.current.value="")}}},[e,t,K]),de=te.find(H=>H.value===i)??te[0];return(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:card wdo:m-4",children:[(0,l.jsxs)(Rl,{className:"wdo:rounded-none wdo:border-b wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,O.__)("Synonyms are only supported by the","ajax-search-pro")," ",(0,l.jsx)("strong",{children:(0,O.__)("Index Table search engine","ajax-search-pro")}),". ",(0,O.__)("They have no effect when using the standard search engine.","ajax-search-pro")]}),P&&(0,l.jsxs)(kr,{className:"wdo:rounded-none wdo:border-b wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,O.__)("Synonyms were changed \u2014 the post index may be stale.","ajax-search-pro")," ",(0,l.jsx)("a",{href:`${ASP_BACKEND.admin_url}admin.php?page=asp_index_table`,children:(0,O.__)("Go to Index Table to rebuild.","ajax-search-pro")})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:flex-wrap wdo:items-center wdo:gap-2 wdo:p-4 wdo:border-b wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,l.jsx)("input",{type:"text",className:"wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:rounded wdo:px-3 wdo:py-2 wdo:text-sm wdo:bg-white wdo:dark:bg-gray-700 wdo:text-gray-900 wdo:dark:text-gray-100 wdo:focus:outline-none wdo:focus:ring-2 wdo:focus:ring-wp-admin-500 wdo:w-48",placeholder:(0,O.__)("Search\u2026","ajax-search-pro"),value:r,onChange:we}),(0,l.jsx)("div",{className:"wdo:w-44 wdo:text-sm",children:(0,l.jsx)(cn,{options:te,value:de,onChange:H=>{c(H?.value??"any"),d(1)}})}),(0,l.jsx)("div",{className:"wdo:flex-1"}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-2 wdo:rounded wdo:bg-wp-admin-600 wdo:text-white wdo:text-sm wdo:font-medium wdo:cursor-pointer wdo:hover:bg-wp-admin-700 wdo:border-0",onClick:()=>b({mode:"add"}),children:(0,O.__)("+ Add New","ajax-search-pro")}),(0,l.jsxs)("button",{className:"wdo:px-3 wdo:py-2 wdo:rounded wdo:bg-violet-600 wdo:text-white wdo:text-sm wdo:font-medium wdo:cursor-pointer wdo:hover:bg-violet-700 wdo:border-0 wdo:flex wdo:items-center wdo:gap-1.5",onClick:()=>D(!0),children:[(0,l.jsx)(br,{size:14}),(0,O.__)("Generate (AI)","ajax-search-pro")]}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-2 wdo:rounded wdo:bg-gray-100 wdo:dark:bg-gray-700 wdo:text-gray-700 wdo:dark:text-gray-200 wdo:text-sm wdo:font-medium wdo:cursor-pointer wdo:hover:bg-gray-200 wdo:dark:hover:bg-gray-600 wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:disabled:opacity-50",onClick:U,disabled:E,children:E?(0,O.__)("Exporting\u2026","ajax-search-pro"):(0,O.__)("Export","ajax-search-pro")}),(0,l.jsx)("input",{ref:j,type:"file",accept:".json,.csv",className:"wdo:hidden",onChange:J,disabled:M}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-2 wdo:rounded wdo:bg-gray-100 wdo:dark:bg-gray-700 wdo:text-gray-700 wdo:dark:text-gray-200 wdo:text-sm wdo:font-medium wdo:cursor-pointer wdo:hover:bg-gray-200 wdo:dark:hover:bg-gray-600 wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:disabled:opacity-50",onClick:()=>j.current?.click(),disabled:M,children:M?(0,O.__)("Importing\u2026","ajax-search-pro"):(0,O.__)("Import","ajax-search-pro")}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-2 wdo:rounded wdo:bg-red-50 wdo:dark:bg-red-900 wdo:text-red-700 wdo:dark:text-red-300 wdo:text-sm wdo:font-medium wdo:cursor-pointer wdo:hover:bg-red-100 wdo:dark:hover:bg-red-800 wdo:border wdo:border-red-200 wdo:dark:border-red-700 wdo:disabled:opacity-50",onClick:Ie,disabled:w,children:w?(0,O.__)("Wiping\u2026","ajax-search-pro"):(0,O.__)("Wipe All","ajax-search-pro")})]}),x.mode==="add"&&(0,l.jsx)("div",{className:"wdo:p-4 wdo:border-b wdo:border-gray-200 wdo:dark:border-gray-700",children:(0,l.jsx)(Pa,{pluginLangs:ae,onSave:le,onCancel:()=>b({mode:"none"}),saving:_})}),(0,l.jsx)("div",{className:"wdo:overflow-x-auto",children:X?(0,l.jsx)("div",{className:"wdo:p-6 wdo:text-center wdo:text-gray-500",children:(0,O.__)("Loading\u2026","ajax-search-pro")}):N.length===0?(0,l.jsx)("div",{className:"wdo:p-6 wdo:text-center wdo:text-gray-500",children:(0,O.__)("No synonyms found.","ajax-search-pro")}):(0,l.jsxs)("table",{className:"wdo:w-full",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"wdo:bg-gray-50 wdo:dark:bg-gray-800 wdo:border-b wdo:border-gray-200 wdo:dark:border-gray-700",children:[(0,l.jsx)("th",{className:"wdo:px-4 wdo:py-3 wdo:text-left wdo:font-medium wdo:text-gray-600 wdo:dark:text-gray-400",children:(0,O.__)("Term","ajax-search-pro")}),(0,l.jsx)("th",{className:"wdo:px-4 wdo:py-3 wdo:text-left wdo:font-medium wdo:text-gray-600 wdo:dark:text-gray-400",children:(0,O.__)("Synonyms","ajax-search-pro")}),(0,l.jsx)("th",{className:"wdo:px-4 wdo:py-3 wdo:text-left wdo:font-medium wdo:text-gray-600 wdo:dark:text-gray-400",children:(0,O.__)("Language","ajax-search-pro")}),(0,l.jsx)("th",{className:"wdo:px-4 wdo:py-3 wdo:text-right wdo:font-medium wdo:text-gray-600 wdo:dark:text-gray-400",children:(0,O.__)("Actions","ajax-search-pro")})]})}),(0,l.jsx)("tbody",{children:N.map(H=>(0,l.jsxs)(C().Fragment,{children:[(0,l.jsxs)("tr",{className:"wdo:border-b wdo:border-gray-100 wdo:dark:border-gray-700 wdo:hover:bg-gray-50 wdo:dark:hover:bg-gray-800",children:[(0,l.jsx)("td",{className:"wdo:px-4 wdo:py-3 wdo:font-medium wdo:text-gray-900 wdo:dark:text-gray-100",children:H.keyword}),(0,l.jsx)("td",{className:"wdo:px-4 wdo:py-3 wdo:text-gray-600 wdo:dark:text-gray-400",children:Dd(H.synonyms.replace(/,/g,", "),60)}),(0,l.jsx)("td",{className:"wdo:px-4 wdo:py-3 wdo:text-gray-600 wdo:dark:text-gray-400",children:jd(H.lang,ae)}),(0,l.jsx)("td",{className:"wdo:px-4 wdo:py-3 wdo:text-right",children:(0,l.jsxs)("div",{className:"wdo:flex wdo:gap-2 wdo:justify-end",children:[(0,l.jsx)(Od,{phrase:H.keyword,lang:H.lang,existingSynonyms:H.synonyms?H.synonyms.split(",").map(ie=>ie.trim()).filter(Boolean):[],onAdded:K}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-1 wdo:rounded wdo:bg-gray-100 wdo:dark:bg-gray-700 wdo:text-gray-700 wdo:dark:text-gray-300 wdo:cursor-pointer wdo:hover:bg-gray-200 wdo:dark:hover:bg-gray-600 wdo:border wdo:border-gray-300 wdo:dark:border-gray-600",onClick:()=>b({mode:"edit",row:H}),children:(0,O.__)("Edit","ajax-search-pro")}),(0,l.jsx)("button",{className:"wdo:px-3 wdo:py-1 wdo:rounded wdo:bg-red-50 wdo:dark:bg-red-900 wdo:text-red-700 wdo:dark:text-red-300 wdo:cursor-pointer wdo:hover:bg-red-100 wdo:dark:hover:bg-red-800 wdo:border wdo:border-red-200 wdo:dark:border-red-700",onClick:()=>Ce(H),children:(0,O.__)("Delete","ajax-search-pro")})]})})]}),x.mode==="edit"&&x.row.id===H.id&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:4,className:"wdo:px-4 wdo:py-4 wdo:bg-gray-50 wdo:dark:bg-gray-800",children:(0,l.jsx)(Pa,{pluginLangs:ae,initialState:{keyword:H.keyword,synonyms:H.synonyms?H.synonyms.split(",").map(ie=>ie.trim()).filter(Boolean):[],lang:H.lang,overwrite_existing:!0},onSave:le,onCancel:()=>b({mode:"none"}),saving:_})})})]},H.id))})]})}),ee>0&&(0,l.jsx)("div",{className:"wdo:px-4 wdo:pb-4 wdo:border-t wdo:border-gray-200 wdo:dark:border-gray-700",children:(0,l.jsx)(Nl,{totalItems:ee,currentPage:s,pageSize:h,onPageChange:d,onPageSizeChange:H=>{m(H),d(1)},pageSizeOptions:[10,25,50,100],disabled:X})}),(0,l.jsx)(_d,{isOpen:I,defaultLang:i,onClose:()=>D(!1),onApplied:K})]})};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pd=F("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),Va="asl_review_notice",Ba=10080*60*1e3;function Md(){try{const e=localStorage.getItem(Va);return e?JSON.parse(e):null}catch{return null}}function $a(e){localStorage.setItem(Va,JSON.stringify(e))}function Id(e){return!e||e.status==="dismissed"?!1:e.status==="snoozed"?Date.now()>e.until:Date.now()-e.firstSeen>=Ba}const Rd=()=>{const{isDark:e}=Rr(),[t,r]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{let n=Md();n||(n={status:"pending",firstSeen:Date.now()},$a(n)),r(Id(n))},[]),!t)return null;const o=n=>{$a(n==="snoozed"?{status:"snoozed",until:Date.now()+Ba}:{status:"dismissed"}),r(!1)};return(0,l.jsx)("div",{className:"asl-review-border-wrap",children:(0,l.jsxs)("div",{className:"asl-review-border-inner wdo:flex wdo:items-center wdo:gap-4 wdo:p-4 wdo:flex-wrap",style:{background:e?"#0b0c0c":"#fff"},children:[(0,l.jsx)(Pd,{className:"wdo:w-6 wdo:h-6 wdo:text-asp wdo:shrink-0"}),(0,l.jsxs)("div",{className:"wdo:flex-1 wdo:min-w-0",children:[(0,l.jsx)("p",{className:"wdo:font-semibold wdo:dark:text-wp-admin-100",children:(0,O.__)("Enjoying Ajax Search Pro?","ajax-search-pro")}),(0,l.jsx)("p",{className:"wdo:text-sm wdo:text-wp-admin-500 wdo:dark:text-wp-admin-400 wdo:mt-0.5",children:(0,O.__)("A quick review on WordPress.org helps the plugin grow. It only takes a minute!","ajax-search-pro")})]}),(0,l.jsxs)("div",{className:"wdo:flex wdo:gap-2 wdo:flex-wrap wdo:shrink-0 wdo:items-center",children:[(0,l.jsx)("a",{href:"https://wordpress.org/support/plugin/ajax-search-lite/reviews/#new-post",target:"_blank",rel:"noopener noreferrer",className:"wdo:button wdo:button-primary",onClick:()=>o("dismissed"),children:(0,O.__)("Leave a Review","ajax-search-pro")}),(0,l.jsx)("button",{className:"wdo:button",onClick:()=>o("snoozed"),children:(0,O.__)("Maybe later","ajax-search-pro")}),(0,l.jsx)("button",{className:"wdo:button wdo:button-ghost",onClick:()=>o("dismissed"),children:(0,O.__)("Never","ajax-search-pro")})]})]})})},Nd=()=>{switch((0,p.useContext)(yn)?.activeId){default:return(0,l.jsx)(Fd,{})}};var Td=()=>{const{messages:e}=Lt();return(0,l.jsxs)(ri,{children:[(0,l.jsx)(Ka,{messages:e}),(0,l.jsx)(qa,{}),(0,l.jsx)(si,{subtitle:(0,O.__)("Synonyms","ajax-search-pro"),logo:(0,l.jsx)(gi,{}),className:"wdo:items-center!"}),(0,l.jsx)(li,{children:(0,l.jsxs)("div",{className:"wdo:panel-container",children:[(0,l.jsx)("nav",{className:"wdo:menu-panel",children:(0,l.jsxs)(di,{children:[(0,l.jsx)(Nr,{label:(0,O.__)("Manage","ajax-search-pro"),id:"manage",defaultActive:!0,iconBefore:(0,l.jsx)(fi,{})}),(0,l.jsx)(Nr,{label:(0,O.__)("Documentation","ajax-search-pro"),id:"documentation",onClick:t=>{t.preventDefault(),hi("https://documentation.ajaxsearchpro.com/synonyms")},iconAfter:(0,l.jsx)(pi,{})})]})}),(0,l.jsxs)("div",{className:"wdo:content-panel",children:[(0,l.jsx)(Rd,{}),(0,l.jsx)(Nd,{})]})]})})]})};const Ha=document.getElementById("asp-root");Ha!==null&&Y().render((0,l.jsx)(Td,{}),Ha)})()})();
