/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={918:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},8400:(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},219:(e,t,n)=>{"use strict";var r=n(3763),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},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=u(t),v=u(n),g=0;g<a.length;++g){var m=a[g];if(!i[m]&&(!r||!r[m])&&(!v||!v[m])&&(!l||!l[m])){var y=f(n,m);try{s(t,m,y)}catch(b){}}}}return t}},4983:(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,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=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,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(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 l:case a:case h:return e;default:switch(e=e&&e.$$typeof){case s:case f:case g:case v:case u:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===l||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},2955:(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")},4273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,f=(e=(0,r.escapeSpecialCharacters)(e)).match(l),h=f&&f[1]?f[1].toLowerCase():"";switch(h){case o:var p=d(e);if(!u.test(e))null===(t=null===(m=p.querySelector(i))||void 0===m?void 0:m.parentNode)||void 0===t||t.removeChild(m);if(!s.test(e))null===(n=null===(m=p.querySelector(a))||void 0===m?void 0:m.parentNode)||void 0===n||n.removeChild(m);return p.querySelectorAll(o);case i:case a:var g=c(e).querySelectorAll(h);return s.test(e)&&u.test(e)?g[0].parentNode.childNodes:g;default:return v?v(e):(m=c(e,a).querySelector(a)).childNodes;var m}};var r=n(1454),o="html",i="head",a="body",l=/<([a-zA-Z]+[0-9]?)/,u=/<head[^]*>/i,s=/<body[^]*>/i,c=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`")},f="object"===typeof window&&window.DOMParser;if("function"===typeof f){var h=new f;c=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"===typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var v,g="object"===typeof document&&document.createElement("template");g&&g.content&&(v=function(e){return g.innerHTML=e,g.content.childNodes})},70:function(e,t,n){"use strict";var r=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(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(4273)),i=n(1454),a=/<(![a-zA-Z\s]+)>/},1454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var u,s=[],c=0,d=t.length;c<d;c++){var f=t[c];switch(f.nodeType){case 1:var h=a(f.nodeName);(u=new r.Element(h,i(f.attributes))).children=e("template"===h?f.content.childNodes:f.childNodes,u);break;case 3:u=new r.Text(l(f.nodeValue));break;case 8:u=new r.Comment(f.nodeValue);break;default:continue}var p=s[c-1]||null;p&&(p.next=u),u.parent=n,u.prev=p,u.next=null,s.push(u)}o&&((u=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=s[0]||null,u.parent=n,s.unshift(u),s[1]&&(s[1].prev=s[0]));return s};var r=n(196),o=n(2955);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){var t=function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},196:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(8400),a=n(1538);o(n(1538),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(n=t,t=l),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:l,this.elementCB=null!==n&&void 0!==n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.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,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},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 a.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 a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.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 a.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=u,t.default=u},1538:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(8400),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=s;var c=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=c;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var p=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function v(e){return(0,i.isTag)(e)}function g(e){return e.type===i.ElementType.CDATA}function m(e){return e.type===i.ElementType.Text}function y(e){return e.type===i.ElementType.Comment}function b(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new u(e.data);else if(y(e))n=new s(e.data);else if(v(e)){var r=t?C(e.children):[],i=new p(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?C(e.children):[];var a=new f(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?C(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var d=new c(e.name,e.data);null!=e["x-name"]&&(d["x-name"]=e["x-name"],d["x-publicId"]=e["x-publicId"],d["x-systemId"]=e["x-systemId"]),n=d}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=p,t.isTag=v,t.isCDATA=g,t.isText=m,t.isComment=y,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},4495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},s=Boolean(e.type&&l[e.type]);for(var c in e){var d=e[c];if((0,r.isCustomAttribute)(c))n[c]=d;else{var f=c.toLowerCase(),h=u(f);if(h){var p=(0,r.getPropertyInfo)(h);switch(i.includes(h)&&a.includes(t)&&!s&&(h=u("default"+f)),n[h]=d,p&&p.type){case r.BOOLEAN:n[h]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[h]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(6311),o=n(8625),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function u(e){return r.possibleStandardNames[e]}},4789:function(e,t,n){"use strict";var r=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 r=[],o="function"===typeof n.replace,s=n.transform||a.returnFirstArg,c=n.library||l,d=c.cloneElement,f=c.createElement,h=c.isValidElement,p=t.length,v=0;v<p;v++){var g=t[v];if(o){var m=n.replace(g,v);if(h(m)){p>1&&(m=d(m,{key:m.key||v})),r.push(s(m,g,v));continue}}if("text"!==g.type){var y=g,b={};u(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var w=void 0;switch(g.type){case"script":case"style":g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(w=e(g.children,n));break;default:continue}p>1&&(b.key=v),r.push(s(f(g.name,b,w),g,v))}else{var x=!g.data.trim().length;if(x&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent))continue;if(n.trim&&x)continue;r.push(s(g.data,g,v))}}return 1===r.length?r[0]:r};var o=n(5043),i=r(n(4495)),a=n(8625),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function u(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},1001:function(e,t,n){"use strict";var r=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");if(!e)return[];return(0,a.default)((0,o.default)(e,(null===t||void 0===t?void 0:t.htmlparser2)||u),t)};var o=r(n(70));t.htmlToDOM=o.default;var i=r(n(4495));t.attributesToProps=i.default;var a=r(n(4789));t.domToReact=a.default;var l=n(8801);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var u={lowerCaseAttributeNames:!1}},8625:function(e,t,n){"use strict";var r=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){if(!e.includes("-"))return Boolean(t&&"string"===typeof t.is);if(a.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!==typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,i.default)(e,l)}catch(n){t.style={}}};var o=n(5043),i=r(n(7294)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.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}},8801:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(8400),a=n(185);o(n(185),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"===typeof t&&(n=t,t=l),"object"===typeof e&&(t=e,e=void 0),this.callback=null!==e&&void 0!==e?e:null,this.options=null!==t&&void 0!==t?t:l,this.elementCB=null!==n&&void 0!==n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.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,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},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 a.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 a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.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 a.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=u,t.default=u},185:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=n(8400),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Text,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Comment,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=s;var c=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=i.ElementType.Directive,r}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=c;var d=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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=d;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);t.Document=h;var p=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function v(e){return(0,i.isTag)(e)}function g(e){return e.type===i.ElementType.CDATA}function m(e){return e.type===i.ElementType.Text}function y(e){return e.type===i.ElementType.Comment}function b(e){return e.type===i.ElementType.Directive}function w(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),m(e))n=new u(e.data);else if(y(e))n=new s(e.data);else if(v(e)){var r=t?C(e.children):[],i=new p(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?C(e.children):[];var a=new f(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?C(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var d=new c(e.name,e.data);null!=e["x-name"]&&(d["x-name"]=e["x-name"],d["x-publicId"]=e["x-publicId"],d["x-systemId"]=e["x-systemId"]),n=d}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=p,t.isTag=v,t.isCDATA=g,t.isText=m,t.isComment=y,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},4403:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(u,s):s}e.exports=function(e,u){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var d=1,f=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new v(e),b(),t}}function v(e){this.start=e,this.end={line:d,column:f},this.source=u.source}v.prototype.content=e;var g=[];function m(t){var n=new Error(u.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=d,n.column=f,n.source=e,!u.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function C(){var e=p(),n=y(o);if(n){if(x(),!y(i))return m("property missing ':'");var r=y(a),u=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return y(l),u}}return b(),function(){var e,t=[];for(w(t);e=C();)!1!==e&&(t.push(e),w(t));return t}()}},7685:(e,t,n)=>{var r=n(7937)(n(6552),"DataView");e.exports=r},8724:(e,t,n)=>{var r=n(7615),o=n(5051),i=n(2154),a=n(8734),l=n(2662);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},7160:(e,t,n)=>{var r=n(7563),o=n(9935),i=n(4190),a=n(1946),l=n(1714);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},5204:(e,t,n)=>{var r=n(7937)(n(6552),"Map");e.exports=r},4816:(e,t,n)=>{var r=n(7251),o=n(7159),i=n(438),a=n(9394),l=n(6874);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},5387:(e,t,n)=>{var r=n(7937)(n(6552),"Promise");e.exports=r},2070:(e,t,n)=>{var r=n(7937)(n(6552),"Set");e.exports=r},8902:(e,t,n)=>{var r=n(4816),o=n(6179),i=n(6704);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},5538:(e,t,n)=>{var r=n(7160),o=n(4545),i=n(793),a=n(7760),l=n(3892),u=n(6788);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s},9812:(e,t,n)=>{var r=n(6552).Symbol;e.exports=r},2929:(e,t,n)=>{var r=n(6552).Uint8Array;e.exports=r},6600:(e,t,n)=>{var r=n(7937)(n(6552),"WeakMap");e.exports=r},4710:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},7529:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},5866:(e,t,n)=>{var r=n(8468);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1558:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},3204:(e,t,n)=>{var r=n(3343),o=n(2777),i=n(4052),a=n(4543),l=n(9194),u=n(1268),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],v=p.length;for(var g in e)!t&&!s.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,v))||p.push(g);return p}},149:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},8895:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2587:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},1340:(e,t,n)=>{var r=n(3211);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2952:(e,t,n)=>{var r=n(5652);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},1775:(e,t,n)=>{var r=n(5654);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},770:e=>{e.exports=function(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},5652:(e,t,n)=>{var r=n(4664),o=n(6516)(r);e.exports=o},5816:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},755:(e,t,n)=>{var r=n(8895),o=n(7116);e.exports=function e(t,n,i,a,l){var u=-1,s=t.length;for(i||(i=o),l||(l=[]);++u<s;){var c=t[u];n>0&&i(c)?n>1?e(c,n-1,i,a,l):r(l,c):a||(l[l.length]=c)}return l}},4258:(e,t,n)=>{var r=n(5906)();e.exports=r},4664:(e,t,n)=>{var r=n(4258),o=n(8673);e.exports=function(e,t){return e&&r(e,t,o)}},2969:(e,t,n)=>{var r=n(5324),o=n(914);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},4262:(e,t,n)=>{var r=n(8895),o=n(4052);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},6913:(e,t,n)=>{var r=n(9812),o=n(4552),i=n(6095),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},6741:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},7894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8468:(e,t,n)=>{var r=n(5816),o=n(644),i=n(4020);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},5193:(e,t,n)=>{var r=n(6913),o=n(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},6989:(e,t,n)=>{var r=n(6399),o=n(2761);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},6399:(e,t,n)=>{var r=n(5538),o=n(3668),i=n(9987),a=n(5752),l=n(6924),u=n(4052),s=n(4543),c=n(1268),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,g,m){var y=u(e),b=u(t),w=y?f:l(e),x=b?f:l(t),C=(w=w==d?h:w)==h,k=(x=x==d?h:x)==h,S=w==x;if(S&&s(e)){if(!s(t))return!1;y=!0,C=!1}if(S&&!C)return m||(m=new r),y||c(e)?o(e,t,n,v,g,m):i(e,t,w,n,v,g,m);if(!(1&n)){var D=C&&p.call(e,"__wrapped__"),E=k&&p.call(t,"__wrapped__");if(D||E){var A=D?e.value():e,_=E?t.value():t;return m||(m=new r),g(A,_,n,v,m)}}return!!S&&(m||(m=new r),a(e,t,n,v,g,m))}},6532:(e,t,n)=>{var r=n(5538),o=n(6989);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<l;){var c=(s=n[a])[0],d=e[c],f=s[1];if(u&&s[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(i)var p=i(d,f,c,e,t,h);if(!(void 0===p?o(f,d,3,i,h):p))return!1}}return!0}},644:e=>{e.exports=function(e){return e!==e}},6954:(e,t,n)=>{var r=n(1629),o=n(7857),i=n(6686),a=n(6996),l=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,c=u.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},5428:(e,t,n)=>{var r=n(6913),o=n(6173),i=n(2761),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},9096:(e,t,n)=>{var r=n(9256),o=n(5029),i=n(3279),a=n(4052),l=n(3932);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},3713:(e,t,n)=>{var r=n(6140),o=n(1143),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9256:(e,t,n)=>{var r=n(6532),o=n(3781),i=n(1310);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},5029:(e,t,n)=>{var r=n(6989),o=n(3097),i=n(3366),a=n(2597),l=n(9417),u=n(1310),s=n(914);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2866:(e,t,n)=>{var r=n(2969);e.exports=function(e){return function(t){return r(t,e)}}},9676:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,l=n(t((r-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},3871:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},3343:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8541:(e,t,n)=>{var r=n(9812),o=n(149),i=n(4052),a=n(9841),l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1141:(e,t,n)=>{var r=n(143),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},4416:(e,t,n)=>{var r=n(8902),o=n(5866),i=n(1558),a=n(8114),l=n(8182),u=n(2074);e.exports=function(e,t,n){var s=-1,c=o,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=i;else if(d>=200){var v=t?null:l(e);if(v)return u(v);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++s<d;){var g=e[s],m=t?t(g):g;if(g=n||0!==g?g:0,f&&m===m){for(var y=p.length;y--;)if(p[y]===m)continue e;t&&p.push(m),h.push(g)}else c(p,m,n)||(p!==h&&p.push(m),h.push(g))}return h}},8114:e=>{e.exports=function(e,t){return e.has(t)}},5324:(e,t,n)=>{var r=n(4052),o=n(2597),i=n(4079),a=n(1069);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},3440:(e,t,n)=>{var r=n(6552)["__core-js_shared__"];e.exports=r},9449:(e,t,n)=>{var r=n(4710),o=n(2952),i=n(9096),a=n(4052);e.exports=function(e,t){return function(n,l){var u=a(n)?r:o,s=t?t():{};return u(n,e,i(l,2),s)}}},6516:(e,t,n)=>{var r=n(6571);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a<i)&&!1!==o(l[a],a,l););return n}}},5906:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},3331:(e,t,n)=>{var r=n(9676),o=n(929),i=n(7303);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},8182:(e,t,n)=>{var r=n(2070),o=n(5713),i=n(2074),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},5654:(e,t,n)=>{var r=n(7937),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},3668:(e,t,n)=>{var r=n(8902),o=n(2587),i=n(8114);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,d=t.length;if(c!=d&&!(s&&d>c))return!1;var f=u.get(e),h=u.get(t);if(f&&h)return f==t&&h==e;var p=-1,v=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p<c;){var m=e[p],y=t[p];if(a)var b=s?a(y,m,p,t,e,u):a(m,y,p,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||l(m,e,n,a,u)))return g.push(t)}))){v=!1;break}}else if(m!==y&&!l(m,y,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},9987:(e,t,n)=>{var r=n(9812),o=n(2929),i=n(3211),a=n(3668),l=n(4160),u=n(2074),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=l;case"[object Set]":var p=1&r;if(h||(h=u),e.size!=t.size&&!p)return!1;var v=f.get(e);if(v)return v==t;r|=2,f.set(e,t);var g=a(h(e),h(t),r,s,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},5752:(e,t,n)=>{var r=n(9395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=s[d];if(!(u?f in t:o.call(t,f)))return!1}var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var v=!0;l.set(e,t),l.set(t,e);for(var g=u;++d<c;){var m=e[f=s[d]],y=t[f];if(i)var b=u?i(y,m,f,t,e,l):i(m,y,f,e,t,l);if(!(void 0===b?m===y||a(m,y,n,i,l):b)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},7105:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9395:(e,t,n)=>{var r=n(4262),o=n(9621),i=n(8673);e.exports=function(e){return r(e,i,o)}},2622:(e,t,n)=>{var r=n(705);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},3781:(e,t,n)=>{var r=n(9417),o=n(8673);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},7937:(e,t,n)=>{var r=n(6954),o=n(4657);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4552:(e,t,n)=>{var r=n(9812),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},9621:(e,t,n)=>{var r=n(7529),o=n(7828),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},6924:(e,t,n)=>{var r=n(7685),o=n(5204),i=n(5387),a=n(2070),l=n(6600),u=n(6913),s=n(6996),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",v=s(r),g=s(o),m=s(i),y=s(a),b=s(l),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||o&&w(new o)!=c||i&&w(i.resolve())!=d||a&&w(new a)!=f||l&&w(new l)!=h)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case v:return p;case g:return c;case m:return d;case y:return f;case b:return h}return t}),e.exports=w},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9057:(e,t,n)=>{var r=n(5324),o=n(2777),i=n(4052),a=n(9194),l=n(6173),u=n(914);e.exports=function(e,t,n){for(var s=-1,c=(t=r(t,e)).length,d=!1;++s<c;){var f=u(t[s]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++s!=c?d:!!(c=null==e?0:e.length)&&l(c)&&a(f,c)&&(i(e)||o(e))}},7615:(e,t,n)=>{var r=n(5575);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2154:(e,t,n)=>{var r=n(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},8734:(e,t,n)=>{var r=n(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2662:(e,t,n)=>{var r=n(5575);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},7116:(e,t,n)=>{var r=n(9812),o=n(2777),i=n(4052),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},929:(e,t,n)=>{var r=n(3211),o=n(6571),i=n(9194),a=n(6686);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&i(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},2597:(e,t,n)=>{var r=n(4052),o=n(9841),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7857:(e,t,n)=>{var r=n(3440),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9417:(e,t,n)=>{var r=n(6686);e.exports=function(e){return e===e&&!r(e)}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},9935:(e,t,n)=>{var r=n(1340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4190:(e,t,n)=>{var r=n(1340);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},1946:(e,t,n)=>{var r=n(1340);e.exports=function(e){return r(this.__data__,e)>-1}},1714:(e,t,n)=>{var r=n(1340);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},7251:(e,t,n)=>{var r=n(8724),o=n(7160),i=n(5204);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7159:(e,t,n)=>{var r=n(2622);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},438:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).get(e)}},9394:(e,t,n)=>{var r=n(2622);e.exports=function(e){return r(this,e).has(e)}},6874:(e,t,n)=>{var r=n(2622);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},4160:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},1310:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},8259:(e,t,n)=>{var r=n(5797);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},5575:(e,t,n)=>{var r=n(7937)(Object,"create");e.exports=r},1143:(e,t,n)=>{var r=n(3028)(Object.keys,Object);e.exports=r},6832:(e,t,n)=>{e=n.nmd(e);var r=n(7105),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6552:(e,t,n)=>{var r=n(7105),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},2074:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4545:(e,t,n)=>{var r=n(7160);e.exports=function(){this.__data__=new r,this.size=0}},793:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,n)=>{var r=n(7160),o=n(5204),i=n(4816);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},4020:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},4079:(e,t,n)=>{var r=n(8259),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},914:(e,t,n)=>{var r=n(9841);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},143:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7084:(e,t,n)=>{var r=n(3871),o=n(929),i=n(9140),a=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?o(e,t,n):void 0===t)?1:l(i(t),0);var u=null==e?0:e.length;if(!u||t<1)return[];for(var s=0,c=0,d=Array(a(u/t));s<u;)d[c++]=r(e,s,s+=t);return d}},4626:(e,t,n)=>{var r=n(770),o=n(801);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=o(n))===n?n:0),void 0!==t&&(t=(t=o(t))===t?t:0),r(o(e),t,n)}},3950:(e,t,n)=>{var r=n(6686),o=n(4757),i=n(801),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,d,f,h,p=0,v=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=u,r=s;return u=s=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-p>=c}function w(){var e=o();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-h);return g?l(n,c-(e-p)):n}(e))}function x(e){return f=void 0,m&&u?y(e):(u=s=void 0,d)}function C(){var e=o(),n=b(e);if(u=arguments,s=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(w,t),v?y(e):d}(h);if(g)return clearTimeout(f),f=setTimeout(w,t),y(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=h=s=f=void 0},C.flush=function(){return void 0===f?d:x(o())},C}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},819:(e,t,n)=>{var r=n(755);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},3097:(e,t,n)=>{var r=n(2969);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},9835:(e,t,n)=>{var r=n(1775),o=n(9449),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},2117:(e,t,n)=>{var r=n(6741),o=n(9057);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3366:(e,t,n)=>{var r=n(7894),o=n(9057);e.exports=function(e,t){return null!=e&&o(e,t,r)}},3279:e=>{e.exports=function(e){return e}},2777:(e,t,n)=>{var r=n(5193),o=n(2761),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,n)=>{var r=n(1629),o=n(6173);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4543:(e,t,n)=>{e=n.nmd(e);var r=n(6552),o=n(14),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},1629:(e,t,n)=>{var r=n(6913),o=n(6686);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},9841:(e,t,n)=>{var r=n(6913),o=n(2761);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1268:(e,t,n)=>{var r=n(5428),o=n(7574),i=n(6832),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},8673:(e,t,n)=>{var r=n(3204),o=n(3713),i=n(6571);e.exports=function(e){return i(e)?r(e):o(e)}},3536:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",u=16,s=32,c=64,d=128,f=256,h=1/0,p=9007199254740991,v=NaN,g=4294967295,m=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",s],["partialRight",c],["rearg",f]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",C="[object Error]",k="[object Function]",S="[object GeneratorFunction]",D="[object Map]",E="[object Number]",A="[object Object]",_="[object Promise]",O="[object RegExp]",F="[object Set]",R="[object String]",M="[object Symbol]",T="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",z="[object Float64Array]",N="[object Int8Array]",B="[object Int16Array]",H="[object Int32Array]",j="[object Uint8Array]",V="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",$=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,q=RegExp(G.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",De="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['\u2019]",Me="["+Se+"]",Te="["+Fe+"]",Pe="["+De+"]",Ie="\\d+",Le="["+Ee+"]",ze="["+Ae+"]",Ne="[^"+Se+Fe+Ie+Ee+Ae+_e+"]",Be="\\ud83c[\\udffb-\\udfff]",He="[^"+Se+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+_e+"]",Ue="\\u200d",$e="(?:"+ze+"|"+Ne+")",Xe="(?:"+We+"|"+Ne+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+Be+")"+"?",qe="["+Oe+"]?",Qe=qe+Ke+("(?:"+Ue+"(?:"+[He,je,Ve].join("|")+")"+qe+Ke+")*"),Ze="(?:"+[Le,je,Ve].join("|")+")"+Qe,Je="(?:"+[He+Pe+"?",Pe,je,Ve,Me].join("|")+")",et=RegExp(Re,"g"),tt=RegExp(Pe,"g"),nt=RegExp(Be+"(?="+Be+")|"+Je+Qe,"g"),rt=RegExp([We+"?"+ze+"+"+Ye+"(?="+[Te,We,"$"].join("|")+")",Xe+"+"+Ge+"(?="+[Te,We+$e,"$"].join("|")+")",We+"?"+$e+"+"+Ye,We+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),ot=RegExp("["+Ue+Se+De+Oe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ut={};ut[L]=ut[z]=ut[N]=ut[B]=ut[H]=ut[j]=ut[V]=ut[W]=ut[U]=!0,ut[y]=ut[b]=ut[P]=ut[w]=ut[I]=ut[x]=ut[C]=ut[k]=ut[D]=ut[E]=ut[A]=ut[O]=ut[F]=ut[R]=ut[T]=!1;var st={};st[y]=st[b]=st[P]=st[I]=st[w]=st[x]=st[L]=st[z]=st[N]=st[B]=st[H]=st[D]=st[E]=st[A]=st[O]=st[F]=st[R]=st[M]=st[j]=st[V]=st[W]=st[U]=!0,st[C]=st[k]=st[T]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function("return this")(),gt=t&&!t.nodeType&&t,mt=gt&&e&&!e.nodeType&&e,yt=mt&&mt.exports===gt,bt=yt&&ht.process,wt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,Ct=wt&&wt.isDate,kt=wt&&wt.isMap,St=wt&&wt.isRegExp,Dt=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ft(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Tt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function zt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Nt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=Yt("length");function jt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Vt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,$t,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function $t(e){return e!==e}function Xt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:v}function Yt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function qt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return It(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var on=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ln(e){return"\\"+ct[e]}function un(e){return ot.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return un(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ht(e)}function vn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var mn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?vt:yn.defaults(vt.Object(),t,yn.pick(vt,at))).Array,r=t.Date,le=t.Error,Se=t.Function,De=t.Math,Ee=t.Object,Ae=t.RegExp,_e=t.String,Oe=t.TypeError,Fe=n.prototype,Re=Se.prototype,Me=Ee.prototype,Te=t["__core-js_shared__"],Pe=Re.toString,Ie=Me.hasOwnProperty,Le=0,ze=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ne=Me.toString,Be=Pe.call(Ee),He=vt._,je=Ae("^"+Pe.call(Ie).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=yt?t.Buffer:o,We=t.Symbol,Ue=t.Uint8Array,$e=Ve?Ve.allocUnsafe:o,Xe=cn(Ee.getPrototypeOf,Ee),Ye=Ee.create,Ge=Me.propertyIsEnumerable,Ke=Fe.splice,qe=We?We.isConcatSpreadable:o,Qe=We?We.iterator:o,Ze=We?We.toStringTag:o,Je=function(){try{var e=fi(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==vt.Date.now&&r.now,ct=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=De.ceil,pt=De.floor,gt=Ee.getOwnPropertySymbols,mt=Ve?Ve.isBuffer:o,bt=t.isFinite,wt=Fe.join,Ht=cn(Ee.keys,Ee),Gt=De.max,bn=De.min,wn=r.now,xn=t.parseInt,Cn=De.random,kn=Fe.reverse,Sn=fi(t,"DataView"),Dn=fi(t,"Map"),En=fi(t,"Promise"),An=fi(t,"Set"),_n=fi(t,"WeakMap"),On=fi(Ee,"create"),Fn=_n&&new _n,Rn={},Mn=Ni(Sn),Tn=Ni(Dn),Pn=Ni(En),In=Ni(An),Ln=Ni(_n),zn=We?We.prototype:o,Nn=zn?zn.valueOf:o,Bn=zn?zn.toString:o;function Hn(e){if(tl(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(Ie.call(e,"__wrapped__"))return Bi(e)}return new Wn(e)}var jn=function(){function e(){}return function(t){if(!el(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Vn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Xn(e);this.size=t.size}function qn(e,t){var n=Ua(e),r=!n&&Wa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&sl(e),a=n||r||o||i,l=a?Qt(e.length,_e):[],u=l.length;for(var s in e)!t&&!Ie.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||bi(s,u))||l.push(s);return l}function Qn(e){var t=e.length;return t?e[Gr(0,t-1)]:o}function Zn(e,t){return Ii(Fo(e),lr(t,0,e.length))}function Jn(e){return Ii(Fo(e))}function er(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];Ie.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&Ro(t,Rl(t),e)}function ir(e,t,n){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,i=t.length,a=n(i),l=null==e;++r<i;)a[r]=l?o:El(e,t[r]);return a}function lr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,a){var l,u=1&t,s=2&t,c=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!el(e))return e;var d=Ua(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Fo(e,l)}else{var f=vi(e),h=f==k||f==S;if(Ga(e))return So(e,u);if(f==A||f==y||h&&!i){if(l=s||h?{}:mi(e),!u)return s?function(e,t){return Ro(e,pi(e),t)}(e,function(e,t){return e&&Ro(t,Ml(t),e)}(l,e)):function(e,t){return Ro(e,hi(e),t)}(e,or(l,e))}else{if(!st[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case P:return Do(e);case w:case x:return new r(+e);case I:return function(e,t){var n=t?Do(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case z:case N:case B:case H:case j:case V:case W:case U:return Eo(e,n);case D:return new r;case E:case R:return new r(e);case O:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case F:return new r;case M:return o=e,Nn?Ee(Nn.call(o)):{}}var o}(e,f,u)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,l),al(e)?e.forEach((function(r){l.add(ur(r,t,n,r,e,a))})):nl(e)&&e.forEach((function(r,o){l.set(o,ur(r,t,n,o,e,a))}));var v=d?o:(c?s?ii:oi:s?Ml:Rl)(e);return Ot(v||e,(function(r,o){v&&(r=e[o=r]),tr(l,o,ur(r,t,n,o,e,a))})),l}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Oe(i);return Ri((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,i=Tt,a=!0,l=e.length,u=[],s=t.length;if(!l)return u;n&&(t=It(t,Jt(n))),r?(i=Pt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Gn(t));e:for(;++o<l;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d===d){for(var f=s;f--;)if(t[f]===d)continue e;u.push(c)}else i(t,d,r)||u.push(c)}return u}Hn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:Hn}},Hn.prototype=Vn.prototype,Hn.prototype.constructor=Hn,Wn.prototype=jn(Vn.prototype),Wn.prototype.constructor=Wn,Un.prototype=jn(Vn.prototype),Un.prototype.constructor=Un,$n.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},$n.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$n.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},$n.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Ie.call(t,e)},$n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?a:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?o:t[n][1]},Xn.prototype.has=function(e){return nr(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Dn||Xn),string:new $n}},Yn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ci(this,e).get(e)},Yn.prototype.has=function(e){return ci(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,a),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!Dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Po(wr),hr=Po(xr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(u===o?l===l&&!ul(l):n(l,u)))var u=l,s=a}return s}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?mr(l,t-1,n,r,o):Lt(o,l):r||(o[o.length]=l)}return o}var yr=Io(),br=Io(!0);function wr(e,t){return e&&yr(e,t,Rl)}function xr(e,t){return e&&br(e,t,Rl)}function Cr(e,t){return Mt(t,(function(t){return Qa(e[t])}))}function kr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:o}function Sr(e,t,n){var r=t(e);return Ua(e)?r:Lt(r,n(e))}function Dr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Ie.call(e,Ze),n=e[Ze];try{e[Ze]=o;var r=!0}catch(a){}var i=Ne.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return i}(e):function(e){return Ne.call(e)}(e)}function Er(e,t){return e>t}function Ar(e,t){return null!=e&&Ie.call(e,t)}function _r(e,t){return null!=e&&t in Ee(e)}function Or(e,t,r){for(var i=r?Pt:Tt,a=e[0].length,l=e.length,u=l,s=n(l),c=1/0,d=[];u--;){var f=e[u];u&&t&&(f=It(f,Jt(t))),c=bn(f.length,c),s[u]=!r&&(t||a>=120&&f.length>=120)?new Gn(u&&f):o}f=e[0];var h=-1,p=s[0];e:for(;++h<a&&d.length<c;){var v=f[h],g=t?t(v):v;if(v=r||0!==v?v:0,!(p?tn(p,g):i(d,g,r))){for(u=l;--u;){var m=s[u];if(!(m?tn(m,g):i(e[u],g,r)))continue e}p&&p.push(g),d.push(v)}}return d}function Fr(e,t,n){var r=null==(e=_i(e,t=wo(t,e)))?e:e[zi(qi(t))];return null==r?o:At(r,e,n)}function Rr(e){return tl(e)&&Dr(e)==y}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!tl(e)&&!tl(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var l=Ua(e),u=Ua(t),s=l?b:vi(e),c=u?b:vi(t),d=(s=s==y?A:s)==A,f=(c=c==y?A:c)==A,h=s==c;if(h&&Ga(e)){if(!Ga(t))return!1;l=!0,d=!1}if(h&&!d)return a||(a=new Kn),l||sl(e)?ni(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case w:case x:case E:return Ha(+e,+t);case C:return e.name==t.name&&e.message==t.message;case O:case R:return e==t+"";case D:var l=sn;case F:var u=1&r;if(l||(l=fn),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=ni(l(e),l(t),r,o,i,a);return a.delete(e),c;case M:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var p=d&&Ie.call(e,"__wrapped__"),v=f&&Ie.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return a||(a=new Kn),i(g,m,n,r,a)}}if(!h)return!1;return a||(a=new Kn),function(e,t,n,r,i,a){var l=1&n,u=oi(e),s=u.length,c=oi(t),d=c.length;if(s!=d&&!l)return!1;var f=s;for(;f--;){var h=u[f];if(!(l?h in t:Ie.call(t,h)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);var m=l;for(;++f<s;){var y=e[h=u[f]],b=t[h];if(r)var w=l?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(w===o?y===b||i(y,b,n,r,a):w)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var x=e.constructor,C=t.constructor;x==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Mr,i))}function Tr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Ee(e);i--;){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var s=(u=n[i])[0],c=e[s],d=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var f=new Kn;if(r)var h=r(c,d,s,e,t,f);if(!(h===o?Mr(d,c,3,r,f):h))return!1}}return!0}function Pr(e){return!(!el(e)||(t=e,ze&&ze in t))&&(Qa(e)?je:ye).test(Ni(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?Ua(e)?jr(e[0],e[1]):Hr(e):fu(e)}function Lr(e){if(!Si(e))return Ht(e);var t=[];for(var n in Ee(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!el(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Nr(e,t){return e<t}function Br(e,t){var r=-1,o=Xa(e)?n(e.length):[];return fr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Hr(e){var t=di(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function jr(e,t){return xi(e)&&Di(t)?Ei(zi(e),t):function(n){var r=El(n,e);return r===o&&r===t?Al(n,e):Mr(t,r,3)}}function Vr(e,t,n,r,i){e!==t&&yr(t,(function(a,l){if(i||(i=new Kn),el(a))!function(e,t,n,r,i,a,l){var u=Oi(e,n),s=Oi(t,n),c=l.get(s);if(c)return void er(e,n,c);var d=a?a(u,s,n+"",e,t,l):o,f=d===o;if(f){var h=Ua(s),p=!h&&Ga(s),v=!h&&!p&&sl(s);d=s,h||p||v?Ua(u)?d=u:Ya(u)?d=Fo(u):p?(f=!1,d=So(s,!0)):v?(f=!1,d=Eo(s,!0)):d=[]:ol(s)||Wa(s)?(d=u,Wa(u)?d=ml(u):el(u)&&!Qa(u)||(d=mi(s))):f=!1}f&&(l.set(s,d),i(d,s,r,a,l),l.delete(s));er(e,n,d)}(e,t,l,n,Vr,r,i);else{var u=r?r(Oi(e,l),a,l+"",e,t,i):o;u===o&&(u=a),er(e,l,u)}}),Ml)}function Wr(e,t){var n=e.length;if(n)return bi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?It(t,(function(e){return Ua(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[ru];var r=-1;t=It(t,Jt(si()));var o=Br(e,(function(e,n,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var u=Ao(o[r],i[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=kr(e,a);n(l,a)&&Jr(i,wo(a,e),l)}return i}function Xr(e,t,n,r){var o=r?Ut:Wt,i=-1,a=t.length,l=e;for(e===t&&(t=Fo(t)),n&&(l=It(e,Jt(n)));++i<a;)for(var u=0,s=t[i],c=n?n(s):s;(u=o(l,c,u,r))>-1;)l!==e&&Ke.call(l,u,1),Ke.call(e,u,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ke.call(e,o,1):fo(e,o)}}return e}function Gr(e,t){return e+pt(Cn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function qr(e,t){return Mi(Ai(e,t,ru),e+"")}function Qr(e){return Qn(Hl(e))}function Zr(e,t){var n=Hl(e);return Ii(n,lr(t,0,n.length))}function Jr(e,t,n,r){if(!el(e))return e;for(var i=-1,a=(t=wo(t,e)).length,l=a-1,u=e;null!=u&&++i<a;){var s=zi(t[i]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=u[s];(c=r?r(d,s,u):o)===o&&(c=el(d)?d:bi(t[i+1])?[]:{})}tr(u,s,c),u=u[s]}return e}var eo=Fn?function(e,t){return Fn.set(e,t),e}:ru,to=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:eu(t),writable:!0})}:ru;function no(e){return Ii(Hl(e))}function ro(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function oo(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ul(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,ru,n)}function ao(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!==t,u=null===t,s=ul(t),c=t===o;i<a;){var d=pt((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,v=f===f,g=ul(f);if(l)var m=r||v;else m=c?v&&(r||h):u?v&&h&&(r||!p):s?v&&h&&!p&&(r||!g):!p&&!g&&(r?f<=t:f<t);m?i=d+1:a=d}return bn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ha(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ul(e)?v:+e}function so(e){if("string"==typeof e)return e;if(Ua(e))return It(e,so)+"";if(ul(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=Tt,i=e.length,a=!0,l=[],u=l;if(n)a=!1,o=Pt;else if(i>=200){var s=t?null:qo(e);if(s)return fn(s);a=!1,o=tn,u=new Gn}else u=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),l.push(c)}else o(u,d,n)||(u!==l&&u.push(d),l.push(c))}return l}function fo(e,t){return null==(e=_i(e,t=wo(t,e)))||delete e[zi(qi(t))]}function ho(e,t,n,r){return Jr(e,t,n(kr(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof Un&&(n=n.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function go(e,t,r){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var l=e[i],u=-1;++u<o;)u!=i&&(a[i]=dr(a[i]||l,e[u],t,r));return co(mr(a,1),t,r)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var u=r<a?t[r]:o;n(l,e[r],u)}return l}function yo(e){return Ya(e)?e:[]}function bo(e){return"function"==typeof e?e:ru}function wo(e,t){return Ua(e)?e:xi(e,t)?[e]:Li(yl(e))}var xo=qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ro(e,t,n)}var ko=nt||function(e){return vt.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=$e?$e(n):new e.constructor(n);return e.copy(r),r}function Do(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Eo(e,t){var n=t?Do(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=ul(e),l=t!==o,u=null===t,s=t===t,c=ul(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!l&&i||!s)return-1}return 0}function _o(e,t,r,o){for(var i=-1,a=e.length,l=r.length,u=-1,s=t.length,c=Gt(a-l,0),d=n(s+c),f=!o;++u<s;)d[u]=t[u];for(;++i<l;)(f||i<a)&&(d[r[i]]=e[i]);for(;c--;)d[u++]=e[i++];return d}function Oo(e,t,r,o){for(var i=-1,a=e.length,l=-1,u=r.length,s=-1,c=t.length,d=Gt(a-u,0),f=n(d+c),h=!o;++i<d;)f[i]=e[i];for(var p=i;++s<c;)f[p+s]=t[s];for(;++l<u;)(h||i<a)&&(f[p+r[l]]=e[i++]);return f}function Fo(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Ro(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],s=r?r(n[u],e[u],u,n,e):o;s===o&&(s=e[u]),i?ir(n,u,s):tr(n,u,s)}return n}function Mo(e,t){return function(n,r){var o=Ua(n)?_t:rr,i=t?t():{};return o(n,e,si(r,2),i)}}function To(e){return qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&wi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Ee(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Po(e,t){return function(n,r){if(null==n)return n;if(!Xa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function Lo(e){return function(t){var n=un(t=yl(t))?vn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function zo(e){return function(t){return zt(Ql(Wl(t).replace(et,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return el(r)?r:n}}function Bo(e){return function(t,n,r){var i=Ee(t);if(!Xa(t)){var a=si(n,3);t=Rl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Ho(e){return ri((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Oe(i);if(a&&!u&&"wrapper"==li(l))var u=new Wn([],!0)}for(r=u?r:n;++r<n;){var s=li(l=t[r]),c="wrapper"==s?ai(l):o;u=c&&Ci(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[li(c[0])].apply(u,c[3]):1==l.length&&Ci(l)?u[s]():u.thru(l)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ua(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function jo(e,t,r,i,a,l,u,s,c,f){var h=t&d,p=1&t,v=2&t,g=24&t,m=512&t,y=v?o:No(e);return function d(){for(var b=arguments.length,w=n(b),x=b;x--;)w[x]=arguments[x];if(g)var C=ui(d),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,C);if(i&&(w=_o(w,i,a,g)),l&&(w=Oo(w,l,u,g)),b-=k,g&&b<f){var S=dn(w,C);return Go(e,t,jo,d.placeholder,r,w,S,s,c,f-b)}var D=p?r:this,E=v?D[e]:e;return b=w.length,s?w=function(e,t){var n=e.length,r=bn(t.length,n),i=Fo(e);for(;r--;){var a=t[r];e[r]=bi(a,n)?i[a]:o}return e}(w,s):m&&b>1&&w.reverse(),h&&c<b&&(w.length=c),this&&this!==vt&&this instanceof d&&(E=y||No(E)),E.apply(D,w)}}function Vo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Uo(e){return ri((function(t){return t=It(t,Jt(si())),qr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function $o(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,ht(e/pn(t)));return un(t)?Co(vn(r),0,e).join(""):r.slice(0,e)}function Xo(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=hl(t),r===o?(r=t,t=0):r=hl(r),function(e,t,r,o){for(var i=-1,a=Gt(ht((t-e)/(r||1)),0),l=n(a);a--;)l[o?a:++i]=e,e+=r;return l}(t,r,i=i===o?t<r?1:-1:hl(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Go(e,t,n,r,i,a,l,u,d,f){var h=8&t;t|=h?s:c,4&(t&=~(h?c:s))||(t&=-4);var p=[e,t,i,h?a:o,h?l:o,h?o:a,h?o:l,u,d,f],v=n.apply(o,p);return Ci(e)&&Fi(v,p),v.placeholder=r,Ti(v,e,t)}function Ko(e){var t=De[e];return function(e,n){if(e=gl(e),(n=null==n?0:bn(pl(n),292))&&bt(e)){var r=(yl(e)+"e").split("e");return+((r=(yl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qo=An&&1/fn(new An([,-0]))[1]==h?function(e){return new An(e)}:uu;function Qo(e){return function(t){var n=vi(t);return n==D?sn(t):n==F?hn(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zo(e,t,r,a,h,p,v,g){var m=2&t;if(!m&&"function"!=typeof e)throw new Oe(i);var y=a?a.length:0;if(y||(t&=-97,a=h=o),v=v===o?v:Gt(pl(v),0),g=g===o?g:pl(g),y-=h?h.length:0,t&c){var b=a,w=h;a=h=o}var x=m?o:ai(e),C=[e,t,r,a,h,b,w,p,v,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?_o(s,u,t[4]):u,e[4]=s?dn(e[3],l):t[4]}(u=t[5])&&(s=e[5],e[5]=s?Oo(s,u,t[6]):u,e[6]=s?dn(e[5],l):t[6]);(u=t[7])&&(e[7]=u);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(C,x),e=C[0],t=C[1],r=C[2],a=C[3],h=C[4],!(g=C[9]=C[9]===o?m?0:e.length:Gt(C[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==u?function(e,t,r){var i=No(e);return function a(){for(var l=arguments.length,u=n(l),s=l,c=ui(a);s--;)u[s]=arguments[s];var d=l<3&&u[0]!==c&&u[l-1]!==c?[]:dn(u,c);return(l-=d.length)<r?Go(e,t,jo,a.placeholder,o,u,d,o,o,r-l):At(this&&this!==vt&&this instanceof a?i:e,this,u)}}(e,t,g):t!=s&&33!=t||h.length?jo.apply(o,C):function(e,t,r,o){var i=1&t,a=No(e);return function t(){for(var l=-1,u=arguments.length,s=-1,c=o.length,d=n(c+u),f=this&&this!==vt&&this instanceof t?a:e;++s<c;)d[s]=o[s];for(;u--;)d[s++]=arguments[++l];return At(f,i?r:this,d)}}(e,t,r,a);else var k=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==vt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Ti((x?eo:Fi)(k,C),e,t)}function Jo(e,t,n,r){return e===o||Ha(e,Me[n])&&!Ie.call(r,n)?t:e}function ei(e,t,n,r,i,a){return el(e)&&el(t)&&(a.set(t,e),Vr(e,t,o,ei,a),a.delete(t)),e}function ti(e){return ol(e)?o:e}function ni(e,t,n,r,i,a){var l=1&n,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new Gn:o;for(a.set(e,t),a.set(t,e);++f<u;){var v=e[f],g=t[f];if(r)var m=l?r(g,v,f,t,e,a):r(v,g,f,e,t,a);if(m!==o){if(m)continue;h=!1;break}if(p){if(!Bt(t,(function(e,t){if(!tn(p,t)&&(v===e||i(v,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(v!==g&&!i(v,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ri(e){return Mi(Ai(e,o,$i),e+"")}function oi(e){return Sr(e,Rl,hi)}function ii(e){return Sr(e,Ml,pi)}var ai=Fn?function(e){return Fn.get(e)}:uu;function li(e){for(var t=e.name+"",n=Rn[t],r=Ie.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ie.call(Hn,"placeholder")?Hn:e).placeholder}function si(){var e=Hn.iteratee||ou;return e=e===ou?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=Rl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Di(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var hi=gt?function(e){return null==e?[]:(e=Ee(e),Mt(gt(e),(function(t){return Ge.call(e,t)})))}:vu,pi=gt?function(e){for(var t=[];e;)Lt(t,hi(e)),e=Xe(e);return t}:vu,vi=Dr;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&bi(a,o)&&(Ua(e)||Wa(e))}function mi(e){return"function"!=typeof e.constructor||Si(e)?{}:jn(Xe(e))}function yi(e){return Ua(e)||Wa(e)||!!(qe&&e&&e[qe])}function bi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!el(n))return!1;var r=typeof t;return!!("number"==r?Xa(n)&&bi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function xi(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ul(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function Ci(e){var t=li(e),n=Hn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(Sn&&vi(new Sn(new ArrayBuffer(1)))!=I||Dn&&vi(new Dn)!=D||En&&vi(En.resolve())!=_||An&&vi(new An)!=F||_n&&vi(new _n)!=T)&&(vi=function(e){var t=Dr(e),n=t==A?e.constructor:o,r=n?Ni(n):"";if(r)switch(r){case Mn:return I;case Tn:return D;case Pn:return _;case In:return F;case Ln:return T}return t});var ki=Te?Qa:gu;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Di(e){return e===e&&!el(e)}function Ei(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ee(n)))}}function Ai(e,t,r){return t=Gt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Gt(o.length-t,0),l=n(a);++i<a;)l[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(l),At(e,this,u)}}function _i(e,t){return t.length<2?e:kr(e,ro(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Fi=Pi(eo),Ri=ct||function(e,t){return vt.setTimeout(e,t)},Mi=Pi(to);function Ti(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(m,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ce):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ii(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Gr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Li=function(e){var t=Pa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function zi(e){if("string"==typeof e||ul(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ni(e){if(null!=e){try{return Pe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bi(e){if(e instanceof Un)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Fo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=qr((function(e,t){return Ya(e)?dr(e,mr(t,1,Ya,!0)):[]})),ji=qr((function(e,t){var n=qi(t);return Ya(n)&&(n=o),Ya(e)?dr(e,mr(t,1,Ya,!0),si(n,2)):[]})),Vi=qr((function(e,t){var n=qi(t);return Ya(n)&&(n=o),Ya(e)?dr(e,mr(t,1,Ya,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pl(n);return o<0&&(o=Gt(r+o,0)),Vt(e,si(t,3),o)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=pl(n),i=n<0?Gt(r+i,0):bn(i,r-1)),Vt(e,si(t,3),i,!0)}function $i(e){return(null==e?0:e.length)?mr(e,1):[]}function Xi(e){return e&&e.length?e[0]:o}var Yi=qr((function(e){var t=It(e,yo);return t.length&&t[0]===e[0]?Or(t):[]})),Gi=qr((function(e){var t=qi(e),n=It(e,yo);return t===qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,si(t,2)):[]})),Ki=qr((function(e){var t=qi(e),n=It(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]}));function qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=qr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var Ji=ri((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Yr(e,It(t,(function(e){return bi(e,n)?+e:e})).sort(Ao)),r}));function ea(e){return null==e?e:kn.call(e)}var ta=qr((function(e){return co(mr(e,1,Ya,!0))})),na=qr((function(e){var t=qi(e);return Ya(t)&&(t=o),co(mr(e,1,Ya,!0),si(t,2))})),ra=qr((function(e){var t=qi(e);return t="function"==typeof t?t:o,co(mr(e,1,Ya,!0),o,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Mt(e,(function(e){if(Ya(e))return t=Gt(e.length,t),!0})),Qt(t,(function(t){return It(e,Yt(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:It(n,(function(e){return At(t,o,e)}))}var aa=qr((function(e,t){return Ya(e)?dr(e,t):[]})),la=qr((function(e){return go(Mt(e,Ya))})),ua=qr((function(e){var t=qi(e);return Ya(t)&&(t=o),go(Mt(e,Ya),si(t,2))})),sa=qr((function(e){var t=qi(e);return t="function"==typeof t?t:o,go(Mt(e,Ya),o,t)})),ca=qr(oa);var da=qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ia(e,n)}));function fa(e){var t=Hn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&bi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var va=Mo((function(e,t,n){Ie.call(e,n)?++e[n]:ir(e,n,1)}));var ga=Bo(Wi),ma=Bo(Ui);function ya(e,t){return(Ua(e)?Ot:fr)(e,si(t,3))}function ba(e,t){return(Ua(e)?Ft:hr)(e,si(t,3))}var wa=Mo((function(e,t,n){Ie.call(e,n)?e[n].push(t):ir(e,n,[t])}));var xa=qr((function(e,t,r){var o=-1,i="function"==typeof t,a=Xa(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?At(t,e,r):Fr(e,t,r)})),a})),Ca=Mo((function(e,t,n){ir(e,n,t)}));function ka(e,t){return(Ua(e)?It:Br)(e,si(t,3))}var Sa=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Da=qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),Ea=ot||function(){return vt.Date.now()};function Aa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zo(e,d,o,o,o,o,t)}function _a(e,t){var n;if("function"!=typeof t)throw new Oe(i);return e=pl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Oa=qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ui(Oa));r|=s}return Zo(e,r,t,n,o)})),Fa=qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ui(Fa));r|=s}return Zo(t,r,e,n,o)}));function Ra(e,t,n){var r,a,l,u,s,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(i);function v(t){var n=r,i=a;return r=a=o,d=t,u=e.apply(i,n)}function g(e){var n=e-c;return c===o||n>=t||n<0||h&&e-d>=l}function m(){var e=Ea();if(g(e))return y(e);s=Ri(m,function(e){var n=t-(e-c);return h?bn(n,l-(e-d)):n}(e))}function y(e){return s=o,p&&r?v(e):(r=a=o,u)}function b(){var e=Ea(),n=g(e);if(r=arguments,a=this,c=e,n){if(s===o)return function(e){return d=e,s=Ri(m,t),f?v(e):u}(c);if(h)return ko(s),s=Ri(m,t),v(c)}return s===o&&(s=Ri(m,t)),u}return t=gl(t)||0,el(n)&&(f=!!n.leading,l=(h="maxWait"in n)?Gt(gl(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),b.cancel=function(){s!==o&&ko(s),d=0,r=c=a=s=o},b.flush=function(){return s===o?u:y(Ea())},b}var Ma=qr((function(e,t){return cr(e,1,t)})),Ta=qr((function(e,t,n){return cr(e,gl(t)||0,n)}));function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Yn),n}function Ia(e){if("function"!=typeof e)throw new Oe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Yn;var La=xo((function(e,t){var n=(t=1==t.length&&Ua(t[0])?It(t[0],Jt(si())):It(mr(t,1),Jt(si()))).length;return qr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)}))})),za=qr((function(e,t){var n=dn(t,ui(za));return Zo(e,s,o,t,n)})),Na=qr((function(e,t){var n=dn(t,ui(Na));return Zo(e,c,o,t,n)})),Ba=ri((function(e,t){return Zo(e,f,o,o,o,t)}));function Ha(e,t){return e===t||e!==e&&t!==t}var ja=Yo(Er),Va=Yo((function(e,t){return e>=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return tl(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Ua=n.isArray,$a=xt?Jt(xt):function(e){return tl(e)&&Dr(e)==P};function Xa(e){return null!=e&&Ja(e.length)&&!Qa(e)}function Ya(e){return tl(e)&&Xa(e)}var Ga=mt||gu,Ka=Ct?Jt(Ct):function(e){return tl(e)&&Dr(e)==x};function qa(e){if(!tl(e))return!1;var t=Dr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Qa(e){if(!el(e))return!1;var t=Dr(e);return t==k||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==pl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var nl=kt?Jt(kt):function(e){return tl(e)&&vi(e)==D};function rl(e){return"number"==typeof e||tl(e)&&Dr(e)==E}function ol(e){if(!tl(e)||Dr(e)!=A)return!1;var t=Xe(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Be}var il=St?Jt(St):function(e){return tl(e)&&Dr(e)==O};var al=Dt?Jt(Dt):function(e){return tl(e)&&vi(e)==F};function ll(e){return"string"==typeof e||!Ua(e)&&tl(e)&&Dr(e)==R}function ul(e){return"symbol"==typeof e||tl(e)&&Dr(e)==M}var sl=Et?Jt(Et):function(e){return tl(e)&&Ja(e.length)&&!!ut[Dr(e)]};var cl=Yo(Nr),dl=Yo((function(e,t){return e<=t}));function fl(e){if(!e)return[];if(Xa(e))return ll(e)?vn(e):Fo(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=vi(e);return(t==D?sn:t==F?fn:Hl)(e)}function hl(e){return e?(e=gl(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function pl(e){var t=hl(e),n=t%1;return t===t?n?t-n:t:0}function vl(e){return e?lr(pl(e),0,g):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return v;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=me.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?v:+e}function ml(e){return Ro(e,Ml(e))}function yl(e){return null==e?"":so(e)}var bl=To((function(e,t){if(Si(t)||Xa(t))Ro(t,Rl(t),e);else for(var n in t)Ie.call(t,n)&&tr(e,n,t[n])})),wl=To((function(e,t){Ro(t,Ml(t),e)})),xl=To((function(e,t,n,r){Ro(t,Ml(t),e,r)})),Cl=To((function(e,t,n,r){Ro(t,Rl(t),e,r)})),kl=ri(ar);var Sl=qr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ml(a),u=-1,s=l.length;++u<s;){var c=l[u],d=e[c];(d===o||Ha(d,Me[c])&&!Ie.call(e,c))&&(e[c]=a[c])}return e})),Dl=qr((function(e){return e.push(o,ei),At(Pl,o,e)}));function El(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function Al(e,t){return null!=e&&gi(e,t,_r)}var _l=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),eu(ru)),Ol=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),si),Fl=qr(Fr);function Rl(e){return Xa(e)?qn(e):Lr(e)}function Ml(e){return Xa(e)?qn(e,!0):zr(e)}var Tl=To((function(e,t,n){Vr(e,t,n)})),Pl=To((function(e,t,n,r){Vr(e,t,n,r)})),Il=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Ro(e,ii(e),n),r&&(n=ur(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ll=ri((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Al(e,n)}))}(e,t)}));function zl(e,t){if(null==e)return{};var n=It(ii(e),(function(e){return[e]}));return t=si(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Nl=Qo(Rl),Bl=Qo(Ml);function Hl(e){return null==e?[]:en(e,Rl(e))}var jl=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Vl(t):t)}));function Vl(e){return ql(yl(e).toLowerCase())}function Wl(e){return(e=yl(e))&&e.replace(xe,on).replace(tt,"")}var Ul=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$l=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xl=Lo("toLowerCase");var Yl=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gl=zo((function(e,t,n){return e+(n?" ":"")+ql(t)}));var Kl=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),ql=Lo("toUpperCase");function Ql(e,t,n){return e=yl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zl=qr((function(e,t){try{return At(e,o,t)}catch(n){return qa(n)?n:new le(n)}})),Jl=ri((function(e,t){return Ot(t,(function(t){t=zi(t),ir(e,t,Oa(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=Ho(),nu=Ho(!0);function ru(e){return e}function ou(e){return Ir("function"==typeof e?e:ur(e,1))}var iu=qr((function(e,t){return function(n){return Fr(n,e,t)}})),au=qr((function(e,t){return function(n){return Fr(e,n,t)}}));function lu(e,t,n){var r=Rl(t),o=Cr(t,r);null!=n||el(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Rl(t)));var i=!(el(n)&&"chain"in n)||!!n.chain,a=Qa(e);return Ot(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Fo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function uu(){}var su=Uo(It),cu=Uo(Rt),du=Uo(Bt);function fu(e){return xi(e)?Yt(zi(e)):function(e){return function(t){return kr(t,e)}}(e)}var hu=Xo(),pu=Xo(!0);function vu(){return[]}function gu(){return!1}var mu=Wo((function(e,t){return e+t}),0),yu=Ko("ceil"),bu=Wo((function(e,t){return e/t}),1),wu=Ko("floor");var xu=Wo((function(e,t){return e*t}),1),Cu=Ko("round"),ku=Wo((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Oe(i);return e=pl(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=Aa,Hn.assign=bl,Hn.assignIn=wl,Hn.assignInWith=xl,Hn.assignWith=Cl,Hn.at=kl,Hn.before=_a,Hn.bind=Oa,Hn.bindAll=Jl,Hn.bindKey=Fa,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Hn.chain=fa,Hn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:Gt(pl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,u=n(ht(i/t));a<i;)u[l++]=ro(e,a,a+=t);return u},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(Ua(r)?Fo(r):[r],mr(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Oe(i);return[n(e[0]),e[1]]})):[],qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=Rl(e);return function(n){return sr(n,e,t)}}(ur(e,1))},Hn.constant=eu,Hn.countBy=va,Hn.create=function(e,t){var n=jn(e);return null==t?n:or(n,t)},Hn.curry=function e(t,n,r){var i=Zo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Hn.curryRight=function e(t,n,r){var i=Zo(t,u,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Hn.debounce=Ra,Hn.defaults=Sl,Hn.defaultsDeep=Dl,Hn.defer=Ma,Hn.delay=Ta,Hn.difference=Hi,Hn.differenceBy=ji,Hn.differenceWith=Vi,Hn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=n||t===o?1:pl(t))<0?0:t,r):[]},Hn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,0,(t=r-(t=n||t===o?1:pl(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?po(e,si(t,3),!0):[]},Hn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=pl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:pl(r))<0&&(r+=i),r=n>r?0:vl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Hn.filter=function(e,t){return(Ua(e)?Mt:gr)(e,si(t,3))},Hn.flatMap=function(e,t){return mr(ka(e,t),1)},Hn.flatMapDeep=function(e,t){return mr(ka(e,t),h)},Hn.flatMapDepth=function(e,t,n){return n=n===o?1:pl(n),mr(ka(e,t),n)},Hn.flatten=$i,Hn.flattenDeep=function(e){return(null==e?0:e.length)?mr(e,h):[]},Hn.flattenDepth=function(e,t){return(null==e?0:e.length)?mr(e,t=t===o?1:pl(t)):[]},Hn.flip=function(e){return Zo(e,512)},Hn.flow=tu,Hn.flowRight=nu,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Hn.functions=function(e){return null==e?[]:Cr(e,Rl(e))},Hn.functionsIn=function(e){return null==e?[]:Cr(e,Ml(e))},Hn.groupBy=wa,Hn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},Hn.intersection=Yi,Hn.intersectionBy=Gi,Hn.intersectionWith=Ki,Hn.invert=_l,Hn.invertBy=Ol,Hn.invokeMap=xa,Hn.iteratee=ou,Hn.keyBy=Ca,Hn.keys=Rl,Hn.keysIn=Ml,Hn.map=ka,Hn.mapKeys=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},Hn.mapValues=function(e,t){var n={};return t=si(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},Hn.matches=function(e){return Hr(ur(e,1))},Hn.matchesProperty=function(e,t){return jr(e,ur(t,1))},Hn.memoize=Pa,Hn.merge=Tl,Hn.mergeWith=Pl,Hn.method=iu,Hn.methodOf=au,Hn.mixin=lu,Hn.negate=Ia,Hn.nthArg=function(e){return e=pl(e),qr((function(t){return Wr(t,e)}))},Hn.omit=Il,Hn.omitBy=function(e,t){return zl(e,Ia(si(t)))},Hn.once=function(e){return _a(2,e)},Hn.orderBy=function(e,t,n,r){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Hn.over=su,Hn.overArgs=La,Hn.overEvery=cu,Hn.overSome=du,Hn.partial=za,Hn.partialRight=Na,Hn.partition=Sa,Hn.pick=Ll,Hn.pickBy=zl,Hn.property=fu,Hn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Hn.pull=Qi,Hn.pullAll=Zi,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,si(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,o,n):e},Hn.pullAt=Ji,Hn.range=hu,Hn.rangeRight=pu,Hn.rearg=Ba,Hn.reject=function(e,t){return(Ua(e)?Mt:gr)(e,Ia(si(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Oe(i);return qr(e,t=t===o?t:pl(t))},Hn.reverse=ea,Hn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:pl(t),(Ua(e)?Zn:Zr)(e,t)},Hn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Hn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Jr(e,t,n,r)},Hn.shuffle=function(e){return(Ua(e)?Jn:no)(e)},Hn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:pl(t),n=n===o?r:pl(n)),ro(e,t,n)):[]},Hn.sortBy=Da,Hn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=yl(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=so(t))&&un(e)?Co(vn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Oe(i);return t=null==t?0:Gt(pl(t),0),qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Lt(o,r),At(e,this,o)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:pl(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:pl(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?po(e,si(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?po(e,si(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Oe(i);return el(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})},Hn.thru=ha,Hn.toArray=fl,Hn.toPairs=Nl,Hn.toPairsIn=Bl,Hn.toPath=function(e){return Ua(e)?It(e,zi):ul(e)?[e]:Fo(Li(yl(e)))},Hn.toPlainObject=ml,Hn.transform=function(e,t,n){var r=Ua(e),o=r||Ga(e)||sl(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:el(e)&&Qa(i)?jn(Xe(e)):{}}return(o?Ot:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Hn.unary=function(e){return Aa(e,1)},Hn.union=ta,Hn.unionBy=na,Hn.unionWith=ra,Hn.uniq=function(e){return e&&e.length?co(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?co(e,si(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Hn.unset=function(e,t){return null==e||fo(e,t)},Hn.unzip=oa,Hn.unzipWith=ia,Hn.update=function(e,t,n){return null==e?e:ho(e,t,bo(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,bo(n),r)},Hn.values=Hl,Hn.valuesIn=function(e){return null==e?[]:en(e,Ml(e))},Hn.without=aa,Hn.words=Ql,Hn.wrap=function(e,t){return za(bo(t),e)},Hn.xor=la,Hn.xorBy=ua,Hn.xorWith=sa,Hn.zip=ca,Hn.zipObject=function(e,t){return mo(e||[],t||[],tr)},Hn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Jr)},Hn.zipWith=da,Hn.entries=Nl,Hn.entriesIn=Bl,Hn.extend=wl,Hn.extendWith=xl,lu(Hn,Hn),Hn.add=mu,Hn.attempt=Zl,Hn.camelCase=jl,Hn.capitalize=Vl,Hn.ceil=yu,Hn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gl(n))===n?n:0),t!==o&&(t=(t=gl(t))===t?t:0),lr(gl(e),t,n)},Hn.clone=function(e){return ur(e,4)},Hn.cloneDeep=function(e){return ur(e,5)},Hn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Hn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Hn.conformsTo=function(e,t){return null==t||sr(e,t,Rl(t))},Hn.deburr=Wl,Hn.defaultTo=function(e,t){return null==e||e!==e?t:e},Hn.divide=bu,Hn.endsWith=function(e,t,n){e=yl(e),t=so(t);var r=e.length,i=n=n===o?r:lr(pl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Hn.eq=Ha,Hn.escape=function(e){return(e=yl(e))&&Q.test(e)?e.replace(K,an):e},Hn.escapeRegExp=function(e){return(e=yl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Hn.every=function(e,t,n){var r=Ua(e)?Rt:pr;return n&&wi(e,t,n)&&(t=o),r(e,si(t,3))},Hn.find=ga,Hn.findIndex=Wi,Hn.findKey=function(e,t){return jt(e,si(t,3),wr)},Hn.findLast=ma,Hn.findLastIndex=Ui,Hn.findLastKey=function(e,t){return jt(e,si(t,3),xr)},Hn.floor=wu,Hn.forEach=ya,Hn.forEachRight=ba,Hn.forIn=function(e,t){return null==e?e:yr(e,si(t,3),Ml)},Hn.forInRight=function(e,t){return null==e?e:br(e,si(t,3),Ml)},Hn.forOwn=function(e,t){return e&&wr(e,si(t,3))},Hn.forOwnRight=function(e,t){return e&&xr(e,si(t,3))},Hn.get=El,Hn.gt=ja,Hn.gte=Va,Hn.has=function(e,t){return null!=e&&gi(e,t,Ar)},Hn.hasIn=Al,Hn.head=Xi,Hn.identity=ru,Hn.includes=function(e,t,n,r){e=Xa(e)?e:Hl(e),n=n&&!r?pl(n):0;var o=e.length;return n<0&&(n=Gt(o+n,0)),ll(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wt(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pl(n);return o<0&&(o=Gt(r+o,0)),Wt(e,t,o)},Hn.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=bn(t,n)&&e<Gt(t,n)}(e=gl(e),t,n)},Hn.invoke=Fl,Hn.isArguments=Wa,Hn.isArray=Ua,Hn.isArrayBuffer=$a,Hn.isArrayLike=Xa,Hn.isArrayLikeObject=Ya,Hn.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Dr(e)==w},Hn.isBuffer=Ga,Hn.isDate=Ka,Hn.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(Xa(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||sl(e)||Wa(e)))return!e.length;var t=vi(e);if(t==D||t==F)return!e.size;if(Si(e))return!Lr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Mr(e,t)},Hn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Hn.isError=qa,Hn.isFinite=function(e){return"number"==typeof e&&bt(e)},Hn.isFunction=Qa,Hn.isInteger=Za,Hn.isLength=Ja,Hn.isMap=nl,Hn.isMatch=function(e,t){return e===t||Tr(e,t,di(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Tr(e,t,di(t),n)},Hn.isNaN=function(e){return rl(e)&&e!=+e},Hn.isNative=function(e){if(ki(e))throw new le("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=rl,Hn.isObject=el,Hn.isObjectLike=tl,Hn.isPlainObject=ol,Hn.isRegExp=il,Hn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=p},Hn.isSet=al,Hn.isString=ll,Hn.isSymbol=ul,Hn.isTypedArray=sl,Hn.isUndefined=function(e){return e===o},Hn.isWeakMap=function(e){return tl(e)&&vi(e)==T},Hn.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Dr(e)},Hn.join=function(e,t){return null==e?"":wt.call(e,t)},Hn.kebabCase=Ul,Hn.last=qi,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=pl(n))<0?Gt(r+i,0):bn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Vt(e,$t,i,!0)},Hn.lowerCase=$l,Hn.lowerFirst=Xl,Hn.lt=cl,Hn.lte=dl,Hn.max=function(e){return e&&e.length?vr(e,ru,Er):o},Hn.maxBy=function(e,t){return e&&e.length?vr(e,si(t,2),Er):o},Hn.mean=function(e){return Xt(e,ru)},Hn.meanBy=function(e,t){return Xt(e,si(t,2))},Hn.min=function(e){return e&&e.length?vr(e,ru,Nr):o},Hn.minBy=function(e,t){return e&&e.length?vr(e,si(t,2),Nr):o},Hn.stubArray=vu,Hn.stubFalse=gu,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=xu,Hn.nth=function(e,t){return e&&e.length?Wr(e,pl(t)):o},Hn.noConflict=function(){return vt._===this&&(vt._=He),this},Hn.noop=uu,Hn.now=Ea,Hn.pad=function(e,t,n){e=yl(e);var r=(t=pl(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(pt(o),n)+e+$o(ht(o),n)},Hn.padEnd=function(e,t,n){e=yl(e);var r=(t=pl(t))?pn(e):0;return t&&r<t?e+$o(t-r,n):e},Hn.padStart=function(e,t,n){e=yl(e);var r=(t=pl(t))?pn(e):0;return t&&r<t?$o(t-r,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(yl(e).replace(ae,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hl(e),t===o?(t=e,e=0):t=hl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return bn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},Hn.reduce=function(e,t,n){var r=Ua(e)?zt:Kt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Hn.reduceRight=function(e,t,n){var r=Ua(e)?Nt:Kt,o=arguments.length<3;return r(e,si(t,4),n,o,hr)},Hn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:pl(t),Kr(yl(e),t)},Hn.replace=function(){var e=arguments,t=yl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[zi(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},Hn.round=Cu,Hn.runInContext=e,Hn.sample=function(e){return(Ua(e)?Qn:Qr)(e)},Hn.size=function(e){if(null==e)return 0;if(Xa(e))return ll(e)?pn(e):e.length;var t=vi(e);return t==D||t==F?e.size:Lr(e).length},Hn.snakeCase=Yl,Hn.some=function(e,t,n){var r=Ua(e)?Bt:oo;return n&&wi(e,t,n)&&(t=o),r(e,si(t,3))},Hn.sortedIndex=function(e,t){return io(e,t)},Hn.sortedIndexBy=function(e,t,n){return ao(e,t,si(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Hn.sortedLastIndex=function(e,t){return io(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return ao(e,t,si(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Hn.startCase=Gl,Hn.startsWith=function(e,t,n){return e=yl(e),n=null==n?0:lr(pl(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Hn.subtract=ku,Hn.sum=function(e){return e&&e.length?qt(e,ru):0},Hn.sumBy=function(e,t){return e&&e.length?qt(e,si(t,2)):0},Hn.template=function(e,t,n){var r=Hn.templateSettings;n&&wi(e,t,n)&&(t=o),e=yl(e),t=xl({},t,r,Jo);var i,a,l=xl({},t.imports,r.imports,Jo),u=Rl(l),s=en(l,u),c=0,d=t.interpolate||Ce,f="__p += '",h=Ae((t.escape||Ce).source+"|"+d.source+"|"+(d===ee?pe:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),p="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(h,(function(t,n,r,o,l,u){return r||(r=o),f+=e.slice(c,u).replace(ke,ln),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var v=Ie.call(t,"variable")&&t.variable;if(v){if(fe.test(v))throw new le("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace($,""):f).replace(X,"$1").replace(Y,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Zl((function(){return Se(u,p+"return "+f).apply(o,s)}));if(g.source=f,qa(g))throw g;return g},Hn.times=function(e,t){if((e=pl(e))<1||e>p)return[];var n=g,r=bn(e,g);t=si(t),e-=g;for(var o=Qt(r,t);++n<e;)t(n);return o},Hn.toFinite=hl,Hn.toInteger=pl,Hn.toLength=vl,Hn.toLower=function(e){return yl(e).toLowerCase()},Hn.toNumber=gl,Hn.toSafeInteger=function(e){return e?lr(pl(e),-9007199254740991,p):0===e?e:0},Hn.toString=yl,Hn.toUpper=function(e){return yl(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=yl(e))&&(n||t===o))return Zt(e);if(!e||!(t=so(t)))return e;var r=vn(e),i=vn(t);return Co(r,nn(r,i),rn(r,i)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=so(t)))return e;var r=vn(e);return Co(r,0,rn(r,vn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=so(t)))return e;var r=vn(e);return Co(r,nn(r,vn(t))).join("")},Hn.truncate=function(e,t){var n=30,r="...";if(el(t)){var i="separator"in t?t.separator:i;n="length"in t?pl(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=yl(e)).length;if(un(e)){var l=vn(e);a=l.length}if(n>=a)return e;var u=n-pn(r);if(u<1)return r;var s=l?Co(l,0,u).join(""):e.slice(0,u);if(i===o)return s+r;if(l&&(u+=s.length-u),il(i)){if(e.slice(u).search(i)){var c,d=s;for(i.global||(i=Ae(i.source,yl(ve.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;s=s.slice(0,f===o?u:f)}}else if(e.indexOf(so(i),u)!=u){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r},Hn.unescape=function(e){return(e=yl(e))&&q.test(e)?e.replace(G,mn):e},Hn.uniqueId=function(e){var t=++Le;return yl(e)+t},Hn.upperCase=Kl,Hn.upperFirst=ql,Hn.each=ya,Hn.eachRight=ba,Hn.first=Xi,lu(Hn,function(){var e={};return wr(Hn,(function(t,n){Ie.call(Hn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Hn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),Ot(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:Gt(pl(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ru)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=qr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Fr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ia(si(e)))},Un.prototype.slice=function(e,t){e=pl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=pl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Hn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Hn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Un,s=l[0],c=u||Ua(t),d=function(e){var t=i.apply(Hn,Lt([e],l));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,v=u&&!h;if(!a&&c){t=v?t:new Un(this);var g=e.apply(t,l);return g.__actions__.push({func:ha,args:[d],thisArg:o}),new Wn(g,f)}return p&&v?e.apply(this,l):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Fe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ua(o)?o:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=Hn[t];if(n){var r=n.name+"";Ie.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[jo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Fo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fo(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=Gt(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,d=c.length,f=0,h=bn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return vo(e,this.__actions__);var p=[];e:for(;u--&&f<h;){for(var v=-1,g=e[s+=t];++v<d;){var m=c[v],y=m.iteratee,b=m.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}p[f++]=g}return p},Hn.prototype.at=pa,Hn.prototype.chain=function(){return fa(this)},Hn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===o&&(this.__values__=fl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ea],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ea)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,Qe&&(Hn.prototype[Qe]=function(){return this}),Hn}();vt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},5797:(e,t,n)=>{var r=n(4816);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},5713:e=>{e.exports=function(){}},4757:(e,t,n)=>{var r=n(6552);e.exports=function(){return r.Date.now()}},3932:(e,t,n)=>{var r=n(396),o=n(2866),i=n(2597),a=n(914);e.exports=function(e){return i(e)?r(a(e)):o(e)}},6604:(e,t,n)=>{var r=n(3331)();e.exports=r},7828:e=>{e.exports=function(){return[]}},14:e=>{e.exports=function(){return!1}},9889:(e,t,n)=>{var r=n(3950),o=n(6686);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7303:(e,t,n)=>{var r=n(801),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},9140:(e,t,n)=>{var r=n(7303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},801:(e,t,n)=>{var r=n(1141),o=n(6686),i=n(9841),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},1069:(e,t,n)=>{var r=n(8541);e.exports=function(e){return null==e?"":r(e)}},9376:(e,t,n)=>{var r=n(4416);e.exports=function(e){return e&&e.length?r(e):[]}},1497:(e,t,n)=>{"use strict";var r=n(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}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}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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][: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]*$/,h={},p={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(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".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),A=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=P&&e[P]||e["@@iterator"])?e:null}var L,z=Object.assign;function N(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var B=!1;function H(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function j(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 1:return e=H(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case D:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function De(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ee(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Ae(){if(ke){var e=ke,t=Se;if(Se=ke=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function _e(e,t){return e(t)}function Oe(){}var Fe=!1;function Re(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return _e(e,t,n)}finally{Fe=!1,(null!==ke||null!==Se)&&(Oe(),Ae())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Te=!1;if(c)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ce){Te=!1}function Ie(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var Le=!1,ze=null,Ne=!1,Be=null,He={onError:function(e){Le=!0,ze=e}};function je(e,t,n,r,o,i,a,l,u){Le=!1,ze=null,Ie.apply(He,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ue(o),e;if(a===r)return Ue(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Xe(e):null}function Xe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Xe(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,qe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,kt,St,Dt,Et=!1,At=[],_t=null,Ot=null,Ft=null,Rt=new Map,Mt=new Map,Tt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Dt(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Nt(e)&&n.delete(t)}function Ht(){Et=!1,null!==_t&&Nt(_t)&&(_t=null),null!==Ot&&Nt(Ot)&&(Ot=null),null!==Ft&&Nt(Ft)&&(Ft=null),Rt.forEach(Bt),Mt.forEach(Bt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ht)))}function Vt(e){function t(t){return jt(t,e)}if(0<At.length){jt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&jt(_t,e),null!==Ot&&jt(Ot,e),null!==Ft&&jt(Ft,e),Rt.forEach(t),Mt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)zt(n),null===n.blockedOn&&Tt.shift()}var Wt=w.ReactCurrentBatchConfig,Ut=!0;function $t(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Xt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Ut){var o=Kt(e,t,n,r);if(null===o)Ur(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Lt(_t,e,t,n,r,o),!0;case"dragenter":return Ot=Lt(Ot,e,t,n,r,o),!0;case"mouseover":return Ft=Lt(Ft,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Lt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mt.set(i,Lt(Mt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Ur(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),dn=z({},sn,{view:0,detail:0}),fn=on(dn),hn=z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=on(hn),vn=on(z({},hn,{dataTransfer:0})),gn=on(z({},dn,{relatedTarget:0})),mn=on(z({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=z({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(z({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Dn(){return Sn}var En=z({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(En),_n=on(z({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dn})),Fn=on(z({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=z({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=on(Rn),Tn=[9,13,27,32],Pn=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var Ln=c&&"TextEvent"in window&&!In,zn=c&&(!Pn||In&&8<In&&11>=In),Nn=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,r){Ee(r),0<(t=Xr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Yn=null;function Gn(e){Nr(e,0)}function Kn(e){if(Y(xo(e)))return e}function qn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Xn&&(Xn.detachEvent("onpropertychange",nr),Yn=Xn=null)}function nr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];$n(t,Yn,e,xe(e)),Re(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Xn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=Xr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Sr={};function Dr(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Er=Dr("animationend"),Ar=Dr("animationiteration"),_r=Dr("animationstart"),Or=Dr("transitionend"),Fr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mr(e,t){Fr.set(e,t),u(t,[e])}for(var Tr=0;Tr<Rr.length;Tr++){var Pr=Rr[Tr];Mr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Mr(Er,"onAnimationEnd"),Mr(Ar,"onAnimationIteration"),Mr(_r,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(Or,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(je.apply(this,arguments),Le){if(!Le)throw Error(i(198));var c=ze;Le=!1,ze=null,Ne||(Ne=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,s),i=u}}}if(Ne)throw e=Be,Ne=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Hr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[jr]){e[jr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Hr(t,!1,e),Hr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Hr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(qt(t)){case 1:var o=$t;break;case 4:o=Xt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Re((function(){var r=i,o=xe(n),a=[];e:{var l=Fr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=An;break;case"focusin":s="focus",u=gn;break;case"focusout":s="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=On;break;case Er:case Ar:case _r:u=mn;break;case Or:u=Fn;break;case"scroll":u=fn;break;case"wheel":u=Mn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=_n}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&(null!=(v=Me(p,f))&&c.push($r(p,v,h)))),d)break;p=p.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!bo(s)&&!s[vo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?bo(s):null)&&(s!==(d=Ve(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==u?l:xo(u),h=null==s?l:xo(s),(l=new c(v,p+"leave",u,n,o)).target=d,l.relatedTarget=h,v=null,bo(o)===r&&((c=new c(f,p+"enter",s,n,o)).target=h,c.relatedTarget=d,v=c),d=v,u&&s)e:{for(f=s,p=0,h=c=u;h;h=Yr(h))p++;for(h=0,v=f;v;v=Yr(v))h++;for(;0<p-h;)c=Yr(c),p--;for(;0<h-p;)f=Yr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==u&&Gr(a,l,u,c,!1),null!==s&&null!==d&&Gr(a,d,s,c,!0)}if("select"===(u=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var g=qn;else if(Un(l))if(Qn)g=ar;else{g=or;var m=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?$n(a,g,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?xo(r):window,e){case"focusin":(Un(m)||"true"===m.contentEditable)&&(gr=m,mr=r,yr=null);break;case"focusout":yr=mr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Vn=!0)),0<(m=Xr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=jn(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Pn&&Hn(e,t)?(e=en(),Jt=Zt=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Xr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Nr(a,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Me(e,n))&&r.unshift($r(e,i,o)),null!=(i=Me(e,t))&&r.push($r(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Me(n,i))&&a.unshift($r(n,u,l)):o||null!=(u=Me(n,i))&&a.push($r(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(qr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,vo="__reactContainer$"+fo,go="__reactEvents$"+fo,mo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[po]||null}var ko=[],So=-1;function Do(e){return{current:e}}function Eo(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function Ao(e,t){So++,ko[So]=e.current,e.current=t}var _o={},Oo=Do(_o),Fo=Do(!1),Ro=_o;function Mo(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function To(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Po(){Eo(Fo),Eo(Oo)}function Io(e,t,n){if(Oo.current!==_o)throw Error(i(168));Ao(Oo,t),Ao(Fo,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return z({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Ro=Oo.current,Ao(Oo,e),Ao(Fo,Fo.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Eo(Fo),Eo(Oo),Ao(Oo,e)):Eo(Fo),Ao(Fo,n)}var Bo=null,Ho=!1,jo=!1;function Vo(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!jo&&null!==Bo){jo=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Ho=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ye(Je,Wo),o}finally{bt=t,jo=!1}}return null}var Uo=[],$o=0,Xo=null,Yo=0,Go=[],Ko=0,qo=null,Qo=1,Zo="";function Jo(e,t){Uo[$o++]=Yo,Uo[$o++]=Xo,Xo=e,Yo=t}function ei(e,t,n){Go[Ko++]=Qo,Go[Ko++]=Zo,Go[Ko++]=qo,qo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Xo;)Xo=Uo[--$o],Uo[$o]=null,Yo=Uo[--$o],Uo[$o]=null;for(;e===qo;)qo=Go[--Ko],Go[Ko]=null,Zo=Go[--Ko],Go[Ko]=null,Qo=Go[--Ko],Go[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Rs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rs(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw hi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=so(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function mi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ts(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=zs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===M&&bi(i)===t.type)?((r=o(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Ps(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ns(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Is(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ps(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case C:return(t=Ns(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Is(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case C:return n.key===o?c(e,t,n,r):null;case M:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function v(o,i,l,u){for(var s=null,c=null,d=i,v=i=0,g=null;null!==d&&v<l.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=h(o,d,l[v],u);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,v),null===c?s=m:c.sibling=m,c=m,d=g}if(v===l.length)return n(o,d),ii&&Jo(o,v),s;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],u))&&(i=a(d,i,v),null===c?s=d:c.sibling=d,c=d);return ii&&Jo(o,v),s}for(d=r(o,d);v<l.length;v++)null!==(g=p(d,o,v,l[v],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),i=a(g,i,v),null===c?s=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function g(o,l,u,s){var c=I(u);if("function"!==typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var d=c=null,v=l,g=l=0,m=null,y=u.next();null!==v&&!y.done;g++,y=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(o,v,y.value,s);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(o,v),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b,v=m}if(y.done)return n(o,v),ii&&Jo(o,g),c;if(null===v){for(;!y.done;g++,y=u.next())null!==(y=f(o,y.value,s))&&(l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return ii&&Jo(o,g),c}for(v=r(o,v);!y.done;g++,y=u.next())null!==(y=p(v,o,g,y.value,s))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}return function e(r,i,a,u){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===k){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===M&&bi(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=mi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((i=Is(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Ps(a.type,a.key,a.props,null,r.mode,u)).ref=mi(r,i,a),u.return=r,r=u)}return l(r);case C:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ns(a,r.mode,u)).return=r,r=i}return l(r);case M:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return v(r,i,a,u);if(I(a))return g(r,i,a,u);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=zs(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),ki=Do(null),Si=null,Di=null,Ei=null;function Ai(){Ei=Di=Si=null}function _i(e){var t=ki.current;Eo(ki),e._currentValue=t}function Oi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fi(e,t){Si=e,Ei=Di=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Di){if(null===Si)throw Error(i(308));Di=e,Si.dependencies={lanes:0,firstContext:e}}else Di=Di.next=e;return t}var Mi=null;function Ti(e){null===Mi?Mi=[e]:Mi.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Li=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&_u)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function ji(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Vi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wi(e,t,n,r){var o=e.updateQueue;Li=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==i){var d=o.baseState;for(a=0,c=s=u=null,l=i;;){var f=l.lane,h=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,v=l;switch(f=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=z({},d,f);break e;case 2:Li=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=h,u=d):c=c.next=h,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Lu|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var $i={},Xi=Do($i),Yi=Do($i),Gi=Do($i);function Ki(e){if(e===$i)throw Error(i(174));return e}function qi(e,t){switch(Ao(Gi,t),Ao(Yi,e),Ao(Xi,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Xi),Ao(Xi,t)}function Qi(){Eo(Xi),Eo(Yi),Eo(Gi)}function Zi(e){Ki(Gi.current);var t=Ki(Xi.current),n=ue(t,e.type);t!==n&&(Ao(Yi,e),Ao(Xi,n))}function Ji(e){Yi.current===e&&(Eo(Xi),Eo(Yi))}var ea=Do(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,ua=null,sa=null,ca=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ua=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ua&&null!==ua.next,aa=0,sa=ua=la=null,ca=!1,t)throw Error(i(300));return e}function ma(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ba(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ua=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ua,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=r):s=s.next=f,la.lanes|=d,Lu|=d}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(bl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Lu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=la,r=ba(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,bl=!0),r=r.queue,La(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Ra(9,Ea.bind(null,n,r,o,t),void 0,null),null===Ou)throw Error(i(349));0!==(30&aa)||Da(n,t,o)}return o}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,_a(t)&&Oa(e)}function Aa(e,t,n){return n((function(){_a(t)&&Oa(e)}))}function _a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Oa(e){var t=Ii(e,1);null!==t&&ns(t,e,1,-1)}function Fa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,la,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ma(){return ba().memoizedState}function Ta(e,t,n,r){var o=ya();la.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==ua){var a=ua.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}la.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Ia(e,t){return Ta(8390656,8,e,t)}function La(e,t){return Pa(2048,8,e,t)}function za(e,t){return Pa(4,2,e,t)}function Na(e,t){return Pa(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ha(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Pa(4,4,Ba.bind(null,t,e),n)}function ja(){}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ua(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n):(lr(n,t)||(n=vt(),la.lanes|=n,Lu|=n,e.baseState=!0),t)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Xa(){return ba().memoizedState}function Ya(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))qa(t,n);else if(null!==(n=Pi(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ga(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))qa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ti(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(s){}null!==(n=Pi(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function qa(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Za={readContext:Ri,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Ri,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ta(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Fa,useDebugValue:ja,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=$a.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ou)throw Error(i(349));0!==(30&aa)||Da(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Ra(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Ou.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ri,useCallback:Va,useContext:Ri,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:za,useLayoutEffect:Na,useMemo:Wa,useReducer:xa,useRef:Ma,useState:function(){return xa(wa)},useDebugValue:ja,useDeferredValue:function(e){return Ua(ba(),ua.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Xa,unstable_isNewReconciler:!1},tl={readContext:Ri,useCallback:Va,useContext:Ri,useEffect:La,useImperativeHandle:Ha,useInsertionEffect:za,useLayoutEffect:Na,useMemo:Wa,useReducer:Ca,useRef:Ma,useState:function(){return Ca(wa)},useDebugValue:ja,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:Ua(t,ua.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Xa,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Bi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Hi(e,i,o))&&(ns(t,e,o,r),ji(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Bi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Hi(e,i,o))&&(ns(t,e,o,r),ji(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Bi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Hi(e,o,r))&&(ns(t,e,r,n),ji(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function al(e,t,n){var r=!1,o=_o,i=t.contextType;return"object"===typeof i&&null!==i?i=Ri(i):(o=To(t)?Ro:Oo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Mo(e,o):_o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function ul(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zi(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ri(i):(i=To(t)?Ro:Oo.current,o.context=Mo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Wi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,$u=r),dl(0,t)},n}function pl(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Xu?Xu=new Set([this]):Xu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ds.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Hi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=w.ReactCurrentOwner,bl=!1;function wl(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Fi(t,o),r=ga(e,t,n,r,i,o),n=ma(),null===e||bl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Ms(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ps(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Ul(e,t,o)}return t.flags|=1,(e=Ts(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ul(e,t,o);0!==(131072&e.flags)&&(bl=!0)}}return El(e,t,n,r,o)}function Sl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Tu,Mu),Mu|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Tu,Mu),Mu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ao(Tu,Mu),Mu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ao(Tu,Mu),Mu|=r;return wl(e,t,o,n),t.child}function Dl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function El(e,t,n,r,o){var i=To(n)?Ro:Oo.current;return i=Mo(t,i),Fi(t,o),n=ga(e,t,n,r,i,o),r=ma(),null===e||bl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ul(e,t,o))}function Al(e,t,n,r,o){if(To(n)){var i=!0;zo(t)}else i=!1;if(Fi(t,o),null===t.stateNode)Wl(e,t),al(t,n,r),ul(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=Ri(s):s=Mo(t,s=To(n)?Ro:Oo.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==s)&&ll(t,a,r,s),Li=!1;var f=t.memoizedState;a.state=f,Wi(t,r,a,o),u=t.memoizedState,l!==r||f!==u||Fo.current||Li?("function"===typeof c&&(rl(t,n,c,r),u=t.memoizedState),(l=Li||il(t,n,l,r,f,u,s))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ni(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ri(u):u=Mo(t,u=To(n)?Ro:Oo.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==u)&&ll(t,a,r,u),Li=!1,f=t.memoizedState,a.state=f,Wi(t,r,a,o);var p=t.memoizedState;l!==d||f!==p||Fo.current||Li?("function"===typeof h&&(rl(t,n,h,r),p=t.memoizedState),(s=Li||il(t,n,s,r,f,p,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _l(e,t,n,r,i,o)}function _l(e,t,n,r,o,i){Dl(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&No(t,n,!1),Ul(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function Ol(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),qi(e,t.containerInfo)}function Fl(e,t,n,r,o){return pi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Rl,Ml,Tl,Pl,Il={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Ls(u,o,0,null),e=Is(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=Il,e):Nl(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=cl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ls({mode:"visible",children:r.children},o,0,null),(a=Is(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=Il,a);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Bl(e,t,l,r=cl(a=Error(i(419)),r,void 0))}if(u=0!==(l&e.childLanes),bl||u){if(null!==(r=Ou)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),ns(r,e,o,-1))}return vs(),Bl(e,t,l,r=cl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=As.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Ko++]=Qo,Go[Ko++]=Zo,Go[Ko++]=qo,Qo=e.id,Zo=e.overflow,qo=t),t=Nl(t,r.children),t.flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0===(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ts(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Ts(r,l):(l=Is(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ll(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Il,o}return e=(l=e.child).sibling,o=Ts(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=Ls({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&vi(r),xi(t,e.child,null,n),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oi(e.return,t,n)}function jl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Vl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hl(e,n,t);else if(19===e.tag)Hl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jl(t,!0,n,null,i);break;case"together":jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ul(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ts(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ts(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xl(t),null;case 1:case 17:return To(t.type)&&Po(),Xl(t),null;case 3:return r=t.stateNode,Qi(),Eo(Fo),Eo(Oo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Ml(e,t),Xl(t),null;case 5:Ji(t);var o=Ki(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Tl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Xl(t),null}if(e=Ki(Xi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Br(Ir[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":q(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var u in ye(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"===typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"===typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Br("scroll",r)}switch(n){case"input":X(r),J(r,a,!0);break;case"textarea":X(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[ho]=t,e[po]=r,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Br(Ir[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":q(e,r),o=K(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=z({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ye(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Br("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":X(e),J(e,r,!1);break;case"textarea":X(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Xl(t),null;case 6:if(e&&null!=t.stateNode)Pl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Gi.current),Ki(Xi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Xl(t),null;case 13:if(Eo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Xl(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Pu&&(Pu=3):vs())),null!==t.updateQueue&&(t.flags|=4),Xl(t),null);case 4:return Qi(),Ml(e,t),null===e&&Vr(t.stateNode.containerInfo),Xl(t),null;case 10:return _i(t.type._context),Xl(t),null;case 19:if(Eo(ea),null===(a=t.memoizedState))return Xl(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)$l(a,!1);else{if(0!==Pu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,$l(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Vu&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Xl(t),null}else 2*Qe()-a.renderingStartTime>Vu&&1073741824!==n&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Ao(ea,r?1&n|2:1&n),t):(Xl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Mu)&&(Xl(t),6&t.subtreeFlags&&(t.flags|=8192)):Xl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ni(t),t.tag){case 1:return To(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Fo),Eo(Oo),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Eo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ea),null;case 4:return Qi(),null;case 10:return _i(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Rl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(){},Tl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Xi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Br("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Pl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,ql=!1,Ql="function"===typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ss(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){Ss(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&eu(t,n,i)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[go],delete t[mo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:ql||Jl(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Vt(e)):uo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&eu(n,t,a),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!ql&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ss(n,t,l)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(ql=(r=ql)||null!==n.memoizedState,fu(e,t,n),ql=r):fu(e,t,n);break;default:fu(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=_s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(i(160));hu(a,l,o),cu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){Ss(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),mu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(g){Ss(e,e.return,g)}try{nu(5,e,e.return)}catch(g){Ss(e,e.return,g)}}break;case 1:vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Ss(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(o,a),be(u,l);var c=be(u,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(u){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(g){Ss(e,e.return,g)}}break;case 6:if(vu(t,e),mu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){Ss(e,e.return,g)}}break;case 3:if(vu(t,e),mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(g){Ss(e,e.return,g)}break;case 4:default:vu(t,e),mu(e);break;case 13:vu(t,e),mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(ju=Qe())),4&r&&pu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(ql=(c=ql)||d,vu(t,e),ql=c):vu(t,e),mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(p=(h=Zl).child,h.tag){case 0:case 11:case 14:case 15:nu(4,h,h.return);break;case 1:Jl(h,h.return);var v=h.stateNode;if("function"===typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){Ss(r,n,g)}}break;case 5:Jl(h,h.return);break;case 22:if(null!==h.memoizedState){xu(f);continue}}null!==p?(p.return=h,Zl=p):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,l=void 0!==(s=f.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,u.style.display=ve("display",l))}catch(g){Ss(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){Ss(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vu(t,e),mu(e),4&r&&pu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),su(e,lu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,lu(e),a);break;default:throw Error(i(161))}}catch(l){Ss(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yu(e,t,n){Zl=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!==(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||ql;l=Kl;var s=ql;if(Kl=a,(ql=u)&&!s)for(Zl=o;null!==Zl;)u=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Cu(o):null!==u?(u.return=a,Zl=u):Cu(o);for(;null!==i;)Zl=i,bu(i,t,n),i=i.sibling;Zl=o,Kl=l,ql=s}wu(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):wu(e)}}function wu(e){for(;null!==Zl;){var t=Zl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ql||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ui(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(i(163))}ql||512&t.flags&&ou(t)}catch(h){Ss(t,t.return,h)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xu(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Cu(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){Ss(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(u){Ss(t,o,u)}}var i=t.return;try{ou(t)}catch(u){Ss(t,i,u)}break;case 5:var a=t.return;try{ou(t)}catch(u){Ss(t,a,u)}}}catch(u){Ss(t,t.return,u)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var ku,Su=Math.ceil,Du=w.ReactCurrentDispatcher,Eu=w.ReactCurrentOwner,Au=w.ReactCurrentBatchConfig,_u=0,Ou=null,Fu=null,Ru=0,Mu=0,Tu=Do(0),Pu=0,Iu=null,Lu=0,zu=0,Nu=0,Bu=null,Hu=null,ju=0,Vu=1/0,Wu=null,Uu=!1,$u=null,Xu=null,Yu=!1,Gu=null,Ku=0,qu=0,Qu=null,Zu=-1,Ju=0;function es(){return 0!==(6&_u)?Qe():-1!==Zu?Zu:Zu=Qe()}function ts(e){return 0===(1&e.mode)?1:0!==(2&_u)&&0!==Ru?Ru&-Ru:null!==gi.transition?(0===Ju&&(Ju=vt()),Ju):0!==(e=bt)?e:e=void 0===(e=window.event)?16:qt(e.type)}function ns(e,t,n,r){if(50<qu)throw qu=0,Qu=null,Error(i(185));mt(e,n,r),0!==(2&_u)&&e===Ou||(e===Ou&&(0===(2&_u)&&(zu|=n),4===Pu&&ls(e,Ru)),rs(e,r),1===n&&0===_u&&0===(1&t.mode)&&(Vu=Qe()+500,Ho&&Wo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!==(l&n)&&0===(l&r)||(o[a]=ht(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Ou?Ru:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Ho=!0,Vo(e)}(us.bind(null,e)):Vo(us.bind(null,e)),ao((function(){0===(6&_u)&&Wo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Os(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zu=-1,Ju=0,0!==(6&_u))throw Error(i(327));var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var r=ft(e,e===Ou?Ru:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gs(e,r);else{t=r;var o=_u;_u|=2;var a=ps();for(Ou===e&&Ru===t||(Wu=null,Vu=Qe()+500,fs(e,t));;)try{ys();break}catch(u){hs(e,u)}Ai(),Du.current=a,_u=o,null!==Fu?t=0:(Ou=null,Ru=0,t=Pu)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=is(e,o))),1===t)throw n=Iu,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gs(e,r))&&(0!==(a=pt(e))&&(r=a,t=is(e,a))),1===t))throw n=Iu,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xs(e,Hu,Wu);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=ju+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,Hu,Wu),t);break}xs(e,Hu,Wu);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Su(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,Hu,Wu),r);break}xs(e,Hu,Wu);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Bu;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=gs(e,t))&&(t=Hu,Hu=n,null!==t&&as(t)),e}function as(e){null===Hu?Hu=e:Hu.push.apply(Hu,e)}function ls(e,t){for(t&=~Nu,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(0!==(6&_u))throw Error(i(327));Cs();var t=ft(e,0);if(0===(1&t))return rs(e,Qe()),null;var n=gs(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Iu,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,Hu,Wu),rs(e,Qe()),null}function ss(e,t){var n=_u;_u|=1;try{return e(t)}finally{0===(_u=n)&&(Vu=Qe()+500,Ho&&Wo())}}function cs(e){null!==Gu&&0===Gu.tag&&0===(6&_u)&&Cs();var t=_u;_u|=1;var n=Au.transition,r=bt;try{if(Au.transition=null,bt=1,e)return e()}finally{bt=r,Au.transition=n,0===(6&(_u=t))&&Wo()}}function ds(){Mu=Tu.current,Eo(Tu)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Fu)for(n=Fu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Po();break;case 3:Qi(),Eo(Fo),Eo(Oo),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Eo(ea);break;case 10:_i(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Ou=e,Fu=e=Ts(e.current,null),Ru=Mu=t,Pu=0,Iu=null,Nu=zu=Lu=0,Hu=Bu=null,null!==Mi){for(t=0;t<Mi.length;t++)if(null!==(r=(n=Mi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Mi=null}return e}function hs(e,t){for(;;){var n=Fu;try{if(Ai(),oa.current=Za,ca){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,sa=ua=la=null,da=!1,fa=0,Eu.current=null,null===n||null===n.return){Pu=1,Iu=t,Fu=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Ru,u.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s,d=u,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gl(l);if(null!==p){p.flags&=-257,ml(p,l,u,0,t),1&p.mode&&vl(a,c,t),s=c;var v=(t=p).updateQueue;if(null===v){var g=new Set;g.add(s),t.updateQueue=g}else v.add(s);break e}if(0===(1&t)){vl(a,c,t),vs();break e}s=Error(i(426))}else if(ii&&1&u.mode){var m=gl(l);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),ml(m,l,u,0,t),vi(sl(s,u));break e}}a=s=sl(s,u),4!==Pu&&(Pu=2),null===Bu?Bu=[a]:Bu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,hl(0,s,t));break e;case 1:u=s;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Xu||!Xu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,pl(a,u,t));break e}}a=a.return}while(null!==a)}ws(n)}catch(w){t=w,Fu===n&&null!==n&&(Fu=n=n.return);continue}break}}function ps(){var e=Du.current;return Du.current=Za,null===e?Za:e}function vs(){0!==Pu&&3!==Pu&&2!==Pu||(Pu=4),null===Ou||0===(268435455&Lu)&&0===(268435455&zu)||ls(Ou,Ru)}function gs(e,t){var n=_u;_u|=2;var r=ps();for(Ou===e&&Ru===t||(Wu=null,fs(e,t));;)try{ms();break}catch(o){hs(e,o)}if(Ai(),_u=n,Du.current=r,null!==Fu)throw Error(i(261));return Ou=null,Ru=0,Pu}function ms(){for(;null!==Fu;)bs(Fu)}function ys(){for(;null!==Fu&&!Ke();)bs(Fu)}function bs(e){var t=ku(e.alternate,e,Mu);e.memoizedProps=e.pendingProps,null===t?ws(e):Fu=t,Eu.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Yl(n,t,Mu)))return void(Fu=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Fu=n);if(null===e)return Pu=6,void(Fu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fu=t);Fu=t=e}while(null!==t);0===Pu&&(Pu=5)}function xs(e,t,n){var r=bt,o=Au.transition;try{Au.transition=null,bt=1,function(e,t,n,r){do{Cs()}while(null!==Gu);if(0!==(6&_u))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ou&&(Fu=Ou=null,Ru=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yu||(Yu=!0,Os(tt,(function(){return Cs(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Au.transition,Au.transition=null;var l=bt;bt=1;var u=_u;_u|=4,Eu.current=null,function(e,t){if(eo=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(u=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(u=l),h===a&&++d===r&&(s=l),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Ss(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}v=tu,tu=!1}(e,n),gu(n,e),pr(to),Ut=!!eo,to=eo=null,e.current=n,yu(n,e,o),qe(),_u=u,bt=l,Au.transition=a}else e.current=n;if(Yu&&(Yu=!1,Gu=e,Ku=o),a=e.pendingLanes,0===a&&(Xu=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Uu)throw Uu=!1,e=$u,$u=null,e;0!==(1&Ku)&&0!==e.tag&&Cs(),a=e.pendingLanes,0!==(1&a)?e===Qu?qu++:(qu=0,Qu=e):qu=0,Wo()}(e,t,n,r)}finally{Au.transition=o,bt=r}return null}function Cs(){if(null!==Gu){var e=wt(Ku),t=Au.transition,n=bt;try{if(Au.transition=null,bt=16>e?16:e,null===Gu)var r=!1;else{if(e=Gu,Gu=null,Ku=0,0!==(6&_u))throw Error(i(331));var o=_u;for(_u|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!==(16&Zl.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var h=(d=Zl).sibling,p=d.return;if(iu(d),d===c){Zl=null;break}if(null!==h){h.return=p,Zl=h;break}Zl=p}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Zl=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!==(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zl=y;break e}Zl=a.return}}var b=e.current;for(Zl=b;null!==Zl;){var w=(l=Zl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=b;null!==Zl;){if(0!==(2048&(u=Zl).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(C){Ss(u,u.return,C)}if(u===l){Zl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Zl=x;break e}Zl=u.return}}if(_u=o,Wo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{bt=n,Au.transition=t}}return!1}function ks(e,t,n){e=Hi(e,t=hl(0,t=sl(n,t),1),1),t=es(),null!==e&&(mt(e,1,t),rs(e,t))}function Ss(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xu||!Xu.has(r))){t=Hi(t,e=pl(t,e=sl(n,e),1),1),e=es(),null!==t&&(mt(t,1,e),rs(t,e));break}}t=t.return}}function Ds(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Ou===e&&(Ru&n)===n&&(4===Pu||3===Pu&&(130023424&Ru)===Ru&&500>Qe()-ju?fs(e,0):Nu|=n),rs(e,t)}function Es(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=es();null!==(e=Ii(e,t))&&(mt(e,t,n),rs(e,n))}function As(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function _s(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Es(e,n)}function Os(e,t){return Ye(e,t)}function Fs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rs(e,t,n,r){return new Fs(e,t,n,r)}function Ms(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ts(e,t){var n=e.alternate;return null===n?((n=Rs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ps(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)Ms(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case k:return Is(n.children,o,a,t);case S:l=8,o|=8;break;case D:return(e=Rs(12,n,t,2|o)).elementType=D,e.lanes=a,e;case O:return(e=Rs(13,n,t,o)).elementType=O,e.lanes=a,e;case F:return(e=Rs(19,n,t,o)).elementType=F,e.lanes=a,e;case T:return Ls(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case A:l=9;break e;case _:l=11;break e;case R:l=14;break e;case M:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Rs(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Is(e,t,n,r){return(e=Rs(7,e,r,t)).lanes=n,e}function Ls(e,t,n,r){return(e=Rs(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function zs(e,t,n){return(e=Rs(6,e,null,t)).lanes=n,e}function Ns(e,t,n){return(t=Rs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hs(e,t,n,r,o,i,a,l,u){return e=new Bs(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Rs(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(i),e}function js(e){if(!e)return _o;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(To(n))return Lo(e,n,t)}return t}function Vs(e,t,n,r,o,i,a,l,u){return(e=Hs(n,r,!0,e,0,i,0,l,u)).context=js(null),n=e.current,(i=Bi(r=es(),o=ts(n))).callback=void 0!==t&&null!==t?t:null,Hi(n,i,o),e.current.lanes=o,mt(e,o,r),rs(e,r),e}function Ws(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=js(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Hi(o,t,a))&&(ns(e,o,a,i),ji(e,o,a)),a}function Us(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $s(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xs(e,t){$s(e,t),(e=e.alternate)&&$s(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Fo.current)bl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Ol(t),pi();break;case 5:Zi(t);break;case 1:To(t.type)&&zo(t);break;case 4:qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?zl(e,t,n):(Ao(ea,1&ea.current),null!==(e=Ul(e,t,n))?e.sibling:null);Ao(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Vl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return Ul(e,t,n)}(e,t,n);bl=0!==(131072&e.flags)}else bl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Mo(t,Oo.current);Fi(t,n),o=ga(null,t,r,e,o,n);var a=ma();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,To(r)?(a=!0,zo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,zi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,ul(t,r,e,n),t=_l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Ms(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===R)return 14}return 2}(r),e=nl(r,e),o){case 0:t=El(null,t,r,e,n);break e;case 1:t=Al(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Cl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Ol(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),Wi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Fl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Fl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Ul(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Dl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return zl(e,t,n);case 4:return qi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Ao(ki,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Fo.current){t=Ul(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Bi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Oi(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),Oi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fi(t,n),r=r(o=Ri(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Cl(e,t,r,o=nl(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Wl(e,t),t.tag=1,To(r)?(e=!0,zo(t)):e=!1,Fi(t,n),al(t,r,o),ul(t,r,o,n),_l(null,t,r,!0,e,n);case 19:return Vl(e,t,n);case 22:return Sl(e,t,n)}throw Error(i(156,t.tag))};var Ys="function"===typeof reportError?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Us(a);l.call(e)}}Ws(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Us(a);i.call(e)}}var a=Vs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[vo]=a.current,Vr(8===e.nodeType?e.parentNode:e),cs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Us(u);l.call(e)}}var u=Hs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=u,e[vo]=u.current,Vr(8===e.nodeType?e.parentNode:e),cs((function(){Ws(t,u,n,r)})),u}(n,t,e,o,r);return Us(a)}Ks.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Ws(e,t,null,null)},Ks.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Ws(null,e,null,null)})),t[vo]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&zt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rs(t,Qe()),0===(6&_u)&&(Vu=Qe()+500,Wo()))}break;case 13:cs((function(){var t=Ii(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Xs(e,1)}},Ct=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)ns(t,e,134217728,es());Xs(e,134217728)}},kt=function(e){if(13===e.tag){var t=ts(e),n=Ii(e,t);if(null!==n)ns(n,e,t,es());Xs(e,t)}},St=function(){return bt},Dt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));Y(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=ss,Oe=cs;var ec={usingClientEntryPoint:!1,Events:[wo,xo,Co,Ee,Ae,ss]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!qs(e))throw Error(i(299));var n=!1,r="",o=Ys;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hs(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Gs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!qs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Ys;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Vs(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ks(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},4391:(e,t,n)=>{"use strict";var r=n(7950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},9632:function(e,t,n){var r,o,i;o=[t,n(75)],r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}e.default=n.default},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},75:function(e,t,n){var r,o,i;o=[t,n(5043),n(5173)],r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=h;var r=i(t),o=i(n);function i(e){return e&&e.__esModule?e:{default:e}}var a=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};function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(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)}var f=!1;function h(e){f=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){h(!0)}}))}catch(m){}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return f?e:e.capture}function v(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function t(){var e;u(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return i._handleSwipeStart=i._handleSwipeStart.bind(i),i._handleSwipeMove=i._handleSwipeMove.bind(i),i._handleSwipeEnd=i._handleSwipeEnd.bind(i),i._onMouseDown=i._onMouseDown.bind(i),i._onMouseMove=i._onMouseMove.bind(i),i._onMouseUp=i._onMouseUp.bind(i),i._setSwiperRef=i._setSwiperRef.bind(i),i}return d(t,e),s(t,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function(e){var t=v(e),n=t.x,r=t.y;this.moveStart={x:n,y:r},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function(e){if(this.moveStart){var t=v(e),n=t.x,r=t.y,o=n-this.moveStart.x,i=r-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:o,y:i},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:o,deltaY:i}}}},{key:"_handleSwipeEnd",value:function(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),n=e.style,o=e.children,i=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,l(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},i),o)}}]),t}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:o.default.string,className:o.default.string,style:o.default.object,children:o.default.node,allowMouseEvents:o.default.bool,onSwipeUp:o.default.func,onSwipeDown:o.default.func,onSwipeLeft:o.default.func,onSwipeRight:o.default.func,onSwipeStart:o.default.func,onSwipeMove:o.default.func,onSwipeEnd:o.default.func,innerRef:o.default.func,tolerance:o.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=g},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},6311:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((e=>{let[t,n]=e;o[t]=new r(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(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=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=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,a);o[t]=new r(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,a);o[t]=new r(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,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}));o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:u,possibleStandardNames:s}=n(8952),c=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(s).reduce(((e,t)=>{const n=s[t];return n===u?e[t]=t:n===l?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 o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},8952:(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}},178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var r=0===e?e:e+t;return"translate3d"+("("+("horizontal"===n?[r,0,0]:[0,r,0]).join(",")+")")}},8226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var r,o=n(5043),i=(r=n(178))&&r.__esModule?r:{default:r},a=n(564);function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.slideAnimationHandler=function(e,t){var n={},r=t.selectedItem,l=r,s=o.Children.count(e.children)-1;if(e.infiniteLoop&&(r<0||r>s))return l<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?n.itemListStyle=(0,a.setPosition)(-(s+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):n.itemListStyle=(0,a.setPosition)(100*-(s+2),e.axis):l>s&&(n.itemListStyle=(0,a.setPosition)(0,e.axis)),n;var c=(0,a.getPosition)(r,e),d=(0,i.default)(c,"%",e.axis),f=e.transitionTime+"ms";return n.itemListStyle={WebkitTransform:d,msTransform:d,OTransform:d,transform:d},t.swiping||(n.itemListStyle=u(u({},n.itemListStyle),{},{WebkitTransitionDuration:f,MozTransitionDuration:f,OTransitionDuration:f,transitionDuration:f,msTransitionDuration:f})),n};t.slideSwipeAnimationHandler=function(e,t,n,r){var i={},l="horizontal"===t.axis,u=o.Children.count(t.children),s=(0,a.getPosition)(n.selectedItem,t),c=t.infiniteLoop?(0,a.getPosition)(u-1,t)-100:(0,a.getPosition)(u-1,t),d=l?e.x:e.y,f=d;0===s&&d>0&&(f=0),s===c&&d<0&&(f=0);var h=s+100/(n.itemSize/f),p=Math.abs(d)>t.swipeScrollTolerance;return t.infiniteLoop&&p&&(0===n.selectedItem&&h>-100?h-=100*u:n.selectedItem===u-1&&h<100*-u&&(h+=100*u)),(!t.preventMovementUntilSwipeScrollTolerance||p||n.swipeMovementStarted)&&(n.swipeMovementStarted||r({swipeMovementStarted:!0}),i.itemListStyle=(0,a.setPosition)(h,t.axis)),p&&!n.cancelClick&&r({cancelClick:!0}),i};t.slideStopSwipingHandler=function(e,t){var n=(0,a.getPosition)(t.selectedItem,e);return{itemListStyle:(0,a.setPosition)(n,e.axis)}};t.fadeAnimationHandler=function(e,t){var n=e.transitionTime+"ms",r="ease-in-out",o={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:r,msTransitionTimingFunction:r,MozTransitionTimingFunction:r,WebkitTransitionTimingFunction:r,OTransitionTimingFunction:r};return t.swiping||(o=u(u({},o),{},{WebkitTransitionDuration:n,MozTransitionDuration:n,OTransitionDuration:n,transitionDuration:n,msTransitionDuration:n})),{slideStyle:o,selectedStyle:u(u({},o),{},{opacity:1,position:"relative"}),prevStyle:u({},o)}}},3481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(5043)),o=d(n(9632)),i=d(n(8656)),a=d(n(4169)),l=d(n(5559)),u=d(n(9386)),s=n(564),c=n(8226);function d(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return h="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},h(e)}function p(){return p=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},p.apply(this,arguments)}function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(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,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;return w(e)}(this,n)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=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}}),t&&y(e,t)}(h,e);var t,n,d,f=b(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),C(w(t=f.call(this,e)),"thumbsRef",void 0),C(w(t),"carouselWrapperRef",void 0),C(w(t),"listRef",void 0),C(w(t),"itemsRef",void 0),C(w(t),"timer",void 0),C(w(t),"animationHandler",void 0),C(w(t),"setThumbsRef",(function(e){t.thumbsRef=e})),C(w(t),"setCarouselWrapperRef",(function(e){t.carouselWrapperRef=e})),C(w(t),"setListRef",(function(e){t.listRef=e})),C(w(t),"setItemsRef",(function(e,n){t.itemsRef||(t.itemsRef=[]),t.itemsRef[n]=e})),C(w(t),"autoPlay",(function(){r.Children.count(t.props.children)<=1||(t.clearAutoPlay(),t.props.autoPlay&&(t.timer=setTimeout((function(){t.increment()}),t.props.interval)))})),C(w(t),"clearAutoPlay",(function(){t.timer&&clearTimeout(t.timer)})),C(w(t),"resetAutoPlay",(function(){t.clearAutoPlay(),t.autoPlay()})),C(w(t),"stopOnHover",(function(){t.setState({isMouseEntered:!0},t.clearAutoPlay)})),C(w(t),"startOnLeave",(function(){t.setState({isMouseEntered:!1},t.autoPlay)})),C(w(t),"isFocusWithinTheCarousel",(function(){return!!t.carouselWrapperRef&&!((0,l.default)().activeElement!==t.carouselWrapperRef&&!t.carouselWrapperRef.contains((0,l.default)().activeElement))})),C(w(t),"navigateWithKeyboard",(function(e){if(t.isFocusWithinTheCarousel()){var n="horizontal"===t.props.axis,r=n?37:38;(n?39:40)===e.keyCode?t.increment():r===e.keyCode&&t.decrement()}})),C(w(t),"updateSizes",(function(){if(t.state.initialized&&t.itemsRef&&0!==t.itemsRef.length){var e="horizontal"===t.props.axis,n=t.itemsRef[0];if(n){var r=e?n.clientWidth:n.clientHeight;t.setState({itemSize:r}),t.thumbsRef&&t.thumbsRef.updateSizes()}}})),C(w(t),"setMountState",(function(){t.setState({hasMount:!0}),t.updateSizes()})),C(w(t),"handleClickItem",(function(e,n){0!==r.Children.count(t.props.children)&&(t.state.cancelClick?t.setState({cancelClick:!1}):(t.props.onClickItem(e,n),e!==t.state.selectedItem&&t.setState({selectedItem:e})))})),C(w(t),"handleOnChange",(function(e,n){r.Children.count(t.props.children)<=1||t.props.onChange(e,n)})),C(w(t),"handleClickThumb",(function(e,n){t.props.onClickThumb(e,n),t.moveTo(e)})),C(w(t),"onSwipeStart",(function(e){t.setState({swiping:!0}),t.props.onSwipeStart(e)})),C(w(t),"onSwipeEnd",(function(e){t.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),t.props.onSwipeEnd(e),t.clearAutoPlay(),t.state.autoPlay&&t.autoPlay()})),C(w(t),"onSwipeMove",(function(e,n){t.props.onSwipeMove(n);var r=t.props.swipeAnimationHandler(e,t.props,t.state,t.setState.bind(w(t)));return t.setState(g({},r)),!!Object.keys(r).length})),C(w(t),"decrement",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"===typeof e?e:1))})),C(w(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"===typeof e?e:1))})),C(w(t),"moveTo",(function(e){if("number"===typeof e){var n=r.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?n:0),e>n&&(e=t.props.infiniteLoop?0:n),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),C(w(t),"onClickNext",(function(){t.increment(1)})),C(w(t),"onClickPrev",(function(){t.decrement(1)})),C(w(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),C(w(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),C(w(t),"changeItem",(function(e){return function(n){(0,s.isKeyboardEvent)(n)&&"Enter"!==n.key||t.moveTo(e)}})),C(w(t),"selectItem",(function(e){t.setState(g({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,r.Children.toArray(t.props.children)[e.selectedItem])})),C(w(t),"getInitialImage",(function(){var e=t.props.selectedItem,n=t.itemsRef&&t.itemsRef[e];return(n&&n.getElementsByTagName("img")||[])[0]})),C(w(t),"getVariableItemHeight",(function(e){var n=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&n&&n.children.length){var r=n.children[0].getElementsByTagName("img")||[];if(r.length>0){var o=r[0];if(!o.complete){o.addEventListener("load",(function e(){t.forceUpdate(),o.removeEventListener("load",e)}))}}var i=(r[0]||n.children[0]).clientHeight;return i>0?i:null}return null}));var n={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"===typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&c.fadeAnimationHandler||c.slideAnimationHandler,t.state=g(g({},n),t.animationHandler(e,n)),t}return t=h,(n=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(g({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&r.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,l.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,l.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?r.Children.map(this.props.children,(function(n,o){var a=o===t.state.selectedItem,l=o===t.state.previousItem,u=a&&t.state.selectedStyle||l&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(u=g(g({},u),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(u=g(g({},u),{},{pointerEvents:"none"}));var s={ref:function(e){return t.setItemsRef(e,o)},key:"itemKey"+o+(e?"clone":""),className:i.default.ITEM(!0,o===t.state.selectedItem,o===t.state.previousItem),onClick:t.handleClickItem.bind(t,o,n),style:u};return r.default.createElement("li",s,t.props.renderItem(n,{isSelected:o===t.state.selectedItem,isPrevious:o===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,n=t.showIndicators,o=t.labels,i=t.renderIndicator,a=t.children;return n?r.default.createElement("ul",{className:"control-dots"},r.Children.map(a,(function(t,n){return i&&i(e.changeItem(n),n===e.state.selectedItem,n,o.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?r.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,r.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==r.Children.count(this.props.children)?r.default.createElement(a.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===r.Children.count(this.props.children))return null;var t=this.props.swipeable&&r.Children.count(this.props.children)>1,n="horizontal"===this.props.axis,a=this.props.showArrows&&r.Children.count(this.props.children)>1,l=a&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,u=a&&(this.state.selectedItem<r.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,s=this.renderItems(!0),c=s.shift(),d=s.pop(),f={className:i.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},h={};if(n){if(f.onSwipeLeft=this.onSwipeForward,f.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var v=this.getVariableItemHeight(this.state.selectedItem);h.height=v||"auto"}}else f.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,f.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,f.style=g(g({},f.style),{},{height:this.state.itemSize}),h.height=this.state.itemSize;return r.default.createElement("div",{"aria-label":this.props.ariaLabel,className:i.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},r.default.createElement("div",{className:i.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,l,this.props.labels.leftArrow),r.default.createElement("div",{className:i.default.WRAPPER(!0,this.props.axis),style:h},t?r.default.createElement(o.default,p({tagName:"ul",innerRef:this.setListRef},f,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c):r.default.createElement("ul",{className:i.default.SLIDER(!0,this.state.swiping),ref:function(t){return e.setListRef(t)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c)),this.props.renderArrowNext(this.onClickNext,u,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}])&&m(t.prototype,n),d&&m(t,d),h}(r.default.Component);t.default=k,C(k,"displayName","Carousel"),C(k,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:s.noop,onClickThumb:s.noop,onChange:s.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:i.default.ARROW_PREV(!t),onClick:e})},renderArrowNext:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:i.default.ARROW_NEXT(!t),onClick:e})},renderIndicator:function(e,t,n,o){return r.default.createElement("li",{className:i.default.DOT(t),onClick:e,onKeyDown:e,value:n,key:n,role:"button",tabIndex:0,"aria-label":"".concat(o," ").concat(n+1)})},renderItem:function(e){return e},renderThumbs:function(e){var t=r.Children.map(e,(function(e){var t=e;if("img"!==e.type&&(t=r.Children.toArray(e.props.children).find((function(e){return"img"===e.type}))),t)return t}));return 0===t.filter((function(e){return e})).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):t},statusFormatter:s.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler})},3096:()=>{},564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var r,o=n(5043),i=(r=n(178))&&r.__esModule?r:{default:r};t.noop=function(){};t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)};t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")};t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var n=o.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var r=-e*t.centerSlidePercentage,i=n-1;return e&&(e!==i||t.infiniteLoop)?r+=(100-t.centerSlidePercentage)/2:e===i&&(r+=100-t.centerSlidePercentage),r}return 100*-e};t.setPosition=function(e,t){var n={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(r){n[r]=(0,i.default)(e,"%",t)})),n}},4169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(5043)),o=s(n(8656)),i=n(1256),a=s(n(178)),l=s(n(9632)),u=s(n(9386));function s(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function d(e){return d="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},d(e)}function f(){return f=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},f.apply(this,arguments)}function h(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,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"===typeof t))return t;return g(e)}(this,n)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=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}}),t&&p(e,t)}(d,e);var t,n,s,c=v(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),y(g(t=c.call(this,e)),"itemsWrapperRef",void 0),y(g(t),"itemsListRef",void 0),y(g(t),"thumbsRef",void 0),y(g(t),"setItemsWrapperRef",(function(e){t.itemsWrapperRef=e})),y(g(t),"setItemsListRef",(function(e){t.itemsListRef=e})),y(g(t),"setThumbsRef",(function(e,n){t.thumbsRef||(t.thumbsRef=[]),t.thumbsRef[n]=e})),y(g(t),"updateSizes",(function(){if(t.props.children&&t.itemsWrapperRef&&t.thumbsRef){var e=r.Children.count(t.props.children),n=t.itemsWrapperRef.clientWidth,o=t.props.thumbWidth?t.props.thumbWidth:(0,i.outerWidth)(t.thumbsRef[0]),a=Math.floor(n/o),l=a<e,u=l?e-a:0;t.setState((function(e,n){return{itemSize:o,visibleItems:a,firstItem:l?t.getFirstItem(n.selectedItem):0,lastPosition:u,showArrows:l}}))}})),y(g(t),"handleClickItem",(function(e,n,r){if(!function(e){return e.hasOwnProperty("key")}(r)||"Enter"===r.key){var o=t.props.onSelectItem;"function"===typeof o&&o(e,n)}})),y(g(t),"onSwipeStart",(function(){t.setState({swiping:!0})})),y(g(t),"onSwipeEnd",(function(){t.setState({swiping:!1})})),y(g(t),"onSwipeMove",(function(e){var n=e.x;if(!t.state.itemSize||!t.itemsWrapperRef||!t.state.visibleItems)return!1;var o=r.Children.count(t.props.children),i=-100*t.state.firstItem/t.state.visibleItems;0===i&&n>0&&(n=0),i===100*-Math.max(o-t.state.visibleItems,0)/t.state.visibleItems&&n<0&&(n=0);var l=i+100/(t.itemsWrapperRef.clientWidth/n);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,a.default)(l,"%",t.props.axis)})),!0})),y(g(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),y(g(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),y(g(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(n=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,u.default)().addEventListener("resize",this.updateSizes),(0,u.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,u.default)().removeEventListener("resize",this.updateSizes),(0,u.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e<this.state.firstItem+this.state.visibleItems&&(t=this.state.firstItem),e<this.state.firstItem&&(t=e),t}},{key:"renderItems",value:function(){var e=this;return this.props.children.map((function(t,n){var i=o.default.ITEM(!1,n===e.state.selectedItem),a={key:n,ref:function(t){return e.setThumbsRef(t,n)},className:i,onClick:e.handleClickItem.bind(e,n,e.props.children[n]),onKeyDown:e.handleClickItem.bind(e,n,e.props.children[n]),"aria-label":"".concat(e.props.labels.item," ").concat(n+1),style:{width:e.props.thumbWidth}};return r.default.createElement("li",f({},a,{role:"button",tabIndex:0}),t)}))}},{key:"render",value:function(){var e=this;if(!this.props.children)return null;var t,n=r.Children.count(this.props.children)>1,i=this.state.showArrows&&this.state.firstItem>0,u=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,s=-this.state.firstItem*(this.state.itemSize||0),c=(0,a.default)(s,"px",this.props.axis),d=this.props.transitionTime+"ms";return t={WebkitTransform:c,MozTransform:c,MsTransform:c,OTransform:c,transform:c,msTransform:c,WebkitTransitionDuration:d,MozTransitionDuration:d,MsTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d},r.default.createElement("div",{className:o.default.CAROUSEL(!1)},r.default.createElement("div",{className:o.default.WRAPPER(!1),ref:this.setItemsWrapperRef},r.default.createElement("button",{type:"button",className:o.default.ARROW_PREV(!i),onClick:function(){return e.slideRight()},"aria-label":this.props.labels.leftArrow}),n?r.default.createElement(l.default,{tagName:"ul",className:o.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:t,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):r.default.createElement("ul",{className:o.default.SLIDER(!1,this.state.swiping),ref:function(t){return e.setItemsListRef(t)},style:t},this.renderItems()),r.default.createElement("button",{type:"button",className:o.default.ARROW_NEXT(!u),onClick:function(){return e.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}])&&h(t.prototype,n),s&&h(t,s),d}(r.Component);t.default=b,y(b,"displayName","Thumbs"),y(b,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},8656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(8139))&&r.__esModule?r:{default:r};var i={ROOT:function(e){return(0,o.default)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,o.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,o.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,o.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,n){return(0,o.default)({thumb:!e,slide:e,selected:t,previous:n})},ARROW_PREV:function(e){return(0,o.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,o.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,o.default)({dot:!0,selected:e})}};t.default=i},1256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)}},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"FN",{enumerable:!0,get:function(){return r.default}});var r=a(n(3481)),o=n(3096),i=a(n(4169));function a(e){return e&&e.__esModule?e:{default:e}}},5559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},9386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var w=b.prototype=new y;w.constructor=b,v(w,m.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:k.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function _(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+_(u,0):i,x(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),O(a,t,o,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var c=i+_(l=e[s],s);u+=O(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=O(l=l.value,t,o,c=i+_(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function F(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},T={transition:null},P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:T,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)C.call(t,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=D,t.createFactory=function(e){var t=D.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,h=3,p=!1,v=!1,g=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(g=!1,w(e),!v)if(null!==r(s))v=!0,T(C);else{var t=r(c);null!==t&&P(x,t.startTime-e)}}function C(e,n){v=!1,g&&(g=!1,y(E),E=-1),p=!0;var i=h;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!O());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&P(x,d.startTime-n),u=!1}return u}finally{f=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,D=null,E=-1,A=5,_=-1;function O(){return!(t.unstable_now()-_<A)}function F(){if(null!==D){var e=t.unstable_now();_=e;var n=!0;try{n=D(!0,e)}finally{n?k():(S=!1,D=null)}}else S=!1}if("function"===typeof b)k=function(){b(F)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,M=R.port2;R.port1.onmessage=F,k=function(){M.postMessage(null)}}else k=function(){m(F,0)};function T(e){D=e,S||(S=!0,k())}function P(e,n){E=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,T(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(g?(y(E),E=-1):g=!0,P(x,i-a))):(e.sortIndex=l,n(s,e),v||p||(v=!0,T(C))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},7294:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(4222)),o=n(8146);function i(e,t){var n={};return e&&"string"===typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(i,u)).replace(r,l))}},4222:function(e,t,n){"use strict";var r=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 r=(0,o.default)(e),i="function"===typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(4403))},8139:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4467);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},3986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},7165:(e,t,n)=>{"use strict";n.d(t,{DP:()=>c,Dx:()=>s,P6:()=>d,n6:()=>u,zc:()=>a});var r=n(9379),o=n(5043),i=n(8402);function a(e){var t,n;return(0,r.A)((0,r.A)((0,r.A)({"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":null!==(t=e.textGroupHeader)&&void 0!==t?t:e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":null!==(n=e.horizontalBorderColor)&&void 0!==n?n:e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":"".concat(e.cellHorizontalPadding,"px"),"--gdg-cell-vertical-padding":"".concat(e.cellVerticalPadding,"px"),"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-marker-font-style":e.markerFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize},void 0===e.resizeIndicatorColor?{}:{"--gdg-resize-indicator-color":e.resizeIndicatorColor}),void 0===e.headerBottomBorderColor?{}:{"--gdg-header-bottom-border-color":e.headerBottomBorderColor}),void 0===e.roundingRadius?{}:{"--gdg-rounding-radius":"".concat(e.roundingRadius,"px")})}const l={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#353fb5",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",markerFontStyle:"9px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function u(){return l}const s=o.createContext(l);function c(){return o.useContext(s)}function d(e){const t=(0,r.A)({},e);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(const r of o)if(void 0!==r)for(const e in r)r.hasOwnProperty(e)&&(t[e]="bgCell"===e?(0,i.au)(r[e],t[e]):r[e]);return void 0!==t.headerFontFull&&e.fontFamily===t.fontFamily&&e.headerFontStyle===t.headerFontStyle||(t.headerFontFull="".concat(t.headerFontStyle," ").concat(t.fontFamily)),void 0!==t.baseFontFull&&e.fontFamily===t.fontFamily&&e.baseFontStyle===t.baseFontStyle||(t.baseFontFull="".concat(t.baseFontStyle," ").concat(t.fontFamily)),void 0!==t.markerFontFull&&e.fontFamily===t.fontFamily&&e.markerFontStyle===t.markerFontStyle||(t.markerFontFull="".concat(t.markerFontStyle," ").concat(t.fontFamily)),t}},9780:(e,t,n)=>{"use strict";function r(e){}function o(){throw new Error(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"This should not happen")}function i(e){if(!e)return o(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Assertion failed")}function a(e,t){return o(null!==t&&void 0!==t?t:"Hell froze over")}function l(e,t){try{return e()}catch(n){return t}}n.d(t,{HD:()=>r,bD:()=>s,no:()=>l,vA:()=>i,xb:()=>a});const u=Object.prototype.hasOwnProperty;function s(e,t){let n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&s(e[r],t[r]););return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(u.call(e,n)&&++r&&!u.call(t,n))return!1;if(!(n in t)||!s(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}},9252:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(9379),o=n(3986),i=n(4467),a=n(5043);const l=["onClickOutside","isOutsideClick"];class u extends a.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"wrapperRef",a.createRef()),(0,i.A)(this,"clickOutside",(e=>{if((!this.props.isOutsideClick||this.props.isOutsideClick(e))&&null!==this.wrapperRef.current&&!this.wrapperRef.current.contains(e.target)){let t=e.target;for(;null!==t;){if(t.classList.contains("click-outside-ignore"))return;t=t.parentElement}this.props.onClickOutside()}}))}componentDidMount(){document.addEventListener("touchend",this.clickOutside,!0),document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("touchend",this.clickOutside,!0),document.removeEventListener("mousedown",this.clickOutside,!0),document.removeEventListener("contextmenu",this.clickOutside,!0)}render(){const e=this.props,{onClickOutside:t,isOutsideClick:n}=e,i=(0,o.A)(e,l);return a.createElement("div",(0,r.A)((0,r.A)({},i),{},{ref:this.wrapperRef}),this.props.children)}}},1301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(9379),o=n(5043),i=n(7950),a=n(9252),l=n(7165),u=n(8080);const s=(0,n(1923).I)("div")({name:"DataGridOverlayEditorStyle",class:"gdg-d19meir1",propsAsIs:!1,vars:{"d19meir1-0":[e=>e.targetY,"px"],"d19meir1-1":[e=>e.targetX,"px"],"d19meir1-2":[e=>e.targetWidth,"px"],"d19meir1-3":[e=>e.targetHeight,"px"],"d19meir1-4":[e=>e.targetY+10,"px"],"d19meir1-5":[e=>Math.max(0,(e.targetHeight-28)/2),"px"]}});function c(){const[e,t]=function(){const[e,t]=o.useState();return[null!==e&&void 0!==e?e:void 0,t]}(),[n,r]=o.useState(0),[i,a]=o.useState(!0);o.useLayoutEffect((()=>{if(void 0===e)return;if(!("IntersectionObserver"in window))return;const t=new IntersectionObserver((e=>{0!==e.length&&a(e[0].isIntersecting)}),{threshold:1});return t.observe(e),()=>t.disconnect()}),[e]),o.useEffect((()=>{if(i||void 0===e)return;let t;const n=()=>{const{right:o}=e.getBoundingClientRect();r((e=>Math.min(e+window.innerWidth-o-10,0))),t=requestAnimationFrame(n)};return t=requestAnimationFrame(n),()=>{void 0!==t&&cancelAnimationFrame(t)}}),[e,i]);return{ref:t,style:o.useMemo((()=>({transform:"translateX(".concat(n,"px)")})),[n])}}const d=e=>{var t,n;const{target:d,content:f,onFinishEditing:h,forceEditMode:p,initialValue:v,imageEditorOverride:g,markdownDivCreateNode:m,highlight:y,className:b,theme:w,id:x,cell:C,bloom:k,validateCell:S,getCellRenderer:D,provideEditor:E,isOutsideClick:A}=e,[_,O]=o.useState(p?f:void 0),F=o.useRef(null!==_&&void 0!==_?_:f);F.current=null!==_&&void 0!==_?_:f;const[R,M]=o.useState((()=>void 0===S||!((0,u.Bc)(f)&&!1===(null===S||void 0===S?void 0:S(C,f,F.current))))),T=o.useCallback(((e,t)=>{h(R?e:void 0,t)}),[R,h]),P=o.useCallback((e=>{if(void 0!==S&&void 0!==e&&(0,u.Bc)(e)){const t=S(C,e,F.current);!1===t?M(!1):"object"===typeof t?(e=t,M(!0)):M(!0)}O(e)}),[C,S]),I=o.useRef(!1),L=o.useRef(void 0),z=o.useCallback((()=>{T(_,[0,0]),I.current=!0}),[_,T]),N=o.useCallback(((e,t)=>{var n;T(e,null!==(n=null!==t&&void 0!==t?t:L.current)&&void 0!==n?n:[0,0]),I.current=!0}),[T]),B=o.useCallback((async e=>{let t=!1;"Escape"===e.key?(e.stopPropagation(),e.preventDefault(),L.current=[0,0]):"Enter"!==e.key||e.shiftKey?"Tab"===e.key&&(e.stopPropagation(),e.preventDefault(),L.current=[e.shiftKey?-1:1,0],t=!0):(e.stopPropagation(),e.preventDefault(),L.current=[0,1],t=!0),window.setTimeout((()=>{I.current||void 0===L.current||(T(t?_:void 0,L.current),I.current=!0)}),0)}),[T,_]),H=null!==_&&void 0!==_?_:f,[j,V]=o.useMemo((()=>{var e,t;if((0,u.pg)(f))return[];const n=null===E||void 0===E?void 0:E(f);return void 0!==n?[n,!1]:[null===(e=D(f))||void 0===e||null===(t=e.provideEditor)||void 0===t?void 0:t.call(e,f),!1]}),[f,D,E]),{ref:W,style:U}=c();let $,X,Y=!0,G=!0;if(void 0!==j){Y=!0!==j.disablePadding,G=!0!==j.disableStyling;const e=(0,u.zT)(j);e&&(X=j.styleOverride);const t=e?j.editor:j;$=o.createElement(t,{isHighlighted:y,onChange:P,value:H,initialValue:v,onFinishedEditing:N,validatedSelection:(0,u.Bc)(H)?H.selectionRange:void 0,forceEditMode:p,target:d,imageEditorOverride:g,markdownDivCreateNode:m,isValid:R,theme:w})}X=(0,r.A)((0,r.A)({},X),U);const K=document.getElementById("portal");if(null===K)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'),null;let q=G?"gdg-style":"gdg-unstyle";R||(q+=" gdg-invalid"),Y&&(q+=" gdg-pad");const Q=null!==(t=null===k||void 0===k?void 0:k[0])&&void 0!==t?t:1,Z=null!==(n=null===k||void 0===k?void 0:k[1])&&void 0!==n?n:1;return(0,i.createPortal)(o.createElement(l.Dx.Provider,{value:w},o.createElement(a.A,{style:(0,l.zc)(w),className:b,onClickOutside:z,isOutsideClick:A},o.createElement(s,{ref:W,id:x,className:q,style:X,as:!0===V?"label":void 0,targetX:d.x-Q,targetY:d.y-Z,targetWidth:d.width+2*Q,targetHeight:d.height+2*Z},o.createElement("div",{className:"gdg-clip-region",onKeyDown:B},$)))),K)}},6082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(5043);const o=(0,n(1923).I)("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var a;function l(){}function u(e){return!!(e||"").match(/\d/)}function s(e){return null===e||void 0===e}function c(e){return s(e)||function(e){return"number"===typeof e&&isNaN(e)}(e)||"number"===typeof e&&!isFinite(e)}function d(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function f(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function h(e,t,n){for(var r="",o=n?"0":"",i=0;i<=t-1;i++)r+=e[i]||o;return r}function p(e,t){return Array(t+1).join(e)}function v(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],i=r[1];if(!(i=Number(i)))return n+o;var a=1+i,l=(o=o.replace(".","")).length;return a<0?o="0."+p("0",Math.abs(a))+o:a>=l?o+=p("0",a-l):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function g(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=f(e),i=o.beforeDecimal,a=o.afterDecimal,l=o.hasNegation,u=parseFloat("0."+(a||"0")),s=(a.length<=t?"0."+a:u.toFixed(t)).split("."),c=i;return i&&Number(s[0])&&(c=i.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),s[0])),""+(l?"-":"")+c+(r?".":"")+h(s[1]||"",t,n)}function m(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(e){e.event="event",e.props="prop"}(a||(a={}));var y=function(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every((function(e,n){return e===t[n]}))?n:(t=r,n=e.apply(void 0,r))}}((function(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[i-1-r]&&i-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}));function b(e){return Math.max(e.selectionStart,e.selectionEnd)}function w(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function x(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function C(e,t,n,r){var o,i,a,l=e.length;if(o=t,i=0,a=l,t=Math.min(Math.max(o,i),a),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=l&&!n[t];)t++;t>l&&(t=n.lastIndexOf(!0))}return-1===t&&(t=l),t}function k(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(u(e[n])||u(e[n-1]));return t}function S(e,t,n,o,i,a){void 0===a&&(a=l);var u=function(e){var t=(0,r.useRef)(e);t.current=e;var n=(0,r.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e,t){var n,r;return c(e)?(r="",n=""):"number"===typeof e||t?(r="number"===typeof e?v(e):e,n=o(r)):(r=i(e,void 0),n=o(r)),{formattedValue:n,numAsString:r}})),d=(0,r.useState)((function(){return u(s(e)?t:e,n)})),f=d[0],h=d[1],p=e,g=n;s(e)&&(p=f.numAsString,g=!0);var m=u(p,g);return(0,r.useMemo)((function(){h(m)}),[m.formattedValue]),[f,function(e,t){e.formattedValue!==f.formattedValue&&h({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function D(e){return e.replace(/[^0-9]/g,"")}function E(e){return e}function A(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var o=e.customInput,s=e.renderText,c=e.getInputRef,d=e.format;void 0===d&&(d=E);var f=e.removeFormatting;void 0===f&&(f=D);var h=e.defaultValue,p=e.valueIsNumericString,v=e.onValueChange,g=e.isAllowed,w=e.onChange;void 0===w&&(w=l);var A=e.onKeyDown;void 0===A&&(A=l);var _=e.onMouseUp;void 0===_&&(_=l);var O=e.onFocus;void 0===O&&(O=l);var F=e.onBlur;void 0===F&&(F=l);var R=e.value,M=e.getCaretBoundary;void 0===M&&(M=k);var T=e.isValidInputCharacter;void 0===T&&(T=u);var P=e.isCharacterSame,I=i(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),L=S(R,h,Boolean(p),d,f,v),z=L[0],N=z.formattedValue,B=z.numAsString,H=L[1],j=(0,r.useRef)(),V=(0,r.useRef)({formattedValue:N,numAsString:B}),W=function(e,t){V.current={formattedValue:e.formattedValue,numAsString:e.value},H(e,t)},U=(0,r.useState)(!1),$=U[0],X=U[1],Y=(0,r.useRef)(null),G=(0,r.useRef)({setCaretTimeout:null,focusTimeout:null});(0,r.useEffect)((function(){return X(!0),function(){clearTimeout(G.current.setCaretTimeout),clearTimeout(G.current.focusTimeout)}}),[]);var K=d,q=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},Q=function(e,t,n){0===e.selectionStart&&e.selectionEnd===e.value.length||(m(e,t),G.current.setCaretTimeout=setTimeout((function(){e.value===n&&e.selectionStart!==t&&m(e,t)}),0))},Z=function(e,t,n){return C(e,t,M(e),n)},J=function(e,t,n){var r=M(t),o=function(e,t,n,r,o,i,a){void 0===a&&(a=x);var l=o.findIndex((function(e){return e})),u=e.slice(0,l);t||n.startsWith(u)||(t=u,n=u+n,r+=u.length);for(var s=n.length,c=e.length,d={},f=new Array(s),h=0;h<s;h++){f[h]=-1;for(var p=0,v=c;p<v;p++)if(a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p})&&!0!==d[p]){f[h]=p,d[p]=!0;break}}for(var g=r;g<s&&(-1===f[g]||!i(n[g]));)g++;var m=g===s||-1===f[g]?c:f[g];for(g=r-1;g>0&&-1===f[g];)g--;var y=-1===g||-1===f[g]?0:f[g]+1;return y>m?m:r-y<m-r?y:m}(t,N,e,n,r,T,P);return o=C(t,o,r)};(0,r.useEffect)((function(){var e=V.current,t=e.formattedValue,n=e.numAsString;N===t&&B===n||W(q(N,B),{event:void 0,source:a.props})}),[N,B]);var ee=Y.current?b(Y.current):void 0;("undefined"!==typeof window?r.useLayoutEffect:r.useEffect)((function(){var e=Y.current;if(N!==V.current.formattedValue&&e){var t=J(V.current.formattedValue,N,ee);e.value=N,Q(e,t,N)}}),[N]);var te=function(e,t,n){var r=t.target,o=j.current?function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}}(j.current,r.selectionEnd):y(N,e),i=Object.assign(Object.assign({},o),{lastValue:N}),a=f(e,i),l=K(a);if(a=f(l,void 0),g&&!g(q(l,a))){var u=t.target,s=b(u),c=J(e,N,s);return u.value=N,Q(u,c,N),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var n,r=e.input,o=e.source,i=e.event,a=e.numAsString;if(r){var l=e.inputValue||r.value,u=b(r);r.value=t,void 0!==(n=J(l,t,u))&&Q(r,n,t)}t!==N&&W(q(t,a),{event:i,source:o})}({formattedValue:l,numAsString:a,inputValue:e,event:t,source:n,input:t.target}),!0},ne=function(e,t){void 0===t&&(t=0);var n=e.selectionStart,r=e.selectionEnd;j.current={selectionStart:n,selectionEnd:r+t}},re=!$||"undefined"===typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",oe=Object.assign({inputMode:re},I,{type:t,value:N,onChange:function(e){var t=e.target.value;te(t,e,a.event)&&w(e),j.current=void 0},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,i=n.selectionEnd,a=n.value;void 0===a&&(a=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,a.length):"Delete"===r&&(t=o);var l=0;"Delete"===r&&o===i&&(l=1);var u="ArrowLeft"===r||"ArrowRight"===r;if(void 0===t||o!==i&&!u)return A(e),void ne(n,l);var s=t;u?(s=Z(a,t,"ArrowLeft"===r?"left":"right"))!==t&&e.preventDefault():"Delete"!==r||T(a[t])?"Backspace"!==r||T(a[t])||(s=Z(a,t,"left")):s=Z(a,t,"right");s!==t&&Q(n,s,a),A(e),ne(n,l)},onMouseUp:function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(void 0===r&&(r=""),e===n){var o=Z(r,e);o!==e&&Q(t,o,r)}};n(),requestAnimationFrame((function(){n()})),_(e),ne(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;Y.current=t,G.current.focusTimeout=setTimeout((function(){var r=t.selectionStart,o=t.selectionEnd,i=t.value;void 0===i&&(i="");var a=Z(i,r);a===r||0===r&&o===i.length||Q(t,a,i),O(Object.assign(Object.assign({},e),{currentTarget:n}))}),0)},onBlur:function(e){Y.current=null,clearTimeout(G.current.focusTimeout),clearTimeout(G.current.setCaretTimeout),F(e)}});if("text"===n)return s?r.createElement(r.Fragment,null,s(N,I)||null):r.createElement("span",Object.assign({},I,{ref:c}),N);if(o){var ie=o;return r.createElement(ie,Object.assign({},oe,{ref:c}))}return r.createElement("input",Object.assign({},oe,{ref:c}))}function _(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var i=t.suffix;void 0===i&&(i="");var a=t.allowNegative,l=t.thousandsGroupStyle;if(void 0===l&&(l="thousand"),""===e||"-"===e)return e;var u=O(t),s=u.thousandSeparator,c=u.decimalSeparator,d=0!==n&&-1!==e.indexOf(".")||n&&r,p=f(e,a),v=p.beforeDecimal,g=p.afterDecimal,m=p.addNegation;return void 0!==n&&(g=h(g,n,!!r)),s&&(v=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(v,s,l)),o&&(v=o+v),i&&(g+=i),m&&(v="-"+v),e=v+(d&&c||"")+g}function O(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function F(e,t,n){var r;void 0===t&&(t=w(e));var o=n.allowNegative,i=n.prefix;void 0===i&&(i="");var a=n.suffix;void 0===a&&(a="");var l=n.decimalScale,s=t.from,c=t.to,h=c.start,p=c.end,v=O(n),g=v.allowedDecimalSeparators,m=v.decimalSeparator,y=e[p]===m;if(u(e)&&(e===i||e===a)&&""===t.lastValue)return e;if(p-h===1&&-1!==g.indexOf(e[h])){var b=0===l?"":m;e=e.substring(0,h)+b+e.substring(h+1,e.length)}var x=function(e,t,n){var r=!1,o=!1;i.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):a.startsWith("-")&&e.length===a.length?r=!1:"-"===e[0]&&(r=!0);var l=r?1:0;return o&&(l=2),l&&(e=e.substring(l),t-=l,n-=l),{value:e,start:t,end:n,hasNegation:r}},C=x(e,h,p),k=C.hasNegation;e=(r=C).value,h=r.start,p=r.end;var S=x(t.lastValue,s.start,s.end),D=S.start,E=S.end,A=S.value,_=e.substring(h,p);!(e.length&&A.length&&(D>A.length-a.length||E<i.length))||_&&a.startsWith(_)||(e=A);var F=0;e.startsWith(i)?F+=i.length:h<i.length&&(F=h),p-=F;var R=(e=e.substring(F)).length,M=e.length-a.length;e.endsWith(a)?R=M:(p>M||p>e.length-a.length)&&(R=p),e=e.substring(0,R),e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),i=r.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}(k?"-"+e:e,o),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+d(e),t?"g":void 0)}(m,!0))||[]).join("");var T=e.indexOf(m),P=f(e=e.replace(new RegExp(d(m),"g"),(function(e,t){return t===T?".":""})),o),I=P.beforeDecimal,L=P.afterDecimal,z=P.addNegation;return c.end-c.start<s.end-s.start&&""===I&&y&&!parseFloat(L)&&(e=z?"-":""),e}function R(e){e=function(e){var t=O(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var i=e.allowNegative;if(void 0===i&&(i=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&i&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+i+"\n "),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}(e);e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=l);var d=e.onBlur;void 0===d&&(d=l);var f=e.thousandSeparator,h=e.decimalScale,p=e.fixedDecimalScale,b=e.prefix;void 0===b&&(b="");var w=e.defaultValue,x=e.value,C=e.valueIsNumericString,k=e.onValueChange,D=i(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),E=O(e),A=E.decimalSeparator,R=E.allowedDecimalSeparators,M=function(t){return _(t,e)},T=function(t,n){return F(t,n,e)},P=s(x)?w:x,I=null!==C&&void 0!==C?C:function(e,t,n){return""===e||!(null===t||void 0===t?void 0:t.match(/\d/))&&!(null===n||void 0===n?void 0:n.match(/\d/))&&"string"===typeof e&&!isNaN(Number(e))}(P,b,t);s(x)?s(w)||(I=I||"number"===typeof w):I=I||"number"===typeof x;var L=function(e){return c(e)?e:("number"===typeof e&&(e=v(e)),I&&"number"===typeof h?g(e,h,Boolean(p)):e)},z=S(L(x),L(w),Boolean(I),M,T,k),N=z[0],B=N.numAsString,H=N.formattedValue,j=z[1];return Object.assign(Object.assign({},D),{value:H,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===A||u(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,o=e.currentValueIndex,i=e.formattedValueIndex,a=t[o],l=r[i],u=y(n,t).to,s=function(e){return T(e).indexOf(".")+b.length};return!(0===x&&p&&h&&t[u.start]===A&&s(t)<o&&s(r)>i)&&(!!(o>=u.start&&o<u.end&&R&&R.includes(a)&&l===A)||a===l)},onValueChange:j,format:M,removeFormatting:T,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),i="-"===e[0];o.fill(!1,0,n.length+(i?1:0));var a=e.length;return o.fill(!1,a-r.length+1,a+1),o}(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,i=t.selectionStart,a=t.selectionEnd,l=t.value;if(void 0===l&&(l=""),("Backspace"===r||"Delete"===r)&&a<b.length)e.preventDefault();else if(i===a){"Backspace"===r&&"-"===l[0]&&i===b.length+1&&n&&m(t,1),h&&p&&("Backspace"===r&&l[i-1]===A?(m(t,i-1),e.preventDefault()):"Delete"===r&&l[i]===A&&e.preventDefault()),(null===R||void 0===R?void 0:R.includes(r))&&l[i]===A&&m(t,i+1);var u=!0===f?",":f;"Backspace"===r&&l[i-1]===u&&m(t,i-1),"Delete"===r&&l[i]===u&&m(t,i+1),o(e)}else o(e)},onBlur:function(t){var n=B;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),p&&h&&(n=g(n,h,p)),n!==B){var o=_(n,e);j({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:a.event})}d(t)}})}function M(e){var t=R(e);return r.createElement(A,Object.assign({},t))}function T(){var e;const t=null===(e=Intl.NumberFormat())||void 0===e||null===(e=e.formatToParts(1.1))||void 0===e||null===(e=e.find((e=>"decimal"===e.type)))||void 0===e?void 0:e.value;return null!==t&&void 0!==t?t:"."}const P=e=>{const{value:t,onChange:n,disabled:i,highlight:a,validatedSelection:l,fixedDecimals:u,allowNegative:s,thousandSeparator:c,decimalSeparator:d}=e,f=r.useRef();return r.useLayoutEffect((()=>{if(void 0!==l){var e;const t="number"===typeof l?[l,null]:l;null===(e=f.current)||void 0===e||e.setSelectionRange(t[0],t[1])}}),[l]),r.createElement(o,null,r.createElement(M,{autoFocus:!0,getInputRef:f,className:"gdg-input",onFocus:e=>e.target.setSelectionRange(a?0:e.target.value.length,e.target.value.length),disabled:!0===i,decimalScale:u,allowNegative:s,thousandSeparator:null!==c&&void 0!==c?c:"."===T()?",":".",decimalSeparator:null!==d&&void 0!==d?d:T(),value:Object.is(t,-0)?"-":null!==t&&void 0!==t?t:"",onValueChange:n}))}},8402:(e,t,n)=>{"use strict";n.d(t,{au:()=>s,fu:()=>a,mN:()=>u});const r={};let o=null;function i(e){const t=e.toLowerCase().trim();if(void 0!==r[t])return r[t];o=o||function(){const e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}(),o.style.color="#000",o.style.color=t;const n=getComputedStyle(o).color;o.style.color="#fff",o.style.color=t;const i=getComputedStyle(o).color;if(i!==n)return[0,0,0,1];let a=i.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return a.length<4&&a.push(1),a=a.map((e=>Number.isNaN(e)?0:e)),r[t]=a,a}function a(e,t){const[n,r,o]=i(e);return"rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(t,")")}const l=new Map;function u(e,t){const n="".concat(e,"-").concat(t),r=l.get(n);if(void 0!==r)return r;const o=s(e,t);return l.set(n,o),o}function s(e,t){if(void 0===t)return e;const[n,r,o,a]=i(e);if(1===a)return e;const[l,u,s,c]=i(t),d=a+c*(1-a),f=(a*r+c*u*(1-a))/d,h=(a*o+c*s*(1-a))/d;return"rgba(".concat((a*n+c*l*(1-a))/d,", ").concat(f,", ").concat(h,", ").concat(d,")")}},8080:(e,t,n)=>{"use strict";n.d(t,{AA:()=>h,Bc:()=>v,Gf:()=>c,I1:()=>x,Ld:()=>f,Mp:()=>p,N4:()=>d,WE:()=>l,dB:()=>b,dd:()=>s,pg:()=>g,uQ:()=>m,wm:()=>u,zT:()=>y});var r,o=n(4467),i=n(9780),a=n(2117);const l=null,u=void 0;var s,c,d,f;function h(e){return"width"in e&&"number"===typeof e.width}async function p(e){return"object"===typeof e?e:await e()}function v(e){return e.kind!==s.Loading&&e.kind!==s.Bubble&&e.kind!==s.RowID&&e.kind!==s.Protected&&e.kind!==s.Drilldown&&((0,i.HD)(e),!0)}function g(e){return e.kind===f.Marker||e.kind===f.NewRow}function m(e){return!(!v(e)||e.kind===s.Image)&&(e.kind===s.Text||e.kind===s.Number||e.kind===s.Markdown||e.kind===s.Uri||e.kind===s.Custom||e.kind===s.Boolean?!0!==e.readonly:void(0,i.xb)(e,"A cell was passed with an invalid kind"))}function y(e){return a(e,"editor")}function b(e){var t;return!(null!==(t=e.readonly)&&void 0!==t&&t)}let w;!function(e){e.Uri="uri",e.Text="text",e.Image="image",e.RowID="row-id",e.Number="number",e.Bubble="bubble",e.Boolean="boolean",e.Loading="loading",e.Markdown="markdown",e.Drilldown="drilldown",e.Protected="protected",e.Custom="custom"}(s||(s={})),function(e){e.HeaderRowID="headerRowID",e.HeaderCode="headerCode",e.HeaderNumber="headerNumber",e.HeaderString="headerString",e.HeaderBoolean="headerBoolean",e.HeaderAudioUri="headerAudioUri",e.HeaderVideoUri="headerVideoUri",e.HeaderEmoji="headerEmoji",e.HeaderImage="headerImage",e.HeaderUri="headerUri",e.HeaderPhone="headerPhone",e.HeaderMarkdown="headerMarkdown",e.HeaderDate="headerDate",e.HeaderTime="headerTime",e.HeaderEmail="headerEmail",e.HeaderReference="headerReference",e.HeaderIfThenElse="headerIfThenElse",e.HeaderSingleValue="headerSingleValue",e.HeaderLookup="headerLookup",e.HeaderTextTemplate="headerTextTemplate",e.HeaderMath="headerMath",e.HeaderRollup="headerRollup",e.HeaderJoinStrings="headerJoinStrings",e.HeaderSplitString="headerSplitString",e.HeaderGeoDistance="headerGeoDistance",e.HeaderArray="headerArray",e.RowOwnerOverlay="rowOwnerOverlay",e.ProtectedColumnOverlay="protectedColumnOverlay"}(c||(c={})),function(e){e.Triangle="triangle",e.Dots="dots"}(d||(d={})),function(e){e.NewRow="new-row",e.Marker="marker"}(f||(f={}));class x{constructor(e){(0,o.A)(this,"items",void 0),this.items=e}offset(e){if(0===e)return this;const t=this.items.map((t=>[t[0]+e,t[1]+e]));return new x(t)}add(e){const t="number"===typeof e?[e,e+1]:e,n=function(e){if(0===e.length)return[];const t=[...e],n=[];t.sort((function(e,t){return e[0]-t[0]})),n.push([...t[0]]);for(const r of t.slice(1)){const e=n[n.length-1];e[1]<r[0]?n.push([...r]):e[1]<r[1]&&(e[1]=r[1])}return n}([...this.items,t]);return new x(n)}remove(e){const t=[...this.items],n="number"===typeof e?e:e[0],r="number"===typeof e?e+1:e[1];for(const[o,i]of t.entries()){const[e,a]=i;if(e<=r&&n<=a){const i=[];e<n&&i.push([e,n]),r<a&&i.push([r,a]),t.splice(o,1,...i)}}return new x(t)}first(){if(0!==this.items.length)return this.items[0][0]}last(){if(0!==this.items.length)return this.items.slice(-1)[0][1]-1}hasIndex(e){for(let t=0;t<this.items.length;t++){const[n,r]=this.items[t];if(e>=n&&e<r)return!0}return!1}hasAll(e){for(let t=e[0];t<e[1];t++)if(!this.hasIndex(t))return!1;return!0}some(e){for(const t of this)if(e(t))return!0;return!1}equals(e){if(e===this)return!0;if(e.items.length!==this.items.length)return!1;for(let t=0;t<this.items.length;t++){const n=e.items[t],r=this.items[t];if(n[0]!==r[0]||n[1]!==r[1])return!1}return!0}toArray(){const e=[];for(const[t,n]of this.items)for(let r=t;r<n;r++)e.push(r);return e}get length(){let e=0;for(const[t,n]of this.items)e+=n-t;return e}*[Symbol.iterator](){for(const[e,t]of this.items)for(let n=e;n<t;n++)yield n}}r=x,(0,o.A)(x,"empty",(()=>{var e;return null!==(e=w)&&void 0!==e?e:w=new r([])})),(0,o.A)(x,"fromSingleSelection",(e=>r.empty().add(e)))},1923:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(918),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,r.A)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),a=n(5043),l=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach((e=>{(e?e.split(" "):[]).forEach((e=>{if(e.startsWith("atm_")){const[,n]=e.split("_");t[n]=e}else n.push(e)}))}));const r=[];for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.push(t[o]);return r.push(...n),r.join(" ")},u=(e,t)=>{const n={};return Object.keys(e).filter((e=>t=>-1===e.indexOf(t))(t)).forEach((t=>{n[t]=e[t]})),n};var s=function(e){let t="";return n=>{const r=(r,o)=>{const{as:s=e,class:c=t}=r;var d;const f=function(e,t,n){const r=u(t,n);if(!e){const e="function"===typeof i?{default:i}:i;Object.keys(r).forEach((t=>{e.default(t)||delete r[t]}))}return r}(void 0===n.propsAsIs?!("string"===typeof s&&-1===s.indexOf("-")&&(d=s[0],d.toUpperCase()!==d)):n.propsAsIs,r,["as","class"]);f.ref=o,f.className=n.atomic?l(n.class,f.className||c):l(f.className||c,n.class);const{vars:h}=n;if(h){const e={};for(const i in h){const t=h[i],o=t[0],a=t[1]||"",l="function"===typeof o?o(r):o;n.name,e["--".concat(i)]="".concat(l).concat(a)}const t=f.style||{},o=Object.keys(t);o.length>0&&o.forEach((n=>{e[n]=t[n]})),f.style=e}return e.__linaria&&e!==s?(f.as=s,a.createElement(e,f)):a.createElement(s,f)},o=a.forwardRef?a.forwardRef(r):e=>{const t=u(e,["innerRef"]);return r(t,e.innerRef)};return o.displayName=n.name,o.__linaria={className:n.class||t,extends:e},o}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),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.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),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})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(5043),t=n.t(e,2),r=n(4391),o=n(9379),i=n(8080),a=n(9780),l=n(4626),u=n(9376),s=n(819),c=n(6604),d=n.n(c),f=n(3950);function h(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=e.useRef();a.current=n,e.useEffect((()=>{if(null===r||void 0===r.addEventListener)return;const e=r,n=t=>{var n;null===(n=a.current)||void 0===n||n.call(e,t)};return e.addEventListener(t,n,{passive:o,capture:i}),()=>{e.removeEventListener(t,n,{capture:i})}}),[t,r,o,i])}function p(e,t){return void 0===e?void 0:t}const v=Math.PI;function g(e){return e*v/180}const m=(e,t,n)=>({x1:e-n/2,y1:t-n/2,x2:e+n/2,y2:t+n/2}),y=(e,t,n,r,o)=>{switch(e){case"left":return Math.floor(t)+r+o/2;case"center":return Math.floor(t+n/2);case"right":return Math.floor(t+n)-r-o/2}},b=(e,t,n)=>Math.min(e,t-2*n),w=(e,t,n)=>n.x1<=e&&e<=n.x2&&n.y1<=t&&t<=n.y2,x=t=>{var n;const r=null!==(n=t.fgColor)&&void 0!==n?n:"currentColor";return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),e.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},C=t=>{var n;const r=null!==(n=t.fgColor)&&void 0!==n?n:"currentColor";return e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};const k=new RegExp("^[^A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]");function S(e){return k.test(e)?"rtl":"not-rtl"}let D;function E(){if("undefined"===typeof document)return 0;if(void 0!==D)return D;const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),D=n-r,D}const A=Symbol();function _(t){const n=e.useRef([A,t]);n.current[1]!==t&&(n.current[0]=t),n.current[1]=t;const[r,o]=e.useState(t),[,i]=e.useState(),a=e.useCallback((e=>{const t=n.current[0];t!==A&&(e="function"===typeof e?e(t):e)===t||(t!==A&&i({}),o((n=>"function"===typeof e?e(t===A?n:t):e)),n.current[0]=A)}),[]),l=e.useCallback((()=>{n.current[0]=A,i({})}),[]);return[n.current[0]===A?r:n.current[0],a,l]}function O(e){if(0===e.length)return"";let t=0,n=0;for(const r of e){if(n+=r.length,n>1e4)break;t++}return e.slice(0,t).join(", ")}var F=new Map,R=new Map,M=new Map;function T(e,t,n,r){var o,i;let a=R.get(n);if(r&&void 0!==a&&a.count>2e4){let r=M.get(n);if(void 0===r&&(r=function(e,t){var n;let r=new Map,o=0;for(let u of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let t=e.measureText(u).width;r.set(u,t),o+=t}let i=o/r.size,a=(t/i+3)/4,l=r.keys();for(let u of l)r.set(u,(null!=(n=r.get(u))?n:i)*a);return r}(e,a.size),M.set(n,r)),a.count>5e5){let e=0;for(let n of t)e+=null!=(o=r.get(n))?o:a.size;return 1.01*e}let i=e.measureText(t);return function(e,t,n,r,o){var i,a,l;let u=0,s={};for(let d of e)u+=null!=(i=n.get(d))?i:o,s[d]=(null!=(a=s[d])?a:0)+1;let c=t-u;for(let d of Object.keys(s)){let e=s[d],t=null!=(l=n.get(d))?l:o,i=t+c*(t*e/u)*r/e;n.set(d,i)}}(t,i.width,r,Math.max(.05,1-a.count/2e5),a.size),R.set(n,{count:a.count+t.length,size:a.size}),i.width}let l=e.measureText(t),u=l.width/t.length;if((null!=(i=null==a?void 0:a.count)?i:0)>2e4)return l.width;if(void 0===a)R.set(n,{count:t.length,size:u});else{let e=u-a.size,r=t.length/(a.count+t.length),o=a.size+e*r;R.set(n,{count:a.count+t.length,size:o})}return l.width}function P(e,t,n,r,o,i,a,l){if(t.length<=1)return t.length;if(o<n)return-1;let u=Math.floor(n/o*i),s=T(e,t.slice(0,Math.max(0,u)),r,a),c=null==l?void 0:l(t);if(s!==n)if(s<n){for(;s<n;)u++,s=T(e,t.slice(0,Math.max(0,u)),r,a);u--}else for(;s>n;){let n=void 0!==c?0:t.lastIndexOf(" ",u-1);n>0?u=n:u--,s=T(e,t.slice(0,Math.max(0,u)),r,a)}if(" "!==t[u]){let e=0;if(void 0===c)e=t.lastIndexOf(" ",u);else for(let t of c){if(t>u)break;e=t}e>0&&(u=e)}return u}function I(e,t){return(null!==e&&void 0!==e?e:"")===(null!==t&&void 0!==t?t:"")}function L(e,t){const[n,r]=e;return n>=t.x&&n<t.x+t.width&&r>=t.y&&r<t.y+t.height}function z(e,t){return(null===e||void 0===e?void 0:e[0])===(null===t||void 0===t?void 0:t[0])&&(null===e||void 0===e?void 0:e[1])===(null===t||void 0===t?void 0:t[1])}function N(e){return[e.x+e.width-1,e.y+e.height-1]}function B(e,t,n){const r=n.x,o=n.x+n.width-1,i=n.y,a=n.y+n.height-1,[l,u]=e;if(u<i||u>a)return!1;if(void 0===t.span)return l>=r&&l<=o;const[s,c]=t.span;return s>=r&&s<=o||c>=r&&s<=o||s<r&&c>o}function H(e,t){let n=e;if(void 0!==t){let r=[...e];const i=n[t.src];t.src>t.dest?(r.splice(t.src,1),r.splice(t.dest,0,i)):(r.splice(t.dest+1,0,i),r.splice(t.src,1)),r=r.map(((t,n)=>(0,o.A)((0,o.A)({},t),{},{sticky:e[n].sticky}))),n=r}return n}function j(e,t){let n=0;const r=H(e,t);for(let o=0;o<r.length;o++){const e=r[o];if(!e.sticky)break;n+=e.width}return n}function V(e,t,n){if("number"===typeof n)return t*n;{let r=0;for(let o=e-t;o<e;o++)r+=n(o);return r}}function W(e,t,n,r,o){const i=H(e,r),a=[];for(const s of i){if(!s.sticky)break;a.push(s)}if(a.length>0)for(const s of a)n-=s.width;let l=t,u=null!==o&&void 0!==o?o:0;for(;u<=n&&l<i.length;)u+=i[l].width,l++;for(let s=t;s<l;s++){const e=i[s];e.sticky||a.push(e)}return a}let U=0,$={};const X="undefined"===typeof window;function Y(e,t,n,r){return"".concat(e,"_").concat(null!==r&&void 0!==r?r:null===t||void 0===t?void 0:t.font,"_").concat(n)}function G(e,t,n){const r=Y(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",n);let o=$[r];return void 0===o&&(o=t.measureText(e),$[r]=o,U++),U>1e4&&($={},U=0),o}function K(e,t){return"string"!==typeof t&&(t=t.baseFontFull),function(e,t){for(const i of Q)if(i.key===t)return i.val;const n=q(e,"alphabetic"),r=q(e,"middle"),o=-(r.actualBoundingBoxDescent-n.actualBoundingBoxDescent)+n.actualBoundingBoxAscent/2;return Q.push({key:t,val:o}),o}(e,t)}function q(e,t){e.save(),e.textBaseline=t;const n=e.measureText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");return e.restore(),n}!async function(){var e;X||void 0===(null===(e=document)||void 0===e||null===(e=e.fonts)||void 0===e?void 0:e.ready)||(await document.fonts.ready,U=0,$={},F.clear(),M.clear(),R.clear())}();const Q=[];function Z(e,t,n){const{ctx:r,theme:o}=e,i=null!==t&&void 0!==t?t:{},a=null!==n&&void 0!==n?n:o.textDark;return a!==i.fillStyle&&(r.fillStyle=a,i.fillStyle=a),i}function J(e,t,n,r,o,i,a,l,u){"right"===u?e.fillText(t,n+o-(l.cellHorizontalPadding+.5),r+i/2+a):"center"===u?e.fillText(t,n+o/2,r+i/2+a):e.fillText(t,n+l.cellHorizontalPadding+.5,r+i/2+a)}function ee(e,t){const n=G("ABCi09jgqpy",e,t);return n.actualBoundingBoxAscent+n.actualBoundingBoxDescent}function te(e,t,n,r,o,i,a,l,u,s){const c=l.baseFontFull,d=function(e,t,n,r,o,i){let a="".concat(t,"_").concat(n,"_").concat(r,"px"),l=F.get(a);if(void 0!==l)return l;if(r<=0)return[];let u=[],s=t.split("\n"),c=R.get(n),d=void 0===c?t.length:r/c.size*1.5,f=o&&void 0!==c&&c.count>2e4;for(let h of s){let t=T(e,h.slice(0,Math.max(0,d)),n,f),o=Math.min(h.length,d);if(t<=r)u.push(h);else{for(;t>r;){let a=P(e,h,r,n,t,o,f,i),l=h.slice(0,Math.max(0,a));h=h.slice(l.length),u.push(l),t=T(e,h.slice(0,Math.max(0,d)),n,f),o=Math.min(h.length,d)}t>0&&u.push(h)}}return u=u.map(((e,t)=>0===t?e.trimEnd():e.trim())),F.set(a,u),F.size>500&&F.delete(F.keys().next().value),u}(e,t,c,o-2*l.cellHorizontalPadding,null!==s&&void 0!==s&&s),f=ee(e,c),h=l.lineHeight*f,p=f+h*(d.length-1),v=p+l.cellVerticalPadding>i;v&&(e.save(),e.rect(n,r,o,i),e.clip());const g=r+i/2-p/2;let m=Math.max(r+l.cellVerticalPadding,g);for(const y of d)if(J(e,y,n,m,o,f,a,l,u),m+=h,m>r+i)break;v&&e.restore()}function ne(e,t,n,r,o){var i;const{ctx:a,rect:l,theme:u}=e,{x:s,y:c,width:d,height:f}=l;(r=null!==(i=r)&&void 0!==i&&i)||(t=function(e,t){e.includes("\n")&&(e=e.split(/\r?\n/,1)[0]);const n=t/4;return e.length>n&&(e=e.slice(0,n)),e}(t,d));const h=K(a,u),p="rtl"===S(t);if(void 0===n&&p&&(n="right"),p&&(a.direction="rtl"),t.length>0){let e=!1;"right"===n?(a.textAlign="right",e=!0):void 0!==n&&"left"!==n&&(a.textAlign=n,e=!0),r?te(a,t,s,c,d,f,h,u,n,o):J(a,t,s,c,d,f,h,u,n),e&&(a.textAlign="start"),p&&(a.direction="inherit")}}function re(e,t,n,r,o,i){"number"===typeof i&&(i={tl:i,tr:i,br:i,bl:i}),i={tl:Math.max(0,Math.min(i.tl,o/2,r/2)),tr:Math.max(0,Math.min(i.tr,o/2,r/2)),bl:Math.max(0,Math.min(i.bl,o/2,r/2)),br:Math.max(0,Math.min(i.br,o/2,r/2))},e.moveTo(t+i.tl,n),e.arcTo(t+r,n,t+r,n+i.tr,i.tr),e.arcTo(t+r,n+o,t+r-i.br,n+o,i.br),e.arcTo(t,n+o,t,n+o-i.bl,i.bl),e.arcTo(t,n,t+i.tl,n,i.tl)}function oe(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p){const v={x:0,y:i+s,width:0,height:0};if(e>=h.length||t>=c||t<-2||e<0)return v;const g=i-o;if(e>=d){const t=a>e?-1:1,n=j(h);v.x+=n+u;for(let r=a;r!==e;r+=t)v.x+=h[1===t?r:r-1].width*t}else for(let m=0;m<e;m++)v.x+=h[m].width;if(v.width=h[e].width+1,-1===t)v.y=o,v.height=g;else if(-2===t){v.y=0,v.height=o;let t=e;const r=h[e].group,i=h[e].sticky;for(;t>0&&I(h[t-1].group,r)&&h[t-1].sticky===i;){const e=h[t-1];v.x-=e.width,v.width+=e.width,t--}let a=e;for(;a+1<h.length&&I(h[a+1].group,r)&&h[a+1].sticky===i;){const e=h[a+1];v.width+=e.width,a++}if(!i){const e=j(h),t=v.x-e;t<0&&(v.x-=t,v.width+=t),v.x+v.width>n&&(v.width=n-v.x)}}else if(t>=c-f){let e=c-t;for(v.y=r;e>0;){const n=t+e-1;v.height="number"===typeof p?p:p(n),v.y-=v.height,e--}v.height+=1}else{const e=l>t?-1:1;if("number"===typeof p){const e=t-l;v.y+=e*p}else for(let n=l;n!==t;n+=e)v.y+=p(n)*e;v.height=("number"===typeof p?p:p(t))+1}return v}var ie=n(4467);const ae=1<<21;function le(e,t){return(t+2)*ae+e}function ue(e){return e%ae}function se(e){return Math.floor(e/ae)-2}function ce(e){return[ue(e),se(e)]}class de{constructor(){(0,ie.A)(this,"visibleWindow",{x:0,y:0,width:0,height:0}),(0,ie.A)(this,"freezeCols",0),(0,ie.A)(this,"freezeRows",[]),(0,ie.A)(this,"isInWindow",(e=>{const t=ue(e),n=se(e),r=this.visibleWindow,o=t>=r.x&&t<=r.x+r.width||t<this.freezeCols,i=n>=r.y&&n<=r.y+r.height||this.freezeRows.includes(n);return o&&i}))}setWindow(e,t,n){this.visibleWindow.x===e.x&&this.visibleWindow.y===e.y&&this.visibleWindow.width===e.width&&this.visibleWindow.height===e.height&&this.freezeCols===t&&(0,a.bD)(this.freezeRows,n)||(this.visibleWindow=e,this.freezeCols=t,this.freezeRows=n,this.clearOutOfWindow())}}class fe extends de{constructor(){super(...arguments),(0,ie.A)(this,"cache",new Map),(0,ie.A)(this,"setValue",((e,t)=>{this.cache.set(le(e[0],e[1]),t)})),(0,ie.A)(this,"getValue",(e=>this.cache.get(le(e[0],e[1])))),(0,ie.A)(this,"clearOutOfWindow",(()=>{for(const[e]of this.cache.entries())this.isInWindow(e)||this.cache.delete(e)}))}}class he{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,ie.A)(this,"cells",void 0),this.cells=new Set(e.map((e=>le(e[0],e[1]))))}add(e){this.cells.add(le(e[0],e[1]))}has(e){return void 0!==e&&this.cells.has(le(e[0],e[1]))}remove(e){this.cells.delete(le(e[0],e[1]))}clear(){this.cells.clear()}get size(){return this.cells.size}hasHeader(){for(const e of this.cells){if(se(e)<0)return!0}return!1}hasItemInRectangle(e){for(let t=e.y;t<e.y+e.height;t++)for(let n=e.x;n<e.x+e.width;n++)if(this.cells.has(le(n,t)))return!0;return!1}hasItemInRegion(e){for(const t of e)if(this.hasItemInRectangle(t))return!0;return!1}*values(){for(const e of this.cells)yield ce(e)}}class pe{constructor(e,t){(0,ie.A)(this,"onSettled",void 0),(0,ie.A)(this,"spriteMap",new Map),(0,ie.A)(this,"headerIcons",void 0),(0,ie.A)(this,"inFlight",0),this.onSettled=t,this.headerIcons=null!==e&&void 0!==e?e:{}}drawSprite(e,t,n,r,o,i,a){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1;const[u,s]=function(e,t){return"normal"===e?[t.bgIconHeader,t.fgIconHeader]:"selected"===e?["white",t.accentColor]:[t.accentColor,t.bgHeader]}(t,a),c=i*Math.ceil(window.devicePixelRatio),d="".concat(u,"_").concat(s,"_").concat(c,"_").concat(e);let f=this.spriteMap.get(d);if(void 0===f){const t=this.headerIcons[e];if(void 0===t)return;f=document.createElement("canvas");const n=f.getContext("2d");if(null===n)return;const r=new Image;r.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(t({fgColor:s,bgColor:u}))),this.spriteMap.set(d,f);const o=r.decode();if(void 0===o)return;this.inFlight++,o.then((()=>{n.drawImage(r,0,0,c,c)})).finally((()=>{this.inFlight--,0===this.inFlight&&this.onSettled()}))}else l<1&&(n.globalAlpha=l),n.drawImage(f,0,0,c,c,r,o,i,i),l<1&&(n.globalAlpha=1)}}var ve=n(8402);function ge(e){if(0===e.length)return;let t;for(const r of e){var n;t=Math.min(null!==(n=t)&&void 0!==n?n:r.y,r.y)}}function me(e,t,n,r,o,i,a,l,u){var s;l=null!==(s=l)&&void 0!==s?s:t;let c=t,d=e;const f=r-i;let h=!1;for(;c<n&&d<f;){const e=o(d);if(c+e>l&&!0===u(c,d,e,!1,a&&d===r-1)){h=!0;break}c+=e,d++}if(!h){c=n;for(let e=0;e<i;e++){d=r-1-e;const t=o(d);c-=t,u(c,d,t,!0,a&&d===r-1)}}}function ye(e,t,n,r,o,i){let a=0,l=0;const u=o+r;for(const s of e){if(!0===i(s,s.sticky?l:a+n,u,s.sticky?0:l,t))break;a+=s.width,l+=s.sticky?s.width:0}}function be(e,t,n,r,o){let i=0,a=0;for(let u=0;u<e.length;u++){var l;const s=e[u];let c=u+1,d=s.width;for(s.sticky&&(a+=d);c<e.length&&I(e[c].group,s.group)&&e[c].sticky===e[u].sticky;){const t=e[c];d+=t.width,c++,u++,t.sticky&&(a+=t.width)}const f=i+(s.sticky?0:n),h=s.sticky?0:Math.max(0,a-f),p=Math.min(d-h,t-(f+h));o([s.sourceIndex,e[c-1].sourceIndex],null!==(l=s.group)&&void 0!==l?l:"",f+h,0,p,r),i+=d}}function we(e,t,n,r,o,i,a){var l,u;const[s,c]=e;let d,f;const h=null!==(l=null===(u=a.find((e=>!e.sticky)))||void 0===u?void 0:u.sourceIndex)&&void 0!==l?l:0;if(c>h){const e=Math.max(s,h);let l=t,u=r;for(let t=i.sourceIndex-1;t>=e;t--)l-=a[t].width,u+=a[t].width;for(let t=i.sourceIndex+1;t<=c;t++)u+=a[t].width;f={x:l,y:n,width:u,height:o}}if(h>s){const e=Math.min(c,h-1);let l=t,u=r;for(let t=i.sourceIndex-1;t>=s;t--)l-=a[t].width,u+=a[t].width;for(let t=i.sourceIndex+1;t<=e;t++)u+=a[t].width;d={x:l,y:n,width:u,height:o}}return[d,f]}var xe=n(7165);function Ce(e,t,n,r,o,i,a,l){return e<=o+a&&o<=e+n&&t<=i+l&&i<=t+r}function ke(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Se(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function De(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Ee(e,t,n,r){if(e.x>t||e.y>n||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>n)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=n)return e;const o=t+4,i=n+4,a=-4-e.x,l=e.x+e.width-o,u=-4-e.y,s=e.y+e.height-i,c=a>0?e.x+Math.floor(a/r)*r:e.x,d=l>0?e.x+e.width-Math.floor(l/r)*r:e.x+e.width,f=u>0?e.y+Math.floor(u/r)*r:e.y;return{x:c,y:f,width:d-c,height:(s>0?e.y+e.height-Math.floor(s/r)*r:e.y+e.height)-f}}const Ae={kind:i.dd.Loading,allowOverlay:!1};function _e(e,t,n,r,o,a,l,u,s,c,d,f,h,p,v,g,m,y,b,w,x,C,k,S,D,E,A,_,O,F,R,M,T,P,I){var L;let z=null!==(L=null===w||void 0===w?void 0:w.size)&&void 0!==L?L:Number.MAX_SAFE_INTEGER;const N=performance.now();let H=F.baseFontFull;e.font=H;const j={ctx:e},W=[0,0],U=m>0?V(s,m,c):0;let $,X;const Y=ge(b);return ye(t,u,a,l,o,((t,a,l,u,L)=>{var V;const G=Math.max(0,u-a),K=a+G,q=o+1,Q=t.width-G,Z=r-o-1;if(b.length>0){let e=!1;for(let t=0;t<b.length;t++){const n=b[t];if(Ce(K,q,Q,Z,n.x,n.y,n.width,n.height)){e=!0;break}}if(!e)return}const J=()=>{e.save(),e.beginPath(),e.rect(K,q,Q,Z),e.clip()},ee=x.columns.hasIndex(t.sourceIndex),te=f(null!==(V=t.group)&&void 0!==V?V:"").overrideTheme,ne=void 0===t.themeOverride&&void 0===te?F:(0,xe.P6)(F,te,t.themeOverride),re=ne.baseFontFull;let oe;return re!==H&&(H=re,e.font=re),J(),me(L,l,r,s,c,m,y,Y,((o,l,c,f,m)=>{var y,L;if(l<0)return;if(W[0]=t.sourceIndex,W[1]=l,void 0!==w&&!w.has(W))return;if(b.length>0){let e=!1;for(let n=0;n<b.length;n++){const r=b[n];if(Ce(a,o,t.width,c,r.x,r.y,r.width,r.height)){e=!0;break}}if(!e)return}const V=x.rows.hasIndex(l),Y=p.hasIndex(l),G=l<s?d(W):Ae;let K=a,q=t.width,Q=!1,Z=!1;if(void 0!==G.span){const[r,i]=G.span,s="".concat(l,",").concat(r,",").concat(i,",").concat(t.sticky);if(void 0===X&&(X=new Set),X.has(s))return void z--;{const r=we(G.span,a,o,t.width,c,t,n),i=t.sticky?r[0]:r[1];if(t.sticky||void 0===r[0]||(Z=!0),void 0!==i){K=i.x,q=i.width,X.add(s),e.restore(),oe=void 0,e.save(),e.beginPath();const t=Math.max(0,u-i.x);e.rect(i.x+t,o,i.width-t,c),void 0===$&&($=[]),$.push({x:i.x+t,y:o,width:i.width-t,height:c}),e.clip(),Q=!0}}}const te=null===h||void 0===h?void 0:h(l),ie=m&&void 0!==(null===(y=t.trailingRowOptions)||void 0===y?void 0:y.themeOverride)?null===(L=t.trailingRowOptions)||void 0===L?void 0:L.themeOverride:void 0,ae=void 0===G.themeOverride&&void 0===te&&void 0===ie?ne:(0,xe.P6)(ne,te,ie,G.themeOverride);e.beginPath();const le=function(e,t,n){return void 0!==n.current&&e[1]===n.current.cell[1]&&(void 0===t.span?n.current.cell[0]===e[0]:n.current.cell[0]>=t.span[0]&&n.current.cell[0]<=t.span[1])}(W,G,x);let ue=function(e,t,n,r){let o=0;if(void 0===n.current)return o;const i=n.current.range;(r||i.height*i.width>1)&&B(e,t,i)&&o++;for(const a of n.current.rangeStack)B(e,t,a)&&o++;return o}(W,G,x,g);const se=void 0!==G.span&&x.columns.some((e=>void 0!==G.span&&e>=G.span[0]&&e<=G.span[1]));le&&!v&&g?ue=0:le&&g&&(ue=Math.max(ue,1)),se&&ue++,le||(V&&ue++,ee&&!m&&ue++);const ce=G.kind===i.dd.Protected?ae.bgCellMedium:ae.bgCell;let de;if((f||ce!==F.bgCell)&&(de=(0,ve.au)(ce,de)),ue>0||Y){Y&&(de=(0,ve.au)(ae.bgHeader,de));for(let e=0;e<ue;e++)de=(0,ve.au)(ae.accentLight,de)}else if(void 0!==C)for(const e of C)if(e[0]===t.sourceIndex&&e[1]===l){de=(0,ve.au)(ae.bgSearchResult,de);break}if(void 0!==k)for(let e=0;e<k.length;e++){const n=k[e],r=n.range;"solid-outline"!==n.style&&r.x<=t.sourceIndex&&t.sourceIndex<r.x+r.width&&r.y<=l&&l<r.y+r.height&&(de=(0,ve.au)(n.color,de))}let fe=!1;if(void 0!==w){const t=o+1,n=(f?t+c-1:Math.min(t+c-1,r-U))-t;(n!==c-1||K+1<=u)&&(fe=!0,e.save(),e.beginPath(),e.rect(K+1,t,q-1,n),e.clip()),de=void 0===de?ae.bgCell:(0,ve.au)(de,ae.bgCell)}const he=t.sourceIndex===n.length-1,pe=l===s-1;let ge;void 0!==de&&(e.fillStyle=de,void 0!==oe&&(oe.fillStyle=de),void 0!==w?e.fillRect(K+1,o+1,q-(he?2:1),c-(pe?2:1)):e.fillRect(K,o,q,c)),"faded"===G.style&&(e.globalAlpha=.6);for(let e=0;e<E.length;e++){const n=E[e];if(n.item[0]===t.sourceIndex&&n.item[1]===l){ge=n;break}}if(q>I&&!Z){var me,ye,be;const n=ae.baseFontFull;n!==H&&(e.font=n,H=n),oe=Pe(e,G,t.sourceIndex,l,he,pe,K,o,q,c,ue>0,ae,null!==(me=de)&&void 0!==me?me:ae.bgCell,S,D,null!==(ye=null===(be=ge)||void 0===be?void 0:be.hoverAmount)&&void 0!==ye?ye:0,A,O,N,_,oe,R,M,T,P)}var ke,Se;(fe&&e.restore(),"faded"===G.style&&(e.globalAlpha=1),z--,Q)&&(e.restore(),null===(ke=oe)||void 0===ke||null===(Se=ke.deprep)||void 0===Se||Se.call(ke,j),oe=void 0,J(),H=re,e.font=re);return z<=0})),e.restore(),z<=0})),$}const Oe=[0,0],Fe={x:0,y:0,width:0,height:0},Re=[void 0,()=>{}];let Me=!1;function Te(){Me=!0}function Pe(e,t,n,r,o,a,l,u,s,c,d,f,h,p,v,g,m,y,b,w,x,C,k,S,D){let E,A,_;void 0!==m&&m[0][0]===n&&m[0][1]===r&&(E=m[1][0],A=m[1][1]),Oe[0]=n,Oe[1]=r,Fe.x=l,Fe.y=u,Fe.width=s,Fe.height=c,Re[0]=k.getValue(Oe),Re[1]=e=>k.setValue(Oe,e),Me=!1;const O={ctx:e,theme:f,col:n,row:r,cell:t,rect:Fe,highlighted:d,cellFillColor:h,hoverAmount:g,frameTime:b,hoverX:E,drawState:Re,hoverY:A,imageLoader:p,spriteManager:v,hyperWrapping:y,overrideCursor:void 0!==E?D:void 0,requestAnimationFrame:Te},F=function(e,t,n,r,o,i){const{ctx:a,rect:l,theme:u}=e;let s=Number.MAX_SAFE_INTEGER;if(void 0!==t&&(s=n-t,s<500)){const e=1-s/500;a.globalAlpha=e,a.fillStyle=u.bgSearchResult,a.fillRect(l.x+1,l.y+1,l.width-(o?2:1),l.height-(i?2:1)),a.globalAlpha=1,void 0!==r&&(r.fillStyle=u.bgSearchResult)}return s<500}(O,t.lastUpdated,b,x,o,a),R=S(t);if(void 0!==R){var M,T,P,I;if((null===(M=x)||void 0===M?void 0:M.renderer)!==R)null===(P=x)||void 0===P||null===(I=P.deprep)||void 0===I||I.call(P,O),x=void 0;const e=null===(T=R.drawPrep)||void 0===T?void 0:T.call(R,O,x);void 0===w||(0,i.pg)(O.cell)?R.draw(O,t):w(O,(()=>R.draw(O,t))),_=void 0===e?void 0:{deprep:null===e||void 0===e?void 0:e.deprep,fillStyle:null===e||void 0===e?void 0:e.fillStyle,font:null===e||void 0===e?void 0:e.font,renderer:R}}return(F||Me)&&(null===C||void 0===C||C(Oe)),_}function Ie(e,t,n,r,o,l,u,s){var c;let d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:-20,f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:-20,h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:32,p=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"center",v=arguments.length>12&&void 0!==arguments[12]?arguments[12]:"square";const g=Math.floor(o+u/2),x="circle"===v?1e4:null!==(c=t.roundingRadius)&&void 0!==c?c:4;let C=b(h,u,t.cellVerticalPadding),k=C/2;const S=y(p,r,l,t.cellHorizontalPadding,C),D=m(S,g,C),E=w(r+d,o+f,D);switch(n){case!0:e.beginPath(),re(e,S-C/2,g-C/2,C,C,x),"circle"===v&&(k*=.8,C*=.8),e.fillStyle=s?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(S-k+C/4.23,g-k+C/1.97),e.lineTo(S-k+C/2.42,g-k+C/1.44),e.lineTo(S-k+C/1.29,g-k+C/3.25),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break;case i.WE:case!1:e.beginPath(),re(e,S-C/2+.5,g-C/2+.5,C-1,C-1,x),e.lineWidth=1,e.strokeStyle=E?t.textDark:t.textMedium,e.stroke();break;case i.wm:e.beginPath(),re(e,S-C/2,g-C/2,C,C,x),e.fillStyle=E?t.textMedium:t.textLight,e.fill(),"circle"===v&&(k*=.8,C*=.8),e.beginPath(),e.moveTo(S-C/3,g),e.lineTo(S+C/3,g),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break;default:(0,a.xb)(n)}}function Le(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g,m,y){var b;const w=a+l;if(w<=0)return;e.fillStyle=d.bgHeader,e.fillRect(0,0,o,w);const[x,C]=null!==(b=null===r||void 0===r?void 0:r[0])&&void 0!==b?b:[],k=d.headerFontFull;e.font=k,ye(t,0,i,0,w,((t,r,o,i)=>{var p,b,w;if(void 0!==g&&!g.has([t.sourceIndex,-1]))return;const k=Math.max(0,i-r);e.save(),e.beginPath(),e.rect(r+k,l,t.width-k,a),e.clip();const S=v(null!==(p=t.group)&&void 0!==p?p:"").overrideTheme,D=void 0===t.themeOverride&&void 0===S?d:(0,xe.P6)(d,S,t.themeOverride);D.bgHeader!==d.bgHeader&&(e.fillStyle=D.bgHeader,e.fill()),D!==d&&(e.font=D.baseFontFull);const E=c.columns.hasIndex(t.sourceIndex),A=void 0!==u||s,_=!A&&-1===C&&x===t.sourceIndex,O=A?0:null!==(b=null===(w=h.find((e=>e.item[0]===t.sourceIndex&&-1===e.item[1])))||void 0===w?void 0:w.hoverAmount)&&void 0!==b?b:0,F=void 0!==(null===c||void 0===c?void 0:c.current)&&c.current.cell[0]===t.sourceIndex,R=E?D.accentColor:F?D.bgHeaderHasFocus:D.bgHeader,M=n?l:0,T=0===t.sourceIndex?0:1;E?(e.fillStyle=R,e.fillRect(r+T,M,t.width-T,a)):(F||O>0)&&(e.beginPath(),e.rect(r+T,M,t.width-T,a),F&&(e.fillStyle=D.bgHeaderHasFocus,e.fill()),O>0&&(e.globalAlpha=O,e.fillStyle=D.bgHeaderHovered,e.fill(),e.globalAlpha=1)),je(e,r,M,t.width,a,t,E,D,_,F,O,f,m,y),e.restore()})),n&&function(e,t,n,r,o,i,a,l,u,s,c,d){var f;const h=8,[p,v]=null!==(f=null===i||void 0===i?void 0:i[0])&&void 0!==f?f:[];let g=0;be(t,n,r,o,((t,n,r,u,f,m)=>{var y;if(void 0!==d&&!d.hasItemInRectangle({x:t[0],y:-2,width:t[1]-t[0]+1,height:1}))return;e.save(),e.beginPath(),e.rect(r,u,f,m),e.clip();const b=c(n),w=void 0===(null===b||void 0===b?void 0:b.overrideTheme)?a:(0,xe.P6)(a,b.overrideTheme),x=-2===v&&void 0!==p&&p>=t[0]&&p<=t[1],C=x?w.bgHeaderHovered:w.bgHeader;if(C!==a.bgHeader&&(e.fillStyle=C,e.fill()),e.fillStyle=null!==(y=w.textGroupHeader)&&void 0!==y?y:w.textHeader,void 0!==b){let t=r;if(void 0!==b.icon&&(l.drawSprite(b.icon,"normal",e,t+h,(o-20)/2,20,w),t+=26),e.fillText(b.name,t+h,o/2+K(e,a.headerFontFull)),void 0!==b.actions&&x){var k;const t=Be({x:r,y:u,width:f,height:m},b.actions);e.beginPath();const n=t[0].x-10,a=r+f-n;e.rect(n,0,a,o);const s=e.createLinearGradient(n,0,n+a,0),c=(0,ve.fu)(C,0);s.addColorStop(0,c),s.addColorStop(10/a,C),s.addColorStop(1,C),e.fillStyle=s,e.fill(),e.globalAlpha=.6;const[d,h]=null!==(k=null===i||void 0===i?void 0:i[1])&&void 0!==k?k:[-1,-1];for(let o=0;o<b.actions.length;o++){const n=b.actions[o],i=t[o],a=ke(i,d+r,h);a&&(e.globalAlpha=1),l.drawSprite(n.icon,"normal",e,i.x+i.width/2-10,i.y+i.height/2-10,20,w),a&&(e.globalAlpha=.6)}e.globalAlpha=1}}0!==r&&s(t[0])&&(e.beginPath(),e.moveTo(r+.5,0),e.lineTo(r+.5,o),e.strokeStyle=a.borderColor,e.lineWidth=1,e.stroke()),e.restore(),g=r+f})),e.beginPath(),e.moveTo(g+.5,0),e.lineTo(g+.5,o),e.moveTo(0,o+.5),e.lineTo(n,o+.5),e.strokeStyle=a.borderColor,e.lineWidth=1,e.stroke()}(e,t,o,i,l,r,d,f,0,p,v,g)}const ze=30;function Ne(e,t,n,r,o){return o?{x:e,y:t,width:ze,height:Math.min(ze,r)}:{x:e+n-ze,y:Math.max(t,t+r/2-ze/2),width:ze,height:Math.min(ze,r)}}function Be(e,t){const n=[];let r=e.x+e.width-26*t.length;const o=e.y+e.height/2-13;for(let i=0;i<t.length;i++)n.push({x:r,y:o,width:26,height:26}),r+=26;return n}function He(e,t,n,r,o,a,l,u,s,c,d,f,h,p){if(void 0!==a.rowMarker){const i=a.rowMarkerChecked;return!0!==i&&(e.globalAlpha=c),Ie(e,u,i,t,n,r,o,!1,void 0,void 0,18,"center",a.rowMarker),void(!0!==i&&(e.globalAlpha=1))}const v=u.cellHorizontalPadding,g=l?u.textHeaderSelected:u.textHeader,m=!0===a.hasMenu&&(s||f&&l),y=h?-1:1;let b=h?t+r-v:t+v;if(void 0!==a.icon){let t=l?"selected":"normal";"highlight"===a.style&&(t=l?"selected":"special");const r=u.headerIconSize;d.drawSprite(a.icon,t,e,h?b-r:b,n+(o-r)/2,r,u),void 0!==a.overlayIcon&&d.drawSprite(a.overlayIcon,l?"selected":"special",e,h?b-r+9:b+9,n+((o-18)/2+6),18,u),b+=Math.ceil(1.3*r)*y}if(m&&!0===a.hasMenu&&r>35){const n=35,o=(h?n:r-n)/r,i=(h?.7*n:r-.7*n)/r,a=e.createLinearGradient(t,0,t+r,0),l=(0,ve.fu)(g,0);a.addColorStop(h?1:0,g),a.addColorStop(o,g),a.addColorStop(i,l),a.addColorStop(h?0:1,l),e.fillStyle=a}else e.fillStyle=g;if(h&&(e.textAlign="right"),e.fillText(a.title,b,n+o/2+K(e,u.headerFontFull)),h&&(e.textAlign="left"),m&&!0===a.hasMenu)if(void 0===a.menuIcon||a.menuIcon===i.N4.Triangle){e.beginPath();const t=p.x+p.width/2-5.5,n=p.y+p.height/2-3;!function(e,t,n){const r=function(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r),i=n/o,a=r/o;return{x:n,y:t.y-e.y,len:o,nx:i,ny:a,ang:Math.atan2(a,i)}};let o;const i=t.length;let a=t[i-1];for(let l=0;l<i;l++){let u=t[l%i];const s=t[(l+1)%i],c=r(u,a),d=r(u,s),f=c.nx*d.ny-c.ny*d.nx,h=c.nx*d.nx-c.ny*-d.ny;let p=Math.asin(f<-1?-1:f>1?1:f),v=1,g=!1;h<0?p<0?p=Math.PI+p:(p=Math.PI-p,v=-1,g=!0):p>0&&(v=-1,g=!0),o=void 0!==u.radius?u.radius:n;const m=p/2;let y,b=Math.abs(Math.cos(m)*o/Math.sin(m));b>Math.min(c.len/2,d.len/2)?(b=Math.min(c.len/2,d.len/2),y=Math.abs(b*Math.sin(m)/Math.cos(m))):y=o;let w=u.x+d.nx*b,x=u.y+d.ny*b;w+=-d.ny*y*v,x+=d.nx*y*v,e.arc(w,x,y,c.ang+Math.PI/2*v,d.ang-Math.PI/2*v,g),a=u,u=s}e.closePath()}(e,[{x:t,y:n},{x:t+11,y:n},{x:t+5.5,y:n+6}],1),e.fillStyle=g,e.fill()}else if(a.menuIcon===i.N4.Dots){e.beginPath();!function(e,t,n){const r=1.25;e.arc(t,n-4.375,r,0,2*Math.PI,!1),e.arc(t,n,r,0,2*Math.PI,!1),e.arc(t,n+4.375,r,0,2*Math.PI,!1)}(e,p.x+p.width/2,p.y+p.height/2),e.fillStyle=g,e.fill()}else{const t=p.x+(p.width-u.headerIconSize)/2,n=p.y+(p.height-u.headerIconSize)/2;d.drawSprite(a.menuIcon,"normal",e,t,n,u.headerIconSize,u)}}function je(e,t,n,r,o,i,a,l,u,s,c,d,f,h){const p="rtl"===S(i.title),v=Ne(t,n,r,o,p);void 0!==f?f({ctx:e,theme:l,rect:{x:t,y:n,width:r,height:o},column:i,columnIndex:i.sourceIndex,isSelected:a,hoverAmount:c,isHovered:u,hasSelectedCell:s,spriteManager:d,menuBounds:v},(()=>He(e,t,n,r,o,i,a,l,u,c,d,h,p,v))):He(e,t,n,r,o,i,a,l,u,c,d,h,p,v)}var Ve=n(9835);const We=(e,t,n)=>{let r=0,o=t,i=0,a=n;if(void 0!==e&&e.length>0){r=Number.MAX_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;for(const t of e)r=Math.min(r,t.x-1),o=Math.max(o,t.x+t.width+1),i=Math.min(i,t.y-1),a=Math.max(a,t.y+t.height+1)}return{minX:r,maxX:o,minY:i,maxY:a}};function Ue(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g){var m;let y=arguments.length>17&&void 0!==arguments[17]&&arguments[17];if(void 0!==u){e.beginPath(),e.save(),e.rect(0,0,i,a);for(const t of u)e.rect(t.x+1,t.y+1,t.width-1,t.height-1);e.clip("evenodd")}const b=null!==(m=g.horizontalBorderColor)&&void 0!==m?m:g.borderColor,w=g.borderColor,{minX:x,maxX:C,minY:k,maxY:S}=We(l,i,a),D=[];e.beginPath();let E=.5;for(let R=0;R<t.length;R++){const e=t[R];if(0===e.width)continue;E+=e.width;const n=e.sticky?E:E+r;n>=x&&n<=C&&h(R+1)&&D.push({x1:n,y1:Math.max(s,k),x2:n,y2:Math.min(a,S),color:w})}let A=a+.5;for(let R=v-p;R<v;R++){A-=d(R),D.push({x1:x,y1:A,x2:C,y2:A,color:b})}if(!0!==y){let e=c+.5,t=n;const r=A;for(;e+o<r;){const n=e+o;if(n>=k&&n<=S-1){var _,O;const e=null===f||void 0===f?void 0:f(t);D.push({x1:x,y1:n,x2:C,y2:n,color:null!==(_=null!==(O=null===e||void 0===e?void 0:e.horizontalBorderColor)&&void 0!==O?O:null===e||void 0===e?void 0:e.borderColor)&&void 0!==_?_:b})}e+=d(t),t++}}const F=Ve(D,(e=>e.color));for(const R of Object.keys(F)){e.strokeStyle=R;for(const t of F[R])e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2);e.stroke(),e.beginPath()}void 0!==u&&e.restore()}var $e=n(3986);const Xe=["width"],Ye=["width"];function Ge(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v){const g=null===p||void 0===p?void 0:p.filter((e=>"no-outline"!==e.style));if(void 0===g||0===g.length)return;const m=j(l),y=V(h,f,d),b=[u,0,l.length,h-f],w=[m,0,t,n-y],x=g.map((e=>{var p;const v=e.range,g=null!==(p=e.style)&&void 0!==p?p:"dashed";return function(e,t,n,r,o){const[i,a,l,u]=t,[s,c,d,f]=o,{x:h,y:p,width:v,height:g}=e,m=[];if(v<=0||g<=0)return m;const y=h+v,b=p+g,w=h<i,x=p<a,C=h+v>l,k=p+g>u,S=h>=i&&h<l||y>i&&y<=l||h<i&&y>l,D=p>=a&&p<u||b>a&&b<=u||p<a&&b>u;if(S&&D){const e=Math.max(h,i),t=Math.max(p,a),n=Math.min(y,l),r=Math.min(b,u);m.push({rect:{x:e,y:t,width:n-e,height:r-t},clip:{x:s,y:c,width:d-s+1,height:f-c+1}})}if(w&&x){const e=h,t=p,n=Math.min(y,i),r=Math.min(b,a);m.push({rect:{x:e,y:t,width:n-e,height:r-t},clip:{x:0,y:0,width:s+1,height:c+1}})}if(x&&S){const e=Math.max(h,i),t=p,n=Math.min(y,l),r=Math.min(b,a);m.push({rect:{x:e,y:t,width:n-e,height:r-t},clip:{x:s,y:0,width:d-s+1,height:c+1}})}if(x&&C){const e=Math.max(h,l),t=p,r=y,o=Math.min(b,a);m.push({rect:{x:e,y:t,width:r-e,height:o-t},clip:{x:d,y:0,width:n-d+1,height:c+1}})}if(w&&D){const e=h,t=Math.max(p,a),n=Math.min(y,i),r=Math.min(b,u);m.push({rect:{x:e,y:t,width:n-e,height:r-t},clip:{x:0,y:c,width:s+1,height:f-c+1}})}if(C&&D){const e=Math.max(h,l),t=Math.max(p,a),r=y,o=Math.min(b,u);m.push({rect:{x:e,y:t,width:r-e,height:o-t},clip:{x:d,y:c,width:n-d+1,height:f-c+1}})}if(w&&k){const e=h,t=Math.max(p,u),n=Math.min(y,i),o=b;m.push({rect:{x:e,y:t,width:n-e,height:o-t},clip:{x:0,y:f,width:s+1,height:r-f+1}})}if(k&&S){const e=Math.max(h,i),t=Math.max(p,u),n=Math.min(y,l),o=b;m.push({rect:{x:e,y:t,width:n-e,height:o-t},clip:{x:s,y:f,width:d-s+1,height:r-f+1}})}if(C&&k){const e=Math.max(h,l),t=Math.max(p,u),o=y,i=b;m.push({rect:{x:e,y:t,width:o-e,height:i-t},clip:{x:d,y:f,width:n-d+1,height:r-f+1}})}return m}(v,b,t,n,w).map((p=>{const v=p.rect,m=oe(v.x,v.y,t,n,c,s+c,r,o,i,a,h,u,f,l,d),y=1===v.width&&1===v.height?m:oe(v.x+v.width-1,v.y+v.height-1,t,n,c,s+c,r,o,i,a,h,u,f,l,d);return v.x+v.width>=l.length&&(y.width-=1),v.y+v.height>=h&&(y.height-=1),{color:e.color,style:g,clip:p.clip,rect:Ee({x:m.x,y:m.y,width:y.x+y.width-m.x,height:y.y+y.height-m.y},t,n,8)}}))})),C=()=>{e.lineWidth=1;let r=!1;for(const o of x)for(const i of o)if(void 0!==(null===i||void 0===i?void 0:i.rect)&&Ce(0,0,t,n,i.rect.x,i.rect.y,i.rect.width,i.rect.height)){const t=r,n=!De(i.clip,i.rect);n&&(e.save(),e.rect(i.clip.x,i.clip.y,i.clip.width,i.clip.height),e.clip()),"dashed"!==i.style||r?"solid"!==i.style&&"solid-outline"!==i.style||!r||(e.setLineDash([]),r=!1):(e.setLineDash([5,3]),r=!0),e.strokeStyle="solid-outline"===i.style?(0,ve.au)((0,ve.au)(i.color,v.borderColor),v.bgCell):(0,ve.fu)(i.color,1),e.strokeRect(i.rect.x+.5,i.rect.y+.5,i.rect.width-1,i.rect.height-1),n&&(e.restore(),r=t)}r&&e.setLineDash([])};return C(),C}function Ke(e,t,n,r,o){e.beginPath(),e.moveTo(t,n),e.lineTo(t,r),e.lineWidth=2,e.strokeStyle=o,e.stroke(),e.globalAlpha=1}function qe(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g){var m;if(void 0===c.current)return;const y=c.current.range,b=c.current.cell,w=[y.x+y.width-1,y.y+y.height-1];if(b[1]>=g&&w[1]>=g)return;if(!a.some((e=>e.sourceIndex===b[0]||e.sourceIndex===w[0])))return;const[x,C]=c.current.cell,k=f(c.current.cell),S=null!==(m=k.span)&&void 0!==m?m:[x,x],D=h>0&&!(C>=g-h)?V(g,h,d)-1:0,E=w[1];let A;if(ye(a,r,o,i,s,((r,o,i,a,s)=>{if(r.sticky&&x>r.sourceIndex)return;const c=r.sourceIndex<S[0],f=r.sourceIndex>S[1],m=r.sourceIndex===w[0];return m||!c&&!f?(me(s,i,n,g,d,h,p,void 0,((i,s,c)=>{if(s!==C&&s!==E)return;let d=o,f=r.width;if(void 0!==k.span){const e=we(k.span,o,i,r.width,c,r,l),t=r.sticky?e[0]:e[1];void 0!==t&&(d=t.x,f=t.width)}return s===E&&m&&v&&(A=()=>{var o,l;a>d&&!r.sticky&&(e.beginPath(),e.rect(a,0,t-a,n),e.clip()),e.beginPath(),e.rect(d+f-4,i+c-4,4,4),e.fillStyle=null!==(o=null===(l=r.themeOverride)||void 0===l?void 0:l.accentColor)&&void 0!==o?o:u.accentColor,e.fill()}),void 0!==A})),void 0!==A):void 0})),void 0===A)return;const _=()=>{var r;e.save(),e.beginPath(),e.rect(0,s,t,n-s-D),e.clip(),null===(r=A)||void 0===r||r(),e.restore()};return _(),_}function Qe(e,t){var n,r;const{canvasCtx:o,headerCanvasCtx:i,width:l,height:u,cellXOffset:s,cellYOffset:c,translateX:d,translateY:f,mappedColumns:h,enableGroups:p,freezeColumns:v,dragAndDropState:g,theme:m,drawFocus:y,headerHeight:b,groupHeaderHeight:w,disabledRows:x,rowHeight:C,verticalBorder:k,overrideCursor:S,isResizing:D,selection:E,fillHandle:A,freezeTrailingRows:_,rows:O,getCellContent:F,getGroupDetails:R,getRowThemeOverride:M,isFocused:T,drawHeaderCallback:P,prelightCells:I,drawCellCallback:L,highlightRegions:z,resizeCol:B,imageLoader:H,lastBlitData:U,hoverValues:$,hyperWrapping:X,hoverInfo:Y,spriteManager:G,maxScaleFactor:K,hasAppendRow:q,touchMode:Q,enqueue:Z,renderStateProvider:J,getCellRenderer:ee,renderStrategy:te,bufferACtx:ne,bufferBCtx:re,damage:oe,minimumCellWidth:ie}=e;if(0===l||0===u)return;const ae="double-buffer"===te,le=Math.min(K,Math.ceil(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1)),ue="direct"!==te&&function(e,t){if(void 0===t)return!1;if(e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.freezeColumns!==t.freezeColumns||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.maxScaleFactor!==t.maxScaleFactor)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let n;for(let r=0;r<e.mappedColumns.length;r++){const o=e.mappedColumns[r],i=t.mappedColumns[r];if((0,a.bD)(o,i))continue;if(void 0!==n)return!1;if(o.width===i.width)return!1;const{width:l}=o,u=(0,$e.A)(o,Xe),{width:s}=i,c=(0,$e.A)(i,Ye);if(!(0,a.bD)(u,c))return!1;n=r}return void 0===n||n}return!0}(e,t),se=o.canvas;se.width===l*le&&se.height===u*le||(se.width=l*le,se.height=u*le,se.style.width=l+"px",se.style.height=u+"px");const ce=i.canvas,de=p?w+b:b,fe=de+1;ce.width===l*le&&ce.height===fe*le||(ce.width=l*le,ce.height=fe*le,ce.style.width=l+"px",ce.style.height=fe+"px");const he=ne.canvas,pe=re.canvas;!ae||he.width===l*le&&he.height===u*le||(he.width=l*le,he.height=u*le,void 0!==U.current&&(U.current.aBufferScroll=void 0)),!ae||pe.width===l*le&&pe.height===u*le||(pe.width=l*le,pe.height=u*le,void 0!==U.current&&(U.current.bBufferScroll=void 0));const we=U.current;if(!0===ue&&s===(null===we||void 0===we?void 0:we.cellXOffset)&&c===(null===we||void 0===we?void 0:we.cellYOffset)&&d===(null===we||void 0===we?void 0:we.translateX)&&f===(null===we||void 0===we?void 0:we.translateY))return;let ke=null;ae&&(ke=o);const Se=i;let De;De=ae?void 0!==oe?"b"===(null===we||void 0===we?void 0:we.lastBuffer)?re:ne:"b"===(null===we||void 0===we?void 0:we.lastBuffer)?ne:re:o;const Ee=De.canvas,Ae=ae?Ee===he?pe:he:se,Oe="number"===typeof C?()=>C:C;Se.save(),De.save(),Se.beginPath(),De.beginPath(),Se.textBaseline="middle",De.textBaseline="middle",1!==le&&(Se.scale(le,le),De.scale(le,le));const Fe=W(h,s,l,g,d);let Re=[];const Me=y&&(null===(r=E.current)||void 0===r?void 0:r.cell[1])===c&&0===f;let Te=!1;if(void 0!==z)for(const a of z)if("no-outline"!==a.style&&a.range.y===c&&0===f){Te=!0;break}const Pe=()=>{var e,t;Le(Se,Fe,p,Y,l,d,b,w,g,D,E,m,G,$,k,R,oe,P,Q),Ue(Se,Fe,c,d,f,l,u,void 0,void 0,w,de,Oe,M,k,_,O,m,!0),Se.beginPath(),Se.moveTo(0,fe-.5),Se.lineTo(l,fe-.5),Se.strokeStyle=(0,ve.au)(null!==(e=null!==(t=m.headerBottomBorderColor)&&void 0!==t?t:m.horizontalBorderColor)&&void 0!==e?e:m.borderColor,m.bgHeader),Se.stroke(),Te&&Ge(Se,l,u,s,c,d,f,h,v,b,w,C,_,O,z,m),Me&&qe(Se,l,u,c,d,f,Fe,h,m,de,E,Oe,F,_,q,A,O)};if(void 0!==oe){const e=Fe[Fe.length-1].sourceIndex+1,t=e=>{_e(e,Fe,h,u,de,d,f,c,O,Oe,F,R,M,x,T,y,_,q,Re,oe,E,I,z,H,G,$,Y,L,X,m,Z,J,ee,S,ie);const t=E.current;A&&y&&void 0!==t&&oe.has(N(t.range))&&qe(e,l,u,c,d,f,Fe,h,m,de,E,Oe,F,_,q,A,O)};if(oe.hasItemInRegion([{x:s,y:-2,width:e,height:2},{x:s,y:c,width:e,height:300},{x:0,y:c,width:v,height:300},{x:0,y:-2,width:v,height:2},{x:s,y:O-_,width:e,height:_,when:_>0}])){t(De),null!==ke&&(ke.save(),ke.scale(le,le),ke.textBaseline="middle",t(ke),ke.restore());oe.hasHeader()&&(!function(e,t,n,r,o,i,a,l,u){void 0!==u&&0!==u.size&&(e.beginPath(),be(t,n,i,r,((t,n,r,o,i,a)=>{u.hasItemInRectangle({x:t[0],y:-2,width:t[1]-t[0]+1,height:1})&&e.rect(r,o,i,a)})),ye(t,l,i,a,o,((t,n,i,a)=>{const l=Math.max(0,a-n),s=n+l+1,c=t.width-l-1;u.has([t.sourceIndex,-1])&&e.rect(s,r,c,o-r)})),e.clip())}(Se,Fe,l,w,de,d,f,c,oe),Pe())}return De.restore(),void Se.restore()}if(!0===ue&&s===(null===we||void 0===we?void 0:we.cellXOffset)&&d===(null===we||void 0===we?void 0:we.translateX)&&Me===(null===we||void 0===we?void 0:we.mustDrawFocusOnHeader)&&Te===(null===we||void 0===we?void 0:we.mustDrawHighlightRingsOnHeader)||Pe(),!0===ue){(0,a.vA)(void 0!==Ae&&void 0!==we);const{regions:e}=function(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g,m,y){const b=[];e.imageSmoothingEnabled=!1;const w=Math.min(o.cellYOffset,a),x=Math.max(o.cellYOffset,a);let C=0;if("number"===typeof m)C+=(x-w)*m;else for(let F=w;F<x;F++)C+=m(F);a>o.cellYOffset&&(C=-C),C+=u-o.translateY;const k=Math.min(o.cellXOffset,i),S=Math.max(o.cellXOffset,i);let D=0;for(let F=k;F<S;F++)D+=v[F].width;i>o.cellXOffset&&(D=-D),D+=l-o.translateX;const E=j(g);if(0!==D&&0!==C)return{regions:[]};const A=s>0?V(f,s,m):0,_=c-E-Math.abs(D),O=d-h-A-Math.abs(C)-1;if(_>150&&O>150){const o={sx:0,sy:0,sw:c*p,sh:d*p,dx:0,dy:0,dw:c*p,dh:d*p};if(C>0?(o.sy=(h+1)*p,o.sh=O*p,o.dy=(C+h+1)*p,o.dh=O*p,b.push({x:0,y:h,width:c,height:C+1})):C<0&&(o.sy=(-C+h+1)*p,o.sh=O*p,o.dy=(h+1)*p,o.dh=O*p,b.push({x:0,y:d+C-A,width:c,height:-C+A})),D>0?(o.sx=E*p,o.sw=_*p,o.dx=(D+E)*p,o.dw=_*p,b.push({x:E-1,y:0,width:D+2,height:d})):D<0&&(o.sx=(E-D)*p,o.sw=_*p,o.dx=E*p,o.dw=_*p,b.push({x:c+D,y:0,width:-D,height:d})),e.setTransform(1,0,0,1,0,0),y){if(E>0&&0!==D&&0===C&&(void 0===r||!1!==(null===n||void 0===n?void 0:n[1]))){const n=E*p,r=d*p;e.drawImage(t,0,0,n,r,0,0,n,r)}if(A>0&&0===D&&0!==C&&(void 0===r||!1!==(null===n||void 0===n?void 0:n[0]))){const n=(d-A)*p,r=c*p,o=A*p;e.drawImage(t,0,n,r,o,0,n,r,o)}}e.drawImage(t,o.sx,o.sy,o.sw,o.sh,o.dx,o.dy,o.dw,o.dh),e.scale(p,p)}return e.imageSmoothingEnabled=!0,{regions:b}}(De,Ae,Ae===he?we.aBufferScroll:we.bBufferScroll,Ae===he?we.bBufferScroll:we.aBufferScroll,we,s,c,d,f,_,l,u,O,de,le,h,Fe,C,ae);Re=e}else if(!1!==ue){(0,a.vA)(void 0!==we);Re=function(e,t,n,r,o,i,a,l,u,s){const c=[];return t!==e.cellXOffset||n!==e.cellYOffset||r!==e.translateX||o!==e.translateY||ye(u,n,r,o,l,((e,t,n,r)=>{if(e.sourceIndex===s){const e=Math.max(t,r)+1;return c.push({x:e,y:0,width:i-e,height:a}),!0}})),c}(we,s,c,d,f,l,u,de,Fe,ue)}!function(e,t,n,r,o,i,a,l,u){var s;let c=!1;for(const v of t)if(!v.sticky){c=a(v.sourceIndex);break}const d=null!==(s=u.horizontalBorderColor)&&void 0!==s?s:u.borderColor,f=u.borderColor,h=c?j(t):0;let p;if(0!==h&&(p=(0,ve.mN)(f,u.bgCell),e.beginPath(),e.moveTo(h+.5,0),e.lineTo(h+.5,r),e.strokeStyle=p,e.stroke()),o>0){const t=f===d&&void 0!==p?p:(0,ve.mN)(d,u.bgCell),a=V(i,o,l);e.beginPath(),e.moveTo(0,r-a+.5),e.lineTo(n,r-a+.5),e.strokeStyle=t,e.stroke()}}(De,Fe,l,u,_,O,k,Oe,m);const Ie=Ge(De,l,u,s,c,d,f,h,v,b,w,C,_,O,z,m),ze=y?qe(De,l,u,c,d,f,Fe,h,m,de,E,Oe,F,_,q,A,O):void 0;if(De.fillStyle=m.bgCell,Re.length>0){De.beginPath();for(const e of Re)De.rect(e.x,e.y,e.width,e.height);De.clip(),De.fill(),De.beginPath()}else De.fillRect(0,0,l,u);const Ne=_e(De,Fe,h,u,de,d,f,c,O,Oe,F,R,M,x,T,y,_,q,Re,oe,E,I,z,H,G,$,Y,L,X,m,Z,J,ee,S,ie);!function(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g,m,y){if(void 0!==m||t[t.length-1]!==n[t.length-1])return;const b=ge(g);ye(t,u,a,l,i,((n,a,l,u,m)=>{if(n!==t[t.length-1])return;a+=n.width;const w=Math.max(a,u);w>r||(e.save(),e.beginPath(),e.rect(w,i+1,1e4,o-i-1),e.clip(),me(m,l,o,s,c,p,v,b,((t,n,r,o)=>{if(!o&&g.length>0&&!g.some((e=>Ce(a,t,1e4,r,e.x,e.y,e.width,e.height))))return;const i=f.hasIndex(n),l=h.hasIndex(n);e.beginPath();const u=null===d||void 0===d?void 0:d(n),s=void 0===u?y:(0,xe.P6)(y,u);s.bgCell!==y.bgCell&&(e.fillStyle=s.bgCell,e.fillRect(a,t,1e4,r)),l&&(e.fillStyle=s.bgHeader,e.fillRect(a,t,1e4,r)),i&&(e.fillStyle=s.accentLight,e.fillRect(a,t,1e4,r))})),e.restore())}))}(De,Fe,h,l,u,de,d,f,c,O,Oe,M,E.rows,x,_,q,Re,oe,m),function(e,t,n,r,o,i,a,l,u,s,c,d,f,h,p){const v=p.bgCell,{minX:g,maxX:m,minY:y,maxY:b}=We(l,i,a),w=[],x=a-V(h,f,s);let C=u,k=n,S=0;for(;C+o<x;){const e=C+o,t=s(k);if(e>=y&&e<=b-1){const n=null===c||void 0===c?void 0:c(k),r=null===n||void 0===n?void 0:n.bgCell;void 0!==r&&r!==v&&k>=h-f&&w.push({x:g,y:e,w:m-g,h:t,color:r})}C+=t,k<h-f&&(S=C),k++}let D=0;const E=Math.min(x,b)-S;if(E>0)for(let O=0;O<t.length;O++){var A;const e=t[O];if(0===e.width)continue;const n=e.sticky?D:D+r,o=null===(A=e.themeOverride)||void 0===A?void 0:A.bgCell;void 0!==o&&o!==v&&n>=g&&n<=m&&d(O+1)&&w.push({x:n,y:S,w:e.width,h:E,color:o}),D+=e.width}if(0===w.length)return;let _;e.beginPath();for(let O=w.length-1;O>=0;O--){const t=w[O];void 0===_?_=t.color:t.color!==_&&(e.fillStyle=_,e.fill(),e.beginPath(),_=t.color),e.rect(t.x,t.y,t.w,t.h)}void 0!==_&&(e.fillStyle=_,e.fill()),e.beginPath()}(De,Fe,c,d,f,l,u,Re,de,Oe,M,k,_,O,m),Ue(De,Fe,c,d,f,l,u,Re,Ne,w,de,Oe,M,k,_,O,m),null===Ie||void 0===Ie||Ie(),null===ze||void 0===ze||ze(),D&&ye(Fe,0,d,0,de,((e,t)=>{var n,r;return e.sourceIndex===B&&(Ke(Se,t+e.width,0,de+1,(0,ve.au)(null!==(n=m.resizeIndicatorColor)&&void 0!==n?n:m.accentLight,m.bgHeader)),Ke(De,t+e.width,de,u,(0,ve.au)(null!==(r=m.resizeIndicatorColor)&&void 0!==r?r:m.accentLight,m.bgCell)),!0)})),null!==ke&&(ke.fillStyle=m.bgCell,ke.fillRect(0,0,l,u),ke.drawImage(De.canvas,0,0));const Be=function(e,t,n,r,o,i,a,l,u,s){let c=0;return ye(e,i,r,o,n,((e,n,r,o,i)=>(me(i,r,t,a,l,u,s,void 0,((e,t,n,r)=>{r||(c=Math.max(t,c))})),!0))),c}(Fe,u,de,d,f,c,O,Oe,_,q);null===H||void 0===H||H.setWindow({x:s,y:c,width:Fe.length,height:Be-c},v,Array.from({length:_},((e,t)=>O-1-t)));const He=void 0!==we&&(s!==we.cellXOffset||d!==we.translateX),je=void 0!==we&&(c!==we.cellYOffset||f!==we.translateY);U.current={cellXOffset:s,cellYOffset:c,translateX:d,translateY:f,mustDrawFocusOnHeader:Me,mustDrawHighlightRingsOnHeader:Te,lastBuffer:ae?Ee===he?"a":"b":void 0,aBufferScroll:Ee===he?[He,je]:null===we||void 0===we?void 0:we.aBufferScroll,bBufferScroll:Ee===pe?[He,je]:null===we||void 0===we?void 0:we.bBufferScroll},De.restore(),Se.restore()}function Ze(e){const t=e-1;return t*t*t+1}class Je{constructor(e){(0,ie.A)(this,"callback",void 0),(0,ie.A)(this,"currentHoveredItem",void 0),(0,ie.A)(this,"leavingItems",[]),(0,ie.A)(this,"lastAnimationTime",void 0),(0,ie.A)(this,"addToLeavingItems",(e=>{const t=this.leavingItems.some((t=>z(t.item,e.item)));t||this.leavingItems.push(e)})),(0,ie.A)(this,"removeFromLeavingItems",(e=>{var t;const n=this.leavingItems.find((t=>z(t.item,e)));return this.leavingItems=this.leavingItems.filter((e=>e!==n)),null!==(t=null===n||void 0===n?void 0:n.hoverAmount)&&void 0!==t?t:0})),(0,ie.A)(this,"cleanUpLeavingElements",(()=>{this.leavingItems=this.leavingItems.filter((e=>e.hoverAmount>0))})),(0,ie.A)(this,"shouldStep",(()=>{const e=this.leavingItems.length>0,t=void 0!==this.currentHoveredItem&&this.currentHoveredItem.hoverAmount<1;return e||t})),(0,ie.A)(this,"getAnimatingItems",(()=>void 0!==this.currentHoveredItem?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map((e=>(0,o.A)((0,o.A)({},e),{},{hoverAmount:Ze(e.hoverAmount)}))))),(0,ie.A)(this,"step",(e=>{if(void 0===this.lastAnimationTime)this.lastAnimationTime=e;else{const t=(e-this.lastAnimationTime)/80;for(const e of this.leavingItems)e.hoverAmount=l(e.hoverAmount-t,0,1);void 0!==this.currentHoveredItem&&(this.currentHoveredItem.hoverAmount=l(this.currentHoveredItem.hoverAmount+t,0,1));const n=this.getAnimatingItems();this.callback(n),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=e,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0})),(0,ie.A)(this,"setHovered",(e=>{var t;if(!z(null===(t=this.currentHoveredItem)||void 0===t?void 0:t.item,e)){if(void 0!==this.currentHoveredItem&&this.addToLeavingItems(this.currentHoveredItem),void 0!==e){const t=this.removeFromLeavingItems(e);this.currentHoveredItem={item:e,hoverAmount:t}}else this.currentHoveredItem=void 0;void 0===this.lastAnimationTime&&window.requestAnimationFrame(this.step)}})),this.callback=e}}class et{constructor(e){(0,ie.A)(this,"fn",void 0),(0,ie.A)(this,"val",void 0),this.fn=e}get value(){var e;return null!==(e=this.val)&&void 0!==e?e:this.val=this.fn()}}function tt(e){return new et(e)}const nt=tt((()=>window.navigator.userAgent.includes("Firefox"))),rt=tt((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome"))),ot=tt((()=>window.navigator.platform.toLowerCase().startsWith("mac")));const it="header",at="group-header",lt="out-of-bounds";var ut;function st(e,t){return e===t||("out-of-bounds"===(null===e||void 0===e?void 0:e.kind)?(null===e||void 0===e?void 0:e.kind)===(null===t||void 0===t?void 0:t.kind)&&(null===e||void 0===e?void 0:e.location[0])===(null===t||void 0===t?void 0:t.location[0])&&(null===e||void 0===e?void 0:e.location[1])===(null===t||void 0===t?void 0:t.location[1])&&(null===e||void 0===e?void 0:e.region[0])===(null===t||void 0===t?void 0:t.region[0])&&(null===e||void 0===e?void 0:e.region[1])===(null===t||void 0===t?void 0:t.region[1]):(null===e||void 0===e?void 0:e.kind)===(null===t||void 0===t?void 0:t.kind)&&(null===e||void 0===e?void 0:e.location[0])===(null===t||void 0===t?void 0:t.location[0])&&(null===e||void 0===e?void 0:e.location[1])===(null===t||void 0===t?void 0:t.location[1]))}!function(e){e[e.Start=-2]="Start",e[e.StartPadding=-1]="StartPadding",e[e.Center=0]="Center",e[e.EndPadding=1]="EndPadding",e[e.End=2]="End"}(ut||(ut={}));const ct=e.memo(e.forwardRef(((t,n)=>{var r,u,s,d,p,v,g,m,y,b;const{width:w,height:x,accessibilityHeight:C,columns:k,cellXOffset:D,cellYOffset:A,headerHeight:_,fillHandle:O=!1,groupHeaderHeight:F,rowHeight:R,rows:M,getCellContent:T,getRowThemeOverride:P,onHeaderMenuClick:I,enableGroups:L,isFilling:z,onCanvasFocused:B,onCanvasBlur:H,isFocused:V,selection:U,freezeColumns:$,onContextMenu:X,freezeTrailingRows:Y,fixedShadowX:G=!0,fixedShadowY:K=!0,drawFocusRing:q,onMouseDown:Q,onMouseUp:Z,onMouseMoveRaw:J,onMouseMove:ee,onItemHovered:te,dragAndDropState:ne,firstColAccessible:re,onKeyDown:ie,onKeyUp:ae,highlightRegions:ue,canvasRef:se,onDragStart:de,onDragEnd:ve,eventTargetRef:ge,isResizing:me,resizeColumn:ye,isDragging:be,isDraggable:we=!1,allowResize:xe,disabledRows:Ce,hasAppendRow:Se,getGroupDetails:De,theme:Ee,prelightCells:Ae,headerIcons:_e,verticalBorder:Oe,drawCell:Fe,drawHeader:Re,onCellFocused:Me,onDragOverCell:Te,onDrop:Ie,onDragLeave:Le,imageWindowLoader:ze,smoothScrollX:He=!1,smoothScrollY:Ve=!1,experimental:We,getCellRenderer:Ue}=t,$e=null!==(r=t.translateX)&&void 0!==r?r:0,Xe=null!==(u=t.translateY)&&void 0!==u?u:0,Ye=Math.max($,Math.min(k.length-1,D)),Ge=e.useRef(null),Ke=ze,qe=e.useRef(),[Ze,et]=e.useState(!1),tt=e.useRef([]),ot=e.useRef(),[ct,dt]=e.useState(),[ft,ht]=e.useState(),pt=e.useRef(null),[vt,gt]=e.useState(),[mt,yt]=e.useState(!1),bt=e.useRef(mt);bt.current=mt;const wt=e.useMemo((()=>new pe(_e,(()=>{zt.current=void 0,jt.current()}))),[_e]),xt=L?F+_:_,Ct=e.useRef(-1),kt=null!==(s=null===We||void 0===We?void 0:We.enableFirefoxRescaling)&&void 0!==s&&s&&nt.value,St=null!==(d=null===We||void 0===We?void 0:We.enableSafariRescaling)&&void 0!==d&&d&&rt.value;e.useLayoutEffect((()=>{1!==window.devicePixelRatio&&(kt||St)&&(-1!==Ct.current&&et(!0),window.clearTimeout(Ct.current),Ct.current=window.setTimeout((()=>{et(!1),Ct.current=-1}),200))}),[A,Ye,$e,Xe,kt,St]);const Dt=function(t,n){return e.useMemo((()=>t.map(((e,t)=>({group:e.group,grow:e.grow,hasMenu:e.hasMenu,icon:e.icon,id:e.id,menuIcon:e.menuIcon,overlayIcon:e.overlayIcon,sourceIndex:t,sticky:t<n,style:e.style,themeOverride:e.themeOverride,title:e.title,trailingRowOptions:e.trailingRowOptions,width:e.width,growOffset:e.growOffset,rowMarker:e.rowMarker,rowMarkerChecked:e.rowMarkerChecked})))),[t,n])}(k,$),Et=G?j(Dt,ne):0,At=e.useCallback(((e,t,n)=>{const r=e.getBoundingClientRect();if(t>=Dt.length||n>=M)return;const o=r.width/w,i=oe(t,n,w,x,F,xt,Ye,A,$e,Xe,M,$,Y,Dt,R);return 1!==o&&(i.x*=o,i.y*=o,i.width*=o,i.height*=o),i.x+=r.x,i.y+=r.y,i}),[w,x,F,xt,Ye,A,$e,Xe,M,$,Y,Dt,R]),_t=e.useCallback(((e,t,n,r)=>{const o=e.getBoundingClientRect(),i=o.width/w,l=(t-o.left)/i,u=(n-o.top)/i,s=W(Dt,Ye,w,void 0,$e);let c=0,d=0;r instanceof MouseEvent&&(c=r.button,d=r.buttons);const f=function(e,t,n){let r=0;for(const o of t){if(e<=(o.sticky?r:r+(null!==n&&void 0!==n?n:0))+o.width)return o.sourceIndex;r+=o.width}return-1}(l,s,$e),h=function(e,t,n,r,o,i,a,l,u,s){const c=r+o;if(n&&e<=o)return-2;if(e<=c)return-1;let d=t;for(let p=0;p<s;p++){const t=i-1-p;if(d-="number"===typeof a?a:a(t),e>=d)return t}const f=i-s,h=e-(null!==u&&void 0!==u?u:0);if("number"===typeof a){const e=Math.floor((h-c)/a)+l;if(e>=f)return;return e}{let e=c;for(let t=l;t<f;t++){const n=a(t);if(h<=e+n)return t;e+=n}return}}(u,x,L,_,F,M,R,A,Xe,Y),p=!0===(null===r||void 0===r?void 0:r.shiftKey),v=!0===(null===r||void 0===r?void 0:r.ctrlKey),g=!0===(null===r||void 0===r?void 0:r.metaKey),m=void 0!==r&&!(r instanceof MouseEvent)||"touch"===(null===r||void 0===r?void 0:r.pointerType),y=[l<0?-1:w<l?1:0,u<xt?-1:x<u?1:0];let b;if(-1===f||u<0||l<0||void 0===h||l>w||u>x){const n=l>w?1:l<0?-1:0,r=u>x?1:u<0?-1:0;let o=2*n,i=2*r;0===n&&(o=-1===f?ut.EndPadding:ut.Center),0===r&&(i=void 0===h?ut.EndPadding:ut.Center);let s=!1;if(-1===f&&-1===h){const n=At(e,Dt.length-1,-1);(0,a.vA)(void 0!==n),s=t<n.x+n.width+5}const C=l>w&&l<w+E()||u>x&&u<x+E();b={kind:lt,location:[-1!==f?f:l<0?0:Dt.length-1,null!==h&&void 0!==h?h:M-1],region:[o,i],shiftKey:p,ctrlKey:v,metaKey:g,isEdge:s,isTouch:m,button:c,buttons:d,scrollEdge:y,isMaybeScrollbar:C}}else if(h<=-1){let r=At(e,f,h);(0,a.vA)(void 0!==r);let o=void 0!==r&&r.x+r.width-t<=5;const i=f-1;var C,k;if(t-r.x<=5&&i>=0)o=!0,r=At(e,i,h),(0,a.vA)(void 0!==r),b={kind:L&&-2===h?at:it,location:[i,h],bounds:r,group:null!==(C=Dt[i].group)&&void 0!==C?C:"",isEdge:o,shiftKey:p,ctrlKey:v,metaKey:g,isTouch:m,localEventX:t-r.x,localEventY:n-r.y,button:c,buttons:d,scrollEdge:y};else b={kind:L&&-2===h?at:it,group:null!==(k=Dt[f].group)&&void 0!==k?k:"",location:[f,h],bounds:r,isEdge:o,shiftKey:p,ctrlKey:v,metaKey:g,isTouch:m,localEventX:t-r.x,localEventY:n-r.y,button:c,buttons:d,scrollEdge:y}}else{const r=At(e,f,h);(0,a.vA)(void 0!==r);const o=void 0!==r&&r.x+r.width-t<5;let i=!1;if(O&&void 0!==U.current){const r=N(U.current.range),o=At(e,r[0],r[1]);if(void 0!==o){const e=o.x+o.width-2,r=o.y+o.height-2;i=Math.abs(e-t)<6&&Math.abs(r-n)<6}}b={kind:"cell",location:[f,h],bounds:r,isEdge:o,shiftKey:p,ctrlKey:v,isFillHandle:i,metaKey:g,isTouch:m,localEventX:t-r.x,localEventY:n-r.y,button:c,buttons:d,scrollEdge:y}}return b}),[w,Dt,Ye,$e,x,L,_,F,M,R,A,Xe,Y,At,O,U,xt]),[Ot]=null!==ct&&void 0!==ct?ct:[],Ft=e.useRef((()=>{})),Rt=e.useRef(ct);Rt.current=ct;const[Mt,Tt]=e.useMemo((()=>{const e=document.createElement("canvas"),t=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",t.style.display="none",t.style.opacity="0",t.style.position="fixed",[e.getContext("2d",{alpha:!1}),t.getContext("2d",{alpha:!1})]}),[]);e.useLayoutEffect((()=>{if(null!==Mt&&null!==Tt)return document.documentElement.append(Mt.canvas),document.documentElement.append(Tt.canvas),()=>{Mt.canvas.remove(),Tt.canvas.remove()}}),[Mt,Tt]);const Pt=e.useMemo((()=>new fe),[]),It=kt&&Ze?1:St&&Ze?2:5,Lt=!0===(null===We||void 0===We?void 0:We.disableMinimumCellWidth)?1:10,zt=e.useRef(),Nt=e.useRef(null),Bt=e.useRef(null),Ht=e.useCallback((()=>{var e,t,n;const r=Ge.current,o=pt.current;if(null===r||null===o)return;if(null===Nt.current&&(Nt.current=r.getContext("2d",{alpha:!1}),r.width=0,r.height=0),null===Bt.current&&(Bt.current=o.getContext("2d",{alpha:!1}),o.width=0,o.height=0),null===Nt.current||null===Bt.current||null===Mt||null===Tt)return;let a=!1;const l=zt.current,u={headerCanvasCtx:Bt.current,canvasCtx:Nt.current,bufferACtx:Mt,bufferBCtx:Tt,width:w,height:x,cellXOffset:Ye,cellYOffset:A,translateX:Math.round($e),translateY:Math.round(Xe),mappedColumns:Dt,enableGroups:L,freezeColumns:$,dragAndDropState:ne,theme:Ee,headerHeight:_,groupHeaderHeight:F,disabledRows:null!==Ce&&void 0!==Ce?Ce:i.I1.empty(),rowHeight:R,verticalBorder:Oe,isResizing:me,resizeCol:ye,isFocused:V,selection:U,fillHandle:O,drawCellCallback:Fe,hasAppendRow:Se,overrideCursor:e=>{a=!0,gt(e)},maxScaleFactor:It,freezeTrailingRows:Y,rows:M,drawFocus:q,getCellContent:T,getGroupDetails:null!==De&&void 0!==De?De:e=>({name:e}),getRowThemeOverride:P,drawHeaderCallback:Re,prelightCells:Ae,highlightRegions:ue,imageLoader:Ke,lastBlitData:ot,damage:qe.current,hoverValues:tt.current,hoverInfo:Rt.current,spriteManager:wt,scrolling:Ze,hyperWrapping:null!==(e=null===We||void 0===We?void 0:We.hyperWrapping)&&void 0!==e&&e,touchMode:mt,enqueue:Ft.current,renderStateProvider:Pt,renderStrategy:null!==(t=null===We||void 0===We?void 0:We.renderStrategy)&&void 0!==t?t:rt.value?"double-buffer":"single-buffer",getCellRenderer:Ue,minimumCellWidth:Lt};void 0===u.damage?(zt.current=u,Qe(u,l)):Qe(u,void 0),a||void 0!==u.damage&&!u.damage.has(null===Rt||void 0===Rt||null===(n=Rt.current)||void 0===n?void 0:n[0])||gt(void 0)}),[Mt,Tt,w,x,Ye,A,$e,Xe,Dt,L,$,ne,Ee,_,F,Ce,R,Oe,me,Se,ye,V,U,O,Y,M,q,It,T,De,P,Fe,Re,Ae,ue,Ke,wt,Ze,null===We||void 0===We?void 0:We.hyperWrapping,null===We||void 0===We?void 0:We.renderStrategy,mt,Pt,Ue,Lt]),jt=e.useRef(Ht);e.useLayoutEffect((()=>{Ht(),jt.current=Ht}),[Ht]),e.useLayoutEffect((()=>{(async()=>{var e;void 0!==(null===(e=document)||void 0===e||null===(e=e.fonts)||void 0===e?void 0:e.ready)&&(await document.fonts.ready,zt.current=void 0,jt.current())})()}),[]);const Vt=e.useCallback((e=>{qe.current=e,jt.current(),qe.current=void 0}),[]),Wt=function(t){const n=e.useRef([]),r=e.useRef(0),o=e.useRef(t);o.current=t;const i=e.useCallback((()=>{const e=()=>{const e=n.current.map(ce);n.current=[],o.current(new he(e)),n.current.length>0?r.current++:r.current=0};window.requestAnimationFrame(r.current>600?()=>window.requestAnimationFrame(e):e)}),[]);return e.useCallback((e=>{0===n.current.length&&i();const t=le(e[0],e[1]);n.current.includes(t)||n.current.push(t)}),[i])}(Vt);Ft.current=Wt;const Ut=e.useCallback((e=>{Vt(new he(e.map((e=>e.cell))))}),[Vt]);Ke.setCallback(Vt);const[$t,Xt]=e.useState(!1),[Yt,Gt]=null!==Ot&&void 0!==Ot?Ot:[],Kt=void 0!==Yt&&-1===Gt,qt=void 0!==Yt&&-2===Gt;let Qt=!1,Zt=!1,Jt=vt;if(void 0===Jt&&void 0!==Yt&&void 0!==Gt&&Gt>-1&&Gt<M){const e=T([Yt,Gt],!0);Qt=e.kind===i.Ld.NewRow||e.kind===i.Ld.Marker&&"number"!==e.markerKind,Zt=e.kind===i.dd.Boolean&&(0,i.dB)(e),Jt=e.cursor}const en=be?"grabbing":null!==ft&&void 0!==ft&&ft||me?"col-resize":$t||z?"crosshair":void 0!==Jt?Jt:Kt||Qt||Zt||qt?"pointer":"default",tn=e.useMemo((()=>({contain:"strict",display:"block",cursor:en})),[en]),nn=e.useRef("default"),rn=null===ge||void 0===ge?void 0:ge.current;null!==rn&&void 0!==rn&&nn.current!==tn.cursor&&(rn.style.cursor=nn.current=tn.cursor);const on=e.useCallback(((e,t,n,r)=>{if(void 0===De)return;const o=De(e);if(void 0!==o.actions){const e=Be(t,o.actions);for(const[i,a]of e.entries())if(ke(a,n+t.x,r+a.y))return o.actions[i]}}),[De]),an=e.useCallback(((e,t,n,r)=>{const o=k[t];if(!be&&!me&&!0===o.hasMenu&&(null===ft||void 0===ft||!ft)){const i=At(e,t,-1);(0,a.vA)(void 0!==i);const l=Ne(i.x,i.y,i.width,i.height,"rtl"===S(o.title));if(n>l.x&&n<l.x+l.width&&r>l.y&&r<l.y+l.height)return i}}),[k,At,ft,be,me]),ln=e.useRef(0),un=e.useRef(),sn=e.useRef(!1),cn=e.useCallback((e=>{const t=Ge.current,n=null===ge||void 0===ge?void 0:ge.current;if(null===t||e.target!==t&&e.target!==n)return;let r,o;if(sn.current=!0,e instanceof MouseEvent?(r=e.clientX,o=e.clientY):(r=e.touches[0].clientX,o=e.touches[0].clientY),e.target===n&&null!==n){const e=n.getBoundingClientRect();if(r>e.right||o>e.bottom)return}const i=_t(t,r,o,e);if(un.current=i.location,i.isTouch&&(ln.current=Date.now()),bt.current!==i.isTouch&&yt(i.isTouch),i.kind!==it||void 0===an(t,i.location[0],r,o)){if(i.kind===at){if(void 0!==on(i.group,i.bounds,i.localEventX,i.localEventY))return}null===Q||void 0===Q||Q(i),!i.isTouch&&!0!==we&&we!==i.kind&&i.button<3&&1!==i.button&&e.preventDefault()}}),[ge,we,_t,on,an,Q]);h("touchstart",cn,window,!1),h("mousedown",cn,window,!1);const dn=e.useRef(0),fn=e.useCallback((e=>{const t=dn.current;dn.current=Date.now();const n=Ge.current;if(sn.current=!1,void 0===Z||null===n)return;const r=null===ge||void 0===ge?void 0:ge.current,i=e.target!==n&&e.target!==r;let a,l,u=!0;if(e instanceof MouseEvent){if(a=e.clientX,l=e.clientY,u=e.button<3,"touch"===e.pointerType)return}else a=e.changedTouches[0].clientX,l=e.changedTouches[0].clientY;let s=_t(n,a,l,e);s.isTouch&&0!==ln.current&&Date.now()-ln.current>500&&(s=(0,o.A)((0,o.A)({},s),{},{isLongTouch:!0})),0!==t&&Date.now()-t<(s.isTouch?1e3:500)&&(s=(0,o.A)((0,o.A)({},s),{},{isDoubleClick:!0})),bt.current!==s.isTouch&&yt(s.isTouch),!i&&e.cancelable&&u&&e.preventDefault();const[c]=s.location,d=an(n,c,a,l);var f,h;if(s.kind!==it||void 0===d){if(s.kind===at){const e=on(s.group,s.bounds,s.localEventX,s.localEventY);if(void 0!==e)return void(0===s.button&&e.onClick(s))}Z(s,i)}else 0===s.button&&(null===(f=un.current)||void 0===f?void 0:f[0])===c&&-1===(null===(h=un.current)||void 0===h?void 0:h[1])||Z(s,!0)}),[Z,ge,_t,an,on]);h("mouseup",fn,window,!1),h("touchend",fn,window,!1);h("click",e.useCallback((e=>{const t=Ge.current;if(null===t)return;const n=null===ge||void 0===ge?void 0:ge.current,r=e.target!==t&&e.target!==n;let o,i,a=!0;e instanceof MouseEvent?(o=e.clientX,i=e.clientY,a=e.button<3):(o=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY);const l=_t(t,o,i,e);bt.current!==l.isTouch&&yt(l.isTouch),!r&&e.cancelable&&a&&e.preventDefault();const[u]=l.location,s=an(t,u,o,i);var c,d;if(l.kind===it&&void 0!==s)0===l.button&&(null===(c=un.current)||void 0===c?void 0:c[0])===u&&-1===(null===(d=un.current)||void 0===d?void 0:d[1])&&(null===I||void 0===I||I(u,s));else if(l.kind===at){const e=on(l.group,l.bounds,l.localEventX,l.localEventY);void 0!==e&&0===l.button&&e.onClick(l)}}),[ge,_t,an,I,on]),window,!1);h("contextmenu",e.useCallback((e=>{const t=Ge.current,n=null===ge||void 0===ge?void 0:ge.current;if(null===t||e.target!==t&&e.target!==n||void 0===X)return;const r=_t(t,e.clientX,e.clientY,e);X(r,(()=>{e.cancelable&&e.preventDefault()}))}),[ge,_t,X]),null!==(p=null===ge||void 0===ge?void 0:ge.current)&&void 0!==p?p:null,!1);const hn=e.useCallback((e=>{qe.current=new he(e.map((e=>e.item))),tt.current=e,jt.current(),qe.current=void 0}),[]),pn=e.useMemo((()=>new Je(hn)),[hn]),vn=e.useRef(pn);vn.current=pn,e.useLayoutEffect((()=>{const e=vn.current;if(void 0===Ot||Ot[1]<0)return void e.setHovered(Ot);const t=T(Ot,!0),n=Ue(t),r=void 0===n&&t.kind===i.dd.Custom||void 0!==(null===n||void 0===n?void 0:n.needsHover)&&("boolean"===typeof n.needsHover?n.needsHover:n.needsHover(t));e.setHovered(r?Ot:void 0)}),[T,Ue,Ot]);const gn=e.useRef();h("mousemove",e.useCallback((e=>{const t=Ge.current;if(null===t)return;const n=null===ge||void 0===ge?void 0:ge.current,r=e.target!==t&&e.target!==n,o=_t(t,e.clientX,e.clientY,e);if("out-of-bounds"!==o.kind&&r&&!sn.current&&!o.isTouch)return;const a=(e,t)=>{dt((n=>n===e?n:(null===n||void 0===n?void 0:n[0][0])!==(null===e||void 0===e?void 0:e[0][0])||(null===n||void 0===n?void 0:n[0][1])!==(null===e||void 0===e?void 0:e[0][1])||((null===n||void 0===n?void 0:n[1][0])!==(null===e||void 0===e?void 0:e[1][0])||(null===n||void 0===n?void 0:n[1][1])!==(null===e||void 0===e?void 0:e[1][1]))&&t?e:n))};if(st(o,gn.current)){if("cell"===o.kind||o.kind===it||o.kind===at){let e=!1,t=!0;if("cell"===o.kind){var l;const n=T(o.location),r=null===(l=Ue(n))||void 0===l?void 0:l.needsHoverPosition;t=null!==r&&void 0!==r?r:n.kind===i.dd.Custom,e=t}else o.kind===at&&(e=!0);const n=[o.location,[o.localEventX,o.localEventY]];a(n,t),Rt.current=n,e&&Vt(new he([o.location]))}}else gt(void 0),null===te||void 0===te||te(o),a(o.kind===lt?void 0:[o.location,[o.localEventX,o.localEventY]],!0),gn.current=o;const u=o.location[0]>=(re?0:1);ht(o.kind===it&&o.isEdge&&u&&!0===xe),Xt("cell"===o.kind&&o.isFillHandle),null===J||void 0===J||J(e),ee(o)}),[ge,_t,re,xe,J,ee,te,T,Ue,Vt]),window,!0);const mn=e.useCallback((e=>{const t=Ge.current;if(null===t)return;let n,r;void 0!==U.current&&(n=At(t,U.current.cell[0],U.current.cell[1]),r=U.current.cell),null===ie||void 0===ie||ie({bounds:n,stopPropagation:()=>e.stopPropagation(),preventDefault:()=>e.preventDefault(),cancel:()=>{},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e,location:r})}),[ie,U,At]),yn=e.useCallback((e=>{const t=Ge.current;if(null===t)return;let n,r;void 0!==U.current&&(n=At(t,U.current.cell[0],U.current.cell[1]),r=U.current.cell),null===ae||void 0===ae||ae({bounds:n,stopPropagation:()=>e.stopPropagation(),preventDefault:()=>e.preventDefault(),cancel:()=>{},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e,location:r})}),[ae,U,At]),bn=e.useCallback((e=>{Ge.current=e,void 0!==se&&(se.current=e)}),[se]);h("dragstart",e.useCallback((e=>{const t=Ge.current;if(null===t||!1===we||me)return void e.preventDefault();let n,r;const i=_t(t,e.clientX,e.clientY);if(!0!==we&&i.kind!==we)return void e.preventDefault();let l,u,s;let c=!1;if(null===de||void 0===de||de((0,o.A)((0,o.A)({},i),{},{setData:(e,t)=>{n=e,r=t},setDragImage:(e,t,n)=>{l=e,u=t,s=n},preventDefault:()=>c=!0,defaultPrevented:()=>c})),c||void 0===n||void 0===r||null===e.dataTransfer)e.preventDefault();else if(e.dataTransfer.setData(n,r),e.dataTransfer.effectAllowed="copyLink",void 0!==l&&void 0!==u&&void 0!==s)e.dataTransfer.setDragImage(l,u,s);else{const[n,r]=i.location;if(void 0!==r){var d;const o=document.createElement("canvas"),i=At(t,n,r);(0,a.vA)(void 0!==i);const l=Math.ceil(null!==(d=window.devicePixelRatio)&&void 0!==d?d:1);o.width=i.width*l,o.height=i.height*l;const u=o.getContext("2d");null!==u&&(u.scale(l,l),u.textBaseline="middle",-1===r?(u.font=Ee.headerFontFull,u.fillStyle=Ee.bgHeader,u.fillRect(0,0,o.width,o.height),je(u,0,0,i.width,i.height,Dt[n],!1,Ee,!1,!1,0,wt,Re,!1)):(u.font=Ee.baseFontFull,u.fillStyle=Ee.bgCell,u.fillRect(0,0,o.width,o.height),Pe(u,T([n,r]),0,r,!1,!1,0,0,i.width,i.height,!1,Ee,Ee.bgCell,Ke,wt,1,void 0,!1,0,void 0,void 0,void 0,Pt,Ue,(()=>{})))),o.style.left="-100%",o.style.position="absolute",o.style.width="".concat(i.width,"px"),o.style.height="".concat(i.height,"px"),document.body.append(o),e.dataTransfer.setDragImage(o,i.width/2,i.height/2),window.setTimeout((()=>{o.remove()}),0)}}}),[we,me,_t,de,At,Ee,Dt,wt,Re,T,Ke,Pt,Ue]),null!==(v=null===ge||void 0===ge?void 0:ge.current)&&void 0!==v?v:null,!1,!1);const wn=e.useRef();h("dragover",e.useCallback((e=>{var t;const n=Ge.current;if(void 0!==Ie&&e.preventDefault(),null===n||void 0===Te)return;const r=_t(n,e.clientX,e.clientY),[o,i]=r.location,a=o-(re?0:1),[l,u]=null!==(t=wn.current)&&void 0!==t?t:[];l===a&&u===i||(wn.current=[a,i],Te([a,i],e.dataTransfer))}),[re,_t,Te,Ie]),null!==(g=null===ge||void 0===ge?void 0:ge.current)&&void 0!==g?g:null,!1,!1);h("dragend",e.useCallback((()=>{wn.current=void 0,null===ve||void 0===ve||ve()}),[ve]),null!==(m=null===ge||void 0===ge?void 0:ge.current)&&void 0!==m?m:null,!1,!1);h("drop",e.useCallback((e=>{const t=Ge.current;if(null===t||void 0===Ie)return;e.preventDefault();const n=_t(t,e.clientX,e.clientY),[r,o]=n.location;Ie([r-(re?0:1),o],e.dataTransfer)}),[re,_t,Ie]),null!==(y=null===ge||void 0===ge?void 0:ge.current)&&void 0!==y?y:null,!1,!1);h("dragleave",e.useCallback((()=>{null===Le||void 0===Le||Le()}),[Le]),null!==(b=null===ge||void 0===ge?void 0:ge.current)&&void 0!==b?b:null,!1,!1);const xn=e.useRef(U);xn.current=U;const Cn=e.useRef(null),kn=e.useCallback((e=>{if(null!==Ge.current&&Ge.current.contains(document.activeElement)){var t;if(null===e&&void 0!==xn.current.current)null===se||void 0===se||null===(t=se.current)||void 0===t||t.focus({preventScroll:!0});else null!==e&&e.focus({preventScroll:!0});Cn.current=e}}),[se]);e.useImperativeHandle(n,(()=>({focus:()=>{const e=Cn.current;var t;null!==e&&document.contains(e)?e.focus({preventScroll:!0}):null===se||void 0===se||null===(t=se.current)||void 0===t||t.focus({preventScroll:!0})},getBounds:(e,t)=>{if(void 0!==se&&null!==se.current)return At(se.current,null!==e&&void 0!==e?e:0,null!==t&&void 0!==t?t:-1)},damage:Ut})),[se,Ut,At]);const Sn=e.useRef(),Dn=function(t,n,r){const[o,i]=e.useState(t),a=e.useRef(!0);e.useEffect((()=>()=>{a.current=!1}),[]);const l=e.useRef(f((e=>{a.current&&i(e)}),r));return e.useLayoutEffect((()=>{a.current&&l.current((()=>t()))}),n),o}((()=>{var t,n,r,o;if(w<50||!0===(null===We||void 0===We?void 0:We.disableAccessibilityTree))return null;let a=W(Dt,Ye,w,ne,$e);const l=re?0:-1;re||0!==(null===(t=a[0])||void 0===t?void 0:t.sourceIndex)||(a=a.slice(1));const[u,s]=null!==(n=null===(r=U.current)||void 0===r?void 0:r.cell)&&void 0!==n?n:[],d=null===(o=U.current)||void 0===o?void 0:o.range,f=a.map((e=>e.sourceIndex)),h=c(A,Math.min(M,A+C));return void 0===u||void 0===s||f.includes(u)&&h.includes(s)||kn(null),e.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":M+1,"aria-multiselectable":"true","aria-colcount":Dt.length+l},e.createElement("thead",{role:"rowgroup"},e.createElement("tr",{role:"row","aria-rowindex":1},a.map((t=>e.createElement("th",{role:"columnheader","aria-selected":U.columns.hasIndex(t.sourceIndex),"aria-colindex":t.sourceIndex+1+l,tabIndex:-1,onFocus:e=>{if(e.target!==Cn.current)return null===Me||void 0===Me?void 0:Me([t.sourceIndex,-1])},key:t.sourceIndex},t.title))))),e.createElement("tbody",{role:"rowgroup"},h.map((t=>e.createElement("tr",{role:"row","aria-selected":U.rows.hasIndex(t),key:t,"aria-rowindex":t+2},a.map((n=>{const r=n.sourceIndex,o=le(r,t),a=u===r&&s===t,c=void 0!==d&&r>=d.x&&r<d.x+d.width&&t>=d.y&&t<d.y+d.height,f="glide-cell-".concat(r,"-").concat(t),h=[r,t],p=T(h,!0);return e.createElement("td",{key:o,role:"gridcell","aria-colindex":r+1+l,"aria-selected":c,"aria-readonly":(0,i.pg)(p)||!(0,i.uQ)(p),id:f,"data-testid":f,onClick:()=>{const e=null===se||void 0===se?void 0:se.current;if(null!==e&&void 0!==e)return null===ie||void 0===ie?void 0:ie({bounds:At(e,r,t),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:h})},onFocusCapture:e=>{var n,o;if(e.target!==Cn.current&&((null===(n=Sn.current)||void 0===n?void 0:n[0])!==r||(null===(o=Sn.current)||void 0===o?void 0:o[1])!==t))return Sn.current=h,null===Me||void 0===Me?void 0:Me(h)},ref:a?kn:void 0,tabIndex:-1},((e,t)=>{var n;if(e.kind===i.dd.Custom)return e.copyData;const r=null===t||void 0===t?void 0:t(e);return null!==(n=null===r||void 0===r?void 0:r.getAccessibilityString(e))&&void 0!==n?n:""})(p,Ue))})))))))}),[w,Dt,Ye,ne,$e,M,A,C,U,kn,T,se,ie,At,Me],200),En=0!==$&&G?Ye>$?1:l(-$e/100,0,1):0,An=K?l(-(32*-A+Xe)/100,0,1):0,_n=e.useMemo((()=>{if(!En&&!An)return null;const t={position:"absolute",top:0,left:Et,width:w-Et,height:x,opacity:En,pointerEvents:"none",transition:He?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},n={position:"absolute",top:xt,left:0,width:w,height:x,opacity:An,pointerEvents:"none",transition:Ve?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return e.createElement(e.Fragment,null,En>0&&e.createElement("div",{id:"shadow-x",style:t}),An>0&&e.createElement("div",{id:"shadow-y",style:n}))}),[En,An,Et,w,He,xt,x,Ve]),On=e.useMemo((()=>({position:"absolute",top:0,left:0})),[]);return e.createElement(e.Fragment,null,e.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:mn,onKeyUp:yn,onFocus:B,onBlur:H,ref:bn,style:tn},Dn),e.createElement("canvas",{ref:pt,style:On}),_n)})));function dt(e,t,n,r){var o;return l(Math.round(t-(null!==(o=e.growOffset)&&void 0!==o?o:0)),Math.ceil(n),Math.floor(r))}const ft=t=>{var n;const[r,o]=e.useState(),[i,a]=e.useState(),[l,u]=e.useState(),[s,c]=e.useState(),[d,f]=e.useState(!1),[h,p]=e.useState(),[v,g]=e.useState(),[m,y]=e.useState(),[b,w]=e.useState(!1),[x,C]=e.useState(),{onHeaderMenuClick:k,getCellContent:S,onColumnMoved:D,onColumnResize:E,onColumnResizeStart:A,onColumnResizeEnd:_,gridRef:O,maxColumnWidth:F,minColumnWidth:R,onRowMoved:M,lockColumns:T,onColumnProposeMove:P,onMouseDown:I,onMouseUp:L,onItemHovered:z,onDragStart:N,canvasRef:B}=t,H=void 0!==(null!==(n=null!==E&&void 0!==E?E:_)&&void 0!==n?n:A),{columns:j,selection:V}=t,W=V.columns,U=e.useCallback((e=>{const[t,n]=e.location;void 0!==l&&s!==t&&t>=T?(f(!0),c(t)):void 0!==v&&void 0!==n?(w(!0),y(Math.max(0,n))):void 0!==i||d||b||null===z||void 0===z||z(e)}),[l,v,s,z,T,i,d,b]),$=void 0!==D,X=e.useCallback((e=>{if(0===e.button){const[r,i]=e.location;if("out-of-bounds"===e.kind&&e.isEdge&&H){var t;const e=null===O||void 0===O||null===(t=O.current)||void 0===t?void 0:t.getBounds(j.length-1,-1);void 0!==e&&(o(e.x),a(j.length-1))}else if("header"===e.kind&&r>=T){const t=null===B||void 0===B?void 0:B.current;if(e.isEdge&&H&&t){var n;o(e.bounds.x),a(r);const i=t.getBoundingClientRect().width/t.offsetWidth,l=e.bounds.width/i;null===A||void 0===A||A(j[r],l,r,l+(null!==(n=j[r].growOffset)&&void 0!==n?n:0))}else"header"===e.kind&&$&&(p(e.bounds.x),u(r))}else"cell"===e.kind&&T>0&&0===r&&void 0!==i&&void 0!==M&&(C(e.bounds.y),g(i))}null===I||void 0===I||I(e)}),[I,H,T,M,O,j,$,A,B]),Y=e.useCallback(((e,t)=>{d||b||null===k||void 0===k||k(e,t)}),[d,b,k]),G=e.useRef(-1),K=e.useCallback((()=>{G.current=-1,g(void 0),y(void 0),C(void 0),w(!1),u(void 0),c(void 0),p(void 0),f(!1),a(void 0),o(void 0)}),[]),q=e.useCallback(((e,t)=>{if(0===e.button){if(void 0!==i){var n;if(!0===(null===W||void 0===W?void 0:W.hasIndex(i)))for(const t of W){var r;if(t===i)continue;const e=j[t],n=dt(e,G.current,R,F);null===E||void 0===E||E(e,n,t,n+(null!==(r=e.growOffset)&&void 0!==r?r:0))}const e=dt(j[i],G.current,R,F);if(null===_||void 0===_||_(j[i],e,i,e+(null!==(n=j[i].growOffset)&&void 0!==n?n:0)),W.hasIndex(i))for(const t of W){var o;if(t===i)continue;const e=j[t],n=dt(e,G.current,R,F);null===_||void 0===_||_(e,n,t,n+(null!==(o=e.growOffset)&&void 0!==o?o:0))}}K(),void 0!==l&&void 0!==s&&(null===D||void 0===D||D(l,s)),void 0!==v&&void 0!==m&&(null===M||void 0===M||M(v,m))}null===L||void 0===L||L(e,t)}),[L,i,l,s,v,m,W,_,j,R,F,E,D,M,K]),Q=e.useMemo((()=>{if(void 0!==l&&void 0!==s&&l!==s&&!1!==(null===P||void 0===P?void 0:P(l,s)))return{src:l,dest:s}}),[l,s,P]),Z=e.useCallback((e=>{const t=null===B||void 0===B?void 0:B.current;if(void 0!==l&&void 0!==h){Math.abs(e.clientX-h)>20&&f(!0)}else if(void 0!==v&&void 0!==x){Math.abs(e.clientY-x)>20&&w(!0)}else if(void 0!==i&&void 0!==r&&t){var n;const a=t.getBoundingClientRect().width/t.offsetWidth,l=(e.clientX-r)/a,u=j[i],s=dt(u,l,R,F);if(null===E||void 0===E||E(u,s,i,s+(null!==(n=u.growOffset)&&void 0!==n?n:0)),G.current=l,(null===W||void 0===W?void 0:W.first())===i)for(const e of W){var o;if(e===i)continue;const t=j[e],n=dt(t,G.current,R,F);null===E||void 0===E||E(t,n,e,n+(null!==(o=t.growOffset)&&void 0!==o?o:0))}}}),[l,h,v,x,i,r,j,R,F,E,W,B]),J=e.useCallback(((e,t)=>{if(void 0===v||void 0===m)return S(e,t);let[n,r]=e;return r===m?r=v:(r>m&&(r-=1),r>=v&&(r+=1)),S([n,r],t)}),[v,m,S]),ee=e.useCallback((e=>{null===N||void 0===N||N(e),e.defaultPrevented()||K()}),[K,N]);return e.createElement(ct,{accessibilityHeight:t.accessibilityHeight,canvasRef:t.canvasRef,cellXOffset:t.cellXOffset,cellYOffset:t.cellYOffset,columns:t.columns,disabledRows:t.disabledRows,drawFocusRing:t.drawFocusRing,drawHeader:t.drawHeader,drawCell:t.drawCell,enableGroups:t.enableGroups,eventTargetRef:t.eventTargetRef,experimental:t.experimental,fillHandle:t.fillHandle,firstColAccessible:t.firstColAccessible,fixedShadowX:t.fixedShadowX,fixedShadowY:t.fixedShadowY,freezeColumns:t.freezeColumns,getCellRenderer:t.getCellRenderer,getGroupDetails:t.getGroupDetails,getRowThemeOverride:t.getRowThemeOverride,groupHeaderHeight:t.groupHeaderHeight,headerHeight:t.headerHeight,headerIcons:t.headerIcons,height:t.height,highlightRegions:t.highlightRegions,imageWindowLoader:t.imageWindowLoader,resizeColumn:i,isDraggable:t.isDraggable,isFilling:t.isFilling,isFocused:t.isFocused,onCanvasBlur:t.onCanvasBlur,onCanvasFocused:t.onCanvasFocused,onCellFocused:t.onCellFocused,onContextMenu:t.onContextMenu,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragOverCell:t.onDragOverCell,onDrop:t.onDrop,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onMouseMove:t.onMouseMove,prelightCells:t.prelightCells,rowHeight:t.rowHeight,rows:t.rows,selection:t.selection,smoothScrollX:t.smoothScrollX,smoothScrollY:t.smoothScrollY,theme:t.theme,freezeTrailingRows:t.freezeTrailingRows,hasAppendRow:t.hasAppendRow,translateX:t.translateX,translateY:t.translateY,verticalBorder:t.verticalBorder,width:t.width,getCellContent:J,isResizing:void 0!==i,onHeaderMenuClick:Y,isDragging:d,onItemHovered:U,onDragStart:ee,onMouseDown:X,allowResize:H,onMouseUp:q,dragAndDropState:Q,onMouseMoveRaw:Z,ref:O})};var ht=n(1923);const pt=(t,n,r)=>{const o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=(0,e.useRef)(null),l=(0,e.useRef)(0),u=(0,e.useRef)(n);u.current=n;const s=r.current;(0,e.useEffect)((()=>{const e=()=>{if(!1===i.current&&null!==s){var t,n;const r=[s.scrollLeft,s.scrollTop];if((null===(t=a.current)||void 0===t?void 0:t[0])===r[0]&&(null===(n=a.current)||void 0===n?void 0:n[1])===r[1]){if(l.current>10)return a.current=null,void(i.current=null);l.current++}else l.current=0,u.current(r[0],r[1]),a.current=r;o.current=window.setTimeout(e,1e3/120)}},n=()=>{i.current=!0,a.current=null,null!==o.current&&(window.clearTimeout(o.current),o.current=null)},r=t=>{0===t.touches.length&&(i.current=!1,l.current=0,o.current=window.setTimeout(e,1e3/120))};if(t&&null!==s){const e=s;return e.addEventListener("touchstart",n),e.addEventListener("touchend",r),()=>{e.removeEventListener("touchstart",n),e.removeEventListener("touchend",r),null!==o.current&&window.clearTimeout(o.current)}}}),[t,s])},vt=(0,ht.I)("div")({name:"ScrollRegionStyle",class:"gdg-s1dgczr6",propsAsIs:!1,vars:{"s1dgczr6-0":[e=>e.isSafari?"scroll":"auto"]}});const gt=t=>{var n,r,i,a;const{children:l,clientHeight:u,scrollHeight:s,scrollWidth:c,update:d,draggable:f,className:p,preventDiagonalScrolling:v=!1,paddingBottom:g=0,paddingRight:m=0,rightElement:y,rightElementProps:b,kineticScrollPerfHack:w=!1,scrollRef:x,initialSize:C}=t,k=[],S=null!==(n=null===b||void 0===b?void 0:b.sticky)&&void 0!==n&&n,D=null!==(r=null===b||void 0===b?void 0:b.fill)&&void 0!==r&&r,E=e.useRef(0),A=e.useRef(0),_=e.useRef(null),O="undefined"===typeof window?1:window.devicePixelRatio,F=e.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),R=e.useRef(null),M=function(t){const[n,r]=e.useState(!1),o="undefined"===typeof window?null:window,i=e.useRef(0);return h("touchstart",e.useCallback((()=>{window.clearTimeout(i.current),r(!0)}),[]),o,!0,!1),h("touchend",e.useCallback((e=>{0===e.touches.length&&(i.current=window.setTimeout((()=>r(!1)),t))}),[t]),o,!0,!1),n}(200),[T,P]=e.useState(!0),I=e.useRef(0);e.useLayoutEffect((()=>{if(!T||M||void 0===F.current.lockDirection)return;const e=_.current;if(null===e)return;const[t,n]=F.current.lockDirection;void 0!==t?e.scrollLeft=t:void 0!==n&&(e.scrollTop=n),F.current.lockDirection=void 0}),[M,T]);const L=e.useCallback(((e,t)=>{var n,r,o,i,a,l;const u=_.current;if(null===u)return;t=null!==(n=t)&&void 0!==n?n:u.scrollTop,e=null!==(r=e)&&void 0!==r?r:u.scrollLeft;const c=F.current.scrollTop,f=F.current.scrollLeft,h=e-f,p=t-c;M&&0!==h&&0!==p&&(Math.abs(h)>3||Math.abs(p)>3)&&v&&void 0===F.current.lockDirection&&(F.current.lockDirection=Math.abs(h)<Math.abs(p)?[f,void 0]:[void 0,c]);const y=F.current.lockDirection;e=null!==(o=null===y||void 0===y?void 0:y[0])&&void 0!==o?o:e,t=null!==(i=null===y||void 0===y?void 0:y[1])&&void 0!==i?i:t,F.current.scrollLeft=e,F.current.scrollTop=t;const b=u.clientWidth,w=u.clientHeight,x=t,C=A.current-x,k=u.scrollHeight-w;if(A.current=x,k>0&&(Math.abs(C)>2e3||0===x||x===k)&&s>u.scrollHeight+5){const e=(s-w)*(x/k);E.current=e-x}void 0!==y&&(window.clearTimeout(I.current),P(!1),I.current=window.setTimeout((()=>P(!0)),200)),d({x:e,y:x+E.current,width:b-m,height:w-g,paddingRight:null!==(a=null===(l=R.current)||void 0===l?void 0:l.clientWidth)&&void 0!==a?a:0})}),[g,m,s,d,v,M]);pt(w&&rt.value,L,_);const z=e.useRef(L);z.current=L;const N=e.useRef(),B=e.useRef(!1);e.useLayoutEffect((()=>{B.current?L():B.current=!0}),[L,g,m]);const H=e.useCallback((e=>{_.current=e,void 0!==x&&(x.current=e)}),[x]);let j=0,V=0;for(k.push(e.createElement("div",{key:j++,style:{width:c,height:0}}));V<s;){const t=Math.min(5e6,s-V);k.push(e.createElement("div",{key:j++,style:{width:0,height:t}})),V+=t}const{ref:W,width:U,height:$}=function(t){const n=(0,e.useRef)(null),[r,i]=(0,e.useState)({width:null===t||void 0===t?void 0:t[0],height:null===t||void 0===t?void 0:t[1]});return(0,e.useLayoutEffect)((()=>{const e=new window.ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t&&t.contentRect||{};i((t=>t.width===e&&t.height===n?t:{width:e,height:n}))}}));return n.current&&e.observe(n.current,void 0),()=>{e.disconnect()}}),[n.current]),(0,o.A)({ref:n},r)}(C);return"undefined"===typeof window||(null===(i=N.current)||void 0===i?void 0:i.height)===$&&(null===(a=N.current)||void 0===a?void 0:a.width)===U||(window.setTimeout((()=>z.current()),0),N.current={width:U,height:$}),0===(null!==U&&void 0!==U?U:0)||0===(null!==$&&void 0!==$?$:0)?e.createElement("div",{ref:W}):e.createElement("div",{ref:W},e.createElement(vt,{isSafari:rt.value},e.createElement("div",{className:"dvn-underlay"},l),e.createElement("div",{ref:H,style:N.current,draggable:f,onDragStart:e=>{f||(e.stopPropagation(),e.preventDefault())},className:"dvn-scroller "+(null!==p&&void 0!==p?p:""),onScroll:()=>L()},e.createElement("div",{className:"dvn-scroll-inner"+(void 0===y?" dvn-hidden":"")},e.createElement("div",{className:"dvn-stack"},k),void 0!==y&&e.createElement(e.Fragment,null,!D&&e.createElement("div",{className:"dvn-spacer"}),e.createElement("div",{ref:R,style:{height:$,maxHeight:u-Math.ceil(O%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:m,flexGrow:D?1:void 0,right:S?null!==m&&void 0!==m?m:0:void 0,pointerEvents:"auto"}},y))))))},mt=t=>{const{columns:n,rows:r,rowHeight:i,headerHeight:a,groupHeaderHeight:l,enableGroups:u,freezeColumns:s,experimental:c,nonGrowWidth:d,clientSize:f,className:h,onVisibleRegionChanged:p,scrollRef:v,preventDiagonalScrolling:g,rightElement:m,rightElementProps:y,overscrollX:b,overscrollY:w,initialSize:x,smoothScrollX:C=!1,smoothScrollY:k=!1,isDraggable:S}=t,{paddingRight:D,paddingBottom:E}=null!==c&&void 0!==c?c:{},[A,_]=f,O=e.useRef(),F=e.useRef(),R=e.useRef(),M=e.useRef(),T=d+Math.max(0,null!==b&&void 0!==b?b:0);let P=u?a+l:a;if("number"===typeof i)P+=r*i;else for(let e=0;e<r;e++)P+=i(e);void 0!==w&&(P+=w);const I=e.useRef(),L=e.useCallback((()=>{var e,t;if(void 0===I.current)return;const a=(0,o.A)({},I.current);let l=0,u=a.x<0?-a.x:0,c=0,d=0;a.x=a.x<0?0:a.x;let f=0;for(let r=0;r<s;r++)f+=n[r].width;for(const r of n){const e=l-f;if(a.x>=e+r.width)l+=r.width,d++,c++;else if(a.x>e)l+=r.width,C?u+=e-a.x:d++,c++;else{if(!(a.x+a.width>e))break;l+=r.width,c++}}let h=0,v=0,g=0;if("number"===typeof i)k?(v=Math.floor(a.y/i),h=v*i-a.y):v=Math.ceil(a.y/i),g=Math.ceil(a.height/i)+v,h<0&&g++;else{let e=0;for(let t=0;t<r;t++){const n=i(t),r=e+(k?0:n/2);if(a.y>=e+n)e+=n,v++,g++;else if(a.y>r)e+=n,k?h+=r-a.y:v++,g++;else{if(!(a.y+a.height>n/2+e))break;e+=n,g++}}}const m={x:d,y:v,width:c-d,height:g-v},y=O.current;var b;void 0!==y&&y.y===m.y&&y.x===m.x&&y.height===m.height&&y.width===m.width&&F.current===u&&R.current===h&&a.width===(null===(e=M.current)||void 0===e?void 0:e[0])&&a.height===(null===(t=M.current)||void 0===t?void 0:t[1])||(null===p||void 0===p||p({x:d,y:v,width:c-d,height:g-v},a.width,a.height,null!==(b=a.paddingRight)&&void 0!==b?b:0,u,h),O.current=m,F.current=u,R.current=h,M.current=[a.width,a.height])}),[n,i,r,p,s,C,k]),z=e.useCallback((e=>{I.current=e,L()}),[L]);return e.useEffect((()=>{L()}),[L]),e.createElement(gt,{scrollRef:v,className:h,kineticScrollPerfHack:null===c||void 0===c?void 0:c.kineticScrollPerfHack,preventDiagonalScrolling:g,draggable:!0===S||"string"===typeof S,scrollWidth:T+(null!==D&&void 0!==D?D:0),scrollHeight:P+(null!==E&&void 0!==E?E:0),clientHeight:_,rightElement:m,paddingBottom:E,paddingRight:D,rightElementProps:y,update:z,initialSize:x},e.createElement(ft,{eventTargetRef:v,width:A,height:_,accessibilityHeight:t.accessibilityHeight,canvasRef:t.canvasRef,cellXOffset:t.cellXOffset,cellYOffset:t.cellYOffset,columns:t.columns,disabledRows:t.disabledRows,enableGroups:t.enableGroups,fillHandle:t.fillHandle,firstColAccessible:t.firstColAccessible,fixedShadowX:t.fixedShadowX,fixedShadowY:t.fixedShadowY,freezeColumns:t.freezeColumns,getCellContent:t.getCellContent,getCellRenderer:t.getCellRenderer,getGroupDetails:t.getGroupDetails,getRowThemeOverride:t.getRowThemeOverride,groupHeaderHeight:t.groupHeaderHeight,headerHeight:t.headerHeight,highlightRegions:t.highlightRegions,imageWindowLoader:t.imageWindowLoader,isFilling:t.isFilling,isFocused:t.isFocused,lockColumns:t.lockColumns,maxColumnWidth:t.maxColumnWidth,minColumnWidth:t.minColumnWidth,onHeaderMenuClick:t.onHeaderMenuClick,onMouseMove:t.onMouseMove,prelightCells:t.prelightCells,rowHeight:t.rowHeight,rows:t.rows,selection:t.selection,theme:t.theme,freezeTrailingRows:t.freezeTrailingRows,hasAppendRow:t.hasAppendRow,translateX:t.translateX,translateY:t.translateY,onColumnProposeMove:t.onColumnProposeMove,verticalBorder:t.verticalBorder,drawFocusRing:t.drawFocusRing,drawHeader:t.drawHeader,drawCell:t.drawCell,experimental:t.experimental,gridRef:t.gridRef,headerIcons:t.headerIcons,isDraggable:t.isDraggable,onCanvasBlur:t.onCanvasBlur,onCanvasFocused:t.onCanvasFocused,onCellFocused:t.onCellFocused,onColumnMoved:t.onColumnMoved,onColumnResize:t.onColumnResize,onColumnResizeEnd:t.onColumnResizeEnd,onColumnResizeStart:t.onColumnResizeStart,onContextMenu:t.onContextMenu,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragOverCell:t.onDragOverCell,onDragStart:t.onDragStart,onDrop:t.onDrop,onItemHovered:t.onItemHovered,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onMouseDown:t.onMouseDown,onMouseUp:t.onMouseUp,onRowMoved:t.onRowMoved,smoothScrollX:t.smoothScrollX,smoothScrollY:t.smoothScrollY}))},yt=(0,ht.I)("div")({name:"SearchWrapper",class:"gdg-seveqep",propsAsIs:!1}),bt=e.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),wt=e.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),xt=e.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},e.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),Ct=t=>{const{canvasRef:n,cellYOffset:r,rows:l,columns:u,searchInputRef:s,searchValue:c,searchResults:d,onSearchValueChange:f,getCellsForSelection:h,onSearchResultsChanged:p,showSearch:v=!1,onSearchClose:g}=t,[m]=e.useState((()=>"search-box-"+Math.round(1e3*Math.random()))),[y,b]=e.useState(""),w=null!==c&&void 0!==c?c:y,x=e.useCallback((e=>{b(e),null===f||void 0===f||f(e)}),[f]),[C,k]=e.useState(),S=e.useRef(C);S.current=C,e.useEffect((()=>{void 0!==d&&(d.length>0?k((e=>{var t;return{rowsSearched:l,results:d.length,selectedIndex:null!==(t=null===e||void 0===e?void 0:e.selectedIndex)&&void 0!==t?t:-1}})):k(void 0))}),[l,d]);const D=e.useRef();void 0===D.current&&(D.current=new AbortController);const E=e.useRef(),[A,_]=e.useState([]),O=null!==d&&void 0!==d?d:A,F=e.useCallback((()=>{void 0!==E.current&&(window.cancelAnimationFrame(E.current),E.current=void 0,D.current.abort())}),[]),R=e.useRef(r);R.current=r;const M=e.useCallback((e=>{const t=new RegExp(e.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i");let n=R.current,r=Math.min(10,l),o=0;k(void 0),_([]);const s=[],c=async()=>{var e,d;if(void 0===h)return;const f=performance.now(),v=l-o;let g=h({x:0,y:n,width:u.length,height:Math.min(r,v,l-n)},D.current.signal);"function"===typeof g&&(g=await g());let m=!1;for(const[r,o]of g.entries())for(const[e,a]of o.entries()){let o;switch(a.kind){case i.dd.Text:case i.dd.Number:o=a.displayData;break;case i.dd.Uri:case i.dd.Markdown:o=a.data;break;case i.dd.Boolean:o="boolean"===typeof a.data?a.data.toString():void 0;break;case i.dd.Image:case i.dd.Bubble:o=a.data.join("\ud83d\udc33");break;case i.dd.Custom:o=a.copyData}void 0!==o&&t.test(o)&&(s.push([e,r+n]),m=!0)}const y=performance.now();m&&_([...s]),o+=g.length,(0,a.vA)(o<=l);const b=null!==(e=null===(d=S.current)||void 0===d?void 0:d.selectedIndex)&&void 0!==e?e:-1;k({results:s.length,rowsSearched:o,selectedIndex:b}),null===p||void 0===p||p(s,b),n+r>=l?n=0:n+=r;const w=y-f,x=10/Math.max(w,1);r=Math.ceil(r*x),o<l&&s.length<1e3&&(E.current=window.requestAnimationFrame(c))};F(),E.current=window.requestAnimationFrame(c)}),[F,u.length,h,p,l]),T=e.useCallback((()=>{var e;null===g||void 0===g||g(),k(void 0),_([]),null===p||void 0===p||p([],-1),F(),null===n||void 0===n||null===(e=n.current)||void 0===e||e.focus()}),[F,n,g,p]),P=e.useCallback((e=>{x(e.target.value),void 0===d&&(""===e.target.value?(k(void 0),_([]),F()):M(e.target.value))}),[M,F,x,d]);e.useEffect((()=>{v&&null!==s.current&&(x(""),s.current.focus({preventScroll:!0}))}),[v,s,x]);const I=e.useCallback((e=>{var t;if(null===e||void 0===e||null===(t=e.stopPropagation)||void 0===t||t.call(e),void 0===C)return;const n=(C.selectedIndex+1)%C.results;k((0,o.A)((0,o.A)({},C),{},{selectedIndex:n})),null===p||void 0===p||p(O,n)}),[C,p,O]),L=e.useCallback((e=>{var t;if(null===e||void 0===e||null===(t=e.stopPropagation)||void 0===t||t.call(e),void 0===C)return;let n=(C.selectedIndex-1)%C.results;n<0&&(n+=C.results),k((0,o.A)((0,o.A)({},C),{},{selectedIndex:n})),null===p||void 0===p||p(O,n)}),[p,O,C]),z=e.useCallback((e=>{(e.ctrlKey||e.metaKey)&&"KeyF"===e.nativeEvent.code||"Escape"===e.key?(T(),e.stopPropagation(),e.preventDefault()):"Enter"===e.key&&(e.shiftKey?L():I())}),[T,I,L]);e.useEffect((()=>()=>{F()}),[F]);const[N,B]=e.useState(!1);e.useEffect((()=>{if(!v){const e=setTimeout((()=>B(!1)),150);return()=>clearTimeout(e)}B(!0)}),[v]);const H=e.useMemo((()=>{var t,n,r;if(!v&&!N)return null;let o;void 0!==C&&(o=C.results>=1e3?"over 1000":"".concat(C.results," result").concat(1!==C.results?"s":""),C.selectedIndex>=0&&(o="".concat(C.selectedIndex+1," of ").concat(o)));const i=e=>{e.stopPropagation()},a=Math.floor((null!==(t=null===C||void 0===C?void 0:C.rowsSearched)&&void 0!==t?t:0)/l*100),u={width:"".concat(a,"%")};return e.createElement(yt,{className:v?"":"out",onMouseDown:i,onMouseMove:i,onMouseUp:i,onClick:i},e.createElement("div",{className:"gdg-search-bar-inner"},e.createElement("input",{id:m,"aria-hidden":!v,"data-testid":"search-input",ref:s,onChange:P,value:w,tabIndex:v?void 0:-1,onKeyDownCapture:z}),e.createElement("button",{"aria-label":"Previous Result","aria-hidden":!v,tabIndex:v?void 0:-1,onClick:L,disabled:0===(null!==(n=null===C||void 0===C?void 0:C.results)&&void 0!==n?n:0)},bt),e.createElement("button",{"aria-label":"Next Result","aria-hidden":!v,tabIndex:v?void 0:-1,onClick:I,disabled:0===(null!==(r=null===C||void 0===C?void 0:C.results)&&void 0!==r?r:0)},wt),void 0!==g&&e.createElement("button",{"aria-label":"Close Search","aria-hidden":!v,"data-testid":"search-close-button",tabIndex:v?void 0:-1,onClick:T},xt)),void 0!==C?e.createElement(e.Fragment,null,e.createElement("div",{className:"gdg-search-status"},e.createElement("div",{"data-testid":"search-result-area"},o)),e.createElement("div",{className:"gdg-search-progress",style:u})):e.createElement("div",{className:"gdg-search-status"},e.createElement("label",{htmlFor:m},"Type to search")))}),[v,N,C,l,m,s,P,w,z,L,I,g,T]);return e.createElement(e.Fragment,null,e.createElement(mt,{prelightCells:O,accessibilityHeight:t.accessibilityHeight,canvasRef:t.canvasRef,cellXOffset:t.cellXOffset,cellYOffset:t.cellYOffset,className:t.className,clientSize:t.clientSize,columns:t.columns,disabledRows:t.disabledRows,enableGroups:t.enableGroups,fillHandle:t.fillHandle,firstColAccessible:t.firstColAccessible,nonGrowWidth:t.nonGrowWidth,fixedShadowX:t.fixedShadowX,fixedShadowY:t.fixedShadowY,freezeColumns:t.freezeColumns,getCellContent:t.getCellContent,getCellRenderer:t.getCellRenderer,getGroupDetails:t.getGroupDetails,getRowThemeOverride:t.getRowThemeOverride,groupHeaderHeight:t.groupHeaderHeight,headerHeight:t.headerHeight,highlightRegions:t.highlightRegions,imageWindowLoader:t.imageWindowLoader,initialSize:t.initialSize,isFilling:t.isFilling,isFocused:t.isFocused,lockColumns:t.lockColumns,maxColumnWidth:t.maxColumnWidth,minColumnWidth:t.minColumnWidth,onHeaderMenuClick:t.onHeaderMenuClick,onMouseMove:t.onMouseMove,onVisibleRegionChanged:t.onVisibleRegionChanged,overscrollX:t.overscrollX,overscrollY:t.overscrollY,preventDiagonalScrolling:t.preventDiagonalScrolling,rightElement:t.rightElement,rightElementProps:t.rightElementProps,rowHeight:t.rowHeight,rows:t.rows,scrollRef:t.scrollRef,selection:t.selection,theme:t.theme,freezeTrailingRows:t.freezeTrailingRows,hasAppendRow:t.hasAppendRow,translateX:t.translateX,translateY:t.translateY,verticalBorder:t.verticalBorder,onColumnProposeMove:t.onColumnProposeMove,drawFocusRing:t.drawFocusRing,drawCell:t.drawCell,drawHeader:t.drawHeader,experimental:t.experimental,gridRef:t.gridRef,headerIcons:t.headerIcons,isDraggable:t.isDraggable,onCanvasBlur:t.onCanvasBlur,onCanvasFocused:t.onCanvasFocused,onCellFocused:t.onCellFocused,onColumnMoved:t.onColumnMoved,onColumnResize:t.onColumnResize,onColumnResizeEnd:t.onColumnResizeEnd,onColumnResizeStart:t.onColumnResizeStart,onContextMenu:t.onContextMenu,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragOverCell:t.onDragOverCell,onDragStart:t.onDragStart,onDrop:t.onDrop,onItemHovered:t.onItemHovered,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onMouseDown:t.onMouseDown,onMouseUp:t.onMouseUp,onRowMoved:t.onRowMoved,smoothScrollX:t.smoothScrollX,smoothScrollY:t.smoothScrollY}),H)};var kt=n(9252);const St=(0,ht.I)("input")({name:"RenameInput",class:"gdg-r17m35ur",propsAsIs:!1,vars:{"r17m35ur-0":[e=>Math.max(16,e.targetHeight-10),"px"]}}),Dt=t=>{const{bounds:n,group:r,onClose:o,canvasBounds:i,onFinish:a}=t,[l,u]=e.useState(r);return e.createElement(kt.A,{style:{position:"absolute",left:n.x-i.left+1,top:n.y-i.top,width:n.width-2,height:n.height},className:"gdg-c1tqibwd",onClickOutside:o},e.createElement(St,{targetHeight:n.height,"data-testid":"group-rename-input",value:l,onBlur:o,onFocus:e=>e.target.setSelectionRange(0,l.length),onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key?a(l):"Escape"===e.key&&o()},autoFocus:!0}))};function Et(e,t,n,r,i,a,l,u,s){let c=0;const d=void 0===i?[]:i.map((n=>{const o=function(e,t,n,r){var o,i;const a=r(t);return null!==(o=null===a||void 0===a||null===(i=a.measure)||void 0===i?void 0:i.call(a,e,t,n))&&void 0!==o?o:150}(e,n[r],t,s);return c=Math.max(c,o),o}));if(d.length>5&&u){c=0;let e=0;for(const n of d)e+=n;const t=e/d.length;for(let n=0;n<d.length;n++)d[n]>=2*t?d[n]=0:c=Math.max(c,d[n])}c=Math.max(c,e.measureText(n.title).width+16+(void 0===n.icon?0:28));const f=Math.max(Math.ceil(a),Math.min(Math.floor(l),Math.ceil(c)));return(0,o.A)((0,o.A)({},n),{},{width:f})}function At(e,t,n){const r=_t(e,t);return r&&(n.didMatch=!0),r}function _t(e,t){if(0===e.length)return!1;if(e.includes("|")){const n=e.split("|");for(const e of n)if(_t(e,t))return!0;return!1}let n=!1,r=!1,o=!1,i=!1;const a=e.split("+");if(!function(e,t){if(void 0===e)return!1;if(e.length>1&&e.startsWith("_"))return Number.parseInt(e.slice(1))===t.keyCode;return 1===e.length&&e>="a"&&e<="z"?e.toUpperCase().codePointAt(0)===t.keyCode:e===t.key}(a.pop(),t))return!1;if("any"===a[0])return!0;for(const l of a)switch(l){case"ctrl":n=!0;break;case"shift":r=!0;break;case"alt":o=!0;break;case"meta":i=!0;break;case"primary":ot.value?i=!0:n=!0}return t.altKey===o&&t.ctrlKey===n&&t.shiftKey===r&&t.metaKey===i}function Ot(e,t){const n=e.map(((e,n)=>{const r=t[n];return e.map((e=>void 0!==e.span&&e.span[0]!==r?{formatted:"",rawValue:"",format:"string"}:function(e){var t,n;if(void 0!==e.copyData)return{formatted:e.copyData,rawValue:e.copyData,format:"string"};switch(e.kind){case i.dd.Boolean:return{formatted:!0===e.data?"TRUE":!1===e.data?"FALSE":e.data===i.wm?"INDETERMINATE":"",rawValue:e.data,format:"boolean"};case i.dd.Custom:return{formatted:e.copyData,rawValue:e.copyData,format:"string"};case i.dd.Image:case i.dd.Bubble:return{formatted:e.data,rawValue:e.data,format:"string-array"};case i.dd.Drilldown:return{formatted:e.data.map((e=>e.text)),rawValue:e.data.map((e=>e.text)),format:"string-array"};case i.dd.Text:return{formatted:null!==(t=e.displayData)&&void 0!==t?t:e.data,rawValue:e.data,format:"string"};case i.dd.Uri:return{formatted:null!==(n=e.displayData)&&void 0!==n?n:e.data,rawValue:e.data,format:"url"};case i.dd.Markdown:case i.dd.RowID:return{formatted:e.data,rawValue:e.data,format:"string"};case i.dd.Number:return{formatted:e.displayData,rawValue:e.data,format:"number"};case i.dd.Loading:return{formatted:"#LOADING",rawValue:"",format:"string"};case i.dd.Protected:return{formatted:"************",rawValue:"",format:"string"};default:(0,a.xb)(e)}}(e)))}));return n}function Ft(e,t){return(t?/[\t\n",]/:/[\t\n"]/).test(e)&&(e='"'.concat(e.replace(/"/g,'""'),'"')),e}function Rt(e){return e.replace(/\t/g," ").replace(/ {2,}/g,(e=>"<span> </span>".repeat(e.length)))}function Mt(e){return'"'+e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")+'"'}function Tt(e,t){const n=Ot(e,t),r=function(e){const t=[];for(const o of e){const e=[];for(const t of o){var n,r;"url"===t.format?e.push(null!==(n=null===(r=t.rawValue)||void 0===r?void 0:r.toString())&&void 0!==n?n:""):"string-array"===t.format?e.push(t.formatted.map((e=>Ft(e,!0))).join(",")):e.push(Ft(t.formatted,!1))}t.push(e.join("\t"))}return t.join("\n")}(n),o=function(e){const t=[];t.push('<style type="text/css">\x3c!--br {mso-data-placement:same-cell;}--\x3e</style>',"<table><tbody>");for(const o of e){t.push("<tr>");for(const e of o){const o='gdg-format="'.concat(e.format,'"');var n,r;"url"===e.format?t.push("<td ".concat(o,'><a href="').concat(e.rawValue,'">').concat(Rt(e.formatted),"</a></td>")):"string-array"===e.format?t.push("<td ".concat(o,"><ol>").concat(e.formatted.map(((t,n)=>"<li gdg-raw-value=".concat(Mt(e.rawValue[n]),">")+Rt(t)+"</li>")).join(""),"</ol></td>")):t.push("<td gdg-raw-value=".concat(Mt(null!==(n=null===(r=e.rawValue)||void 0===r?void 0:r.toString())&&void 0!==n?n:"")," ").concat(o,">").concat(Rt(e.formatted),"</td>"))}t.push("</tr>")}return t.push("</tbody></table>"),t.join("")}(n);return{textPlain:r,textHtml:o}}function Pt(e){const t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");const n=t.querySelector("table");if(null===n)return;const r=[n],o=[];let i;for(;r.length>0;){const e=r.pop();if(void 0===e)break;if(e instanceof HTMLTableElement||"TBODY"===e.nodeName)r.push(...[...e.children].reverse());else if(e instanceof HTMLTableRowElement)void 0!==i&&o.push(i),i=[],r.push(...[...e.children].reverse());else if(e instanceof HTMLTableCellElement){var a;const t=e.cloneNode(!0),n=1===t.children.length&&"P"===t.children[0].nodeName?t.children[0]:null,r=1===(null===n||void 0===n?void 0:n.children.length)&&"FONT"===n.children[0].nodeName,o=t.querySelectorAll("br");for(const e of o)e.replaceWith("\n");const b=t.getAttribute("gdg-raw-value"),w=null!==(a=t.getAttribute("gdg-format"))&&void 0!==a?a:"string";var l,u,s,c;if(null!==t.querySelector("a"))null===(l=i)||void 0===l||l.push({rawValue:null!==(u=null===(s=t.querySelector("a"))||void 0===s?void 0:s.getAttribute("href"))&&void 0!==u?u:"",formatted:null!==(c=t.textContent)&&void 0!==c?c:"",format:w});else if(null!==t.querySelector("ol")){var d;const e=t.querySelectorAll("li");null===(d=i)||void 0===d||d.push({rawValue:[...e].map((e=>{var t;return null!==(t=e.getAttribute("gdg-raw-value"))&&void 0!==t?t:""})),formatted:[...e].map((e=>{var t;return null!==(t=e.textContent)&&void 0!==t?t:""})),format:"string-array"})}else if(null!==b){var f,h;null===(f=i)||void 0===f||f.push({rawValue:(y=b,y.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")),formatted:null!==(h=t.textContent)&&void 0!==h?h:"",format:w})}else{var p,v,g,m;let e=null!==(p=t.textContent)&&void 0!==p?p:"";r&&(e=e.replace(/\n(?!\n)/g,"")),null===(v=i)||void 0===v||v.push({rawValue:null!==(g=e)&&void 0!==g?g:"",formatted:null!==(m=e)&&void 0!==m?m:"",format:w})}}}var y;return void 0!==i&&o.push(i),o}function It(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Lt(e){let t;!function(e){e[e.None=0]="None",e[e.inString=1]="inString",e[e.inStringPostQuote=2]="inStringPostQuote"}(t||(t={}));const n=[];let r=[],o=0,i=t.None;e=e.replace(/\r\n/g,"\n");let a=0;for(const l of e){switch(i){case t.None:"\t"===l||"\n"===l?(r.push(e.slice(o,a)),o=a+1,"\n"===l&&(n.push(r),r=[])):'"'===l&&(i=t.inString);break;case t.inString:'"'===l&&(i=t.inStringPostQuote);break;case t.inStringPostQuote:'"'===l?i=t.inString:"\t"===l||"\n"===l?(r.push(It(e.slice(o,a))),o=a+1,"\n"===l&&(n.push(r),r=[]),i=t.None):i=t.None}a++}return o<e.length&&r.push(It(e.slice(o,e.length))),n.push(r),n.map((e=>e.map((e=>({rawValue:e,formatted:e,format:"string"})))))}function zt(e,t,n){var r;const o=Tt(e,t),i=e=>{var t;null===(t=window.navigator.clipboard)||void 0===t||t.writeText(e)},a=(e,t)=>{try{var r,o;if(void 0===n||null===n.clipboardData)throw new Error("No clipboard data");null===n||void 0===n||null===(r=n.clipboardData)||void 0===r||r.setData("text/plain",e),null===n||void 0===n||null===(o=n.clipboardData)||void 0===o||o.setData("text/html",t)}catch(a){((e,t)=>{var n;return void 0!==(null===(n=window.navigator.clipboard)||void 0===n?void 0:n.write)&&(window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})]),!0)})(e,t)||i(e)}};void 0!==(null===(r=window.navigator.clipboard)||void 0===r?void 0:r.write)||void 0!==(null===n||void 0===n?void 0:n.clipboardData)?a(o.textPlain,o.textHtml):i(o.textPlain),null===n||void 0===n||n.preventDefault()}function Nt(e){return!0!==e}const Bt=["inWidth","inHeight","children"];function Ht(e){return"string"===typeof e?e:"".concat(e,"px")}const jt=(0,ht.I)("div")({name:"Wrapper",class:"gdg-wmyidgi",propsAsIs:!1,vars:{"wmyidgi-0":[e=>e.innerWidth],"wmyidgi-1":[e=>e.innerHeight]}}),Vt=t=>{const{inWidth:n,inHeight:r,children:i}=t,a=(0,$e.A)(t,Bt);return e.createElement(jt,(0,o.A)({innerHeight:Ht(r),innerWidth:Ht(n)},a),i)};const Wt={downFill:!1,rightFill:!1,clear:!0,closeOverlay:!0,acceptOverlayDown:!0,acceptOverlayUp:!0,acceptOverlayLeft:!0,acceptOverlayRight:!0,copy:!0,paste:!0,cut:!0,search:!1,delete:!0,activateCell:!0,scrollToSelectedCell:!0,goToFirstCell:!0,goToFirstColumn:!0,goToFirstRow:!0,goToLastCell:!0,goToLastColumn:!0,goToLastRow:!0,goToNextPage:!0,goToPreviousPage:!0,selectToFirstCell:!0,selectToFirstColumn:!0,selectToFirstRow:!0,selectToLastCell:!0,selectToLastColumn:!0,selectToLastRow:!0,selectAll:!0,selectRow:!0,selectColumn:!0,goUpCell:!0,goRightCell:!0,goDownCell:!0,goLeftCell:!0,goUpCellRetainSelection:!0,goRightCellRetainSelection:!0,goDownCellRetainSelection:!0,goLeftCellRetainSelection:!0,selectGrowUp:!0,selectGrowRight:!0,selectGrowDown:!0,selectGrowLeft:!0};function Ut(e,t){return!0===e?t:!1===e?"":e}function $t(e){const t=ot.value;return{activateCell:Ut(e.activateCell," |Enter|shift+Enter"),clear:Ut(e.clear,"any+Escape"),closeOverlay:Ut(e.closeOverlay,"any+Escape"),acceptOverlayDown:Ut(e.acceptOverlayDown,"Enter"),acceptOverlayUp:Ut(e.acceptOverlayUp,"shift+Enter"),acceptOverlayLeft:Ut(e.acceptOverlayLeft,"shift+Tab"),acceptOverlayRight:Ut(e.acceptOverlayRight,"Tab"),copy:e.copy,cut:e.cut,delete:Ut(e.delete,t?"Backspace|Delete":"Delete"),downFill:Ut(e.downFill,"primary+_68"),scrollToSelectedCell:Ut(e.scrollToSelectedCell,"primary+Enter"),goDownCell:Ut(e.goDownCell,"ArrowDown"),goDownCellRetainSelection:Ut(e.goDownCellRetainSelection,"alt+ArrowDown"),goLeftCell:Ut(e.goLeftCell,"ArrowLeft|shift+Tab"),goLeftCellRetainSelection:Ut(e.goLeftCellRetainSelection,"alt+ArrowLeft"),goRightCell:Ut(e.goRightCell,"ArrowRight|Tab"),goRightCellRetainSelection:Ut(e.goRightCellRetainSelection,"alt+ArrowRight"),goUpCell:Ut(e.goUpCell,"ArrowUp"),goUpCellRetainSelection:Ut(e.goUpCellRetainSelection,"alt+ArrowUp"),goToFirstCell:Ut(e.goToFirstCell,"primary+Home"),goToFirstColumn:Ut(e.goToFirstColumn,"Home|primary+ArrowLeft"),goToFirstRow:Ut(e.goToFirstRow,"primary+ArrowUp"),goToLastCell:Ut(e.goToLastCell,"primary+End"),goToLastColumn:Ut(e.goToLastColumn,"End|primary+ArrowRight"),goToLastRow:Ut(e.goToLastRow,"primary+ArrowDown"),goToNextPage:Ut(e.goToNextPage,"PageDown"),goToPreviousPage:Ut(e.goToPreviousPage,"PageUp"),paste:e.paste,rightFill:Ut(e.rightFill,"primary+_82"),search:Ut(e.search,"primary+f"),selectAll:Ut(e.selectAll,"primary+a"),selectColumn:Ut(e.selectColumn,"ctrl+ "),selectGrowDown:Ut(e.selectGrowDown,"shift+ArrowDown"),selectGrowLeft:Ut(e.selectGrowLeft,"shift+ArrowLeft"),selectGrowRight:Ut(e.selectGrowRight,"shift+ArrowRight"),selectGrowUp:Ut(e.selectGrowUp,"shift+ArrowUp"),selectRow:Ut(e.selectRow,"shift+ "),selectToFirstCell:Ut(e.selectToFirstCell,"primary+shift+Home"),selectToFirstColumn:Ut(e.selectToFirstColumn,"primary+shift+ArrowLeft"),selectToFirstRow:Ut(e.selectToFirstRow,"primary+shift+ArrowUp"),selectToLastCell:Ut(e.selectToLastCell,"primary+shift+End"),selectToLastColumn:Ut(e.selectToLastColumn,"primary+shift+ArrowRight"),selectToLastRow:Ut(e.selectToLastRow,"primary+shift+ArrowDown")}}function Xt(t){const n=function(t){const n=e.useRef(t);return(0,a.bD)(t,n.current)||(n.current=t),n.current}(t);return e.useMemo((()=>{var e,t,r,i,a,l,u,s,c,d,f,h;if(void 0===n)return $t(Wt);const p=(0,o.A)((0,o.A)({},n),{},{goToNextPage:null!==(e=null!==(t=null===n||void 0===n?void 0:n.goToNextPage)&&void 0!==t?t:null===n||void 0===n?void 0:n.pageDown)&&void 0!==e?e:Wt.goToNextPage,goToPreviousPage:null!==(r=null!==(i=null===n||void 0===n?void 0:n.goToPreviousPage)&&void 0!==i?i:null===n||void 0===n?void 0:n.pageUp)&&void 0!==r?r:Wt.goToPreviousPage,goToFirstCell:null!==(a=null!==(l=null===n||void 0===n?void 0:n.goToFirstCell)&&void 0!==l?l:null===n||void 0===n?void 0:n.first)&&void 0!==a?a:Wt.goToFirstCell,goToLastCell:null!==(u=null!==(s=null===n||void 0===n?void 0:n.goToLastCell)&&void 0!==s?s:null===n||void 0===n?void 0:n.last)&&void 0!==u?u:Wt.goToLastCell,selectToFirstCell:null!==(c=null!==(d=null===n||void 0===n?void 0:n.selectToFirstCell)&&void 0!==d?d:null===n||void 0===n?void 0:n.first)&&void 0!==c?c:Wt.selectToFirstCell,selectToLastCell:null!==(f=null!==(h=null===n||void 0===n?void 0:n.selectToLastCell)&&void 0!==h?h:null===n||void 0===n?void 0:n.last)&&void 0!==f?f:Wt.selectToLastCell});return $t((0,o.A)((0,o.A)({},Wt),p))}),[n])}const Yt=e.lazy((async()=>await Promise.resolve().then(n.bind(n,1301))));let Gt=0;function Kt(e,t){return void 0===e||0===t||0===e.columns.length&&void 0===e.current?e:{current:void 0===e.current?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:(0,o.A)((0,o.A)({},e.current.range),{},{x:e.current.range.x+t}),rangeStack:e.current.rangeStack.map((e=>(0,o.A)((0,o.A)({},e),{},{x:e.x+t})))},rows:e.rows,columns:e.columns.offset(t)}}const qt={kind:i.dd.Loading,allowOverlay:!1},Qt={columns:i.I1.empty(),rows:i.I1.empty(),current:void 0},Zt=e.forwardRef(((t,n)=>{var r,d,v,g,m,y,b,w,x,C,k,S,D;const[A,O]=e.useState(Qt),[F,R]=e.useState(),M=e.useRef(null),T=e.useRef(null),[P,N]=e.useState(),B=e.useRef(null),H=e.useRef(),j="undefined"===typeof window?null:window,{imageEditorOverride:W,getRowThemeOverride:U,markdownDivCreateNode:$,width:X,height:Y,columns:G,rows:K,getCellContent:q,onCellClicked:Q,onCellActivated:Z,onFillPattern:J,onFinishedEditing:ee,coercePasteValue:te,drawHeader:ne,drawCell:re,editorBloom:oe,onHeaderClicked:ie,onColumnProposeMove:ae,spanRangeBehavior:le="default",onGroupHeaderClicked:ue,onCellContextMenu:se,className:ce,onHeaderContextMenu:de,getCellsForSelection:fe,onGroupHeaderContextMenu:he,onGroupHeaderRenamed:pe,onCellEdited:ge,onCellsEdited:me,onSearchResultsChanged:ye,searchResults:be,onSearchValueChange:we,searchValue:Ce,onKeyDown:De,onKeyUp:Ee,keybindings:Ae,editOnType:_e=!0,onRowAppended:Oe,onColumnMoved:Fe,validateCell:Re,highlightRegions:Me,rangeSelect:Te="rect",columnSelect:Pe="multi",rowSelect:Ie="multi",rangeSelectionBlending:Le="exclusive",columnSelectionBlending:ze="exclusive",rowSelectionBlending:Ne="exclusive",onDelete:Be,onDragStart:He,onMouseMove:je,onPaste:Ve,copyHeaders:We=!1,freezeColumns:Ue=0,cellActivationBehavior:$e="second-click",rowSelectionMode:Xe="auto",onHeaderMenuClick:Ye,getGroupDetails:Ge,onSearchClose:Ke,onItemHovered:qe,onSelectionCleared:Qe,showSearch:Ze,onVisibleRegionChanged:Je,gridSelection:et,onGridSelectionChange:tt,minColumnWidth:nt=50,maxColumnWidth:rt=500,maxColumnAutoWidth:ut,provideEditor:ct,trailingRowOptions:dt,freezeTrailingRows:ft=0,allowedFillDirections:ht="orthogonal",scrollOffsetX:pt,scrollOffsetY:vt,verticalBorder:gt,onDragOverCell:mt,onDrop:yt,onColumnResize:bt,onColumnResizeEnd:wt,onColumnResizeStart:xt,customRenderers:kt,fillHandle:St,drawFocusRing:_t=!0,experimental:Ot,fixedShadowX:Ft,fixedShadowY:Rt,headerIcons:Mt,imageWindowLoader:Tt,initialSize:It,isDraggable:Bt,onDragLeave:Ht,onRowMoved:jt,overscrollX:Wt,overscrollY:Ut,preventDiagonalScrolling:$t,rightElement:Zt,rightElementProps:Jt,trapFocus:en=!1,smoothScrollX:tn,smoothScrollY:nn,scaleToRem:rn=!1,rowHeight:on=34,headerHeight:an=36,groupHeaderHeight:ln=an,theme:un,isOutsideClick:sn,renderers:cn}=t,dn="string"===typeof t.rowMarkers?void 0:t.rowMarkers,fn=null!==(r=null!==(d=null===dn||void 0===dn?void 0:dn.kind)&&void 0!==d?d:t.rowMarkers)&&void 0!==r?r:"none",hn=null!==(v=null===dn||void 0===dn?void 0:dn.width)&&void 0!==v?v:t.rowMarkerWidth,pn=null!==(g=null!==(m=null===dn||void 0===dn?void 0:dn.startIndex)&&void 0!==m?m:t.rowMarkerStartIndex)&&void 0!==g?g:1,vn=null!==(y=null===dn||void 0===dn?void 0:dn.theme)&&void 0!==y?y:t.rowMarkerTheme,gn=null!==(b=null===dn||void 0===dn?void 0:dn.checkboxStyle)&&void 0!==b?b:"square",mn=Math.max(nt,20),yn=Math.max(rt,mn),bn=Math.max(null!==ut&&void 0!==ut?ut:yn,mn),wn=e.useMemo((()=>"undefined"===typeof window?{fontSize:"16px"}:window.getComputedStyle(document.documentElement)),[]),xn=e.useMemo((()=>Number.parseFloat(wn.fontSize)),[wn]),{rowHeight:Cn,headerHeight:kn,groupHeaderHeight:Sn,theme:Dn,overscrollX:En,overscrollY:An}=function(t){let{rowHeight:n,headerHeight:r,groupHeaderHeight:i,theme:a,overscrollX:l,overscrollY:u,scaleToRem:s,remSize:c}=t;const[d,f,h,p,v,g]=e.useMemo((()=>{var e,t,d;if(!s||16===c)return[n,r,i,a,l,u];const f=c/16,h=n,p=(0,xe.n6)();return["number"===typeof h?h*f:e=>Math.ceil(h(e)*f),Math.ceil(r*f),Math.ceil(i*f),(0,o.A)((0,o.A)({},a),{},{headerIconSize:(null!==(e=null===a||void 0===a?void 0:a.headerIconSize)&&void 0!==e?e:p.headerIconSize)*f,cellHorizontalPadding:(null!==(t=null===a||void 0===a?void 0:a.cellHorizontalPadding)&&void 0!==t?t:p.cellHorizontalPadding)*f,cellVerticalPadding:(null!==(d=null===a||void 0===a?void 0:a.cellVerticalPadding)&&void 0!==d?d:p.cellVerticalPadding)*f}),Math.ceil((null!==l&&void 0!==l?l:0)*f),Math.ceil((null!==u&&void 0!==u?u:0)*f)]}),[i,r,l,u,c,n,s,a]);return{rowHeight:d,headerHeight:f,groupHeaderHeight:h,theme:p,overscrollX:v,overscrollY:g}}({groupHeaderHeight:ln,headerHeight:an,overscrollX:Wt,overscrollY:Ut,remSize:xn,rowHeight:on,scaleToRem:rn,theme:un}),_n=Xt(Ae),On=null!==hn&&void 0!==hn?hn:K>1e4?48:K>1e3?44:K>100?36:32,Fn="none"!==fn,Rn=Fn?1:0,Mn=void 0!==Oe,Tn=!0===(null===dt||void 0===dt?void 0:dt.sticky),[Pn,In]=e.useState(!1),Ln=null!==Ze&&void 0!==Ze?Ze:Pn,zn=e.useCallback((()=>{void 0!==Ke?Ke():In(!1)}),[Ke]),Nn=e.useMemo((()=>void 0===et?void 0:Kt(et,Rn)),[et,Rn]),Bn=null!==Nn&&void 0!==Nn?Nn:A,Hn=e.useRef();void 0===Hn.current&&(Hn.current=new AbortController),e.useEffect((()=>()=>null===Hn||void 0===Hn?void 0:Hn.current.abort()),[]);const[jn,Vn]=function(t,n,r,a,l){const u=e.useCallback((e=>{var r;if(!0===t){const t=[];for(let r=e.y;r<e.y+e.height;r++){const o=[];for(let t=e.x;t<e.x+e.width;t++)t<0||r>=l?o.push({kind:i.dd.Loading,allowOverlay:!1}):o.push(n([t,r]));t.push(o)}return t}return null!==(r=null===t||void 0===t?void 0:t(e,a.signal))&&void 0!==r?r:[]}),[a.signal,n,t,l]),s=void 0!==t?u:void 0,c=e.useCallback((e=>{if(void 0===s)return[];const t=(0,o.A)((0,o.A)({},e),{},{x:e.x-r});if(t.x<0){t.x=0,t.width--;const e=s(t,a.signal);return"function"===typeof e?async()=>(await e()).map((e=>[{kind:i.dd.Loading,allowOverlay:!1},...e])):e.map((e=>[{kind:i.dd.Loading,allowOverlay:!1},...e]))}return s(t,a.signal)}),[a.signal,s,r]);return[void 0!==t?c:void 0,s]}(fe,q,Rn,Hn.current,K),Wn=e.useCallback(((e,t,n)=>{if(void 0===Re)return!0;const r=[e[0]-Rn,e[1]];return null===Re||void 0===Re?void 0:Re(r,t,n)}),[Rn,Re]),Un=e.useRef(et),$n=e.useCallback(((e,t)=>{t&&(e=function(e,t,n,r,o){const i=e;if("allowPartial"===r||void 0===e.current||void 0===t)return e;let a=!1;do{var l,u;if(void 0===(null===(l=e)||void 0===l?void 0:l.current))break;const r=null===(u=e.current)||void 0===u?void 0:u.range,c=[];if(r.width>2){const e=t({x:r.x,y:r.y,width:1,height:r.height},o.signal);if("function"===typeof e)return i;c.push(...e);const n=t({x:r.x+r.width-1,y:r.y,width:1,height:r.height},o.signal);if("function"===typeof n)return i;c.push(...n)}else{const e=t({x:r.x,y:r.y,width:r.width,height:r.height},o.signal);if("function"===typeof e)return i;c.push(...e)}let d=r.x-n,f=r.x+r.width-1-n;for(const e of c)for(const t of e)void 0!==t.span&&(d=Math.min(t.span[0],d),f=Math.max(t.span[1],f));var s;d===r.x-n&&f===r.x+r.width-1-n?a=!0:e={current:{cell:null!==(s=e.current.cell)&&void 0!==s?s:[0,0],range:{x:d+n,y:r.y,width:f-d+1,height:r.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!a);return e}(e,jn,Rn,le,Hn.current)),void 0!==tt?(Un.current=Kt(e,-Rn),tt(Un.current)):O(e)}),[tt,jn,Rn,le]),Xn=p(bt,e.useCallback(((e,t,n,r)=>{null===bt||void 0===bt||bt(G[n-Rn],t,n-Rn,r)}),[bt,Rn,G])),Yn=p(wt,e.useCallback(((e,t,n,r)=>{null===wt||void 0===wt||wt(G[n-Rn],t,n-Rn,r)}),[wt,Rn,G])),Gn=p(xt,e.useCallback(((e,t,n,r)=>{null===xt||void 0===xt||xt(G[n-Rn],t,n-Rn,r)}),[xt,Rn,G])),Kn=p(ne,e.useCallback(((e,t)=>{var n;return null!==(n=null===ne||void 0===ne?void 0:ne((0,o.A)((0,o.A)({},e),{},{columnIndex:e.columnIndex-Rn}),t))&&void 0!==n&&n}),[ne,Rn])),qn=p(re,e.useCallback(((e,t)=>{var n;return null!==(n=null===re||void 0===re?void 0:re((0,o.A)((0,o.A)({},e),{},{col:e.col-Rn}),t))&&void 0!==n&&n}),[re,Rn])),Qn=e.useCallback((e=>{if(void 0!==Be){const t=Be(Kt(e,-Rn));return"boolean"===typeof t?t:Kt(t,Rn)}return!0}),[Be,Rn]),[Zn,Jn,er]=function(t,n,r,a,l,u){return[e.useCallback(((e,s,c,d)=>{var f,h;"cell"!==u&&"multi-cell"!==u||void 0===e||(e=(0,o.A)((0,o.A)({},e),{},{range:{x:e.cell[0],y:e.cell[1],width:1,height:1}}));const p="mixed"===r&&(c||"drag"===d),v="mixed"===a&&p,g="mixed"===l&&p;let m={current:void 0===e?void 0:(0,o.A)((0,o.A)({},e),{},{rangeStack:"drag"===d&&null!==(f=null===(h=t.current)||void 0===h?void 0:h.rangeStack)&&void 0!==f?f:[]}),columns:v?t.columns:i.I1.empty(),rows:g?t.rows:i.I1.empty()};c&&("multi-rect"===u||"multi-cell"===u)&&void 0!==m.current&&void 0!==t.current&&(m=(0,o.A)((0,o.A)({},m),{},{current:(0,o.A)((0,o.A)({},m.current),{},{rangeStack:[...t.current.rangeStack,t.current.range]})})),n(m,s)}),[a,t,r,u,l,n]),e.useCallback(((e,o,u)=>{var s;let c;if(e=null!==(s=e)&&void 0!==s?s:t.rows,void 0!==o&&(e=e.add(o)),"exclusive"===l&&e.length>0)c={current:void 0,columns:i.I1.empty(),rows:e};else{const n=u&&"mixed"===a;c={current:u&&"mixed"===r?t.current:void 0,columns:n?t.columns:i.I1.empty(),rows:e}}n(c,!1)}),[a,t,r,l,n]),e.useCallback(((e,o,u)=>{var s;let c;if(e=null!==(s=e)&&void 0!==s?s:t.columns,void 0!==o&&(e=e.add(o)),"exclusive"===a&&e.length>0)c={current:void 0,rows:i.I1.empty(),columns:e};else{const n=u&&"mixed"===l;c={current:u&&"mixed"===r?t.current:void 0,rows:n?t.rows:i.I1.empty(),columns:e}}n(c,!1)}),[a,t,r,l,n])]}(Bn,$n,Le,ze,Ne,Te),tr=e.useMemo((()=>(0,xe.P6)((0,xe.n6)(),Dn)),[Dn]),[nr,rr]=e.useState([0,0,0]),or=e.useMemo((()=>{if(void 0===cn)return{};const e={};for(const t of cn)e[t.kind]=t;return e}),[cn]),ir=e.useCallback((e=>e.kind!==i.dd.Custom?or[e.kind]:null===kt||void 0===kt?void 0:kt.find((t=>t.isMatch(e)))),[kt,or]);let{sizedColumns:ar,nonGrowWidth:lr}=function(t,n,r,a,l,u,s,c,d){const f=e.useRef(n),h=e.useRef(r),p=e.useRef(s);f.current=n,h.current=r,p.current=s;const[v,g]=e.useMemo((()=>{if("undefined"===typeof window)return[null,null];const e=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",[e,e.getContext("2d",{alpha:!1})]}),[]);e.useLayoutEffect((()=>(v&&document.documentElement.append(v),()=>{null===v||void 0===v||v.remove()})),[v]);const m=e.useRef({}),y=e.useRef(),[b,w]=e.useState();return e.useLayoutEffect((()=>{const e=h.current;if(void 0===e||t.every(i.AA))return;let n=Math.max(1,10-Math.floor(t.length/1e4)),r=0;n<f.current&&n>1&&(n--,r=1);const o={x:0,y:0,width:t.length,height:Math.min(f.current,n)},a={x:0,y:f.current-1,width:t.length,height:1};(async()=>{const n=e(o,d.signal),l=r>0?e(a,d.signal):void 0;let u;u="object"===typeof n?n:await(0,i.Mp)(n),void 0!==l&&(u="object"===typeof l?[...u,...l]:[...u,...await(0,i.Mp)(l)]),y.current=t,w(u)})()}),[d.signal,t]),e.useMemo((()=>{let e=t.every(i.AA)?t:null===g?t.map((e=>(0,i.AA)(e)?e:(0,o.A)((0,o.A)({},e),{},{width:150}))):(g.font=p.current.baseFontFull,t.map(((e,n)=>{if((0,i.AA)(e))return e;if(void 0!==m.current[e.id])return(0,o.A)((0,o.A)({},e),{},{width:m.current[e.id]});if(void 0===b||y.current!==t||void 0===e.id)return(0,o.A)((0,o.A)({},e),{},{width:150});const r=Et(g,s,e,n,b,l,u,!0,c);return m.current[e.id]=r.width,r}))),n=0,r=0;const d=[];for(const[t,o]of e.entries())n+=o.width,void 0!==o.grow&&o.grow>0&&(r+=o.grow,d.push(t));if(n<a&&d.length>0){const t=[...e],i=a-n;let l=i;for(let n=0;n<d.length;n++){var f;const a=d[n],u=(null!==(f=e[a].grow)&&void 0!==f?f:0)/r,s=n===d.length-1?l:Math.min(l,Math.floor(i*u));t[a]=(0,o.A)((0,o.A)({},e[a]),{},{growOffset:s,width:e[a].width+s}),l-=s}e=t}return{sizedColumns:e,nonGrowWidth:n}}),[a,t,g,b,s,l,u,c])}(G,K,Vn,nr[0]-(0===Rn?0:On)-nr[2],mn,bn,tr,ir,Hn.current);"none"!==fn&&(lr+=On);const ur=e.useMemo((()=>ar.some((e=>void 0!==e.group))),[ar]),sr=ur?kn+Sn:kn,cr=Bn.rows.length,dr="none"===fn?void 0:0!==cr&&(cr===K||void 0),fr=e.useMemo((()=>"none"===fn?ar:[{title:"",width:On,icon:void 0,hasMenu:!1,style:"normal",themeOverride:vn,rowMarker:gn,rowMarkerChecked:dr},...ar]),[fn,ar,On,vn,gn,dr]),[hr,pr]=e.useMemo((()=>[void 0!==vt&&"number"===typeof Cn?Math.floor(vt/Cn):0,void 0!==vt&&"number"===typeof Cn?-vt%Cn:0]),[vt,Cn]),vr=e.useRef({height:1,width:1,x:0,y:0}),gr=e.useMemo((()=>{var e,t;return{x:vr.current.x,y:hr,width:null!==(e=vr.current.width)&&void 0!==e?e:1,height:null!==(t=vr.current.height)&&void 0!==t?t:1,ty:pr}}),[pr,hr]),mr=e.useRef(!1),[yr,br,wr]=_(gr);vr.current=yr;const xr=(null!==(w=yr.height)&&void 0!==w?w:1)>1;e.useLayoutEffect((()=>{if(void 0!==vt&&null!==B.current&&xr){if(B.current.scrollTop===vt)return;B.current.scrollTop=vt,B.current.scrollTop!==vt&&wr(),mr.current=!0}}),[vt,xr,wr]);const Cr=(null!==(x=yr.width)&&void 0!==x?x:1)>1;e.useLayoutEffect((()=>{if(void 0!==pt&&null!==B.current&&Cr){if(B.current.scrollLeft===pt)return;B.current.scrollLeft=pt,B.current.scrollLeft!==pt&&wr(),mr.current=!0}}),[pt,Cr,wr]);const kr=yr.x+Rn,Sr=yr.y,Dr=e.useRef(null),Er=e.useCallback((e=>{var t;!0===e?null===(t=Dr.current)||void 0===t||t.focus():window.requestAnimationFrame((()=>{var e;null===(e=Dr.current)||void 0===e||e.focus()}))}),[]),Ar=Mn?K+1:K,_r=e.useCallback((e=>{const t=0===Rn?e:e.map((e=>(0,o.A)((0,o.A)({},e),{},{location:[e.location[0]-Rn,e.location[1]]}))),n=null===me||void 0===me?void 0:me(t);if(!0!==n)for(const r of t)null===ge||void 0===ge||ge(r.location,r.value);return n}),[ge,me,Rn]),[Or,Fr]=e.useState(),Rr=void 0!==Bn.current&&Bn.current.range.width*Bn.current.range.height>1?Bn.current.range:void 0,Mr=_t?null===(C=Bn.current)||void 0===C?void 0:C.cell:void 0,Tr=null===Mr||void 0===Mr?void 0:Mr[0],Pr=null===Mr||void 0===Mr?void 0:Mr[1],Ir=e.useMemo((()=>{var e,t;if((void 0===Me||0===Me.length)&&void 0===(null!==(e=null!==(t=null!==Rr&&void 0!==Rr?Rr:Tr)&&void 0!==t?t:Pr)&&void 0!==e?e:Or))return;const n=[];if(void 0!==Me)for(const r of Me){const e=fr.length-r.range.x-Rn;e>0&&n.push({color:r.color,range:(0,o.A)((0,o.A)({},r.range),{},{x:r.range.x+Rn,width:Math.min(e,r.range.width)}),style:r.style})}return void 0!==Or&&n.push({color:(0,ve.fu)(tr.accentColor,0),range:Or,style:"dashed"}),void 0!==Rr&&n.push({color:(0,ve.fu)(tr.accentColor,.5),range:Rr,style:"solid-outline"}),void 0!==Tr&&void 0!==Pr&&n.push({color:tr.accentColor,range:{x:Tr,y:Pr,width:1,height:1},style:"solid-outline"}),n.length>0?n:void 0}),[Or,Rr,Tr,Pr,Me,fr.length,tr.accentColor,Rn]),Lr=e.useRef(fr);Lr.current=fr;const zr=e.useCallback((function(e){let[t,n]=e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=Mn&&n===Ar-1;if(0===t&&Fn)return a?qt:{kind:i.Ld.Marker,allowOverlay:!1,checkboxStyle:gn,checked:!0===(null===Bn||void 0===Bn?void 0:Bn.rows.hasIndex(n)),markerKind:"clickable-number"===fn?"number":fn,row:pn+n,drawHandle:void 0!==jt,cursor:"clickable-number"===fn?"pointer":void 0};if(a){var l,u;const e=t===Rn&&null!==(l=null===dt||void 0===dt?void 0:dt.hint)&&void 0!==l?l:"",n=Lr.current[t];if(!0===(null===n||void 0===n||null===(u=n.trailingRowOptions)||void 0===u?void 0:u.disabled))return qt;{var s,c,d,f;const t=null!==(s=null===n||void 0===n||null===(c=n.trailingRowOptions)||void 0===c?void 0:c.hint)&&void 0!==s?s:e,r=null!==(d=null===n||void 0===n||null===(f=n.trailingRowOptions)||void 0===f?void 0:f.addIcon)&&void 0!==d?d:null===dt||void 0===dt?void 0:dt.addIcon;return{kind:i.Ld.NewRow,hint:t,allowOverlay:!1,icon:r}}}{const e=t-Rn;if(r||!0===(null===Ot||void 0===Ot?void 0:Ot.strict)){var h,p,v;const t=vr.current,r=t.x>e||e>t.x+t.width||t.y>n||n>t.y+t.height||n>=$r.current,o=e===(null===(h=t.extras)||void 0===h||null===(h=h.selected)||void 0===h?void 0:h[0])&&n===(null===(p=t.extras)||void 0===p?void 0:p.selected[1]);let i=!1;if(void 0!==(null===(v=t.extras)||void 0===v?void 0:v.freezeRegions))for(const a of t.extras.freezeRegions)if(ke(a,e,n)){i=!0;break}if(r&&!o&&!i)return qt}let i=q([e,n]);return 0!==Rn&&void 0!==i.span&&(i=(0,o.A)((0,o.A)({},i),{},{span:[i.span[0]+Rn,i.span[1]+Rn]})),i}}),[Mn,Ar,Fn,gn,null===Bn||void 0===Bn?void 0:Bn.rows,fn,pn,jt,Rn,null===dt||void 0===dt?void 0:dt.hint,null===dt||void 0===dt?void 0:dt.addIcon,null===Ot||void 0===Ot?void 0:Ot.strict,q]),Nr=e.useCallback((e=>{var t;let n=null!==(t=null===Ge||void 0===Ge?void 0:Ge(e))&&void 0!==t?t:{name:e};var r;void 0!==pe&&""!==e&&(n={icon:n.icon,name:n.name,overrideTheme:n.overrideTheme,actions:[...null!==(r=n.actions)&&void 0!==r?r:[],{title:"Rename",icon:"renameIcon",onClick:e=>oo({group:n.name,bounds:e.bounds})}]});return n}),[Ge,pe]),Br=e.useCallback((e=>{var t;const[n,r]=e.cell,i=fr[n],a=void 0!==(null===i||void 0===i?void 0:i.group)?null===(t=Nr(i.group))||void 0===t?void 0:t.overrideTheme:void 0,l=null===i||void 0===i?void 0:i.themeOverride,u=null===U||void 0===U?void 0:U(r);R((0,o.A)((0,o.A)({},e),{},{theme:(0,xe.P6)(tr,a,l,u,e.content.themeOverride)}))}),[U,fr,Nr,tr]),Hr=e.useCallback(((e,t,n)=>{if(void 0===Bn.current)return;const[r,l]=Bn.current.cell,u=zr([r,l]);if(u.kind!==i.dd.Boolean&&u.allowOverlay){let t=u;if(void 0!==n)switch(t.kind){case i.dd.Number:{const e=(0,a.no)((()=>"-"===n?-0:Number.parseFloat(n)),0);t=(0,o.A)((0,o.A)({},t),{},{data:Number.isNaN(e)?0:e});break}case i.dd.Text:case i.dd.Markdown:case i.dd.Uri:t=(0,o.A)((0,o.A)({},t),{},{data:n})}Br({target:e,content:t,initialValue:n,cell:[r,l],highlight:void 0===n,forceEditMode:void 0!==n})}else if(u.kind===i.dd.Boolean&&t&&!0!==u.readonly){var s;_r([{location:Bn.current.cell,value:(0,o.A)((0,o.A)({},u),{},{data:Nt(u.data)})}]),null===(s=Dr.current)||void 0===s||s.damage([{cell:Bn.current.cell}])}}),[zr,Bn,_r,Br]),jr=e.useCallback(((e,t)=>{var n;const r=null===(n=Dr.current)||void 0===n?void 0:n.getBounds(e,t);if(void 0===r||null===B.current)return;const o=zr([e,t]);o.allowOverlay&&Br({target:r,content:o,initialValue:void 0,highlight:!0,cell:[e,t],forceEditMode:!0})}),[zr,Br]),Vr=e.useCallback((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"both",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;if(null!==B.current){const u=Dr.current,s=T.current,c="number"!==typeof e?"cell"===e.unit?e.amount:void 0:e,d="number"!==typeof t?"cell"===t.unit?t.amount:void 0:t,f="number"!==typeof e&&"px"===e.unit?e.amount:void 0,h="number"!==typeof t&&"px"===t.unit?t.amount:void 0;if(null!==u&&null!==s){let p={x:0,y:0,width:0,height:0},v=0,g=0;var l;if(void 0!==c||void 0!==d)if(p=null!==(l=u.getBounds((null!==c&&void 0!==c?c:0)+Rn,null!==d&&void 0!==d?d:0))&&void 0!==l?l:p,0===p.width||0===p.height)return;const m=s.getBoundingClientRect(),y=m.width/s.offsetWidth;if(void 0!==f&&(p=(0,o.A)((0,o.A)({},p),{},{x:f-m.left-B.current.scrollLeft,width:1})),void 0!==h&&(p=(0,o.A)((0,o.A)({},p),{},{y:h+m.top-B.current.scrollTop,height:1})),void 0!==p){const o={x:p.x-r,y:p.y-i,width:p.width+2*r,height:p.height+2*i};let l=0;for(let e=0;e<Ue;e++)l+=ar[e].width;let u=0;const s=ft+(Tn?1:0);s>0&&(u=V(Ar,s,Cn));let c=l*y+m.left+Rn*On*y,d=m.right,f=m.top+sr*y,h=m.bottom-u*y;const b=p.width+2*r;switch(null===a||void 0===a?void 0:a.hAlign){case"start":d=c+b;break;case"end":c=d-b;break;case"center":c=Math.floor((c+d)/2)-b/2,d=c+b}const w=p.height+2*i;switch(null===a||void 0===a?void 0:a.vAlign){case"start":h=f+w;break;case"end":f=h-w;break;case"center":f=Math.floor((f+h)/2)-w/2,h=f+w}c>o.x?v=o.x-c:d<o.x+o.width&&(v=o.x+o.width-d),f>o.y?g=o.y-f:h<o.y+o.height&&(g=o.y+o.height-h),"vertical"===n||"number"===typeof e&&e<Ue?v=0:("horizontal"===n||"number"===typeof t&&t>=Ar-s)&&(g=0),0===v&&0===g||(1!==y&&(v/=y,g/=y),B.current.scrollTo(v+B.current.scrollLeft,g+B.current.scrollTop))}}}}),[Rn,ft,On,sr,Ue,ar,Ar,Tn,Cn]),Wr=e.useRef(jr),Ur=e.useRef(q),$r=e.useRef(K);Wr.current=jr,Ur.current=q,$r.current=K;const Xr=e.useCallback((async function(e){var t;let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=fr[e];if(!0===(null===r||void 0===r||null===(t=r.trailingRowOptions)||void 0===t?void 0:t.disabled))return;const o=null===Oe||void 0===Oe?void 0:Oe();let a,l=!0;void 0!==o&&(a=await o,"top"===a&&(l=!1),"number"===typeof a&&(l=!1));let u=0;const s=()=>{if($r.current<=K)return u<500&&window.setTimeout(s,u),void(u=50+2*u);const t="number"===typeof a?a:l?K:0;Ho.current(e-Rn,t),Zn({cell:[e,t],range:{x:e,y:t,width:1,height:1}},!1,!1,"edit");const r=Ur.current([e-Rn,t]);r.allowOverlay&&(0,i.uQ)(r)&&!0!==r.readonly&&n&&window.setTimeout((()=>{Wr.current(e,t)}),0)};s()}),[fr,Oe,Rn,K,Zn]),Yr=e.useCallback((e=>{var t,n;const r=null!==(t=null===(n=ar[e])||void 0===n||null===(n=n.trailingRowOptions)||void 0===n?void 0:n.targetColumn)&&void 0!==t?t:null===dt||void 0===dt?void 0:dt.targetColumn;if("number"===typeof r){return r+(Fn?1:0)}if("object"===typeof r){const e=G.indexOf(r);if(e>=0){return e+(Fn?1:0)}}}),[ar,G,Fn,null===dt||void 0===dt?void 0:dt.targetColumn]),Gr=e.useRef(),Kr=e.useRef(),qr=e.useCallback(((e,t)=>{var n;const[r,o]=t;return(0,xe.P6)(tr,null===(n=fr[r])||void 0===n?void 0:n.themeOverride,null===U||void 0===U?void 0:U(o),e.themeOverride)}),[U,fr,tr]),Qr=e.useCallback((e=>{var t,n;const r=ot.value?e.metaKey:e.ctrlKey,l=r&&"multi"===Ie,u=r&&"multi"===Pe,[s,c]=e.location,d=Bn.columns,f=Bn.rows,[h,p]=null!==(t=null===(n=Bn.current)||void 0===n?void 0:n.cell)&&void 0!==t?t:[];if("cell"===e.kind){if(Kr.current=void 0,Jr.current=[s,c],0===s&&Fn){if(!0===Mn&&c===K||"number"===fn||"none"===Ie)return;const t=zr(e.location);if(t.kind!==i.Ld.Marker)return;if(void 0!==jt){var v;const n=ir(t);(0,a.vA)((null===n||void 0===n?void 0:n.kind)===i.Ld.Marker);const r=null===n||void 0===n||null===(v=n.onClick)||void 0===v?void 0:v.call(n,(0,o.A)((0,o.A)({},e),{},{cell:t,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,theme:qr(t,e.location),preventDefault:()=>{}}));if(void 0===r||r.checked===t.checked)return}R(void 0),Er();const n=f.hasIndex(c),u=Gr.current;if("multi"===Ie&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==u&&f.hasIndex(u)){const e=[Math.min(u,c),Math.max(u,c)+1];l||"multi"===Xe?Jn(void 0,e,!0):Jn(i.I1.fromSingleSelection(e),void 0,l)}else l||e.isTouch||"multi"===Xe?n?Jn(f.remove(c),void 0,!0):(Jn(void 0,c,!0),Gr.current=c):n&&1===f.length?Jn(i.I1.empty(),void 0,r):(Jn(i.I1.fromSingleSelection(c),void 0,r),Gr.current=c)}else if(s>=Rn&&Mn&&c===K){const e=Yr(s);Xr(null!==e&&void 0!==e?e:s)}else if(h!==s||p!==c){var g;const t=zr(e.location),n=ir(t);if(void 0!==(null===n||void 0===n?void 0:n.onSelect)){let r=!1;if(n.onSelect((0,o.A)((0,o.A)({},e),{},{cell:t,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,preventDefault:()=>r=!0,theme:qr(t,e.location)})),r)return}const i=Tn&&c===K,a=Tn&&void 0!==Bn&&(null===(g=Bn.current)||void 0===g?void 0:g.cell[1])===K;if(!e.shiftKey&&!0!==e.isLongTouch||void 0===h||void 0===p||void 0===Bn.current||a)Zn({cell:[s,c],range:{x:s,y:c,width:1,height:1}},!0,r,"click"),Gr.current=void 0,R(void 0),Er();else{if(i)return;const e=Math.min(s,h),t=Math.max(s,h),n=Math.min(c,p),a=Math.max(c,p);Zn((0,o.A)((0,o.A)({},Bn.current),{},{range:{x:e,y:n,width:t-e+1,height:a-n+1}}),!0,r,"click"),Gr.current=void 0,Er()}}}else if("header"===e.kind)if(Jr.current=[s,c],R(void 0),Fn&&0===s)Gr.current=void 0,Kr.current=void 0,"multi"===Ie&&(f.length!==K?Jn(i.I1.fromSingleSelection([0,K]),void 0,r):Jn(i.I1.empty(),void 0,r),Er());else{const t=Kr.current;if("multi"===Pe&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==t&&d.hasIndex(t)){const e=[Math.min(t,s),Math.max(t,s)+1];u?er(void 0,e,r):er(i.I1.fromSingleSelection(e),void 0,r)}else u?(d.hasIndex(s)?er(d.remove(s),void 0,r):er(void 0,s,r),Kr.current=s):"none"!==Pe&&(er(i.I1.fromSingleSelection(s),void 0,r),Kr.current=s);Gr.current=void 0,Er()}else e.kind===at?Jr.current=[s,c]:e.kind!==lt||e.isMaybeScrollbar||($n(Qt,!1),R(void 0),Er(),null===Qe||void 0===Qe||Qe(),Gr.current=void 0,Kr.current=void 0)}),[Xr,Pe,Er,ir,Yr,zr,Bn,Fn,Tn,Qe,jt,Rn,fn,Ie,Xe,K,Zn,$n,er,Jn,Mn,qr]),Zr=e.useRef(!1),Jr=e.useRef(),eo=e.useRef(yr),to=e.useRef(),no=e.useCallback((e=>{if(ao.current=!1,eo.current=vr.current,0!==e.button&&1!==e.button)return void(to.current=void 0);const t=performance.now();to.current={button:e.button,time:t,location:e.location},"header"===(null===e||void 0===e?void 0:e.kind)&&(Zr.current=!0);const n="cell"===e.kind&&e.isFillHandle;!n&&"cell"!==e.kind&&e.isEdge||(N({previousSelection:Bn,fillHandle:n}),Jr.current=void 0,e.isTouch||0!==e.button||n?e.isTouch||1!==e.button||(Jr.current=e.location):Qr(e))}),[Bn,Qr]),[ro,oo]=e.useState(),io=e.useCallback((e=>{if(e.kind!==at||"multi"!==Pe)return;const t=ot.value?e.metaKey:e.ctrlKey,[n]=e.location,r=Bn.columns;if(n<Rn)return;const o=fr[n];let a=n,l=n;for(let i=n-1;i>=Rn&&I(o.group,fr[i].group);i--)a--;for(let i=n+1;i<fr.length&&I(o.group,fr[i].group);i++)l++;if(Er(),t)if(r.hasAll([a,l+1])){let e=r;for(let t=a;t<=l;t++)e=e.remove(t);er(e,void 0,t)}else er(void 0,[a,l+1],t);else er(i.I1.fromSingleSelection([a,l+1]),void 0,t)}),[Pe,Er,Bn.columns,fr,Rn,er]),ao=e.useRef(!1),lo=e.useCallback((async e=>{if(void 0!==jn&&void 0!==Xn){const t=vr.current.y,n=vr.current.height;let r=jn({x:e,y:t,width:1,height:Math.min(n,K-t)},Hn.current.signal);"object"!==typeof r&&(r=await r());const o=ar[e-Rn],i=document.createElement("canvas").getContext("2d",{alpha:!1});if(null!==i){i.font=tr.baseFontFull;const t=Et(i,tr,o,0,r,mn,yn,!1,ir);null===Xn||void 0===Xn||Xn(o,t.width,e,t.width)}}}),[ar,jn,yn,tr,mn,Xn,Rn,K,ir]),[uo,so]=e.useState(),co=e.useCallback((async(e,t)=>{var n,r;const a=null===(n=e.current)||void 0===n?void 0:n.range;if(void 0===a||void 0===jn||void 0===t.current)return;const l=t.current.range;if(void 0!==J){let e=!1;if(J({fillDestination:(0,o.A)((0,o.A)({},l),{},{x:l.x-Rn}),patternSource:(0,o.A)((0,o.A)({},a),{},{x:a.x-Rn}),preventDefault:()=>e=!0}),e)return}let u=jn(a,Hn.current.signal);"object"!==typeof u&&(u=await u());const s=u,c=[];for(let d=0;d<l.width;d++)for(let e=0;e<l.height;e++){const t=[l.x+d,l.y+e];if(L(t,a))continue;const n=s[e%a.height][d%a.width];!(0,i.pg)(n)&&(0,i.uQ)(n)&&c.push({location:t,value:(0,o.A)({},n)})}_r(c),null===(r=Dr.current)||void 0===r||r.damage(c.map((e=>({cell:e.location}))))}),[jn,_r,J,Rn]),fo=e.useCallback((()=>{if(void 0===Bn.current||Bn.current.range.width<=1)return;const e=(0,o.A)((0,o.A)({},Bn),{},{current:(0,o.A)((0,o.A)({},Bn.current),{},{range:(0,o.A)((0,o.A)({},Bn.current.range),{},{width:1})})});co(e,Bn)}),[co,Bn]),ho=e.useCallback((()=>{if(void 0===Bn.current||Bn.current.range.height<=1)return;const e=(0,o.A)((0,o.A)({},Bn),{},{current:(0,o.A)((0,o.A)({},Bn.current),{},{range:(0,o.A)((0,o.A)({},Bn.current.range),{},{height:1})})});co(e,Bn)}),[co,Bn]),po=e.useCallback(((e,t)=>{var n,r;const a=P;if(N(void 0),Fr(void 0),so(void 0),Zr.current=!1,t)return;if(!0===(null===a||void 0===a?void 0:a.fillHandle)&&void 0!==Bn.current&&void 0!==(null===(n=a.previousSelection)||void 0===n?void 0:n.current)){if(void 0===Or)return;const e=(0,o.A)((0,o.A)({},Bn),{},{current:(0,o.A)((0,o.A)({},Bn.current),{},{range:Se(a.previousSelection.current.range,Or)})});return co(a.previousSelection,e),void $n(e,!0)}const[l,u]=e.location,[s,c]=null!==(r=Jr.current)&&void 0!==r?r:[],d=()=>{ao.current=!0},f=t=>{const n=t.isTouch||s===l&&c===u;if(n&&(null===Q||void 0===Q||Q([l-Rn,u],(0,o.A)((0,o.A)({},t),{},{preventDefault:d}))),1===t.button)return!ao.current;if(!ao.current){var r;const s=zr(e.location),c=ir(s);if(void 0!==c&&void 0!==c.onClick&&n){const n=c.onClick((0,o.A)((0,o.A)({},t),{},{cell:s,posX:t.localEventX,posY:t.localEventY,bounds:t.bounds,theme:qr(s,e.location),preventDefault:d}));var f;if(void 0!==n&&!(0,i.pg)(n)&&(0,i.Bc)(n))_r([{location:t.location,value:n}]),null===(f=Dr.current)||void 0===f||f.damage([{cell:t.location}])}if(ao.current||void 0===Bn.current)return!1;let p=!1;switch(null!==(r=s.activationBehaviorOverride)&&void 0!==r?r:$e){case"double-click":case"second-click":{var h;if(void 0===(null===a||void 0===a||null===(h=a.previousSelection)||void 0===h||null===(h=h.current)||void 0===h?void 0:h.cell))break;const[e,n]=Bn.current.cell,[r,o]=a.previousSelection.current.cell;p=l===e&&l===r&&u===n&&u===o&&(!0===t.isDoubleClick||"second-click"===$e);break}case"single-click":p=!0}if(p)return null===Z||void 0===Z||Z([l-Rn,u]),Hr(t.bounds,!1),!0}return!1},h=e.location[0]-Rn;if(e.isTouch){const t=vr.current,n=eo.current;if(t.x!==n.x||t.y!==n.y)return;if(!0===e.isLongTouch){var p;if("cell"===e.kind&&z(null===(p=Bn.current)||void 0===p?void 0:p.cell,e.location))return void(null===se||void 0===se||se([h,e.location[1]],(0,o.A)((0,o.A)({},e),{},{preventDefault:d})));if("header"===e.kind&&Bn.columns.hasIndex(l))return void(null===de||void 0===de||de(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d})));if(e.kind===at){if(h<0)return;return void(null===he||void 0===he||he(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d})))}}"cell"===e.kind?f(e)||Qr(e):e.kind===at?null===ue||void 0===ue||ue(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d})):(e.kind===it&&(null===ie||void 0===ie||ie(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d}))),Qr(e))}else{if("header"===e.kind){if(h<0)return;e.isEdge?!0===e.isDoubleClick&&lo(l):0===e.button&&l===s&&u===c&&(null===ie||void 0===ie||ie(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d})))}if(e.kind===at){if(h<0)return;0===e.button&&l===s&&u===c&&(null===ue||void 0===ue||ue(h,(0,o.A)((0,o.A)({},e),{},{preventDefault:d})),ao.current||io(e))}"cell"!==e.kind||0!==e.button&&1!==e.button||f(e),Jr.current=void 0}}),[P,Bn,Rn,Or,co,$n,Q,zr,ir,$e,qr,_r,Z,Hr,se,de,he,Qr,ue,ie,lo,io]),vo=e.useCallback((e=>{const t=(0,o.A)((0,o.A)({},e),{},{location:[e.location[0]-Rn,e.location[1]]});null===je||void 0===je||je(t),void 0!==P&&0===e.buttons&&(N(void 0),Fr(void 0),so(void 0),Zr.current=!1),so((t=>{var n,r;return Zr.current?[e.scrollEdge[0],0]:e.scrollEdge[0]===(null===t||void 0===t?void 0:t[0])&&e.scrollEdge[1]===t[1]?t:void 0===P||(null!==(n=null===(r=to.current)||void 0===r?void 0:r.location[0])&&void 0!==n?n:0)<Rn?void 0:e.scrollEdge}))}),[P,je,Rn]),go=e.useCallback(((e,t)=>{null===Ye||void 0===Ye||Ye(e-Rn,t)}),[Ye,Rn]),mo=null===Bn||void 0===Bn||null===(k=Bn.current)||void 0===k?void 0:k.cell,yo=e.useCallback(((e,t,n,r,o,i)=>{mr.current=!1;let a=mo;void 0!==a&&(a=[a[0]-Rn,a[1]]);const l=0===Ue?void 0:{x:0,y:e.y,width:Ue,height:e.height},u=[];void 0!==l&&u.push(l),ft>0&&(u.push({x:e.x-Rn,y:K-ft,width:e.width,height:ft}),Ue>0&&u.push({x:0,y:K-ft,width:Ue,height:ft}));const s={x:e.x-Rn,y:e.y,width:e.width,height:Mn&&e.y+e.height>=K?e.height-1:e.height,tx:o,ty:i,extras:{selected:a,freezeRegion:l,freezeRegions:u}};vr.current=s,br(s),rr([t,n,r]),null===Je||void 0===Je||Je(s,s.tx,s.ty,s.extras)}),[mo,Rn,Mn,K,Ue,ft,br,Je]),bo=p(Fe,e.useCallback(((e,t)=>{null===Fe||void 0===Fe||Fe(e-Rn,t-Rn),"none"!==Pe&&er(i.I1.fromSingleSelection(t),void 0,!0)}),[Pe,Fe,Rn,er])),wo=e.useRef(!1),xo=e.useCallback((e=>{0===e.location[0]&&Rn>0?e.preventDefault():(null===He||void 0===He||He((0,o.A)((0,o.A)({},e),{},{location:[e.location[0]-Rn,e.location[1]]})),e.defaultPrevented()||(wo.current=!0),N(void 0))}),[He,Rn]),Co=e.useCallback((()=>{wo.current=!1}),[]),ko=e.useRef(),So=e.useCallback((e=>{var t,n;if(!st(e,ko.current)&&(ko.current=e,!(void 0!==(null===to||void 0===to||null===(t=to.current)||void 0===t?void 0:t.button)&&to.current.button>=1))){if(0!==e.buttons&&void 0!==P&&0===(null===(n=to.current)||void 0===n?void 0:n.location[0])&&0===e.location[0]&&1===Rn&&"multi"===Ie&&P.previousSelection&&!P.previousSelection.rows.hasIndex(to.current.location[1])&&Bn.rows.hasIndex(to.current.location[1])){const t=Math.min(to.current.location[1],e.location[1]),n=Math.max(to.current.location[1],e.location[1])+1;Jn(i.I1.fromSingleSelection([t,n]),void 0,!1)}if(0!==e.buttons&&void 0!==P&&void 0!==Bn.current&&!wo.current&&!Zr.current&&("rect"===Te||"multi-rect"===Te)){var r;const[t,n]=Bn.current.cell;let[i,a]=e.location;if(a<0&&(a=vr.current.y),!0===P.fillHandle&&void 0!==(null===(r=P.previousSelection)||void 0===r?void 0:r.current)){const e=P.previousSelection.current.range;a=Math.min(a,Mn?K-1:K);const t=function(e,t,n,r){if("any"===r)return Se(e,{x:t,y:n,width:1,height:1});if("vertical"===r&&(t=e.x),"horizontal"===r&&(n=e.y),L([t,n],e))return;const o=t-e.x,i=e.x+e.width-t,a=n-e.y+1,l=e.y+e.height-n,u=Math.min("vertical"===r?Number.MAX_SAFE_INTEGER:o,"vertical"===r?Number.MAX_SAFE_INTEGER:i,"horizontal"===r?Number.MAX_SAFE_INTEGER:a,"horizontal"===r?Number.MAX_SAFE_INTEGER:l);return u===l?{x:e.x,y:e.y+e.height,width:e.width,height:n-e.y-e.height+1}:u===a?{x:e.x,y:n,width:e.width,height:e.y-n}:u===i?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}(e,i,a,ht);Fr(t)}else{if(Mn&&n===K)return;if(Mn&&a===K){if(e.kind!==lt)return;a--}i=Math.max(i,Rn);const r=i-t,l=a-n,u={x:r>=0?t:i,y:l>=0?n:a,width:Math.abs(r)+1,height:Math.abs(l)+1};Zn((0,o.A)((0,o.A)({},Bn.current),{},{range:u}),!0,!1,"drag")}}null===qe||void 0===qe||qe((0,o.A)((0,o.A)({},e),{},{location:[e.location[0]-Rn,e.location[1]]}))}}),[ht,P,Rn,Ie,Bn,Te,qe,Jn,Mn,K,Zn]),Do=e.useCallback((()=>{const e=ko.current;if(void 0===e)return;const[t,n]=e.scrollEdge;let[r,i]=e.location;const a=vr.current;var u,s;-1===t?r=null!==(u=null===(s=a.extras)||void 0===s||null===(s=s.freezeRegion)||void 0===s?void 0:s.x)&&void 0!==u?u:a.x:1===t&&(r=a.x+a.width);-1===n?i=Math.max(0,a.y):1===n&&(i=Math.min(K-1,a.y+a.height)),r=l(r,0,fr.length-1),i=l(i,0,K-1),So((0,o.A)((0,o.A)({},e),{},{location:[r,i]}))}),[fr.length,So,K]);!function(t,n,r){const o=e.useRef(0),[i,a]=null!==t&&void 0!==t?t:[0,0];e.useEffect((()=>{if(0===i&&0===a)return void(o.current=0);let e=!1,t=0;const l=u=>{if(!e){if(0===t)t=u;else{var s;const e=u-t;o.current=Math.min(1,o.current+e/1300);const l=o.current**1.618*e*2;null===(s=n.current)||void 0===s||s.scrollBy(i*l,a*l),t=u,null===r||void 0===r||r()}window.requestAnimationFrame(l)}};return window.requestAnimationFrame(l),()=>{e=!0}}),[n,i,a,r])}(uo,B,Do);const Eo=e.useCallback((e=>{if(void 0===Bn.current)return;const[t,n]=e,[r,o]=Bn.current.cell,i=Bn.current.range;let l=i.x,d=i.x+i.width,f=i.y,h=i.y+i.height;if(0!==n)switch(n){case 2:h=K,f=o,Vr(0,h,"vertical");break;case-2:f=0,h=o+1,Vr(0,f,"vertical");break;case 1:f<o?(f++,Vr(0,f,"vertical")):(h=Math.min(K,h+1),Vr(0,h,"vertical"));break;case-1:h>o+1?(h--,Vr(0,h,"vertical")):(f=Math.max(0,f-1),Vr(0,f,"vertical"));break;default:(0,a.xb)(n)}if(0!==t)if(2===t)d=fr.length,l=r,Vr(d-1-Rn,0,"horizontal");else if(-2===t)l=Rn,d=r+1,Vr(l-Rn,0,"horizontal");else{let e=[];if(void 0!==jn){const t=jn({x:l,y:f,width:d-l-Rn,height:h-f},Hn.current.signal);"object"===typeof t&&(e=function(e){return u(s(s(e).filter((e=>void 0!==e.span)).map((e=>{var t,n,r,o;return c((null!==(t=null===(n=e.span)||void 0===n?void 0:n[0])&&void 0!==t?t:0)+1,(null!==(r=null===(o=e.span)||void 0===o?void 0:o[1])&&void 0!==r?r:0)+1)}))))}(t))}if(1===t){let t=!1;if(l<r){if(e.length>0){const n=c(l+1,r+1).find((t=>!e.includes(t-Rn)));void 0!==n&&(l=n,t=!0)}else l++,t=!0;t&&Vr(l,0,"horizontal")}t||(d=Math.min(fr.length,d+1),Vr(d-1-Rn,0,"horizontal"))}else if(-1===t){let t=!1;if(d>r+1){if(e.length>0){const n=c(d-1,r,-1).find((t=>!e.includes(t-Rn)));void 0!==n&&(d=n,t=!0)}else d--,t=!0;t&&Vr(d-Rn,0,"horizontal")}t||(l=Math.max(Rn,l-1),Vr(l-Rn,0,"horizontal"))}else(0,a.xb)(t)}Zn({cell:Bn.current.cell,range:{x:l,y:f,width:d-l,height:h-f}},!0,!1,"keyboard-select")}),[jn,Bn,fr.length,Rn,K,Vr,Zn]),Ao=e.useCallback(((e,t,n,r)=>{const i=Ar-(n?0:1);if(e=l(e,Rn,ar.length-1+Rn),t=l(t,0,i),e===(null===mo||void 0===mo?void 0:mo[0])&&t===(null===mo||void 0===mo?void 0:mo[1]))return!1;if(r&&void 0!==Bn.current){const n=[...Bn.current.rangeStack];(Bn.current.range.width>1||Bn.current.range.height>1)&&n.push(Bn.current.range),$n((0,o.A)((0,o.A)({},Bn),{},{current:{cell:[e,t],range:{x:e,y:t,width:1,height:1},rangeStack:n}}),!0)}else Zn({cell:[e,t],range:{x:e,y:t,width:1,height:1}},!0,!1,"keyboard-nav");return void 0!==H.current&&H.current[0]===e&&H.current[1]===t&&(H.current=void 0),Vr(e-Rn,t),!0}),[Ar,Rn,ar.length,mo,Bn,Vr,$n,Zn]),_o=e.useCallback(((e,t)=>{void 0!==(null===F||void 0===F?void 0:F.cell)&&void 0!==e&&(0,i.Bc)(e)&&(_r([{location:F.cell,value:e}]),window.requestAnimationFrame((()=>{var e;null===(e=Dr.current)||void 0===e||e.damage([{cell:F.cell}])}))),Er(!0),R(void 0);const[n,r]=t;if(void 0!==Bn.current&&(0!==n||0!==r)){const t=Bn.current.cell[1]===Ar-1&&void 0!==e;Ao(l(Bn.current.cell[0]+n,0,fr.length-1),l(Bn.current.cell[1]+r,0,Ar-1),t,!1)}null===ee||void 0===ee||ee(e,t)}),[null===F||void 0===F?void 0:F.cell,Er,Bn,ee,_r,Ar,Ao,fr.length]),Oo=e.useMemo((()=>"gdg-overlay-".concat(Gt++)),[]),Fo=e.useCallback((e=>{var t;Er();const n=[];for(let l=e.x;l<e.x+e.width;l++)for(let t=e.y;t<e.y+e.height;t++){const e=q([l-Rn,t]);if(!e.allowOverlay&&e.kind!==i.dd.Boolean)continue;let u;if(e.kind===i.dd.Custom){var r;const t=ir(e),n=null===t||void 0===t||null===(r=t.provideEditor)||void 0===r?void 0:r.call(t,e);if(void 0!==(null===t||void 0===t?void 0:t.onDelete))u=t.onDelete(e);else if((0,i.zT)(n)){var o;u=null===n||void 0===n||null===(o=n.deletedValue)||void 0===o?void 0:o.call(n,e)}}else if((0,i.Bc)(e)&&e.allowOverlay||e.kind===i.dd.Boolean){var a;const t=ir(e);u=null===t||void 0===t||null===(a=t.onDelete)||void 0===a?void 0:a.call(t,e)}void 0!==u&&!(0,i.pg)(u)&&(0,i.Bc)(u)&&n.push({location:[l,t],value:u})}_r(n),null===(t=Dr.current)||void 0===t||t.damage(n.map((e=>({cell:e.location}))))}),[Er,q,ir,_r,Rn]),Ro=void 0!==F,Mo=e.useCallback((e=>{const t=()=>{e.stopPropagation(),e.preventDefault()},n={didMatch:!1},{bounds:r}=e,o=Bn.columns,a=Bn.rows,l=_n;if(!Ro&&At(l.clear,e,n))$n(Qt,!1),null===Qe||void 0===Qe||Qe();else if(!Ro&&At(l.selectAll,e,n)){var u,s;$n({columns:i.I1.empty(),rows:i.I1.empty(),current:{cell:null!==(u=null===(s=Bn.current)||void 0===s?void 0:s.cell)&&void 0!==u?u:[Rn,0],range:{x:Rn,y:0,width:G.length,height:K},rangeStack:[]}},!1)}else if(At(l.search,e,n)){var c;null===M||void 0===M||null===(c=M.current)||void 0===c||c.focus({preventScroll:!0}),In(!0)}else if(At(l.delete,e,n)){var d;const e=null===(d=null===Qn||void 0===Qn?void 0:Qn(Bn))||void 0===d||d;if(!1!==e){const t=!0===e?Bn:e;if(void 0!==t.current){Fo(t.current.range);for(const e of t.current.rangeStack)Fo(e)}for(const e of t.rows)Fo({x:Rn,y:e,width:G.length,height:1});for(const e of t.columns)Fo({x:e,y:0,width:1,height:K})}}if(n.didMatch)return t(),!0;if(void 0===Bn.current)return!1;let[f,h]=Bn.current.cell,p=!1,v=!1;At(l.scrollToSelectedCell,e,n)?Ho.current(f-Rn,h):"none"!==Pe&&At(l.selectColumn,e,n)?o.hasIndex(f)?er(o.remove(f),void 0,!0):"single"===Pe?er(i.I1.fromSingleSelection(f),void 0,!0):er(void 0,f,!0):"none"!==Ie&&At(l.selectRow,e,n)?a.hasIndex(h)?Jn(a.remove(h),void 0,!0):"single"===Ie?Jn(i.I1.fromSingleSelection(h),void 0,!0):Jn(void 0,h,!0):!Ro&&void 0!==r&&At(l.activateCell,e,n)?h===K&&Mn?window.setTimeout((()=>{const e=Yr(f);Xr(null!==e&&void 0!==e?e:f)}),0):(null===Z||void 0===Z||Z([f-Rn,h]),Hr(r,!0)):Bn.current.range.height>1&&At(l.downFill,e,n)?ho():Bn.current.range.width>1&&At(l.rightFill,e,n)?fo():At(l.goToNextPage,e,n)?h+=Math.max(1,vr.current.height-4):At(l.goToPreviousPage,e,n)?h-=Math.max(1,vr.current.height-4):At(l.goToFirstCell,e,n)?(R(void 0),h=0,f=0):At(l.goToLastCell,e,n)?(R(void 0),h=Number.MAX_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER):At(l.selectToFirstCell,e,n)?(R(void 0),Eo([-2,-2])):At(l.selectToLastCell,e,n)?(R(void 0),Eo([2,2])):Ro?(At(l.closeOverlay,e,n)&&R(void 0),At(l.acceptOverlayDown,e,n)&&(R(void 0),h++),At(l.acceptOverlayUp,e,n)&&(R(void 0),h--),At(l.acceptOverlayLeft,e,n)&&(R(void 0),f--),At(l.acceptOverlayRight,e,n)&&(R(void 0),f++)):(At(l.goDownCell,e,n)?h+=1:At(l.goUpCell,e,n)?h-=1:At(l.goRightCell,e,n)?f+=1:At(l.goLeftCell,e,n)?f-=1:At(l.goDownCellRetainSelection,e,n)?(h+=1,p=!0):At(l.goUpCellRetainSelection,e,n)?(h-=1,p=!0):At(l.goRightCellRetainSelection,e,n)?(f+=1,p=!0):At(l.goLeftCellRetainSelection,e,n)?(f-=1,p=!0):At(l.goToLastRow,e,n)?h=K-1:At(l.goToFirstRow,e,n)?h=Number.MIN_SAFE_INTEGER:At(l.goToLastColumn,e,n)?f=Number.MAX_SAFE_INTEGER:At(l.goToFirstColumn,e,n)?f=Number.MIN_SAFE_INTEGER:"rect"!==Te&&"multi-rect"!==Te||(At(l.selectGrowDown,e,n)?Eo([0,1]):At(l.selectGrowUp,e,n)?Eo([0,-1]):At(l.selectGrowRight,e,n)?Eo([1,0]):At(l.selectGrowLeft,e,n)?Eo([-1,0]):At(l.selectToLastRow,e,n)?Eo([0,2]):At(l.selectToFirstRow,e,n)?Eo([0,-2]):At(l.selectToLastColumn,e,n)?Eo([2,0]):At(l.selectToFirstColumn,e,n)&&Eo([-2,0])),v=n.didMatch);const g=Ao(f,h,!1,p),m=n.didMatch;return m&&(g||!v||en)&&t(),m}),[Ro,Bn,_n,Pe,Ie,Te,Rn,K,Ao,$n,Qe,G.length,Qn,en,Fo,er,Jn,Mn,Yr,Xr,Z,Hr,ho,fo,Eo]),To=e.useCallback((e=>{let t=!1;if(void 0!==De&&De((0,o.A)((0,o.A)({},e),{},{cancel:()=>{t=!0}})),t)return;if(Mo(e))return;if(void 0===Bn.current)return;const[n,r]=Bn.current.cell,a=vr.current;if(_e&&!e.metaKey&&!e.ctrlKey&&void 0!==Bn.current&&1===e.key.length&&/[ -~]/g.test(e.key)&&void 0!==e.bounds&&(0,i.uQ)(q([n-Rn,Math.max(0,Math.min(r,K-1))]))){if((!Mn||r!==K)&&(a.y>r||r>a.y+a.height||a.x>n||n>a.x+a.width))return;Hr(e.bounds,!0,e.key),e.stopPropagation(),e.preventDefault()}}),[_e,De,Mo,Bn,q,Rn,K,Mn,Hr]),Po=e.useCallback(((e,t)=>{const n=e.location[0]-Rn;if("header"===e.kind&&(null===de||void 0===de||de(n,(0,o.A)((0,o.A)({},e),{},{preventDefault:t}))),e.kind===at){if(n<0)return;null===he||void 0===he||he(n,(0,o.A)((0,o.A)({},e),{},{preventDefault:t}))}if("cell"===e.kind){const[r,i]=e.location;null===se||void 0===se||se([n,i],(0,o.A)((0,o.A)({},e),{},{preventDefault:t})),function(e,t){const[n,r]=t;if(e.columns.hasIndex(n)||e.rows.hasIndex(r))return!0;if(void 0!==e.current){if(z(e.current.cell,t))return!0;const o=[e.current.range,...e.current.rangeStack];for(const e of o)if(n>=e.x&&n<e.x+e.width&&r>=e.y&&r<e.y+e.height)return!0}return!1}(Bn,e.location)||Ao(r,i,!1,!1)}}),[Bn,se,he,de,Rn,Ao]),Io=e.useCallback((async e=>{var t,n;if(!_n.paste)return;function r(e,t,n,r){var l,u;const s="object"===typeof n?null!==(l=null===n||void 0===n?void 0:n.join("\n"))&&void 0!==l?l:"":null!==(u=null===n||void 0===n?void 0:n.toString())&&void 0!==u?u:"";if(!(0,i.pg)(e)&&(0,i.uQ)(e)&&!0!==e.readonly){const l=null===te||void 0===te?void 0:te(s,e);if(void 0!==l&&(0,i.Bc)(l))return{location:t,value:l};const u=ir(e);if(void 0===u)return;if(u.kind===i.dd.Custom){var c;(0,a.vA)(e.kind===i.dd.Custom);const n=null===(c=u.onPaste)||void 0===c?void 0:c.call(u,s,e.data);if(void 0===n)return;return{location:t,value:(0,o.A)((0,o.A)({},e),{},{data:n})}}{var d;const o=null===(d=u.onPaste)||void 0===d?void 0:d.call(u,s,e,{formatted:r,formattedString:"string"===typeof r?r:null===r||void 0===r?void 0:r.join("\n"),rawValue:n});if(void 0===o)return;return(0,a.vA)(o.kind===e.kind),{location:t,value:o}}}}const l=Bn.columns,u=Bn.rows,s=!0===(null===(t=B.current)||void 0===t?void 0:t.contains(document.activeElement))||!0===(null===(n=T.current)||void 0===n?void 0:n.contains(document.activeElement));let c;if(void 0!==Bn.current)c=[Bn.current.range.x,Bn.current.range.y];else if(1===l.length){var d;c=[null!==(d=l.first())&&void 0!==d?d:0,0]}else if(1===u.length){var f;c=[Rn,null!==(f=u.first())&&void 0!==f?f:0]}if(s&&void 0!==c){var h;let t,n;const o="text/plain",i="text/html";if(void 0!==navigator.clipboard.read){const e=await navigator.clipboard.read();for(const r of e){if(r.types.includes(i)){const e=await r.getType(i),n=Pt(await e.text());if(void 0!==n){t=n;break}}r.types.includes(o)&&(n=await(await r.getType(o)).text())}}else if(void 0!==navigator.clipboard.readText)n=await navigator.clipboard.readText();else{if(void 0===e||null===(null===e||void 0===e?void 0:e.clipboardData))return;if(e.clipboardData.types.includes(i)){t=Pt(e.clipboardData.getData(i))}void 0===t&&e.clipboardData.types.includes(o)&&(n=e.clipboardData.getData(o))}const[a,l]=c,u=[];do{if(void 0===Ve){var p,v,g;const e=r(zr(c),c,null!==(p=null!==(v=n)&&void 0!==v?v:null===(g=t)||void 0===g?void 0:g.map((e=>e.map((e=>e.rawValue)).join("\t"))).join("\t"))&&void 0!==p?p:"",void 0);void 0!==e&&u.push(e);break}if(void 0===t){if(void 0===n)return;t=Lt(n)}if(!1===Ve||"function"===typeof Ve&&!0!==(null===Ve||void 0===Ve?void 0:Ve([c[0]-Rn,c[1]],t.map((e=>e.map((e=>{var t,n;return null!==(t=null===(n=e.rawValue)||void 0===n?void 0:n.toString())&&void 0!==t?t:""})))))))return;for(const[e,n]of t.entries()){if(e+l>=K)break;for(const[t,o]of n.entries()){const n=[t+a,e+l],[i,s]=n;if(i>=fr.length)continue;if(s>=Ar)continue;const c=r(zr(n),n,o.rawValue,o.formatted);void 0!==c&&u.push(c)}}}while(0);_r(u),null===(h=Dr.current)||void 0===h||h.damage(u.map((e=>({cell:e.location}))))}}),[te,ir,zr,Bn,_n.paste,fr.length,_r,Ar,Ve,Rn,K]);h("paste",Io,j,!1,!0);const Lo=e.useCallback((async(e,t)=>{var n,r;if(!_n.copy)return;const o=!0===t||!0===(null===(n=B.current)||void 0===n?void 0:n.contains(document.activeElement))||!0===(null===(r=T.current)||void 0===r?void 0:r.contains(document.activeElement)),a=Bn.columns,l=Bn.rows,u=(t,n)=>{if(We){const r=n.map((e=>({kind:i.dd.Text,data:G[e].title,displayData:G[e].title,allowOverlay:!1})));zt([r,...t],n,e)}else zt(t,n,e)};if(o&&void 0!==jn)if(void 0!==Bn.current){let e=jn(Bn.current.range,Hn.current.signal);"object"!==typeof e&&(e=await e()),u(e,c(Bn.current.range.x-Rn,Bn.current.range.x+Bn.current.range.width-Rn))}else if(void 0!==l&&l.length>0){const e=[...l].map((e=>{const t=jn({x:Rn,y:e,width:G.length,height:1},Hn.current.signal);return"object"===typeof t?t[0]:t().then((e=>e[0]))}));if(e.some((e=>e instanceof Promise))){u(await Promise.all(e),c(G.length))}else u(e,c(G.length))}else if(a.length>0){const e=[],t=[];for(const n of a){let r=jn({x:n,y:0,width:1,height:K},Hn.current.signal);"object"!==typeof r&&(r=await r()),e.push(r),t.push(n-Rn)}if(1===e.length)u(e[0],t);else{const n=e.reduce(((e,t)=>e.map(((e,n)=>[...e,...t[n]]))));u(n,t)}}}),[G,jn,Bn,_n.copy,Rn,K,We]);h("copy",Lo,j,!1,!1);h("cut",e.useCallback((async e=>{var t,n;if(!_n.cut)return;if((!0===(null===(t=B.current)||void 0===t?void 0:t.contains(document.activeElement))||!0===(null===(n=T.current)||void 0===n?void 0:n.contains(document.activeElement)))&&(await Lo(e),void 0!==Bn.current)){let e={current:{cell:Bn.current.cell,range:Bn.current.range,rangeStack:[]},rows:i.I1.empty(),columns:i.I1.empty()};const t=null===Qn||void 0===Qn?void 0:Qn(e);if(!1===t)return;if(e=!0===t?e:t,void 0===e.current)return;Fo(e.current.range)}}),[Fo,Bn,_n.cut,Lo,Qn]),j,!1,!1);const zo=e.useCallback(((e,t)=>{if(void 0!==ye)return 0!==Rn&&(e=e.map((e=>[e[0]-Rn,e[1]]))),void ye(e,t);if(0===e.length||-1===t)return;const[n,r]=e[t];void 0!==H.current&&H.current[0]===n&&H.current[1]===r||(H.current=[n,r],Ao(n,r,!1,!1))}),[ye,Rn,Ao]),[No,Bo]=null!==(S=null===et||void 0===et||null===(D=et.current)||void 0===D?void 0:D.cell)&&void 0!==S?S:[],Ho=e.useRef(Vr);Ho.current=Vr,e.useLayoutEffect((()=>{var e,t;mr.current||void 0===No||void 0===Bo||No===(null===(e=Un.current)||void 0===e||null===(e=e.current)||void 0===e?void 0:e.cell[0])&&Bo===(null===(t=Un.current)||void 0===t||null===(t=t.current)||void 0===t?void 0:t.cell[1])||Ho.current(No,Bo),mr.current=!1}),[No,Bo]);const jo=void 0!==Bn.current&&(Bn.current.cell[0]>=fr.length||Bn.current.cell[1]>=Ar);e.useLayoutEffect((()=>{jo&&$n(Qt,!1)}),[jo,$n]);const Vo=e.useMemo((()=>!0===Mn&&!0===(null===dt||void 0===dt?void 0:dt.tint)?i.I1.fromSingleSelection(Ar-1):i.I1.empty()),[Ar,Mn,null===dt||void 0===dt?void 0:dt.tint]),Wo=e.useCallback((e=>{var t;return"boolean"===typeof gt?gt:null===(t=null===gt||void 0===gt?void 0:gt(e-Rn))||void 0===t||t}),[Rn,gt]),Uo=e.useMemo((()=>{if(void 0===ro||null===T.current)return null;const{bounds:t,group:n}=ro,r=T.current.getBoundingClientRect();return e.createElement(Dt,{bounds:t,group:n,canvasBounds:r,onClose:()=>oo(void 0),onFinish:e=>{oo(void 0),null===pe||void 0===pe||pe(n,e)}})}),[pe,ro]),$o=Math.min(fr.length,Ue+(Fn?1:0));e.useImperativeHandle(n,(()=>({appendRow:(e,t)=>Xr(e+Rn,t),updateCells:e=>{var t;return 0!==Rn&&(e=e.map((e=>({cell:[e.cell[0]+Rn,e.cell[1]]})))),null===(t=Dr.current)||void 0===t?void 0:t.damage(e)},getBounds:(e,t)=>{var n;if(null!==(null===T||void 0===T?void 0:T.current)&&null!==(null===B||void 0===B?void 0:B.current)){if(void 0===e&&void 0===t){const e=T.current.getBoundingClientRect(),t=e.width/B.current.clientWidth;return{x:e.x-B.current.scrollLeft*t,y:e.y-B.current.scrollTop*t,width:B.current.scrollWidth*t,height:B.current.scrollHeight*t}}return null===(n=Dr.current)||void 0===n?void 0:n.getBounds((null!==e&&void 0!==e?e:0)+Rn,t)}},focus:()=>{var e;return null===(e=Dr.current)||void 0===e?void 0:e.focus()},emit:async e=>{switch(e){case"delete":To({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-right":To({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-down":To({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"copy":await Lo(void 0,!0);break;case"paste":await Io()}},scrollTo:Vr,remeasureColumns:e=>{for(const t of e)lo(t+Rn)}})),[Xr,lo,Lo,To,Io,Rn,Vr]);const[Xo,Yo]=null!==mo&&void 0!==mo?mo:[],Go=e.useCallback((e=>{const[t,n]=e;-1!==n?Xo===t&&Yo===n||(Zn({cell:e,range:{x:t,y:n,width:1,height:1}},!0,!1,"keyboard-nav"),Vr(t,n)):"none"!==Pe&&(er(i.I1.fromSingleSelection(t),void 0,!1),Er())}),[Pe,Er,Vr,Xo,Yo,Zn,er]),[Ko,qo]=e.useState(!1),Qo=e.useRef(f((e=>{qo(e)}),5)),Zo=e.useCallback((()=>{Qo.current(!0),void 0===Bn.current&&0===Bn.columns.length&&0===Bn.rows.length&&void 0===P&&Zn({cell:[Rn,Sr],range:{x:Rn,y:Sr,width:1,height:1}},!0,!1,"keyboard-select")}),[Sr,Bn,P,Rn,Zn]),Jo=e.useCallback((()=>{Qo.current(!1)}),[]),[ei,ti]=e.useMemo((()=>{var e;let t;const n=null!==(e=null===Ot||void 0===Ot?void 0:Ot.scrollbarWidthOverride)&&void 0!==e?e:E(),r=K+(Mn?1:0);if("number"===typeof Cn)t=sr+r*Cn;else{let e=0;const n=Math.min(r,10);for(let t=0;t<n;t++)e+=Cn(t);e=Math.floor(e/n),t=sr+r*e}t+=n;const o=fr.reduce(((e,t)=>t.width+e),0)+n;return["".concat(Math.min(1e5,o),"px"),"".concat(Math.min(1e5,t),"px")]}),[fr,null===Ot||void 0===Ot?void 0:Ot.scrollbarWidthOverride,Cn,K,Mn,sr]),ni=e.useMemo((()=>(0,xe.zc)(tr)),[tr]);return e.createElement(xe.Dx.Provider,{value:tr},e.createElement(Vt,{style:ni,className:ce,inWidth:null!==X&&void 0!==X?X:ei,inHeight:null!==Y&&void 0!==Y?Y:ti},e.createElement(Ct,{fillHandle:St,drawFocusRing:_t,experimental:Ot,fixedShadowX:Ft,fixedShadowY:Rt,getRowThemeOverride:U,headerIcons:Mt,imageWindowLoader:Tt,initialSize:It,isDraggable:Bt,onDragLeave:Ht,onRowMoved:jt,overscrollX:En,overscrollY:An,preventDiagonalScrolling:$t,rightElement:Zt,rightElementProps:Jt,smoothScrollX:tn,smoothScrollY:nn,className:ce,enableGroups:ur,onCanvasFocused:Zo,onCanvasBlur:Jo,canvasRef:T,onContextMenu:Po,theme:tr,cellXOffset:kr,cellYOffset:Sr,accessibilityHeight:yr.height,onDragEnd:Co,columns:fr,nonGrowWidth:lr,drawHeader:Kn,onColumnProposeMove:ae,drawCell:qn,disabledRows:Vo,freezeColumns:$o,lockColumns:Rn,firstColAccessible:0===Rn,getCellContent:zr,minColumnWidth:mn,maxColumnWidth:yn,searchInputRef:M,showSearch:Ln,onSearchClose:zn,highlightRegions:Ir,getCellsForSelection:jn,getGroupDetails:Nr,headerHeight:kn,isFocused:Ko,groupHeaderHeight:ur?Sn:0,freezeTrailingRows:ft+(Mn&&!0===(null===dt||void 0===dt?void 0:dt.sticky)?1:0),hasAppendRow:Mn,onColumnResize:Xn,onColumnResizeEnd:Yn,onColumnResizeStart:Gn,onCellFocused:Go,onColumnMoved:bo,onDragStart:xo,onHeaderMenuClick:go,onItemHovered:So,isFilling:!0===(null===P||void 0===P?void 0:P.fillHandle),onMouseMove:vo,onKeyDown:To,onKeyUp:Ee,onMouseDown:no,onMouseUp:po,onDragOverCell:mt,onDrop:yt,onSearchResultsChanged:zo,onVisibleRegionChanged:yo,clientSize:nr,rowHeight:Cn,searchResults:be,searchValue:Ce,onSearchValueChange:we,rows:Ar,scrollRef:B,selection:Bn,translateX:yr.tx,translateY:yr.ty,verticalBorder:Wo,gridRef:Dr,getCellRenderer:ir}),Uo,void 0!==F&&e.createElement(e.Suspense,{fallback:null},e.createElement(Yt,(0,o.A)((0,o.A)({},F),{},{validateCell:Wn,bloom:oe,id:Oo,getCellRenderer:ir,className:!0===(null===Ot||void 0===Ot?void 0:Ot.isSubGrid)?"click-outside-ignore":void 0,provideEditor:ct,imageEditorOverride:W,onFinishEditing:_o,markdownDivCreateNode:$,isOutsideClick:sn})))))})),Jt={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:"false"},kind:i.dd.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>{var t;return function(e,t,n,r){if(!n&&t===i.WE)return;const{ctx:o,hoverAmount:a,theme:l,rect:u,highlighted:s,hoverX:c,hoverY:d,cell:{contentAlign:f}}=e,{x:h,y:p,width:v,height:g}=u,m=.35;let y=n?1-m+m*a:.4;t===i.WE&&(y*=a);if(0===y)return;o.globalAlpha=y,Ie(o,l,t,h,p,v,g,s,c,d,r,f),o.globalAlpha=1}(e,e.cell.data,(0,i.dB)(e.cell),null!==(t=e.cell.maxSize)&&void 0!==t?t:20)},onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:!1}),onClick:e=>{var t,n;const{cell:r,posX:a,posY:l,bounds:u,theme:s}=e,{width:c,height:d,x:f,y:h}=u,p=null!==(t=r.maxSize)&&void 0!==t?t:20,v=Math.floor(u.y+d/2),g=b(p,d,s.cellVerticalPadding),x=y(null!==(n=r.contentAlign)&&void 0!==n?n:"center",f,c,s.cellHorizontalPadding,g),C=m(x,v,g),k=w(f+a,h+l,C);if((0,i.dB)(r)&&k)return(0,o.A)((0,o.A)({},r),{},{data:Nt(r.data)})},onPaste:(e,t)=>{let n=i.WE;return"true"===e.toLowerCase()?n=!0:"false"===e.toLowerCase()?n=!1:"indeterminate"===e.toLowerCase()&&(n=i.wm),n===t.data?void 0:(0,o.A)((0,o.A)({},t),{},{data:n})}};const en=(0,ht.I)("div")({name:"BubblesOverlayEditorStyle",class:"gdg-b1ygi5by",propsAsIs:!1}),tn=t=>{const{bubbles:n}=t;return e.createElement(en,null,n.map(((t,n)=>e.createElement("div",{key:n,className:"boe-bubble"},t))),e.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},nn={getAccessibilityString:e=>O(e.data),kind:i.dd.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce(((t,n)=>e.measureText(n).width+t+20),0)+2*n.cellHorizontalPadding-4,draw:e=>function(e,t){const{rect:n,theme:r,ctx:o,highlighted:i}=e,{x:a,y:l,width:u,height:s}=n,c=20,d=8,f=rn;let h=a+r.cellHorizontalPadding;const p=[];for(const g of t){if(h>a+u)break;const e=G(g,o,r.baseFontFull).width;p.push({x:h,width:e}),h+=e+2*d+f}o.beginPath();for(const g of p){var v;re(o,g.x,l+(s-c)/2,g.width+2*d,c,null!==(v=r.roundingRadius)&&void 0!==v?v:c/2)}o.fillStyle=i?r.bgBubbleSelected:r.bgBubble,o.fill();for(const[g,m]of p.entries())o.beginPath(),o.fillStyle=r.textBubble,o.fillText(t[g],m.x+d,l+s/2+K(o,r))}(e,e.cell.data),provideEditor:()=>t=>{const{value:n}=t;return e.createElement(tn,{bubbles:n.data})},onPaste:()=>{}},rn=4;const on=(0,ht.I)("div")({name:"DrilldownOverlayEditorStyle",class:"gdg-d4zsq0x",propsAsIs:!1}),an=t=>{const{drilldowns:n}=t;return e.createElement(on,null,n.map(((t,n)=>e.createElement("div",{key:n,className:"doe-bubble"},void 0!==t.img&&e.createElement("img",{src:t.img}),e.createElement("div",null,t.text)))))},ln={getAccessibilityString:e=>O(e.data.map((e=>e.text))),kind:i.dd.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce(((t,n)=>e.measureText(n.text).width+t+20+(void 0!==n.img?18:0)),0)+2*n.cellHorizontalPadding-4,draw:e=>function(e,t){var n;const{rect:r,theme:o,ctx:i,imageLoader:a,col:l,row:u}=e,{x:s,width:c}=r,d=o.baseFontFull,f=ee(i,d),h=Math.min(r.height,Math.max(16,2*Math.ceil(f*o.lineHeight))),p=Math.floor(r.y+(r.height-h)/2),v=h-10,g=8,m=un;let y=s+o.cellHorizontalPadding;const b=null!==(n=o.roundingRadius)&&void 0!==n?n:6,w=function(e,t,n,r){const o=Math.ceil(window.devicePixelRatio),i=5,a=n-2*i,l=4,u=n*o,s=r+i,c=3*r,d=(c+2*i)*o,f="".concat(e,",").concat(t,",").concat(o,",").concat(n);if(void 0!==sn[f])return{el:sn[f],height:u,width:d,middleWidth:l*o,sideWidth:s*o,padding:i*o,dpr:o};const h=document.createElement("canvas"),p=h.getContext("2d");return null===p?null:(h.width=d,h.height=u,p.scale(o,o),sn[f]=h,p.beginPath(),re(p,i,i,c,a,r),p.shadowColor="rgba(24, 25, 34, 0.4)",p.shadowBlur=1,p.fillStyle=e,p.fill(),p.shadowColor="rgba(24, 25, 34, 0.3)",p.shadowOffsetY=1,p.shadowBlur=5,p.fillStyle=e,p.fill(),p.shadowOffsetY=0,p.shadowBlur=0,p.shadowBlur=0,p.beginPath(),re(p,i+.5,i+.5,c,a,r),p.strokeStyle=t,p.lineWidth=1,p.stroke(),{el:h,height:u,width:d,sideWidth:s*o,middleWidth:r*o,padding:i*o,dpr:o})}(o.bgCell,o.drilldownBorder,h,b),x=[];for(const k of t){if(y>s+c)break;const e=G(k.text,i,d).width;let t=0;if(void 0!==k.img){void 0!==a.loadOrGetImage(k.img,l,u)&&(t=v-8+4)}const n=e+t+2*g;x.push({x:y,width:n}),y+=n+m}if(null!==w){const{el:e,height:t,middleWidth:n,sideWidth:r,width:o,dpr:a,padding:l}=w,u=r/a,s=l/a;for(const c of x){const a=Math.floor(c.x),l=Math.floor(c.width),d=l-2*(u-s);i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,r,t,a-s,p,u,h),d>0&&i.drawImage(e,r,0,n,t,a+(u-s),p,d,h),i.drawImage(e,o-r,0,r,t,a+l-(u-s),p,u,h),i.imageSmoothingEnabled=!0}}i.beginPath();for(const[k,S]of x.entries()){const e=t[k];let n=S.x+g;if(void 0!==e.img){const t=a.loadOrGetImage(e.img,l,u);if(void 0!==t){var C;const e=v-8;let r=0,a=0,l=t.width,u=t.height;l>u?(r+=(l-u)/2,l=u):u>l&&(a+=(u-l)/2,u=l),i.beginPath(),re(i,n,p+h/2-e/2,e,e,null!==(C=o.roundingRadius)&&void 0!==C?C:3),i.save(),i.clip(),i.drawImage(t,r,a,l,u,n,p+h/2-e/2,e,e),i.restore(),n+=e+4}}i.beginPath(),i.fillStyle=o.textBubble,i.fillText(e.text,n,p+h/2+K(i,o))}}(e,e.cell.data),provideEditor:()=>t=>{const{value:n}=t;return e.createElement(an,{drilldowns:n.data})},onPaste:()=>{}},un=4,sn={};const cn=(0,ht.I)("div")({name:"ImageOverlayEditorStyle",class:"gdg-i2iowwq",propsAsIs:!1});var dn=n(1577);const fn=t=>{const{urls:n,canWrite:r,onEditClick:o,renderImage:i}=t,a=n.filter((e=>""!==e));if(0===a.length)return null;const l=a.length>1;return e.createElement(cn,{"data-testid":"GDG-default-image-overlay-editor"},e.createElement(dn.FN,{showArrows:l,showThumbs:!1,swipeable:l,emulateTouch:l,infiniteLoop:l},a.map((t=>{var n;const r=null!==(n=null===i||void 0===i?void 0:i(t))&&void 0!==n?n:e.createElement("img",{draggable:!1,src:t});return e.createElement("div",{className:"gdg-centering-container",key:t},r)}))),r&&o&&e.createElement("button",{className:"gdg-edit-icon",onClick:o},e.createElement(x,null)))},hn={getAccessibilityString:e=>e.data.join(", "),kind:i.dd.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>{var t,n,r;return function(e,t,n,r){const{rect:o,col:i,row:a,theme:l,ctx:u,imageLoader:s}=e,{x:c,y:d,height:f,width:h}=o,p=f-2*l.cellVerticalPadding,v=[];let g=0;for(let y=0;y<t.length;y++){const e=t[y];if(0===e.length)continue;const n=s.loadOrGetImage(e,i,a);if(void 0!==n){v[y]=n;g+=n.width*(p/n.height)+pn}}if(0===g)return;g-=pn;let m=c+l.cellHorizontalPadding;"right"===r?m=Math.floor(c+h-l.cellHorizontalPadding-g):"center"===r&&(m=Math.floor(c+h/2-g/2));for(const y of v){if(void 0===y)continue;const e=y.width*(p/y.height);n>0&&(u.beginPath(),re(u,m,d+l.cellVerticalPadding,e,p,n),u.save(),u.clip()),u.drawImage(y,m,d+l.cellVerticalPadding,e,p),n>0&&u.restore(),m+=e+pn}}(e,null!==(t=e.cell.displayData)&&void 0!==t?t:e.cell.data,null!==(n=null!==(r=e.cell.rounding)&&void 0!==r?r:e.theme.roundingRadius)&&void 0!==n?n:4,e.cell.contentAlign)},measure:(e,t)=>50*t.data.length,onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:[]}),provideEditor:()=>t=>{const{value:n,onFinishedEditing:r,imageEditorOverride:i}=t,a=null!==i&&void 0!==i?i:fn;return e.createElement(a,{urls:n.data,canWrite:!1!==n.readonly,onCancel:r,onChange:e=>{r((0,o.A)((0,o.A)({},n),{},{data:[e]}))}})},onPaste:(e,t)=>{const n=(e=e.trim()).split(",").map((e=>{try{return new URL(e),e}catch(t){return}})).filter((e=>void 0!==e));if(n.length!==t.data.length||!n.every(((e,n)=>e===t.data[n])))return(0,o.A)((0,o.A)({},t),{},{data:n})}},pn=4;const vn={getAccessibilityString:()=>"",kind:i.dd.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:e=>{var t,n;const{cell:r,col:o,row:i,ctx:a,rect:l,theme:u}=e;if(void 0===r.skeletonWidth||0===r.skeletonWidth)return;let s=r.skeletonWidth;void 0!==r.skeletonWidthVariability&&r.skeletonWidthVariability>0&&(s+=Math.round(function(e,t){let n=49632*e+325176*t;return n^=n<<13,n^=n>>17,n^=n<<5,n/4294967295*2}(o,i)*r.skeletonWidthVariability));const c=u.cellHorizontalPadding,d=null!==(t=r.skeletonHeight)&&void 0!==t?t:Math.min(18,l.height-2*u.cellVerticalPadding);re(a,l.x+c,l.y+(l.height-d)/2,s,d,null!==(n=u.roundingRadius)&&void 0!==n?n:3),a.fillStyle=(0,ve.fu)(u.textDark,.1),a.fill()},onPaste:()=>{}};function gn(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let mn={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const yn=/[&<>"']/,bn=new RegExp(yn.source,"g"),wn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xn=new RegExp(wn.source,"g"),Cn={"&":"&","<":"<",">":">",'"':""","'":"'"},kn=e=>Cn[e];function Sn(e,t){if(t){if(yn.test(e))return e.replace(bn,kn)}else if(wn.test(e))return e.replace(xn,kn);return e}const Dn=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function En(e){return e.replace(Dn,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const An=/(^|[^\[])\^/g;function _n(e,t){e="string"===typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(An,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const On=/[^\w:]/g,Fn=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Rn(e,t,n){if(e){let e;try{e=decodeURIComponent(En(n)).replace(On,"").toLowerCase()}catch(r){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Fn.test(n)&&(n=function(e,t){Mn[" "+e]||(Tn.test(e)?Mn[" "+e]=e+"/":Mn[" "+e]=Nn(e,"/",!0));e=Mn[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Pn,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(In,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}const Mn={},Tn=/^[^:]+:\/*[^/]*$/,Pn=/^([^:]+:)[\s\S]*$/,In=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Ln={exec:function(){}};function zn(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(/\\\|/g,"|");return r}function Nn(e,t,n){const r=e.length;if(0===r)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function Bn(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Hn(e,t,n,r){const o=t.href,i=t.title?Sn(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:Sn(a)}}class jn{constructor(e){this.options=e||mn}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Nn(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Nn(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,a,l,u,s,c,d,f,h,p=t[1].trim();const v=p.length>1,g={type:"list",raw:"",ordered:v,start:v?+p.slice(0,-1):"",loose:!1,items:[]};p=v?"\\d{1,9}\\".concat(p.slice(-1)):"\\".concat(p),this.options.pedantic&&(p=v?p:"[*+-]");const m=new RegExp("^( {0,3}".concat(p,")((?:[\t ][^\\n]*)?(?:\\n|$))"));for(;e&&(h=!1,t=m.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),s=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],this.options.pedantic?(i=2,f=s.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,f=s.slice(i),i+=t[1].length),l=!1,!s&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),h=!0),!h){const t=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),r=new RegExp("^ {0,".concat(Math.min(3,i-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),o=new RegExp("^ {0,".concat(Math.min(3,i-1),"}(?:```|~~~)")),a=new RegExp("^ {0,".concat(Math.min(3,i-1),"}#"));for(;e&&(d=e.split("\n",1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(c))&&!a.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())f+="\n"+c.slice(i);else{if(l)break;if(s.search(/[^ ]/)>=4)break;if(o.test(s))break;if(a.test(s))break;if(r.test(s))break;f+="\n"+c}l||c.trim()||(l=!0),n+=d+"\n",e=e.substring(d.length+1),s=c.slice(i)}}g.loose||(u?g.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(f),r&&(o="[ ] "!==r[0],f=f.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:f}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=f.trimRight(),g.raw=g.raw.trimRight();const y=g.items.length;for(a=0;a<y;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){const e=g.items[a].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));g.loose=t}if(g.loose)for(a=0;a<y;a++)g.items[a].loose=!0;return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Sn(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:zn(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=zn(e.rows[n],e.header.length).map((e=>({text:e})));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(a=e.rows.length,r=0;r<a;r++)for(i=e.rows[r],o=0;o<i.length;o++)i[o].tokens=this.lexer.inline(i[o].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Sn(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Sn(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Nn(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Hn(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Hn(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,a=n,l=0;const u="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=u.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){l+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+l);const t=e.slice(0,n+r.index+(r[0].length-o.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const u=t.slice(2,-2);return{type:"strong",raw:t,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Sn(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Sn(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Sn(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Sn(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Sn(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Sn(n[0]):n[0]:Sn(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Vn={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ln,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Vn.def=_n(Vn.def).replace("label",Vn._label).replace("title",Vn._title).getRegex(),Vn.bullet=/(?:[*+-]|\d{1,9}[.)])/,Vn.listItemStart=_n(/^( *)(bull) */).replace("bull",Vn.bullet).getRegex(),Vn.list=_n(Vn.list).replace(/bull/g,Vn.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Vn.def.source+")").getRegex(),Vn._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Vn._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Vn.html=_n(Vn.html,"i").replace("comment",Vn._comment).replace("tag",Vn._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vn.paragraph=_n(Vn._paragraph).replace("hr",Vn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn._tag).getRegex(),Vn.blockquote=_n(Vn.blockquote).replace("paragraph",Vn.paragraph).getRegex(),Vn.normal=(0,o.A)({},Vn),Vn.gfm=(0,o.A)((0,o.A)({},Vn.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Vn.gfm.table=_n(Vn.gfm.table).replace("hr",Vn.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn._tag).getRegex(),Vn.gfm.paragraph=_n(Vn._paragraph).replace("hr",Vn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Vn.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Vn._tag).getRegex(),Vn.pedantic=(0,o.A)((0,o.A)({},Vn.normal),{},{html:_n("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Vn._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ln,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_n(Vn.normal._paragraph).replace("hr",Vn.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Vn.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Wn={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ln,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ln,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Un(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function $n(e){let t,n,r="";const o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Wn._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Wn.punctuation=_n(Wn.punctuation).replace(/punctuation/g,Wn._punctuation).getRegex(),Wn.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Wn.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Wn._comment=_n(Vn._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Wn.emStrong.lDelim=_n(Wn.emStrong.lDelim).replace(/punct/g,Wn._punctuation).getRegex(),Wn.emStrong.rDelimAst=_n(Wn.emStrong.rDelimAst,"g").replace(/punct/g,Wn._punctuation).getRegex(),Wn.emStrong.rDelimUnd=_n(Wn.emStrong.rDelimUnd,"g").replace(/punct/g,Wn._punctuation).getRegex(),Wn._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Wn._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Wn._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Wn.autolink=_n(Wn.autolink).replace("scheme",Wn._scheme).replace("email",Wn._email).getRegex(),Wn._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Wn.tag=_n(Wn.tag).replace("comment",Wn._comment).replace("attribute",Wn._attribute).getRegex(),Wn._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wn._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Wn._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Wn.link=_n(Wn.link).replace("label",Wn._label).replace("href",Wn._href).replace("title",Wn._title).getRegex(),Wn.reflink=_n(Wn.reflink).replace("label",Wn._label).replace("ref",Vn._label).getRegex(),Wn.nolink=_n(Wn.nolink).replace("ref",Vn._label).getRegex(),Wn.reflinkSearch=_n(Wn.reflinkSearch,"g").replace("reflink",Wn.reflink).replace("nolink",Wn.nolink).getRegex(),Wn.normal=(0,o.A)({},Wn),Wn.pedantic=(0,o.A)((0,o.A)({},Wn.normal),{},{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_n(/^!?\[(label)\]\((.*?)\)/).replace("label",Wn._label).getRegex(),reflink:_n(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wn._label).getRegex()}),Wn.gfm=(0,o.A)((0,o.A)({},Wn.normal),{},{escape:_n(Wn.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Wn.gfm.url=_n(Wn.gfm.url,"i").replace("email",Wn.gfm._extended_email).getRegex(),Wn.breaks=(0,o.A)((0,o.A)({},Wn.gfm),{},{br:_n(Wn.br).replace("{2,}","*").getRegex(),text:_n(Wn.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Xn{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||mn,this.options.tokenizer=this.options.tokenizer||new jn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Vn.normal,inline:Wn.normal};this.options.pedantic?(t.block=Vn.pedantic,t.inline=Wn.pedantic):this.options.gfm&&(t.block=Vn.gfm,this.options.breaks?t.inline=Wn.breaks:t.inline=Wn.gfm),this.tokenizer.rules=t}static get rules(){return{block:Vn,inline:Wn}}static lex(e,t){return new Xn(t).lex(e)}static lexInline(e,t){return new Xn(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"===typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],o&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t),o=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,o,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(u));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,o.index)+"["+Bn("a",o[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,o.index)+"["+Bn("a",o[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,o.index+o[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(a=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(t=this.tokenizer.emStrong(e,u,a))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.autolink(e,$n))e=e.substring(t.raw.length),l.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,$n))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"===typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,Un))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),i=!0,n=l[l.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),l.push(t);return l}}class Yn{constructor(e){this.options=e||mn}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Sn(r)+'">'+(n?e:Sn(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Sn(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){const o=this.options.headerPrefix+r.slug(n);return"<h".concat(t,' id="').concat(o,'">').concat(e,"</h").concat(t,">\n")}return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>".concat(e,"</li>\n")}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>".concat(e,"</p>\n")}table(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n".concat(e,"</tr>\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}strong(e){return"<strong>".concat(e,"</strong>")}em(e){return"<em>".concat(e,"</em>")}codespan(e){return"<code>".concat(e,"</code>")}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>".concat(e,"</del>")}link(e,t,n){if(null===(e=Rn(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Rn(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'.concat(e,'" alt="').concat(n,'"');return t&&(r+=' title="'.concat(t,'"')),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Gn{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Kn{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class qn{constructor(e){this.options=e||mn,this.options.renderer=this.options.renderer||new Yn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Gn,this.slugger=new Kn}static parse(e,t){return new qn(t).parse(e)}static parseInline(e,t){return new qn(t).parseInline(e)}parse(e){let t,n,r,o,i,a,l,u,s,c,d,f,h,p,v,g,m,y,b,w=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],x="";const C=e.length;for(t=0;t<C;t++)if(c=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type]&&(b=this.options.extensions.renderers[c.type].call({parser:this},c),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)))x+=b||"";else switch(c.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(c.tokens),c.depth,En(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(u="",l="",o=c.header.length,n=0;n<o;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(u+=this.renderer.tablerow(l),s="",o=c.rows.length,n=0;n<o;n++){for(a=c.rows[n],l="",i=a.length,r=0;r<i;r++)l+=this.renderer.tablecell(this.parseInline(a[r].tokens),{header:!1,align:c.align[r]});s+=this.renderer.tablerow(l)}x+=this.renderer.table(u,s);continue;case"blockquote":s=this.parse(c.tokens),x+=this.renderer.blockquote(s);continue;case"list":for(d=c.ordered,f=c.start,h=c.loose,o=c.items.length,s="",n=0;n<o;n++)v=c.items[n],g=v.checked,m=v.task,p="",v.task&&(y=this.renderer.checkbox(g),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):p+=y),p+=this.parse(v.tokens,h),s+=this.renderer.listitem(p,m,g);x+=this.renderer.list(s,d,f);continue;case"html":x+=this.renderer.html(c.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(s=c.tokens?this.parseInline(c.tokens):c.text;t+1<C&&"text"===e[t+1].type;)c=e[++t],s+="\n"+(c.tokens?this.parseInline(c.tokens):c.text);x+=w?this.renderer.paragraph(s):s;continue;default:{const e='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return x}parseInline(e,t){t=t||this.renderer;let n,r,o,i="";const a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(o=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=o||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Qn{constructor(e){this.options=e||mn}preprocess(e){return e}postprocess(e){return e}}function Zn(e,t){return(n,r,i)=>{"function"===typeof r&&(i=r,r=null);const a=(0,o.A)({},r),l=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Sn(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((r=(0,o.A)((0,o.A)({},Jn.defaults),a)).silent,r.async,i);if("undefined"===typeof n||null===n)return l(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),i){const o=r.highlight;let a;try{r.hooks&&(n=r.hooks.preprocess(n)),a=e(n,r)}catch(u){return l(u)}const s=function(e){let n;if(!e)try{r.walkTokens&&Jn.walkTokens(a,r.walkTokens),n=t(a,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(u){e=u}return r.highlight=o,e?l(e):i(null,n)};if(!o||o.length<3)return s();if(delete r.highlight,!a.length)return s();let c=0;return Jn.walkTokens(a,(function(e){"code"===e.type&&(c++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&s()}))}),0))})),void(0===c&&s())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(Jn.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(l);try{r.hooks&&(n=r.hooks.preprocess(n));const o=e(n,r);r.walkTokens&&Jn.walkTokens(o,r.walkTokens);let i=t(o,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(u){return l(u)}}}function Jn(e,t,n){return Zn(Xn.lex,qn.parse)(e,t,n)}(0,ie.A)(Qn,"passThroughHooks",new Set(["preprocess","postprocess"])),Jn.options=Jn.setOptions=function(e){var t;return Jn.defaults=(0,o.A)((0,o.A)({},Jn.defaults),e),t=Jn.defaults,mn=t,Jn},Jn.getDefaults=gn,Jn.defaults=mn,Jn.use=function(){const e=Jn.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((t=>{const n=(0,o.A)({},t);if(n.async=Jn.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];let i=t.renderer.apply(this,r);return!1===i&&(i=n.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=Jn.defaults.renderer||new Yn;for(const n in t.renderer){const r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];let l=t.renderer[n].apply(e,i);return!1===l&&(l=r.apply(e,i)),l}}n.renderer=e}if(t.tokenizer){const e=Jn.defaults.tokenizer||new jn;for(const n in t.tokenizer){const r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];let l=t.tokenizer[n].apply(e,i);return!1===l&&(l=r.apply(e,i)),l}}n.tokenizer=e}if(t.hooks){const e=Jn.defaults.hooks||new Qn;for(const n in t.hooks){const r=e[n];Qn.passThroughHooks.has(n)?e[n]=o=>{if(Jn.defaults.async)return Promise.resolve(t.hooks[n].call(e,o)).then((t=>r.call(e,t)));const i=t.hooks[n].call(e,o);return r.call(e,i)}:e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];let l=t.hooks[n].apply(e,i);return!1===l&&(l=r.apply(e,i)),l}}n.hooks=e}if(t.walkTokens){const e=Jn.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(t.walkTokens.call(this,n)),e&&(r=r.concat(e.call(this,n))),r}}Jn.setOptions(n)}))},Jn.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Jn,r)),r.type){case"table":for(const e of r.header)n=n.concat(Jn.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Jn.walkTokens(r.tokens,t));break;case"list":n=n.concat(Jn.walkTokens(r.items,t));break;default:Jn.defaults.extensions&&Jn.defaults.extensions.childTokens&&Jn.defaults.extensions.childTokens[r.type]?Jn.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Jn.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Jn.walkTokens(r.tokens,t)))}return n},Jn.parseInline=Zn(Xn.lexInline,qn.parseInline),Jn.Parser=qn,Jn.parser=qn.parse,Jn.Renderer=Yn,Jn.TextRenderer=Gn,Jn.Lexer=Xn,Jn.lexer=Xn.lex,Jn.Tokenizer=jn,Jn.Slugger=Kn,Jn.Hooks=Qn,Jn.parse=Jn;Jn.options,Jn.setOptions,Jn.use,Jn.walkTokens,Jn.parseInline;const er=(0,ht.I)("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});class tr extends e.PureComponent{constructor(){super(...arguments),(0,ie.A)(this,"targetElement",null),(0,ie.A)(this,"containerRefHook",(e=>{this.targetElement=e,this.renderMarkdownIntoDiv()}))}renderMarkdownIntoDiv(){const{targetElement:e,props:t}=this;if(null===e)return;const{contents:n,createNode:r}=t,o=Jn(n),i=document.createRange();i.selectNodeContents(e),i.deleteContents();let a=null===r||void 0===r?void 0:r(o);if(void 0===a){const e=document.createElement("template");e.innerHTML=o,a=e.content}e.append(a);const l=e.getElementsByTagName("a");for(const u of l)u.target="_blank",u.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),e.createElement(er,{ref:this.containerRefHook})}}const nr=(0,ht.I)("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),rr=(0,ht.I)("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),or=(0,ht.I)("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1}),ir=["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"];let ar=0;const lr=t=>{const{placeholder:n,value:r,onKeyDown:i,highlight:l,altNewline:u,validatedSelection:s}=t,c=(0,$e.A)(t,ir),{onChange:d,className:f}=c,h=e.useRef(null),p=null!==r&&void 0!==r?r:"";(0,a.vA)(void 0!==d,"GrowingEntry must be a controlled input area");const[v]=e.useState((()=>"input-box-"+(ar=(ar+1)%1e7)));e.useEffect((()=>{const e=h.current;if(null===e)return;if(e.disabled)return;const t=p.toString().length;e.focus(),e.setSelectionRange(l?0:t,t)}),[]),e.useLayoutEffect((()=>{if(void 0!==s){var e;const t="number"===typeof s?[s,null]:s;null===(e=h.current)||void 0===e||e.setSelectionRange(t[0],t[1])}}),[s]);const g=e.useCallback((e=>{"Enter"===e.key&&e.shiftKey&&!0===u||null===i||void 0===i||i(e)}),[u,i]);return e.createElement(or,{className:"gdg-growing-entry"},e.createElement(rr,{className:f},p+"\n"),e.createElement(nr,(0,o.A)((0,o.A)({},c),{},{className:(null!==f&&void 0!==f?f:"")+" gdg-input",id:v,ref:h,onKeyDown:g,value:p,placeholder:n,dir:"auto"})))},ur=(0,ht.I)("div")({name:"MarkdownOverlayEditorStyle",class:"gdg-m1pnx84e",propsAsIs:!1,vars:{"m1pnx84e-0":[e=>e.targetWidth,"px"]}}),sr=t=>{const{value:n,onChange:r,forceEditMode:o,createNode:i,targetRect:a,onFinish:l,validatedSelection:u}=t,s=n.data,c=!0===n.readonly,[d,f]=e.useState(""===s||o),h=e.useCallback((()=>{f((e=>!e))}),[]),p=s?"gdg-ml-6":"";return d?e.createElement(ur,{targetWidth:a.width-20},e.createElement(lr,{autoFocus:!0,highlight:!1,validatedSelection:u,value:s,onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},onChange:r}),e.createElement("div",{className:"gdg-edit-icon gdg-checkmark-hover ".concat(p),onClick:()=>l(n)},e.createElement(C,null))):e.createElement(ur,{targetWidth:a.width},e.createElement(tr,{contents:s,createNode:i}),!c&&e.createElement(e.Fragment,null,e.createElement("div",{className:"spacer"}),e.createElement("div",{className:"gdg-edit-icon gdg-edit-hover ".concat(p),onClick:h},e.createElement(x,null))),e.createElement("textarea",{className:"gdg-md-edit-textarea gdg-input",autoFocus:!0}))},cr={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:""},kind:i.dd.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:Z,measure:(e,t,n)=>{const r=t.data.split("\n")[0];return e.measureText(r).width+2*n.cellHorizontalPadding},draw:e=>ne(e,e.cell.data,e.cell.contentAlign),onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:""}),provideEditor:()=>t=>{const{onChange:n,value:r,target:i,onFinishedEditing:a,markdownDivCreateNode:l,forceEditMode:u,validatedSelection:s}=t;return e.createElement(sr,{onFinish:a,targetRect:i,value:r,validatedSelection:s,onChange:e=>n((0,o.A)((0,o.A)({},r),{},{data:e.target.value})),forceEditMode:u,createNode:l})},onPaste:(e,t)=>e===t.data?void 0:(0,o.A)((0,o.A)({},t),{},{data:e})},dr={getAccessibilityString:e=>e.row.toString(),kind:i.Ld.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:function(e,t){const{ctx:n,theme:r}=e,o=r.markerFontFull,i=null!==t&&void 0!==t?t:{};(null===i||void 0===i?void 0:i.font)!==o&&(n.font=o,i.font=o);return i.deprep=fr,n.textAlign="center",i},measure:()=>44,draw:e=>function(e,t,n,r,o,i){const{ctx:a,rect:l,hoverAmount:u,theme:s}=e,{x:c,y:d,width:f,height:h}=l,p=n?1:"checkbox-visible"===r?.6+.4*u:u;if("number"!==r&&p>0){a.globalAlpha=p;const e=7*(n?u:1);if(Ie(a,s,n,o?c+e:c,d,o?f-e:f,h,!0,void 0,void 0,18,"center",i),o){a.globalAlpha=u,a.beginPath();for(const e of[3,6])for(const t of[-5,-1,3])a.rect(c+e,d+h/2+t,2,2);a.fillStyle=s.textLight,a.fill(),a.beginPath()}a.globalAlpha=1}if("number"===r||"both"===r&&!n){const e=t.toString(),n=s.markerFontFull,o=c+f/2;"both"===r&&0!==u&&(a.globalAlpha=1-u),a.fillStyle=s.textLight,a.font=n,a.fillText(e,o,d+h/2+K(a,n)),0!==u&&(a.globalAlpha=1)}}(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle,e.cell.checkboxStyle),onClick:e=>{const{bounds:t,cell:n,posX:r,posY:i}=e,{width:a,height:l}=t,u=n.drawHandle?7+(a-7)/2:a/2,s=l/2;if(Math.abs(r-u)<=10&&Math.abs(i-s)<=10)return(0,o.A)((0,o.A)({},n),{},{checked:!n.checked})},onPaste:()=>{}};function fr(e){const{ctx:t}=e;t.textAlign="start"}const hr={getAccessibilityString:()=>"",kind:i.Ld.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>function(e,t,n){const{ctx:r,rect:o,hoverAmount:i,theme:a,spriteManager:l}=e,{x:u,y:s,width:c,height:d}=o;r.beginPath(),r.globalAlpha=i,r.rect(u+1,s+1,c,d-2),r.fillStyle=a.bgHeaderHovered,r.fill(),r.globalAlpha=1,r.beginPath();const f=""!==t;let h=0;if(void 0!==n){const e=8,t=d-e,o=u+e/2,c=s+e/2;l.drawSprite(n,"normal",r,o,c,t,a,f?1:i),h=t}else{h=24;const e=12,t=f?e:i*e,n=f?0:(1-i)*e*.5,o=a.cellHorizontalPadding+4;t>0&&(r.moveTo(u+o+n,s+d/2),r.lineTo(u+o+n+t,s+d/2),r.moveTo(u+o+n+.5*t,s+d/2-.5*t),r.lineTo(u+o+n+.5*t,s+d/2+.5*t),r.lineWidth=2,r.strokeStyle=a.bgIconHeader,r.lineCap="round",r.stroke())}r.fillStyle=a.textMedium,r.fillText(t,h+u+a.cellHorizontalPadding+.5,s+d/2+K(r,a)),r.beginPath()}(e,e.cell.hint,e.cell.icon),onPaste:()=>{}};const pr=e.lazy((async()=>await Promise.resolve().then(n.bind(n,6082)))),vr={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:""},kind:i.dd.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:Z,draw:e=>ne(e,e.cell.displayData,e.cell.contentAlign),measure:(e,t,n)=>e.measureText(t.displayData).width+2*n.cellHorizontalPadding,onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:void 0}),provideEditor:()=>t=>{const{isHighlighted:n,onChange:r,value:i,validatedSelection:a}=t;return e.createElement(e.Suspense,{fallback:null},e.createElement(pr,{highlight:n,disabled:!0===i.readonly,value:i.data,fixedDecimals:i.fixedDecimals,allowNegative:i.allowNegative,thousandSeparator:i.thousandSeparator,decimalSeparator:i.decimalSeparator,validatedSelection:a,onChange:e=>{var t;return r((0,o.A)((0,o.A)({},i),{},{data:Number.isNaN(null!==(t=e.floatValue)&&void 0!==t?t:0)?0:e.floatValue}))}}))},onPaste:(e,t,n)=>{var r;const i="number"===typeof n.rawValue?n.rawValue:Number.parseFloat("string"===typeof n.rawValue?n.rawValue:e);if(!Number.isNaN(i)&&t.data!==i)return(0,o.A)((0,o.A)({},t),{},{data:i,displayData:null!==(r=n.formattedString)&&void 0!==r?r:t.displayData})}},gr={getAccessibilityString:()=>"",measure:()=>108,kind:i.dd.Protected,needsHover:!1,needsHoverPosition:!1,draw:function(e){const{ctx:t,theme:n,rect:r}=e,{x:o,y:i,height:a}=r;t.beginPath();const l=2.5;let u=o+n.cellHorizontalPadding+l;const s=i+a/2,c=Math.cos(g(30))*l,d=Math.sin(g(30))*l;for(let f=0;f<12;f++)t.moveTo(u,s-l),t.lineTo(u,s+l),t.moveTo(u+c,s-d),t.lineTo(u-c,s+d),t.moveTo(u-c,s-d),t.lineTo(u+c,s+d),u+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=n.textLight,t.stroke()},onPaste:()=>{}};const mr={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:""},kind:i.dd.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>Z(e,t,e.theme.textLight),draw:e=>ne(e,e.cell.data,e.cell.contentAlign),measure:(e,t,n)=>e.measureText(t.data).width+2*n.cellHorizontalPadding,provideEditor:()=>t=>{const{isHighlighted:n,onChange:r,value:i,validatedSelection:a}=t;return e.createElement(lr,{highlight:n,autoFocus:!0!==i.readonly,disabled:!1!==i.readonly,value:i.data,validatedSelection:a,onChange:e=>r((0,o.A)((0,o.A)({},i),{},{data:e.target.value}))})},onPaste:()=>{}},yr={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:""},kind:i.dd.Text,needsHover:e=>!0===e.hoverEffect,needsHoverPosition:!1,drawPrep:Z,useLabel:!0,draw:e=>{const{cell:t,hoverAmount:n,hyperWrapping:r,ctx:o,rect:i,theme:a,overrideCursor:l}=e,{displayData:u,contentAlign:s,hoverEffect:c,allowWrapping:d}=t;if(!0===c&&n>0){var f;o.textBaseline="alphabetic";const e=a.cellHorizontalPadding,t=a.cellVerticalPadding,r=G(u,o,a.baseFontFull,"alphabetic"),s=i.height-t,c=Math.min(s,2.5*r.actualBoundingBoxAscent);o.beginPath(),re(o,i.x+e/2,i.y+(i.height-c)/2+1,r.width+3*e,c-1,null!==(f=a.roundingRadius)&&void 0!==f?f:4),o.globalAlpha=n,o.fillStyle=(0,ve.fu)(a.textDark,.1),o.fill(),o.globalAlpha=1,o.fillStyle=a.textDark,o.textBaseline="middle",null===l||void 0===l||l("text")}ne(e,u,s,d,r)},measure:(e,t,n)=>{const r=t.displayData.split("\n",!0===t.allowWrapping?void 0:1);let o=0;for(const i of r)o=Math.max(o,e.measureText(i).width);return o+2*n.cellHorizontalPadding},onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:""}),provideEditor:t=>({disablePadding:!0===t.allowWrapping,editor:n=>{const{isHighlighted:r,onChange:i,value:a,validatedSelection:l}=n;return e.createElement(lr,{style:!0===t.allowWrapping?{padding:"3px 8.5px"}:void 0,highlight:r,autoFocus:!0!==a.readonly,disabled:!0===a.readonly,altNewline:!0,value:a.data,validatedSelection:l,onChange:e=>i((0,o.A)((0,o.A)({},a),{},{data:e.target.value}))})}}),onPaste:(e,t,n)=>{var r;return e===t.data?void 0:(0,o.A)((0,o.A)({},t),{},{data:e,displayData:null!==(r=n.formattedString)&&void 0!==r?r:t.displayData})}},br=(0,ht.I)("div")({name:"UriOverlayEditorStyle",class:"gdg-u1rrojo",propsAsIs:!1}),wr=t=>{const{uri:n,onChange:r,forceEditMode:o,readonly:i,validatedSelection:a,preview:l}=t,[u,s]=e.useState(!i&&(""===n||o)),c=e.useCallback((()=>{s(!0)}),[]);return u?e.createElement(lr,{validatedSelection:a,highlight:!0,autoFocus:!0,value:n,onChange:r}):e.createElement(br,null,e.createElement("a",{className:"gdg-link-area",href:n,target:"_blank",rel:"noopener noreferrer"},l),!i&&e.createElement("div",{className:"gdg-edit-icon",onClick:c},e.createElement(x,null)),e.createElement("textarea",{className:"gdg-input",autoFocus:!0}))};function xr(e,t,n,r){let o=n.cellHorizontalPadding;const i=t.height/2-e.actualBoundingBoxAscent/2,a=e.width,l=e.actualBoundingBoxAscent;return"right"===r?o=t.width-a-n.cellHorizontalPadding:"center"===r&&(o=t.width/2-a/2),{x:o,y:i,width:a,height:l}}const Cr={getAccessibilityString:e=>{var t,n;return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:""},kind:i.dd.Uri,needsHover:e=>!0===e.hoverEffect,needsHoverPosition:!0,useLabel:!0,drawPrep:Z,draw:e=>{var t;const{cell:n,theme:r,overrideCursor:i,hoverX:a,hoverY:l,rect:u,ctx:s}=e,c=null!==(t=n.displayData)&&void 0!==t?t:n.data,d=!0===n.hoverEffect;if(void 0!==i&&d&&void 0!==a&&void 0!==l){const t=xr(G(c,s,r.baseFontFull),u,r,n.contentAlign),{x:d,y:f,width:h,height:p}=t;if(a>=d-4&&a<=d-4+h+8&&l>=f-4&&l<=f-4+p+8){const t=K(s,r.baseFontFull);i("pointer");const a=5,l=f-t;s.beginPath(),s.moveTo(u.x+d,Math.floor(u.y+l+p+a)+.5),s.lineTo(u.x+d+h,Math.floor(u.y+l+p+a)+.5),s.strokeStyle=r.linkColor,s.stroke(),s.save(),s.fillStyle=e.cellFillColor,ne((0,o.A)((0,o.A)({},e),{},{rect:(0,o.A)((0,o.A)({},u),{},{x:u.x-1})}),c,n.contentAlign),ne((0,o.A)((0,o.A)({},e),{},{rect:(0,o.A)((0,o.A)({},u),{},{x:u.x-2})}),c,n.contentAlign),ne((0,o.A)((0,o.A)({},e),{},{rect:(0,o.A)((0,o.A)({},u),{},{x:u.x+1})}),c,n.contentAlign),ne((0,o.A)((0,o.A)({},e),{},{rect:(0,o.A)((0,o.A)({},u),{},{x:u.x+2})}),c,n.contentAlign),s.restore()}}s.fillStyle=d?r.linkColor:r.textDark,ne(e,c,n.contentAlign)},onClick:e=>{var t;const{cell:n,bounds:r,posX:o,posY:i,theme:a}=e,l=null!==(t=n.displayData)&&void 0!==t?t:n.data;if(!0!==n.hoverEffect||void 0===n.onClickUri)return;const u=function(e,t){const n=Y(e,void 0,"middle",t);return $[n]}(l,a.baseFontFull);if(void 0===u)return;const s=xr(u,r,a,n.contentAlign);ke({x:s.x-4,y:s.y-4,width:s.width+8,height:s.height+8},o,i)&&n.onClickUri(e)},measure:(e,t,n)=>{var r;return e.measureText(null!==(r=t.displayData)&&void 0!==r?r:t.data).width+2*n.cellHorizontalPadding},onDelete:e=>(0,o.A)((0,o.A)({},e),{},{data:""}),provideEditor:t=>n=>{var r;const{onChange:i,value:a,forceEditMode:l,validatedSelection:u}=n;return e.createElement(wr,{forceEditMode:!0!==a.readonly&&(l||!0===t.hoverEffect&&void 0!==t.onClickUri),uri:a.data,preview:null!==(r=a.displayData)&&void 0!==r?r:a.data,validatedSelection:u,readonly:!0===a.readonly,onChange:e=>i((0,o.A)((0,o.A)({},a),{},{data:e.target.value}))})},onPaste:(e,t,n)=>{var r;return e===t.data?void 0:(0,o.A)((0,o.A)({},t),{},{data:e,displayData:null!==(r=n.formattedString)&&void 0!==r?r:t.displayData})}},kr=[dr,hr,Jt,nn,ln,hn,vn,cr,vr,gr,mr,yr,Cr],Sr='<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">',Dr=e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n<path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z" fill="').concat(t,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z" fill="').concat(t,'"/>\n</svg>\n ')},Er={headerRowID:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'<rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/><path d="M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z" fill="').concat(t,'"/></svg>')},headerNumber:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z" fill="').concat(t,'"/>\n </svg>')},headerCode:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'<rect x="2" y="2" width="16" height="16" rx="4" fill="').concat(n,'"/><path d="m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z" fill="').concat(t,'"/></svg>')},headerString:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z" fill="').concat(t,'"/>\n</svg>')},headerBoolean:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path\n d="M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z"\n fill="').concat(n,'"\n />\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z"\n fill="').concat(t,'"\n />\n</svg>')},headerAudioUri:Dr,headerVideoUri:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z" fill="').concat(t,'"/>\n</svg>')},headerEmoji:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <path d="M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z" fill="').concat(t,'"/>\n <path d="M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="').concat(t,'"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z" fill="').concat(t,'"/>\n <path d="M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="').concat(t,'"/>\n </svg>')},headerImage:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path opacity=".5" fill-rule="evenodd" clip-rule="evenodd" d="M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z" fill="').concat(t,'"/>\n</svg>')},headerUri:Dr,headerPhone:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <path fill="').concat(t,'" d="M3 3h14v14H3z"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z" fill="').concat(n,'"/>\n </svg>')},headerMarkdown:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z" fill="').concat(t,'"/>\n </svg>')},headerDate:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z" fill="').concat(t,'"/>\n</svg>')},headerTime:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z" fill="').concat(t,'"/>\n <path d="M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z" fill="').concat(t,'"/>\n </svg>')},headerEmail:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z" fill="').concat(t,'"/>\n</svg>')},headerReference:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <rect x="2" y="8" width="10" height="8" rx="2" fill="').concat(n,'"/>\n <rect x="8" y="4" width="10" height="8" rx="2" fill="').concat(n,'"/>\n <path d="M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z" fill="').concat(t,'"/>\n </svg>')},headerIfThenElse:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path fill="').concat(t,'" d="M4 3h12v14H4z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z" fill="').concat(n,'"/>\n</svg>')},headerSingleValue:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z" fill="').concat(t,'"/>\n </svg>')},headerLookup:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z" fill="').concat(t,'"/>\n </svg>')},headerTextTemplate:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z" fill="').concat(t,'"/>\n</svg>')},headerMath:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z" fill="').concat(t,'"/>\n <path d="M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z" fill="').concat(t,'"/>\n</svg>')},headerRollup:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="').concat(n,'"/>\n <path d="M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z" fill="').concat(t,'"/>\n </svg>')},headerJoinStrings:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z" fill="').concat(t,'"/>\n</svg>')},headerSplitString:e=>{const t=e.fgColor,n=e.bgColor;return"\n ".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path d="M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z" fill="').concat(t,'"/>\n </svg>')},headerGeoDistance:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="').concat(n,'"/>\n <path d="M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z" fill="').concat(t,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z" fill="').concat(t,'"/>\n</svg>')},headerArray:e=>{const t=e.fgColor,n=e.bgColor;return"".concat(Sr,'\n <rect x="2" y="2" width="16" height="16" rx="2" fill="').concat(n,'"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z" fill="').concat(t,'"/>\n</svg>')},rowOwnerOverlay:e=>{const t=e.fgColor,n=e.bgColor;return'\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z" fill="'.concat(n,'" stroke="').concat(t,'" stroke-width="2"/>\n </svg>')},protectedColumnOverlay:e=>{const t=e.fgColor,n=e.bgColor;return'\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z" fill="'.concat(n,'" stroke="').concat(t,'" stroke-width="2"/>\n </svg>\n')},renameIcon:e=>{const t=e.bgColor;return"".concat(Sr,'\n <path stroke="').concat(t,'" stroke-width="2" d="M12 3v14"/>\n <path stroke="').concat(t,'" stroke-width="2" stroke-linecap="round" d="M10 4h4m-4 12h4"/>\n <path d="M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z" fill="').concat(t,'"/>\n </svg>\n')}};var Ar=n(9889);const _r=[];const Or=class extends de{constructor(){super(...arguments),(0,ie.A)(this,"imageLoaded",(()=>{})),(0,ie.A)(this,"loadedLocations",[]),(0,ie.A)(this,"cache",{}),(0,ie.A)(this,"sendLoaded",Ar((()=>{this.imageLoaded(new he(this.loadedLocations)),this.loadedLocations=[]}),20)),(0,ie.A)(this,"clearOutOfWindow",(()=>{const e=Object.keys(this.cache);for(const t of e){const e=this.cache[t];let n=!1;for(let t=0;t<e.cells.length;t++){const r=e.cells[t];if(this.isInWindow(r)){n=!0;break}}n?e.cells=e.cells.filter(this.isInWindow):(e.cancel(),delete this.cache[t])}}))}setCallback(e){this.imageLoaded=e}loadImage(e,t,n,r){var o;let i=!1;const a=null!==(o=_r.pop())&&void 0!==o?o:new Image;let l=!1;const u={img:void 0,cells:[le(t,n)],url:e,cancel:()=>{l||(l=!0,_r.length<12?_r.unshift(a):i||(a.src=""))}},s=new Promise((e=>a.addEventListener("load",(()=>e(null)))));requestAnimationFrame((async()=>{try{a.src=e,await s,await a.decode();const t=this.cache[r];if(void 0!==t&&!l){t.img=a;for(const e of t.cells)this.loadedLocations.push(ce(e));i=!0,this.sendLoaded()}}catch(t){u.cancel()}})),this.cache[r]=u}loadOrGetImage(e,t,n){const r=e,o=this.cache[r];if(void 0!==o){const e=le(t,n);return o.cells.includes(e)||o.cells.push(e),o.img}this.loadImage(e,t,n,r)}},Fr=e.forwardRef(((t,n)=>{const r=e.useMemo((()=>(0,o.A)((0,o.A)({},Er),t.headerIcons)),[t.headerIcons]),i=e.useMemo((()=>{var e;return null!==(e=t.imageWindowLoader)&&void 0!==e?e:new Or}),[t.imageWindowLoader]);return e.createElement(Zt,(0,o.A)((0,o.A)({},t),{},{renderers:kr,headerIcons:r,ref:n,imageWindowLoader:i}))}));var Rr=n(1001);const Mr=Rr.default||Rr;var Tr=n(3536),Pr=n(7084),Ir=n.n(Pr),Lr=n(7950);function zr(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,r.key,r)}}function Nr(e,t,n){return t&&zr(e.prototype,t),n&&zr(e,n),e}function Br(){return Br=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},Br.apply(this,arguments)}function Hr(e,t){return Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hr(e,t)}function jr(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 Vr(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return jr(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)?jr(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wr(t){var n=(0,e.useRef)(null);return function(e){e&&e!==n.current&&(n.current=e,t(e))}}var Ur="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;function $r(e){return parseFloat(e.replace("px",""))}function Xr(e,t,n){return e<t?t:e>n?n:e}function Yr(e){return null!==e&&void 0!==e}function Gr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Vr(t);!(n=r()).done;){var o=n.value;o&&("function"===typeof o?o(e):o.current=e)}}}function Kr(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,Kr(e.parentElement,t))}function qr(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function Qr(t){var n=t.enabled,r=t.onChange,o=t.environment,i=t.ResizeObserverPolyfill,a=t.overflowContainer,l=t.triggerOption,u=function(e,t){if("undefined"!==typeof e)return t||e.ResizeObserver}(o,i);(0,e.useEffect)((function(){}),[u]);var s=(0,e.useRef)(null),c=Boolean(l),d=function(t){var n=(0,e.useRef)(t);return(0,e.useMemo)((function(){return[function(){return n.current},function(e){n.current="function"===typeof e?e(n.current):e}]}),[])}({scrollContainers:[],trigger:null,layer:null}),f=d[0],h=d[1],p=function(){var t=(0,e.useRef)([]);return(0,e.useMemo)((function(){return{hasEventSubscriptions:function(){return t.current.length>0},removeAllEventSubscriptions:function(){for(var e,n=Vr(t.current);!(e=n()).done;)(0,e.value)();t.current=[]},addEventSubscription:function(e){t.current.push(e)}}}),[])}(),v=p.hasEventSubscriptions,g=p.addEventSubscription,m=p.removeAllEventSubscriptions,y=(0,e.useCallback)((function(){var e=f(),t=e.layer,n=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(qr("layer"));if(!n&&!c)throw new Error(qr("trigger"));var l={top:0,left:0};if(a){var u=a.scrollLeft;l={top:a.scrollTop,left:u}}else{var d=o.scrollX;l={top:o.scrollY,left:d}}var h={left:0,top:0};if(a){var p=o.getComputedStyle(a),v=p.borderLeftWidth,g=p.borderTopWidth;h={left:$r(v)||0,top:$r(g)||0}}r({layer:t,trigger:n,scrollContainers:i,arrow:s.current},l,h)}),[f,r,o,s,c]),b=(0,e.useCallback)((function(){var e=f(),t=e.trigger,n=e.layer,r=e.scrollContainers;if(!n)throw new Error(qr("layer"));if(!t&&!c)throw new Error(qr("trigger"));if(u){for(var i=!1,a=new u((function(){i?y():i=!0})),l=0,s=[t,n,document.body];l<s.length;l++){var d=s[l];d&&a.observe(d)}g((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var h,p=function(){var e=h.value;e.addEventListener("scroll",y),g((function(){return e.removeEventListener("scroll",y)}))},v=Vr([o].concat(r));!(h=v()).done;)p()}),[f,g,y,o,u,c]),w=(0,e.useCallback)((function(e,t){n&&e&&e!==t&&(m(),b(),y())}),[m,b,y,n]),x=Wr((0,e.useCallback)((function(e){var t=f().layer;h((function(t){return Br({},t,{layer:e})})),w(t,e)}),[f,h,w])),C=(0,e.useCallback)((function(e){var t=Kr(e,o),n=t[0];if(n){var r=o.getComputedStyle(n).position;["relative","absolute","fixed"].includes(r)||a||(n.style.position="relative")}return t}),[o,a]),k=Wr((0,e.useCallback)((function(e){var t=C(e),n=f().trigger;h((function(n){return Br({},n,{trigger:e,scrollContainers:t})})),w(n,e)}),[f,h,w,C])),S=null==l||null==l.getParent?void 0:l.getParent();return Ur((function(){S&&h((function(e){return Br({},e,{scrollContainers:C(S)})}))}),[S,h,C]),Ur((function(){return n&&(v()||b()),function(){v()&&m()}}),[n,v,b,m]),Ur((function(){n&&y()})),{triggerRef:k,layerRef:x,arrowRef:s,closestScrollContainer:f().scrollContainers[0]||null}}var Zr=(0,e.createContext)({});function Jr(t){var n=t.children,r=t.registrations,o=(0,e.useCallback)((function(e){return r.current.add(e),function(){return r.current.delete(e)}}),[r]);return(0,e.createElement)(Zr.Provider,{value:o},n)}function eo(t){var n=t.isOpen,r=t.onOutsideClick,o=t.onParentClose,i=(0,e.useRef)(null),a=(0,e.useRef)(null),l=(0,e.useRef)(new Set),u=(0,e.useContext)(Zr),s=(0,e.useCallback)((function(e){var t=e.target,n=i.current&&i.current.contains(t),r=a.current&&a.current.contains(t),o=function(e,t){for(var n,r=Vr(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(l.current,e);return r&&o&&l.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&o}),[i,a,l]);return(0,e.useEffect)((function(){if("function"===typeof u)return u({shouldCloseWhenClickedOutside:s,closeChild:function(){o&&o()}})}),[u,s,o,l]),(0,e.useEffect)((function(){if(!(!n||!r||"function"===typeof u))return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){s(e)&&r()}}),[n,r,s,u]),(0,e.useEffect)((function(){n||l.current.forEach((function(e){return(0,e.closeChild)()}))}),[n]),{closeOnOutsideClickRefs:{trigger:i,layer:a},registrations:l}}var to={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},no=function(){function e(e,t,n,r,o,i,a,l,u){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=l,this.isPush=u}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function ro(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new no(e,t?ro(to[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var oo={top:ro("top"),bottom:ro("bottom"),left:ro("left"),right:ro("right")},io=Br({},oo,{center:ro("center")}),ao=["top","left","bottom","right"],lo=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(ao.map((function(e){return[e,n[e]]}))),a=Vr(r);!(o=a()).done;)for(var l,u=o.value,s=Vr(ao);!(l=s()).done;){var c=l.value;i[c]=Math.min(i[c],u[c])}return new e(i)},Nr(e,[{key:"allSidesArePositive",get:function(){var e=this;return ao.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(ao.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function uo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?$r(t):0)}),0)}function so(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var co={top:0,left:0,right:0,bottom:0,width:0,height:0},fo=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,co,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,l=void 0===a?window:a,u=r.withScrollbars,s=void 0===u||u,c=new e(so(t.getBoundingClientRect()));if(!i){var d=l.getComputedStyle(t),f=d.width,h=d.height,p=d.boxSizing,v=d.borderLeft,g=d.borderRight,m=d.borderTop,y=d.borderBottom,b=d.paddingLeft,w=d.paddingRight,x=d.paddingTop,C=d.paddingBottom;c=new e(Br({},c,{width:"border-box"===p?$r(f):uo(f,v,g,b,w),height:"border-box"===p?$r(h):uo(h,m,y,x,C)}))}if(!s){var k=c.width-t.clientWidth,S=c.height-t.clientHeight;return c.substract({right:k,bottom:S})}return c},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,o=null!=r?r:{},i=o.clientWidth,a=void 0===i?0:i,l=o.clientHeight,u=void 0===l?0:l;return new e({width:a,height:u,right:a,bottom:u})};var t=e.prototype;return t.toObject=function(){return so(this)},t.merge=function(t){var n=this.toObject();return new e(Br({},n,"function"===typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],l=i[1];if(a in oo){var u=oo[a];n[a]+=u.factor(l),n[u.isHorizontal?"width":"height"]-=l}else n[a]-=l||0}return new e(n)},t.offsetsTo=function(e){return new lo({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(oo);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Nr(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),ho=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"===typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Br({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,l=t.isHorizontal,u=t.oppositeCssProp,s=t.oppositeSizeProp,c=t.prop,d=t.opposite,f=fo.empty();f[d.prop]=o[c]-t.factor(this.offsets.trigger),f[c]=f[d.prop]-t.factor(i[t.sizeProp]);var h=2*this.offsets.arrow,p=o[u]-(i[s]-a[s])+h,v=o[u]+(o[s]-a[s])-h;if(n.isPush||(p+=i[s],v+=i[s]),n.isCenter){var g=(l?oo.top:oo.left).prop,m=(l?oo.bottom:oo.right).prop;f[g]=Xr(o[g]+o[s]/2-i[s]/2+e,p,v),f[m]=f[g]+i[s]}else{var y=n,b=o[y.prop],w=b<p?p-b:b>v?v-b:0;f[y.prop]=Xr(b+e+w,p,v),f[y.opposite.prop]=f[y.prop]+n.factor(i[s])}f.width=f.right-f.left,f.height=f.bottom-f.top;var x=fo.create(f);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=lo.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Nr(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets();return(null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[oo[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[])[0]||null}}]),e}(),po=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Hr(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=fo.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(ho);var vo={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null};var go=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=oo[n];return[o,"center"===r?io.center:o.isHorizontal?"start"===r?io.top:io.bottom:"start"===r?io.left:io.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],l=i[1],u=oo[a.isHorizontal?n.preferY:n.preferX],s=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function c(e,o){return new ho(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=c(a,l),d[1]=c(a,l.isCenter?u:io.center),d[2]=c(a,io[(l.opposite.isCenter?u.opposite:l.opposite).prop]),d[3]=c(u,s?a:io[a.opposite.prop]),d[4]=c(u,io.center),d[5]=c(u,s?io[a.opposite.prop]:a),d[6]=c(oo[u.opposite.prop],s?a:io[a.opposite.prop]),d[7]=c(oo[u.opposite.prop],io.center),d[8]=c(oo[u.opposite.prop],s?io[a.opposite.prop]:a),d[9]=c(oo[a.opposite.prop],l),d[10]=c(oo[a.opposite.prop],l.isCenter?u:io.center),d[11]=c(oo[a.opposite.prop],io[(l.opposite.isCenter?u.opposite:l.opposite).prop]),d=d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new po(io.center,io.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof po)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var l,u=e.getContainerOffsets(),s=e.secondary;return l=e.triggerIsBigger||i===e?a.isPush?-1:1:s===io.left||[io.top,io.center].includes(s)&&a.isPush?-1:1,u[a.prop]*l},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return vo;var o=e.layer,i=e.trigger,a=e.arrow,l=t.primary.oppositeSizeProp,u=i[l]>o[l],s=n+a[l]/2,c=o[l]-a[l]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,l=t.primary.isHorizontal?["top","bottom"]:["left","right"],u=l[0],s=l[1],c=r[u]+r[a]/2-o[u]-i[a]/2-n,d=r[s]-r[a]/2-o[s]+i[a]/2+n;return(c<0?-c:0)+(d>0?-d:0)}(e,t,n),f=t.primary.prop,h=t.primary.oppositeCssProp,p=u?o[l]/2+d:i[h]+i[l]/2-o[h];return Br({},vo,((r={})[f]="100%",r[h]=Xr(p,s,c),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Br({},o,{position:"fixed",top:e.top,left:e.left}):Br({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=lo.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0)),r=Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[oo[n].sizeProp]}));return r?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),mo=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,l,u){var s=fo.fromWindow(t);return new e({layer:fo.fromElement(n,{environment:t,withTransform:!1}),trigger:u?fo.create(so(u())):fo.fromElement(r),arrow:i?fo.fromElement(i):fo.empty(),parent:o?fo.fromElement(o):s,window:s,scrollContainers:[s].concat(a.map((function(e){return fo.fromElement(e,{withScrollbars:!1})})))},l)};var t=e.prototype;return t.merge=function(t){return new e(Br({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Nr(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),yo=null;var bo={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function wo(t){var n,r=t.isOpen,o=void 0!==r&&r,i=t.overflowContainer,a=void 0===i?bo.overflowContainer:i,l=t.environment,u=void 0===l?"undefined"!==typeof window?window:void 0:l,s=t.ResizeObserver,c=t.placement,d=void 0===c?bo.placement:c,f=t.possiblePlacements,h=void 0===f?bo.possiblePlacements:f,p=t.preferX,v=void 0===p?bo.preferX:p,g=t.preferY,m=void 0===g?bo.preferY:g,y=t.auto,b=void 0===y?bo.auto:y,w=t.snap,x=void 0===w?bo.snap:w,C=t.triggerOffset,k=void 0===C?bo.triggerOffset:C,S=t.containerOffset,D=void 0===S?bo.containerOffset:S,E=t.arrowOffset,A=void 0===E?bo.arrowOffset:E,_=t.container,O=void 0===_?bo.container:_,F=t.layerDimensions,R=void 0===F?null:F,M=t.onDisappear,T=t.onOutsideClick,P=t.onParentClose,I=t.trigger,L=(0,e.useState)((function(){return{layerSide:"center"===d?"center":go.getSidesFromPlacementType(d)[0].prop,styles:{layer:{position:a?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),z=L[0],N=L[1],B=(0,e.useRef)(null),H=function(t,n){var r=(0,e.useRef)(t);return n?(r.current=t,r):(r.current=null,r)}(z,o),j=(0,e.useRef)({cancelled:!1});(0,e.useEffect)((function(){return function(){j.current.cancelled=!0}}),[]);var V=(0,e.useCallback)((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,l=e.trigger,s=i[0],c=mo.create(u,o,l,s,r,i,a,null==I?void 0:I.getBounds),f={placement:d,possiblePlacements:h,auto:b,layerDimensions:R,arrowOffset:A,containerOffset:D,triggerOffset:k,preferX:v,preferY:m,snap:x,overflowContainer:a},p=go.create(c,f).result(t,n),g=p.hasDisappeared,y={layerSide:p.layerSide,styles:p.styles};if(!H.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(H.current,y)){H.current=y,j.current.cancelled=!0;var w={cancelled:!1};j.current=w,Promise.resolve().then((function(){w.cancelled||N(y)}))}Yr(g)&&Yr(M)&&M(g)}),[A,b,D,u,R,M,a,d,h,v,m,x,k,H,I]),W=Qr({ResizeObserverPolyfill:s,environment:u,enabled:o,overflowContainer:a,onChange:V,triggerOption:I}),U=W.triggerRef,$=W.layerRef,X=W.arrowRef,Y=W.closestScrollContainer,G=eo({isOpen:o,onOutsideClick:T,onParentClose:P}),K=G.closeOnOutsideClickRefs,q=G.registrations,Q={triggerProps:Boolean(I)?{}:{ref:Gr(U,K.trigger,B)},layerProps:{ref:Gr($,K.layer),style:z.styles.layer},arrowProps:{ref:X,style:z.styles.arrow,layerSide:z.layerSide},layerSide:z.layerSide,triggerBounds:o?I?I.getBounds():null==(n=B.current)?void 0:n.getBoundingClientRect():null,renderLayer:function(t){return"undefined"!==typeof document?(0,Lr.createPortal)((0,e.createElement)(Jr,{registrations:q,children:t}),a||!Y?function(e){var t;if("function"===typeof e){if(!(t=e())||!(t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"===typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(yo instanceof HTMLElement)return yo;(t=document.getElementById(xo))||((t=document.createElement("div")).id=xo,t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(O):Y):null}};return Q}var xo="layers";var Co;function ko(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(null,arguments)}!function(e){e[e.ENTERING=0]="ENTERING",e[e.LEAVING=1]="LEAVING",e[e.IDLE=2]="IDLE"}(Co||(Co={}));var Do=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(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Eo=Math.abs,Ao=String.fromCharCode,_o=Object.assign;function Oo(e){return e.trim()}function Fo(e,t,n){return e.replace(t,n)}function Ro(e,t){return e.indexOf(t)}function Mo(e,t){return 0|e.charCodeAt(t)}function To(e,t,n){return e.slice(t,n)}function Po(e){return e.length}function Io(e){return e.length}function Lo(e,t){return t.push(e),e}var zo=1,No=1,Bo=0,Ho=0,jo=0,Vo="";function Wo(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zo,column:No,length:a,return:""}}function Uo(e,t){return _o(Wo("",null,null,"",null,null,0),e,{length:-e.length},t)}function $o(){return jo=Ho>0?Mo(Vo,--Ho):0,No--,10===jo&&(No=1,zo--),jo}function Xo(){return jo=Ho<Bo?Mo(Vo,Ho++):0,No++,10===jo&&(No=1,zo++),jo}function Yo(){return Mo(Vo,Ho)}function Go(){return Ho}function Ko(e,t){return To(Vo,e,t)}function qo(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 Qo(e){return zo=No=1,Bo=Po(Vo=e),Ho=0,[]}function Zo(e){return Vo="",e}function Jo(e){return Oo(Ko(Ho-1,ni(91===e?e+2:40===e?e+1:e)))}function ei(e){for(;(jo=Yo())&&jo<33;)Xo();return qo(e)>2||qo(jo)>3?"":" "}function ti(e,t){for(;--t&&Xo()&&!(jo<48||jo>102||jo>57&&jo<65||jo>70&&jo<97););return Ko(e,Go()+(t<6&&32==Yo()&&32==Xo()))}function ni(e){for(;Xo();)switch(jo){case e:return Ho;case 34:case 39:34!==e&&39!==e&&ni(jo);break;case 40:41===e&&ni(e);break;case 92:Xo()}return Ho}function ri(e,t){for(;Xo()&&e+jo!==57&&(e+jo!==84||47!==Yo()););return"/*"+Ko(t,Ho-1)+"*"+Ao(47===e?e:Xo())}function oi(e){for(;!qo(Yo());)Xo();return Ko(e,Ho)}var ii="-ms-",ai="-moz-",li="-webkit-",ui="comm",si="rule",ci="decl",di="@keyframes";function fi(e,t){for(var n="",r=Io(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hi(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ci:return e.return=e.return||e.value;case ui:return"";case di:return e.return=e.value+"{"+fi(e.children,r)+"}";case si:e.value=e.props.join(",")}return Po(n=fi(e.children,r))?e.return=e.value+"{"+n+"}":""}function pi(e){return Zo(vi("",null,null,null,[""],e=Qo(e),0,[0],e))}function vi(e,t,n,r,o,i,a,l,u){for(var s=0,c=0,d=a,f=0,h=0,p=0,v=1,g=1,m=1,y=0,b="",w=o,x=i,C=r,k=b;g;)switch(p=y,y=Xo()){case 40:if(108!=p&&58==Mo(k,d-1)){-1!=Ro(k+=Fo(Jo(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:k+=Jo(y);break;case 9:case 10:case 13:case 32:k+=ei(p);break;case 92:k+=ti(Go()-1,7);continue;case 47:switch(Yo()){case 42:case 47:Lo(mi(ri(Xo(),Go()),t,n),u);break;default:k+="/"}break;case 123*v:l[s++]=Po(k)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==m&&(k=Fo(k,/\f/g,"")),h>0&&Po(k)-d&&Lo(h>32?yi(k+";",r,n,d-1):yi(Fo(k," ","")+";",r,n,d-2),u);break;case 59:k+=";";default:if(Lo(C=gi(k,t,n,s,c,o,l,b,w=[],x=[],d),i),123===y)if(0===c)vi(k,t,C,C,w,i,d,l,x);else switch(99===f&&110===Mo(k,3)?100:f){case 100:case 108:case 109:case 115:vi(e,C,C,r&&Lo(gi(e,C,C,0,0,o,l,b,o,w=[],d),x),o,x,d,l,r?w:x);break;default:vi(k,C,C,C,[""],x,0,l,x)}}s=c=h=0,v=m=1,b=k="",d=a;break;case 58:d=1+Po(k),h=p;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==$o())continue;switch(k+=Ao(y),y*v){case 38:m=c>0?1:(k+="\f",-1);break;case 44:l[s++]=(Po(k)-1)*m,m=1;break;case 64:45===Yo()&&(k+=Jo(Xo())),f=Yo(),c=d=Po(b=k+=oi(Go())),y++;break;case 45:45===p&&2==Po(k)&&(v=0)}}return i}function gi(e,t,n,r,o,i,a,l,u,s,c){for(var d=o-1,f=0===o?i:[""],h=Io(f),p=0,v=0,g=0;p<r;++p)for(var m=0,y=To(e,d+1,d=Eo(v=a[p])),b=e;m<h;++m)(b=Oo(v>0?f[m]+" "+y:Fo(y,/&\f/g,f[m])))&&(u[g++]=b);return Wo(e,t,n,0===o?si:l,u,s,c)}function mi(e,t,n){return Wo(e,t,n,ui,Ao(jo),To(e,2,-2),0)}function yi(e,t,n,r){return Wo(e,t,n,ci,To(e,0,r),To(e,r+1,-1),r)}var bi=function(e,t,n){for(var r=0,o=0;r=o,o=Yo(),38===r&&12===o&&(t[n]=1),!qo(o);)Xo();return Ko(e,Ho)},wi=function(e,t){return Zo(function(e,t){var n=-1,r=44;do{switch(qo(r)){case 0:38===r&&12===Yo()&&(t[n]=1),e[n]+=bi(Ho-1,t,n);break;case 2:e[n]+=Jo(r);break;case 4:if(44===r){e[++n]=58===Yo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ao(r)}}while(r=Xo());return e}(Qo(e),t))},xi=new WeakMap,Ci=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)||xi.get(n))&&!r){xi.set(e,!0);for(var o=[],i=wi(t,o),a=n.props,l=0,u=0;l<i.length;l++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},ki=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Si(e,t){switch(function(e,t){return 45^Mo(e,0)?(((t<<2^Mo(e,0))<<2^Mo(e,1))<<2^Mo(e,2))<<2^Mo(e,3):0}(e,t)){case 5103:return li+"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 li+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return li+e+ai+e+ii+e+e;case 6828:case 4268:return li+e+ii+e+e;case 6165:return li+e+ii+"flex-"+e+e;case 5187:return li+e+Fo(e,/(\w+).+(:[^]+)/,li+"box-$1$2"+ii+"flex-$1$2")+e;case 5443:return li+e+ii+"flex-item-"+Fo(e,/flex-|-self/,"")+e;case 4675:return li+e+ii+"flex-line-pack"+Fo(e,/align-content|flex-|-self/,"")+e;case 5548:return li+e+ii+Fo(e,"shrink","negative")+e;case 5292:return li+e+ii+Fo(e,"basis","preferred-size")+e;case 6060:return li+"box-"+Fo(e,"-grow","")+li+e+ii+Fo(e,"grow","positive")+e;case 4554:return li+Fo(e,/([^-])(transform)/g,"$1"+li+"$2")+e;case 6187:return Fo(Fo(Fo(e,/(zoom-|grab)/,li+"$1"),/(image-set)/,li+"$1"),e,"")+e;case 5495:case 3959:return Fo(e,/(image-set\([^]*)/,li+"$1$`$1");case 4968:return Fo(Fo(e,/(.+:)(flex-)?(.*)/,li+"box-pack:$3"+ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+li+e+e;case 4095:case 3583:case 4068:case 2532:return Fo(e,/(.+)-inline(.+)/,li+"$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(Po(e)-1-t>6)switch(Mo(e,t+1)){case 109:if(45!==Mo(e,t+4))break;case 102:return Fo(e,/(.+:)(.+)-([^]+)/,"$1"+li+"$2-$3$1"+ai+(108==Mo(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ro(e,"stretch")?Si(Fo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Mo(e,t+1))break;case 6444:switch(Mo(e,Po(e)-3-(~Ro(e,"!important")&&10))){case 107:return Fo(e,":",":"+li)+e;case 101:return Fo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+li+(45===Mo(e,14)?"inline-":"")+"box$3$1"+li+"$2$3$1"+ii+"$2box$3")+e}break;case 5936:switch(Mo(e,t+11)){case 114:return li+e+ii+Fo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return li+e+ii+Fo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return li+e+ii+Fo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return li+e+ii+e+e}return e}var Di=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ci:e.return=Si(e.value,e.length);break;case di:return fi([Uo(e,{value:Fo(e.value,"@","@"+li)})],r);case si:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fi([Uo(e,{props:[Fo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fi([Uo(e,{props:[Fo(t,/:(plac\w+)/,":"+li+"input-$1")]}),Uo(e,{props:[Fo(t,/:(plac\w+)/,":-moz-$1")]}),Uo(e,{props:[Fo(t,/:(plac\w+)/,ii+"input-$1")]})],r)}return""}))}}],Ei=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||Di,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var u,s,c=[hi,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],d=function(e){var t=Io(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}([Ci,ki].concat(i,c));o=function(e,t,n,r){u=n,function(e){fi(pi(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Do({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 f.sheet.hydrate(l),f};var Ai=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var _i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Oi=n(918),Fi=/[A-Z]|^ms/g,Ri=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mi=function(e){return 45===e.charCodeAt(1)},Ti=function(e){return null!=e&&"boolean"!==typeof e},Pi=(0,Oi.A)((function(e){return Mi(e)?e:e.replace(Fi,"-$&").toLowerCase()})),Ii=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Ri,(function(e,t,n){return zi={name:t,styles:n,next:zi},t}))}return 1===_i[e]||Mi(e)||"number"!==typeof t||0===t?t:t+"px"};function Li(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return zi={name:o.name,styles:o.styles,next:zi},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)zi={name:a.name,styles:a.styles,next:zi},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Li(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":Ti(l)&&(r+=Pi(i)+":"+Ii(i,l)+";")}else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=Li(e,t,a);switch(i){case"animation":case"animationName":r+=Pi(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var s=0;s<a.length;s++)Ti(a[s])&&(r+=Pi(i)+":"+Ii(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=zi,u=n(e);return zi=l,Li(e,t,u)}}var s=n;if(null==t)return s;var c=t[s];return void 0!==c?c:s}var zi,Ni=/label:\s*([^\s;{]+)\s*(;|$)/g;function Bi(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="";zi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Li(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Li(n,t,e[a]),r)o+=i[a]}Ni.lastIndex=0;for(var l,u="";null!==(l=Ni.exec(o));)u+="-"+l[1];var s=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:s,styles:o,next:zi}}var Hi=!!t.useInsertionEffect&&t.useInsertionEffect,ji=Hi||function(e){return e()},Vi=(Hi||e.useLayoutEffect,e.createContext("undefined"!==typeof HTMLElement?Ei({key:"css"}):null)),Wi=(Vi.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Vi);return t(n,o,r)}))}),Ui=e.createContext({});var $i={}.hasOwnProperty,Xi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ai(t,n,r),ji((function(){return function(e,t,n){Ai(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Gi=Wi((function(t,n,r){var o=t.css;"string"===typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=t[Xi],a=[o],l="";"string"===typeof t.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(n.registered,a,t.className):null!=t.className&&(l=t.className+" ");var u=Bi(a,void 0,e.useContext(Ui));l+=n.key+"-"+u.name;var s={};for(var c in t)$i.call(t,c)&&"css"!==c&&c!==Xi&&(s[c]=t[c]);return s.className=l,r&&(s.ref=r),e.createElement(e.Fragment,null,e.createElement(Yi,{cache:n,serialized:u,isStringTag:"string"===typeof i}),e.createElement(i,s))})),Ki=Gi,qi=(n(219),function(t,n){var r=arguments;if(null==n||!$i.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ki,i[1]=function(e,t){var n={};for(var r in t)$i.call(t,r)&&(n[r]=t[r]);return n[Xi]=e,n}(t,n);for(var a=2;a<o;a++)i[a]=r[a];return e.createElement.apply(null,i)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(qi||(qi={}));function Qi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bi(t)}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ji(e,t){if(e){if("string"==typeof e)return Zi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(e,t):void 0}}function ea(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,l=[],u=!0,s=!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)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||Ji(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ta=n(2284);const na=Math.min,ra=Math.max,oa=Math.round,ia=Math.floor,aa=e=>({x:e,y:e});function la(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ua(){return"undefined"!==typeof window}function sa(e){return fa(e)?(e.nodeName||"").toLowerCase():"#document"}function ca(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function da(e){var t;return null==(t=(fa(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function fa(e){return!!ua()&&(e instanceof Node||e instanceof ca(e).Node)}function ha(e){return!!ua()&&(e instanceof Element||e instanceof ca(e).Element)}function pa(e){return!!ua()&&(e instanceof HTMLElement||e instanceof ca(e).HTMLElement)}function va(e){return!(!ua()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ca(e).ShadowRoot)}function ga(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ma(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ya(e){return["html","body","#document"].includes(sa(e))}function ba(e){return ca(e).getComputedStyle(e)}function wa(e){if("html"===sa(e))return e;const t=e.assignedSlot||e.parentNode||va(e)&&e.host||da(e);return va(t)?t.host:t}function xa(e){const t=wa(e);return ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:pa(t)&&ga(t)?t:xa(t)}function Ca(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=xa(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ca(o);if(i){const e=ka(a);return t.concat(a,a.visualViewport||[],ga(o)?o:[],e&&n?Ca(e):[])}return t.concat(o,Ca(o,[],n))}function ka(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sa(e){const t=ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=pa(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=oa(n)!==i||oa(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Da(e){return ha(e)?e:e.contextElement}function Ea(e){const t=Da(e);if(!pa(t))return aa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sa(t);let a=(i?oa(n.width):n.width)/r,l=(i?oa(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Aa=aa(0);function _a(e){const t=ca(e);return ma()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Aa}function Oa(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Da(e);let a=aa(1);t&&(r?ha(r)&&(a=Ea(r)):a=Ea(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ca(e))&&t}(i,n,r)?_a(i):aa(0);let u=(o.left+l.x)/a.x,s=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ca(i),t=r&&ha(r)?ca(r):r;let n=e,o=ka(n);for(;o&&r&&t!==n;){const e=Ea(o),t=o.getBoundingClientRect(),r=ba(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,s*=e.y,c*=e.x,d*=e.y,u+=i,s+=a,n=ca(o),o=ka(n)}}return la({width:c,height:d,x:u,y:s})}function Fa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ra(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:u="function"===typeof IntersectionObserver,animationFrame:s=!1}=r,c=Da(e),d=i||a?[...c?Ca(c):[],...Ca(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=c&&u?function(e,t){let n,r=null;const i=da(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(u||t(),!h||!p)return;const v={rootMargin:-ia(f)+"px "+-ia(i.clientWidth-(d+h))+"px "+-ia(i.clientHeight-(f+p))+"px "+-ia(d)+"px",threshold:ra(0,na(1,s))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!g)return l();r?l(!1,r):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}1!==r||Fa(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(m,(0,o.A)((0,o.A)({},v),{},{root:i.ownerDocument}))}catch(y){r=new IntersectionObserver(m,v)}r.observe(e)}(!0),a}(c,n):null;let h,p=-1,v=null;l&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),c&&!s&&v.observe(c),v.observe(t));let g=s?Oa(e):null;return s&&function t(){const r=Oa(e);g&&!Fa(g,r)&&n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(h)}}var Ma=e.useLayoutEffect,Ta=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pa=function(){};function Ia(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function La(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(Ia(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var za=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,ta.A)(e)&&null!==e?[e]:[];var t},Na=function(e){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;var t=(0,$e.A)(e,Ta);return(0,o.A)({},t)},Ba=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&&void 0!==n?n:{},i(t,e),a)}};function Ha(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ja(e){return Ha(e)?window.pageYOffset:e.scrollTop}function Va(e,t){Ha(e)?window.scrollTo(0,t):e.scrollTop=t}function Wa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Pa,o=ja(e),i=t-o,a=0;!function t(){var l=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Va(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function Ua(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Va(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Va(e,Math.max(t.offsetTop-o,0))}function $a(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Xa=!1,Ya={get passive(){return Xa=!0}},Ga="undefined"!==typeof window?window:{};Ga.addEventListener&&Ga.removeEventListener&&(Ga.addEventListener("p",Pa,Ya),Ga.removeEventListener("p",Pa,!1));var Ka=Xa;function qa(e){return null!=e}function Qa(e,t,n){return e?t:n}var Za=["children","innerProps"],Ja=["children","innerProps"];function el(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=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),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),h=f.bottom,p=f.height,v=f.top,g=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:Ha(c=u)?window.innerHeight:c.clientHeight,y=ja(u),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,C=m-v,k=x+y,S=d-y-v,D=h-m+y+b,E=y+v-w,A=160;switch(o){case"auto":case"bottom":if(C>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return i&&Wa(u,D,A),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&C>=r)return i&&Wa(u,D,A),{placement:"bottom",maxHeight:a?C-b:S-b};if("auto"===o||a){var _=t,O=a?x:k;return O>=r&&(_=Math.min(O-b-l,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&Va(u,D),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(k>=p&&!a)return i&&Wa(u,E,A),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&x>=r){var F=t;return(!a&&k>=r||a&&x>=r)&&(F=a?x-w:k-w),i&&Wa(u,E,A),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var tl,nl=function(e){return"auto"===e?"bottom":e},rl=(0,e.createContext)(null),ol=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,l=t.menuPosition,u=t.menuShouldScrollIntoView,s=t.theme,c=((0,e.useContext)(rl)||{}).setPortalPlacement,d=(0,e.useRef)(null),f=ea((0,e.useState)(i),2),h=f[0],p=f[1],v=ea((0,e.useState)(null),2),g=v[0],m=v[1],y=s.spacing.controlHeight;return Ma((function(){var e=d.current;if(e){var t="fixed"===l,n=el({maxHeight:i,menuEl:e,minHeight:r,placement:a,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:y});p(n.maxHeight),m(n.placement),null===c||void 0===c||c(n.placement)}}),[i,a,l,u,r,c,y]),n({ref:d,placerProps:(0,o.A)((0,o.A)({},t),{},{placement:g||nl(a),maxHeight:h})})},il=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return qi("div",So({},Ba(e,"menu",{menu:!0}),{ref:n},r),t)},al=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,o.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ll=al,ul=al,sl=["size"],cl=["innerProps","isRtl","size"];var dl={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},fl=function(e){var t=e.size,n=(0,$e.A)(e,sl);return qi("svg",So({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dl},n))},hl=function(e){return qi(fl,So({size:20},e),qi("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"}))},pl=function(e){return qi(fl,So({size:20},e),qi("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"}))},vl=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},gl=vl,ml=vl,yl=function(){var e=Qi.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_"}}}(tl||(tl=ko(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),bl=function(e){var t=e.delay,n=e.offset;return qi("span",{css:Qi({animation:"".concat(yl," 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"},"","")})},wl=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return qi("div",So({ref:o},Ba(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},xl=["data"],Cl=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return qi("div",So({},Ba(e,"group",{group:!0}),l),qi(i,So({},a,{selectProps:c,theme:s,getStyles:r,getClassNames:o,cx:n}),u),qi("div",null,t))},kl=["innerRef","isDisabled","isHidden","inputClassName"],Sl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Dl={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,o.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Sl)},El=function(e){return(0,o.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Sl)},Al=function(e){var t=e.children,n=e.innerProps;return qi("div",n,t)};var _l=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,l=e.removeProps,u=e.selectProps,s=n.Container,c=n.Label,d=n.Remove;return qi(s,{data:r,innerProps:(0,o.A)((0,o.A)({},Ba(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:u},qi(c,{data:r,innerProps:(0,o.A)({},Ba(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),qi(d,{data:r,innerProps:(0,o.A)((0,o.A)({},Ba(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},Ol={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",So({},Ba(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||qi(hl,null))},Control:wl,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return qi("div",So({},Ba(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||qi(pl,null))},DownChevron:pl,CrossIcon:hl,Group:Cl,GroupHeading:function(e){var t=Na(e);t.data;var n=(0,$e.A)(t,xl);return qi("div",So({},Ba(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return qi("div",So({},Ba(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return qi("span",So({},t,Ba(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Na(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,l=r.inputClassName,u=(0,$e.A)(r,kl);return qi("div",So({},Ba(e,"input",{"input-container":!0}),{"data-value":n||""}),qi("input",So({className:t({input:!0},l),ref:o,style:El(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,a=(0,$e.A)(e,cl);return qi("div",So({},Ba((0,o.A)((0,o.A)({},a),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),qi(bl,{delay:0,offset:n}),qi(bl,{delay:160,offset:!0}),qi(bl,{delay:320,offset:!n}))},Menu:il,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return qi("div",So({},Ba(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,l=t.menuPlacement,u=t.menuPosition,s=(0,e.useRef)(null),c=(0,e.useRef)(null),d=ea((0,e.useState)(nl(l)),2),f=d[0],h=d[1],p=(0,e.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=ea((0,e.useState)(null),2),g=v[0],m=v[1],y=(0,e.useCallback)((function(){if(i){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}}(i),t="fixed"===u?0:window.pageYOffset,n=e[f]+t;n===(null===g||void 0===g?void 0:g.offset)&&e.left===(null===g||void 0===g?void 0:g.rect.left)&&e.width===(null===g||void 0===g?void 0:g.rect.width)||m({offset:n,rect:e})}}),[i,u,f,null===g||void 0===g?void 0:g.offset,null===g||void 0===g?void 0:g.rect.left,null===g||void 0===g?void 0:g.rect.width]);Ma((function(){y()}),[y]);var b=(0,e.useCallback)((function(){"function"===typeof c.current&&(c.current(),c.current=null),i&&s.current&&(c.current=Ra(i,s.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);Ma((function(){b()}),[b]);var w=(0,e.useCallback)((function(e){s.current=e,b()}),[b]);if(!n&&"fixed"!==u||!g)return null;var x=qi("div",So({ref:w},Ba((0,o.A)((0,o.A)({},t),{},{offset:g.offset,position:u,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),r);return qi(rl.Provider,{value:p},n?(0,Lr.createPortal)(x,n):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=(0,$e.A)(e,Ja);return qi("div",So({},Ba((0,o.A)((0,o.A)({},i),{},{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,i=(0,$e.A)(e,Za);return qi("div",So({},Ba((0,o.A)((0,o.A)({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:_l,MultiValueContainer:Al,MultiValueLabel:Al,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qi("div",So({role:"button"},n),t||qi(hl,{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 qi("div",So({},Ba(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 qi("div",So({},Ba(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return qi("div",So({},Ba(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return qi("div",So({},Ba(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 qi("div",So({},Ba(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}};var Fl=n(816);function Rl(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,(0,Fl.A)(r.key),r)}}function Ml(e,t){return Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ml(e,t)}function Tl(e){return Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tl(e)}function Pl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pl=function(){return!!e})()}function Il(e,t){if(t&&("object"==(0,ta.A)(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)}function Ll(e){return function(e){if(Array.isArray(e))return Zi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ji(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 zl=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Nl(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||zl(r)&&zl(o)))return!1;var r,o;return!0}for(var Bl={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"},Hl=function(e){return qi("span",So({css:Bl},e))},jl={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,l=e.isDisabled,u=e.isSelected,s=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t&&s){var d=l?" disabled":"",f="".concat(u?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Vl=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,l=t.isFocused,u=t.selectValue,s=t.selectProps,c=t.id,d=t.isAppleDevice,f=s.ariaLiveMessages,h=s.getOptionLabel,p=s.inputValue,v=s.isMulti,g=s.isOptionDisabled,m=s.isSearchable,y=s.menuIsOpen,b=s.options,w=s.screenReaderStatus,x=s.tabSelectsValue,C=s.isLoading,k=s["aria-label"],S=s["aria-live"],D=(0,e.useMemo)((function(){return(0,o.A)((0,o.A)({},jl),f||{})}),[f]),E=(0,e.useMemo)((function(){var e,t="";if(n&&D.onChange){var r=n.option,i=n.options,a=n.removedValue,l=n.removedValues,s=n.value,c=a||r||(e=s,Array.isArray(e)?null:e),d=c?h(c):"",f=i||l||void 0,p=f?f.map(h):[],v=(0,o.A)({isDisabled:c&&g(c,u),label:d,labels:p},n);t=D.onChange(v)}return t}),[n,D,g,u,h]),A=(0,e.useMemo)((function(){var e="",t=r||i,n=!!(r&&u&&u.includes(r));if(t&&D.onFocus){var o={focused:t,label:h(t),isDisabled:g(t,u),isSelected:n,options:a,context:t===r?"menu":"value",selectValue:u,isAppleDevice:d};e=D.onFocus(o)}return e}),[r,i,h,g,D,a,u,d]),_=(0,e.useMemo)((function(){var e="";if(y&&b.length&&!C&&D.onFilter){var t=w({count:a.length});e=D.onFilter({inputValue:p,resultsMessage:t})}return e}),[a,p,y,D,b,w,C]),O="initial-input-focus"===(null===n||void 0===n?void 0:n.action),F=(0,e.useMemo)((function(){var e="";if(D.guidance){var t=i?"value":y?"menu":"input";e=D.guidance({"aria-label":k,context:t,isDisabled:r&&g(r,u),isMulti:v,isSearchable:m,tabSelectsValue:x,isInitialFocus:O})}return e}),[k,r,i,v,g,m,y,D,u,x,O]),R=qi(e.Fragment,null,qi("span",{id:"aria-selection"},E),qi("span",{id:"aria-focused"},A),qi("span",{id:"aria-results"},_),qi("span",{id:"aria-guidance"},F));return qi(e.Fragment,null,qi(Hl,{id:c},O&&R),qi(Hl,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!O&&R))},Wl=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Ul=new RegExp("["+Wl.map((function(e){return e.letters})).join("")+"]","g"),$l={},Xl=0;Xl<Wl.length;Xl++)for(var Yl=Wl[Xl],Gl=0;Gl<Yl.letters.length;Gl++)$l[Yl.letters[Gl]]=Yl.base;var Kl=function(e){return e.replace(Ul,(function(e){return $l[e]}))},ql=function(e,t){void 0===t&&(t=Nl);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}(Kl),Ql=function(e){return e.replace(/^\s+|\s+$/g,"")},Zl=function(e){return"".concat(e.label," ").concat(e.value)},Jl=["innerRef"];function eu(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=ea(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ea(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}((0,$e.A)(e,Jl),"onExited","in","enter","exit","appear");return qi("input",So({ref:t},n,{css:Qi({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 tu=["boxSizing","height","overflow","paddingRight","position"],nu={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ru(e){e.cancelable&&e.preventDefault()}function ou(e){e.stopPropagation()}function iu(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function au(){return"ontouchstart"in window||navigator.maxTouchPoints}var lu=!("undefined"===typeof window||!window.document||!window.document.createElement),uu=0,su={capture:!1,passive:!1};var cu=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},du={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fu(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,l=(0,e.useRef)(!1),u=(0,e.useRef)(!1),s=(0,e.useRef)(0),c=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,s=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,h=c.current,p=t>0,v=d-f-s,g=!1;v>t&&l.current&&(o&&o(e),l.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>v?(r&&!l.current&&r(e),h.scrollTop=d,g=!0,l.current=!0):!p&&-t>s&&(i&&!u.current&&i(e),h.scrollTop=0,g=!0,u.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),f=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),h=(0,e.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),p=(0,e.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,e.useCallback)((function(e){if(e){var t=!!Ka&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}}),[p,h,f]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))}),[p,h,f]);return(0,e.useEffect)((function(){if(n){var e=c.current;return v(e),function(){g(e)}}}),[n,v,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=(0,e.useRef)({}),a=(0,e.useRef)(null),l=(0,e.useCallback)((function(e){if(lu){var t=document.body,n=t&&t.style;if(o&&tu.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&uu<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+r||0;Object.keys(nu).forEach((function(e){var t=nu[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&au()&&(t.addEventListener("touchmove",ru,su),e&&(e.addEventListener("touchstart",iu,su),e.addEventListener("touchmove",ou,su))),uu+=1}}),[o]),u=(0,e.useCallback)((function(e){if(lu){var t=document.body,n=t&&t.style;uu=Math.max(uu-1,0),o&&uu<1&&tu.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&au()&&(t.removeEventListener("touchmove",ru,su),e&&(e.removeEventListener("touchstart",iu,su),e.removeEventListener("touchmove",ou,su)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=a.current;return l(e),function(){u(e)}}}),[n,l,u]),function(e){a.current=e}}({isEnabled:r});return qi(e.Fragment,null,r&&qi("div",{onClick:cu,css:du}),n((function(e){i(e),a(e)})))}var hu={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},pu=function(e){var t=e.name,n=e.onFocus;return qi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:hu,value:"",onChange:function(){}})};function vu(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 gu(){return vu(/^Mac/i)}function mu(){return vu(/^iPhone/i)||vu(/^iPad/i)||gu()&&navigator.maxTouchPoints>1}var yu=function(e){return e.label},bu=function(e){return e.value},wu={clearIndicator:ml,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,i=e.theme,a=i.colors,l=i.borderRadius,u=i.spacing;return(0,o.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:gl,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,i=n.spacing;return(0,o.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.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,i=r.spacing.baseUnit,a=r.colors;return(0,o.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,l=i.colors;return(0,o.A)((0,o.A)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Dl),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,l=i.spacing.baseUnit;return(0,o.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*l})},loadingMessage:ul,menu:function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,l=i.spacing,u=i.colors;return(0,o.A)((n={label:"menu"},(0,ie.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,ie.A)(n,"position","absolute"),(0,ie.A)(n,"width","100%"),(0,ie.A)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,o.A)({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,i=n.borderRadius,a=n.colors;return(0,o.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,o.A)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,l=e.isFocused;return(0,o.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:ll,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,l=a.spacing,u=a.colors;return(0,o.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*l.baseUnit,"px ").concat(3*l.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return(0,o.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,o.A)({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var xu,Cu={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}},ku={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$a(),captureMenuScroll:!$a(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:Zl,trim:!0,matchFrom:"any"},xu),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,l=n.trim,u=n.matchFrom,s=l?Ql(t):t,c=l?Ql(a(e)):a(e);return r&&(s=s.toLowerCase(),c=c.toLowerCase()),i&&(s=ql(s),c=Kl(c)),"start"===u?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:yu,getOptionValue:bu,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 Su(e,t,n,r){return{type:"option",data:t,isDisabled:Mu(e,t,n),isSelected:Tu(e,t,n),label:Fu(e,t),value:Ru(e,t),index:r}}function Du(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Su(e,n,t,r)})).filter((function(t){return _u(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Su(e,n,t,r);return _u(e,i)?i:void 0})).filter(qa)}function Eu(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ll(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Au(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Ll(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function _u(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Iu(e)||!i)&&Pu(e,{label:a,value:l,data:o},r)}var Ou=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Fu=function(e,t){return e.getOptionLabel(t)},Ru=function(e,t){return e.getOptionValue(t)};function Mu(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Tu(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ru(e,t);return n.some((function(t){return Ru(e,t)===r}))}function Pu(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Iu=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Lu=1,zu=function(t){!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&&Ml(e,t)}(l,t);var n,r,i,a=function(e){var t=Pl();return function(){var n,r=Tl(e);if(t){var o=Tl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Il(this,n)}}(l);function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=gu()||mu(),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,l=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),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,l=o&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(l){var s=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Ll(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=Qa(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(Qa(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=Qa(e,o,o[0]||null);r&&t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return Ou(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Au(Du(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return La.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Fu(t.props,e)},t.getOptionValue=function(e){return Ru(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=wu[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,(0,o.A)((0,o.A)({},Ol),e.components);var e},t.buildCategorizedOptions=function(){return Du(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Eu(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,o.A)({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&&Ha(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Iu(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,l=n.isClearable,u=n.isDisabled,s=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,v=h.focusedValue,g=h.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(v)t.removeValue(v);else{if(!o)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!d||!p||f&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(s){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(a)return;if(!s){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Lu),t.state.selectValue=za(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=Ou(n,r[i])}return t}return n=l,r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ua(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&&(Ua(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 l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(Cu):(0,o.A)((0,o.A)({},Cu),this.props.theme):Cu}},{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,l=this.props,u=l.isMulti,s=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:c,selectOption:i,selectProps:l,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 Mu(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Tu(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Pu(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 t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,l=t.tabIndex,u=t.form,s=t.menuIsOpen,c=t.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,v=this.commonProps,g=i||this.getElementId("input"),m=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":s,"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":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===p||void 0===p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(d,So({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:u,type:"text",value:a},m)):e.createElement(eu,So({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pa,onFocus:this.onInputFocus,disabled:n,tabIndex:l,inputMode:"none",form:u,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,l=n.SingleValue,u=n.Placeholder,s=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,v=c.placeholder,g=this.state,m=g.selectValue,y=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!d)return p?null:e.createElement(u,So({},s,{key:"placeholder",isDisabled:f,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return m.map((function(n,l){var u=n===y,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,So({},s,{components:{Container:o,Label:i,Remove:a},isFocused:u,isDisabled:f,key:c,index:l,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(p)return null;var w=m[0];return e.createElement(l,So({},s,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,So({},n,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,So({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(r,So({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,So({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,s=n.NoOptionsMessage,c=n.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,p=h.captureMenuScroll,v=h.inputValue,g=h.isLoading,m=h.loadingMessage,y=h.minMenuHeight,b=h.maxMenuHeight,w=h.menuIsOpen,x=h.menuPlacement,C=h.menuPosition,k=h.menuPortalTarget,S=h.menuShouldBlockScroll,D=h.menuShouldScrollIntoView,E=h.noOptionsMessage,A=h.onMenuScrollToTop,_=h.onMenuScrollToBottom;if(!w)return null;var O,F=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,l=n.isSelected,u=n.label,s=n.value,h=f===i,p=a?void 0:function(){return t.onOptionHover(i)},v=a?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(r),m={id:g,onClick:v,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:l};return e.createElement(c,So({},d,{innerProps:m,data:i,isDisabled:a,isSelected:l,key:g,label:u,type:o,value:s,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,l=n.index,u="".concat(t.getElementId("group"),"-").concat(l),s="".concat(u,"-heading");return e.createElement(r,So({},d,{key:u,data:i,options:a,Heading:o,headingProps:{id:s,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return F(e,"".concat(l,"-").concat(e.index))})))}if("option"===n.type)return F(n,"".concat(n.index))}));else if(g){var R=m({inputValue:v});if(null===R)return null;O=e.createElement(u,d,R)}else{var M=E({inputValue:v});if(null===M)return null;O=e.createElement(s,d,M)}var T={minMenuHeight:y,maxMenuHeight:b,menuPlacement:x,menuPosition:C,menuShouldScrollIntoView:D},P=e.createElement(ol,So({},d,T),(function(n){var r=n.ref,o=n.placerProps,l=o.placement,u=o.maxHeight;return e.createElement(i,So({},d,T,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:l}),e.createElement(fu,{captureEnabled:p,onTopArrive:A,onBottomArrive:_,lockEnabled:S},(function(n){return e.createElement(a,So({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:u,focusedOption:f}),O)})))}));return k||"fixed"===C?e.createElement(l,So({},d,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:C}),P):P}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,i=n.isMulti,a=n.name,l=n.required,u=this.state.selectValue;if(l&&!this.hasValue()&&!o)return e.createElement(pu,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(r){var s=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:a,type:"hidden",value:s})}var c=u.length>0?u.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,l=n.selectValue,u=this.getFocusableOptions();return e.createElement(Vl,So({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,l=a.className,u=a.id,s=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(o,So({},f,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),e.createElement(n,So({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:c}),e.createElement(i,So({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,So({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,l=t.isFocused,u=t.prevWasFocused,s=t.instancePrefix,c=e.options,d=e.value,f=e.menuIsOpen,h=e.inputValue,p=e.isMulti,v=za(d),g={};if(n&&(d!==n.value||c!==n.options||f!==n.menuIsOpen||h!==n.inputValue)){var m=f?function(e,t){return Eu(Du(e,t))}(e,v):[],y=f?Au(Du(e,v),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,v):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);g={selectValue:v,focusedOption:w,focusedOptionId:Ou(y,w),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},C=a,k=l&&u;return l&&!k&&(C={value:Qa(p,v,v[0]||null),options:v,action:"initial-input-focus"},k=!u),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(C=null),(0,o.A)((0,o.A)((0,o.A)({},g),x),{},{prevProps:e,ariaSelection:C,prevWasFocused:k})}}],r&&Rl(n.prototype,r),i&&Rl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);zu.defaultProps=ku;var Nu=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];var Bu=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Hu=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ju=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},Vu={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return ju(e,t,r)}))||n.some((function(t){return ju(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Wu,Uu,$u,Xu=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultOptions,r=void 0!==n&&n,i=t.cacheOptions,a=void 0!==i&&i,l=t.loadOptions;t.options;var u=t.isLoading,s=void 0!==u&&u,c=t.onInputChange,d=t.filterOption,f=void 0===d?null:d,h=(0,$e.A)(t,Nu),p=h.inputValue,v=(0,e.useRef)(void 0),g=(0,e.useRef)(!1),m=ea((0,e.useState)(Array.isArray(r)?r:void 0),2),y=m[0],b=m[1],w=ea((0,e.useState)("undefined"!==typeof p?p:""),2),x=w[0],C=w[1],k=ea((0,e.useState)(!0===r),2),S=k[0],D=k[1],E=ea((0,e.useState)(void 0),2),A=E[0],_=E[1],O=ea((0,e.useState)([]),2),F=O[0],R=O[1],M=ea((0,e.useState)(!1),2),T=M[0],P=M[1],I=ea((0,e.useState)({}),2),L=I[0],z=I[1],N=ea((0,e.useState)(void 0),2),B=N[0],H=N[1],j=ea((0,e.useState)(void 0),2),V=j[0],W=j[1];a!==V&&(z({}),W(a)),r!==B&&(b(Array.isArray(r)?r:void 0),H(r)),(0,e.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var U=(0,e.useCallback)((function(e,t){if(!l)return t();var n=l(e,t);n&&"function"===typeof n.then&&n.then(t,(function(){return t()}))}),[l]);(0,e.useEffect)((function(){!0===r&&U(x,(function(e){g.current&&(b(e||[]),D(!!v.current))}))}),[]);var $=(0,e.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"===typeof r)return r}return e}(e,t,c);if(!n)return v.current=void 0,C(""),_(""),R([]),D(!1),void P(!1);if(a&&L[n])C(n),_(n),R(L[n]),D(!1),P(!1);else{var r=v.current={};C(n),D(!0),P(!A),U(n,(function(e){g&&r===v.current&&(v.current=void 0,D(!1),_(n),R(e||[]),P(!1),z(e?(0,o.A)((0,o.A)({},L),{},(0,ie.A)({},n,e)):L))}))}}),[a,U,A,L,c]),X=T?[]:x&&A?F:y||[];return(0,o.A)((0,o.A)({},h),{},{options:X,isLoading:S||s,onInputChange:$,filterOption:f})}(t),i=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,i=t.defaultMenuIsOpen,a=void 0!==i&&i,l=t.defaultValue,u=void 0===l?null:l,s=t.inputValue,c=t.menuIsOpen,d=t.onChange,f=t.onInputChange,h=t.onMenuClose,p=t.onMenuOpen,v=t.value,g=(0,$e.A)(t,Bu),m=ea((0,e.useState)(void 0!==s?s:r),2),y=m[0],b=m[1],w=ea((0,e.useState)(void 0!==c?c:a),2),x=w[0],C=w[1],k=ea((0,e.useState)(void 0!==v?v:u),2),S=k[0],D=k[1],E=(0,e.useCallback)((function(e,t){"function"===typeof d&&d(e,t),D(e)}),[d]),A=(0,e.useCallback)((function(e,t){var n;"function"===typeof f&&(n=f(e,t)),b(void 0!==n?n:e)}),[f]),_=(0,e.useCallback)((function(){"function"===typeof p&&p(),C(!0)}),[p]),O=(0,e.useCallback)((function(){"function"===typeof h&&h(),C(!1)}),[h]),F=void 0!==s?s:y,R=void 0!==c?c:x,M=void 0!==v?v:S;return(0,o.A)((0,o.A)({},g),{},{inputValue:F,menuIsOpen:R,onChange:E,onInputChange:A,onMenuClose:O,onMenuOpen:_,value:M})}(r),a=function(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,i=t.createOptionPosition,a=void 0===i?"last":i,l=t.formatCreateLabel,u=void 0===l?Vu.formatCreateLabel:l,s=t.isValidNewOption,c=void 0===s?Vu.isValidNewOption:s,d=t.getNewOptionData,f=void 0===d?Vu.getNewOptionData:d,h=t.onCreateOption,p=t.options,v=void 0===p?[]:p,g=t.onChange,m=(0,$e.A)(t,Hu),y=m.getOptionValue,b=void 0===y?bu:y,w=m.getOptionLabel,x=void 0===w?yu:w,C=m.inputValue,k=m.isLoading,S=m.isMulti,D=m.value,E=m.name,A=(0,e.useMemo)((function(){return c(C,za(D),v,{getOptionValue:b,getOptionLabel:x})?f(C,u(C)):void 0}),[u,f,x,b,C,c,v,D]),_=(0,e.useMemo)((function(){return!r&&k||!A?v:"first"===a?[A].concat(Ll(v)):[].concat(Ll(v),[A])}),[r,a,k,A,v]),O=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==A)g(e,t);else if(h)h(C);else{var r=f(C,C),o={action:"create-option",name:E,option:r};g(Qa(S,[].concat(Ll(za(D)),[r]),r),o)}}),[f,C,S,E,A,h,g,D]);return(0,o.A)((0,o.A)({},m),{},{options:_,onChange:O})}(i);return e.createElement(zu,So({ref:n},a))})),Yu=Xu,Gu=n(579);const Ku=["children"],qu=e=>{const{Menu:t}=Ol,{children:n}=e,r=(0,$e.A)(e,Ku);return(0,Gu.jsx)(t,(0,o.A)((0,o.A)({},r),{},{children:n}))},Qu=(0,ht.I)("div")(Wu||(Wu=ko(["\n display: flex;\n flex-direction: column;\n align-items: stretch;\n\n .glide-select {\n font-family: var(--gdg-font-family);\n font-size: var(--gdg-editor-font-size);\n }\n"]))),Zu=(0,ht.I)("div")(Uu||(Uu=ko(["\n font-family: var(--gdg-font-family);\n font-size: var(--gdg-editor-font-size);\n color: var(--gdg-text-dark);\n\n > div {\n border-radius: 4px;\n border: 1px solid var(--gdg-border-color);\n }\n"]))),Ju=(0,ht.I)("div")($u||($u=ko(['\n display: "flex";\n margin: auto 8.5px;\n padding-bottom: 3px;\n']))),es=t=>{const{value:n,onFinishedEditing:r,initialValue:i}=t,{value:a,row:l,column:u}=n.data,[s,c]=e.useState(a),[d,f]=e.useState(null!==i&&void 0!==i?i:""),h=(0,xe.DP)();if(n.readonly)return(0,Gu.jsx)(Ju,{children:(0,Gu.jsx)(lr,{highlight:!0,autoFocus:!1,disabled:!0,value:null!==s&&void 0!==s?s:"",onChange:()=>{}})});return(0,Gu.jsx)(Qu,{children:(0,Gu.jsx)(Yu,{className:"glide-select",cacheOptions:!0,defaultOptions:!0,loadOptions:(e,t)=>{try{window.rltbl.loadOptions(l,u,e,t)}catch(n){}},inputValue:d,onInputChange:f,menuPlacement:"auto",value:{value:s,entry:null},styles:{control:e=>(0,o.A)((0,o.A)({},e),{},{border:0,boxShadow:"none"}),option:(e,t)=>{let{isFocused:n}=t;return(0,o.A)((0,o.A)({},e),{},{fontSize:h.editorFontSize,fontFamily:h.fontFamily,cursor:n?"pointer":void 0,paddingLeft:h.cellHorizontalPadding,paddingRight:h.cellHorizontalPadding,":active":(0,o.A)((0,o.A)({},e[":active"]),{},{color:h.accentFg}),":empty::after":{content:'" "',visibility:"hidden"}})}},theme:e=>(0,o.A)((0,o.A)({},e),{},{colors:(0,o.A)((0,o.A)({},e.colors),{},{neutral0:h.bgCell,neutral5:h.bgCell,neutral10:h.bgCell,neutral20:h.bgCellMedium,neutral30:h.bgCellMedium,neutral40:h.bgCellMedium,neutral50:h.textLight,neutral60:h.textMedium,neutral70:h.textMedium,neutral80:h.textDark,neutral90:h.textDark,neutral100:h.textDark,primary:h.accentColor,primary75:h.accentColor,primary50:h.accentColor,primary25:h.accentLight})}),menuPortalTarget:document.getElementById("portal"),autoFocus:!0,openMenuOnFocus:!0,components:{DropdownIndicator:()=>null,IndicatorSeparator:()=>null,Menu:e=>(0,Gu.jsx)(Zu,{children:(0,Gu.jsx)(qu,(0,o.A)({className:"click-outside-ignore"},e))})},onChange:async e=>{null!==e&&(c(e.value),await new Promise((e=>window.requestAnimationFrame(e))),r((0,o.A)((0,o.A)({},n),{},{data:(0,o.A)((0,o.A)({},n.data),{},{value:e.value,entry:e})})))}})})},ts={kind:i.dd.Custom,isMatch:e=>"dropdown-cell"===e.data.kind,draw:(e,t)=>{const{ctx:n,theme:r,rect:o}=e,{value:i}=t.data,a=i;return a&&(n.fillStyle=r.textDark,n.fillText(a,o.x+r.cellHorizontalPadding,o.y+o.height/2+K(n,r))),!0},measure:(e,t,n)=>{const{value:r}=t.data;return(r?e.measureText(r).width:0)+2*n.cellHorizontalPadding},provideEditor:()=>({editor:es,disablePadding:!0,deletedValue:e=>(0,o.A)((0,o.A)({},e),{},{copyData:"",data:(0,o.A)((0,o.A)({},e.data),{},{value:""})})}),onPaste:(e,t)=>(0,o.A)((0,o.A)({},t),{},{value:t.value})},ns=ts;function rs(t){const n=t.rltbl,r=n.site,a=n.grid||{freezeColumns:0},l=n.result,u=r.user.name,s=l.table.name,c=t.height,[f,h]=e.useState(l.range.total),p=e.useMemo((()=>Object.values(l.columns).map((e=>{for(var t={title:e.label||e.name,id:e.name,grow:1,kind:e.kind,hasMenu:!0},n=!1,r=0;r<l.select.filters.length;r++){if(l.select.filters[r].column===e.name){n=!0;break}}for(r=0;r<l.select.order_by.length;r++){const[t]=l.select.order_by[r];if(t===e.name){n=!0;break}}return n&&(t.icon=i.Gf.HeaderLookup),t}))),[l]),v=e.useMemo((()=>new Map(p.map(((e,t)=>[e.id,t])))),[p]),[g,m]=e.useState({table:s,row:0,column:p[0].id}),y=e.useRef(null);window.rltbl.gridRef=y;const b=e.useRef([]),w=e.useRef(new Map),x=e.useRef(0),[C,k]=e.useState([]),S=e.useCallback((e=>{k(Object.values(e).filter((e=>e.cursor.table===s)).map((e=>({color:e.color+"33",range:{x:v.get(e.cursor.column)||0,y:w.current[e.cursor.row]||-1,width:1,height:1}}))))}),[s,v,w]),D=e.useCallback((async e=>{const t=e[0],o=e[1]-t,i=new URLSearchParams(document.location.search);i.set("limit",String(o)),i.set("offset",String(t));const a="".concat(r.root,"/").concat(n.page.path,"/").concat(s,".json?").concat(i.toString());console.log("getRowData: "+a);try{const e=await fetch(a);if(!e.ok)throw new Error("Response status: ".concat(e.status));const n=await e.json();x.current=n.result.table.change_id;const r=n.result.rows;r.length>0&&h(n.result.range.total);var l=t;for(const t of r)w.current[t.id]=l,l++;return S(n.site.users),r}catch(u){console.error(u.message)}}),[r,x,n.page.path,s,S,h,w]),E=e.useCallback((async()=>{var e;if(!b.current)return;const t=new URLSearchParams(document.location.search);t.set("_change_id","gt.".concat(x.current)),t.delete("limit"),t.delete("offset");const o="".concat(r.root,"/").concat(n.page.path,"/").concat(s,".json?").concat(t.toString());console.log("pollData: "+o);var i=[];try{const e=await fetch(o);if(!e.ok)throw new Error("Response status: ".concat(e.status));const t=await e.json();x.current=t.result.table.change_id,S(t.site.users),i=t.result.rows}catch(c){console.error(c.message)}const a=[];for(const n of i){var l=0;for(l=0;l<f;l++){const e=b.current[l];if(e&&e.id===n.id)break}b.current[l]=n;for(var u=0;u<p.length;u++)a.push({cell:[u,l]})}null===(e=y.current)||void 0===e||e.updateCells(a)}),[r,n.page.path,s,p,f,S,b,y]);e.useEffect((()=>{if(!0===r.editable){const e=setInterval(E,5e3);return()=>clearInterval(e)}}),[r.editable,E,b]),e.useEffect((()=>{setTimeout((()=>{var e;l.select.offset>0&&(null===(e=y.current)||void 0===e||e.scrollTo(0,l.select.offset-1,"vertical",0,Math.max(0,c-200)))}),100)}),[l,c,y]);const A=e.useMemo((()=>p),[p]),_=e.useCallback(((e,t)=>{const n=p[t].id,o=p[t].kind,a=e.cells[n].value;return"dropdown"===o?{kind:i.dd.Custom,allowOverlay:r.editable,copyData:a,data:{kind:"dropdown-cell",value:a,row:e.id,column:n,entry:null}}:"image"===o?{kind:i.dd.Image,data:[a],allowOverlay:!1,displayData:[a]}:{kind:i.dd.Text,data:String(a),allowOverlay:r.editable,displayData:String(e.cells[n].text)}}),[r,p]),O=e.useCallback(((e,t,n)=>{const[r]=e;var o="UNDEFINED";if(t.kind===i.dd.Text?o=t.data:t.kind===i.dd.Custom&&"dropdown-cell"===t.data.kind&&(o=t.data.value),"UNDEFINED"!==o)return n.cells[p[r].id].value=o,n.cells[p[r].id].text=o,n}),[p]),F=function(t,n,r,o,a,l,u){n=Math.max(n,1);const s=e.useRef(i.I1.empty()),[c,f]=e.useState({x:0,y:0,width:0,height:0}),h=e.useRef(c);h.current=c;const p=e.useCallback((e=>{f((t=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height?t:e))}),[]),v=e.useCallback((e=>{const[n,r]=e,o=t.current[r];return void 0!==o?a(o,n):{kind:i.dd.Loading,allowOverlay:!1}}),[t,a]),g=e.useCallback((async e=>{var r;s.current=s.current.add(e);const i=e*n,a=await o([i,(e+1)*n]),l=h.current,c=[],d=t.current;for(const[t,n]of a.entries()){d[t+i]=n;for(let e=l.x;e<=l.x+l.width;e++)c.push({cell:[e,t+i]})}null===(r=u.current)||void 0===r||r.updateCells(c)}),[t,o,u,n]),m=e.useCallback((e=>async()=>{const t=Math.max(0,Math.floor(e.y/n)),o=Math.floor((e.y+e.height)/n);for(const e of Ir()(d()(t,o+1).filter((e=>!s.current.hasIndex(e))),r))await Promise.allSettled(e.map(g));const i=[];for(let n=e.y;n<e.y+e.height;n++){const t=[];for(let r=e.x;r<e.x+e.width;r++)t.push(v([r,n]));i.push(t)}return i}),[v,g,r,n]);e.useEffect((()=>{const e=c,t=Math.max(0,Math.floor((e.y-n/2)/n)),r=Math.floor((e.y+e.height+n/2)/n);for(const n of d()(t,r+1))s.current.hasIndex(n)||g(n)}),[g,n,c]);const y=e.useCallback(((e,n)=>{const[,r]=e,o=t.current[r];if(void 0===o)return;const i=l(e,n,o);void 0!==i&&(t.current[r]=i)}),[t,l]);return{getCellContent:v,onVisibleRegionChanged:p,onCellEdited:y,getCellsForSelection:m}}(b,100,5,D,_,O,y),[R,M]=e.useState((()=>l.select.offset>0?{rows:i.I1.empty().add(l.select.offset-1),columns:i.I1.empty()}:{rows:i.I1.empty(),columns:i.I1.empty()})),T=e.useCallback((()=>{try{fetch("".concat(r.root,"/cursor"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)})}catch(e){console.error(e.message)}}),[r,g]),P=e.useRef();e.useEffect((()=>{P.current=T}),[T,P]);const I=e.useMemo((()=>(0,Tr.debounce)((()=>{var e;null===(e=P.current)||void 0===e||e.call(P)}),1e3)),[P]),L=e.useCallback((e=>{if(e.current){const[t,n]=e.current.cell,r={table:s,row:b.current[n].id,column:p[t].id};m(r),I()}M(e)}),[s,p,b,I]),z=e.useCallback((e=>{try{e=n.onCellsEdited(e)}catch(l){}var t=[];for(const n of e){var o=n.value.data;(0,Tr.isObject)(o)&&(o=o.value);var i=b.current[n.location[1]];t.push({type:"Update",row:i.id,column:p[n.location[0]].id,value:o}),O(n.location,n.value,b.current[n.location[1]])}const a={action:"Do",table:s,user:u,description:"Set one value",changes:t};try{fetch("".concat(r.root,"/table/").concat(s),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})}catch(c){console.error(c.message)}}),[n,r,u,s,p,b,O]),[N,B]=e.useState(),H=e.useCallback(((e,t)=>{if(!b.current)return;const[n,o]=e,i=b.current[o];if(-1===n)fetch("".concat(r.root,"/row-menu/").concat(s,"/").concat(i.id)).then((e=>e.text())).then((e=>{let n=Mr(e);B({bounds:t.bounds,content:n})}));else{const e=p[n].id;fetch("".concat(r.root,"/cell-menu/").concat(s,"/").concat(i.id,"/").concat(e)).then((e=>e.text())).then((e=>{let n=Mr(e);B({bounds:t.bounds,content:n})}))}return t.preventDefault(),!1}),[r,s,p,b]),j=e.useCallback(((e,t)=>{const n=p[e].id,o=new URLSearchParams(document.location.search);return fetch("".concat(r.root,"/column-menu/").concat(s,"/").concat(n,"?").concat(o.toString())).then((e=>e.text())).then((e=>{let n=Mr(e);B({bounds:t,content:n})})),!1}),[r,s,p]),{renderLayer:V,layerProps:W}=wo({isOpen:void 0!==N,triggerOffset:4,onOutsideClick:()=>B(void 0),trigger:{getBounds:()=>{var e,t,n,r,o,i,a,l;return{bottom:(null!==(e=null===N||void 0===N?void 0:N.bounds.y)&&void 0!==e?e:0)+(null!==(t=null===N||void 0===N?void 0:N.bounds.height)&&void 0!==t?t:0),height:null!==(n=null===N||void 0===N?void 0:N.bounds.height)&&void 0!==n?n:0,left:null!==(r=null===N||void 0===N?void 0:N.bounds.x)&&void 0!==r?r:0,right:(null!==(o=null===N||void 0===N?void 0:N.bounds.x)&&void 0!==o?o:0)+(null!==(i=null===N||void 0===N?void 0:N.bounds.width)&&void 0!==i?i:0),top:null!==(a=null===N||void 0===N?void 0:N.bounds.y)&&void 0!==a?a:0,width:null!==(l=null===N||void 0===N?void 0:N.bounds.width)&&void 0!==l?l:0}}},placement:"bottom-start",auto:!0,possiblePlacements:["bottom-start","bottom-end","top-start","top-end"]}),U=e.useCallback(((e,t)=>{if(t(),!b.current)return;const{ctx:n,rect:r,col:o,row:i}=e,a=b.current[i];if(!a)return;const l=a.cells[p[o].id];if(!l)return;if(!l.messages)return;if(l.messages.length<1)return;n.beginPath(),n.moveTo(r.x+r.width-7,r.y+1),n.lineTo(r.x+r.width,r.y+7+1),n.lineTo(r.x+r.width,r.y+1),n.closePath(),n.save(),n.fillStyle="#ff0000",n.fill(),n.restore()}),[p,b]);return(0,Gu.jsxs)(Gu.Fragment,{children:[(0,Gu.jsx)(Fr,(0,o.A)((0,o.A)({ref:y},F),{},{customRenderers:[ns,U],rowMarkers:"clickable-number",gridSelection:R,onGridSelectionChange:L,onCellsEdited:z,onCellContextMenu:H,onHeaderMenuClick:j,freezeColumns:a.freezeColumns,highlightRegions:C,drawCell:U,width:"100%",height:c,columns:A,rows:f})),void 0!==N&&V((0,Gu.jsx)("div",(0,o.A)((0,o.A)({},W),{},{style:(0,o.A)({},W.style),children:N.content})))]})}var os=document.getElementById("portal");const is=window.innerHeight-os.getBoundingClientRect().top-5;r.createRoot(os).render((0,Gu.jsx)(e.StrictMode,{children:(0,Gu.jsx)(rs,{rltbl:window.rltbl,height:is})})),document.querySelectorAll(".table").forEach((e=>e.remove())),document.querySelectorAll(".range").forEach((e=>e.remove()))})()})();
//# sourceMappingURL=main.js.map