(()=>{var e={308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(y=d(y,{key:y.key||m})),o.push(c(y,v,m));continue}}if("text"!==v.type){var g=v,b={};l(g)?((0,s.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(v.name,b,w),v,m))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,s.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,m))}}return 1===o.length?o[0]:o};var r=n(1609),i=o(n(840)),s=n(4958),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},411:(e,t,n)=>{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var s=o(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n};var o=n(4210),r=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach(function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}}),n};var r=o(n(9788))},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);r(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new s.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1609:e=>{"use strict";e.exports=window.React},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(s)};var n="none",o="contents",r=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)};var r=o(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=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 a.name="Invariant Violation",a}}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:r};return n.PropTypes=n,n}},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{r[e]=new o(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{r[e]=new o(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{r[e]=new o(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{r[e]=new o(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{r[e]=new o(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)});var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)});var r,i}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}};var r=n(1609),i=o(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)}),n):n}i.default=i,e.exports=i},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},5496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,p=(e=(0,o.escapeSpecialCharacters)(e)).match(a),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case r:var h=d(e);return l.test(e)||null===(t=null==(y=h.querySelector(i))?void 0:y.parentNode)||void 0===t||t.removeChild(y),c.test(e)||null===(n=null==(y=h.querySelector(s))?void 0:y.parentNode)||void 0===n||n.removeChild(y),h.querySelectorAll(r);case i:case s:var v=u(e).querySelectorAll(f);return c.test(e)&&l.test(e)?v[0].parentNode.childNodes:v;default:return m?m(e):(y=u(e,s).querySelector(s)).childNodes;var y}};var o=n(7731),r="html",i="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=//i,c=//i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var f=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var m,v="object"==typeof document&&document.createElement("template");v&&v.content&&(m=function(e){return v.innerHTML=e,v.content.childNodes})},5556:(e,t,n)=>{e.exports=n(2694)()},5795:e=>{"use strict";e.exports=window.ReactDOM},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),s=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}})},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function g(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?E(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach(function(e){return e.parent=r}),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(y(e)){o=t?E(e.children):[];var s=new f(o);o.forEach(function(e){return e.parent=s}),n=s}else if(_(e)){o=t?E(e.children):[];var a=new h(o);o.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map(function(e){return x(e,!0)}),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],c=i();if(e===c){if(!s)return;o=l}if(l!==c||s||(o=a),a===c&&s&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=s?l:a).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))})},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(r.CARRIAGE_RETURN_REGEX,r.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,r){void 0===n&&(n=null);for(var l,c=[],u=0,d=t.length;u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],s=null,a=!1;function l(){a=!0}function c(){if(a){if(a=!1,!s)return;setTimeout(function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()},0)}}},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(o,a))}},9090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;r&&d.add(s.body,r),o&&d.add(s.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},9771:e=>{"use strict";e.exports=function(){}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var v=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function x(){var e=h(),n=g(r);if(n){if(_(),!g(i))return y("property missing ':'");var o=g(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(a),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=window.wp.domReady;var t=n.n(e);const o=window.wp.element,r=window.wp.components,i=window.wp.i18n;var s=n(442);const a=s.default||s;var l=n(312),c=n.n(l),u=n(1609);const d=Math.min,p=Math.max,f=Math.round,h=Math.floor,m=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function O(e){return x(S(e))}function C(e){return e.replace(/start|end/g,e=>y[e])}function R(e){return e.replace(/left|right|bottom|top/g,e=>v[e])}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function k(e,t,n){let{reference:o,floating:r}=e;const i=S(t),s=O(t),a=E(s),l=w(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(_(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function N(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),h=T(f),m=a[p?"floating"===d?"reference":"floating":d],v=A(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},_=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-_.top+h.top)/w.y,bottom:(_.bottom-v.bottom+h.bottom)/w.y,left:(v.left-_.left+h.left)/w.x,right:(_.right-v.right+h.right)/w.x}}function P(){return"undefined"!=typeof window}function j(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!P()&&(e instanceof Node||e instanceof L(e).Node)}function I(e){return!!P()&&(e instanceof Element||e instanceof L(e).Element)}function F(e){return!!P()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function U(e){return!(!P()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function H(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function B(e){return["table","td","th"].includes(j(e))}function W(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function z(e){const t=V(),n=I(e)?q(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function V(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $(e){return["html","body","#document"].includes(j(e))}function q(e){return L(e).getComputedStyle(e)}function G(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if("html"===j(e))return e;const t=e.assignedSlot||e.parentNode||U(e)&&e.host||D(e);return U(t)?t.host:t}function Y(e){const t=X(e);return $(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&H(t)?t:Y(t)}function K(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Y(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),s=L(r);if(i){const e=Z(s);return t.concat(s,s.visualViewport||[],H(r)?r:[],e&&n?K(e):[])}return t.concat(r,K(r,[],n))}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J(e){const t=q(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=F(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=f(n)!==i||f(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Q(e){return I(e)?e:e.contextElement}function ee(e){const t=Q(e);if(!F(t))return m(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=J(t);let s=(i?f(n.width):n.width)/o,a=(i?f(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const te=m(0);function ne(e){const t=L(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:te}function oe(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Q(e);let s=m(1);t&&(o?I(o)&&(s=ee(o)):s=ee(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==L(e))&&t}(i,n,o)?ne(i):m(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const e=L(i),t=o&&I(o)?L(o):o;let n=e,r=Z(n);for(;r&&o&&t!==n;){const e=ee(r),t=r.getBoundingClientRect(),o=q(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=L(r),r=Z(n)}}return A({width:u,height:d,x:l,y:c})}function re(e,t){const n=G(e).scrollLeft;return t?t.left+n:oe(D(e)).left+n}function ie(e,t,n){void 0===n&&(n=!1);const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(n?0:re(e,o)),y:o.top+t.scrollTop}}function se(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=L(e),o=D(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const e=V();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=D(e),n=G(e),o=e.ownerDocument.body,r=p(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=p(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+re(e);const a=-n.scrollTop;return"rtl"===q(o).direction&&(s+=p(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(D(e));else if(I(t))o=function(e,t){const n=oe(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=F(e)?ee(e):m(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ne(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(o)}function ae(e,t){const n=X(e);return!(n===t||!I(n)||$(n))&&("fixed"===q(n).position||ae(n,t))}function le(e,t,n){const o=F(t),r=D(t),i="fixed"===n,s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=m(0);function c(){l.x=re(r)}if(o||!o&&!i)if(("body"!==j(t)||H(r))&&(a=G(t)),o){const e=oe(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();i&&!o&&r&&c();const u=!r||o||i?m(0):ie(r,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function ce(e){return"static"===q(e).position}function ue(e,t){if(!F(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function de(e,t){const n=L(e);if(W(e))return n;if(!F(e)){let t=X(e);for(;t&&!$(t);){if(I(t)&&!ce(t))return t;t=X(t)}return n}let o=ue(e,t);for(;o&&B(o)&&ce(o);)o=ue(o,t);return o&&$(o)&&ce(o)&&!z(o)?n:o||function(e){let t=X(e);for(;F(t)&&!$(t);){if(z(t))return t;if(W(t))return null;t=X(t)}return null}(e)||n}const pe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,s=D(o),a=!!t&&W(t.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=m(1);const u=m(0),d=F(o);if((d||!d&&!i)&&(("body"!==j(o)||H(s))&&(l=G(o)),F(o))){const e=oe(o);c=ee(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}const p=!s||d||i?m(0):ie(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?W(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=K(e,[],!1).filter(e=>I(e)&&"body"!==j(e)),r=null;const i="fixed"===q(e).position;let s=i?X(e):e;for(;I(s)&&!$(s);){const t=q(s),n=z(s);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||H(s)&&!n&&ae(e,s))?o=o.filter(e=>e!==s):r=t,s=X(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=i[0],a=i.reduce((e,n)=>{const o=se(t,n,r);return e.top=p(o.top,e.top),e.right=d(o.right,e.right),e.bottom=d(o.bottom,e.bottom),e.left=p(o.left,e.left),e},se(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:de,getElementRects:async function(e){const t=this.getOffsetParent||de,n=this.getDimensions,o=await n(e.floating);return{reference:le(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=J(e);return{width:t,height:n}},getScale:ee,isElement:I,isRTL:function(e){return"rtl"===q(e).direction}};function fe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const he=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=w(n),a=_(n),l="y"===S(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},me=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=b(e,t),c={x:n,y:o},u=await N(t,l),d=S(w(r)),p=x(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=g(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";h=g(h+u["y"===d?"top":"left"],h,h-u[e])}const m=a.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:i,[d]:s}}}}}},ve=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=w(r),g=S(a),x=w(a)===a,T=await(null==l.isRTL?void 0:l.isRTL(c.floating)),A=p||(x||!m?[R(a)]:function(e){const t=R(e);return[C(e),t,C(t)]}(a)),k="none"!==h;!p&&k&&A.push(...function(e,t,n,o){const r=_(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}(w(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(C)))),i}(a,m,h,T));const P=[a,...A],j=await N(t,v),L=[];let D=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&L.push(j[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=_(e),r=O(e),i=E(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=R(s)),[s,R(s)]}(r,s,T);L.push(j[e[0]],j[e[1]])}if(D=[...D,{placement:r,overflows:L}],!L.every(e=>e<=0)){var M,I;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=P[e];if(t&&("alignment"!==d||g===S(t)||D.every(e=>e.overflows[0]>0&&S(e.placement)===g)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(I=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var F;const e=null==(F=D.filter(e=>{if(k){const t=S(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},ye=(e,t,n)=>{const o=new Map,r={platform:pe,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=k(c,o,l),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const c=s;return n?(c.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:s,middlewareData:a}=e,{element:l,padding:c=0}=b(u,e)||{};if(null==l)return{};const p=T(c),f={x:t,y:n},h=O(o),m=E(h),v=await i.getDimensions(l),y="y"===h,w=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=r.reference[m]+r.reference[h]-f[h]-r.floating[m],R=f[h]-r.reference[h],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let k=A?A[S]:0;k&&await(null==i.isElement?void 0:i.isElement(A))||(k=s.floating[S]||r.floating[m]);const N=C/2-R/2,P=k/2-v[m]/2-1,j=d(p[w],P),L=d(p[x],P),D=j,M=k-v[m]-L,I=k/2-v[m]/2+N,F=g(D,I,M),U=!a.arrow&&null!=_(o)&&I!==F&&r.reference[m]/2-(I{var r,i;const s={left:`${e}px`,top:`${t}px`,border:a},{x:c,y:u}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},d=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",p=a&&{borderBottom:a,borderRight:a};let f=0;if(a){const e=`${a}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...p,[d]:`-${l/2+f}px`},place:n}})):ye(e,t,{placement:"bottom",strategy:i,middleware:c}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n}));var u},xe=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Ee=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},Se=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Oe=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>Oe(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Se(e)||!Se(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>Oe(e[n],t[n]))},Ce=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},Re=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ce(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Te="undefined"!=typeof window?u.useLayoutEffect:u.useEffect,Ae=e=>{e.current&&(clearTimeout(e.current),e.current=null)},ke={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ne=(0,u.createContext)({getTooltipData:()=>ke});function Pe(e="DEFAULT_TOOLTIP_ID"){return(0,u.useContext)(Ne).getTooltipData(e)}var je={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Le={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const De=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:r="dark",anchorId:i,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:f=!1,positionStrategy:m="absolute",middlewares:v,wrapper:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:x=!1,clickable:E=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:R,closeEvents:T,globalCloseEvents:A,imperativeModeOnly:k,style:N,position:P,afterShow:j,afterHide:L,disableTooltip:M,content:I,contentWrapperRef:F,isOpen:U,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:W,setActiveAnchor:z,border:V,opacity:$,arrowColor:q,arrowSize:G=8,role:X="tooltip"})=>{var Y;const Z=(0,u.useRef)(null),J=(0,u.useRef)(null),ee=(0,u.useRef)(null),te=(0,u.useRef)(null),ne=(0,u.useRef)(null),[re,ie]=(0,u.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[se,ae]=(0,u.useState)(!1),[le,ce]=(0,u.useState)(!1),[ue,de]=(0,u.useState)(null),pe=(0,u.useRef)(!1),he=(0,u.useRef)(null),{anchorRefs:me,setActiveAnchor:ve}=Pe(t),ye=(0,u.useRef)(!1),[be,we]=(0,u.useState)([]),xe=(0,u.useRef)(!1),Se=f||c.includes("click"),Ce=Se||(null==R?void 0:R.click)||(null==R?void 0:R.dblclick)||(null==R?void 0:R.mousedown),ke=R?{...R}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!R&&Se&&Object.assign(ke,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ne=T?{...T}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!T&&Se&&Object.assign(Ne,{mouseleave:!1,blur:!1,mouseout:!1});const De=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:Ce||!1};k&&(Object.assign(ke,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ne,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(De,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Te(()=>(xe.current=!0,()=>{xe.current=!1}),[]);const Me=e=>{xe.current&&(e&&ce(!0),setTimeout(()=>{xe.current&&(null==B||B(e),void 0===U&&ae(e))},10))};(0,u.useEffect)(()=>{if(void 0===U)return()=>null;U&&ce(!0);const e=setTimeout(()=>{ae(U)},10);return()=>{clearTimeout(e)}},[U]),(0,u.useEffect)(()=>{if(se!==pe.current)if(Ae(ne),pe.current=se,se)null==j||j();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,n]=e;return Number(t)*("ms"===n?1:1e3)})();ne.current=setTimeout(()=>{ce(!1),de(null),null==L||L()},e+25)}},[se]);const Ie=e=>{ie(t=>Oe(t,e)?t:e)},Fe=(e=g)=>{Ae(ee),le?Me(!0):ee.current=setTimeout(()=>{Me(!0)},e)},Ue=(e=b)=>{Ae(te),te.current=setTimeout(()=>{ye.current||Me(!1)},e)},He=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return z(null),void ve({current:null});g?Fe():Me(!0),z(n),ve({current:n}),Ae(te)},Be=()=>{E?Ue(b||100):b?Ue():Me(!1),Ae(ee)},We=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};_e({place:null!==(n=null==ue?void 0:ue.place)&&void 0!==n?n:a,offset:l,elementReference:o,tooltipReference:Z.current,tooltipArrowReference:J.current,strategy:m,middlewares:v,border:V,arrowSize:G}).then(e=>{Ie(e)})},ze=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};We(n),he.current=n},Ve=e=>{var t;if(!se)return;const n=e.target;n.isConnected&&((null===(t=Z.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${i}']`),...be].some(e=>null==e?void 0:e.contains(n))||(Me(!1),Ae(ee)))},$e=Ee(He,50,!0),qe=Ee(Be,50,!0),Ge=e=>{qe.cancel(),$e(e)},Xe=()=>{$e.cancel(),qe()},Ye=(0,u.useCallback)(()=>{var e,t;const n=null!==(e=null==ue?void 0:ue.position)&&void 0!==e?e:P;n?We(n):w?he.current&&We(he.current):(null==W?void 0:W.isConnected)&&_e({place:null!==(t=null==ue?void 0:ue.place)&&void 0!==t?t:a,offset:l,elementReference:W,tooltipReference:Z.current,tooltipArrowReference:J.current,strategy:m,middlewares:v,border:V,arrowSize:G}).then(e=>{xe.current&&Ie(e)})},[se,W,I,N,a,null==ue?void 0:ue.place,l,m,P,null==ue?void 0:ue.position,w,G]);(0,u.useEffect)(()=>{var e,t;const n=new Set(me);be.forEach(e=>{(null==M?void 0:M(e))||n.add({current:e})});const o=document.querySelector(`[id='${i}']`);o&&!(null==M?void 0:M(o))&&n.add({current:o});const r=()=>{Me(!1)},s=Re(W),a=Re(Z.current);De.scroll&&(window.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r),null==a||a.addEventListener("scroll",r));let l=null;De.resize?window.addEventListener("resize",r):W&&Z.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Q(e),u=r||i?[...c?K(c):[],...K(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=c&&a?function(e,t){let n,o=null;const r=D(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:m,height:v}=c;if(a||t(),!m||!v)return;const y={rootMargin:-h(f)+"px "+-h(r.clientWidth-(u+m))+"px "+-h(r.clientHeight-(f+v))+"px "+-h(u)+"px",threshold:p(0,d(1,l))||1};let g=!0;function b(t){const o=t[0].intersectionRatio;if(o!==l){if(!g)return s();o?s(!1,o):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==o||fe(c,e.getBoundingClientRect())||s(),g=!1}try{o=new IntersectionObserver(b,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(b,y)}o.observe(e)}(!0),i}(c,n):null;let m,v=-1,y=null;s&&(y=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),c&&!l&&y.observe(c),y.observe(t));let g=l?oe(e):null;return l&&function t(){const o=oe(e);g&&!fe(g,o)&&n(),g=o,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=y)||e.disconnect(),y=null,l&&cancelAnimationFrame(m)}}(W,Z.current,Ye,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Me(!1)};De.escape&&window.addEventListener("keydown",c),De.clickOutsideAnchor&&window.addEventListener("click",Ve);const u=[],f=e=>Boolean((null==e?void 0:e.target)&&(null==W?void 0:W.contains(e.target))),m=e=>{se&&f(e)||He(e)},v=e=>{se&&f(e)&&Be()},y=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],g=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach(([e,t])=>{t&&(y.includes(e)?u.push({event:e,listener:Ge}):g.includes(e)&&u.push({event:e,listener:m}))}),Object.entries(Ne).forEach(([e,t])=>{t&&(y.includes(e)?u.push({event:e,listener:Xe}):g.includes(e)&&u.push({event:e,listener:v}))}),w&&u.push({event:"pointermove",listener:ze});const b=()=>{ye.current=!0},_=()=>{ye.current=!1,Be()},x=E&&(Ne.mouseout||Ne.mouseleave);return x&&(null===(e=Z.current)||void 0===e||e.addEventListener("mouseover",b),null===(t=Z.current)||void 0===t||t.addEventListener("mouseout",_)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)})}),()=>{var e,t;De.scroll&&(window.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r),null==a||a.removeEventListener("scroll",r)),De.resize?window.removeEventListener("resize",r):null==l||l(),De.clickOutsideAnchor&&window.removeEventListener("click",Ve),De.escape&&window.removeEventListener("keydown",c),x&&(null===(e=Z.current)||void 0===e||e.removeEventListener("mouseover",b),null===(t=Z.current)||void 0===t||t.removeEventListener("mouseout",_)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)})})}},[W,Ye,le,me,be,R,T,A,Se,g,b]),(0,u.useEffect)(()=>{var e,n;let o=null!==(n=null!==(e=null==ue?void 0:ue.anchorSelect)&&void 0!==e?e:s)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver(e=>{const n=[],r=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(W){const t=[...e.removedNodes].filter(e=>1===e.nodeType);if(o)try{r.push(...t.filter(e=>e.matches(o))),r.push(...t.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(ce(!1),Me(!1),z(null),Ae(ee),Ae(te),!0)})}if(o)try{const t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(o))),n.push(...t.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}}}),(n.length||r.length)&&we(e=>[...e.filter(e=>!r.includes(e)),...n])});return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}},[t,s,null==ue?void 0:ue.anchorSelect,W]),(0,u.useEffect)(()=>{Ye()},[Ye]),(0,u.useEffect)(()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver(()=>{setTimeout(()=>Ye())});return e.observe(F.current),()=>{e.disconnect()}},[I,null==F?void 0:F.current]),(0,u.useEffect)(()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...be,t];W&&n.includes(W)||z(null!==(e=be[0])&&void 0!==e?e:t)},[i,be,W]),(0,u.useEffect)(()=>(H&&Me(!0),()=>{Ae(ee),Ae(te)}),[]),(0,u.useEffect)(()=>{var e;let n=null!==(e=null==ue?void 0:ue.anchorSelect)&&void 0!==e?e:s;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));we(e)}catch(e){we([])}},[t,s,null==ue?void 0:ue.anchorSelect]),(0,u.useEffect)(()=>{ee.current&&(Ae(ee),Fe(g))},[g]);const Ke=null!==(Y=null==ue?void 0:ue.content)&&void 0!==Y?Y:I,Ze=se&&Object.keys(re.tooltipStyles).length>0;return(0,u.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}de(null!=e?e:null),(null==e?void 0:e.delay)?Fe(e.delay):Me(!0)},close:e=>{(null==e?void 0:e.delay)?Ue(e.delay):Me(!1)},activeAnchor:W,place:re.place,isOpen:Boolean(le&&!_&&Ke&&Ze)})),le&&!_&&Ke?u.createElement(y,{id:t,role:X,className:ge("react-tooltip",je.tooltip,Le.tooltip,Le[r],n,`react-tooltip__place-${re.place}`,je[Ze?"show":"closing"],Ze?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&je.fixed,E&&je.clickable),onTransitionEnd:e=>{Ae(ne),se||"opacity"!==e.propertyName||(ce(!1),de(null),null==L||L())},style:{...N,...re.tooltipStyles,opacity:void 0!==$&&Ze?$:void 0},ref:Z},Ke,u.createElement(y,{className:ge("react-tooltip-arrow",je.arrow,Le.arrow,o,x&&je.noArrow),style:{...re.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0,"--rt-arrow-size":`${G}px`},ref:J})):null},Me=({content:e})=>u.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Ie=u.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:o,html:r,render:i,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:x=!1,clickable:E=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:R,closeEvents:T,globalCloseEvents:A,imperativeModeOnly:k=!1,style:N,position:P,isOpen:j,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:M,opacity:I,arrowColor:F,arrowSize:U,setIsOpen:H,afterShow:B,afterHide:W,disableTooltip:z,role:V="tooltip"},$)=>{const[q,G]=(0,u.useState)(o),[X,Y]=(0,u.useState)(r),[K,Z]=(0,u.useState)(c),[J,Q]=(0,u.useState)(l),[ee,te]=(0,u.useState)(d),[ne,oe]=(0,u.useState)(g),[re,ie]=(0,u.useState)(b),[se,ae]=(0,u.useState)(w),[le,ce]=(0,u.useState)(_),[ue,de]=(0,u.useState)(p),[pe,fe]=(0,u.useState)(h),[he,me]=(0,u.useState)(v),[ve,ye]=(0,u.useState)(null),[be,we]=(0,u.useState)(null),_e=(0,u.useRef)(D),{anchorRefs:Ee,activeAnchor:Se}=Pe(e),Oe=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t},{}),Ce=e=>{const t={place:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},content:e=>{G(null!=e?e:o)},html:e=>{Y(null!=e?e:r)},variant:e=>{var t;Q(null!==(t=e)&&void 0!==t?t:l)},offset:e=>{te(null===e?d:Number(e))},wrapper:e=>{var t;de(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:h)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{oe(null===e?g:Number(e))},"delay-hide":e=>{ie(null===e?b:Number(e))},float:e=>{ae(null===e?w:"true"===e)},hidden:e=>{ce(null===e?_:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)})};(0,u.useEffect)(()=>{G(o)},[o]),(0,u.useEffect)(()=>{Y(r)},[r]),(0,u.useEffect)(()=>{Z(c)},[c]),(0,u.useEffect)(()=>{Q(l)},[l]),(0,u.useEffect)(()=>{te(d)},[d]),(0,u.useEffect)(()=>{oe(g)},[g]),(0,u.useEffect)(()=>{ie(b)},[b]),(0,u.useEffect)(()=>{ae(w)},[w]),(0,u.useEffect)(()=>{ce(_)},[_]),(0,u.useEffect)(()=>{me(v)},[v]),(0,u.useEffect)(()=>{_e.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[D]),(0,u.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))},[]),(0,u.useEffect)(()=>{var o;const r=new Set(Ee);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach(e=>{r.add({current:e})})}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${t}']`);if(s&&r.add({current:s}),!r.size)return()=>null;const a=null!==(o=null!=be?be:s)&&void 0!==o?o:Se.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Oe(a);Ce(n)})}),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Oe(a);Ce(e),l.observe(a,c)}return()=>{l.disconnect()}},[Ee,Se,be,t,n]),(0,u.useEffect)(()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!xe("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!xe("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)},[]);let Re=f;const Te=(0,u.useRef)(null);if(i){const e=i({content:(null==be?void 0:be.getAttribute("data-tooltip-content"))||q||null,activeAnchor:be});Re=e?u.createElement("div",{ref:Te,className:"react-tooltip-content-wrapper"},e):null}else q&&(Re=q);X&&(Re=u.createElement(Me,{content:X}));const Ae={forwardRef:$,id:e,anchorId:t,anchorSelect:n,className:ge(s,ve),classNameArrow:a,content:Re,contentWrapperRef:Te,place:K,variant:J,offset:ee,wrapper:ue,events:pe,openOnClick:m,positionStrategy:he,middlewares:y,delayShow:ne,delayHide:re,float:se,hidden:le,noArrow:x,clickable:E,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:R,closeEvents:T,globalCloseEvents:A,imperativeModeOnly:k,style:N,position:P,isOpen:j,defaultIsOpen:L,border:M,opacity:I,arrowColor:F,arrowSize:U,setIsOpen:H,afterShow:B,afterHide:W,disableTooltip:z,activeAnchor:be,setActiveAnchor:e=>we(e),role:V};return u.createElement(De,{...Ae})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||we({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||we({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})});const Fe=window.wp.apiFetch;var Ue=n.n(Fe);const He=window.ReactJSXRuntime,Be=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,i._x)("Attending","RSVP status label for upcoming events","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,i._x)("Waiting List","RSVP status label for upcoming events","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,i._x)("Not Attending","RSVP status label for upcoming events","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,i._x)("Went","RSVP status label for past events","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,i._x)("Didn't Go","RSVP status label for past events","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,i._x)("Didn't Go","RSVP status label for past events","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,i._x)("Didn't Go","RSVP status label for past events","gatherpress")}}};return(0,He.jsxs)("div",{className:"gatherpress-status__response",children:[(0,He.jsx)("span",{className:n[e][t].icon}),(0,He.jsx)("strong",{children:n[e][t].text})]})};function We(e){if("object"==typeof GatherPress)return e.split(".").reduce((e,t)=>e?.[t],GatherPress)}const ze=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:s,maxGuestLimit:l})=>{const[u,d]=(0,o.useState)(t.status),[p,f]=(0,o.useState)(Number(t.anonymous)),[h,m]=(0,o.useState)(t.guests),[v,y]=(0,o.useState)("hidden"),[g,b]=(0,o.useState)("false"),[w,_]=(0,o.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&c().setAppElement(".gatherpress-enabled");const x=e=>{e.preventDefault(),_(!1)},E=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),Ue()({path:We("urls.eventApiPath")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:We("misc.nonce")}}).then(e=>{if(e.success){d(e.status),m(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:8{switch(e){case"attending":return(0,i.__)("You're attending","gatherpress");case"waiting_list":return(0,i.__)("You're wait listed","gatherpress");case"not_attending":return(0,i.__)("You're not attending","gatherpress")}return(0,i.__)("RSVP to this event","gatherpress")},O=()=>(0,He.jsxs)("div",{className:"gatherpress-modal gatherpress-modal__rsvp",children:[(0,He.jsx)("div",{className:"gatherpress-modal__header",children:(0,i.__)("Login Required","gatherpress")}),(0,He.jsxs)("div",{className:"gatherpress-modal__content",children:[(0,He.jsx)("div",{className:"gatherpress-modal__text",children:a((0,i.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ (0,i.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,i._x)("Login","Link text for user authentication","gatherpress")}\n\t\t\t\t\t\t\t\t`))}),""!==We("urls.registrationUrl")&&(0,He.jsx)("div",{className:"gatherpress-modal__text",children:a((0,i.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ (0,i.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,i._x)("Register","Link text for new account creation","gatherpress")}\n\t\t\t\t\t\t\t\t\t`))})]}),(0,He.jsx)("div",{className:"gatherpress-buttons wp-block-buttons",children:(0,He.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,He.jsx)("a",{href:"#",onClick:x,className:"gatherpress-buttons__button wp-block-button__link",children:(0,i._x)("Close","Button label for closing modal dialog","gatherpress")})})})]}),C=({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,i._x)("Attend","RSVP button label for confirming event","gatherpress")):(t="not_attending",n=(0,i._x)("Not Attending","RSVP button label for declining event","gatherpress")),(0,He.jsxs)("div",{className:"gatherpress-modal gatherpress-modal__rsvp",children:[(0,He.jsx)("div",{className:"gatherpress-modal__header",children:S(u)?S(u):(0,He.jsx)(r.Spinner,{})}),(0,He.jsxs)("div",{className:"gatherpress-modal__content",children:[(0,He.jsx)("div",{className:"gatherpress-modal__text",children:a((0,i.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ (0,i.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))}),0{const t=Number(e.target.value);m(t),E(e,u,p,t,!1)},defaultValue:h})]}),s&&(0,He.jsxs)("div",{className:"gatherpress-modal__anonymous",children:[(0,He.jsx)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);f(t),E(e,u,t,0,!1)},checked:p}),(0,He.jsx)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,i.__)("Only admins will see your identity.","gatherpress"),children:(0,i.__)("List me as anonymous.","gatherpress")}),(0,He.jsx)(Ie,{id:"gatherpress-anonymous-tooltip"})]})]}),(0,He.jsxs)("div",{className:"gatherpress-buttons wp-block-buttons",children:[(0,He.jsx)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline",children:(0,He.jsx)("a",{href:"#",onClick:e=>E(e,t,p,"not_attending"===t?0:h,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link",children:n})}),(0,He.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,He.jsx)("a",{href:"#",onClick:x,className:"gatherpress-buttons__button wp-block-button__link",children:(0,i._x)("Close","Button label for closing modal dialog","gatherpress")})})]})]})};return(0,He.jsxs)("div",{className:"gatherpress-rsvp",children:[(0,He.jsxs)("div",{className:"gatherpress-buttons wp-block-buttons",children:[(0,He.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,He.jsx)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link wp-element-button","aria-expanded":g,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(y("hidden"===v?"show":"hidden"),b("false"===g?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),_(!0)})(e),children:(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,i.__)("Edit RSVP","gatherpress")}return(0,i.__)("RSVP","gatherpress")})(u)})}),(0,He.jsxs)(c(),{isOpen:w,onRequestClose:x,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,i.__)("Edit RSVP","gatherpress"),children:[0===t.length&&(0,He.jsx)(O,{}),0!==t.length&&(0,He.jsx)(C,{status:u})]})]}),"no_status"!==u&&(0,He.jsxs)("div",{className:"gatherpress-status",children:[(0,He.jsx)(Be,{type:n,status:u}),0{const[i,s]=(0,o.useState)(r);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,e=>{o(e.detail)},!1)}})({setRsvpResponse:s},e);let a="";return"object"==typeof i&&void 0!==i[t]&&(r=[...i[t].records],n&&(r=r.splice(0,n)),a=r.map((e,t)=>{const{name:n,photo:o}=e;return(0,He.jsx)("figure",{className:"gatherpress-rsvp-response__member-avatar",children:(0,He.jsx)("img",{alt:n,title:n,src:o})},t)})),(0,He.jsx)(He.Fragment,{children:a})},$e=e=>{const{type:t,event:n,eventOptions:o}=e,r="default"===o.imageSize?"featured_image":"featured_image_"+o.imageSize,i=a(n[r]),s="gatherpress-events-list";let l="location";const c=n.venue?.is_online_event;return c&&(l="video-alt2"),(0,He.jsxs)("div",{className:`${s}`,children:[(0,He.jsx)("div",{className:`${s}__header`,children:(0,He.jsxs)("div",{className:`${s}__info`,children:[o.showFeaturedImage&&(0,He.jsx)("figure",{className:`${s}__image`,children:(0,He.jsx)("a",{href:n.permalink,children:i})}),(0,He.jsx)("div",{className:`${s}__datetime`,children:(0,He.jsx)("strong",{children:n.datetime_start})}),(0,He.jsx)("div",{className:`${s}__title`,children:(0,He.jsx)("a",{href:n.permalink,children:a(n.title)})}),n.venue&&o.showVenue&&(0,He.jsxs)("div",{className:`${s}__venue`,children:[(0,He.jsx)("span",{className:`dashicons dashicons-${l}`}),!c&&(0,He.jsx)("a",{href:n.venue.permalink,children:a(n.venue.name)}),c&&(0,He.jsx)("span",{children:a(n.venue.name)})]}),o.showDescription&&(0,He.jsx)("div",{className:`${s}__content`,children:(0,He.jsx)("div",{className:`${s}__excerpt`,children:a((u=n.excerpt,u.split(" ").splice(0,parseInt(o.descriptionLimit)).join(" ")+"[…]"))})})]})}),(0,He.jsxs)("div",{className:`${s}__footer`,children:[o.showRsvpResponse&&(0,He.jsx)("div",{className:"gatherpress-rsvp-response__items",children:(0,He.jsx)(Ve,{postId:n.ID,value:"attending",responses:n.responses,limit:"3"})}),"upcoming"===t&&o.showRsvp&&(0,He.jsx)(ze,{postId:n.ID,currentUser:n.current_user,type:t,enableAnonymousRsvp:n.gatherpress_enable_anonymous_rsvp}),"past"===t&&o.showRsvp&&""!==n.current_user&&(0,He.jsx)(Be,{type:t,status:n.current_user?.status})]})]});var u},qe=e=>{const{eventOptions:t,maxNumberOfEvents:n,datetimeFormat:s,type:a,topics:l,venues:c}=e,[u,d]=(0,o.useState)([]),[p,f]=(0,o.useState)(!1),h=u.map(e=>(0,He.jsx)($e,{eventOptions:t,type:a,event:e},e.ID));return(0,o.useEffect)(()=>{let e="",t="";"object"==typeof l&&(e=l.map(e=>e.slug)?.join(",")),"object"==typeof c&&(t=c.map(e=>e.slug)?.join(",")),We("misc.isUserLoggedIn")?Ue()({path:We("urls.eventApiPath")+`/events-list?event_list_type=${a}&max_number=${n}&datetime_format=${s}&topics=${e}&venues=${t}`}).then(e=>{f(!0),d(e)}):fetch(We("urls.eventApiUrl")+`/events-list?event_list_type=${a}&max_number=${n}&datetime_format=${s}&topics=${e}&venues=${t}`).then(e=>e.json()).then(e=>{f(!0),d(e)})},[d,n,s,a,l,c]),(0,He.jsxs)("div",{className:`gatherpress-${a}-events-list`,children:[!p&&(0,He.jsx)(r.Spinner,{}),p&&0===u.length&&(()=>{const e="upcoming"===a?(0,i.__)("There are no upcoming events.","gatherpress"):(0,i.__)("There are no past events.","gatherpress");return(0,He.jsx)("div",{className:`gatherpress-${a}-events__no_events_message`,children:e})})(),p&&h]})};t()(()=>{const e=document.querySelectorAll('[data-gatherpress_block_name="events-list"]');for(const a of e){var t,n,r,i,s;const e=JSON.parse(a.dataset.gatherpress_block_attrs);(0,o.createRoot)(a).render((0,He.jsx)(qe,{eventOptions:null!==(t=e.eventOptions)&&void 0!==t?t:{descriptionLimit:55,imageSize:"default",showRsvpResponse:!0,showDescription:!0,showFeaturedImage:!0,showRsvp:!0,showVenue:!0},type:null!==(n=e.type)&&void 0!==n?n:"upcoming",maxNumberOfEvents:null!==(r=e.maxNumberOfEvents)&&void 0!==r?r:5,datetimeFormat:null!==(i=e.datetimeFormat)&&void 0!==i?i:"D, M j, Y, g:i a T",topics:null!==(s=e.topics)&&void 0!==s?s:[]}))}})})()})();