HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/adspray/wp-content/plugins/lazy-blocks/build/control-file.js
(()=>{var e={1991:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function o(e,o){if(o){var i=typeof o;"string"===i?function(e,t){for(var n=t.split(r),o=n.length,i=0;i<o;++i)e[n[i]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===i?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,o):"number"===i&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=new e;t(i,r);var a=[];for(var s in i)i[s]&&a.push(s);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},102:e=>{e.exports={control:function(e,t){var n=Object.assign(e,{cursor:"pointer",minHeight:30});return n=t.isFocused&&!t.isDisabled?Object.assign(n,{borderColor:"#007cba"}):Object.assign(n,{borderColor:"#7e8993","&:hover":{borderColor:"#7e8993"}}),t.isFocused&&(n=Object.assign(n,{boxShadow:"0 0 0 1px #007cba","&:hover":{borderColor:"#007cba"}})),n},valueContainer:function(e){return Object.assign(e,{padding:"0 8px"})},input:function(e){return Object.assign(e,{margin:0,height:30,paddingTop:0,paddingBottom:0,input:{boxShadow:"none !important"}})},dropdownIndicator:function(e){return Object.assign(e,{padding:5,color:"#555555","&:hover":{color:"#555555"},svg:{width:17,height:17}})},clearIndicator:function(e){return Object.assign(e,{padding:5,svg:{width:15,height:15}})},indicatorSeparator:function(){return!1},multiValue:function(e){return Object.assign(e,{padding:"3px 4px",margin:4,marginLeft:0,borderRadius:15,backgroundColor:"#ddd"})},multiValueLabel:function(e){return Object.assign(e,{padding:0,color:"#32373c",fontSize:"90%"})},multiValueRemove:function(e){return Object.assign(e,{padding:0,marginLeft:5,marginTop:1,width:16,height:16,borderRadius:8,backgroundColor:"#555d66",color:"#ddd",justifyContent:"center",":hover":{backgroundColor:"#e02e2e",color:"#fff"},svg:{width:12,height:12}})},option:function(e,t){var n=Object.assign(e,{display:"flex",alignItems:"center",padding:"4px 10px"});return t.isFocused&&(n=Object.assign(n,{backgroundColor:"#efefef"})),t.isSelected&&(n=Object.assign(n,{backgroundColor:"#007cba"})),n},menu:function(e){return Object.assign(e,{zIndex:2})}}},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),v=l(n),m=0;m<a.length;++m){var g=a[m];if(!(i[g]||r&&r[g]||v&&v[g]||s&&s[g])){var b=p(n,g);try{u(t,g,b)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case v:case l:return e;default:return t}}case o:return t}}}function x(e){return O(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||O(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===v},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},1296:(e,t,n)=>{"use strict";e.exports=n(6103)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.i18n,t=window.wp.hooks,r=window.wp.components,o=window.React;var i=n.n(o),a=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),s=Math.abs,l=String.fromCharCode,u=Object.assign;function c(e){return e.trim()}function d(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function h(e,t,n){return e.slice(t,n)}function v(e){return e.length}function m(e){return e.length}function g(e,t){return t.push(e),e}var b=1,y=1,w=0,O=0,x=0,C="";function S(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:b,column:y,length:a,return:""}}function E(e,t){return u(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function D(){return x=O>0?f(C,--O):0,y--,10===x&&(y=1,b--),x}function I(){return x=O<w?f(C,O++):0,y++,10===x&&(y=1,b++),x}function M(){return f(C,O)}function R(){return O}function k(e,t){return h(C,e,t)}function P(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 V(e){return b=y=1,w=v(C=e),O=0,[]}function L(e){return C="",e}function T(e){return c(k(O-1,F(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(x=M())&&x<33;)I();return P(e)>2||P(x)>3?"":" "}function N(e,t){for(;--t&&I()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return k(e,R()+(t<6&&32==M()&&32==I()))}function F(e){for(;I();)switch(x){case e:return O;case 34:case 39:34!==e&&39!==e&&F(x);break;case 40:41===e&&F(e);break;case 92:I()}return O}function j(e,t){for(;I()&&e+x!==57&&(e+x!==84||47!==M()););return"/*"+k(t,O-1)+"*"+l(47===e?e:I())}function z(e){for(;!P(M());)I();return k(e,O)}var U="-ms-",H="-moz-",_="-webkit-",B="comm",$="rule",W="decl",Y="@keyframes";function X(e,t){for(var n="",r=m(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case W:return e.return=e.return||e.value;case B:return"";case Y:return e.return=e.value+"{"+X(e.children,r)+"}";case $:e.value=e.props.join(",")}return v(n=X(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return L(q("",null,null,null,[""],e=V(e),0,[0],e))}function q(e,t,n,r,o,i,a,s,u){for(var c=0,h=0,m=a,b=0,y=0,w=0,O=1,x=1,C=1,S=0,E="",k=o,P=i,V=r,L=E;x;)switch(w=S,S=I()){case 40:if(108!=w&&58==f(L,m-1)){-1!=p(L+=d(T(S),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:L+=T(S);break;case 9:case 10:case 13:case 32:L+=A(w);break;case 92:L+=N(R()-1,7);continue;case 47:switch(M()){case 42:case 47:g(Z(j(I(),R()),t,n),u);break;default:L+="/"}break;case 123*O:s[c++]=v(L)*C;case 125*O:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+h:-1==C&&(L=d(L,/\f/g,"")),y>0&&v(L)-m&&g(y>32?Q(L+";",r,n,m-1):Q(d(L," ","")+";",r,n,m-2),u);break;case 59:L+=";";default:if(g(V=J(L,t,n,c,h,o,s,E,k=[],P=[],m),i),123===S)if(0===h)q(L,t,V,V,k,i,m,s,P);else switch(99===b&&110===f(L,3)?100:b){case 100:case 108:case 109:case 115:q(e,V,V,r&&g(J(e,V,V,0,0,o,s,E,o,k=[],m),P),o,P,m,s,r?k:P);break;default:q(L,V,V,V,[""],P,0,s,P)}}c=h=y=0,O=C=1,E=L="",m=a;break;case 58:m=1+v(L),y=w;default:if(O<1)if(123==S)--O;else if(125==S&&0==O++&&125==D())continue;switch(L+=l(S),S*O){case 38:C=h>0?1:(L+="\f",-1);break;case 44:s[c++]=(v(L)-1)*C,C=1;break;case 64:45===M()&&(L+=T(I())),b=M(),h=m=v(E=L+=z(R())),S++;break;case 45:45===w&&2==v(L)&&(O=0)}}return i}function J(e,t,n,r,o,i,a,l,u,p,f){for(var v=o-1,g=0===o?i:[""],b=m(g),y=0,w=0,O=0;y<r;++y)for(var x=0,C=h(e,v+1,v=s(w=a[y])),E=e;x<b;++x)(E=c(w>0?g[x]+" "+C:d(C,/&\f/g,g[x])))&&(u[O++]=E);return S(e,t,n,0===o?$:l,u,p,f)}function Z(e,t,n){return S(e,t,n,B,l(x),h(e,2,-2),0)}function Q(e,t,n,r){return S(e,t,n,W,h(e,0,r),h(e,r+1,-1),r)}var ee=function(e,t,n){for(var r=0,o=0;r=o,o=M(),38===r&&12===o&&(t[n]=1),!P(o);)I();return k(e,O)},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var o=[],i=function(e,t){return L(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===M()&&(t[n]=1),e[n]+=ee(O-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===M()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=l(r)}}while(r=I());return e}(V(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function oe(e,t){switch(function(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}(e,t)){case 5103:return _+"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 _+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _+e+H+e+U+e+e;case 6828:case 4268:return _+e+U+e+e;case 6165:return _+e+U+"flex-"+e+e;case 5187:return _+e+d(e,/(\w+).+(:[^]+)/,_+"box-$1$2"+U+"flex-$1$2")+e;case 5443:return _+e+U+"flex-item-"+d(e,/flex-|-self/,"")+e;case 4675:return _+e+U+"flex-line-pack"+d(e,/align-content|flex-|-self/,"")+e;case 5548:return _+e+U+d(e,"shrink","negative")+e;case 5292:return _+e+U+d(e,"basis","preferred-size")+e;case 6060:return _+"box-"+d(e,"-grow","")+_+e+U+d(e,"grow","positive")+e;case 4554:return _+d(e,/([^-])(transform)/g,"$1"+_+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+U+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+e+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,_+"$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(v(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+H+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?oe(d(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,v(e)-3-(~p(e,"!important")&&10))){case 107:return d(e,":",":"+_)+e;case 101:return d(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===f(e,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return _+e+U+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _+e+U+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _+e+U+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _+e+U+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=oe(e.value,e.length);break;case Y:return X([E(e,{value:d(e.value,"@","@"+_)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return X([E(e,{props:[d(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return X([E(e,{props:[d(t,/:(plac\w+)/,":"+_+"input-$1")]}),E(e,{props:[d(t,/:(plac\w+)/,":-moz-$1")]}),E(e,{props:[d(t,/:(plac\w+)/,U+"input-$1")]})],r)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||ie,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var u,c,d,p,f=[G,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(c=[ne,re].concat(i,f),d=m(c),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,X(K(e?e+"{"+t.styles+"}":t.styles),h),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new a({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return v.sheet.hydrate(l),v},se=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},le={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,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 ue(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ce=/[A-Z]|^ms/g,de=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pe=function(e){return 45===e.charCodeAt(1)},fe=function(e){return null!=e&&"boolean"!=typeof e},he=ue((function(e){return pe(e)?e:e.replace(ce,"-$&").toLowerCase()})),ve=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(de,(function(e,t,n){return ge={name:t,styles:n,next:ge},t}))}return 1===le[e]||pe(e)||"number"!=typeof t||0===t?t:t+"px"};function me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ge={name:n.name,styles:n.styles,next:ge},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ge={name:r.name,styles:r.styles,next:ge},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=me(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":fe(a)&&(r+=he(i)+":"+ve(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=me(e,t,a);switch(i){case"animation":case"animationName":r+=he(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)fe(a[l])&&(r+=he(i)+":"+ve(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ge,i=n(e);return ge=o,me(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ge,be=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ye=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ge=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=me(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=me(n,t,e[a]),r&&(o+=i[a]);be.lastIndex=0;for(var s,l="";null!==(s=be.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:ge}},we=!!o.useInsertionEffect&&o.useInsertionEffect,Oe=we||function(e){return e()},xe=(we||o.useLayoutEffect,{}.hasOwnProperty),Ce=o.createContext("undefined"!=typeof HTMLElement?ae({key:"css"}):null),Se=Ce.Provider,Ee=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Ce);return e(t,r,n)}))},De=o.createContext({}),Ie="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Me=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),Oe((function(){return function(e,t,n){se(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Re=Ee((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ie],a=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=ye(a,void 0,o.useContext(De));s+=t.key+"-"+l.name;var u={};for(var c in e)xe.call(e,c)&&"css"!==c&&c!==Ie&&(u[c]=e[c]);return u.ref=n,u.className=s,o.createElement(o.Fragment,null,o.createElement(Me,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,u))})),ke=Re;const Pe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Ve;const Le=new Uint8Array(16);function Te(){if(!Ve&&(Ve="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ve))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ve(Le)}const Ae=[];for(let e=0;e<256;++e)Ae.push((e+256).toString(16).slice(1));const Ne=function(e,t,n){if(Pe.randomUUID&&!t&&!e)return Pe.randomUUID();const r=(e=e||{}).random||(e.rng||Te)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]}(r)},Fe=window.wp.element;var je=new Set,ze=new WeakMap,Ue=function(e){if(ze.has(e))return ze.get(e);for(var t=Ne().replace(/[0-9]/g,"");je.has(t);)t=Ne().replace(/[0-9]/g,"");je.add(t);var n=ae({container:e,key:t});return ze.set(e,n),n};function He(e){var t=e.children,n=e.document;if(!n)return null;var r=Ue(n.head);return wp.element.createElement(Se,{value:r},t)}function _e(e){var t,n=e.children,r=(0,Fe.useRef)();return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("link",{ref:r}),wp.element.createElement(He,{document:(null==r||null===(t=r.current)||void 0===t?void 0:t.ownerDocument)||document},n))}function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Be.apply(this,arguments)}function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function We(e){var t=function(e,t){if("object"!==$e(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$e(t)?t:String(t)}function Ye(e,t,n){return(t=We(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,We(r.key),r)}}function qe(e,t){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qe(e,t)}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Je(e);if(t){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}function tt(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n(8679);var nt=function(e,t){var n=arguments;if(null==t||!xe.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=ke,i[1]=function(e,t){var n={};for(var r in t)xe.call(t,r)&&(n[r]=t[r]);return n[Ie]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ye(t)}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,a=[],_n=!0,s=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(a.push(r.value),a.length!==t);_n=!0);}catch(e){s=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}}(e,t)||et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const at=window.ReactDOM;Math.min,Math.max;function st(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function lt(e){return st(e).getComputedStyle(e)}function ut(e){return e instanceof st(e).Node}function ct(e){return ut(e)?(e.nodeName||"").toLowerCase():""}function dt(e){return e instanceof st(e).HTMLElement}function pt(e){return e instanceof st(e).Element}function ft(e){return"undefined"!=typeof ShadowRoot&&(e instanceof st(e).ShadowRoot||e instanceof ShadowRoot)}function ht(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const vt=Math.round;function mt(e){return pt(e)?e:e.contextElement}const gt={x:1,y:1};function bt(e){const t=mt(e);if(!dt(t))return gt;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=function(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=dt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=vt(n)!==i||vt(r)!==a;return s&&(n=i,r=a),{width:n,height:r,fallback:s}}(t);let a=(i?vt(n.width):n.width)/r,s=(i?vt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yt={x:0,y:0};function wt(e,t,n){var r,o;if(void 0===t&&(t=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return yt;const i=e?st(e):window;return!n||t&&n!==i?yt:{x:(null==(r=i.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}function Ot(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=mt(e);let a=gt;t&&(r?pt(r)&&(a=bt(r)):a=bt(e));const s=wt(i,n,r);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=st(i),t=r&&pt(r)?st(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=bt(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=t.x,u+=t.y,n=st(n).frameElement}}return p={width:c,height:d,x:l,y:u},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}function xt(e){if("html"===ct(e))return e;const t=e.assignedSlot||e.parentNode||ft(e)&&e.host||function(e){return((ut(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return ft(t)?t.host:t}function Ct(e){const t=xt(e);return function(e){return["html","body","#document"].includes(ct(e))}(t)?t.ownerDocument.body:dt(t)&&ht(t)?t:Ct(t)}function St(e,t){var n;void 0===t&&(t=[]);const r=Ct(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=st(r);return o?t.concat(i,i.visualViewport||[],ht(r)?r:[]):t.concat(r,St(r))}const Et=o.useLayoutEffect;var Dt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],It=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Rt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Mt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var kt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===$e(e)&&null!==e?[e]:[];var t},Pt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ge({},it(e,Dt))},Vt=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Lt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Tt(e){return Lt(e)?window.pageYOffset:e.scrollTop}function At(e,t){Lt(e)?window.scrollTo(0,t):e.scrollTop=t}function Nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:It,o=Tt(e),i=t-o,a=0;!function t(){var s,l=(s=a+=10,i*((s=s/n-1)*s*s+1)+o);At(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function Ft(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?At(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&At(e,Math.max(t.offsetTop-o,0))}function jt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var zt=!1,Ut={get passive(){return zt=!0}},Ht="undefined"!=typeof window?window:{};Ht.addEventListener&&Ht.removeEventListener&&(Ht.addEventListener("p",It,Ut),Ht.removeEventListener("p",It,!1));var _t=zt;function Bt(e){return null!=e}function $t(e,t,n){return e?t:n}var Wt=["children","innerProps"],Yt=["children","innerProps"];var Xt,Gt,Kt,qt=function(e){return"auto"===e?"bottom":e},Jt=(0,o.createContext)(null),Zt=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,o.useContext)(Jt)||{}).setPortalPlacement,c=(0,o.useRef)(null),d=ot((0,o.useState)(r),2),p=d[0],f=d[1],h=ot((0,o.useState)(null),2),v=h[0],m=h[1],g=l.spacing.controlHeight;return Et((function(){var e=c.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,v=p.top,m=n.offsetParent.getBoundingClientRect().top,g=a||Lt(c=l)?window.innerHeight:c.clientHeight,b=Tt(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=m-w,x=g-v,C=O+b,S=d-b-v,E=f-g+b+y,D=b+v-w,I=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return i&&Nt(l,E,I),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&Nt(l,E,I),{placement:"bottom",maxHeight:a?x-y:S-y};if("auto"===o||a){var M=t,R=a?O:C;return R>=r&&(M=Math.min(R-y-s,t)),{placement:"top",maxHeight:M}}if("bottom"===o)return i&&At(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&Nt(l,D,I),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&O>=r){var k=t;return(!a&&C>=r||a&&O>=r)&&(k=a?O-w:C-w),i&&Nt(l,D,I),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(o.maxHeight),m(o.placement),null==u||u(o.placement)}}),[r,i,a,s,n,u,g]),t({ref:c,placerProps:Ge(Ge({},e),{},{placement:v||qt(i),maxHeight:p})})},Qt=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Ge({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},en=Qt,tn=Qt,nn=["size"],rn=["innerProps","isRtl","size"],on={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},an=function(e){var t=e.size,n=it(e,nn);return nt("svg",Be({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:on},n))},sn=function(e){return nt(an,Be({size:20},e),nt("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"}))},ln=function(e){return nt(an,Be({size:20},e),nt("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"}))},un=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ge({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},cn=un,dn=un,pn=function(){var e=rt.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_"}}}(Xt||(Gt=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Kt||(Kt=Gt.slice(0)),Xt=Object.freeze(Object.defineProperties(Gt,{raw:{value:Object.freeze(Kt)}})))),fn=function(e){var t=e.delay,n=e.offset;return nt("span",{css:rt({animation:"".concat(pn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},hn=["data"],vn=["innerRef","isDisabled","isHidden","inputClassName"],mn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},gn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ge({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mn)},bn=function(e){return Ge({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},mn)},yn=function(e){var t=e.children,n=e.innerProps;return nt("div",n,t)},wn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return nt("div",Be({},Vt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||nt(sn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return nt("div",Be({ref:o},Vt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return nt("div",Be({},Vt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||nt(ln,null))},DownChevron:ln,CrossIcon:sn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return nt("div",Be({},Vt(e,"group",{group:!0}),s),nt(i,Be({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),nt("div",null,t))},GroupHeading:function(e){var t=Pt(e);t.data;var n=it(t,hn);return nt("div",Be({},Vt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return nt("div",Be({},Vt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return nt("span",Be({},t,Vt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Pt(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=it(r,vn);return nt("div",Be({},Vt(e,"input",{"input-container":!0}),{"data-value":n||""}),nt("input",Be({className:t({input:!0},s),ref:o,style:bn(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=it(e,rn);return nt("div",Be({},Vt(Ge(Ge({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),nt(fn,{delay:0,offset:n}),nt(fn,{delay:160,offset:!0}),nt(fn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return nt("div",Be({},Vt(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return nt("div",Be({},Vt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,o.useRef)(null),u=(0,o.useRef)(null),c=ot((0,o.useState)(qt(a)),2),d=c[0],p=c[1],f=(0,o.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=ot((0,o.useState)(null),2),v=h[0],m=h[1],g=(0,o.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||m({offset:n,rect:e})}}),[r,s,d,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);Et((function(){g()}),[g]);var b=(0,o.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o||i?[...pt(e)?St(e):e.contextElement?St(e.contextElement):[],...St(t)]:[];l.forEach((e=>{const t=!pt(e)&&e.toString().includes("V");!o||s&&!t||e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,c=null;a&&(c=new ResizeObserver((()=>{n()})),pt(e)&&!s&&c.observe(e),pt(e)||!e.contextElement||s||c.observe(e.contextElement),c.observe(t));let d=s?Ot(e):null;return s&&function t(){const r=Ot(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n(),d=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=c)||e.disconnect(),c=null,s&&cancelAnimationFrame(u)}}(r,l.current,g,{elementResize:"ResizeObserver"in window}))}),[r,g]);Et((function(){b()}),[b]);var y=(0,o.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==s||!v)return null;var w=nt("div",Be({ref:y},Vt(Ge(Ge({},e),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),i),n);return nt(Jt.Provider,{value:f},t?(0,at.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=it(e,Yt);return nt("div",Be({},Vt(Ge(Ge({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=it(e,Wt);return nt("div",Be({},Vt(Ge(Ge({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return nt(l,{data:r,innerProps:Ge(Ge({},Vt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},nt(u,{data:r,innerProps:Ge({},Vt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),nt(c,{data:r,innerProps:Ge(Ge({},Vt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:yn,MultiValueLabel:yn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return nt("div",Be({role:"button"},n),t||nt(sn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return nt("div",Be({},Vt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return nt("div",Be({},Vt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return nt("div",Be({},Vt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return nt("div",Be({},Vt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return nt("div",Be({},Vt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},On=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||On(r)&&On(o)))return!1;var r,o;return!0}for(var Cn={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"},Sn=function(e){return nt("span",Be({css:Cn},e))},En={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){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(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" 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(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Dn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=e.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,m=l.isSearchable,g=l.menuIsOpen,b=l.options,y=l.screenReaderStatus,w=l.tabSelectsValue,O=l.isLoading,x=l["aria-label"],C=l["aria-live"],S=(0,o.useMemo)((function(){return Ge(Ge({},En),d||{})}),[d]),E=(0,o.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,l=t.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?p(u):"",d=o||a||void 0,f=d?d.map(p):[],h=Ge({isDisabled:u&&v(u,s),label:c,labels:f},t);n=S.onChange(h)}return n}),[t,S,v,s,p]),D=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var a={focused:t,label:p(t),isDisabled:v(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=S.onFocus(a)}return e}),[n,r,p,v,S,i,s,c]),I=(0,o.useMemo)((function(){var e="";if(g&&b.length&&!O&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,g,S,b,y,O]),M="initial-input-focus"===(null==t?void 0:t.action),R=(0,o.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&v(n,s),isMulti:h,isSearchable:m,tabSelectsValue:w,isInitialFocus:M})}return e}),[x,n,r,h,v,m,g,S,s,w,M]),k=nt(o.Fragment,null,nt("span",{id:"aria-selection"},E),nt("span",{id:"aria-focused"},D),nt("span",{id:"aria-results"},I),nt("span",{id:"aria-guidance"},R));return nt(o.Fragment,null,nt(Sn,{id:u},M&&k),nt(Sn,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!M&&k))},In=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Mn=new RegExp("["+In.map((function(e){return e.letters})).join("")+"]","g"),Rn={},kn=0;kn<In.length;kn++)for(var Pn=In[kn],Vn=0;Vn<Pn.letters.length;Vn++)Rn[Pn.letters[Vn]]=Pn.base;var Ln=function(e){return e.replace(Mn,(function(e){return Rn[e]}))},Tn=function(e,t){void 0===t&&(t=xn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ln),An=function(e){return e.replace(/^\s+|\s+$/g,"")},Nn=function(e){return"".concat(e.label," ").concat(e.value)},Fn=["innerRef"];function jn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=ot(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ot(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(it(e,Fn),"onExited","in","enter","exit","appear");return nt("input",Be({ref:t},n,{css:rt({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 zn=["boxSizing","height","overflow","paddingRight","position"],Un={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Hn(e){e.preventDefault()}function Bn(e){e.stopPropagation()}function $n(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Wn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yn=!("undefined"==typeof window||!window.document||!window.document.createElement),Xn=0,Gn={capture:!1,passive:!1},Kn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Jn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),l=(0,o.useRef)(!1),u=(0,o.useRef)(0),c=(0,o.useRef)(null),d=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,u=o.scrollTop,d=o.scrollHeight,p=o.clientHeight,f=c.current,h=t>0,v=d-p-u,m=!1;v>t&&s.current&&(r&&r(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>v?(n&&!s.current&&n(e),f.scrollTop=d,m=!0,s.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,a]),p=(0,o.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,o.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,o.useCallback)((function(e){if(e){var t=!!_t&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),m=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return(0,o.useEffect)((function(){if(t){var e=c.current;return v(e),function(){m(e)}}}),[t,v,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(Yn){var t=document.body,n=t&&t.style;if(r&&zn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Xn<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Un).forEach((function(e){var t=Un[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Wn()&&(t.addEventListener("touchmove",Hn,Gn),e&&(e.addEventListener("touchstart",$n,Gn),e.addEventListener("touchmove",Bn,Gn))),Xn+=1}}),[r]),l=(0,o.useCallback)((function(e){if(Yn){var t=document.body,n=t&&t.style;Xn=Math.max(Xn-1,0),r&&Xn<1&&zn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Wn()&&(t.removeEventListener("touchmove",Hn,Gn),e&&(e.removeEventListener("touchstart",$n,Gn),e.removeEventListener("touchmove",Bn,Gn)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){a.current=e}}({isEnabled:n});return nt(o.Fragment,null,n&&nt("div",{onClick:Kn,css:qn}),t((function(e){i(e),a(e)})))}var Zn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Qn=function(e){var t=e.name,n=e.onFocus;return nt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Zn,value:"",onChange:function(){}})};function er(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function tr(){return er(/^Mac/i)}var nr=function(e){return e.label},rr=function(e){return e.value},or={clearIndicator:dn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Ge({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:cn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Ge({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ge({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Ge(Ge({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},gn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Ge({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:tn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Ge((Ye(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ye(n,"position","absolute"),Ye(n,"width","100%"),Ye(n,"zIndex",1),n),t?{}:{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:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Ge({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Ge({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Ge({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Ge({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:en,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Ge({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Ge({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Ge({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Ge({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ir={borderRadius:4,colors:{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%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ar={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:jt(),captureMenuScroll:!jt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ge({ignoreCase:!0,ignoreAccents:!0,stringify:Nn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?An(t):t,u=a?An(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Tn(l),u=Ln(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:nr,getOptionValue:rr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function sr(e,t,n,r){return{type:"option",data:t,isDisabled:vr(e,t,n),isSelected:mr(e,t,n),label:fr(e,t),value:hr(e,t),index:r}}function lr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return sr(e,n,t,r)})).filter((function(t){return dr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=sr(e,n,t,r);return dr(e,i)?i:void 0})).filter(Bt)}function ur(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,tt(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function cr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,tt(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function dr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!br(e)||!i)&&gr(e,{label:a,value:s,data:o},r)}var pr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},fr=function(e,t){return e.getOptionLabel(t)},hr=function(e,t){return e.getOptionValue(t)};function vr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function mr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=hr(e,t);return n.some((function(t){return hr(e,t)===r}))}function gr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var br=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},yr=1,wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qe(e,t)}(a,e);var t,n,r,i=Ze(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).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:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=tr()||er(/^iPhone/i)||er(/^iPad/i)||tr()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(tt(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=$t(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange($t(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=$t(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return pr(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return cr(lr(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Rt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return fr(t.props,e)},t.getOptionValue=function(e){return hr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=or[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Ge(Ge({},wn),e.components);var e},t.buildCategorizedOptions=function(){return lr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ur(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Ge({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Lt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return br(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,h=f.focusedOption,v=f.focusedValue,m=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!h||p&&t.isOptionSelected(h,m))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++yr),t.state.selectValue=kt(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=pr(n,r[o])}return t}return t=a,n=[{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&&Ft(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ft(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(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ir):Ge(Ge({},ir),this.props.theme):ir}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return vr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return mr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return gr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{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 e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,v=r||this.getElementId("input"),m=Ge(Ge(Ge({"aria-autocomplete":"list","aria-expanded":l,"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":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(c,Be({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},m)):o.createElement(jn,Be({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:It,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,v=c.placeholder,m=this.state,g=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!d)return h?null:o.createElement(l,Be({},u,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),v);if(f)return g.map((function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,Be({},u,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=g[0];return o.createElement(s,Be({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Be({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?o.createElement(e,Be({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,Be({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Be({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,v=f.inputValue,m=f.isLoading,g=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,C=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,D=f.noOptionsMessage,I=f.onMenuScrollToTop,M=f.onMenuScrollToBottom;if(!w)return null;var R,k=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},v=a?void 0:function(){return e.selectOption(i)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return o.createElement(c,Be({},d,{innerProps:g,data:i,isDisabled:a,isSelected:s,key:m,label:l,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return o.createElement(n,Be({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return k(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return k(t,"".concat(t.index))}));else if(m){var P=g({inputValue:v});if(null===P)return null;R=o.createElement(l,d,P)}else{var V=D({inputValue:v});if(null===V)return null;R=o.createElement(u,d,V)}var L={minMenuHeight:b,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},T=o.createElement(Zt,Be({},d,L),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,Be({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:s}),o.createElement(Jn,{captureEnabled:h,onTopArrive:I,onBottomArrive:M,lockEnabled:S},(function(t){return o.createElement(a,Be({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:l,focusedOption:p}),R)})))}));return C||"fixed"===x?o.createElement(s,Be({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(Qn,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:u})}var c=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(Dn,Be({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(r,Be({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),o.createElement(t,Be({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),o.createElement(i,Be({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,Be({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=kt(c),v={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return ur(lr(e,t))}(e,h):[],g=d?cr(lr(e,h),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);v={selectValue:h,focusedOption:y,focusedOptionId:pr(g,y),focusableOptionsWithIds:g,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&s;return a&&!x&&(O={value:$t(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),Ge(Ge(Ge({},v),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}],n&&Ke(t.prototype,n),r&&Ke(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);wr.defaultProps=ar;var Or=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function xr(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,v=it(e,Or),m=ot((0,o.useState)(void 0!==l?l:n),2),g=m[0],b=m[1],y=ot((0,o.useState)(void 0!==u?u:i),2),w=y[0],O=y[1],x=ot((0,o.useState)(void 0!==h?h:s),2),C=x[0],S=x[1],E=(0,o.useCallback)((function(e,t){"function"==typeof c&&c(e,t),S(e)}),[c]),D=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),I=(0,o.useCallback)((function(){"function"==typeof f&&f(),O(!0)}),[f]),M=(0,o.useCallback)((function(){"function"==typeof p&&p(),O(!1)}),[p]),R=void 0!==l?l:g,k=void 0!==u?u:w,P=void 0!==h?h:C;return Ge(Ge({},v),{},{inputValue:R,menuIsOpen:k,onChange:E,onInputChange:D,onMenuClose:M,onMenuOpen:I,value:P})}var Cr=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Sr=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},Er={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Sr(e,t,r)}))||n.some((function(t){return Sr(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},Dr=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,a=e.formatCreateLabel,s=void 0===a?Er.formatCreateLabel:a,l=e.isValidNewOption,u=void 0===l?Er.isValidNewOption:l,c=e.getNewOptionData,d=void 0===c?Er.getNewOptionData:c,p=e.onCreateOption,f=e.options,h=void 0===f?[]:f,v=e.onChange,m=it(e,Cr),g=m.getOptionValue,b=void 0===g?rr:g,y=m.getOptionLabel,w=void 0===y?nr:y,O=m.inputValue,x=m.isLoading,C=m.isMulti,S=m.value,E=m.name,D=(0,o.useMemo)((function(){return u(O,kt(S),h,{getOptionValue:b,getOptionLabel:w})?d(O,s(O)):void 0}),[s,d,w,b,O,u,h,S]),I=(0,o.useMemo)((function(){return!n&&x||!D?h:"first"===i?[D].concat(tt(h)):[].concat(tt(h),[D])}),[n,i,x,D,h]),M=(0,o.useCallback)((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==D)v(e,t);else if(p)p(O);else{var r=d(O,O),o={action:"create-option",name:E,option:r};v($t(C,[].concat(tt(kt(S)),[r]),r),o)}}),[d,O,C,E,D,p,v,S]);return Ge(Ge({},m),{},{options:I,onChange:M})}(xr(e));return o.createElement(wr,Be({ref:t},n))})),Ir=Dr,Mr=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],Rr=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,i=void 0!==r&&r,a=e.loadOptions;e.options;var s=e.isLoading,l=void 0!==s&&s,u=e.onInputChange,c=e.filterOption,d=void 0===c?null:c,p=it(e,Mr),f=p.inputValue,h=(0,o.useRef)(void 0),v=(0,o.useRef)(!1),m=ot((0,o.useState)(Array.isArray(n)?n:void 0),2),g=m[0],b=m[1],y=ot((0,o.useState)(void 0!==f?f:""),2),w=y[0],O=y[1],x=ot((0,o.useState)(!0===n),2),C=x[0],S=x[1],E=ot((0,o.useState)(void 0),2),D=E[0],I=E[1],M=ot((0,o.useState)([]),2),R=M[0],k=M[1],P=ot((0,o.useState)(!1),2),V=P[0],L=P[1],T=ot((0,o.useState)({}),2),A=T[0],N=T[1],F=ot((0,o.useState)(void 0),2),j=F[0],z=F[1],U=ot((0,o.useState)(void 0),2),H=U[0],_=U[1];i!==H&&(N({}),_(i)),n!==j&&(b(Array.isArray(n)?n:void 0),z(n)),(0,o.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var B=(0,o.useCallback)((function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[a]);(0,o.useEffect)((function(){!0===n&&B(w,(function(e){v.current&&(b(e||[]),S(!!h.current))}))}),[]);var $=(0,o.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n)return h.current=void 0,O(""),I(""),k([]),S(!1),void L(!1);if(i&&A[n])O(n),I(n),k(A[n]),S(!1),L(!1);else{var r=h.current={};O(n),S(!0),L(!D),B(n,(function(e){v&&r===h.current&&(h.current=void 0,S(!1),I(n),k(e||[]),L(!1),N(e?Ge(Ge({},A),{},Ye({},n,e)):A))}))}}),[i,B,D,A,u]),W=V?[]:w&&D?R:g||[];return Ge(Ge({},p),{},{options:W,isLoading:C||l,onInputChange:$,filterOption:d})}(e),r=xr(n);return o.createElement(wr,Be({ref:t},r))})),kr=Rr,Pr=(0,o.forwardRef)((function(e,t){var n=xr(e);return o.createElement(wr,Be({ref:t},n))})),Vr=n(102),Lr=n.n(Vr);const Tr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Ar(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Nr(e){return"nodeType"in e}function Fr(e){var t,n;return e?Ar(e)?e:Nr(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function jr(e){const{Document:t}=Fr(e);return e instanceof t}function zr(e){return!Ar(e)&&e instanceof Fr(e).HTMLElement}function Ur(e){return e instanceof Fr(e).SVGElement}function Hr(e){return e?Ar(e)?e.document:Nr(e)?jr(e)?e:zr(e)||Ur(e)?e.ownerDocument:document:document:document}const _r=Tr?o.useLayoutEffect:o.useEffect;function Br(e){const t=(0,o.useRef)(e);return _r((()=>{t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function $r(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return _r((()=>{n.current!==e&&(n.current=e)}),t),n}function Wr(e,t){const n=(0,o.useRef)();return(0,o.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function Yr(e){const t=Br(e),n=(0,o.useRef)(null),r=(0,o.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Xr(e){const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e}),[e]),t.current}let Gr={};function Kr(e,t){return(0,o.useMemo)((()=>{if(t)return t;const n=null==Gr[e]?0:Gr[e]+1;return Gr[e]=n,e+"-"+n}),[e,t])}function qr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const Jr=qr(1),Zr=qr(-1);function Qr(e){if(!e)return!1;const{KeyboardEvent:t}=Fr(e.target);return t&&e instanceof t}function eo(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Fr(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const to=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[to.Translate.toString(e),to.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),no="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ro(e){return e.matches(no)?e:e.querySelector(no)}const oo={display:"none"};function io(e){let{id:t,value:n}=e;return i().createElement("div",{id:t,style:oo},n)}function ao(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i().createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const so=(0,o.createContext)(null),lo={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},uo={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function co(e){let{announcements:t=uo,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=lo}=e;const{announce:s,announcement:l}=function(){const[e,t]=(0,o.useState)("");return{announce:(0,o.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),u=Kr("DndLiveRegion"),[c,d]=(0,o.useState)(!1);if((0,o.useEffect)((()=>{d(!0)}),[]),function(e){const t=(0,o.useContext)(so);(0,o.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,o.useMemo)((()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}})),[s,t])),!c)return null;const p=i().createElement(i().Fragment,null,i().createElement(io,{id:r,value:a.draggable}),i().createElement(ao,{id:u,announcement:l}));return n?(0,at.createPortal)(p,n):p}var po;function fo(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(po||(po={}));const ho=Object.freeze({x:0,y:0});function vo(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function mo(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function go(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const bo=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=go(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=(a=go(r),s=o,Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2)));i.push({id:t,data:{droppableContainer:e,value:n}})}}var a,s;return i.sort(vo)};function yo(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const wo=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=yo(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(mo)};function Oo(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ho}function xo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Co=xo(1);const So={ignoreTransform:!1};function Eo(e,t){void 0===t&&(t=So);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Fr(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function Do(e){return Eo(e,{ignoreTransform:!0})}function Io(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(jr(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!zr(o)||Ur(o))return n;if(n.includes(o))return n;const i=Fr(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=Fr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=Fr(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function Mo(e){const[t]=Io(e,1);return null!=t?t:null}function Ro(e){return Tr&&e?Ar(e)?e:Nr(e)?jr(e)||e===Hr(e).scrollingElement?window:zr(e)?e:null:null:null}function ko(e){return Ar(e)?e.scrollX:e.scrollLeft}function Po(e){return Ar(e)?e.scrollY:e.scrollTop}function Vo(e){return{x:ko(e),y:Po(e)}}var Lo;function To(e){return!(!Tr||!e)&&e===document.scrollingElement}function Ao(e){const t={x:0,y:0},n=To(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Lo||(Lo={}));const No={x:.2,y:.2};function Fo(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=No);const{isTop:u,isBottom:c,isLeft:d,isRight:p}=Ao(e),f={x:0,y:0},h={x:0,y:0},v=t.height*o.y,m=t.width*o.x;return!u&&i<=t.top+v?(f.y=Lo.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!c&&l>=t.bottom-v&&(f.y=Lo.Forward,h.y=r*Math.abs((t.bottom-v-l)/v)),!p&&s>=t.right-m?(f.x=Lo.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(f.x=Lo.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:f,speed:h}}function jo(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function zo(e){return e.reduce(((e,t)=>Jr(e,Vo(t))),ho)}const Uo=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+ko(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Po(t)),0)}]];class Ho{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Io(t),r=zo(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Uo)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class _o{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Bo(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var $o,Wo,Yo;function Xo(e){e.preventDefault()}function Go(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}($o||($o={})),(Yo=Wo||(Wo={})).Space="Space",Yo.Down="ArrowDown",Yo.Right="ArrowRight",Yo.Left="ArrowLeft",Yo.Up="ArrowUp",Yo.Esc="Escape",Yo.Enter="Enter";const Ko={start:[Wo.Space,Wo.Enter],cancel:[Wo.Esc],end:[Wo.Space,Wo.Enter]},qo=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Wo.Right:return{...n,x:n.x+25};case Wo.Left:return{...n,x:n.x-25};case Wo.Down:return{...n,y:n.y+25};case Wo.Up:return{...n,y:n.y-25}}};class Jo{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new _o(Hr(t)),this.windowListeners=new _o(Fr(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($o.Resize,this.handleCancel),this.windowListeners.add($o.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add($o.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=Eo),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);Mo(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(ho)}handleKeyDown(e){if(Qr(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=Ko,coordinateGetter:i=qo,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:ho;this.referenceCoordinates||(this.referenceCoordinates=u);const c=i(e,{active:t,context:n.current,currentCoordinates:u});if(c){const t=Zr(c,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:p}=Ao(n),f=jo(n),h={x:Math.min(o===Wo.Right?f.right-f.width/2:f.right,Math.max(o===Wo.Right?f.left:f.left+f.width/2,c.x)),y:Math.min(o===Wo.Down?f.bottom-f.height/2:f.bottom,Math.max(o===Wo.Down?f.top:f.top+f.height/2,c.y))},v=o===Wo.Right&&!s||o===Wo.Left&&!l,m=o===Wo.Down&&!u||o===Wo.Up&&!i;if(v&&h.x!==c.x){const e=n.scrollLeft+t.x,i=o===Wo.Right&&e<=d.x||o===Wo.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===Wo.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==c.y){const e=n.scrollTop+t.y,i=o===Wo.Down&&e<=d.y||o===Wo.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===Wo.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Jr(Zr(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Zo(e){return Boolean(e&&"distance"in e)}function Qo(e){return Boolean(e&&"delay"in e)}Jo.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ko,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ei{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Fr(e);return e instanceof t?e:Hr(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=Hr(i),this.documentListeners=new _o(this.document),this.listeners=new _o(n),this.windowListeners=new _o(Fr(i)),this.initialCoordinates=null!=(r=eo(o))?r:ho,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add($o.Resize,this.handleCancel),this.windowListeners.add($o.DragStart,Xo),this.windowListeners.add($o.VisibilityChange,this.handleCancel),this.windowListeners.add($o.ContextMenu,Xo),this.documentListeners.add($o.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Qo(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(Zo(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add($o.Click,Go,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=eo(e))?t:ho,l=Zr(r,s);if(!n&&a){if(Zo(a)){if(null!=a.tolerance&&Bo(l,a.tolerance))return this.handleCancel();if(Bo(l,a.distance))return this.handleStart()}return Qo(a)&&Bo(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Wo.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ti={move:{name:"pointermove"},end:{name:"pointerup"}};class ni extends ei{constructor(e){const{event:t}=e,n=Hr(t.target);super(e,ti,n)}}ni.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ri={move:{name:"mousemove"},end:{name:"mouseup"}};var oi;!function(e){e[e.RightClick=2]="RightClick"}(oi||(oi={})),class extends ei{constructor(e){super(e,ri,Hr(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==oi.RightClick&&(null==r||r({event:n}),!0)}}];const ii={move:{name:"touchmove"},end:{name:"touchend"}};var ai,si;(class extends ei{constructor(e){super(e,ii)}static setup(){return window.addEventListener(ii.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ii.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ai||(ai={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(si||(si={}));const li={x:{[Lo.Backward]:!1,[Lo.Forward]:!1},y:{[Lo.Backward]:!1,[Lo.Forward]:!1}};var ui,ci;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ui||(ui={})),function(e){e.Optimized="optimized"}(ci||(ci={}));const di=new Map;function pi(e,t){return Wr((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function fi(e){let{callback:t,disabled:n}=e;const r=Br(t),i=(0,o.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,o.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function hi(e){return new Ho(Eo(e),e)}function vi(e,t,n){void 0===t&&(t=hi);const[r,i]=(0,o.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),a=function(e){let{callback:t,disabled:n}=e;const r=Br(t),i=(0,o.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,o.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),s=fi({callback:i});return _r((()=>{i(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())}),[e]),r}const mi=[];function gi(e,t){void 0===t&&(t=[]);const n=(0,o.useRef)(null);return(0,o.useEffect)((()=>{n.current=null}),t),(0,o.useEffect)((()=>{const t=e!==ho;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Zr(e,n.current):ho}function bi(e){return(0,o.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const yi=[];const wi=[{sensor:ni,options:{}},{sensor:Jo,options:{}}],Oi={current:{}},xi={draggable:{measure:Do},droppable:{measure:Do,strategy:ui.WhileDragging,frequency:ci.Optimized},dragOverlay:{measure:Eo}};class Ci extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Si={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ci,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:fo},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:xi,measureDroppableContainers:fo,windowRect:null,measuringScheduled:!1},Ei={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fo,draggableNodes:new Map,over:null,measureDroppableContainers:fo},Di=(0,o.createContext)(Ei),Ii=(0,o.createContext)(Si);function Mi(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ci}}}function Ri(e,t){switch(t.type){case po.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case po.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case po.DragEnd:case po.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case po.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ci(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case po.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ci(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case po.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ci(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function ki(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,o.useContext)(Di),a=Xr(r),s=Xr(null==n?void 0:n.id);return(0,o.useEffect)((()=>{if(!t&&!r&&a&&null!=s){if(!Qr(a))return;if(document.activeElement===a.target)return;const e=i.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=ro(e);if(t){t.focus();break}}}))}}),[r,t,i,s,a]),null}const Pi=(0,o.createContext)({...ho,scaleX:1,scaleY:1});var Vi;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Vi||(Vi={}));const Li=(0,o.memo)((function(e){var t,n,r,a;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=wi,collisionDetection:p=wo,measuring:f,modifiers:h,...v}=e;const m=(0,o.useReducer)(Ri,void 0,Mi),[g,b]=m,[y,w]=function(){const[e]=(0,o.useState)((()=>new Set)),t=(0,o.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,o.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[O,x]=(0,o.useState)(Vi.Uninitialized),C=O===Vi.Initialized,{draggable:{active:S,nodes:E,translate:D},droppable:{containers:I}}=g,M=S?E.get(S):null,R=(0,o.useRef)({initial:null,translated:null}),k=(0,o.useMemo)((()=>{var e;return null!=S?{id:S,data:null!=(e=null==M?void 0:M.data)?e:Oi,rect:R}:null}),[S,M]),P=(0,o.useRef)(null),[V,L]=(0,o.useState)(null),[T,A]=(0,o.useState)(null),N=$r(v,Object.values(v)),F=Kr("DndDescribedBy",s),j=(0,o.useMemo)((()=>I.getEnabled()),[I]),z=function(e){return(0,o.useMemo)((()=>({draggable:{...xi.draggable,...null==e?void 0:e.draggable},droppable:{...xi.droppable,...null==e?void 0:e.droppable},dragOverlay:{...xi.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(f),{droppableRects:U,measureDroppableContainers:H,measuringScheduled:_}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,s]=(0,o.useState)(null),{frequency:l,measure:u,strategy:c}=i,d=(0,o.useRef)(e),p=function(){switch(c){case ui.Always:return!1;case ui.BeforeDragging:return n;default:return!n}}(),f=$r(p),h=(0,o.useCallback)((function(e){void 0===e&&(e=[]),f.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),v=(0,o.useRef)(null),m=Wr((t=>{if(p&&!n)return di;if(!t||t===di||d.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Ho(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,p,u]);return(0,o.useEffect)((()=>{d.current=e}),[e]),(0,o.useEffect)((()=>{p||h()}),[n,p]),(0,o.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,o.useEffect)((()=>{p||"number"!=typeof l||null!==v.current||(v.current=setTimeout((()=>{h(),v.current=null}),l))}),[l,p,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(j,{dragging:C,dependencies:[D.x,D.y],config:z.droppable}),B=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Wr((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(E,S),$=(0,o.useMemo)((()=>T?eo(T):null),[T]),W=function(){const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof u?!1===u.enabled:!1===u,n=C&&!e&&!t;return"object"==typeof u?{...u,enabled:n}:{enabled:n}}(),Y=function(e,t){return pi(e,t)}(B,z.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=(0,o.useRef)(!1),{x:s,y:l}="boolean"==typeof i?{x:i,y:i}:i;_r((()=>{if(!s&&!l||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=Oo(n(e),r);if(s||(o.x=0),l||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=Mo(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,s,l,r,n])}({activeNode:S?E.get(S):null,config:W.layoutShiftCompensation,initialRect:Y,measure:z.draggable.measure});const X=vi(B,z.draggable.measure,Y),G=vi(B?B.parentElement:null),K=(0,o.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),q=I.getNodeFor(null==(t=K.current.over)?void 0:t.id),J=function(e){let{measure:t}=e;const[n,r]=(0,o.useState)(null),i=fi({callback:(0,o.useCallback)((e=>{for(const{target:n}of e)if(zr(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),a=(0,o.useCallback)((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return zr(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)}),[t,i]),[s,l]=Yr(a);return(0,o.useMemo)((()=>({nodeRef:s,rect:n,setRef:l})),[n,s,l])}({measure:z.dragOverlay.measure}),Z=null!=(n=J.nodeRef.current)?n:B,Q=C?null!=(r=J.rect)?r:X:null,ee=Boolean(J.nodeRef.current&&J.rect),te=Oo(ne=ee?null:X,pi(ne));var ne;const re=bi(Z?Fr(Z):null),oe=function(e){const t=(0,o.useRef)(e),n=Wr((n=>e?n&&n!==mi&&e&&t.current&&e.parentNode===t.current.parentNode?n:Io(e):mi),[e]);return(0,o.useEffect)((()=>{t.current=e}),[e]),n}(C?null!=q?q:B:null),ie=function(e,t){void 0===t&&(t=Eo);const[n]=e,r=bi(n?Fr(n):null),[i,a]=(0,o.useReducer)((function(){return e.length?e.map((e=>To(e)?r:new Ho(t(e),e))):yi}),yi),s=fi({callback:a});return e.length>0&&i===yi&&a(),_r((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),a())}),[e]),i}(oe),ae=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(h,{transform:{x:D.x-te.x,y:D.y-te.y,scaleX:1,scaleY:1},activatorEvent:T,active:k,activeNodeRect:X,containerNodeRect:G,draggingNodeRect:Q,over:K.current.over,overlayNodeRect:J.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),se=$?Jr($,D):null,le=function(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(e),i=(0,o.useCallback)((e=>{const t=Ro(e.target);t&&n((e=>e?(e.set(t,Vo(t)),new Map(e)):null))}),[]);return(0,o.useEffect)((()=>{const t=r.current;if(e!==t){o(t);const a=e.map((e=>{const t=Ro(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Vo(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=Ro(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,o.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Jr(e,t)),ho):zo(e):ho),[e,t])}(oe),ue=gi(le),ce=gi(le,[X]),de=Jr(ae,ue),pe=Q?Co(Q,ae):null,fe=k&&pe?p({active:k,collisionRect:pe,droppableRects:U,droppableContainers:j,pointerCoordinates:se}):null,he=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n.id}(fe),[ve,me]=(0,o.useState)(null),ge=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:Jr(ae,ce),null!=(a=null==ve?void 0:ve.rect)?a:null,X),be=(0,o.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;const o=E.get(P.current);if(!o)return;const i=e.nativeEvent,a=new n({active:P.current,activeNode:o,event:i,options:r,context:K,onStart(e){const t=P.current;if(null==t)return;const n=E.get(t);if(!n)return;const{onDragStart:r}=N.current,o={active:{id:t,data:n.data,rect:R}};(0,at.unstable_batchedUpdates)((()=>{null==r||r(o),x(Vi.Initializing),b({type:po.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:o})}))},onMove(e){b({type:po.DragMove,coordinates:e})},onEnd:s(po.DragEnd),onCancel:s(po.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=K.current;let a=null;if(t&&o){const{cancelDrop:s}=N.current;a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===po.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=po.DragCancel)}P.current=null,(0,at.unstable_batchedUpdates)((()=>{b({type:e}),x(Vi.Uninitialized),me(null),L(null),A(null);const t=e===po.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=N.current[t];null==e||e(a),y({type:t,event:a})}}))}}(0,at.unstable_batchedUpdates)((()=>{L(a),A(e.nativeEvent)}))}),[E]),ye=(0,o.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=E.get(r);if(null!==P.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},P.current=r,be(n,t))}),[E,be]),we=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(d,ye);!function(e){(0,o.useEffect)((()=>{if(!Tr)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(d),_r((()=>{X&&O===Vi.Initializing&&x(Vi.Initialized)}),[X,O]),(0,o.useEffect)((()=>{const{onDragMove:e}=N.current,{active:t,activatorEvent:n,collisions:r,over:o}=K.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,at.unstable_batchedUpdates)((()=>{null==e||e(i),y({type:"onDragMove",event:i})}))}),[de.x,de.y]),(0,o.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=K.current;if(!e||null==P.current||!t||!o)return;const{onDragOver:i}=N.current,a=r.get(he),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,at.unstable_batchedUpdates)((()=>{me(s),null==i||i(l),y({type:"onDragOver",event:l})}))}),[he]),_r((()=>{K.current={activatorEvent:T,active:k,activeNode:B,collisionRect:pe,collisions:fe,droppableRects:U,draggableNodes:E,draggingNode:Z,draggingNodeRect:Q,droppableContainers:I,over:ve,scrollableAncestors:oe,scrollAdjustedTranslate:de},R.current={initial:Q,translated:pe}}),[k,B,fe,pe,E,Z,Q,U,I,ve,oe,de]),function(e){let{acceleration:t,activator:n=ai.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:s=5,order:l=si.TreeOrder,pointerCoordinates:u,scrollableAncestors:c,scrollableAncestorRects:d,delta:p,threshold:f}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=Xr(t);return Wr((e=>{if(n||!r||!e)return li;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[Lo.Backward]:e.x[Lo.Backward]||-1===o,[Lo.Forward]:e.x[Lo.Forward]||1===o},y:{[Lo.Backward]:e.y[Lo.Backward]||-1===i,[Lo.Forward]:e.y[Lo.Forward]||1===i}}}),[n,t,r])}({delta:p,disabled:!a}),[v,m]=function(){const e=(0,o.useRef)(null);return[(0,o.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,o.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),g=(0,o.useRef)({x:0,y:0}),b=(0,o.useRef)({x:0,y:0}),y=(0,o.useMemo)((()=>{switch(n){case ai.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ai.DraggableRect:return i}}),[n,i,u]),w=(0,o.useRef)(null),O=(0,o.useCallback)((()=>{const e=w.current;if(!e)return;const t=g.current.x*b.current.x,n=g.current.y*b.current.y;e.scrollBy(t,n)}),[]),x=(0,o.useMemo)((()=>l===si.TreeOrder?[...c].reverse():c),[l,c]);(0,o.useEffect)((()=>{if(a&&c.length&&y){for(const e of x){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),o=d[n];if(!o)continue;const{direction:i,speed:a}=Fo(e,o,y,t,f);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),w.current=e,v(O,s),g.current=a,void(b.current=i)}g.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[t,O,r,m,a,s,JSON.stringify(y),JSON.stringify(h),v,c,x,d,JSON.stringify(f)])}({...W,delta:D,draggingRect:pe,pointerCoordinates:se,scrollableAncestors:oe,scrollableAncestorRects:ie});const Oe=(0,o.useMemo)((()=>({active:k,activeNode:B,activeNodeRect:X,activatorEvent:T,collisions:fe,containerNodeRect:G,dragOverlay:J,draggableNodes:E,droppableContainers:I,droppableRects:U,over:ve,measureDroppableContainers:H,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:z,measuringScheduled:_,windowRect:re})),[k,B,X,T,fe,G,J,E,I,U,ve,H,oe,ie,z,_,re]),xe=(0,o.useMemo)((()=>({activatorEvent:T,activators:we,active:k,activeNodeRect:X,ariaDescribedById:{draggable:F},dispatch:b,draggableNodes:E,over:ve,measureDroppableContainers:H})),[T,we,k,X,b,F,E,ve,H]);return i().createElement(so.Provider,{value:w},i().createElement(Di.Provider,{value:xe},i().createElement(Ii.Provider,{value:Oe},i().createElement(Pi.Provider,{value:ge},c)),i().createElement(ki,{disabled:!1===(null==l?void 0:l.restoreFocus)})),i().createElement(co,{...l,hiddenTextDescribedById:F}))})),Ti=(0,o.createContext)(null),Ai="button",Ni="Droppable";const Fi="Droppable",ji={timeout:25};const zi=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(r,n,t):r};function Ui(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Hi(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function _i(e){return null!==e&&e>=0}const Bi=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Ui(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},$i="Sortable",Wi=i().createContext({activeIndex:-1,containerId:$i,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Bi,disabled:{draggable:!1,droppable:!1}});function Yi(e){let{children:t,id:n,items:r,strategy:a=Bi,disabled:s=!1}=e;const{active:l,dragOverlay:u,droppableRects:c,over:d,measureDroppableContainers:p}=(0,o.useContext)(Ii),f=Kr($i,n),h=Boolean(null!==u.rect),v=(0,o.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),m=null!=l,g=l?v.indexOf(l.id):-1,b=d?v.indexOf(d.id):-1,y=(0,o.useRef)(v),w=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(v,y.current),O=-1!==b&&-1===g||w,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);_r((()=>{w&&m&&p(v)}),[w,v,m,p]),(0,o.useEffect)((()=>{y.current=v}),[v]);const C=(0,o.useMemo)((()=>({activeIndex:g,containerId:f,disabled:x,disableTransforms:O,items:v,overIndex:b,useDragOverlay:h,sortedRects:Hi(v,c),strategy:a})),[g,f,x.draggable,x.droppable,O,v,b,c,h,a]);return i().createElement(Wi.Provider,{value:C},t)}const Xi=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Ui(n,r,o).indexOf(t)},Gi=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:u}=e;return!(!u||!r||s!==i&&o===a||!n&&(a===o||t!==l))},Ki={duration:200,easing:"ease"},qi="transform",Ji=to.Transition.toString({property:qi,duration:0,easing:"linear"}),Zi={roleDescription:"sortable"};function Qi(e){let{animateLayoutChanges:t=Gi,attributes:n,disabled:r,data:i,getNewIndex:a=Xi,id:s,strategy:l,resizeObserverConfig:u,transition:c=Ki}=e;const{items:d,containerId:p,activeIndex:f,disabled:h,disableTransforms:v,sortedRects:m,overIndex:g,useDragOverlay:b,strategy:y}=(0,o.useContext)(Wi),w=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,h),O=d.indexOf(s),x=(0,o.useMemo)((()=>({sortable:{containerId:p,index:O,items:d},...i})),[p,i,O,d]),C=(0,o.useMemo)((()=>d.slice(d.indexOf(s))),[d,s]),{rect:S,node:E,isOver:D,setNodeRef:I}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=Kr(Fi),{active:s,dispatch:l,over:u,measureDroppableContainers:c}=(0,o.useContext)(Di),d=(0,o.useRef)({disabled:n}),p=(0,o.useRef)(!1),f=(0,o.useRef)(null),h=(0,o.useRef)(null),{disabled:v,updateMeasurementsFor:m,timeout:g}={...ji,...i},b=$r(null!=m?m:r),y=fi({callback:(0,o.useCallback)((()=>{p.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{c(Array.isArray(b.current)?b.current:[b.current]),h.current=null}),g)):p.current=!0}),[g]),disabled:v||!s}),w=(0,o.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),p.current=!1),e&&y.observe(e))}),[y]),[O,x]=Yr(w),C=$r(t);return(0,o.useEffect)((()=>{y&&O.current&&(y.disconnect(),p.current=!1,y.observe(O.current))}),[O,y]),_r((()=>(l({type:po.RegisterDroppable,element:{id:r,key:a,disabled:n,node:O,rect:f,data:C}}),()=>l({type:po.UnregisterDroppable,key:a,id:r}))),[r]),(0,o.useEffect)((()=>{n!==d.current.disabled&&(l({type:po.SetDroppableDisabled,id:r,key:a,disabled:n}),d.current.disabled=n)}),[r,a,n,l]),{active:s,rect:f,isOver:(null==u?void 0:u.id)===r,node:O,over:u,setNodeRef:x}}({id:s,data:x,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...u}}),{active:M,activatorEvent:R,activeNodeRect:k,attributes:P,setNodeRef:V,listeners:L,isDragging:T,over:A,setActivatorNodeRef:N,transform:F}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=Kr(Ni),{activators:s,activatorEvent:l,active:u,activeNodeRect:c,ariaDescribedById:d,draggableNodes:p,over:f}=(0,o.useContext)(Di),{role:h=Ai,roleDescription:v="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==u?void 0:u.id)===t,b=(0,o.useContext)(g?Pi:Ti),[y,w]=Yr(),[O,x]=Yr(),C=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),S=$r(n);return _r((()=>(p.set(t,{id:t,key:a,node:y,activatorNode:O,data:S}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)})),[p,t]),{active:u,activatorEvent:l,activeNodeRect:c,attributes:(0,o.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!g||h!==Ai)||void 0,"aria-roledescription":v,"aria-describedby":d.draggable})),[r,h,m,g,v,d.draggable]),isDragging:g,listeners:r?void 0:C,node:y,over:f,setNodeRef:w,setActivatorNodeRef:x,transform:b}}({id:s,data:x,attributes:{...Zi,...n},disabled:w.draggable}),j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(I,V),z=Boolean(M),U=z&&!v&&_i(f)&&_i(g),H=!b&&T,_=H&&U?F:null,B=U?null!=_?_:(null!=l?l:y)({rects:m,activeNodeRect:k,activeIndex:f,overIndex:g,index:O}):null,$=_i(f)&&_i(g)?a({id:s,items:d,activeIndex:f,overIndex:g}):O,W=null==M?void 0:M.id,Y=(0,o.useRef)({activeId:W,items:d,newIndex:$,containerId:p}),X=d!==Y.current.items,G=t({active:M,containerId:p,isDragging:T,isSorting:z,id:s,index:O,items:d,newIndex:Y.current.newIndex,previousItems:Y.current.items,previousContainerId:Y.current.containerId,transition:c,wasDragging:null!=Y.current.activeId}),K=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,s]=(0,o.useState)(null),l=(0,o.useRef)(n);return _r((()=>{if(!t&&n!==l.current&&r.current){const e=i.current;if(e){const t=Eo(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==l.current&&(l.current=n)}),[t,n,r,i]),(0,o.useEffect)((()=>{a&&s(null)}),[a]),a}({disabled:!G,index:O,node:E,rect:S});return(0,o.useEffect)((()=>{z&&Y.current.newIndex!==$&&(Y.current.newIndex=$),p!==Y.current.containerId&&(Y.current.containerId=p),d!==Y.current.items&&(Y.current.items=d)}),[z,$,p,d]),(0,o.useEffect)((()=>{if(W===Y.current.activeId)return;if(W&&!Y.current.activeId)return void(Y.current.activeId=W);const e=setTimeout((()=>{Y.current.activeId=W}),50);return()=>clearTimeout(e)}),[W]),{active:M,activeIndex:f,attributes:P,data:x,rect:S,index:O,newIndex:$,items:d,isOver:D,isSorting:z,isDragging:T,listeners:L,node:E,overIndex:g,over:A,setNodeRef:j,setActivatorNodeRef:N,setDroppableNodeRef:I,setDraggableNodeRef:V,transform:null!=K?K:B,transition:K||X&&Y.current.newIndex===O?Ji:H&&!Qr(R)||!c?void 0:z||G?to.Transition.toString({...c,property:qi}):void 0}}function ea(e){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(e)}function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(this,arguments)}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ea(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ea(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e){var t=e.value,n=e.onChange,r=Pr;e.isAsync?r=kr:e.isCreatable&&(r=Ir);var i=ra({},e),a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(function(e,t){return(0,o.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}(ni,{activationConstraint:{distance:4}}));return i.isTags&&(i.isMulti=!0,i.components=ra(ra({},(null==i?void 0:i.components)||{}),{},{DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null},ClearIndicator:function(){return null},Menu:function(){return null}})),i.isMulti?(i.components=ra(ra({},(null==i?void 0:i.components)||{}),{},{MultiValue:function(e){var t=ra(ra({},e.innerProps),{},{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}}),n=Qi({id:e.data.value}),r=n.attributes,o=n.listeners,i=n.setNodeRef,a=n.transform,s=n.transition,l={transform:to.Translate.toString(a),transition:s};return wp.element.createElement("div",ta({style:l,ref:i},r,o),wp.element.createElement(wn.MultiValue,ta({},e,{innerProps:t})))}}),wp.element.createElement(Li,{modifiers:[zi],collisionDetection:bo,sensors:a,onDragEnd:function(e){var r,o,i,a=e.active,s=e.over;if(a.id!==s.id){var l=t.findIndex((function(e){return e.value===a.id})),u=t.findIndex((function(e){return e.value===s.id}));n((r=t,o=l,i=u,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(r=[...r],o,i),r))}}},wp.element.createElement(Yi,{items:t&&t.length?t.map((function(e){return e.value})):[]},wp.element.createElement(_e,null,wp.element.createElement(r,ta({menuPlacement:"auto",className:"lazyblocks-component-select",styles:Lr()},i)))))):wp.element.createElement(_e,null,wp.element.createElement(r,ta({menuPlacement:"auto",className:"lazyblocks-component-select",styles:Lr()},i)))}Wo.Down,Wo.Right,Wo.Up,Wo.Left;var aa=n(1991),sa=n.n(aa),la=["label","help","className","children"];function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(this,arguments)}function ca(e){var t=e.label,n=e.help,r=e.className,o=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,la);return wp.element.createElement("div",ua({},i,{className:sa()("lazyblocks-component-base-control",r)}),t?wp.element.createElement("div",{className:"lazyblocks-component-base-control__label"},t):null,o,n?wp.element.createElement("div",{className:"lazyblocks-component-base-control__help"},n):null)}var da=(window.lazyblocksConstructorData||window.lazyblocksGutenberg).controls,pa=void 0===da?{}:da;function fa(e){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(e)}var ha=["className"];function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fa(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.className,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,ha),i=(t=e.data.type)&&pa[t]?pa[t]:!!pa.undefined&&pa.undefined,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({label:!!i.restrictions.label_settings&&e.data.label,help:!!i.restrictions.help_settings&&e.data.help,className:sa()("lazyblocks-control lazyblocks-control-".concat(e.data.type),r),"data-lazyblocks-control-name":e.data.name},o);return a}const ba=window.wp.blockEditor,ya=window.wp.data;var wa=(window.lazyblocksConstructorData||window.lazyblocksGutenberg).allowed_mime_types;const Oa=(0,r.withNotices)((function(t){var n=t.label,o=t.value,i=t.allowedMimeTypes,a=t.noticeOperations,s=t.noticeUI,l=t.onChange,u=void 0===l?function(){}:l,c=(0,ya.useSelect)((function(e){return{mediaUpload:e("core/block-editor").getSettings().mediaUpload}})).mediaUpload,d=[];return i&&i.length?i.forEach((function(e){wa[e]&&d.push(wa[e])})):Object.keys(wa).forEach((function(e){d.push(wa[e])})),wp.element.createElement("div",{className:"lzb-gutenberg-file-wrap"},o&&Object.keys(o).length?"":wp.element.createElement(ba.MediaPlaceholder,{icon:"media-default",labels:{title:n,name:(0,e.__)("file","lazy-blocks")},onSelect:function(e){u(e)},notices:s,allowedTypes:d,disableMaxUploadErrorMessages:!0,onError:function(e){return function(e){a.removeAllNotices(),a.createErrorNotice(e)}(e)}}),o&&Object.keys(o).length?wp.element.createElement("div",{className:"lzb-gutenberg-file"},wp.element.createElement(r.DropZone,{onFilesDrop:function(e){c({allowedTypes:d,filesList:e,onFileChange:function(e){u(e[0])},onError:function(e){a.createErrorNotice(e)}})}}),wp.element.createElement("div",{className:"lzb-gutenberg-file-item",key:o.id||o.url},wp.element.createElement("div",{className:"lzb-gutenberg-file-item-icon"},wp.element.createElement("span",{className:"dashicons dashicons-media-default"})),wp.element.createElement("div",{className:"lzb-gutenberg-file-item-content"},wp.element.createElement("div",{className:"lzb-gutenberg-file-item-content-title"},o.title),wp.element.createElement("div",{className:"lzb-gutenberg-file-item-content-filename"},o.url.replace(/^.*[\\/]/,"")))),wp.element.createElement("div",{className:"lzb-gutenberg-file-button"},wp.element.createElement(r.Button,{variant:"secondary",size:"small",onClick:function(){u("")}},(0,e.__)("Remove File","lazy-blocks")))):"")}));function xa(e){return xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(e)}var Ca=(window.lazyblocksConstructorData||window.lazyblocksGutenberg).allowed_mime_types;(0,t.addFilter)("lzb.editor.control.file.render","lzb.editor",(function(e,t){return wp.element.createElement(ca,ga(t),wp.element.createElement(Oa,{label:t.data.label,allowedMimeTypes:t.data.allowed_mime_types,value:t.getValue(),onChange:function(e){var n=e?{alt:e.alt||"",title:e.title||"",caption:e.caption||"",id:e.id||"",link:e.link||"",url:e.url||""}:"";t.onChange(n)}}))})),(0,t.addFilter)("lzb.editor.control.file.getValue","lzb.editor",(function(e){if("string"==typeof e)try{e=e.includes(":")?JSON.parse(decodeURI(e)):JSON.parse(decodeURIComponent(e))}catch(t){e=[]}return e})),(0,t.addFilter)("lzb.editor.control.file.updateValue","lzb.editor",(function(e){return("object"===xa(e)||Array.isArray(e))&&(e=encodeURI(JSON.stringify(e))),e})),(0,t.addFilter)("lzb.constructor.control.file.settings","lzb.constructor",(function(t,n){var o=n.updateData,i=n.data,a=Object.keys(Ca).map((function(e){return{label:e,value:e}}));return wp.element.createElement(r.PanelBody,null,wp.element.createElement(ca,{id:"lazyblocks-control-file-mime-types",label:(0,e.__)("Allowed Mime Types","lazy-blocks"),help:(0,e.__)("If nothing selected, all file types will be allowed to use.","lazy-blocks")},wp.element.createElement(ia,{isMulti:!0,options:a,value:i.allowed_mime_types&&Array.isArray(i.allowed_mime_types)?i.allowed_mime_types.map((function(e){return{value:e,label:e}})):[],onChange:function(e){var t=[];e&&e.forEach((function(e){t.push(e.value)})),o({allowed_mime_types:t})}})))}))})()})();