Edit file File name : donationFormBlock.js Content :(()=>{var e={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 u(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 l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),g=u(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var b=f(n,v);try{l(t,v,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,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,I=n?Symbol.for("react.scope"):60119;function w(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 p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case g:case u:return e;default:return t}}case o:return t}}}function M(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return M(e)||w(e)===c},t.isConcurrentMode=M,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===I||e.$$typeof===v)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3250:(e,t,n)=>{"use strict";var r=n(9196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;void 0!==r.useSyncExternalStore&&r.useSyncExternalStore},1688:(e,t,n)=>{"use strict";n(3250)},9196:e=>{"use strict";e.exports=window.React}},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=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/donation-form","version":"1.0.0","title":"Donation Form","category":"give","icon":"superhero","description":"The GiveWP Donation Form block inserts an existing donation form into the page.","supports":{"html":false,"inserter":false},"attributes":{"formId":{"type":"string"},"blockId":{"type":"string"}},"textdomain":"give","editorStyle":"file:../../../../build/donationFormBlock.css","editorScript":"file:../../../../build/donationFormBlock.js"}'),t=window.wp.blocks;var r=n(9196),o=n.n(r);const i=window.wp.blockEditor,a=window.wp.serverSideRender;var s=n.n(a);const u=window.wp.data,l=window.wp.i18n;function c(e){return c="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},c(e)}function d(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(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 h(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}function v(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,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||h(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 b(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}var y=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I(){return I=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},I.apply(this,arguments)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function T(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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.")}()}var S=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}(),L=Math.abs,N=String.fromCharCode,x=Object.assign;function O(e){return e.trim()}function P(e,t,n){return e.replace(t,n)}function A(e,t){return e.indexOf(t)}function D(e,t){return 0|e.charCodeAt(t)}function j(e,t,n){return e.slice(t,n)}function k(e){return e.length}function R(e){return e.length}function z(e,t){return t.push(e),e}var F=1,V=1,H=0,W=0,B=0,Y="";function Z(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:F,column:V,length:a,return:""}}function U(e,t){return x(Z("",null,null,"",null,null,0),e,{length:-e.length},t)}function G(){return B=W>0?D(Y,--W):0,V--,10===B&&(V=1,F--),B}function _(){return B=W<H?D(Y,W++):0,V++,10===B&&(V=1,F++),B}function Q(){return D(Y,W)}function X(){return W}function $(e,t){return j(Y,e,t)}function K(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 J(e){return F=V=1,H=k(Y=e),W=0,[]}function q(e){return Y="",e}function ee(e){return O($(W-1,re(91===e?e+2:40===e?e+1:e)))}function te(e){for(;(B=Q())&&B<33;)_();return K(e)>2||K(B)>3?"":" "}function ne(e,t){for(;--t&&_()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return $(e,X()+(t<6&&32==Q()&&32==_()))}function re(e){for(;_();)switch(B){case e:return W;case 34:case 39:34!==e&&39!==e&&re(B);break;case 40:41===e&&re(e);break;case 92:_()}return W}function oe(e,t){for(;_()&&e+B!==57&&(e+B!==84||47!==Q()););return"/*"+$(t,W-1)+"*"+N(47===e?e:_())}function ie(e){for(;!K(Q());)_();return $(e,W)}var ae="-ms-",se="-moz-",ue="-webkit-",le="comm",ce="rule",de="decl",fe="@keyframes";function pe(e,t){for(var n="",r=R(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function me(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case de:return e.return=e.return||e.value;case le:return"";case fe:return e.return=e.value+"{"+pe(e.children,r)+"}";case ce:e.value=e.props.join(",")}return k(n=pe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ge(e){return q(he("",null,null,null,[""],e=J(e),0,[0],e))}function he(e,t,n,r,o,i,a,s,u){for(var l=0,c=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",I=o,w=i,M=r,E=y;h;)switch(m=b,b=_()){case 40:if(108!=m&&58==D(E,d-1)){-1!=A(E+=P(ee(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ee(b);break;case 9:case 10:case 13:case 32:E+=te(m);break;case 92:E+=ne(X()-1,7);continue;case 47:switch(Q()){case 42:case 47:z(be(oe(_(),X()),t,n),u);break;default:E+="/"}break;case 123*g:s[l++]=k(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+c:-1==v&&(E=P(E,/\f/g,"")),p>0&&k(E)-d&&z(p>32?ye(E+";",r,n,d-1):ye(P(E," ","")+";",r,n,d-2),u);break;case 59:E+=";";default:if(z(M=ve(E,t,n,l,c,o,s,y,I=[],w=[],d),i),123===b)if(0===c)he(E,t,M,M,I,i,d,s,w);else switch(99===f&&110===D(E,3)?100:f){case 100:case 108:case 109:case 115:he(e,M,M,r&&z(ve(e,M,M,0,0,o,s,y,o,I=[],d),w),o,w,d,s,r?I:w);break;default:he(E,M,M,M,[""],w,0,s,w)}}l=c=p=0,g=v=1,y=E="",d=a;break;case 58:d=1+k(E),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==G())continue;switch(E+=N(b),b*g){case 38:v=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(k(E)-1)*v,v=1;break;case 64:45===Q()&&(E+=ee(_())),f=Q(),c=d=k(y=E+=ie(X())),b++;break;case 45:45===m&&2==k(E)&&(g=0)}}return i}function ve(e,t,n,r,o,i,a,s,u,l,c){for(var d=o-1,f=0===o?i:[""],p=R(f),m=0,g=0,h=0;m<r;++m)for(var v=0,b=j(e,d+1,d=L(g=a[m])),y=e;v<p;++v)(y=O(g>0?f[v]+" "+b:P(b,/&\f/g,f[v])))&&(u[h++]=y);return Z(e,t,n,0===o?ce:s,u,l,c)}function be(e,t,n){return Z(e,t,n,le,N(B),j(e,2,-2),0)}function ye(e,t,n,r){return Z(e,t,n,de,j(e,0,r),j(e,r+1,-1),r)}var Ie=function(e,t,n){for(var r=0,o=0;r=o,o=Q(),38===r&&12===o&&(t[n]=1),!K(o);)_();return $(e,W)},we=new WeakMap,Me=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)||we.get(n))&&!r){we.set(e,!0);for(var o=[],i=function(e,t){return q(function(e,t){var n=-1,r=44;do{switch(K(r)){case 0:38===r&&12===Q()&&(t[n]=1),e[n]+=Ie(W-1,t,n);break;case 2:e[n]+=ee(r);break;case 4:if(44===r){e[++n]=58===Q()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=N(r)}}while(r=_());return e}(J(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},Ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ce(e,t){switch(function(e,t){return 45^D(e,0)?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}(e,t)){case 5103:return ue+"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 ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ue+e+se+e+ae+e+e;case 6828:case 4268:return ue+e+ae+e+e;case 6165:return ue+e+ae+"flex-"+e+e;case 5187:return ue+e+P(e,/(\w+).+(:[^]+)/,ue+"box-$1$2"+ae+"flex-$1$2")+e;case 5443:return ue+e+ae+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return ue+e+ae+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return ue+e+ae+P(e,"shrink","negative")+e;case 5292:return ue+e+ae+P(e,"basis","preferred-size")+e;case 6060:return ue+"box-"+P(e,"-grow","")+ue+e+ae+P(e,"grow","positive")+e;case 4554:return ue+P(e,/([^-])(transform)/g,"$1"+ue+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,ue+"$1"),/(image-set)/,ue+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,ue+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,ue+"box-pack:$3"+ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ue+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,ue+"$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(k(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+ue+"$2-$3$1"+se+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~A(e,"stretch")?Ce(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==D(e,t+1))break;case 6444:switch(D(e,k(e)-3-(~A(e,"!important")&&10))){case 107:return P(e,":",":"+ue)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ue+(45===D(e,14)?"inline-":"")+"box$3$1"+ue+"$2$3$1"+ae+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return ue+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ue+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ue+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ue+e+ae+e+e}return e}var Te=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case de:e.return=Ce(e.value,e.length);break;case fe:return pe([U(e,{value:P(e.value,"@","@"+ue)})],r);case ce: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 pe([U(e,{props:[P(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return pe([U(e,{props:[P(t,/:(plac\w+)/,":"+ue+"input-$1")]}),U(e,{props:[P(t,/:(plac\w+)/,":-moz-$1")]}),U(e,{props:[P(t,/:(plac\w+)/,ae+"input-$1")]})],r)}return""}))}}],Se=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||Te,a={},s=[];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++)a[t[n]]=!0;s.push(e)}));var u,l,c,d,f=[me,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(l=[Me,Ee].concat(i,f),c=R(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,pe(ge(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new S({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return m.sheet.hydrate(s),m},Le=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ne={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 xe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Oe=/[A-Z]|^ms/g,Pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ae=function(e){return 45===e.charCodeAt(1)},De=function(e){return null!=e&&"boolean"!=typeof e},je=xe((function(e){return Ae(e)?e:e.replace(Oe,"-$&").toLowerCase()})),ke=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Pe,(function(e,t,n){return ze={name:t,styles:n,next:ze},t}))}return 1===Ne[e]||Ae(e)||"number"!=typeof t||0===t?t:t+"px"};function Re(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 ze={name:n.name,styles:n.styles,next:ze},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ze={name:r.name,styles:r.styles,next:ze},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+=Re(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]+"}":De(a)&&(r+=je(i)+":"+ke(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Re(e,t,a);switch(i){case"animation":case"animationName":r+=je(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)De(a[u])&&(r+=je(i)+":"+ke(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ze,i=n(e);return ze=o,Re(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ze,Fe=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ve=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="";ze=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Re(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Re(n,t,e[a]),r&&(o+=i[a]);Fe.lastIndex=0;for(var s,u="";null!==(s=Fe.exec(o));)u+="-"+s[1];var l=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)+u;return{name:l,styles:o,next:ze}},He={}.hasOwnProperty,We=(0,r.createContext)("undefined"!=typeof HTMLElement?Se({key:"css"}):null);We.Provider;var Be=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(We);return e(t,o,n)}))},Ye=(0,r.createContext)({}),Ze=r.useInsertionEffect?r.useInsertionEffect:function(e){e()},Ue="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ge=function(e){var t,n=e.cache,r=e.serialized,o=e.isStringTag;return Le(n,r,o),t=function(){return function(e,t,n){Le(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)}}(n,r,o)},Ze(t),null},_e=Be((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Ue],a=[o],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 u=Ve(a,void 0,(0,r.useContext)(Ye));s+=t.key+"-"+u.name;var l={};for(var c in e)He.call(e,c)&&"css"!==c&&c!==Ue&&(l[c]=e[c]);return l.ref=n,l.className=s,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Ge,{cache:t,serialized:u,isStringTag:"string"==typeof i}),(0,r.createElement)(i,l))}));n(8679);var Qe=function(e,t){var n=arguments;if(null==t||!He.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=_e,i[1]=function(e,t){var n={};for(var r in t)He.call(t,r)&&(n[r]=t[r]);return n[Ue]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ve(t)}r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect;const $e=window.ReactDOM,Ke=Math.min,Je=Math.max,qe=Math.round,et=Math.floor,tt=e=>({x:e,y:e});function nt(e){return it(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ot(e){var t;return null==(t=(it(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function it(e){return e instanceof Node||e instanceof rt(e).Node}function at(e){return e instanceof Element||e instanceof rt(e).Element}function st(e){return e instanceof HTMLElement||e instanceof rt(e).HTMLElement}function ut(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot)}function lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ct(e){return rt(e).getComputedStyle(e)}function dt(e){const t=function(e){if("html"===nt(e))return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||ot(e);return ut(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(nt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&<(t)?t:dt(t)}function ft(e,t){var n;void 0===t&&(t=[]);const r=dt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=rt(r);return o?t.concat(i,i.visualViewport||[],lt(r)?r:[]):t.concat(r,ft(r))}function pt(e){return at(e)?e:e.contextElement}function mt(e){const t=pt(e);if(!st(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=st(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=qe(n)!==i||qe(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?qe(n.width):n.width)/r,s=(i?qe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const gt=tt(0);function ht(e){const t=rt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:gt}function vt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=pt(e);let a=tt(1);t&&(r?at(r)&&(a=mt(r)):a=mt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==rt(e))&&t}(i,n,r)?ht(i):tt(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=rt(i),t=r&&at(r)?rt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=mt(n),t=n.getBoundingClientRect(),r=ct(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,d*=e.y,u+=o,l+=i,n=rt(n).frameElement}}return f={width:c,height:d,x:u,y:l},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}const bt=r.useLayoutEffect;var yt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],It=function(){};function wt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Mt(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(wt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Et=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===c(e)&&null!==e?[e]:[];var t},Ct=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,m({},b(e,yt))},Tt=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 St(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lt(e){return St(e)?window.pageYOffset:e.scrollTop}function Nt(e,t){St(e)?window.scrollTo(0,t):e.scrollTop=t}function xt(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=Lt(e),i=t-o,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Nt(e,u),a<n?window.requestAnimationFrame(t):r(e)}()}function Ot(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Nt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Nt(e,Math.max(t.offsetTop-o,0))}function Pt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var At=!1,Dt={get passive(){return At=!0}},jt="undefined"!=typeof window?window:{};jt.addEventListener&&jt.removeEventListener&&(jt.addEventListener("p",It,Dt),jt.removeEventListener("p",It,!1));var kt=At;function Rt(e){return null!=e}function zt(e,t,n){return e?t:n}var Ft=["children","innerProps"],Vt=["children","innerProps"];var Ht,Wt,Bt,Yt=function(e){return"auto"===e?"bottom":e},Zt=(0,r.createContext)(null),Ut=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,l=((0,r.useContext)(Zt)||{}).setPortalPlacement,c=(0,r.useRef)(null),d=v((0,r.useState)(o),2),f=d[0],p=d[1],g=v((0,r.useState)(null),2),h=g[0],b=g[1],y=u.spacing.controlHeight;return bt((function(){var e=c.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=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),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,g=f.top,h=n.offsetParent.getBoundingClientRect().top,v=a||St(c=u)?window.innerHeight:c.clientHeight,b=Lt(u),y=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),w=h-I,M=v-g,E=w+b,C=d-b-g,T=p-v+b+y,S=b+g-I,L=160;switch(o){case"auto":case"bottom":if(M>=m)return{placement:"bottom",maxHeight:t};if(C>=m&&!a)return i&&xt(u,T,L),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&M>=r)return i&&xt(u,T,L),{placement:"bottom",maxHeight:a?M-y:C-y};if("auto"===o||a){var N=t,x=a?w:E;return x>=r&&(N=Math.min(x-y-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return i&&Nt(u,T),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(E>=m&&!a)return i&&xt(u,S,L),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&w>=r){var O=t;return(!a&&E>=r||a&&w>=r)&&(O=a?w-I:E-I),i&&xt(u,S,L),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});p(r.maxHeight),b(r.placement),null==l||l(r.placement)}}),[o,i,a,s,n,l,y]),t({ref:c,placerProps:m(m({},e),{},{placement:h||Yt(i),maxHeight:f})})},Gt=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return m({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},_t=Gt,Qt=Gt,Xt=["size"],$t=["innerProps","isRtl","size"],Kt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Jt=function(e){var t=e.size,n=b(e,Xt);return Qe("svg",I({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Kt},n))},qt=function(e){return Qe(Jt,I({size:20},e),Qe("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"}))},en=function(e){return Qe(Jt,I({size:20},e),Qe("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"}))},tn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return m({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},nn=tn,rn=tn,on=function(){var e=Xe.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_"}}}(Ht||(Wt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Bt||(Bt=Wt.slice(0)),Ht=Object.freeze(Object.defineProperties(Wt,{raw:{value:Object.freeze(Bt)}})))),an=function(e){var t=e.delay,n=e.offset;return Qe("span",{css:Xe({animation:"".concat(on," 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"},"","")})},sn=["data"],un=["innerRef","isDisabled","isHidden","inputClassName"],ln={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},cn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":m({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ln)},dn=function(e){return m({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ln)},fn=function(e){var t=e.children,n=e.innerProps;return Qe("div",n,t)},pn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Qe("div",I({},Tt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Qe(qt,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Qe("div",I({ref:o},Tt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Qe("div",I({},Tt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Qe(en,null))},DownChevron:en,CrossIcon:qt,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,u=e.label,l=e.theme,c=e.selectProps;return Qe("div",I({},Tt(e,"group",{group:!0}),s),Qe(i,I({},a,{selectProps:c,theme:l,getStyles:r,getClassNames:o,cx:n}),u),Qe("div",null,t))},GroupHeading:function(e){var t=Ct(e);t.data;var n=b(t,sn);return Qe("div",I({},Tt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Qe("div",I({},Tt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Qe("span",I({},t,Tt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ct(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=b(r,un);return Qe("div",I({},Tt(e,"input",{"input-container":!0}),{"data-value":n||""}),Qe("input",I({className:t({input:!0},s),ref:o,style:dn(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=b(e,$t);return Qe("div",I({},Tt(m(m({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Qe(an,{delay:0,offset:n}),Qe(an,{delay:160,offset:!0}),Qe(an,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Qe("div",I({},Tt(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 Qe("div",I({},Tt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,u=(0,r.useRef)(null),l=(0,r.useRef)(null),c=v((0,r.useState)(Yt(a)),2),d=c[0],f=c[1],p=(0,r.useMemo)((function(){return{setPortalPlacement:f}}),[]),g=v((0,r.useState)(null),2),h=g[0],b=g[1],y=(0,r.useCallback)((function(){if(o){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}}(o),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||b({offset:n,rect:e})}}),[o,s,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);bt((function(){y()}),[y]);var w=(0,r.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&u.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=pt(e),c=o||i?[...l?ft(l):[],...ft(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,r=null;const o=ot(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-et(c)+"px "+-et(o.clientWidth-(l+d))+"px "+-et(o.clientHeight-(c+f))+"px "+-et(l)+"px",threshold:Je(0,Ke(1,u))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(l,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),l&&!u&&m.observe(l),m.observe(t));let g=u?vt(e):null;return u&&function t(){const r=vt(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,f=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,u&&cancelAnimationFrame(f)}}(o,u.current,y,{elementResize:"ResizeObserver"in window}))}),[o,y]);bt((function(){w()}),[w]);var M=(0,r.useCallback)((function(e){u.current=e,w()}),[w]);if(!t&&"fixed"!==s||!h)return null;var E=Qe("div",I({ref:M},Tt(m(m({},e),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Qe(Zt.Provider,{value:p},t?(0,$e.createPortal)(E,t):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=b(e,Vt);return Qe("div",I({},Tt(m(m({},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=b(e,Ft);return Qe("div",I({},Tt(m(m({},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,u=n.Container,l=n.Label,c=n.Remove;return Qe(u,{data:r,innerProps:m(m({},Tt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Qe(l,{data:r,innerProps:m({},Tt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Qe(c,{data:r,innerProps:m(m({},Tt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:fn,MultiValueLabel:fn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Qe("div",I({role:"button"},n),t||Qe(qt,{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 Qe("div",I({},Tt(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 Qe("div",I({},Tt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Qe("div",I({},Tt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Qe("div",I({},Tt(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 Qe("div",I({},Tt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},mn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||mn(r)&&mn(o)))return!1;var r,o;return!0}for(var hn={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"},vn=function(e){return Qe("span",I({css:hn},e))},bn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".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,u=e.isSelected,l=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(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},yn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,l=e.id,c=u.ariaLiveMessages,d=u.getOptionLabel,f=u.inputValue,p=u.isMulti,g=u.isOptionDisabled,h=u.isSearchable,v=u.menuIsOpen,b=u.options,y=u.screenReaderStatus,I=u.tabSelectsValue,w=u["aria-label"],M=u["aria-live"],E=(0,r.useMemo)((function(){return m(m({},bn),c||{})}),[c]),C=(0,r.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,u=t.value,l=i||r||(e=u,Array.isArray(e)?null:e),c=l?d(l):"",f=o||a||void 0,p=f?f.map(d):[],h=m({isDisabled:l&&g(l,s),label:c,labels:p},t);n=E.onChange(h)}return n}),[t,E,g,s,d]),T=(0,r.useMemo)((function(){var e="",t=n||o,r=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var a={focused:t,label:d(t),isDisabled:g(t,s),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:s};e=E.onFocus(a)}return e}),[n,o,d,g,E,i,s]),S=(0,r.useMemo)((function(){var e="";if(v&&b.length&&E.onFilter){var t=y({count:i.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,v,E,b,y]),L=(0,r.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":v?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:n&&g(n,s),isMulti:p,isSearchable:h,tabSelectsValue:I})}return e}),[w,n,o,p,g,h,v,E,s,I]),N="".concat(T," ").concat(S," ").concat(L),x=Qe(r.Fragment,null,Qe("span",{id:"aria-selection"},C),Qe("span",{id:"aria-context"},N)),O="initial-input-focus"===(null==t?void 0:t.action);return Qe(r.Fragment,null,Qe(vn,{id:l},O&&x),Qe(vn,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text"},a&&!O&&x))},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źẑżžẓẕƶȥɀⱬꝣ"}],wn=new RegExp("["+In.map((function(e){return e.letters})).join("")+"]","g"),Mn={},En=0;En<In.length;En++)for(var Cn=In[En],Tn=0;Tn<Cn.letters.length;Tn++)Mn[Cn.letters[Tn]]=Cn.base;var Sn=function(e){return e.replace(wn,(function(e){return Mn[e]}))},Ln=function(e,t){void 0===t&&(t=gn);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}(Sn),Nn=function(e){return e.replace(/^\s+|\s+$/g,"")},xn=function(e){return"".concat(e.label," ").concat(e.value)},On=["innerRef"];function Pn(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=v(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=v(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(b(e,On),"onExited","in","enter","exit","appear");return Qe("input",I({ref:t},n,{css:Xe({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 An=["boxSizing","height","overflow","paddingRight","position"],Dn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jn(e){e.preventDefault()}function kn(e){e.stopPropagation()}function Rn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function zn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fn=!("undefined"==typeof window||!window.document||!window.document.createElement),Vn=0,Hn={capture:!1,passive:!1},Wn=function(){return document.activeElement&&document.activeElement.blur()},Bn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,r.useRef)(!1),u=(0,r.useRef)(!1),l=(0,r.useRef)(0),c=(0,r.useRef)(null),d=(0,r.useCallback)((function(e,t){if(null!==c.current){var r=c.current,l=r.scrollTop,d=r.scrollHeight,f=r.clientHeight,p=c.current,m=t>0,g=d-f-l,h=!1;g>t&&s.current&&(o&&o(e),s.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>g?(n&&!s.current&&n(e),p.scrollTop=d,h=!0,s.current=!0):!m&&-t>l&&(i&&!u.current&&i(e),p.scrollTop=0,h=!0,u.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,i,a]),f=(0,r.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,r.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,r.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,r.useCallback)((function(e){if(e){var t=!!kt&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}}),[m,p,f]),h=(0,r.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))}),[m,p,f]);return(0,r.useEffect)((function(){if(t){var e=c.current;return g(e),function(){h(e)}}}),[t,g,h]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=(0,r.useRef)({}),a=(0,r.useRef)(null),s=(0,r.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;if(o&&An.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&Vn<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(Dn).forEach((function(e){var t=Dn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&zn()&&(t.addEventListener("touchmove",jn,Hn),e&&(e.addEventListener("touchstart",Rn,Hn),e.addEventListener("touchmove",kn,Hn))),Vn+=1}}),[o]),u=(0,r.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;Vn=Math.max(Vn-1,0),o&&Vn<1&&An.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&zn()&&(t.removeEventListener("touchmove",jn,Hn),e&&(e.removeEventListener("touchstart",Rn,Hn),e.removeEventListener("touchmove",kn,Hn)))}}),[o]);return(0,r.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return Qe(r.Fragment,null,n&&Qe("div",{onClick:Wn,css:Bn}),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%"},Un=function(e){var t=e.name,n=e.onFocus;return Qe("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Zn,value:"",onChange:function(){}})},Gn={clearIndicator:rn,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 m({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:nn,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 m({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 m({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 m(m({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},cn),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 m({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:Qt,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return m((f(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),f(n,"position","absolute"),f(n,"width","100%"),f(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 m({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 m({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 m({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 m({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:_t,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return m({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 m({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 m({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 m({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")})}},Qn={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}},Xn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Pt(),captureMenuScroll:!Pt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=m({ignoreCase:!0,ignoreAccents:!0,stringify:xn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?Nn(t):t,l=a?Nn(i(e)):i(e);return r&&(u=u.toLowerCase(),l=l.toLowerCase()),o&&(u=Ln(u),l=Sn(l)),"start"===s?l.substr(0,u.length)===u:l.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},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 $n(e,t,n,r){return{type:"option",data:t,isDisabled:nr(e,t,n),isSelected:rr(e,t,n),label:er(e,t),value:tr(e,t),index:r}}function Kn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return $n(e,n,t,r)})).filter((function(t){return qn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=$n(e,n,t,r);return qn(e,i)?i:void 0})).filter(Rt)}function Jn(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,T(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function qn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!ir(e)||!i)&&or(e,{label:a,value:s,data:o},r)}var er=function(e,t){return e.getOptionLabel(t)},tr=function(e,t){return e.getOptionValue(t)};function nr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function rr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tr(e,t);return n.some((function(t){return tr(e,t)===r}))}function or(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ir=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ar=1,sr=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&&M(e,t)}(u,e);var t,n,o,i,a,s=(t=u,n=C(),function(){var e,r=E(t);if(n){var o=E(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(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,e)});function u(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,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),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(T(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=zt(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(zt(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=zt(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},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 Mt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return er(t.props,e)},t.getOptionValue=function(e){return tr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Gn[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.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,m(m({},pn),e.components);var e},t.buildCategorizedOptions=function(){return Kn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Jn(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:m({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&&St(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){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return ir(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,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,g=p.focusedValue,h=p.selectValue;if(!(u||"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(g)t.removeValue(g);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!m||f&&t.isOptionSelected(m,h))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++ar),t.state.selectValue=Et(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return o=u,i=[{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&&Ot(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&&(Ot(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]},(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})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Qn):m(m({},Qn),this.props.theme):Qn}},{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,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:l,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 nr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return rr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return or(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,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,u=e.menuIsOpen,l=e.required,c=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,g=this.commonProps,h=o||this.getElementId("input"),v=m(m(m({"aria-autocomplete":"list","aria-expanded":u,"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":l,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(c,I({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},v)):r.createElement(Pn,I({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:It,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,p=c.isMulti,m=c.inputValue,g=c.placeholder,h=this.state,v=h.selectValue,b=h.focusedValue,y=h.isFocused;if(!this.hasValue()||!d)return m?null:r.createElement(u,I({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),g);if(p)return v.map((function(t,s){var u=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,I({},l,{components:{Container:o,Label:i,Remove:a},isFocused:u,isDisabled:f,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(m)return null;var w=v[0];return r.createElement(s,I({},l,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,I({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?r.createElement(e,I({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,I({},o,{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,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,I({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,g=p.inputValue,h=p.isLoading,v=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,w=p.menuIsOpen,M=p.menuPlacement,E=p.menuPosition,C=p.menuPortalTarget,T=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,L=p.noOptionsMessage,N=p.onMenuScrollToTop,x=p.onMenuScrollToBottom;if(!w)return null;var O,P=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,u=t.label,l=t.value,p=f===i,m=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},h="".concat(e.getElementId("option"),"-").concat(n),v={id:h,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return r.createElement(c,I({},d,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:h,label:u,type:o,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),l="".concat(u,"-heading");return r.createElement(n,I({},d,{key:u,data:i,options:a,Heading:o,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(h){var A=v({inputValue:g});if(null===A)return null;O=r.createElement(u,d,A)}else{var D=L({inputValue:g});if(null===D)return null;O=r.createElement(l,d,D)}var j={minMenuHeight:b,maxMenuHeight:y,menuPlacement:M,menuPosition:E,menuShouldScrollIntoView:S},k=r.createElement(Ut,I({},d,j),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,u=o.maxHeight;return r.createElement(i,I({},d,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:s}),r.createElement(Yn,{captureEnabled:m,onTopArrive:N,onBottomArrive:x,lockEnabled:T},(function(t){return r.createElement(a,I({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:u,focusedOption:f}),O)})))}));return C||"fixed"===E?r.createElement(s,I({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:M,menuPosition:E}),k):k}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(Un,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return r.createElement(yn,I({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(o,I({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),r.createElement(t,I({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),r.createElement(i,I({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,I({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],a=[{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,u=e.options,l=e.value,c=e.menuIsOpen,d=e.inputValue,f=e.isMulti,p=Et(l),g={};if(n&&(l!==n.value||u!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var h=c?function(e,t){return Jn(Kn(e,t))}(e,p):[],v=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,p):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);g={selectValue:p,focusedOption:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,w=a&&s;return a&&!w&&(I={value:zt(f,p,p[0]||null),options:p,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),m(m(m({},g),y),{},{prevProps:e,ariaSelection:I,prevWasFocused:w})}}],i&&w(o.prototype,i),a&&w(o,a),Object.defineProperty(o,"prototype",{writable:!1}),u}(r.Component);sr.defaultProps=Xn;var ur=(0,r.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,s=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,g=e.value,h=b(e,y),I=v((0,r.useState)(void 0!==u?u:n),2),w=I[0],M=I[1],E=v((0,r.useState)(void 0!==l?l:i),2),C=E[0],T=E[1],S=v((0,r.useState)(void 0!==g?g:s),2),L=S[0],N=S[1],x=(0,r.useCallback)((function(e,t){"function"==typeof c&&c(e,t),N(e)}),[c]),O=(0,r.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),M(void 0!==n?n:e)}),[d]),P=(0,r.useCallback)((function(){"function"==typeof p&&p(),T(!0)}),[p]),A=(0,r.useCallback)((function(){"function"==typeof f&&f(),T(!1)}),[f]),D=void 0!==u?u:w,j=void 0!==l?l:C,k=void 0!==g?g:L;return m(m({},h),{},{inputValue:D,menuIsOpen:j,onChange:x,onInputChange:O,onMenuClose:A,onMenuOpen:P,value:k})}(e);return r.createElement(sr,I({ref:t},n))})),lr=ur;const cr={input:(e,t)=>({...e,height:"3rem"}),option:(e,t)=>({...e,paddingTop:"0.8rem",paddingBottom:"0.8rem",fontSize:"1rem"}),control:(e,t)=>({...e,fontSize:"1rem"})},dr=e=>({...e,colors:{...e.colors,primary:"#27ae60"}});function fr({formOptions:e,isResolving:t,handleSelect:n}){const[o,i]=(0,r.useState)(null),a=e.find((e=>e.value===o)),{isSaving:s,isDisabled:c}={isSaving:(0,u.useSelect)((e=>e("core/editor").isSavingPost()),[]),isDisabled:(0,u.useSelect)((e=>!e("core/editor").isEditedPostSaveable()),[])};return(0,r.createElement)("div",{className:"givewp-donation-form-selector"},(0,r.createElement)("img",{className:"givewp-donation-form-selector__logo",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjQ5IiB2aWV3Qm94PSIwIDAgMTQ4IDQ5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNDAuOTQ3IDI0LjcyaC41NDNzNi40MDEuMTExIDYuNTEgOC40OThjMCA4LjA1Ny03LjkyMSAxNC45LTE3LjI1MiAxNC45LTEuNTE5IDAtMTQuMTA2LS40NDItMTUuMDgyLTE1Ljc4Mi0yLjQ5Ni0uMTEtNi43MjgtLjU1Mi0xMC4zMDgtMi4wOTctMy41ODEgOC45MzktOS4xMTUgMTYuMDAyLTEyLjQ3OCAxNi4wMDItMy4zNjQgMC02LjE4NS00LjQxNC04LjQ2NC0xMi45MTJsLS4yMTctLjg4M0M3OS44NiAzOS45NSA3My44OTEgNDYuMTMgNzAuOTYyIDQ2LjEzYy0zLjQ3MiAwLTcuNzA0LTQuMDg0LTcuNzA0LTcuOTQ2IDAtMy44NjMgMS4xOTQtMTMuMTMzIDEuMTk0LTEzLjEzM3MtMy4xNDcuNjYyLTcuNzA0IDEuMzI0QzU1Ljg4IDMwLjc5MSA1MS4xMDYgNDkgMzIuNDQzIDQ5IDEwLjE5OSA0OSAwIDI0LjUgMCAyNC41YzIuNDY4LTEuNTUgNS41MzItNC44MDUgOC45NjItOC40NTFDMTUuNzg3IDguNzk3IDI0LjA2NiAwIDMyLjAxIDBjMTEuOTM1IDAgMTYuMTY3IDE1LjAwOSAxNi4xNjcgMTUuMDA5bC0uOTc3IDEuNjU1cy0zLjkwNi01LjA3Ni0xMi45MTItNS4wNzZjLTYuODc5IDAtMTIuMDg5IDYuMjg3LTE1Ljg2NCAxMC44NDEtMS4yMjYgMS40OC0yLjMwMSAyLjc3Ny0zLjIzMiAzLjYxNiAwIDAgOS40NCAxNS4xMiAyMS43IDE1LjEyIDYuNTEgMCAxMy41NjQtNS43NCAxNy41NzgtMTQuNDU4LTYuOTQ0Ljk5NC0xNi4wNTggMS44NzYtMjIuNDYgMS4xMDQgMCAwLS4zMjYtLjMzMS0uNDM0LS42NjItLjIxNy0uNDQyLS4yMTctLjg4My0uMjE3LS44ODMgMjIuNjc3IDAgMzkuNzEyLTkuNjAyIDQxLjIzMS0xMC41OTUuMTA5LS4xMS4yMTctLjExLjMyNi0uMTEgMS40NjEuMzU5LjcgNS40My0uMTAxIDEwLjc2LS45MjMgNi4xNDYtMS44OTggMTIuNjM2LjQyNyAxMi42MzYgMi4zODcgMCA3LjE2LTcuNTA0IDkuODczLTEyLjAzLS45NC00Ljg1NS0xLjg4LTkuNDE2LTIuNDAzLTExLjk1YTk5Ljc5NCA5OS43OTQgMCAwIDEtLjQxOC0yLjA2NXYtLjMzbC4yMTctLjExMWMuMTA5LS4xMSA0Ljc3NC0xLjk4NyA3LjcwNC0xLjk4NyAyLjE3IDAgMy40NzIgMS4yMTQgMy40NzIgMy4zMTEgMCAxLjMyNC0uNjUgNC4wODMtMS44NDQgNy4zOTQuNzM4IDcuMDM4IDMuMjAxIDEzLjU5NiA0LjM5IDE2Ljc2LjIwOS41NTcuMzc5IDEuMDA5LjQ5MiAxLjM0bC4wMjgtLjAzNGMxLjIyMi0xLjQ2OCA0Ljg3MS01Ljg1NSA3LjAyNS0xMS4wMDMtMi40OTYtMS45ODYtMy42ODktNC43NDUtMy42ODktOC4wNTYgMC01LjUxOCAzLjAzOC04LjM4NyA1Ljk2OC04LjM4NyAyLjA2MSAwIDQuMjMxIDEuNDM0IDQuMjMxIDQuNjM1IDAgMi4zMTctLjMyNSA0Ljg1NS0uOTc2IDcuNjE1IDEuNzM2IDEuNjU1IDQuNTU3IDMuNDIgOC4zNTUgMy41MzEuNzU5LTcuOTQ2IDQuNTU3LTE5LjMxMyAxMi4wNDQtMTkuMzEzIDcuOTIgMCA5LjExNCA2LjczMiA5LjExNCAxMC44MTUgMCA1LjYyOS00Ljk5MSAxMC40ODUtMTIuNjk1IDEyLjM2LjIxNyA2LjQwMiAxLjk1MyAxMi4wMyA2LjYxOSAxMi4wMyAyLjkyOSAwIDUuMzE3LTEuMjE0IDcuMTYxLTMuNTMyIDMuMjU1LTMuOTczIDQuMDE1LTEwLjM3MyAzLjE0Ny0xNC42NzhsLS4xMDktLjU1MXptLTE2LjYwMSAxLjIxNWM1LjY0Mi0yLjUzOSA1Ljc1MS03LjUwNSA1Ljc1MS03LjYxNSAwLTMuMi0xLjMwMi01LjA3Ny0yLjQ5Ni01LjE4Ny0xLjA4NSAwLTIuNzEyIDYuMDctMy4yNTUgMTIuODAyeiIgZmlsbD0iIzY2QkI2QSIvPgogICAgPHBhdGggZD0iTTY0Ljk5NCAxMi4yNWMwIC4yMi4xMDguMzMxLjMyNS40NDEgNC40NDkuNjYzIDcuMzc5LS43NzIgNy4zNzktOC4wNTYgMC02Ljg0Mi02Ljk0NS0xLjQzNC04LjI0Ny0uNDQxLS4xMDguMTEtLjEwOC4yMi0uMTA4LjQ0MSAxLjE5MyAyLjY0OS44NjggNi41MTEuNjUgNy42MTV6IiBmaWxsPSIjNjZCQjZBIi8+CiAgICA8bWFzayBpZD0idnl2ZWp5cm4xYSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTE1IiB5PSIzMSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIj4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExOS44OTggMzIuMjI3Yy0yLjE3LjIyLTQuMjMyLjExLTQuMjMyLjExLjMyNiA0LjQxNSAxLjQ1OCA3LjM5MSAzLjA4NiA5LjcwOWw3LjkyLS42NjNjLTEuNjgxLTIuMjM0LTIuMzg1LTUuNTgtMi41NDMtOS45MyAwIDAtMi4xNy41NTMtNC4yMzEuNzc0eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCN2eXZlanlybjFhKSI+CiAgICAgICAgPHBhdGggZD0ibTEyNy44MTggNDEuOTM3LTEuMzAyLTExLjgwOS0xMi4wNDQgMS40MzUgMS4zMDIgMTEuODA5IDEyLjA0NC0xLjQzNXoiIGZpbGw9InVybCgjZHJvcHkwdmMyYikiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJuZ3FpN2JtNzNjIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTUiIHk9IjE3IiB3aWR0aD0iMTEiIGhlaWdodD0iMTEiPgogICAgICAgIDxwYXRoIGQ9Ik0xMjQuMzQ3IDI1LjkzN2MtMS42NzkgMS4wNS02Ljg5MSAxLjc5Ni04LjY4MSAxLjY1My4yNjMtMi40NzYuNzg3LTUuODk2IDIuMTctOS42MDEgMS4wNTYtLjI1NCA1Ljg2LS4yNjIgNy4zMTYgMS44MzJhNTYuODgxIDU2Ljg4MSAwIDAgMC0uODA1IDYuMTE2eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNuZ3FpN2JtNzNjKSI+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNveHA5dzBhbzVkKSIgZD0iTTExNS41NTggMTcuODczaDkuNTk0djkuNzM1aC05LjU5NHoiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJueW9nNWZtbWllIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI3NiIgeT0iMjYiIHdpZHRoPSI5IiBoZWlnaHQ9IjE1Ij4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTc2LjQ0MyAzNi42NDRjLjU0MyAxLjMyNCAxLjEzIDIuODYxIDEuNzggNC4xODYgMS4wNjktMS4yNTUgMi4yNDMtMi42NiAzLjYyOS00LjY5LjgxNy0xLjE5OCAxLjY2OC0yLjU3OCAyLjM0OC0zLjY5NGwtMS4wODEtNS41MjNjLTEuNzM4IDMuMDA0LTQuNjkyIDcuNTctNi42NzYgOS43MnoiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjbnlvZzVmbW1pZSkiPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xNDcgNDMuMjYxIDg4LjMyMyAzOS40bC00Ljg4My0xNC45LTExLjE3NiAzLjg2NCA0Ljg4MyAxNC44OTh6IiBmaWxsPSJ1cmwoI2RpanZpNDZ6aGYpIi8+CiAgICA8L2c+CiAgICA8bWFzayBpZD0iN21pY25seDg4ZyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOTYiIHk9IjI4IiB3aWR0aD0iMTAiIGhlaWdodD0iMTMiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTYuNjc4IDM2Ljg1NWMuNzYgMS4xMDQgMi4xNyAyLjU0NCAzLjE0NiAzLjY0N2E0My44OTMgNDMuODkzIDAgMCAwIDIuNDY1LTMuODg4IDU5LjQxNCA1OS40MTQgMCAwIDAgMy4wNjktNi4zNzVzLTEuMDY4LS4zOC0xLjk0MS0uODkzYy0uODczLS41MTQtMS42MzYtMS4wOTEtMS42MzYtMS4wOTEtMS41MzQgMy41NzgtMy41MjcgNi41NC01LjEwMyA4LjZ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzdtaWNubHg4OGcpIj4KICAgICAgICA8cGF0aCBkPSJtMTAzLjI5NiA0NC4yNTUgNy4yNy0xMy4xMzMtMTEuNzE5LTYuNzMyLTcuMjcgMTMuMDIyIDExLjcxOSA2Ljg0M3oiIGZpbGw9InVybCgjcjNlMTJsd2NwaCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSIyemx4Mm1oaTVpIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI4OCIgeT0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjkiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODguODY1IDE0LjM0N3MuMTA5IDEuOTg2Ljk3NyA2Ljg0MmMxLjE5My0zLjQyMSAxLjgzNC02LjA0OCAxLjgzNC03LjM3MnYtLjMzMmwtMi44MS44NjJ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzJ6bHgybWhpNWkpIj4KICAgICAgICA8cGF0aCBkPSJtODkuNjI1IDEyLjE0LTQuMjMyIDYuODQyIDUuNTM0IDMuNDIxIDQuMjMxLTYuODQyLTUuNTMzLTMuNDIxeiIgZmlsbD0idXJsKCN6OWJobXhidjVqKSIvPgogICAgPC9nPgogICAgPG1hc2sgaWQ9Imdwdm5pNG5tMmsiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEwNCIgeT0iMTciIHdpZHRoPSI1IiBoZWlnaHQ9IjgiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTA0LjkyMiAxOC44NzNzLS43NiAyLjMxOCAyLjM4NyA1LjE4N2MuNTQyLTIuMzE3Ljg0Ni00LjUyMi45Ni02LjYxN2wtMy4zNDcgMS40M3oiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjZ3B2bmk0bm0yaykiPgogICAgICAgIDxwYXRoIGQ9Im0xMDQuNDg5IDE2LjIyMy0xLjg0NCA3LjI4NCA1LjQyNSAxLjQzNCAxLjk1My03LjE3My01LjUzNC0xLjU0NXoiIGZpbGw9InVybCgjYzU1emR6a3ZqbCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJkMXRvZ2IwY3NtIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI0NiIgeT0iMjYiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxNCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NC40NjcgMjYuNzA3Yy0yLjAxNCA0LjM5Ny00LjYxNiA3LjgyLTcuNzYgMTAuNDI0bDQuNjE5IDIuMTNjMi40NDEtMy40ODQgMy42NzktNi43MTcgNC41NTQtOS40NjRsLjQ2NC0xLjY2Ny40MDctMS43Ni0yLjI4NC4zMzd6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoI2QxdG9nYjBjc20pIj4KICAgICAgICA8cGF0aCBkPSJtNDcuNTggMjcuMDE4IDkuNjI5LS44NjMtLjQ3NSAxMy40MTYtMTAuMTg2LS4zOTMgMS4wMzEtMTIuMTZ6IiBmaWxsPSJ1cmwoI3RhcHl2eG5kc24pIi8+CiAgICA8L2c+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImRyb3B5MHZjMmIiIHgxPSIxMjUuNTQ1IiB5MT0iMzkuOTY1IiB4Mj0iMTI0LjY4NSIgeTI9IjMyLjA3NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJveHA5dzBhbzVkIiB4MT0iMTE2LjQxNSIgeTE9IjIzLjY3OSIgeDI9IjExNi40MTUiIHkyPSIzMS44MzQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iZGlqdmk0NnpoZiIgeDE9Ijc4LjExMyIgeTE9IjM5LjIyMSIgeDI9Ijg1LjUzOSIgeTI9IjM3LjM3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJyM2UxMmx3Y3BoIiB4MT0iMTAzLjE0OCIgeTE9IjM5LjIzNCIgeDI9IjEwNy42NTYiIHkyPSIzMS44NjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iejliaG14YnY1aiIgeDE9Ijg5LjcxMSIgeTE9IjE1Ljk5MiIgeDI9Ijg4LjQwNiIgeTI9IjE3LjkwNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJjNTV6ZHprdmpsIiB4MT0iMTA1LjI0OCIgeTE9IjIwLjAzOCIgeDI9IjEwNC4zMiIgeTI9IjIyLjYwOCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJ0YXB5dnhuZHNuIiB4MT0iNTUuNTUxIiB5MT0iMzYuNjczIiB4Mj0iNTUuNTUxIiB5Mj0iMjYuODExIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM2NkJCNkEiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzc4RjQzIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg==",alt:"givewp-logo"}),(0,r.createElement)("div",{className:"givewp-donation-form-selector__select"},(0,r.createElement)("label",{htmlFor:"formId",className:"givewp-donation-form-selector__label"},(0,l.__)("Choose a donation form","give")),(0,r.createElement)(lr,{name:"formId",inputId:"formId",value:a,placeholder:t?(0,l.__)("Loading Donation Forms...","give"):(0,l.__)("Select...","give"),onChange:e=>{e&&i(e.value)},noOptionsMessage:()=>(0,r.createElement)("p",null,(0,l.__)("No forms were found using the GiveWP form builder.","give")),options:e,loadingMessage:()=>(0,r.createElement)(r.Fragment,null,(0,l.__)("Loading Donation Forms...","give")),isLoading:t,theme:dr,styles:cr})),(0,r.createElement)("button",{className:"givewp-donation-form-selector__submit",type:"button",disabled:s||c||!o,onClick:()=>{n(o),(0,u.dispatch)("core/editor").savePost()}},(0,l.__)("Confirm","give")))}const pr=window.wp.components;function mr({attributes:e,setAttributes:t,formOptions:n,isResolving:o,isLegacyTemplate:a,isLegacyForm:s}){const{id:u,displayStyle:c,continueButtonTitle:d,showTitle:f,contentDisplay:p,showGoal:m,showContent:g}=e,h=a||!s,v=h&&["newTab","modal","reveal","button"].includes(c);return(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(pr.PanelBody,{title:(0,l.__)("Form Settings","give"),initialOpen:!0},(0,r.createElement)(pr.PanelRow,null,!1===o&&0===n.length?(0,r.createElement)("p",null,(0,l.__)("No forms were found using the GiveWP form builder.","give")):(0,r.createElement)(pr.SelectControl,{label:(0,l.__)("Choose a donation form","give"),value:null!=u?u:"",options:[{value:"",label:(0,l.__)("Select...","give"),disabled:!0},...n.map((e=>({label:e.label,value:String(e.value)})))],onChange:e=>{t({id:Number(e)})}})),h&&(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.SelectControl,{label:(0,l.__)("Form Format","give"),value:c,options:((e,t,n)=>a?e.concat(t):e.concat(n))([{label:(0,l.__)("Full Form","give"),value:"onpage"},{label:(0,l.__)("Modal","give"),value:"modal"}],[{label:(0,l.__)("Reveal","give"),value:"reveal"},{value:"button",label:(0,l.__)("One Button Launch","give")}],[{label:(0,l.__)("New Tab","give"),value:"newTab"}]),onChange:e=>{t({displayStyle:e})}})),v&&(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.TextControl,{label:(0,l.__)("Open Form Button","give"),value:d,onChange:e=>{t({continueButtonTitle:e})}})),a&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.ToggleControl,{label:(0,l.__)("Title","give"),name:"showTitle",checked:!!f,onChange:e=>{t({showTitle:e})}})),(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.ToggleControl,{label:(0,l.__)("Goal","give"),name:"showGoal",checked:!!m,onChange:e=>{t({showGoal:e})}})),(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.ToggleControl,{label:(0,l.__)("Content","give"),name:"contentDisplay",checked:!!p,onChange:e=>{t({contentDisplay:e})}})),p&&(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.SelectControl,{label:(0,l.__)("Content Position","give"),name:"showContent",value:g,options:[{value:"above",label:(0,l.__)("Above","give")},{value:"below",label:(0,l.__)("Below","give")}],onChange:e=>{t({showContent:e})}}))),u&&(0,r.createElement)(pr.PanelRow,null,(0,r.createElement)(pr.ExternalLink,{href:s?`/wp-admin/post.php?post=${u}&action=edit`:`/wp-admin/edit.php?post_type=give_forms&page=givewp-form-builder&donationFormID=${u}`},(0,l.__)("Edit donation form","give")))))}var gr=n(5697),hr=n.n(gr);function vr(){return vr=Object.assign||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},vr.apply(this,arguments)}function br(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}var yr,Ir,wr=(yr=function(e){!function(t){if("undefined"!=typeof window){var n,r=0,o=!1,i=!1,a=7,s="[iFrameSizer]",u=s.length,l=null,c=window.requestAnimationFrame,d={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},p=null,m={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){M("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){R(n,e)})).end()}):w("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof t&&t.amd?t([],H):e.exports=H(),window.iFrameResize=window.iFrameResize||H()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function v(e,t,n){e.addEventListener(t,n,!1)}function b(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return f[e]?f[e].log:o}function I(e,t){E("log",e,t,y(e))}function w(e,t){E("info",e,t,y(e))}function M(e,t){E("warn",e,t,!0)}function E(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function C(e){function t(){n("Height"),n("Width"),D((function(){A(F),x(V),m("onResized",F)}),F,"init")}function n(e){var t=Number(f[V]["max"+e]),n=Number(f[V]["min"+e]),r=e.toLowerCase(),o=Number(F[r]);I(V,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,I(V,"Set "+r+" to min value")),o>t&&(o=t,I(V,"Set "+r+" to max value")),F[r]=""+o}function r(e){return z.substr(z.indexOf(":")+a+e)}function o(e,t){var n,r;n=function(){var n,r;j("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=F.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},g[r=t]||(g[r]=setTimeout((function(){g[r]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return N(V),{x:Math.floor(Number(t.left)+Number(l.x)),y:Math.floor(Number(t.top)+Number(l.y))}}function c(e){var t=e?i(F.iframe):{x:0,y:0},n={x:Number(F.width)+t.x,y:Number(F.height)+t.y};I(V,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):M(V,"Unable to scroll to requested position, window.parentIFrame not found"):(l=n,d(),I(V,"--"))}function d(){!1!==m("onScroll",l)?x(V):O()}function p(e){m(e,{iframe:F.iframe,screenX:F.width,screenY:F.height,type:F.type})}function m(e,t){return T(V,e,t)}var h,y,E,C,S,R,z=e.data,F={},V=null;"[iFrameResizerChild]Ready"===z?function(){for(var e in f)j("iFrame requested init",k(e),f[e].iframe,e)}():s===(""+z).substr(0,u)&&z.substr(u).split(":")[0]in f?(C=(E=z.substr(u).split(":"))[1]?parseInt(E[1],10):0,S=f[E[0]]&&f[E[0]].iframe,R=getComputedStyle(S),F={iframe:S,id:E[0],height:C+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(R)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(R),width:E[2],type:E[3]},V=F.id,f[V]&&(f[V].loaded=!0),(y=F.type in{true:1,false:1,undefined:1})&&I(V,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return f[e]||(t=!1,M(F.type+" No settings for "+e+". Message was: "+z)),t}(V)&&(I(V,"Received: "+z),h=!0,null===F.iframe&&(M(V,"IFrame ("+F.id+") not found"),h=!1),h&&function(){var t,n=e.origin,r=f[V]&&f[V].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(V,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=f[V]&&f[V].remoteHost,I(V,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+F.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(f[V]&&f[V].firstRun&&f[V]&&(f[V].firstRun=!1),F.type){case"close":L(F.iframe);break;case"message":g=r(6),I(V,"onMessage passed: {iframe: "+F.iframe.id+", message: "+g+"}"),m("onMessage",{iframe:F.iframe,message:JSON.parse(g)}),I(V,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":f[V].autoResize=JSON.parse(r(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(f[V]&&f[V].iframe,V),function(){function e(e,r){function i(){f[n]?o(f[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",b)}var n=V;e("Add ",v),f[n]&&(f[n].stopPageInfo=t)}();break;case"pageInfoStop":f[V]&&f[V].stopPageInfo&&(f[V].stopPageInfo(),delete f[V].stopPageInfo);break;case"inPageLink":e=r(9),a=e.split("#")[1]||"",s=decodeURIComponent(a),(u=document.getElementById(s)||document.getElementsByName(s)[0])?(n=i(u),I(V,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),l={x:n.x,y:n.y},d(),I(V,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):I(V,"In page link #"+a+" not found and window.parentIFrame not found"):I(V,"In page link #"+a+" not found");break;case"reset":P(F);break;case"init":t(),m("onInit",F.iframe);break;default:t()}var e,n,a,s,u,g}())):w(V,"Ignored: "+z)}function T(e,t,n){var r=null,o=null;if(f[e]){if("function"!=typeof(r=f[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function S(e){var t=e.id;delete f[t]}function L(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){M(e)}T(t,"onClosed",t),I(t,"--"),S(e)}else I(t,"Close iframe cancelled by onClose event")}function N(e){null===l&&I(e,"Get page position: "+(l={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+l.y)}function x(e){null!==l&&(window.scrollTo(l.x,l.y),I(e,"Set page position: "+l.x+","+l.y),O())}function O(){l=null}function P(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),N(e.id),D((function(){A(e),j("reset","reset",e.iframe,e.id)}),e,"reset")}function A(e){function t(t){i||"0"!==e[t]||(i=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(f).forEach((function(e){!function(e){function t(t){return"0px"===(f[e]&&f[e].iframe.style[t])}f[e]&&null!==f[e].iframe.offsetParent&&(t("height")||t("width"))&&j("Visibility change","resize",f[e].iframe,e)}(e)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),z(e,16)}var n,r=h();r&&(n=document.querySelector("body"),new r(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;f[r]&&(f[r].sizeHeight&&n("height"),f[r].sizeWidth&&n("width"))}function D(e,t,n){n!==t.type&&c&&!window.jasmine?(I(t.id,"Requesting animation frame"),c(e)):e()}function j(e,t,n,r,o){var i,a=!1;r=r||n.id,f[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=f[r]&&f[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(s+t,i)):M(r,"["+e+"] IFrame("+r+") not found"),o&&f[r]&&f[r].warningTimeout&&(f[r].msgTimeout=setTimeout((function(){!f[r]||f[r].loaded||a||(a=!0,M(r,"IFrame has not responded within "+f[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),f[r].warningTimeout)))}function k(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod}function R(e,n){function i(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],M(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var a=function(t){var i;return""===t&&(e.id=(i=n&&n.id||m.id+r++,null!==document.getElementById(i)&&(i+=r++),t=i),o=(n||{}).log,I(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in f&&"iFrameResizer"in e?M(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},f[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(i,t),function(e){for(var t in m)Object.prototype.hasOwnProperty.call(m,t)&&(f[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}(t),f[a]&&(f[a].targetOrigin=!0===f[a].checkOrigin?""===(n=f[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(I(a,"IFrame scrolling "+(f[a]&&f[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(f[a]&&f[a].scrolling)?"hidden":"auto",f[a]&&f[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=f[a]?f[a].scrolling:"no"}}(),function(){function t(t){1/0!==f[a][t]&&0!==f[a][t]&&(e.style[t]=f[a][t]+"px",I(a,"Set "+t+" = "+f[a][t]+"px"))}function n(e){if(f[a]["min"+e]>f[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(f[a]&&f[a].bodyMargin)&&"0"!==(f[a]&&f[a].bodyMargin)||(f[a].bodyMarginV1=f[a].bodyMargin,f[a].bodyMargin=f[a].bodyMargin+"px"),function(n){var r=h();r&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&L(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),v(e,"load",(function(){var r,o;j("iFrame.onload",n,e,t,!0),r=f[a]&&f[a].firstRun,o=f[a]&&f[a].heightCalculationMethod in d,!r&&o&&P({iframe:e,height:0,width:0,type:"init"})})),j("init",n,e,t,!0)}(k(a)),f[a]&&(f[a].iframe.iFrameResizer={close:L.bind(null,f[a].iframe),removeListeners:S.bind(null,f[a].iframe),resize:j.bind(null,"Window resize","resize",f[a].iframe),moveToAnchor:function(e){j("Move to anchor","moveToAnchor:"+e,f[a].iframe,a)},sendMessage:function(e){j("Send Message","message:"+(e=JSON.stringify(e)),f[a].iframe,a)}}))}function z(e,t){null===p&&(p=setTimeout((function(){p=null,e()}),t))}function F(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),z((function(){V("Tab Visable","resize")}),16))}function V(e,t){Object.keys(f).forEach((function(n){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(n)&&j(e,t,f[n].iframe,n)}))}function H(){function e(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),R(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!c;e+=1)c=window[t[e]+"RequestAnimationFrame"];c?c=c.bind(window):I("setup","RequestAnimationFrame not supported")}(),v(window,"message",C),v(window,"resize",(function(){I("window","Trigger event: resize"),z((function(){V("Window resize","resize")}),16)})),v(document,"visibilitychange",F),v(document,"-webkit-visibilitychange",F),function(r,o){switch(n=[],function(e){e&&e.enablePublicMethods&&M("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(t,r));break;case"object":e(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},yr(Ir={exports:{}}),Ir.exports),Mr=function(){},Er=function(e){var t=e.title,n=e.forwardRef,i=br(e,["title","forwardRef"]),a=function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onMouseEnter,e.onMouseLeave,e.onResized,br(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])}(i),s=(0,r.useRef)(null),u=function(){return Mr(!s.current,"[iframeSizerReact]["+(s&&s.current&&s.current.id)+"] Close event ignored, to remove the iframe update your React component"),!s.current};return(0,r.useEffect)((function(){var e=s.current;return wr(vr({},i,{onClose:u}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,r.useImperativeHandle)(n,(function(){return{resize:function(){return s.current.iFrameResizer.resize()},moveToAnchor:function(e){return s.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){s.current.iFrameResizer.sendMessage(e,t)}}})),o().createElement("iframe",vr({title:t},a,{ref:s}))};Er.defaultProps={title:"iframe"},Er.propTypes={title:hr().string};const Cr=Er,Tr={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},Sr=r.createContext(Tr);let Lr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Nr=new WeakMap;const xr="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(Dr());return e||`${n?"react-aria":`react-aria${Tr.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(Sr);t!==Tr||Lr||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,r.useContext)(Sr),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,i;let e=null===(o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(i=o.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=Nr.get(e);null==n?Nr.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Nr.delete(e))}n.current=++t.current}return n.current}(!!e),o=`react-aria${t.prefix}`;return e||`${o}-${n}`};function Or(){return!1}function Pr(){return!0}function Ar(e){return()=>{}}function Dr(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(Ar,Or,Pr):(0,r.useContext)(Sr).isSSR}function jr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=jr(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const kr=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=jr(e))&&(r&&(r+=" "),r+=t);return r},Rr="undefined"!=typeof document?r.useLayoutEffect:()=>{};let zr=new Map;function Fr(e){let[t,n]=(0,r.useState)(e),o=(0,r.useRef)(null),i=xr(t),a=(0,r.useCallback)((e=>{o.current=e}),[]);return zr.set(i,a),Rr((()=>{let e=i;return()=>{zr.delete(e)}}),[i]),(0,r.useEffect)((()=>{let e=o.current;e&&(o.current=null,n(e))})),i}function Vr(e,t){if(e===t)return e;let n=zr.get(e);if(n)return n(t),t;let r=zr.get(t);return r?(r(e),e):t}function Hr(e=[]){let t=Fr(),[n,o]=function(e){let[t,n]=(0,r.useState)(e),o=(0,r.useRef)(t),i=(0,r.useRef)(null),a=(0,r.useCallback)((()=>{let e=i.current.next();for(;!e.done&&o.current===e.value;)e=i.current.next();e.done?i.current=null:(n(e.value),o.current=e.value)}),[n,o,i]);Rr((()=>{i.current&&a()}));let s=(0,r.useCallback)((e=>{i.current=e(o.current),a()}),[a,i,o]);return[t,s]}(t),i=(0,r.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,o]);return Rr(i,[t,i,...e]),n}function Wr(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Br(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Wr(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Vr(n,o):t[e]=void 0!==o?o:n:t[e]=kr(n,o)}}return t}function Yr(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const Zr=new Set(["id"]),Ur=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Gr=/^(data-.*)$/;function _r(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Zr.has(t)||n&&Ur.has(t)||(null==r?void 0:r.has(t))||Gr.test(t))&&(o[t]=e[t]);return o}function Qr(e){if(function(){if(null==Xr){Xr=!1;try{document.createElement("div").focus({get preventScroll(){return Xr=!0,!0}})}catch(e){}}return Xr}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let Xr=null,$r=new Map,Kr=new Set;function Jr(){if("undefined"==typeof window)return;let e=t=>{let n=$r.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),$r.delete(t.target)),0===$r.size)){for(let e of Kr)e();Kr.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=$r.get(t.target);n||(n=new Set,$r.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function qr(e){requestAnimationFrame((()=>{0===$r.size?e():Kr.add(e)}))}function eo(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Fr(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function to(e){const t=(0,r.useRef)();return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function no(e,t){Rr((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function ro(e){for(oo(e)&&(e=e.parentElement);e&&!oo(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function oo(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?Jr():document.addEventListener("DOMContentLoaded",Jr));let io="undefined"!=typeof document&&window.visualViewport;function ao(){return{width:(null==io?void 0:io.width)||window.innerWidth,height:(null==io?void 0:io.height)||window.innerHeight}}function so(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 uo(){return so(/^Mac/i)}function lo(){return so(/^iPhone/i)||so(/^iPad/i)||uo()&&navigator.maxTouchPoints>1}function co(e){const t=(0,r.useRef)(null);return Rr((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>(0,t.current)(...e)),[])}function fo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,n}function po(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function mo(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,po(e,t,"set"),n),n}new Map;let go="default",ho="",vo=new WeakMap;function bo(e){lo()?("default"===go&&(ho=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),go="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(vo.set(e,e.style.userSelect),e.style.userSelect="none")}function yo(e){if(lo()){if("disabled"!==go)return;go="restoring",setTimeout((()=>{qr((()=>{"restoring"===go&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ho||""),ho="",go="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&vo.has(e)){let t=vo.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),vo.delete(e)}}const Io=r.createContext(null);Io.displayName="PressResponderContext";var wo=new WeakMap;class Mo{continuePropagation(){mo(this,wo,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,po(this,wo,"get"))}constructor(e,t,n){var r,o,i;i={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=wo),o.set(r,i),mo(this,wo,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}function Eo(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,r.useContext)(Io);if(t){let{register:n,...r}=t;e=Br(r,e),n()}return no(t,e.ref),e}(e),[m,g]=(0,r.useState)(!1),h=(0,r.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:b}=function(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,r.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}(),y=co(((e,t)=>{let r=h.current;if(s||r.didFirePressStart)return;let i=!0;if(o){let n=new Mo("pressstart",t,e);o(n),i=n.shouldStopPropagation}return n&&n(!0),r.didFirePressStart=!0,g(!0),i})),I=co(((e,r,o=!0)=>{let a=h.current;if(!a.didFirePressStart)return;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1;let u=!0;if(i){let t=new Mo("pressend",r,e);i(t),u=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&o&&!s){let n=new Mo("press",r,e);t(n),u&&(u=n.shouldStopPropagation)}return u})),w=co(((e,t)=>{if(!s){if(a){let n=new Mo("pressup",t,e);return a(n),n.shouldStopPropagation}return!0}})),M=co((e=>{let t=h.current;t.isPressed&&(t.isOverTarget&&I(Lo(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||yo(t.target))})),E=co((e=>{c&&M(e)})),C=(0,r.useMemo)((()=>{let e=h.current,t={onKeyDown(t){if(To(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){Oo(t.target,t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,r=y(t,"keyboard"),v(document,"keyup",n,!1)),r&&t.stopPropagation()}else"Enter"===t.key&&Co(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){To(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&w(Lo(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||fo(t.nativeEvent))){s||l||Qr(t.currentTarget);let e=y(t,"virtual"),r=w(t,"virtual"),o=I(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&To(t,e.target)){Oo(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let n=t.target,r=I(Lo(e.target,t),"keyboard",e.target.contains(n));b(),r&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(n)&&(Co(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(0===(i=t.nativeEvent).width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;xo(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||l||Qr(t.currentTarget),d||bo(e.target),a=y(t,e.pointerType),v(document,"pointermove",n,!1),v(document,"pointerup",r,!1),v(document,"pointercancel",o,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(xo(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&No(t,t.currentTarget)&&w(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(No(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,y(Lo(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,I(Lo(e.target,t),e.pointerType,!1),E(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(No(t,e.target)?I(Lo(e.target,t),e.pointerType):e.isOverTarget&&I(Lo(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),d||yo(e.target))},o=e=>{M(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&M(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(xo(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=fo(t.nativeEvent)?"virtual":"mouse",s||l||Qr(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),v(document,"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,n=y(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n=I(t,e.pointerType,!1),E(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||w(t,e.pointerType))};let n=t=>{0===t.button&&(e.isPressed=!1,b(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(No(t,e.target)?I(Lo(e.target,t),e.pointerType):e.isOverTarget&&I(Lo(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||l||Qr(t.currentTarget),d||bo(e.target),y(t,e.pointerType)&&t.stopPropagation(),v(window,"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=So(t.nativeEvent,e.activePointerId),r=!0;n&&No(n,t.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,r=y(t,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r=I(t,e.pointerType,!1),E(t)),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=So(t.nativeEvent,e.activePointerId),r=!0;n&&No(n,t.currentTarget)?(w(t,e.pointerType),r=I(t,e.pointerType)):e.isOverTarget&&(r=I(t,e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||yo(e.target),b()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&M(t))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&M({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&M(e)}}return t}),[v,s,l,b,d,M,E,I,y,w]);return(0,r.useEffect)((()=>()=>{d||yo(h.current.target)}),[d]),{isPressed:u||m,pressProps:Br(p,C)}}function Co(e){return"A"===e.tagName&&e.hasAttribute("href")}function To(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof HTMLInputElement&&!Ao(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable||Co(o)&&("button"!==i||"Enter"===n)||"link"===i&&"Enter"!==n)}function So(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Lo(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function No(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function xo(e){return!(e instanceof HTMLElement&&e.draggable)}function Oo(e,t){return e instanceof HTMLInputElement?!Ao(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}const Po=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ao(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Po.has(e.type)}class Do{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function jo(e){let t=(0,r.useRef)({isFocused:!1,observer:null});Rr((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=co((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new Do("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){t.current.observer.disconnect();let e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function ko(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=jo(a),u=(0,r.useCallback)((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?u:void 0,onBlur:t||!o&&!i?void 0:a}}}let Ro=null,zo=new Set,Fo=!1,Vo=!1,Ho=!1;const Wo={Tab:!0,Escape:!0};function Bo(e,t){for(let n of zo)n(e,t)}function Yo(e){Vo=!0,function(e){return!(e.metaKey||!uo()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Ro="keyboard",Bo("keyboard",e))}function Zo(e){Ro="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Vo=!0,Bo("pointer",e))}function Uo(e){fo(e)&&(Vo=!0,Ro="virtual")}function Go(e){e.target!==window&&e.target!==document&&(Vo||Ho||(Ro="virtual",Bo("virtual",e)),Vo=!1,Ho=!1)}function _o(){Vo=!1,Ho=!0}function Qo(){if("undefined"==typeof window||Fo)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Vo=!0,e.apply(this,arguments)},document.addEventListener("keydown",Yo,!0),document.addEventListener("keyup",Yo,!0),document.addEventListener("click",Uo,!0),window.addEventListener("focus",Go,!0),window.addEventListener("blur",_o,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Zo,!0),document.addEventListener("pointermove",Zo,!0),document.addEventListener("pointerup",Zo,!0)):(document.addEventListener("mousedown",Zo,!0),document.addEventListener("mousemove",Zo,!0),document.addEventListener("mouseup",Zo,!0)),Fo=!0}function Xo(){return"pointer"!==Ro}function $o(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),s=(0,r.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),u=jo(s),l=(0,r.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,u(e))}),[o,i,u]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?Qo():document.addEventListener("DOMContentLoaded",Qo));let Ko=!1,Jo=0;function qo(){Ko=!0,setTimeout((()=>{Ko=!1}),50)}function ei(e){"touch"===e.pointerType&&qo()}function ti(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ei):document.addEventListener("touchend",qo),Jo++,()=>{Jo--,Jo>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ei):document.removeEventListener("touchend",qo))}}function ni(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function ri(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function oi(e){if("virtual"===Ro){let t=document.activeElement;qr((()=>{document.activeElement===t&&document.contains(e)&&Qr(e)}))}else Qr(e)}function ii(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ii(e.parentElement,e))}const ai=r.createContext(null);let si=null;function ui(e){let{children:t,contain:n,restoreFocus:o,autoFocus:i}=e,a=(0,r.useRef)(),s=(0,r.useRef)(),u=(0,r.useRef)([]),{parentNode:l}=(0,r.useContext)(ai)||{},c=(0,r.useMemo)((()=>new Mi({scopeRef:u})),[u]);Rr((()=>{let e=l||Ei.root;if(Ei.getTreeNode(e.scopeRef)&&si&&!vi(si,e.scopeRef)){let t=Ei.getTreeNode(si);t&&(e=t)}e.addChild(c),Ei.addNode(c)}),[c,l]),Rr((()=>{Ei.getTreeNode(u).contain=n}),[n]),Rr((()=>{let e=a.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;u.current=t}),[t]),function(e,t,n){Rr((()=>{if(t||n)return;let r=e.current,o=t=>{let n=t.target;gi(n,e.current)?si=e:mi(n)||(si=null)};return document.addEventListener("focusin",o,!1),r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,t,n])}(u,o,n),function(e,t){let n=(0,r.useRef)(),o=(0,r.useRef)(null);Rr((()=>{let r=e.current;if(!t)return void(o.current&&(cancelAnimationFrame(o.current),o.current=null));let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!pi(e))return;let n=document.activeElement,r=e.current;if(!gi(n,r))return;let o=Ii(fi(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&bi(i,!0)},a=t=>{si&&!vi(si,e)||!gi(t.target,e.current)?pi(e)&&!hi(t.target,e)?n.current?n.current.focus():si&&yi(si.current):pi(e)&&(n.current=t.target):(si=e,n.current=t.target)},s=t=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{pi(e)&&!hi(document.activeElement,e)&&(si=e,document.body.contains(t.target)?(n.current=t.target,n.current.focus()):si&&yi(si.current))}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),r.forEach((e=>e.addEventListener("focusin",a,!1))),r.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),r.forEach((e=>e.removeEventListener("focusin",a,!1))),r.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),Rr((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(u,n),function(e,t,n){const o=(0,r.useRef)("undefined"!=typeof document?document.activeElement:null);Rr((()=>{let r=e.current;if(!t||n)return;let o=()=>{si&&!vi(si,e)||!gi(document.activeElement,e.current)||(si=e)};return document.addEventListener("focusin",o,!1),r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,n]),Rr((()=>{if(!t)return;let r=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!pi(e))return;let n=document.activeElement;if(!gi(n,e.current))return;let r=Ei.getTreeNode(e).nodeToRestore,o=Ii(document.body,{tabbable:!0});o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(document.body.contains(r)&&r!==document.body||(r=null,Ei.getTreeNode(e).nodeToRestore=null),(!i||!gi(i,e.current))&&r){o.currentNode=r;do{i=t.shiftKey?o.previousNode():o.nextNode()}while(gi(i,e.current));t.preventDefault(),t.stopPropagation(),i?bi(i,!0):mi(r)?bi(r,!0):n.blur()}};return n||document.addEventListener("keydown",r,!0),()=>{n||document.removeEventListener("keydown",r,!0)}}),[e,t,n]),Rr((()=>{if(t)return Ei.getTreeNode(e).nodeToRestore=o.current,()=>{let n=Ei.getTreeNode(e).nodeToRestore;if(t&&n&&(gi(document.activeElement,e.current)||document.activeElement===document.body&&function(e){let t=Ei.getTreeNode(si);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=Ei.clone();requestAnimationFrame((()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void bi(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&Ei.getTreeNode(n.scopeRef))return void yi(n.scopeRef.current,!0);n=n.parent}}}))}}}),[e,t])}(u,o,n),function(e,t){const n=r.useRef(t);(0,r.useEffect)((()=>{n.current&&(si=e,gi(document.activeElement,si.current)||yi(e.current)),n.current=!1}),[e])}(u,i),(0,r.useEffect)((()=>{if(u){let e=document.activeElement,t=null;if(gi(e,u.current)){for(let n of Ei.traverse())gi(e,n.scopeRef.current)&&(t=n);t===Ei.getTreeNode(u)&&(si=t.scopeRef)}return()=>{let e=Ei.getTreeNode(u).parent.scopeRef;u!==si&&!vi(u,si)||e&&!Ei.getTreeNode(e)||(si=e),Ei.removeTreeNode(u)}}}),[u]);let d=(0,r.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,u=n[0].previousElementSibling,l=Ii(fi(n),{tabbable:o,accept:a},n);l.currentNode=gi(s,n)?s:u;let c=l.nextNode();return!c&&i&&(l.currentNode=u,c=l.nextNode()),c&&bi(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,u=n[n.length-1].nextElementSibling,l=Ii(fi(n),{tabbable:o,accept:a},n);l.currentNode=gi(s,n)?s:u;let c=l.previousNode();return!c&&i&&(l.currentNode=u,c=l.previousNode()),c&&bi(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ii(fi(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&bi(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ii(fi(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&bi(a,!0),a}}}(u)),[]),f=(0,r.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return r.createElement(ai.Provider,{value:f},r.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,r.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const li=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],ci=li.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";li.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const di=li.join(':not([hidden]):not([tabindex="-1"]),');function fi(e){return e[0].parentElement}function pi(e){let t=Ei.getTreeNode(si);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function mi(e){return hi(e)}function gi(e,t){return t.some((t=>t.contains(e)))}function hi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ei.traverse(Ei.getTreeNode(t)))if(gi(e,n.current))return!0;return!1}function vi(e,t){var n;let r=null===(n=Ei.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function bi(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{oi(e)}catch(e){}}function yi(e,t=!0){let n=e[0].previousElementSibling,r=Ii(fi(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=Ii(fi(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),bi(o)}function Ii(e,t,n){let r=(null==t?void 0:t.tabbable)?di:ci,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!ii(e)||n&&!gi(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class wi{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new Mi({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&gi(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.size>0&&r.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new wi;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new Mi({scopeRef:null}),this.fastMap.set(null,this.root)}}class Mi{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let Ei=new wi;function Ci(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||Xo()}),[a,s]=(0,r.useState)(!1),[u,l]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),c=(0,r.useCallback)((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,s(e),c()}),[c]);!function(e,t,n){Qo(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Wo[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(Xo())};return zo.add(t),()=>{zo.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:f}=ko({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=$o({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:u,focusProps:o?p:f}}let Ti=r.createContext(null);function Si(e,t){let{focusProps:n}=ko(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ri(e.onKeyDown),onKeyUp:ri(e.onKeyUp)}}}(e),i=Br(n,o),a=function(e){let t=(0,r.useContext)(Ti)||{};no(t,e);let{ref:n,...o}=t;return o}(t),s=e.isDisabled?{}:a,u=(0,r.useRef)(e.autoFocus);return(0,r.useEffect)((()=>{u.current&&t.current&&oi(t.current),u.current=!1}),[t]),{focusableProps:Br({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}class Li{getStringForLocale(e,t){let n=this.strings[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.strings,this.defaultLocale),this.strings[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const Ni=new Map,xi=new Map;class Oi{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=Ni.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),Ni.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=xi.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),xi.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Pi=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ai=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Di(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Pi.has(t)}let t=e.split("-")[0];return Ai.has(t)}function ji(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Di(e)?"rtl":"ltr"}}let ki=ji(),Ri=new Set;function zi(){ki=ji();for(let e of Ri)e(ki)}const Fi=r.createContext(null);function Vi(){let e=function(){let e=Dr(),[t,n]=(0,r.useState)(ki);return(0,r.useEffect)((()=>(0===Ri.size&&window.addEventListener("languagechange",zi),Ri.add(n),()=>{Ri.delete(n),0===Ri.size&&window.removeEventListener("languagechange",zi)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(Fi)||e}const Hi=new WeakMap;new Map;const Wi={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Bi(e){let{children:t,elementType:n="div",isFocusable:o,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[o,i]=(0,r.useState)(!1),{focusWithinProps:a}=$o({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>o?t:t?{...Wi,...t}:Wi),[o])}}}(e);return r.createElement(n,Br(a,s),t)}function Yi(e){return e&&e.__esModule?e.default:e}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;const Zi=[];function Ui(e,t){let{onClose:n,shouldCloseOnBlur:o,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;(0,r.useEffect)((()=>(i&&Zi.push(t),()=>{let e=Zi.indexOf(t);e>=0&&Zi.splice(e,1)})),[i,t]);let l=()=>{Zi[Zi.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:i}=e,a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=co((e=>{n&&ni(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),u=co((e=>{n&&n(e)}));(0,r.useEffect)((()=>{let e=a.current;if(!o){if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&ni(n,t)&&u(n),e.isPointerDown=!1};return document.addEventListener("pointerdown",s,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&ni(n,t)&&u(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ni(n,t)&&u(n),e.isPointerDown=!1};return document.addEventListener("mousedown",s,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",r,!0)}}}}),[t,o,s,u])}({ref:t,onInteractOutside:a?e=>{u&&!u(e.target)||(Zi[Zi.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||Zi[Zi.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=$o({isDisabled:!o,onBlurWithin:e=>{e.relatedTarget&&hi(e.relatedTarget,si)||u&&!u(e.relatedTarget)||n()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const Gi="undefined"!=typeof document&&window.visualViewport,_i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Qi,Xi=0;function $i(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ki(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Ji(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=ro(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function qi(e){return e instanceof HTMLInputElement&&!_i.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var ea={};function ta(e){let{onDismiss:t,...n}=e,o=eo(n,function(e){let{locale:t}=Vi(),n=(0,r.useMemo)((()=>function(e){let t=Hi.get(e);return t||(t=new Li(e),Hi.set(e,t)),t}(e)),[e]);return(0,r.useMemo)((()=>new Oi(t,n)),[t,n])}(Yi(ea)).format("dismiss"));return r.createElement(Bi,null,r.createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()}}))}ea={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let na=new WeakMap,ra=[];const oa=r.createContext(null);function ia(e){let t,n=Dr(),{portalContainer:o=(n?null:document.body),isExiting:i}=e,[a,s]=(0,r.useState)(!1),u=(0,r.useMemo)((()=>({contain:a,setContain:s})),[a,s]);return o?(t=e.disableFocusManagement?r.createElement(oa.Provider,{value:u},e.children):r.createElement(oa.Provider,{value:u},r.createElement(ui,{restoreFocus:!0,contain:a&&!i},e.children)),$e.createPortal(t,o)):null}function aa(){let e=(0,r.useContext)(oa),t=null==e?void 0:e.setContain;Rr((()=>{null==t||t(!0)}),[t])}function sa(e,t,n){let{overlayProps:o,underlayProps:i}=Ui({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;Rr((()=>{if(!t)return Xi++,1===Xi&&(Qi=lo()?function(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=Wr($i(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),$i(document.documentElement,"overflow","hidden"),$i(document.body,"marginTop",`-${r}px`));window.scrollTo(0,0);let i=Wr(Ki(document,"touchstart",(n=>{e=ro(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Ki(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Ki(document,"touchend",(e=>{let t=e.target;qi(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Ki(document,"focus",(e=>{let t=e.target;qi(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Gi&&(Gi.height<window.innerHeight?requestAnimationFrame((()=>{Ji(t)})):Gi.addEventListener("resize",(()=>Ji(t)),{once:!0}))})))}),!0),Ki(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}():Wr($i(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),$i(document.documentElement,"overflow","hidden"))),()=>{Xi--,0===Xi&&Qi()}}),[t])}({isDisabled:!t.isOpen}),aa(),(0,r.useEffect)((()=>{if(t.isOpen)return function(e,t=document.body){let n=new Set(e),r=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)i(e),e=o.nextNode()}},i=e=>{var t;let n=null!==(t=na.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),na.set(e,n+1))};ra.length&&ra[ra.length-1].disconnect(),o(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&o(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ra.push(s),()=>{a.disconnect();for(let e of r){let t=na.get(e);1===t?(e.removeAttribute("aria-hidden"),na.delete(e)):na.set(e,t-1)}s===ra[ra.length-1]?(ra.pop(),ra.length&&ra[ra.length-1].observe()):ra.splice(ra.indexOf(s),1)}}([n.current])}),[t.isOpen,n]),{modalProps:Br(o),underlayProps:i}}function ua(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Fr(t);let a=Fr(),s={};return n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:eo({id:t,"aria-label":o,"aria-labelledby":r})}}(e),a=Hr([Boolean(t),Boolean(n),r]),s=Hr([Boolean(t),Boolean(n),r]);return i=Br(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function la(e,t){let{inputElementType:n="input",isDisabled:o=!1,isRequired:i=!1,isReadOnly:a=!1,validationState:s,type:u="text",value:l,defaultValue:c,onChange:d=(()=>{})}=e,{focusableProps:f}=Si(e,t),{labelProps:p,fieldProps:m,descriptionProps:g,errorMessageProps:h}=ua(e),v=_r(e,{labelable:!0});const b={type:u,pattern:e.pattern};var y;return function(e,t,n){let o=(0,r.useRef)(t),i=co((()=>{n&&n(o.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[e,i])}(t,null!==(y=null!=l?l:c)&&void 0!==y?y:"",d),{labelProps:p,inputProps:Br(v,"input"===n&&b,{disabled:o,readOnly:a,"aria-required":i||void 0,"aria-invalid":"invalid"===s||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>d(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...m}),descriptionProps:g,errorMessageProps:h}}function ca(e){let[t,n]=function(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let u=s?e:o,l=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(u,e)||n(e,...t)),s||(u=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((n,...o)=>{let i=e(s?u:n,...o);return r(i,...t),s?n:i}))):(s||i(e),r(e,...t))}),[s,u,n]);return[u,l]}(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=(0,r.useCallback)((()=>{n(!0)}),[n]),i=(0,r.useCallback)((()=>{n(!1)}),[n]),a=(0,r.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:o,close:i,toggle:a}}n(1688),new WeakMap;Symbol.iterator;const da="row-header-column-"+Math.random().toString(36).slice(2);let fa="row-header-column-"+Math.random().toString(36).slice(2);for(;da===fa;)fa="row-header-column-"+Math.random().toString(36).slice(2);function pa(e){return null}Symbol.iterator,pa.getCollectionNode=function*(e,t){let{children:n,textValue:o,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n){for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let e=[],o=[];if(r.Children.forEach(n,(n=>{if(n.type===pa){if(e.length<t.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");o.push({type:"item",element:n})}else e.push({type:"cell",element:n})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e,yield*o}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.showDragButtons!==t.showDragButtons||e.selectionMode!==t.selectionMode}},Symbol.iterator;Symbol.iterator;const ma=Symbol("callback"),ga=Symbol("default");function ha({values:e,children:t}){for(let[n,o]of e)t=r.createElement(n.Provider,{value:o},t);return t}function va(e){let{className:t,style:n,children:o,defaultClassName:i,defaultChildren:a,values:s}=e;return(0,r.useMemo)((()=>{let e,r,u;return e="function"==typeof t?t(s):t,r="function"==typeof n?n(s):n,u="function"==typeof o?o(s):null==o?a:o,{className:null!=e?e:i,style:r,children:u}}),[t,n,o,i,a,s])}function ba(e,t,n){let o=(0,r.useContext)(n)||{};if("slots"in o&&o.slots){if(!e.slot&&!o.slots[ga])throw new Error("A slot prop is required");let t=e.slot||ga;if(!o.slots[t])throw new Error(`Invalid slot "${e.slot}". Valid slot names are `+(new Intl.ListFormat).format(Object.keys(o.slots).map((e=>`"${e}"`)))+".");o=o.slots[t]}let{ref:i,[ma]:a,...s}=o,u=to((0,r.useMemo)((()=>Yr(t,i)),[t,i])),l=Br(s,e);return(0,r.useEffect)((()=>{a&&a(e)}),[a,e]),[l,u]}function ya(e,t=!0){let[n,o]=(0,r.useState)(!0);return wa(e,n&&t,(0,r.useCallback)((()=>o(!1)),[])),n&&t}function Ia(e,t){let[n,o]=(0,r.useState)(!1),[i,a]=(0,r.useState)("idle");return!t&&e.current&&"idle"===i&&(n=!0,o(!0),a("exiting")),e.current||"exited"!==i||a("idle"),wa(e,n,(0,r.useCallback)((()=>{a("exited"),o(!1)}),[])),n}function wa(e,t,n){let o=(0,r.useRef)(null);t&&e.current&&(o.current=window.getComputedStyle(e.current).animation),Rr((()=>{if(t&&e.current){let t=window.getComputedStyle(e.current);if("none"!==t.animationName&&t.animation!==o.current){let t=o=>{o.target===e.current&&(r.removeEventListener("animationend",t),$e.flushSync((()=>{n()})))},r=e.current;return r.addEventListener("animationend",t),()=>{r.removeEventListener("animationend",t)}}n()}}),[e,t,n])}const Ma=(0,r.createContext)({}),Ea=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ca=(0,r.createContext)({});function Ta(e,t){[e,t]=ba(e,t,Ca);let n=e,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:s,onPressChange:u,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:m,type:g="button"}=e;n="button"===r?{type:g,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:f,target:"a"===r?p:void 0,type:"input"===r?g:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?m:void 0};let{pressProps:h,isPressed:v}=Eo({onPressStart:a,onPressEnd:s,onPressChange:u,onPress:i,isDisabled:o,preventFocusOnPress:l,ref:t}),{focusableProps:b}=Si(e,t);c&&(b.tabIndex=o?-1:b.tabIndex);let y=Br(b,h,_r(e,{labelable:!0}));return{isPressed:v,buttonProps:Br(n,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{d&&(d(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:a,isFocused:s,isFocusVisible:u}=Ci(e),{hoverProps:l,isHovered:c}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:i}=e,[a,s]=(0,r.useState)(!1),u=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(ti,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,r.useMemo)((()=>{let e=(e,r)=>{if(u.pointerType=r,i||"touch"===r||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let o=e.currentTarget;u.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},r=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let r=e.currentTarget;o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{Ko&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||Ko||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}}),[t,n,o,i,u]);return(0,r.useEffect)((()=>{i&&c({currentTarget:u.target},u.pointerType)}),[i]),{hoverProps:l,isHovered:a}}(e),d=va({...e,values:{isHovered:c,isPressed:i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return r.createElement("button",{..._r(e,{propNames:Ea}),...Br(o,a,l),...d,ref:t,slot:e.slot,"data-pressed":n.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0})}const Sa=(0,r.forwardRef)(Ta),La=(0,r.createContext)({}),Na=(0,r.createContext)({}),xa=(0,r.createContext)({}),Oa=(0,r.createContext)(null),Pa=(0,r.createContext)(null);function Aa(e,t){if((0,r.useContext)(Pa))return r.createElement(za,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:u,...l}=e;return r.createElement(ka,{isDismissable:n,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s},r.createElement(za,{...l,modalRef:t},u))}const Da=(0,r.forwardRef)(Aa);function ja(e,t){let n=(0,r.useContext)(Oa),o=ca(e),i=null==e.isOpen&&null==e.defaultOpen&&(null==n?void 0:n.state)?n.state:o,a=to(t),s=(0,r.useRef)(null),u=Ia(a,i.isOpen),l=Ia(s,i.isOpen),c=u||l;return i.isOpen||c?r.createElement(Ra,{...e,state:i,isExiting:c,overlayRef:a,modalRef:s}):null}const ka=(0,r.forwardRef)(ja);function Ra(e){let t=e.modalRef,{state:n}=e,{modalProps:o,underlayProps:i}=sa(e,n,t),a=ya(e.overlayRef),s=va({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:e.isExiting,state:n}}),u=function(){let[e,t]=(0,r.useState)((()=>ao()));return(0,r.useEffect)((()=>{let e=()=>{t((e=>{let t=ao();return t.width===e.width&&t.height===e.height?e:t}))};return io?io.addEventListener("resize",e):window.addEventListener("resize",e),()=>{io?io.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}(),l={...s.style,"--visual-viewport-height":u.height+"px"};return r.createElement(ia,{isExiting:e.isExiting},r.createElement("div",{...Br(_r(e),i),...s,style:l,ref:e.overlayRef,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},r.createElement(Pa.Provider,{value:{modalProps:o,modalRef:t,state:n,isExiting:e.isExiting,isDismissable:e.isDismissable}},s.children)))}function za(e){let{modalProps:t,modalRef:n,isExiting:o,isDismissable:i,state:a}=(0,r.useContext)(Pa),s=to((0,r.useMemo)((()=>Yr(e.modalRef,n)),[e.modalRef,n])),u=ya(s),l=va({...e,defaultClassName:"react-aria-Modal",values:{isEntering:u,isExiting:o,state:a}});return r.createElement("div",{...Br(_r(e),t),...l,ref:s,"data-entering":u||void 0,"data-exiting":o||void 0},i&&r.createElement(ta,{onDismiss:a.close}),l.children)}const Fa=(0,r.createContext)(null);function Va(e,t){[e,t]=ba(e,t,Fa);let{dialogProps:n,titleProps:o}=function(e,t){let{role:n="dialog"}=e,o=Hr();o=e["aria-label"]?void 0:o;let i=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){oi(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),oi(t.current),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),aa(),{dialogProps:{..._r(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}(e,t),i=e.children;var a;return"function"==typeof i&&(i=i({close:e.onClose||(()=>{})})),r.createElement("section",{..._r(e),...n,ref:t,slot:e.slot,style:e.style,className:null!==(a=e.className)&&void 0!==a?a:"react-aria-Dialog"},r.createElement(ha,{values:[[Ca,void 0],[Ma,{...o,level:2}]]},i))}const Ha=(0,r.forwardRef)(Va);Symbol.iterator;const Wa=(0,r.createContext)({}),Ba=(0,r.createContext)(null);function Ya(){return(0,r.createElement)(pr.SVG,{className:"givewp-donation-form-modal__close__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,r.createElement)(pr.Path,{stroke:"black",strokeWidth:"2",d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))}function Za({openFormButton:e,children:t,onChange:n,isOpen:o}){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Sa,{className:"givewp-donation-form-modal__open",onPress:n},e),(0,r.createElement)(Da,{className:"givewp-donation-form-modal__overlay",isOpen:o},(0,r.createElement)(Ha,{className:"givewp-donation-form-modal__dialog"},t,(0,r.createElement)(Sa,{className:"givewp-donation-form-modal__close",onPress:n},(0,r.createElement)(Ya,null)))))}(0,r.forwardRef)((function(e,t){[e,t]=ba(e,t,Ba);let n=(0,r.useRef)(null),[o,i]=function(){let[e,t]=(0,r.useState)(!0),n=(0,r.useRef)(!1),o=(0,r.useCallback)((e=>{n.current=!0,t(!!e)}),[]);return Rr((()=>{n.current||t(!1)}),[]),[o,e]}(),[a,s]=(0,r.useState)("input"),{labelProps:u,inputProps:l,descriptionProps:c,errorMessageProps:d}=la({...e,inputElementType:a,label:i},n),f=(0,r.useCallback)((e=>{n.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),p=va({...e,values:{isDisabled:e.isDisabled||!1,validationState:e.validationState},defaultClassName:"react-aria-TextField"});return r.createElement("div",{..._r(e),...p,ref:t,slot:e.slot,"data-disabled":e.isDisabled||void 0,"data-validation-state":e.validationState||void 0},r.createElement(ha,{values:[[Na,{...u,ref:o}],[xa,{...l,ref:f}],[Wa,{...l,ref:f}],[La,{slots:{description:c,errorMessage:d}}]]},p.children))}));const Ua=window.wp.element;function Ga({clientId:e,formId:t,formFormat:n,openFormButton:o,link:i}){const a=(0,u.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),[s,l]=(0,Ua.useState)(!1),c=a?.clientId===e?"auto":"none",d="modal"===n||"reveal"===n;return"newTab"===n?(0,r.createElement)("a",{className:"givewp-donation-form-link",href:i,target:"_blank",rel:"noopener noreferrer"},o):d?(0,r.createElement)(Za,{openFormButton:o,isOpen:s,onChange:()=>l(!s)},(0,r.createElement)(Cr,{src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{minWidth:"100%",pointerEvents:c}})):(0,r.createElement)(Cr,{src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0",pointerEvents:c}})}const _a={white:"#fff",grey:"#555d66",give:"#66bb6a"};(0,t.registerBlockType)(e,{icon:function({color:e="grey",size:t="24px",...n}){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:t,height:t,...n},(0,r.createElement)("circle",{fill:_a[e],cx:"78.6",cy:"78.6",r:"78.6"}),(0,r.createElement)("path",{fill:"#fff",d:"M89.8 84.2c.3.7 1 1.3 1 1.3 13.9 1.7 33.6-.2 48.6-2.2-8.6 18.5-24 30.8-38.1 30.8-26.5 0-46.9-32.1-46.9-32.1 8.2-7.2 21.7-30.8 41.2-30.8s28 10.7 28 10.7l2.2-3.5s-9.1-31.9-34.9-31.9-53.2 42.3-69.2 52c0 0 22 52.2 70.2 52.2 40.4 0 50.6-38.6 52.5-48.2 5.4-.8 9.9-1.6 12.8-2.1 1-2.2 2.1-6.1 1.3-11.3-16.1 6.2-40.5 13.2-69.1 13.2-.1 0 0 1 .4 1.9z"}))},edit:function({attributes:e,isSelected:t,setAttributes:n,className:o,clientId:a}){const{id:c,blockId:d,displayStyle:f,continueButtonTitle:p}=e,{formOptions:m,isResolving:g}=function(){const e=[],{forms:t,isResolving:n}=(0,u.useSelect)((e=>{const t={per_page:100};return{forms:e("core").getEntityRecords("postType","give_forms",t),isResolving:e("core/data").getIsResolving("core","getEntityRecords",["postType","give_forms",t])}}),[]);return t?.map((({title:t,id:n,formTemplate:r,isLegacyForm:o,link:i})=>{e.push({label:(0,l.__)(t.rendered,"give"),value:n,isLegacyForm:o,isLegacyTemplate:o&&"legacy"===r,link:i})})),{isResolving:n,formOptions:e}}(),[h,v]=(0,r.useState)(!!c);(0,r.useEffect)((()=>{d||n({blockId:a}),b||"reveal"!==f||n({displayStyle:"modal"})}),[]);const[b,y,I]=(()=>{const e=m.find((e=>e.value===c));return[e?.isLegacyForm,e?.isLegacyTemplate,e?.link]})();return!1!==g?(0,r.createElement)("div",{...(0,i.useBlockProps)()},(0,r.createElement)("p",null,(0,l.__)("Loading...","give"))):(0,r.createElement)("div",{...(0,i.useBlockProps)()},c&&h?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(mr,{attributes:e,setAttributes:n,formOptions:m,isResolving:g,isLegacyTemplate:y,isLegacyForm:b}),b?(0,r.createElement)("div",{className:t?`${o} isSelected`:o},(0,r.createElement)(s(),{block:"give/donation-form",attributes:e})):(0,r.createElement)(Ga,{clientId:a,formId:c,formFormat:f,openFormButton:p,link:I})):(0,r.createElement)(fr,{formOptions:m,isResolving:g,handleSelect:e=>{n({id:e}),v(!0)}}))}})})()})();Save