cindy-ai-chatbot 1.0.95 → 1.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{useState as i,isValidElement as a,cloneElement as l,Children as s,useContext as c,useRef as u,useEffect as d,createContext as f,useCallback as p,forwardRef as h,createElement as m,useMemo as g}from"react";import y from"react-dom";import v from"axios";import b from"js-cookie";import{v4 as x}from"uuid";function w(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 k(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function S(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var r=[],o=0;o<t.length;o++){var i=t[o];if(i){var a=C(i);if("string"===a||"number"===a)r.push(i);else if("object"===a){var l=Array.isArray(i)?i:Object.entries(i).map((function(e){var t=S(e,2),n=t[0];return t[1]?n:null}));r=l.length?r.concat(l.filter((function(e){return!!e}))):r}}}return r.join(" ").trim()}}function T(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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.")}()}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}function N(e,t,n){return n&&function(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,A(r.key),r)}}(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return D(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)?D(e,t):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function D(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}var L=function(){function e(){O(this,e)}return N(e,0,[{key:"innerWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"width",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,t){if(e){var n=e.getBoundingClientRect().width||e.offsetWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getOuterHeight",value:function(e,t){if(e){var n=e.getBoundingClientRect().height||e.offsetHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientHeight",value:function(e,t){if(e){var n=e.clientHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientWidth",value:function(e,t){if(e){var n=e.clientWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getViewport",value:function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}},{key:"getOffset",value:function(e){if(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var t=e.parentNode.childNodes,n=0,r=0;r<t.length;r++){if(t[r]===e)return n;1===t[r].nodeType&&n++}return-1}},{key:"addMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.add(n[r]);else for(var o=t.split(" "),i=0;i<o.length;i++)e.className=e.className+" "+o[i]}},{key:"removeMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.remove(n[r]);else for(var o=t.split(" "),i=0;i<o.length;i++)e.className=e.className.replace(new RegExp("(^|\\b)"+o[i].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className=e.className+" "+t)}},{key:"removeClass",value:function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}},{key:"addStyles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&Object.entries(t).forEach((function(t){var n=S(t,2),r=n[0],o=n[1];return e.style[r]=o}))}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"setAttributes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var r=function(t,n){var o,i,a=null!=e&&null!==(o=e.$attrs)&&void 0!==o&&o[t]?[null==e||null===(i=e.$attrs)||void 0===i?void 0:i[t]]:[];return[n].flat().reduce((function(e,n){if(null!=n){var o=C(n);if("string"===o||"number"===o)e.push(n);else if("object"===o){var i=Array.isArray(n)?r(t,n):Object.entries(n).map((function(e){var n=S(e,2),r=n[0],o=n[1];return"style"!==t||!o&&0!==o?o?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(o)}));e=i.length?e.concat(i.filter((function(e){return!!e}))):e}}return e}),a)};Object.entries(n).forEach((function(n){var o=S(n,2),i=o[0],a=o[1];if(null!=a){var l=i.match(/^on(.+)/);l?e.addEventListener(l[1].toLowerCase(),a):"p-bind"===i?t.setAttributes(e,a):(a="class"===i?T(new Set(r("class",a))).join(" ").trim():"style"===i?r("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[i]=a),e.setAttribute(i,a))}}))}}},{key:"getAttribute",value:function(e,t){if(e){var n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}},{key:"isAttributeEquals",value:function(e,t,n){return!!e&&this.getAttribute(e,t)===n}},{key:"isAttributeNotEquals",value:function(e,t,n){return!this.isAttributeEquals(e,t,n)}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0}},{key:"alignOverlay",value:function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(o&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";if(e&&t){var r,o,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=i.height,l=i.width,s=t.offsetHeight,c=t.offsetWidth,u=t.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),p=this.getViewport();u.top+s+a>p.height?((r=u.top+d-a)<0&&(r=d),e.style.transformOrigin="bottom"):(r=s+u.top+d,e.style.transformOrigin="top");var h=u.left,m="left"===n?0:l-c;o=h+c+l>p.width?Math.max(0,h+f+c-l):h-m+f,e.style.top=r+"px",e.style.left=o+"px"}}},{key:"relativePosition",value:function(e,t){if(e&&t){var n,r,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=t.offsetHeight,a=t.getBoundingClientRect(),l=this.getViewport();a.top+i+o.height>l.height?(n=-1*o.height,a.top+n<0&&(n=-1*a.top),e.style.transformOrigin="bottom"):(n=i,e.style.transformOrigin="top"),r=o.width>l.width?-1*a.left:a.left+o.width>l.width?-1*(a.left+o.width-l.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(t&&n){var l=n.getBoundingClientRect(),s=this.getViewport(),c=o.split(" "),u=i.split(" "),d=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},f={my:{x:d(c[0]),y:d(c[1]||c[0]),offsetX:d(c[0],!0),offsetY:d(c[1]||c[0],!0)},at:{x:d(u[0]),y:d(u[1]||u[0]),offsetX:d(u[0],!0),offsetY:d(u[1]||u[0],!0)}},p={left:function(){return f.my.offsetX+f.at.offsetX+l.left+("left"===f.my.x?0:-1*("center"===f.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return f.my.offsetY+f.at.offsetY+l.top+("top"===f.my.y?0:-1*("center"===f.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},h={count:{x:0,y:0},left:function(){var n=p.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,f.my.x="left",f.at.x="right",f.my.offsetX*=-1,f.at.offsetX*=-1,this.right())},right:function(){var r=p.left()+e.getOuterWidth(n),o=e.getWindowScrollLeft();t.style.left=r+o+"px",2===this.count.x?(t.style.left=s.width-e.getOuterWidth(t)+o+"px",this.count.x=0):r+e.getOuterWidth(t)>s.width&&(this.count.x++,f.my.x="right",f.at.x="left",f.my.offsetX*=-1,f.at.offsetX*=-1,this.left())},top:function(){var n=p.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,f.my.y="top",f.at.y="bottom",f.my.offsetY*=-1,f.at.offsetY*=-1,this.bottom())},bottom:function(){var r=p.top()+e.getOuterHeight(n),o=e.getWindowScrollTop();t.style.top=r+o+"px",2===this.count.y?(t.style.left=s.height-e.getOuterHeight(t)+o+"px",this.count.y=0):r+e.getOuterHeight(n)>s.height&&(this.count.y++,f.my.y="bottom",f.at.y="top",f.my.offsetY*=-1,f.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var o=p.top()+e.getOuterHeight(n)/2;t.style.top=o+e.getWindowScrollTop()+"px",o<0?this.bottom():o+e.getOuterHeight(n)>s.height&&this.top()}else{var i=p.left()+e.getOuterWidth(n)/2;t.style.left=i+e.getWindowScrollLeft()+"px",i<0?this.left():i+e.getOuterWidth(t)>s.width&&this.right()}}};h[f.at.x]("x"),h[f.at.y]("y"),this.isFunction(a)&&a(f)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(e){var r,o=this.getParents(e),i=/(auto|scroll)/,a=function(e){var t=e?getComputedStyle(e):null;return t&&(i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflow-x"))||i.test(t.getPropertyValue("overflow-y")))},l=function(e){t&&n.push("BODY"===e.nodeName||"HTML"===e.nodeName||9===e.nodeType?window:e)},s=I(o);try{for(s.s();!(r=s.n()).done;){var c,u=r.value,d=1===u.nodeType&&(null===(c=u.dataset)||void 0===c?void 0:c.scrollselectors);if(d){var f,p=I(d.split(","));try{for(p.s();!(f=p.n()).done;){var h=f.value,m=this.findSingle(u,h);m&&a(m)&&l(m)}}catch(e){p.e(e)}finally{p.f()}}1===u.nodeType&&a(u)&&l(u)}}catch(e){s.e(e)}finally{s.f()}}return n.some((function(e){return e===document.body||e===window}))||n.push(t?window:document.body),n}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0,o=function(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,o=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":C(HTMLElement))?e instanceof HTMLElement:e&&"object"===C(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("border-top-width"),r=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("padding-top"),i=o?parseFloat(o):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-r-i,s=e.scrollTop,c=e.clientHeight,u=this.getOuterHeight(t);l<0?e.scrollTop=s+l:l+u>c&&(e.scrollTop=s+l-c+u)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";!!!document.body.style.getPropertyValue("--scrollbar-width")&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return!(null==e||!e.nodeName||!e.parentNode)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=[],i=I(e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(i.s();!(n=i.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&o.push(a)}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){var n=void 0===t||!t;e&&document.activeElement!==e&&e.focus({preventScroll:n})}},{key:"focusFirstElement",value:function(t,n){if(t){var r=e.getFirstFocusableElement(t);return r&&e.focus(r,n),r}}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var o=getComputedStyle(e),i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.overflow=o.overflow,i.style.width=o.width,i.style.height=o.height,i.style.padding=o.padding,i.style.border=o.border,i.style.overflowWrap=o.overflowWrap,i.style.whiteSpace=o.whiteSpace,i.style.lineHeight=o.lineHeight,i.innerHTML=t.replace(/\r\n|\r|\n/g,"<br />");var a=document.createElement("span");a.textContent=r,i.appendChild(a);var l=document.createTextNode(n);i.appendChild(l),document.body.appendChild(i);var s=a.offsetLeft,c=a.offsetTop,u=a.clientHeight;return document.body.removeChild(i),{left:Math.abs(s-e.scrollLeft),top:Math.abs(c-e.scrollTop)+u}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=t;else for(var n in t)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name,r=e.src;return t.setAttribute("href",r),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(t,n){var r=document.createElement("style");return e.addNonce(r,t),n||(n=document.head),n.appendChild(r),r}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch(e){}e=null}return e}},{key:"addNonce",value:function(e,t){try{t||(t=process.env.REACT_APP_CSS_NONCE)}catch(e){}t&&e.setAttribute("nonce",t)}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===C(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;t<r.length;++t)n.push(r[t].nodeName);return n.sort(),n}},{key:"isEqualElement",value:function(t,n){var r,o,i,a,l;if(r=e.getAttributeNames(t),o=e.getAttributeNames(n),r.join(",")!==o.join(","))return!1;for(var s=0;s<r.length;++s)if("style"===(i=r[s]))for(var c=t.style,u=n.style,d=/^\d+$/,f=0,p=Object.keys(c);f<p.length;f++){var h=p[f];if(!d.test(h)&&c[h]!==u[h])return!1}else if(t.getAttribute(i)!==n.getAttribute(i))return!1;for(a=t.firstChild,l=n.firstChild;a&&l;a=a.nextSibling,l=l.nextSibling){if(a.nodeType!==l.nodeType)return!1;if(1===a.nodeType){if(!e.isEqualElement(a,l))return!1}else if(a.nodeValue!==l.nodeValue)return!1}return!a&&!l}},{key:"hasCSSAnimation",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}},{key:"hasCSSTransition",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("transition-duration")||"0")>0}return!1}}])}();function _(){return _=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},_.apply(null,arguments)}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function j(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}P(L,"DATA_PROPS",["data-"]),P(L,"ARIA_PROPS",["aria","focus-target"]);var M=function(){return N((function e(){O(this,e)}),0,[{key:"equals",value:function(e,t,n){return n&&e&&"object"===C(e)&&t&&"object"===C(t)?this.deepEquals(this.resolveFieldData(e,n),this.resolveFieldData(t,n)):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"===C(e)&&"object"===C(t)){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(i!==a)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!==s)return!1;if(l&&s)return e.getTime()===t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!==u)return!1;if(c&&u)return e.toString()===t.toString();var d=Object.keys(e);if((r=d.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=r;0!=n--;)if(o=d[n],!this.deepEquals(e[o],t[o]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(!e||!t)return null;try{var n=e[t];if(this.isNotEmpty(n))return n}catch(e){}if(Object.keys(e).length){if(this.isFunction(t))return t(e);if(this.isNotEmpty(e[t]))return e[t];if(-1===t.indexOf("."))return e[t];for(var r=t.split("."),o=e,i=0,a=r.length;i<a;++i){if(null==o)return null;o=o[r[i]]}return o}return null}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):{}}},{key:"reduceKeys",value:function(e,t){var n={};return e&&t&&0!==t.length?(Object.keys(e).filter((function(e){return t.some((function(t){return e.startsWith(t)}))})).forEach((function(t){n[t]=e[t],delete e[t]})),n):n}},{key:"reorderArray",value:function(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?n?t.findIndex((function(t){return r.equals(t,e,n)})):t.findIndex((function(t){return t===e})):-1}},{key:"getJSXElement",value: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];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getItemValue",value: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];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e?e[t]:void 0;return void 0===r?n[t]:r}},{key:"getPropCaseInsensitive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.toFlatCase(t);for(var o in e)if(e.hasOwnProperty(o)&&this.toFlatCase(o)===r)return e[o];for(var i in n)if(n.hasOwnProperty(i)&&this.toFlatCase(i)===r)return n[i]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){if(!this.isFunction(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(1===n.length){var o=n[0];return e(Array.isArray(o)?o[0]:o)}return e.apply(void 0,n)}},{key:"getComponentProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,n):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,n){if(e){var r,o=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!o&&null!=e&&null!==(r=e.type)&&void 0!==r&&null!==(r=r._payload)&&void 0!==r&&r.value&&(o=e.type._payload.value.find((function(e){return e===t})));var i=o===t;try{0}catch(e){}return i}return!1}},{key:"getRefElement",value:function(e){return e?"object"===C(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===C(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"isScalar",value:function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"bigint"==typeof e||"boolean"==typeof e)}},{key:"findLast",value:function(e,t){var n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch(r){n=T(e).reverse().find(t)}return n}},{key:"findLastIndex",value:function(e,t){var n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf(T(e).reverse().find(t))}return n}},{key:"sort",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(e,t,r,n),a=n;return(this.isEmpty(e)||this.isEmpty(t))&&(a=1===o?n:o),a*i}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=this.isEmpty(e),i=this.isEmpty(t);return o&&i?0:o?r:i?-r:"string"==typeof e&&"string"==typeof t?n(e,t):e<t?-1:e>t?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var n,r=R(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.key===t)return o.children||[];if(o.children){var i=this.findChildrenByKey(o.children,t);if(i.length>0)return i}}}catch(e){r.e(e)}finally{r.f()}return[]}},{key:"mutateFieldData",value:function(e,t,n){if("object"===C(e)&&"string"==typeof t)for(var r=t.split("."),o=e,i=0,a=r.length;i<a;++i){if(i+1-a==0){o[r[i]]=n;break}o[r[i]]||(o[r[i]]={}),o=o[r[i]]}}}])}(),F=0;function z(){return F++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(F)}function q(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}var B=function(){return N((function e(){O(this,e)}),0,[{key:"getJSXIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null;if(null!==e){var i=C(e),a=E(t.className,"string"===i&&e);if(o=r.createElement("span",_({},t,{className:a,key:z("icon")})),"string"!==i){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({iconProps:t,element:o},n);return M.getJSXElement(e,l)}}return o}}])}();function H(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?H(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e){if(e){var t=function(e){return"function"==typeof e},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).classNameMergeFunction,r=t(n);return e.reduce((function(e,o){if(!o)return e;var i=function(){var i=o[a];if("style"===a)e.style=U(U({},e.style),o.style);else if("className"===a){var l="";l=r?n(e.className,o.className):[e.className,o.className].join(" ").trim(),e.className=l||void 0}else if(t(i)){var s=e[a];e[a]=s?function(){s.apply(void 0,arguments),i.apply(void 0,arguments)}:i}else e[a]=i};for(var a in o)i();return e}),{})}}var W,$,Y=(W=[],$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return T(W).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=$(e,t,n),o=r.value+(r.key===e?0:n)+1;return W.push({key:e,value:o}),o}(e,n,r)))},clear:function(e){var t;e&&(t=Y.get(e),W=W.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return function(e,t){return $(e,t).value}(e,t)}}),G=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function Z(e){return Z="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},Z(e)}function X(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}function J(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var Q=K((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));J(Q,"ripple",!1),J(Q,"inputStyle","outlined"),J(Q,"locale","en"),J(Q,"appendTo",null),J(Q,"cssTransition",!0),J(Q,"autoZIndex",!0),J(Q,"hideOverlaysOnDocumentScrolling",!1),J(Q,"nonce",null),J(Q,"nullSortOrder",1),J(Q,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),J(Q,"pt",void 0),J(Q,"filterMatchModeOptions",{text:[G.STARTS_WITH,G.CONTAINS,G.NOT_CONTAINS,G.ENDS_WITH,G.EQUALS,G.NOT_EQUALS],numeric:[G.EQUALS,G.NOT_EQUALS,G.LESS_THAN,G.LESS_THAN_OR_EQUAL_TO,G.GREATER_THAN,G.GREATER_THAN_OR_EQUAL_TO],date:[G.DATE_IS,G.DATE_IS_NOT,G.DATE_BEFORE,G.DATE_AFTER]}),J(Q,"changeTheme",(function(e,t,n,r){var o,i=document.getElementById(n);if(!i)throw Error("Element with id ".concat(n," not found."));var a=i.getAttribute("href").replace(e,t),l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("id",n),l.setAttribute("href",a),l.addEventListener("load",(function(){r&&r()})),null===(o=i.parentNode)||void 0===o||o.replaceChild(l,i)}));var ee={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseRow:"Row Collapsed",editRow:"Edit Row",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",pageLabel:"Page {page}",otpLabel:"Please enter one time password character {0}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function te(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe ariaKey detected");var n=Q.locale;try{var r=function(e){var t=e||Q.locale;if(t.includes("__proto__")||t.includes("prototype"))throw new Error("Unsafe locale detected");return ee[t]}(n).aria[e];if(r)for(var o in t)t.hasOwnProperty(o)&&(r=r.replace("{".concat(o,"}"),t[o]));return r}catch(t){throw new Error("The ".concat(e," option is not found in the current locale('").concat(n,"')."))}}function ne(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 re(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(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 oe=o.createContext(),ie=function(e){var t,n,r,a,l,s,c,u,d,f,p,h,m,g,y,v,b=null!==(t=e.value)&&void 0!==t?t:{},x=re(i(null!==(n=b.ripple)&&void 0!==n&&n),2),w=x[0],k=x[1],S=re(i(null!==(r=b.inputStyle)&&void 0!==r?r:"outlined"),2),C=S[0],E=S[1],T=re(i(null!==(a=b.locale)&&void 0!==a?a:"en"),2),O=T[0],A=T[1],N=re(i(null!==(l=b.appendTo)&&void 0!==l?l:null),2),P=N[0],I=N[1],D=re(i(null!==(s=b.styleContainer)&&void 0!==s?s:null),2),L=D[0],_=D[1],R=re(i(null===(c=b.cssTransition)||void 0===c||c),2),j=R[0],M=R[1],F=re(i(null===(u=b.autoZIndex)||void 0===u||u),2),z=F[0],q=F[1],B=re(i(null!==(d=b.hideOverlaysOnDocumentScrolling)&&void 0!==d&&d),2),H=B[0],U=B[1],V=re(i(null!==(f=b.nonce)&&void 0!==f?f:null),2),W=V[0],$=V[1],Y=re(i(null!==(p=b.nullSortOrder)&&void 0!==p?p:1),2),Z=Y[0],X=Y[1],J=re(i(null!==(h=b.zIndex)&&void 0!==h?h:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),2),K=J[0],ee=J[1],te=re(i(null!==(m=b.ptOptions)&&void 0!==m?m:{mergeSections:!0,mergeProps:!0}),2),ne=te[0],ie=te[1],ae=re(i(null!==(g=b.pt)&&void 0!==g?g:void 0),2),le=ae[0],se=ae[1],ce=re(i(null!==(y=b.unstyled)&&void 0!==y&&y),2),ue=ce[0],de=ce[1],fe=re(i(null!==(v=b.filterMatchModeOptions)&&void 0!==v?v:{text:[G.STARTS_WITH,G.CONTAINS,G.NOT_CONTAINS,G.ENDS_WITH,G.EQUALS,G.NOT_EQUALS],numeric:[G.EQUALS,G.NOT_EQUALS,G.LESS_THAN,G.LESS_THAN_OR_EQUAL_TO,G.GREATER_THAN,G.GREATER_THAN_OR_EQUAL_TO],date:[G.DATE_IS,G.DATE_IS_NOT,G.DATE_BEFORE,G.DATE_AFTER]}),2),pe=fe[0],he=fe[1];o.useEffect((function(){Q.ripple=w}),[w]),o.useEffect((function(){Q.inputStyle=C}),[C]),o.useEffect((function(){Q.locale=O}),[O]);var me={changeTheme:function(e,t,n,r){var o,i=document.getElementById(n);if(!i)throw Error("Element with id ".concat(n," not found."));var a=i.getAttribute("href").replace(e,t),l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("id",n),l.setAttribute("href",a),l.addEventListener("load",(function(){r&&r()})),null===(o=i.parentNode)||void 0===o||o.replaceChild(l,i)},ripple:w,setRipple:k,inputStyle:C,setInputStyle:E,locale:O,setLocale:A,appendTo:P,setAppendTo:I,styleContainer:L,setStyleContainer:_,cssTransition:j,setCssTransition:M,autoZIndex:z,setAutoZIndex:q,hideOverlaysOnDocumentScrolling:H,setHideOverlaysOnDocumentScrolling:U,nonce:W,setNonce:$,nullSortOrder:Z,setNullSortOrder:X,zIndex:K,setZIndex:ee,ptOptions:ne,setPtOptions:ie,pt:le,setPt:se,filterMatchModeOptions:pe,setFilterMatchModeOptions:he,unstyled:ue,setUnstyled:de};return o.createElement(oe.Provider,{value:me},e.children)},ae=Q;function le(){return le=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},le.apply(null,arguments)}function se(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}function ue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ce(e,t)}var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe,he={exports:{}},me={exports:{}},ge={};var ye,ve,be,xe,we,ke,Se,Ce,Ee,Te,Oe,Ae,Ne,Pe,Ie={};
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{useState as i,isValidElement as a,cloneElement as l,Children as s,useContext as c,useRef as u,useEffect as d,createContext as f,useCallback as p,forwardRef as h,createElement as m,useMemo as g}from"react";import y from"react-dom";import v from"axios";import b from"js-cookie";import{v4 as x}from"uuid";function w(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 k(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function S(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var r=[],o=0;o<t.length;o++){var i=t[o];if(i){var a=C(i);if("string"===a||"number"===a)r.push(i);else if("object"===a){var l=Array.isArray(i)?i:Object.entries(i).map((function(e){var t=S(e,2),n=t[0];return t[1]?n:null}));r=l.length?r.concat(l.filter((function(e){return!!e}))):r}}}return r.join(" ").trim()}}function T(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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.")}()}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}function N(e,t,n){return n&&function(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,O(r.key),r)}}(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return D(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)?D(e,t):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function D(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}var L=function(){function e(){A(this,e)}return N(e,0,[{key:"innerWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"width",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,t){if(e){var n=e.getBoundingClientRect().width||e.offsetWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getOuterHeight",value:function(e,t){if(e){var n=e.getBoundingClientRect().height||e.offsetHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientHeight",value:function(e,t){if(e){var n=e.clientHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientWidth",value:function(e,t){if(e){var n=e.clientWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getViewport",value:function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}},{key:"getOffset",value:function(e){if(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var t=e.parentNode.childNodes,n=0,r=0;r<t.length;r++){if(t[r]===e)return n;1===t[r].nodeType&&n++}return-1}},{key:"addMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.add(n[r]);else for(var o=t.split(" "),i=0;i<o.length;i++)e.className=e.className+" "+o[i]}},{key:"removeMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.remove(n[r]);else for(var o=t.split(" "),i=0;i<o.length;i++)e.className=e.className.replace(new RegExp("(^|\\b)"+o[i].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className=e.className+" "+t)}},{key:"removeClass",value:function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}},{key:"addStyles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&Object.entries(t).forEach((function(t){var n=S(t,2),r=n[0],o=n[1];return e.style[r]=o}))}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"setAttributes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var r=function(t,n){var o,i,a=null!=e&&null!==(o=e.$attrs)&&void 0!==o&&o[t]?[null==e||null===(i=e.$attrs)||void 0===i?void 0:i[t]]:[];return[n].flat().reduce((function(e,n){if(null!=n){var o=C(n);if("string"===o||"number"===o)e.push(n);else if("object"===o){var i=Array.isArray(n)?r(t,n):Object.entries(n).map((function(e){var n=S(e,2),r=n[0],o=n[1];return"style"!==t||!o&&0!==o?o?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(o)}));e=i.length?e.concat(i.filter((function(e){return!!e}))):e}}return e}),a)};Object.entries(n).forEach((function(n){var o=S(n,2),i=o[0],a=o[1];if(null!=a){var l=i.match(/^on(.+)/);l?e.addEventListener(l[1].toLowerCase(),a):"p-bind"===i?t.setAttributes(e,a):(a="class"===i?T(new Set(r("class",a))).join(" ").trim():"style"===i?r("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[i]=a),e.setAttribute(i,a))}}))}}},{key:"getAttribute",value:function(e,t){if(e){var n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}},{key:"isAttributeEquals",value:function(e,t,n){return!!e&&this.getAttribute(e,t)===n}},{key:"isAttributeNotEquals",value:function(e,t,n){return!this.isAttributeEquals(e,t,n)}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0}},{key:"alignOverlay",value:function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(o&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";if(e&&t){var r,o,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=i.height,l=i.width,s=t.offsetHeight,c=t.offsetWidth,u=t.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),p=this.getViewport();u.top+s+a>p.height?((r=u.top+d-a)<0&&(r=d),e.style.transformOrigin="bottom"):(r=s+u.top+d,e.style.transformOrigin="top");var h=u.left,m="left"===n?0:l-c;o=h+c+l>p.width?Math.max(0,h+f+c-l):h-m+f,e.style.top=r+"px",e.style.left=o+"px"}}},{key:"relativePosition",value:function(e,t){if(e&&t){var n,r,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=t.offsetHeight,a=t.getBoundingClientRect(),l=this.getViewport();a.top+i+o.height>l.height?(n=-1*o.height,a.top+n<0&&(n=-1*a.top),e.style.transformOrigin="bottom"):(n=i,e.style.transformOrigin="top"),r=o.width>l.width?-1*a.left:a.left+o.width>l.width?-1*(a.left+o.width-l.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(t&&n){var l=n.getBoundingClientRect(),s=this.getViewport(),c=o.split(" "),u=i.split(" "),d=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},f={my:{x:d(c[0]),y:d(c[1]||c[0]),offsetX:d(c[0],!0),offsetY:d(c[1]||c[0],!0)},at:{x:d(u[0]),y:d(u[1]||u[0]),offsetX:d(u[0],!0),offsetY:d(u[1]||u[0],!0)}},p={left:function(){return f.my.offsetX+f.at.offsetX+l.left+("left"===f.my.x?0:-1*("center"===f.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return f.my.offsetY+f.at.offsetY+l.top+("top"===f.my.y?0:-1*("center"===f.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},h={count:{x:0,y:0},left:function(){var n=p.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,f.my.x="left",f.at.x="right",f.my.offsetX*=-1,f.at.offsetX*=-1,this.right())},right:function(){var r=p.left()+e.getOuterWidth(n),o=e.getWindowScrollLeft();t.style.left=r+o+"px",2===this.count.x?(t.style.left=s.width-e.getOuterWidth(t)+o+"px",this.count.x=0):r+e.getOuterWidth(t)>s.width&&(this.count.x++,f.my.x="right",f.at.x="left",f.my.offsetX*=-1,f.at.offsetX*=-1,this.left())},top:function(){var n=p.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,f.my.y="top",f.at.y="bottom",f.my.offsetY*=-1,f.at.offsetY*=-1,this.bottom())},bottom:function(){var r=p.top()+e.getOuterHeight(n),o=e.getWindowScrollTop();t.style.top=r+o+"px",2===this.count.y?(t.style.left=s.height-e.getOuterHeight(t)+o+"px",this.count.y=0):r+e.getOuterHeight(n)>s.height&&(this.count.y++,f.my.y="bottom",f.at.y="top",f.my.offsetY*=-1,f.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var o=p.top()+e.getOuterHeight(n)/2;t.style.top=o+e.getWindowScrollTop()+"px",o<0?this.bottom():o+e.getOuterHeight(n)>s.height&&this.top()}else{var i=p.left()+e.getOuterWidth(n)/2;t.style.left=i+e.getWindowScrollLeft()+"px",i<0?this.left():i+e.getOuterWidth(t)>s.width&&this.right()}}};h[f.at.x]("x"),h[f.at.y]("y"),this.isFunction(a)&&a(f)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(e){var r,o=this.getParents(e),i=/(auto|scroll)/,a=function(e){var t=e?getComputedStyle(e):null;return t&&(i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflow-x"))||i.test(t.getPropertyValue("overflow-y")))},l=function(e){t&&n.push("BODY"===e.nodeName||"HTML"===e.nodeName||9===e.nodeType?window:e)},s=I(o);try{for(s.s();!(r=s.n()).done;){var c,u=r.value,d=1===u.nodeType&&(null===(c=u.dataset)||void 0===c?void 0:c.scrollselectors);if(d){var f,p=I(d.split(","));try{for(p.s();!(f=p.n()).done;){var h=f.value,m=this.findSingle(u,h);m&&a(m)&&l(m)}}catch(e){p.e(e)}finally{p.f()}}1===u.nodeType&&a(u)&&l(u)}}catch(e){s.e(e)}finally{s.f()}}return n.some((function(e){return e===document.body||e===window}))||n.push(t?window:document.body),n}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0,o=function(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,o=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":C(HTMLElement))?e instanceof HTMLElement:e&&"object"===C(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("border-top-width"),r=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("padding-top"),i=o?parseFloat(o):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-r-i,s=e.scrollTop,c=e.clientHeight,u=this.getOuterHeight(t);l<0?e.scrollTop=s+l:l+u>c&&(e.scrollTop=s+l-c+u)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";!!!document.body.style.getPropertyValue("--scrollbar-width")&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return!(null==e||!e.nodeName||!e.parentNode)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=[],i=I(e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(i.s();!(n=i.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&o.push(a)}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){var n=void 0===t||!t;e&&document.activeElement!==e&&e.focus({preventScroll:n})}},{key:"focusFirstElement",value:function(t,n){if(t){var r=e.getFirstFocusableElement(t);return r&&e.focus(r,n),r}}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var o=getComputedStyle(e),i=document.createElement("div");i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.overflow=o.overflow,i.style.width=o.width,i.style.height=o.height,i.style.padding=o.padding,i.style.border=o.border,i.style.overflowWrap=o.overflowWrap,i.style.whiteSpace=o.whiteSpace,i.style.lineHeight=o.lineHeight,i.innerHTML=t.replace(/\r\n|\r|\n/g,"<br />");var a=document.createElement("span");a.textContent=r,i.appendChild(a);var l=document.createTextNode(n);i.appendChild(l),document.body.appendChild(i);var s=a.offsetLeft,c=a.offsetTop,u=a.clientHeight;return document.body.removeChild(i),{left:Math.abs(s-e.scrollLeft),top:Math.abs(c-e.scrollTop)+u}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=t;else for(var n in t)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name,r=e.src;return t.setAttribute("href",r),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(t,n){var r=document.createElement("style");return e.addNonce(r,t),n||(n=document.head),n.appendChild(r),r}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch(e){}e=null}return e}},{key:"addNonce",value:function(e,t){try{t||(t=process.env.REACT_APP_CSS_NONCE)}catch(e){}t&&e.setAttribute("nonce",t)}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===C(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;t<r.length;++t)n.push(r[t].nodeName);return n.sort(),n}},{key:"isEqualElement",value:function(t,n){var r,o,i,a,l;if(r=e.getAttributeNames(t),o=e.getAttributeNames(n),r.join(",")!==o.join(","))return!1;for(var s=0;s<r.length;++s)if("style"===(i=r[s]))for(var c=t.style,u=n.style,d=/^\d+$/,f=0,p=Object.keys(c);f<p.length;f++){var h=p[f];if(!d.test(h)&&c[h]!==u[h])return!1}else if(t.getAttribute(i)!==n.getAttribute(i))return!1;for(a=t.firstChild,l=n.firstChild;a&&l;a=a.nextSibling,l=l.nextSibling){if(a.nodeType!==l.nodeType)return!1;if(1===a.nodeType){if(!e.isEqualElement(a,l))return!1}else if(a.nodeValue!==l.nodeValue)return!1}return!a&&!l}},{key:"hasCSSAnimation",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}},{key:"hasCSSTransition",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("transition-duration")||"0")>0}return!1}}])}();function _(){return _=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},_.apply(null,arguments)}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function j(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}P(L,"DATA_PROPS",["data-"]),P(L,"ARIA_PROPS",["aria","focus-target"]);var M=function(){return N((function e(){A(this,e)}),0,[{key:"equals",value:function(e,t,n){return n&&e&&"object"===C(e)&&t&&"object"===C(t)?this.deepEquals(this.resolveFieldData(e,n),this.resolveFieldData(t,n)):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"===C(e)&&"object"===C(t)){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(i!==a)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!==s)return!1;if(l&&s)return e.getTime()===t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!==u)return!1;if(c&&u)return e.toString()===t.toString();var d=Object.keys(e);if((r=d.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=r;0!=n--;)if(o=d[n],!this.deepEquals(e[o],t[o]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(!e||!t)return null;try{var n=e[t];if(this.isNotEmpty(n))return n}catch(e){}if(Object.keys(e).length){if(this.isFunction(t))return t(e);if(this.isNotEmpty(e[t]))return e[t];if(-1===t.indexOf("."))return e[t];for(var r=t.split("."),o=e,i=0,a=r.length;i<a;++i){if(null==o)return null;o=o[r[i]]}return o}return null}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):{}}},{key:"reduceKeys",value:function(e,t){var n={};return e&&t&&0!==t.length?(Object.keys(e).filter((function(e){return t.some((function(t){return e.startsWith(t)}))})).forEach((function(t){n[t]=e[t],delete e[t]})),n):n}},{key:"reorderArray",value:function(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?n?t.findIndex((function(t){return r.equals(t,e,n)})):t.findIndex((function(t){return t===e})):-1}},{key:"getJSXElement",value: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];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getItemValue",value: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];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e?e[t]:void 0;return void 0===r?n[t]:r}},{key:"getPropCaseInsensitive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.toFlatCase(t);for(var o in e)if(e.hasOwnProperty(o)&&this.toFlatCase(o)===r)return e[o];for(var i in n)if(n.hasOwnProperty(i)&&this.toFlatCase(i)===r)return n[i]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){if(!this.isFunction(e))return e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(1===n.length){var o=n[0];return e(Array.isArray(o)?o[0]:o)}return e.apply(void 0,n)}},{key:"getComponentProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,n):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,n){if(e){var r,o=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!o&&null!=e&&null!==(r=e.type)&&void 0!==r&&null!==(r=r._payload)&&void 0!==r&&r.value&&(o=e.type._payload.value.find((function(e){return e===t})));var i=o===t;try{0}catch(e){}return i}return!1}},{key:"getRefElement",value:function(e){return e?"object"===C(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===C(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"isScalar",value:function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"bigint"==typeof e||"boolean"==typeof e)}},{key:"findLast",value:function(e,t){var n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch(r){n=T(e).reverse().find(t)}return n}},{key:"findLastIndex",value:function(e,t){var n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf(T(e).reverse().find(t))}return n}},{key:"sort",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(e,t,r,n),a=n;return(this.isEmpty(e)||this.isEmpty(t))&&(a=1===o?n:o),a*i}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=this.isEmpty(e),i=this.isEmpty(t);return o&&i?0:o?r:i?-r:"string"==typeof e&&"string"==typeof t?n(e,t):e<t?-1:e>t?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var n,r=R(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.key===t)return o.children||[];if(o.children){var i=this.findChildrenByKey(o.children,t);if(i.length>0)return i}}}catch(e){r.e(e)}finally{r.f()}return[]}},{key:"mutateFieldData",value:function(e,t,n){if("object"===C(e)&&"string"==typeof t)for(var r=t.split("."),o=e,i=0,a=r.length;i<a;++i){if(i+1-a==0){o[r[i]]=n;break}o[r[i]]||(o[r[i]]={}),o=o[r[i]]}}}])}(),F=0;function q(){return F++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(F)}function z(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}var B=function(){return N((function e(){A(this,e)}),0,[{key:"getJSXIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null;if(null!==e){var i=C(e),a=E(t.className,"string"===i&&e);if(o=r.createElement("span",_({},t,{className:a,key:q("icon")})),"string"!==i){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({iconProps:t,element:o},n);return M.getJSXElement(e,l)}}return o}}])}();function U(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 H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e){if(e){var t=function(e){return"function"==typeof e},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).classNameMergeFunction,r=t(n);return e.reduce((function(e,o){if(!o)return e;var i=function(){var i=o[a];if("style"===a)e.style=H(H({},e.style),o.style);else if("className"===a){var l="";l=r?n(e.className,o.className):[e.className,o.className].join(" ").trim(),e.className=l||void 0}else if(t(i)){var s=e[a];e[a]=s?function(){s.apply(void 0,arguments),i.apply(void 0,arguments)}:i}else e[a]=i};for(var a in o)i();return e}),{})}}var W,$,Y=(W=[],$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return T(W).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=$(e,t,n),o=r.value+(r.key===e?0:n)+1;return W.push({key:e,value:o}),o}(e,n,r)))},clear:function(e){var t;e&&(t=Y.get(e),W=W.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return function(e,t){return $(e,t).value}(e,t)}}),G=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"});function Z(e){return Z="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},Z(e)}function X(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}function K(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}var J=Q((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));K(J,"ripple",!1),K(J,"inputStyle","outlined"),K(J,"locale","en"),K(J,"appendTo",null),K(J,"cssTransition",!0),K(J,"autoZIndex",!0),K(J,"hideOverlaysOnDocumentScrolling",!1),K(J,"nonce",null),K(J,"nullSortOrder",1),K(J,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),K(J,"pt",void 0),K(J,"filterMatchModeOptions",{text:[G.STARTS_WITH,G.CONTAINS,G.NOT_CONTAINS,G.ENDS_WITH,G.EQUALS,G.NOT_EQUALS],numeric:[G.EQUALS,G.NOT_EQUALS,G.LESS_THAN,G.LESS_THAN_OR_EQUAL_TO,G.GREATER_THAN,G.GREATER_THAN_OR_EQUAL_TO],date:[G.DATE_IS,G.DATE_IS_NOT,G.DATE_BEFORE,G.DATE_AFTER]}),K(J,"changeTheme",(function(e,t,n,r){var o,i=document.getElementById(n);if(!i)throw Error("Element with id ".concat(n," not found."));var a=i.getAttribute("href").replace(e,t),l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("id",n),l.setAttribute("href",a),l.addEventListener("load",(function(){r&&r()})),null===(o=i.parentNode)||void 0===o||o.replaceChild(l,i)}));var ee={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseRow:"Row Collapsed",editRow:"Edit Row",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",pageLabel:"Page {page}",otpLabel:"Please enter one time password character {0}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function te(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe ariaKey detected");var n=J.locale;try{var r=function(e){var t=e||J.locale;if(t.includes("__proto__")||t.includes("prototype"))throw new Error("Unsafe locale detected");return ee[t]}(n).aria[e];if(r)for(var o in t)t.hasOwnProperty(o)&&(r=r.replace("{".concat(o,"}"),t[o]));return r}catch(t){throw new Error("The ".concat(e," option is not found in the current locale('").concat(n,"')."))}}function ne(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 re(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(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 oe=o.createContext(),ie=function(e){var t,n,r,a,l,s,c,u,d,f,p,h,m,g,y,v,b=null!==(t=e.value)&&void 0!==t?t:{},x=re(i(null!==(n=b.ripple)&&void 0!==n&&n),2),w=x[0],k=x[1],S=re(i(null!==(r=b.inputStyle)&&void 0!==r?r:"outlined"),2),C=S[0],E=S[1],T=re(i(null!==(a=b.locale)&&void 0!==a?a:"en"),2),A=T[0],O=T[1],N=re(i(null!==(l=b.appendTo)&&void 0!==l?l:null),2),P=N[0],I=N[1],D=re(i(null!==(s=b.styleContainer)&&void 0!==s?s:null),2),L=D[0],_=D[1],R=re(i(null===(c=b.cssTransition)||void 0===c||c),2),j=R[0],M=R[1],F=re(i(null===(u=b.autoZIndex)||void 0===u||u),2),q=F[0],z=F[1],B=re(i(null!==(d=b.hideOverlaysOnDocumentScrolling)&&void 0!==d&&d),2),U=B[0],H=B[1],V=re(i(null!==(f=b.nonce)&&void 0!==f?f:null),2),W=V[0],$=V[1],Y=re(i(null!==(p=b.nullSortOrder)&&void 0!==p?p:1),2),Z=Y[0],X=Y[1],K=re(i(null!==(h=b.zIndex)&&void 0!==h?h:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),2),Q=K[0],ee=K[1],te=re(i(null!==(m=b.ptOptions)&&void 0!==m?m:{mergeSections:!0,mergeProps:!0}),2),ne=te[0],ie=te[1],ae=re(i(null!==(g=b.pt)&&void 0!==g?g:void 0),2),le=ae[0],se=ae[1],ce=re(i(null!==(y=b.unstyled)&&void 0!==y&&y),2),ue=ce[0],de=ce[1],fe=re(i(null!==(v=b.filterMatchModeOptions)&&void 0!==v?v:{text:[G.STARTS_WITH,G.CONTAINS,G.NOT_CONTAINS,G.ENDS_WITH,G.EQUALS,G.NOT_EQUALS],numeric:[G.EQUALS,G.NOT_EQUALS,G.LESS_THAN,G.LESS_THAN_OR_EQUAL_TO,G.GREATER_THAN,G.GREATER_THAN_OR_EQUAL_TO],date:[G.DATE_IS,G.DATE_IS_NOT,G.DATE_BEFORE,G.DATE_AFTER]}),2),pe=fe[0],he=fe[1];o.useEffect((function(){J.ripple=w}),[w]),o.useEffect((function(){J.inputStyle=C}),[C]),o.useEffect((function(){J.locale=A}),[A]);var me={changeTheme:function(e,t,n,r){var o,i=document.getElementById(n);if(!i)throw Error("Element with id ".concat(n," not found."));var a=i.getAttribute("href").replace(e,t),l=document.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("id",n),l.setAttribute("href",a),l.addEventListener("load",(function(){r&&r()})),null===(o=i.parentNode)||void 0===o||o.replaceChild(l,i)},ripple:w,setRipple:k,inputStyle:C,setInputStyle:E,locale:A,setLocale:O,appendTo:P,setAppendTo:I,styleContainer:L,setStyleContainer:_,cssTransition:j,setCssTransition:M,autoZIndex:q,setAutoZIndex:z,hideOverlaysOnDocumentScrolling:U,setHideOverlaysOnDocumentScrolling:H,nonce:W,setNonce:$,nullSortOrder:Z,setNullSortOrder:X,zIndex:Q,setZIndex:ee,ptOptions:ne,setPtOptions:ie,pt:le,setPt:se,filterMatchModeOptions:pe,setFilterMatchModeOptions:he,unstyled:ue,setUnstyled:de};return o.createElement(oe.Provider,{value:me},e.children)},ae=J;function le(){return le=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},le.apply(null,arguments)}function se(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ce(e,t){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ce(e,t)}function ue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ce(e,t)}var de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe,he={exports:{}},me={exports:{}},ge={};var ye,ve,be,xe,we,ke,Se,Ce,Ee,Te,Ae,Oe,Ne,Pe,Ie={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
|
@@ -6,12 +6,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function De(){return ve||(ve=1,"production"===process.env.NODE_ENV?me.exports=function(){if(pe)return ge;pe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===c}return ge.AsyncMode=s,ge.ConcurrentMode=c,ge.ContextConsumer=l,ge.ContextProvider=a,ge.Element=t,ge.ForwardRef=u,ge.Fragment=r,ge.Lazy=h,ge.Memo=p,ge.Portal=n,ge.Profiler=i,ge.StrictMode=o,ge.Suspense=d,ge.isAsyncMode=function(e){return x(e)||b(e)===s},ge.isConcurrentMode=x,ge.isContextConsumer=function(e){return b(e)===l},ge.isContextProvider=function(e){return b(e)===a},ge.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ge.isForwardRef=function(e){return b(e)===u},ge.isFragment=function(e){return b(e)===r},ge.isLazy=function(e){return b(e)===h},ge.isMemo=function(e){return b(e)===p},ge.isPortal=function(e){return b(e)===n},ge.isProfiler=function(e){return b(e)===i},ge.isStrictMode=function(e){return b(e)===o},ge.isSuspense=function(e){return b(e)===d},ge.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},ge.typeOf=b,ge}():me.exports=(ye||(ye=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case s:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var x=s,w=c,k=l,S=a,C=t,E=u,T=r,
|
|
9
|
+
*/function De(){return ve||(ve=1,"production"===process.env.NODE_ENV?me.exports=function(){if(pe)return ge;pe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function x(e){return b(e)===c}return ge.AsyncMode=s,ge.ConcurrentMode=c,ge.ContextConsumer=l,ge.ContextProvider=a,ge.Element=t,ge.ForwardRef=u,ge.Fragment=r,ge.Lazy=h,ge.Memo=p,ge.Portal=n,ge.Profiler=i,ge.StrictMode=o,ge.Suspense=d,ge.isAsyncMode=function(e){return x(e)||b(e)===s},ge.isConcurrentMode=x,ge.isContextConsumer=function(e){return b(e)===l},ge.isContextProvider=function(e){return b(e)===a},ge.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ge.isForwardRef=function(e){return b(e)===u},ge.isFragment=function(e){return b(e)===r},ge.isLazy=function(e){return b(e)===h},ge.isMemo=function(e){return b(e)===p},ge.isPortal=function(e){return b(e)===n},ge.isProfiler=function(e){return b(e)===i},ge.isStrictMode=function(e){return b(e)===o},ge.isSuspense=function(e){return b(e)===d},ge.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},ge.typeOf=b,ge}():me.exports=(ye||(ye=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case s:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var x=s,w=c,k=l,S=a,C=t,E=u,T=r,A=h,O=p,N=n,P=i,I=o,D=d,L=!1;function _(e){return b(e)===c}Ie.AsyncMode=x,Ie.ConcurrentMode=w,Ie.ContextConsumer=k,Ie.ContextProvider=S,Ie.Element=C,Ie.ForwardRef=E,Ie.Fragment=T,Ie.Lazy=A,Ie.Memo=O,Ie.Portal=N,Ie.Profiler=P,Ie.StrictMode=I,Ie.Suspense=D,Ie.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(e)||b(e)===s},Ie.isConcurrentMode=_,Ie.isContextConsumer=function(e){return b(e)===l},Ie.isContextProvider=function(e){return b(e)===a},Ie.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ie.isForwardRef=function(e){return b(e)===u},Ie.isFragment=function(e){return b(e)===r},Ie.isLazy=function(e){return b(e)===h},Ie.isMemo=function(e){return b(e)===p},Ie.isPortal=function(e){return b(e)===n},Ie.isProfiler=function(e){return b(e)===i},Ie.isStrictMode=function(e){return b(e)===o},Ie.isSuspense=function(e){return b(e)===d},Ie.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Ie.typeOf=b}()),Ie)),me.exports}
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function Le(){if(xe)return be;xe=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return be=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l},be}function _e(){if(ke)return we;ke=1;return we="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Re(){return Ce?Se:(Ce=1,Se=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var je=De();he.exports=function(){if(Ae)return Oe;Ae=1;var e=De(),t=Le(),n=_e(),r=Re(),o=function(){if(Te)return Ee;Te=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=_e(),n={},r=Re();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,l,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ee=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Oe=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,o,i,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new p("Invalid "+i+" `"+a+"` of type `"+v(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,o,i,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return l(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,r,o){return y(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],c=v(s);if("object"!==c)return new p("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(r(s,u)){var d=e(s,u,i,a,l+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(f(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return h((function(t,o,i,a,l){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,l,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&s.push(u.data.expectedType)}return new p("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var l=t[r],s=v(l);if("object"!==s)return new p("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,b(u));var d=u(l,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(o,i,a,l,s){var c=o[i],u=v(c);if("object"!==u)return new p("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var h=e[f];if(r(e,f)&&"function"!=typeof h)return g(a,l,s,f,b(h));if(!h)return new p("Invalid "+l+" `"+s+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,f,a,l,s+"."+f,n);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,c,d,f,h){if(c=c||u,f=f||l,h!==n){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+l;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[l]?o?null===a[l]?new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,d,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h((function(t,n,r,o,i,a){var l=t[n];return v(l)!==e?new p("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Oe}()(je.isElement,!0)}else he.exports=function(){if(Pe)return Ne;Pe=1;var e=_e();function t(){}function n(){}return n.resetWarningCache=t,Ne=function(){function r(t,n,r,o,i,a){if(a!==e){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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Me=fe(he.exports);function Fe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ze=!1,qe="production"!==process.env.NODE_ENV?Me.oneOfType([Me.number,Me.shape({enter:Me.number,exit:Me.number,appear:Me.number}).isRequired]):null,Be="production"!==process.env.NODE_ENV?Me.oneOfType([Me.string,Me.shape({enter:Me.string,exit:Me.string,active:Me.string}),Me.shape({enter:Me.string,enterDone:Me.string,enterActive:Me.string,exit:Me.string,exitDone:Me.string,exitActive:Me.string})]):null,He=o.createContext(null),Ue=function(e){return e.scrollTop},Ve="unmounted",We="exited",$e="entering",Ye="entered",Ge="exiting",Ze=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=We,r.appearStatus=$e):o=Ye:o=t.unmountOnExit||t.mountOnEnter?Ve:We,r.state={status:o},r.nextCallback=null,r}ue(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ve?{status:We}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$e&&n!==Ye&&(t=$e):n!==$e&&n!==Ye||(t=Ge)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$e){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);n&&Ue(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===We&&this.setState({status:Ve})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[y.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||ze?this.safeSetState({status:Ye},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$e},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ye},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.findDOMNode(this);t&&!ze?(this.props.onExit(r),this.safeSetState({status:Ge},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:We},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:We},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ve)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=se(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(He.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Xe(){}Ze.contextType=He,Ze.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Me.shape({current:"undefined"==typeof Element?Me.any:function(e,t,n,r,o,i){var a=e[t];return Me.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Me.oneOfType([Me.func.isRequired,Me.element.isRequired]).isRequired,in:Me.bool,mountOnEnter:Me.bool,unmountOnExit:Me.bool,appear:Me.bool,enter:Me.bool,exit:Me.bool,timeout:function(e){var t=qe;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:Me.func,onEnter:Me.func,onEntering:Me.func,onEntered:Me.func,onExit:Me.func,onExiting:Me.func,onExited:Me.func}:{},Ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xe,onEntering:Xe,onEntered:Xe,onExit:Xe,onExiting:Xe,onExited:Xe},Ze.UNMOUNTED=Ve,Ze.EXITED=We,Ze.ENTERING=$e,Ze.ENTERED=Ye,Ze.EXITING=Ge;var Je=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}(e,t)}))},Ke=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Fe(e.className,t):e.setAttribute("class",Fe(e.className&&e.className.baseVal||"",t))}(e,t)}))},Qe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}ue(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Ue(e),r&&(this.appliedClasses[t][n]=r,Je(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Ke(e,r),o&&Ke(e,o),i&&Ke(e,i)},n.render=function(){var e=this.props;e.classNames;var t=se(e,["classNames"]);return o.createElement(Ze,le({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function et(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function tt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function nt(e,t,n){var r=et(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if(a(s)){var c=i in t,u=i in r,d=t[i],f=a(d)&&!d.props.in;!u||c&&!f?u||!c||f?u&&c&&a(d)&&(o[i]=l(s,{onExited:n.bind(null,s),in:d.props.in,exit:tt(s,"exit",e),enter:tt(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:n.bind(null,s),in:!0,exit:tt(s,"exit",e),enter:tt(s,"enter",e)})}})),o}Qe.defaultProps={classNames:""},Qe.propTypes="production"!==process.env.NODE_ENV?le({},Ze.propTypes,{classNames:Be,onEnter:Me.func,onEntering:Me.func,onEntered:Me.func,onExit:Me.func,onExiting:Me.func,onExited:Me.func}):{};var rt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ot=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ue(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,et(n.children,(function(e){return l(e,{onExited:r.bind(null,e),in:!0,appear:tt(e,"appear",n),enter:tt(e,"enter",n),exit:tt(e,"exit",n)})}))):nt(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=et(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=le({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=se(e,["component","childFactory"]),i=this.state.contextValue,a=rt(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(He.Provider,{value:i},a):o.createElement(He.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);function it(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 at(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return it(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)?it(e,t):void 0}}(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.")}()}ot.propTypes="production"!==process.env.NODE_ENV?{component:Me.any,children:Me.node,appear:Me.bool,enter:Me.bool,exit:Me.bool,childFactory:Me.func}:{},ot.defaultProps={component:"div",childFactory:function(e){return e}};var lt=function(e){return r.useEffect((function(){return e}),[])},st=function(){var e=c(oe);return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V(n,null==e?void 0:e.ptOptions)}},ct=function(e){var t=r.useRef(!1);return r.useEffect((function(){if(!t.current)return t.current=!0,e&&e()}),[])},ut=0,dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=at(i(!1),2),r=n[0],o=n[1],a=u(null),l=c(oe),s=L.isClient()?window.document:void 0,f=t.document,p=void 0===f?s:f,h=t.manual,m=void 0!==h&&h,g=t.name,y=void 0===g?"style_".concat(++ut):g,v=t.id,b=void 0===v?void 0:v,x=t.media,w=void 0===x?void 0:x,k=function(){if(p&&!r){var t=(null==l?void 0:l.styleContainer)||p.head;a.current=function(e){var t=e.querySelector('style[data-primereact-style-id="'.concat(y,'"]'));if(t)return t;if(void 0!==b){var n=p.getElementById(b);if(n)return n}return p.createElement("style")}(t),a.current.isConnected||(a.current.type="text/css",b&&(a.current.id=b),w&&(a.current.media=w),L.addNonce(a.current,l&&l.nonce||ae.nonce),t.appendChild(a.current),y&&a.current.setAttribute("data-primereact-style-id",y)),a.current.textContent=e,o(!0)}};return d((function(){m||k()}),[m]),{id:b,name:y,update:function(t){r&&e!==t&&(a.current.textContent=t)},unload:function(){p&&a.current&&(L.removeInlineStyle(a.current),o(!1))},load:k,isLoaded:r}},ft=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e&&e();n.current=!0}),t)};function pt(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 ht(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pt(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)?pt(e,t):void 0}}(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.")}()}function mt(e){return mt="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},mt(e)}function gt(e){var t=function(e,t){if("object"!=mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mt(t)?t:t+""}function yt(e,t,n){return(t=gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt="\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat("\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n","\n ").concat("\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n ").concat("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","\n}\n"),wt={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.css,n=bt(bt({},e.defaultProps),wt.defaultProps),r={},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t.hasOwnProperty("pt")&&void 0!==t.pt&&(t=t.pt);var i=n,a=/./g.test(i)&&!!r[i.split(".")[0]],l=a?M.toFlatCase(i.split(".")[1]):M.toFlatCase(i),s=r.hostName&&M.toFlatCase(r.hostName)||r.props&&r.props.__TYPE&&M.toFlatCase(r.props.__TYPE)||"",c="transition"===l,u="data-pc-",d=function(e){return null!=e&&e.props?e.hostName?e.props.__TYPE===e.hostName?e.props:d(e.parent):e.parent:void 0};wt.cParams=r,wt.cName=s;var f=function(e){var t,n;return(null===(t=r.props)||void 0===t?void 0:t[e])||(null===(n=d(r))||void 0===n?void 0:n[e])}("ptOptions")||wt.context.ptOptions||{},p=f.mergeSections,h=void 0===p||p,m=f.mergeProps,g=void 0!==m&&m,y=function(){var e=kt.apply(void 0,arguments);return Array.isArray(e)?{className:E.apply(void 0,ht(e))}:M.isString(e)?{className:e}:null!=e&&e.hasOwnProperty("className")&&Array.isArray(e.className)?{className:E.apply(void 0,ht(e.className))}:e},v=o?a?Et(y,i,r):Tt(y,i,r):void 0,b=a?void 0:Ct(St(t,s),y,i,r),x=!c&&bt(bt({},"root"===l&&yt({},"".concat(u,"name"),r.props&&r.props.__parentMetadata?M.toFlatCase(r.props.__TYPE):s)),{},yt({},"".concat(u,"section"),l));return h||!h&&b?g?V([v,b,Object.keys(x).length?x:{}],{classNameMergeFunction:null===(e=wt.context.ptOptions)||void 0===e?void 0:e.classNameMergeFunction}):bt(bt(bt({},v),b),Object.keys(x).length?x:{}):bt(bt({},b),Object.keys(x).length?x:{})};return bt(bt({getProps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wt.context=t,wt.cProps=e,M.getMergedProps(e,n)},getOtherProps:function(e){return M.getDiffProps(e,n)},setMetaData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,i=e.state,a=function(){return wt.context.unstyled||ae.unstyled||n.unstyled};return{ptm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o((n||{}).pt,t,bt(bt({},e),r))},ptmo:function(){return o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},sx:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]){var a,l=kt(t&&t.inlineStyles,e,bt({props:n,state:i},o));return V([kt(r,e,bt({props:n,state:i},o)),l],{classNameMergeFunction:null===(a=wt.context.ptOptions)||void 0===a?void 0:a.classNameMergeFunction})}},cx:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a()?void 0:kt(t&&t.classes,e,bt({props:n,state:i},r))},isUnstyled:a}}},e),{},{defaultProps:n})}},kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=String(M.toFlatCase(t)).split("."),o=r.shift(),i=M.isNotEmpty(e)?Object.keys(e).find((function(e){return M.toFlatCase(e)===o})):"";return o?M.isObject(e)?kt(M.getItemValue(e[i],n),r.join("."),n):void 0:M.getItemValue(e,n)},St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=null==e?void 0:e._usept,o=function(e){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n?n(e):e,a=M.toFlatCase(t);return null!==(r=o?a!==wt.cName?null==i?void 0:i[a]:void 0:null==i?void 0:i[a])&&void 0!==r?r:i};return M.isNotEmpty(r)?{_usept:r,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)},Ct=function(e,t,n,r){var o=function(e){return t(e,n,r)};if(null!=e&&e.hasOwnProperty("_usept")){var i=e._usept||wt.context.ptOptions||{},a=i.mergeSections,l=void 0===a||a,s=i.mergeProps,c=void 0!==s&&s,u=i.classNameMergeFunction,d=o(e.originalValue),f=o(e.value);if(void 0===d&&void 0===f)return;return M.isString(f)?f:M.isString(d)?d:l||!l&&f?c?V([d,f],{classNameMergeFunction:u}):bt(bt({},d),f):f}return o(e)},Et=function(e,t,n){return Ct(St(wt.context.pt||ae.pt,void 0,(function(e){return M.getItemValue(e,wt.cParams)})),e,t,n)},Tt=function(e,t,n){return Ct(St(wt.context.pt||ae.pt,void 0,(function(e){return kt(e,wt.cName,wt.cParams)||M.getItemValue(e,wt.cParams)})),e,t,n)};function Ot(e){return Ot="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},Ot(e)}function At(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}function Nt(e,t,n){return(t=At(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(e){return M.getMergedProps(e,Pt.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,Pt.defaultProps)}};function It(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=r.forwardRef((function(e,t){var n=Pt.getProps(e),o=r.useContext(oe),i=n.disabled||n.options&&n.options.disabled||o&&!o.cssTransition||!ae.cssTransition,a=function(e,t){n.onEnter&&n.onEnter(e,t),n.options&&n.options.onEnter&&n.options.onEnter(e,t)},l=function(e,t){n.onEntering&&n.onEntering(e,t),n.options&&n.options.onEntering&&n.options.onEntering(e,t)},s=function(e,t){n.onEntered&&n.onEntered(e,t),n.options&&n.options.onEntered&&n.options.onEntered(e,t)},c=function(e){n.onExit&&n.onExit(e),n.options&&n.options.onExit&&n.options.onExit(e)},u=function(e){n.onExiting&&n.onExiting(e),n.options&&n.options.onExiting&&n.options.onExiting(e)},d=function(e){n.onExited&&n.onExited(e),n.options&&n.options.onExited&&n.options.onExited(e)};if(ft((function(){if(i){var e=M.getRefElement(n.nodeRef);n.in?(a(e,!0),l(e,!0),s(e,!0)):(c(e),u(e),d(e))}}),[n.in]),i)return n.in?n.children:null;var f={nodeRef:n.nodeRef,in:n.in,appear:n.appear,onEnter:a,onEntering:l,onEntered:s,onExit:c,onExiting:u,onExited:d},p=Dt(Dt(Dt({},{classNames:n.classNames,timeout:n.timeout,unmountOnExit:n.unmountOnExit}),n.options||{}),f);return r.createElement(Qe,p,n.children)}));function _t(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 Rt(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _t(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)?_t(e,t):void 0}}(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.")}()}Lt.displayName="CSSTransition";var jt={defaultProps:{__TYPE:"Portal",element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null,children:void 0},getProps:function(e){return M.getMergedProps(e,jt.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,jt.defaultProps)}},Mt=r.memo((function(e){var t=jt.getProps(e),n=r.useContext(oe),o=Rt(r.useState(t.visible&&L.isClient()),2),i=o[0],a=o[1];ct((function(){L.isClient()&&!i&&(a(!0),t.onMounted&&t.onMounted())})),ft((function(){t.onMounted&&t.onMounted()}),[i]),lt((function(){t.onUnmounted&&t.onUnmounted()}));var l=t.element||t.children;if(l&&i){var s=t.appendTo||n&&n.appendTo||ae.appendTo;return M.isFunction(s)&&(s=s()),s||(s=document.body),"self"===s?l:y.createPortal(l,s)}return null}));Mt.displayName="Portal";var Ft={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(e){return M.getMergedProps(e,Ft.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,Ft.defaultProps)},getPTI:function(e){var t=M.isEmpty(e.label),n=Ft.getOtherProps(e),r={className:E("p-icon",{"p-icon-spin":e.spin},e.className),role:t?void 0:"img","aria-label":t?void 0:e.label,"aria-hidden":e.label?t:void 0};return M.getMergedProps(n,r)}};function zt(){return zt=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},zt.apply(null,arguments)}var qt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",zt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"}))})));function Bt(){return Bt=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},Bt.apply(null,arguments)}qt.displayName="CheckIcon";var Ht=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Bt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),r.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),r.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))})));function Ut(){return Ut=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},Ut.apply(null,arguments)}Ht.displayName="ExclamationTriangleIcon";var Vt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Ut({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))})));function Wt(){return Wt=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},Wt.apply(null,arguments)}Vt.displayName="InfoCircleIcon";var $t=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Wt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"}))})));function Yt(){return Yt=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},Yt.apply(null,arguments)}$t.displayName="TimesIcon";var Gt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Yt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))})));function Zt(){return Zt=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},Zt.apply(null,arguments)}function Xt(e){return Xt="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},Xt(e)}function Jt(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xt(t)?t:t+""}function Kt(e,t,n){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qt(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 en(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qt(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)?Qt(e,t):void 0}}(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.")}()}Gt.displayName="TimesCircleIcon";var tn=wt.extend({defaultProps:{__TYPE:"Ripple",children:void 0},css:{styles:"\n@layer primereact {\n .p-ripple {\n overflow: hidden;\n position: relative;\n }\n \n .p-ink {\n display: block;\n position: absolute;\n background: rgba(255, 255, 255, 0.5);\n border-radius: 100%;\n transform: scale(0);\n }\n \n .p-ink-active {\n animation: ripple 0.4s linear;\n }\n \n .p-ripple-disabled .p-ink {\n display: none;\n }\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}\n\n",classes:{root:"p-ink"}},getProps:function(e){return M.getMergedProps(e,tn.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,tn.defaultProps)}});function nn(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}var rn=r.memo(r.forwardRef((function(e,t){var n=en(r.useState(!1),2),o=n[0],i=n[1],a=r.useRef(null),l=r.useRef(null),s=st(),c=r.useContext(oe),u=tn.getProps(e,c),d=c&&c.ripple||ae.ripple,f={props:u};dt(tn.css.styles,{name:"ripple",manual:!d});var p=tn.setMetaData(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},f)),h=p.ptm,m=p.cx,g=function(){return a.current&&a.current.parentElement},y=function(){l.current&&l.current.addEventListener("pointerdown",v)},v=function(e){var t=L.getOffset(l.current),n=e.pageX-t.left+document.body.scrollTop-L.getWidth(a.current)/2,r=e.pageY-t.top+document.body.scrollLeft-L.getHeight(a.current)/2;b(n,r)},b=function(e,t){a.current&&"none"!==getComputedStyle(a.current,null).display&&(L.removeClass(a.current,"p-ink-active"),x(),a.current.style.top=t+"px",a.current.style.left=e+"px",L.addClass(a.current,"p-ink-active"))},x=function(){if(a.current&&!L.getHeight(a.current)&&!L.getWidth(a.current)){var e=Math.max(L.getOuterWidth(l.current),L.getOuterHeight(l.current));a.current.style.height=e+"px",a.current.style.width=e+"px"}};if(r.useImperativeHandle(t,(function(){return{props:u,getInk:function(){return a.current},getTarget:function(){return l.current}}})),ct((function(){i(!0)})),ft((function(){o&&a.current&&(l.current=g(),x(),y())}),[o]),ft((function(){a.current&&!l.current&&(l.current=g(),x(),y())})),lt((function(){a.current&&(l.current=null,l.current&&l.current.removeEventListener("pointerdown",v))})),!d)return null;var w=s({"aria-hidden":!0,className:E(m("root"))},tn.getOtherProps(u),h("root"));return r.createElement("span",Zt({role:"presentation",ref:a},w,{onAnimationEnd:function(e){L.removeClass(e.currentTarget,"p-ink-active")}}))})));function on(){return on=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},on.apply(null,arguments)}function an(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 ln(e,t){if(e){if("string"==typeof e)return an(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)?an(e,t):void 0}}function sn(e){return function(e){if(Array.isArray(e))return an(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ln(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.")}()}function cn(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||ln(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e){return un="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},un(e)}function dn(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==un(t)?t:t+""}function fn(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rn.displayName="Ripple";var pn={root:function(e){var t=e.props,n=e.context;return E("p-toast p-component p-toast-"+t.position,t.className,{"p-input-filled":n&&"filled"===n.inputStyle||"filled"===ae.inputStyle,"p-ripple-disabled":n&&!1===n.ripple||!1===ae.ripple})},message:{message:function(e){var t=e.severity;return E("p-toast-message",fn({},"p-toast-message-".concat(t),t))},content:"p-toast-message-content",buttonicon:"p-toast-icon-close-icon",closeButton:"p-toast-icon-close p-link",icon:"p-toast-message-icon",text:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail"},transition:"p-toast-message"},hn=wt.extend({defaultProps:{__TYPE:"Toast",id:null,className:null,content:null,style:null,baseZIndex:0,position:"top-right",transitionOptions:null,appendTo:"self",onClick:null,onRemove:null,onShow:null,onHide:null,onMouseEnter:null,onMouseLeave:null,children:void 0},css:{classes:pn,styles:"\n@layer primereact {\n .p-toast {\n width: calc(100% - var(--toast-indent, 0px));\n max-width: 25rem;\n }\n \n .p-toast-message-icon {\n flex-shrink: 0;\n }\n \n .p-toast-message-content {\n display: flex;\n align-items: flex-start;\n }\n \n .p-toast-message-text {\n flex: 1 1 auto;\n }\n \n .p-toast-summary {\n overflow-wrap: anywhere;\n }\n \n .p-toast-detail {\n overflow-wrap: anywhere;\n }\n \n .p-toast-top-center {\n transform: translateX(-50%);\n }\n \n .p-toast-bottom-center {\n transform: translateX(-50%);\n }\n \n .p-toast-center {\n min-width: 20vw;\n transform: translate(-50%, -50%);\n }\n \n .p-toast-icon-close {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-toast-icon-close.p-link {\n cursor: pointer;\n }\n \n /* Animations */\n .p-toast-message-enter {\n opacity: 0;\n transform: translateY(50%);\n }\n \n .p-toast-message-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: transform 0.3s, opacity 0.3s;\n }\n \n .p-toast-message-enter-done {\n transform: none;\n }\n \n .p-toast-message-exit {\n opacity: 1;\n max-height: 1000px;\n }\n \n .p-toast .p-toast-message.p-toast-message-exit-active {\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;\n }\n}\n",inlineStyles:{root:function(e){var t=e.props;return{position:"fixed",top:"top-right"===t.position||"top-left"===t.position||"top-center"===t.position?"20px":"center"===t.position?"50%":null,right:("top-right"===t.position||"bottom-right"===t.position)&&"20px",bottom:("bottom-left"===t.position||"bottom-right"===t.position||"bottom-center"===t.position)&&"20px",left:"top-left"===t.position||"bottom-left"===t.position?"20px":"center"===t.position||"top-center"===t.position||"bottom-center"===t.position?"50%":null}}}}});function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yn=r.memo(r.forwardRef((function(e,t){var n=st(),o=e.messageInfo,i=e.metaData,a=e.ptCallbacks,l=a.ptm,s=a.ptmo,c=a.cx,u=e.index,d=o.message,f=d.severity,p=d.content,h=d.summary,m=d.detail,g=d.closable,y=d.life,v=d.sticky,b=d.className,x=d.style,w=d.contentClassName,k=d.contentStyle,S=d.icon,C=d.closeIcon,T=d.pt,O={index:u},A=gn(gn({},i),O),N=cn(r.useState(!1),2),P=N[0],I=N[1],D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=r.useRef(null),i=r.useRef(null),a=r.useCallback((function(){return clearTimeout(o.current)}),[o.current]);return r.useEffect((function(){i.current=e})),r.useEffect((function(){if(n)return o.current=setTimeout((function(){i.current()}),t),a;a()}),[t,n]),lt((function(){a()})),[a]}((function(){j()}),y||3e3,!v&&!P),_=cn(D,1)[0],R=function(t,n){return l(t,gn({hostName:e.hostName},n))},j=function(){_(),e.onClose&&e.onClose(o)},F=function(t){!e.onClick||L.hasClass(t.target,"p-toast-icon-close")||L.hasClass(t.target,"p-toast-icon-close-icon")||e.onClick(o.message)},z=function(){if(o){var t=M.getJSXElement(p,{message:o.message,onClick:F,onClose:j}),i=n({className:c("message.icon")},R("icon",A),s(T,"icon",gn(gn({},O),{},{hostName:e.hostName}))),a=S;if(!S)switch(f){case"info":a=r.createElement(Vt,i);break;case"warn":a=r.createElement(Ht,i);break;case"error":a=r.createElement(Gt,i);break;case"success":a=r.createElement(qt,i)}var l=B.getJSXIcon(a,gn({},i),{props:e}),u=n({className:c("message.text")},R("text",A),s(T,"text",gn(gn({},O),{},{hostName:e.hostName}))),d=n({className:c("message.summary")},R("summary",A),s(T,"summary",gn(gn({},O),{},{hostName:e.hostName}))),g=n({className:c("message.detail")},R("detail",A),s(T,"detail",gn(gn({},O),{},{hostName:e.hostName})));return t||r.createElement(r.Fragment,null,l,r.createElement("div",u,r.createElement("span",d,h),m&&r.createElement("div",g,m)))}return null}(),q=function(){var t=n({className:c("message.buttonicon")},R("buttonicon",A),s(T,"buttonicon",gn(gn({},O),{},{hostName:e.hostName}))),o=C||r.createElement($t,t),i=B.getJSXIcon(o,gn({},t),{props:e}),a=n({type:"button",className:c("message.closeButton"),onClick:j,"aria-label":e.ariaCloseLabel||te("close")},R("closeButton",A),s(T,"closeButton",gn(gn({},O),{},{hostName:e.hostName})));return!1!==g?r.createElement("div",null,r.createElement("button",a,i,r.createElement(rn,null))):null}(),H=n({ref:t,className:E(b,c("message.message",{severity:f})),style:x,role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:F,onMouseEnter:function(t){e.onMouseEnter&&e.onMouseEnter(t),t.defaultPrevented||v||(_(),I(!0))},onMouseLeave:function(t){e.onMouseLeave&&e.onMouseLeave(t),t.defaultPrevented||v||I(!1)}},R("message",A),s(T,"root",gn(gn({},O),{},{hostName:e.hostName}))),U=n({className:E(w,c("message.content")),style:k},R("content",A),s(T,"content",gn(gn({},O),{},{hostName:e.hostName})));return r.createElement("div",H,r.createElement("div",U,z,q))})));yn.displayName="ToastMessage";var vn=0,bn=r.memo(r.forwardRef((function(e,t){var n=st(),o=r.useContext(oe),i=hn.getProps(e,o),a=cn(r.useState([]),2),l=a[0],s=a[1],c=r.useRef(null),u={props:i,state:{messages:l}},d=hn.setMetaData(u);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=n.name,o=n.styled,i=void 0!==o&&o,a=n.hostName,l=void 0===a?"":a,s=Et(kt,"global.css",wt.cParams),c=M.toFlatCase(r),u=dt("\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n",{name:"base",manual:!0}).load,d=dt(xt,{name:"common",manual:!0}).load,f=dt(s,{name:"global",manual:!0}).load,p=dt(e,{name:r,manual:!0}).load,h=function(e){if(!l){var t=Ct(St((wt.cProps||{}).pt,c),kt,"hooks.".concat(e)),n=Tt(kt,"hooks.".concat(e));null==t||t(),null==n||n()}};h("useMountEffect"),ct((function(){u(),f(),t()||(d(),i||p())})),ft((function(){h("useUpdateEffect")})),lt((function(){h("useUnmountEffect")}))}(hn.css.styles,d.isUnstyled,{name:"toast"});var f=function(e){e&&s((function(t){return p(t,e,!0)}))},p=function(e,t,n){var r;if(Array.isArray(t)){var o=t.reduce((function(e,t){return e.push({_pId:vn++,message:t}),e}),[]);r=n&&e?[].concat(sn(e),sn(o)):o}else{var i={_pId:vn++,message:t};r=n&&e?[].concat(sn(e),[i]):[i]}return r},h=function(){Y.clear(c.current),s([])},m=function(e){s((function(t){return p(t,e,!1)}))},g=function(e){var t=M.isNotEmpty(e._pId)?e._pId:e.message||e;s((function(n){return n.filter((function(n){return n._pId!==e._pId&&!M.deepEquals(n.message,t)}))})),i.onRemove&&i.onRemove(e.message||t)},y=function(e){g(e)},v=function(){i.onShow&&i.onShow()},b=function(){1===l.length&&Y.clear(c.current),i.onHide&&i.onHide()};ft((function(){Y.set("toast",c.current,o&&o.autoZIndex||ae.autoZIndex,i.baseZIndex||o&&o.zIndex.toast||ae.zIndex.toast)}),[l,i.baseZIndex]),lt((function(){Y.clear(c.current)})),r.useImperativeHandle(t,(function(){return{props:i,show:f,replace:m,remove:g,clear:h,getElement:function(){return c.current}}}));var x,w,k=(x=n({ref:c,id:i.id,className:d.cx("root",{context:o}),style:d.sx("root")},hn.getOtherProps(i),d.ptm("root")),w=n({classNames:d.cx("transition"),timeout:{enter:300,exit:300},options:i.transitionOptions,unmountOnExit:!0,onEntered:v,onExited:b},d.ptm("transition")),r.createElement("div",x,r.createElement(ot,null,l&&l.map((function(t,n){var o=r.createRef();return r.createElement(Lt,on({nodeRef:o,key:t._pId},w),e.content?M.getJSXElement(e.content,{message:t.message}):r.createElement(yn,{hostName:"Toast",ref:o,messageInfo:t,index:n,onClick:i.onClick,onClose:y,onMouseEnter:i.onMouseEnter,onMouseLeave:i.onMouseLeave,closeIcon:i.closeIcon,ptCallbacks:d,metaData:u}))})))));return r.createElement(Mt,{element:k,appendTo:i.appendTo})})));bn.displayName="Toast";var xn=f({toast:null,showToast:function(){}});function wn(n){var r,o=n.children,i={showToast:function(e,t,n){var o;null===(o=r.current)||void 0===o||o.show({severity:t,summary:n,detail:e,life:2e3})},toast:r=u(null)};return e(xn.Provider,{value:i,children:[t(bn,{ref:i.toast}),o]})}var kn=function(){return kn=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},kn.apply(this,arguments)};function Sn(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}function Cn(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function En(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function Tn(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var On=null,An=function(){var r=i([]),o=r[0],a=r[1],l=p((function(e){var t=Math.random().toString(36).substr(2,9),n=kn(kn({},e),{id:t});a((function(e){return Tn(Tn([],e,!0),[n],!1)})),setTimeout((function(){a((function(e){return e.filter((function(e){return e.id!==t}))}))}),e.life||5e3)}),[]),s=p((function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))}),[]);return d((function(){return On={show:l},function(){On=null}}),[l]),e(n,{children:[t("div",{className:"toast-container",children:o.map((function(n,r){return t("div",{className:"toast toast-".concat(n.severity),style:{animationDelay:"".concat(100*r,"ms"),top:"".concat(20+80*r,"px")},children:e("div",{className:"toast-content",children:[e("span",{className:"toast-icon",children:["success"===n.severity&&"✅","error"===n.severity&&"❌","warn"===n.severity&&"⚠️","info"===n.severity&&"ℹ️"]}),e("div",{className:"toast-text",children:[t("div",{className:"toast-summary",children:n.summary}),n.detail&&t("div",{className:"toast-detail",children:n.detail})]}),t("button",{className:"toast-close",onClick:function(){return s(n.id)},children:"×"})]})},n.id)}))}),t("style",{children:"\n .toast-container {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n gap: 10px;\n max-width: 400px;\n }\n\n .toast {\n background: white;\n border-radius: 8px;\n padding: 12px 16px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border-left: 4px solid #ccc;\n animation: slideIn 0.3s ease-out;\n transition: all 0.3s ease;\n min-width: 300px;\n max-width: 400px;\n }\n\n .toast-success {\n border-left-color: #10b981;\n background: #f0fdf4;\n }\n\n .toast-error {\n border-left-color: #ef4444;\n background: #fef2f2;\n }\n\n .toast-warn {\n border-left-color: #f59e0b;\n background: #fffbeb;\n }\n\n .toast-info {\n border-left-color: #3b82f6;\n background: #eff6ff;\n }\n\n .toast-content {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n }\n\n .toast-icon {\n font-size: 16px;\n flex-shrink: 0;\n margin-top: 2px;\n }\n\n .toast-text {\n flex: 1;\n min-width: 0;\n }\n\n .toast-summary {\n font-size: 14px;\n font-weight: 600;\n color: #374151;\n margin-bottom: 4px;\n }\n\n .toast-detail {\n font-size: 13px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .toast-close {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n color: #6b7280;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n flex-shrink: 0;\n margin-top: -2px;\n }\n\n .toast-close:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n @keyframes slideIn {\n from {\n transform: translateX(100%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes slideOut {\n from {\n transform: translateX(0);\n opacity: 1;\n }\n to {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n\n .toast.hiding {\n animation: slideOut 0.3s ease-in forwards;\n }\n "})]})},Nn=function(e){On?On.show(e):(console.log("Toast:",e),"error"===e.severity&&alert("Error: ".concat(e.summary," - ").concat(e.detail)))},Pn=f(null);function In(e){var n=e.children,r=function(e){var t=u(null),n=i(""),r=n[0],o=n[1],a=i(!1),l=a[0],s=a[1],c=i(null),d=c[0],f=c[1],p=i(!0),h=p[0],m=p[1],g=i(!0),y=g[0],v=g[1],b=i(""),x=b[0],w=b[1],k=i(!1),S=k[0],C=k[1],E=i([]),T=E[0],O=E[1];u(null);var A=function(t,n,r,i,a){return Cn(void 0,void 0,void 0,(function(){var l,c,u,d,p,h,m,g,y;return En(this,(function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),s(!0),[4,e.post("/api/v1/cindy/task_status/",t)];case 1:return l=v.sent().data,console.log("data===",l),l&&"Pending"===(null==l?void 0:l.status)?(setTimeout((function(){A(t,n,r,i,a)}),2e3),[2]):(l&&(null===(c=null==l?void 0:l.result)||void 0===c?void 0:c.answer)&&(w((null===(u=null==l?void 0:l.result)||void 0===u?void 0:u.agent_trans_uuid)||""),C(null===(d=null==l?void 0:l.result)||void 0===d?void 0:d.agent_mode),O((function(e){return null==e?void 0:e.map((function(e){var n;return e.conversationId===(null==t?void 0:t.task_id)?kn(kn({},e),{answer:null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.answer,isLoading:!1,answerTime:new Date}):e}))}))),o(""),f(null),s(!1),(null===(p=null==a?void 0:a.trim())||void 0===p?void 0:p.length)<=0&&(null===(h=null==l?void 0:l.result)||void 0===h?void 0:h.conversation_uuid)&&(n((function(e){var t,n;return Tn([{title:null===(t=null==l?void 0:l.result)||void 0===t?void 0:t.question,latest_date_time_epoch:Math.floor((new Date).getTime()/1e3),isEdit:!1,isDelete:!1,conversation_uuid:null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.conversation_uuid,deleteConfirmation:null}],e,!0)})),r(null===(m=null==l?void 0:l.result)||void 0===m?void 0:m.question),i(null===(g=null==l?void 0:l.result)||void 0===g?void 0:g.conversation_uuid),console.log(null===(y=null==l?void 0:l.result)||void 0===y?void 0:y.agent_trans_uuid)),[3,3]);case 2:return v.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),O((function(e){return null==e?void 0:e.map((function(e){return(null==e?void 0:e.conversationId)===(null==t?void 0:t.task_id)?kn(kn({},e),{isLoading:!1}):e}))})),[3,3];case 3:return[2]}}))}))};return{opneChatModal:h,setOpenChatModal:m,isResize:y,setIsResize:v,question:r,setQuestion:o,isAgent:S,setIsAgent:C,setConverse:w,isLoading:l,setIsLoading:s,converse:x,prompts:T,setPrompts:O,getTextAnswer:A,getTaskID:function(t,n,r,o,i,a,l){return Cn(void 0,void 0,void 0,(function(){var c,u,d,f;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),s(!0),[4,e.post("/api/v1/cindy/agentic_ai_dfact_ragq/",n)];case 1:return c=p.sent(),console.log("response---",c),c&&(null===(d=null==c?void 0:c.data)||void 0===d?void 0:d.task_id)?((u=document.getElementById("messageTextarea"))&&(u.value=""),r(null),O((function(e){return null==e?void 0:e.map((function(e){var n;return(null==e?void 0:e.id)===t?kn(kn({},e),{conversationId:null===(n=null==c?void 0:c.data)||void 0===n?void 0:n.task_id}):e}))})),A({task_id:null===(f=null==c?void 0:c.data)||void 0===f?void 0:f.task_id,context:null==n?void 0:n.context,payloads:n},o,i,a,l),setTimeout((function(){var e=document.getElementById("chat-container");e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3)):(s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."})),[3,4];case 2:return p.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),[3,4];case 3:return s(!1),[7];case 4:return[2]}}))}))},getTaskAgent:function(t,n,r,o,i,a,l){return Cn(void 0,void 0,void 0,(function(){var c,u,d,f;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),s(!0),console.log(n,x),n.agent_trans_uuid=x,""===n.agent_trans_uuid&&delete n.agent_trans_uuid,[4,e.post("/api/v1/cindy/agentic_ai_catalog_service/",n)];case 1:return c=p.sent(),console.log("response---",c),console.log(null==c?void 0:c.data),c&&(null===(d=null==c?void 0:c.data)||void 0===d?void 0:d.task_id)?((u=document.getElementById("messageTextarea"))&&(u.value=""),r(null),O((function(e){return null==e?void 0:e.map((function(e){var n;return(null==e?void 0:e.id)===t?kn(kn({},e),{conversationId:null===(n=null==c?void 0:c.data)||void 0===n?void 0:n.task_id}):e}))})),A({task_id:null===(f=null==c?void 0:c.data)||void 0===f?void 0:f.task_id,context:null==n?void 0:n.context},o,i,a,l),setTimeout((function(){var e=document.getElementById("chat-container");e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3)):(s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."})),[3,4];case 2:return p.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),[3,4];case 3:return s(!1),[7];case 4:return[2]}}))}))},messageContainerRef:t,selectedDropDownGraph:d,setselectedDropDownGraph:f}}(e.HTTP);return t(Pn.Provider,{value:r,children:n})}var Dn=function(){var e=c(Pn);if(!e)throw new Error("useAIBotContext must be used within an AIBotProvider");return e};
|
|
14
|
+
*/function Le(){if(xe)return be;xe=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return be=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l},be}function _e(){if(ke)return we;ke=1;return we="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Re(){return Ce?Se:(Ce=1,Se=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var je=De();he.exports=function(){if(Oe)return Ae;Oe=1;var e=De(),t=Le(),n=_e(),r=Re(),o=function(){if(Te)return Ee;Te=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=_e(),n={},r=Re();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,l,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ee=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Ae=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,o,i,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new p("Invalid "+i+" `"+a+"` of type `"+v(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,o,i,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return l(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||u;return new p("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:h((function(e,t,n,r,o){return y(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],c=v(s);if("object"!==c)return new p("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(r(s,u)){var d=e(s,u,i,a,l+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(f(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return h((function(t,o,i,a,l){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,l,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&s.push(u.data.expectedType)}return new p("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var l=t[r],s=v(l);if("object"!==s)return new p("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(o,i,a,c,b(u));var d=u(l,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(o,i,a,l,s){var c=o[i],u=v(c);if("object"!==u)return new p("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var h=e[f];if(r(e,f)&&"function"!=typeof h)return g(a,l,s,f,b(h));if(!h)return new p("Invalid "+l+" `"+s+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,f,a,l,s+"."+f,n);if(m)return m}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,c,d,f,h){if(c=c||u,f=f||l,h!==n){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+l;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[l]?o?null===a[l]?new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,d,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return h((function(t,n,r,o,i,a){var l=t[n];return v(l)!==e?new p("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},Ae}()(je.isElement,!0)}else he.exports=function(){if(Pe)return Ne;Pe=1;var e=_e();function t(){}function n(){}return n.resetWarningCache=t,Ne=function(){function r(t,n,r,o,i,a){if(a!==e){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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Me=fe(he.exports);function Fe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var qe=!1,ze="production"!==process.env.NODE_ENV?Me.oneOfType([Me.number,Me.shape({enter:Me.number,exit:Me.number,appear:Me.number}).isRequired]):null,Be="production"!==process.env.NODE_ENV?Me.oneOfType([Me.string,Me.shape({enter:Me.string,exit:Me.string,active:Me.string}),Me.shape({enter:Me.string,enterDone:Me.string,enterActive:Me.string,exit:Me.string,exitDone:Me.string,exitActive:Me.string})]):null,Ue=o.createContext(null),He=function(e){return e.scrollTop},Ve="unmounted",We="exited",$e="entering",Ye="entered",Ge="exiting",Ze=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=We,r.appearStatus=$e):o=Ye:o=t.unmountOnExit||t.mountOnEnter?Ve:We,r.state={status:o},r.nextCallback=null,r}ue(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ve?{status:We}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==$e&&n!==Ye&&(t=$e):n!==$e&&n!==Ye||(t=Ge)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$e){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);n&&He(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===We&&this.setState({status:Ve})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[y.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||qe?this.safeSetState({status:Ye},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$e},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ye},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.findDOMNode(this);t&&!qe?(this.props.onExit(r),this.safeSetState({status:Ge},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:We},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:We},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ve)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=se(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Ue.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function Xe(){}Ze.contextType=Ue,Ze.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Me.shape({current:"undefined"==typeof Element?Me.any:function(e,t,n,r,o,i){var a=e[t];return Me.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Me.oneOfType([Me.func.isRequired,Me.element.isRequired]).isRequired,in:Me.bool,mountOnEnter:Me.bool,unmountOnExit:Me.bool,appear:Me.bool,enter:Me.bool,exit:Me.bool,timeout:function(e){var t=ze;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:Me.func,onEnter:Me.func,onEntering:Me.func,onEntered:Me.func,onExit:Me.func,onExiting:Me.func,onExited:Me.func}:{},Ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xe,onEntering:Xe,onEntered:Xe,onExit:Xe,onExiting:Xe,onExited:Xe},Ze.UNMOUNTED=Ve,Ze.EXITED=We,Ze.ENTERING=$e,Ze.ENTERED=Ye,Ze.EXITING=Ge;var Ke=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}(e,t)}))},Qe=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Fe(e.className,t):e.setAttribute("class",Fe(e.className&&e.className.baseVal||"",t))}(e,t)}))},Je=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}ue(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&He(e),r&&(this.appliedClasses[t][n]=r,Ke(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Qe(e,r),o&&Qe(e,o),i&&Qe(e,i)},n.render=function(){var e=this.props;e.classNames;var t=se(e,["classNames"]);return o.createElement(Ze,le({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function et(e,t){var n=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),n}function tt(e,t,n){return null!=n[t]?n[t]:e.props[t]}function nt(e,t,n){var r=et(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var s=o[i];if(a(s)){var c=i in t,u=i in r,d=t[i],f=a(d)&&!d.props.in;!u||c&&!f?u||!c||f?u&&c&&a(d)&&(o[i]=l(s,{onExited:n.bind(null,s),in:d.props.in,exit:tt(s,"exit",e),enter:tt(s,"enter",e)})):o[i]=l(s,{in:!1}):o[i]=l(s,{onExited:n.bind(null,s),in:!0,exit:tt(s,"exit",e),enter:tt(s,"enter",e)})}})),o}Je.defaultProps={classNames:""},Je.propTypes="production"!==process.env.NODE_ENV?le({},Ze.propTypes,{classNames:Be,onEnter:Me.func,onEntering:Me.func,onEntered:Me.func,onExit:Me.func,onExiting:Me.func,onExited:Me.func}):{};var rt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ot=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ue(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,et(n.children,(function(e){return l(e,{onExited:r.bind(null,e),in:!0,appear:tt(e,"appear",n),enter:tt(e,"enter",n),exit:tt(e,"exit",n)})}))):nt(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=et(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=le({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=se(e,["component","childFactory"]),i=this.state.contextValue,a=rt(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Ue.Provider,{value:i},a):o.createElement(Ue.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);function it(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 at(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return it(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)?it(e,t):void 0}}(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.")}()}ot.propTypes="production"!==process.env.NODE_ENV?{component:Me.any,children:Me.node,appear:Me.bool,enter:Me.bool,exit:Me.bool,childFactory:Me.func}:{},ot.defaultProps={component:"div",childFactory:function(e){return e}};var lt=function(e){return r.useEffect((function(){return e}),[])},st=function(){var e=c(oe);return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V(n,null==e?void 0:e.ptOptions)}},ct=function(e){var t=r.useRef(!1);return r.useEffect((function(){if(!t.current)return t.current=!0,e&&e()}),[])},ut=0,dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=at(i(!1),2),r=n[0],o=n[1],a=u(null),l=c(oe),s=L.isClient()?window.document:void 0,f=t.document,p=void 0===f?s:f,h=t.manual,m=void 0!==h&&h,g=t.name,y=void 0===g?"style_".concat(++ut):g,v=t.id,b=void 0===v?void 0:v,x=t.media,w=void 0===x?void 0:x,k=function(){if(p&&!r){var t=(null==l?void 0:l.styleContainer)||p.head;a.current=function(e){var t=e.querySelector('style[data-primereact-style-id="'.concat(y,'"]'));if(t)return t;if(void 0!==b){var n=p.getElementById(b);if(n)return n}return p.createElement("style")}(t),a.current.isConnected||(a.current.type="text/css",b&&(a.current.id=b),w&&(a.current.media=w),L.addNonce(a.current,l&&l.nonce||ae.nonce),t.appendChild(a.current),y&&a.current.setAttribute("data-primereact-style-id",y)),a.current.textContent=e,o(!0)}};return d((function(){m||k()}),[m]),{id:b,name:y,update:function(t){r&&e!==t&&(a.current.textContent=t)},unload:function(){p&&a.current&&(L.removeInlineStyle(a.current),o(!1))},load:k,isLoaded:r}},ft=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e&&e();n.current=!0}),t)};function pt(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 ht(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pt(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)?pt(e,t):void 0}}(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.")}()}function mt(e){return mt="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},mt(e)}function gt(e){var t=function(e,t){if("object"!=mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mt(t)?t:t+""}function yt(e,t,n){return(t=gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt="\n@layer primereact {\n .p-component, .p-component * {\n box-sizing: border-box;\n }\n\n .p-hidden {\n display: none;\n }\n\n .p-hidden-space {\n visibility: hidden;\n }\n\n .p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n }\n\n .p-disabled, .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-unselectable-text {\n user-select: none;\n }\n\n .p-scrollbar-measure {\n width: 100px;\n height: 100px;\n overflow: scroll;\n position: absolute;\n top: -9999px;\n }\n\n @-webkit-keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n @keyframes p-fadein {\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n }\n\n .p-link {\n text-align: left;\n background-color: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n }\n\n .p-link:disabled {\n cursor: default;\n }\n\n /* Non react overlay animations */\n .p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n }\n\n .p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n }\n\n /* React based overlay animations */\n .p-connected-overlay-enter {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-connected-overlay-enter-active {\n opacity: 1;\n transform: scaleY(1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-connected-overlay-enter-done {\n transform: none;\n }\n\n .p-connected-overlay-exit {\n opacity: 1;\n }\n\n .p-connected-overlay-exit-active {\n opacity: 0;\n transition: opacity .1s linear;\n }\n\n /* Toggleable Content */\n .p-toggleable-content-enter {\n max-height: 0;\n }\n\n .p-toggleable-content-enter-active {\n overflow: hidden;\n max-height: 1000px;\n transition: max-height 1s ease-in-out;\n }\n\n .p-toggleable-content-enter-done {\n transform: none;\n }\n\n .p-toggleable-content-exit {\n max-height: 1000px;\n }\n\n .p-toggleable-content-exit-active {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n }\n\n /* @todo Refactor */\n .p-menu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n ".concat("\n.p-button {\n margin: 0;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-group .p-button {\n margin: 0;\n}\n\n.p-button-group .p-button:not(:last-child) {\n border-right: 0 none;\n}\n\n.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-button-group .p-button:first-of-type {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-button-group .p-button:last-of-type {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-button-group .p-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.p-button-group-single .p-button:first-of-type {\n border-top-right-radius: var(--border-radius) !important;\n border-bottom-right-radius: var(--border-radius) !important;\n}\n\n.p-button-group-single .p-button:last-of-type {\n border-top-left-radius: var(--border-radius) !important;\n border-bottom-left-radius: var(--border-radius) !important;\n}\n","\n ").concat("\n.p-inputtext {\n margin: 0;\n}\n\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -0.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label,\n.p-float-label .p-mention ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label,\n.p-float-label .p-tooltip-target-wrapper ~ label {\n top: -0.75rem;\n font-size: 12px;\n}\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-right > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > svg,\n.p-input-icon-left > .p-input-prefix,\n.p-input-icon-right > .p-input-suffix {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n ").concat("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\nsvg.p-icon {\n pointer-events: auto;\n}\n\nsvg.p-icon g,\n.p-disabled svg.p-icon {\n pointer-events: none;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n","\n}\n"),wt={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.css,n=bt(bt({},e.defaultProps),wt.defaultProps),r={},o=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t.hasOwnProperty("pt")&&void 0!==t.pt&&(t=t.pt);var i=n,a=/./g.test(i)&&!!r[i.split(".")[0]],l=a?M.toFlatCase(i.split(".")[1]):M.toFlatCase(i),s=r.hostName&&M.toFlatCase(r.hostName)||r.props&&r.props.__TYPE&&M.toFlatCase(r.props.__TYPE)||"",c="transition"===l,u="data-pc-",d=function(e){return null!=e&&e.props?e.hostName?e.props.__TYPE===e.hostName?e.props:d(e.parent):e.parent:void 0};wt.cParams=r,wt.cName=s;var f=function(e){var t,n;return(null===(t=r.props)||void 0===t?void 0:t[e])||(null===(n=d(r))||void 0===n?void 0:n[e])}("ptOptions")||wt.context.ptOptions||{},p=f.mergeSections,h=void 0===p||p,m=f.mergeProps,g=void 0!==m&&m,y=function(){var e=kt.apply(void 0,arguments);return Array.isArray(e)?{className:E.apply(void 0,ht(e))}:M.isString(e)?{className:e}:null!=e&&e.hasOwnProperty("className")&&Array.isArray(e.className)?{className:E.apply(void 0,ht(e.className))}:e},v=o?a?Et(y,i,r):Tt(y,i,r):void 0,b=a?void 0:Ct(St(t,s),y,i,r),x=!c&&bt(bt({},"root"===l&&yt({},"".concat(u,"name"),r.props&&r.props.__parentMetadata?M.toFlatCase(r.props.__TYPE):s)),{},yt({},"".concat(u,"section"),l));return h||!h&&b?g?V([v,b,Object.keys(x).length?x:{}],{classNameMergeFunction:null===(e=wt.context.ptOptions)||void 0===e?void 0:e.classNameMergeFunction}):bt(bt(bt({},v),b),Object.keys(x).length?x:{}):bt(bt({},b),Object.keys(x).length?x:{})};return bt(bt({getProps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return wt.context=t,wt.cProps=e,M.getMergedProps(e,n)},getOtherProps:function(e){return M.getDiffProps(e,n)},setMetaData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,i=e.state,a=function(){return wt.context.unstyled||ae.unstyled||n.unstyled};return{ptm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o((n||{}).pt,t,bt(bt({},e),r))},ptmo:function(){return o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},sx:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]){var a,l=kt(t&&t.inlineStyles,e,bt({props:n,state:i},o));return V([kt(r,e,bt({props:n,state:i},o)),l],{classNameMergeFunction:null===(a=wt.context.ptOptions)||void 0===a?void 0:a.classNameMergeFunction})}},cx:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a()?void 0:kt(t&&t.classes,e,bt({props:n,state:i},r))},isUnstyled:a}}},e),{},{defaultProps:n})}},kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=String(M.toFlatCase(t)).split("."),o=r.shift(),i=M.isNotEmpty(e)?Object.keys(e).find((function(e){return M.toFlatCase(e)===o})):"";return o?M.isObject(e)?kt(M.getItemValue(e[i],n),r.join("."),n):void 0:M.getItemValue(e,n)},St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=null==e?void 0:e._usept,o=function(e){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n?n(e):e,a=M.toFlatCase(t);return null!==(r=o?a!==wt.cName?null==i?void 0:i[a]:void 0:null==i?void 0:i[a])&&void 0!==r?r:i};return M.isNotEmpty(r)?{_usept:r,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)},Ct=function(e,t,n,r){var o=function(e){return t(e,n,r)};if(null!=e&&e.hasOwnProperty("_usept")){var i=e._usept||wt.context.ptOptions||{},a=i.mergeSections,l=void 0===a||a,s=i.mergeProps,c=void 0!==s&&s,u=i.classNameMergeFunction,d=o(e.originalValue),f=o(e.value);if(void 0===d&&void 0===f)return;return M.isString(f)?f:M.isString(d)?d:l||!l&&f?c?V([d,f],{classNameMergeFunction:u}):bt(bt({},d),f):f}return o(e)},Et=function(e,t,n){return Ct(St(wt.context.pt||ae.pt,void 0,(function(e){return M.getItemValue(e,wt.cParams)})),e,t,n)},Tt=function(e,t,n){return Ct(St(wt.context.pt||ae.pt,void 0,(function(e){return kt(e,wt.cName,wt.cParams)||M.getItemValue(e,wt.cParams)})),e,t,n)};function At(e){return At="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},At(e)}function Ot(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==At(t)?t:t+""}function Nt(e,t,n){return(t=Ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(e){return M.getMergedProps(e,Pt.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,Pt.defaultProps)}};function It(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lt=r.forwardRef((function(e,t){var n=Pt.getProps(e),o=r.useContext(oe),i=n.disabled||n.options&&n.options.disabled||o&&!o.cssTransition||!ae.cssTransition,a=function(e,t){n.onEnter&&n.onEnter(e,t),n.options&&n.options.onEnter&&n.options.onEnter(e,t)},l=function(e,t){n.onEntering&&n.onEntering(e,t),n.options&&n.options.onEntering&&n.options.onEntering(e,t)},s=function(e,t){n.onEntered&&n.onEntered(e,t),n.options&&n.options.onEntered&&n.options.onEntered(e,t)},c=function(e){n.onExit&&n.onExit(e),n.options&&n.options.onExit&&n.options.onExit(e)},u=function(e){n.onExiting&&n.onExiting(e),n.options&&n.options.onExiting&&n.options.onExiting(e)},d=function(e){n.onExited&&n.onExited(e),n.options&&n.options.onExited&&n.options.onExited(e)};if(ft((function(){if(i){var e=M.getRefElement(n.nodeRef);n.in?(a(e,!0),l(e,!0),s(e,!0)):(c(e),u(e),d(e))}}),[n.in]),i)return n.in?n.children:null;var f={nodeRef:n.nodeRef,in:n.in,appear:n.appear,onEnter:a,onEntering:l,onEntered:s,onExit:c,onExiting:u,onExited:d},p=Dt(Dt(Dt({},{classNames:n.classNames,timeout:n.timeout,unmountOnExit:n.unmountOnExit}),n.options||{}),f);return r.createElement(Je,p,n.children)}));function _t(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 Rt(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _t(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)?_t(e,t):void 0}}(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.")}()}Lt.displayName="CSSTransition";var jt={defaultProps:{__TYPE:"Portal",element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null,children:void 0},getProps:function(e){return M.getMergedProps(e,jt.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,jt.defaultProps)}},Mt=r.memo((function(e){var t=jt.getProps(e),n=r.useContext(oe),o=Rt(r.useState(t.visible&&L.isClient()),2),i=o[0],a=o[1];ct((function(){L.isClient()&&!i&&(a(!0),t.onMounted&&t.onMounted())})),ft((function(){t.onMounted&&t.onMounted()}),[i]),lt((function(){t.onUnmounted&&t.onUnmounted()}));var l=t.element||t.children;if(l&&i){var s=t.appendTo||n&&n.appendTo||ae.appendTo;return M.isFunction(s)&&(s=s()),s||(s=document.body),"self"===s?l:y.createPortal(l,s)}return null}));Mt.displayName="Portal";var Ft={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(e){return M.getMergedProps(e,Ft.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,Ft.defaultProps)},getPTI:function(e){var t=M.isEmpty(e.label),n=Ft.getOtherProps(e),r={className:E("p-icon",{"p-icon-spin":e.spin},e.className),role:t?void 0:"img","aria-label":t?void 0:e.label,"aria-hidden":e.label?t:void 0};return M.getMergedProps(n,r)}};function qt(){return qt=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},qt.apply(null,arguments)}var zt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",qt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"}))})));function Bt(){return Bt=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},Bt.apply(null,arguments)}zt.displayName="CheckIcon";var Ut=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Bt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),r.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),r.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))})));function Ht(){return Ht=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},Ht.apply(null,arguments)}Ut.displayName="ExclamationTriangleIcon";var Vt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Ht({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))})));function Wt(){return Wt=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},Wt.apply(null,arguments)}Vt.displayName="InfoCircleIcon";var $t=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Wt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"}))})));function Yt(){return Yt=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},Yt.apply(null,arguments)}$t.displayName="TimesIcon";var Gt=r.memo(r.forwardRef((function(e,t){var n=Ft.getPTI(e);return r.createElement("svg",Yt({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))})));function Zt(){return Zt=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},Zt.apply(null,arguments)}function Xt(e){return Xt="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},Xt(e)}function Kt(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xt(t)?t:t+""}function Qt(e,t,n){return(t=Kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(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 en(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jt(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)?Jt(e,t):void 0}}(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.")}()}Gt.displayName="TimesCircleIcon";var tn=wt.extend({defaultProps:{__TYPE:"Ripple",children:void 0},css:{styles:"\n@layer primereact {\n .p-ripple {\n overflow: hidden;\n position: relative;\n }\n \n .p-ink {\n display: block;\n position: absolute;\n background: rgba(255, 255, 255, 0.5);\n border-radius: 100%;\n transform: scale(0);\n }\n \n .p-ink-active {\n animation: ripple 0.4s linear;\n }\n \n .p-ripple-disabled .p-ink {\n display: none;\n }\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}\n\n",classes:{root:"p-ink"}},getProps:function(e){return M.getMergedProps(e,tn.defaultProps)},getOtherProps:function(e){return M.getDiffProps(e,tn.defaultProps)}});function nn(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}var rn=r.memo(r.forwardRef((function(e,t){var n=en(r.useState(!1),2),o=n[0],i=n[1],a=r.useRef(null),l=r.useRef(null),s=st(),c=r.useContext(oe),u=tn.getProps(e,c),d=c&&c.ripple||ae.ripple,f={props:u};dt(tn.css.styles,{name:"ripple",manual:!d});var p=tn.setMetaData(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){Qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},f)),h=p.ptm,m=p.cx,g=function(){return a.current&&a.current.parentElement},y=function(){l.current&&l.current.addEventListener("pointerdown",v)},v=function(e){var t=L.getOffset(l.current),n=e.pageX-t.left+document.body.scrollTop-L.getWidth(a.current)/2,r=e.pageY-t.top+document.body.scrollLeft-L.getHeight(a.current)/2;b(n,r)},b=function(e,t){a.current&&"none"!==getComputedStyle(a.current,null).display&&(L.removeClass(a.current,"p-ink-active"),x(),a.current.style.top=t+"px",a.current.style.left=e+"px",L.addClass(a.current,"p-ink-active"))},x=function(){if(a.current&&!L.getHeight(a.current)&&!L.getWidth(a.current)){var e=Math.max(L.getOuterWidth(l.current),L.getOuterHeight(l.current));a.current.style.height=e+"px",a.current.style.width=e+"px"}};if(r.useImperativeHandle(t,(function(){return{props:u,getInk:function(){return a.current},getTarget:function(){return l.current}}})),ct((function(){i(!0)})),ft((function(){o&&a.current&&(l.current=g(),x(),y())}),[o]),ft((function(){a.current&&!l.current&&(l.current=g(),x(),y())})),lt((function(){a.current&&(l.current=null,l.current&&l.current.removeEventListener("pointerdown",v))})),!d)return null;var w=s({"aria-hidden":!0,className:E(m("root"))},tn.getOtherProps(u),h("root"));return r.createElement("span",Zt({role:"presentation",ref:a},w,{onAnimationEnd:function(e){L.removeClass(e.currentTarget,"p-ink-active")}}))})));function on(){return on=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},on.apply(null,arguments)}function an(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 ln(e,t){if(e){if("string"==typeof e)return an(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)?an(e,t):void 0}}function sn(e){return function(e){if(Array.isArray(e))return an(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ln(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.")}()}function cn(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=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||ln(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e){return un="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},un(e)}function dn(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==un(t)?t:t+""}function fn(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rn.displayName="Ripple";var pn={root:function(e){var t=e.props,n=e.context;return E("p-toast p-component p-toast-"+t.position,t.className,{"p-input-filled":n&&"filled"===n.inputStyle||"filled"===ae.inputStyle,"p-ripple-disabled":n&&!1===n.ripple||!1===ae.ripple})},message:{message:function(e){var t=e.severity;return E("p-toast-message",fn({},"p-toast-message-".concat(t),t))},content:"p-toast-message-content",buttonicon:"p-toast-icon-close-icon",closeButton:"p-toast-icon-close p-link",icon:"p-toast-message-icon",text:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail"},transition:"p-toast-message"},hn=wt.extend({defaultProps:{__TYPE:"Toast",id:null,className:null,content:null,style:null,baseZIndex:0,position:"top-right",transitionOptions:null,appendTo:"self",onClick:null,onRemove:null,onShow:null,onHide:null,onMouseEnter:null,onMouseLeave:null,children:void 0},css:{classes:pn,styles:"\n@layer primereact {\n .p-toast {\n width: calc(100% - var(--toast-indent, 0px));\n max-width: 25rem;\n }\n \n .p-toast-message-icon {\n flex-shrink: 0;\n }\n \n .p-toast-message-content {\n display: flex;\n align-items: flex-start;\n }\n \n .p-toast-message-text {\n flex: 1 1 auto;\n }\n \n .p-toast-summary {\n overflow-wrap: anywhere;\n }\n \n .p-toast-detail {\n overflow-wrap: anywhere;\n }\n \n .p-toast-top-center {\n transform: translateX(-50%);\n }\n \n .p-toast-bottom-center {\n transform: translateX(-50%);\n }\n \n .p-toast-center {\n min-width: 20vw;\n transform: translate(-50%, -50%);\n }\n \n .p-toast-icon-close {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-toast-icon-close.p-link {\n cursor: pointer;\n }\n \n /* Animations */\n .p-toast-message-enter {\n opacity: 0;\n transform: translateY(50%);\n }\n \n .p-toast-message-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: transform 0.3s, opacity 0.3s;\n }\n \n .p-toast-message-enter-done {\n transform: none;\n }\n \n .p-toast-message-exit {\n opacity: 1;\n max-height: 1000px;\n }\n \n .p-toast .p-toast-message.p-toast-message-exit-active {\n opacity: 0;\n max-height: 0;\n margin-bottom: 0;\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;\n }\n}\n",inlineStyles:{root:function(e){var t=e.props;return{position:"fixed",top:"top-right"===t.position||"top-left"===t.position||"top-center"===t.position?"20px":"center"===t.position?"50%":null,right:("top-right"===t.position||"bottom-right"===t.position)&&"20px",bottom:("bottom-left"===t.position||"bottom-right"===t.position||"bottom-center"===t.position)&&"20px",left:"top-left"===t.position||"bottom-left"===t.position?"20px":"center"===t.position||"top-center"===t.position||"bottom-center"===t.position?"50%":null}}}}});function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yn=r.memo(r.forwardRef((function(e,t){var n=st(),o=e.messageInfo,i=e.metaData,a=e.ptCallbacks,l=a.ptm,s=a.ptmo,c=a.cx,u=e.index,d=o.message,f=d.severity,p=d.content,h=d.summary,m=d.detail,g=d.closable,y=d.life,v=d.sticky,b=d.className,x=d.style,w=d.contentClassName,k=d.contentStyle,S=d.icon,C=d.closeIcon,T=d.pt,A={index:u},O=gn(gn({},i),A),N=cn(r.useState(!1),2),P=N[0],I=N[1],D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=r.useRef(null),i=r.useRef(null),a=r.useCallback((function(){return clearTimeout(o.current)}),[o.current]);return r.useEffect((function(){i.current=e})),r.useEffect((function(){if(n)return o.current=setTimeout((function(){i.current()}),t),a;a()}),[t,n]),lt((function(){a()})),[a]}((function(){j()}),y||3e3,!v&&!P),_=cn(D,1)[0],R=function(t,n){return l(t,gn({hostName:e.hostName},n))},j=function(){_(),e.onClose&&e.onClose(o)},F=function(t){!e.onClick||L.hasClass(t.target,"p-toast-icon-close")||L.hasClass(t.target,"p-toast-icon-close-icon")||e.onClick(o.message)},q=function(){if(o){var t=M.getJSXElement(p,{message:o.message,onClick:F,onClose:j}),i=n({className:c("message.icon")},R("icon",O),s(T,"icon",gn(gn({},A),{},{hostName:e.hostName}))),a=S;if(!S)switch(f){case"info":a=r.createElement(Vt,i);break;case"warn":a=r.createElement(Ut,i);break;case"error":a=r.createElement(Gt,i);break;case"success":a=r.createElement(zt,i)}var l=B.getJSXIcon(a,gn({},i),{props:e}),u=n({className:c("message.text")},R("text",O),s(T,"text",gn(gn({},A),{},{hostName:e.hostName}))),d=n({className:c("message.summary")},R("summary",O),s(T,"summary",gn(gn({},A),{},{hostName:e.hostName}))),g=n({className:c("message.detail")},R("detail",O),s(T,"detail",gn(gn({},A),{},{hostName:e.hostName})));return t||r.createElement(r.Fragment,null,l,r.createElement("div",u,r.createElement("span",d,h),m&&r.createElement("div",g,m)))}return null}(),z=function(){var t=n({className:c("message.buttonicon")},R("buttonicon",O),s(T,"buttonicon",gn(gn({},A),{},{hostName:e.hostName}))),o=C||r.createElement($t,t),i=B.getJSXIcon(o,gn({},t),{props:e}),a=n({type:"button",className:c("message.closeButton"),onClick:j,"aria-label":e.ariaCloseLabel||te("close")},R("closeButton",O),s(T,"closeButton",gn(gn({},A),{},{hostName:e.hostName})));return!1!==g?r.createElement("div",null,r.createElement("button",a,i,r.createElement(rn,null))):null}(),U=n({ref:t,className:E(b,c("message.message",{severity:f})),style:x,role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:F,onMouseEnter:function(t){e.onMouseEnter&&e.onMouseEnter(t),t.defaultPrevented||v||(_(),I(!0))},onMouseLeave:function(t){e.onMouseLeave&&e.onMouseLeave(t),t.defaultPrevented||v||I(!1)}},R("message",O),s(T,"root",gn(gn({},A),{},{hostName:e.hostName}))),H=n({className:E(w,c("message.content")),style:k},R("content",O),s(T,"content",gn(gn({},A),{},{hostName:e.hostName})));return r.createElement("div",U,r.createElement("div",H,q,z))})));yn.displayName="ToastMessage";var vn=0,bn=r.memo(r.forwardRef((function(e,t){var n=st(),o=r.useContext(oe),i=hn.getProps(e,o),a=cn(r.useState([]),2),l=a[0],s=a[1],c=r.useRef(null),u={props:i,state:{messages:l}},d=hn.setMetaData(u);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=n.name,o=n.styled,i=void 0!==o&&o,a=n.hostName,l=void 0===a?"":a,s=Et(kt,"global.css",wt.cParams),c=M.toFlatCase(r),u=dt("\n.p-hidden-accessible {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n pointer-events: none;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.p-overflow-hidden {\n overflow: hidden;\n padding-right: var(--scrollbar-width);\n}\n",{name:"base",manual:!0}).load,d=dt(xt,{name:"common",manual:!0}).load,f=dt(s,{name:"global",manual:!0}).load,p=dt(e,{name:r,manual:!0}).load,h=function(e){if(!l){var t=Ct(St((wt.cProps||{}).pt,c),kt,"hooks.".concat(e)),n=Tt(kt,"hooks.".concat(e));null==t||t(),null==n||n()}};h("useMountEffect"),ct((function(){u(),f(),t()||(d(),i||p())})),ft((function(){h("useUpdateEffect")})),lt((function(){h("useUnmountEffect")}))}(hn.css.styles,d.isUnstyled,{name:"toast"});var f=function(e){e&&s((function(t){return p(t,e,!0)}))},p=function(e,t,n){var r;if(Array.isArray(t)){var o=t.reduce((function(e,t){return e.push({_pId:vn++,message:t}),e}),[]);r=n&&e?[].concat(sn(e),sn(o)):o}else{var i={_pId:vn++,message:t};r=n&&e?[].concat(sn(e),[i]):[i]}return r},h=function(){Y.clear(c.current),s([])},m=function(e){s((function(t){return p(t,e,!1)}))},g=function(e){var t=M.isNotEmpty(e._pId)?e._pId:e.message||e;s((function(n){return n.filter((function(n){return n._pId!==e._pId&&!M.deepEquals(n.message,t)}))})),i.onRemove&&i.onRemove(e.message||t)},y=function(e){g(e)},v=function(){i.onShow&&i.onShow()},b=function(){1===l.length&&Y.clear(c.current),i.onHide&&i.onHide()};ft((function(){Y.set("toast",c.current,o&&o.autoZIndex||ae.autoZIndex,i.baseZIndex||o&&o.zIndex.toast||ae.zIndex.toast)}),[l,i.baseZIndex]),lt((function(){Y.clear(c.current)})),r.useImperativeHandle(t,(function(){return{props:i,show:f,replace:m,remove:g,clear:h,getElement:function(){return c.current}}}));var x,w,k=(x=n({ref:c,id:i.id,className:d.cx("root",{context:o}),style:d.sx("root")},hn.getOtherProps(i),d.ptm("root")),w=n({classNames:d.cx("transition"),timeout:{enter:300,exit:300},options:i.transitionOptions,unmountOnExit:!0,onEntered:v,onExited:b},d.ptm("transition")),r.createElement("div",x,r.createElement(ot,null,l&&l.map((function(t,n){var o=r.createRef();return r.createElement(Lt,on({nodeRef:o,key:t._pId},w),e.content?M.getJSXElement(e.content,{message:t.message}):r.createElement(yn,{hostName:"Toast",ref:o,messageInfo:t,index:n,onClick:i.onClick,onClose:y,onMouseEnter:i.onMouseEnter,onMouseLeave:i.onMouseLeave,closeIcon:i.closeIcon,ptCallbacks:d,metaData:u}))})))));return r.createElement(Mt,{element:k,appendTo:i.appendTo})})));bn.displayName="Toast";var xn=f({toast:null,showToast:function(){}});function wn(n){var r,o=n.children,i={showToast:function(e,t,n){var o;null===(o=r.current)||void 0===o||o.show({severity:t,summary:n,detail:e,life:2e3})},toast:r=u(null)};return e(xn.Provider,{value:i,children:[t(bn,{ref:i.toast}),o]})}var kn=function(){return kn=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},kn.apply(this,arguments)};function Sn(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}function Cn(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function En(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function Tn(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var An=null,On=function(){var r=i([]),o=r[0],a=r[1],l=p((function(e){var t=Math.random().toString(36).substr(2,9),n=kn(kn({},e),{id:t});a((function(e){return Tn(Tn([],e,!0),[n],!1)})),setTimeout((function(){a((function(e){return e.filter((function(e){return e.id!==t}))}))}),e.life||5e3)}),[]),s=p((function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))}),[]);return d((function(){return An={show:l},function(){An=null}}),[l]),e(n,{children:[t("div",{className:"toast-container",children:o.map((function(n,r){return t("div",{className:"toast toast-".concat(n.severity),style:{animationDelay:"".concat(100*r,"ms"),top:"".concat(20+80*r,"px")},children:e("div",{className:"toast-content",children:[e("span",{className:"toast-icon",children:["success"===n.severity&&"✅","error"===n.severity&&"❌","warn"===n.severity&&"⚠️","info"===n.severity&&"ℹ️"]}),e("div",{className:"toast-text",children:[t("div",{className:"toast-summary",children:n.summary}),n.detail&&t("div",{className:"toast-detail",children:n.detail})]}),t("button",{className:"toast-close",onClick:function(){return s(n.id)},children:"×"})]})},n.id)}))}),t("style",{children:"\n .toast-container {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n gap: 10px;\n max-width: 400px;\n }\n\n .toast {\n background: white;\n border-radius: 8px;\n padding: 12px 16px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border-left: 4px solid #ccc;\n animation: slideIn 0.3s ease-out;\n transition: all 0.3s ease;\n min-width: 300px;\n max-width: 400px;\n }\n\n .toast-success {\n border-left-color: #10b981;\n background: #f0fdf4;\n }\n\n .toast-error {\n border-left-color: #ef4444;\n background: #fef2f2;\n }\n\n .toast-warn {\n border-left-color: #f59e0b;\n background: #fffbeb;\n }\n\n .toast-info {\n border-left-color: #3b82f6;\n background: #eff6ff;\n }\n\n .toast-content {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n }\n\n .toast-icon {\n font-size: 16px;\n flex-shrink: 0;\n margin-top: 2px;\n }\n\n .toast-text {\n flex: 1;\n min-width: 0;\n }\n\n .toast-summary {\n font-size: 14px;\n font-weight: 600;\n color: #374151;\n margin-bottom: 4px;\n }\n\n .toast-detail {\n font-size: 13px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .toast-close {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n color: #6b7280;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n flex-shrink: 0;\n margin-top: -2px;\n }\n\n .toast-close:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n @keyframes slideIn {\n from {\n transform: translateX(100%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes slideOut {\n from {\n transform: translateX(0);\n opacity: 1;\n }\n to {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n\n .toast.hiding {\n animation: slideOut 0.3s ease-in forwards;\n }\n "})]})},Nn=function(e){An?An.show(e):(console.log("Toast:",e),"error"===e.severity&&alert("Error: ".concat(e.summary," - ").concat(e.detail)))},Pn=f(null);function In(e){var n=e.children,r=function(e){var t=u(null),n=i(""),r=n[0],o=n[1],a=i(!1),l=a[0],s=a[1],c=i(null),d=c[0],f=c[1],p=i(!0),h=p[0],m=p[1],g=i(!0),y=g[0],v=g[1],b=i(""),x=b[0],w=b[1],k=i(!1),S=k[0],C=k[1],E=i([]),T=E[0],A=E[1];u(null);var O=function(t,n,r,i,a){return Cn(void 0,void 0,void 0,(function(){var l,c,u,d,p,h,m,g,y;return En(this,(function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),s(!0),[4,e.post("/api/v1/cindy/task_status/",t)];case 1:return l=v.sent().data,console.log("data===",l),l&&"Pending"===(null==l?void 0:l.status)?(setTimeout((function(){O(t,n,r,i,a)}),2e3),[2]):(l&&(null===(c=null==l?void 0:l.result)||void 0===c?void 0:c.answer)&&(w((null===(u=null==l?void 0:l.result)||void 0===u?void 0:u.agent_trans_uuid)||""),C(null===(d=null==l?void 0:l.result)||void 0===d?void 0:d.agent_mode),A((function(e){return null==e?void 0:e.map((function(e){var n;return e.conversationId===(null==t?void 0:t.task_id)?kn(kn({},e),{answer:null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.answer,isLoading:!1,answerTime:new Date}):e}))}))),o(""),f(null),s(!1),(null===(p=null==a?void 0:a.trim())||void 0===p?void 0:p.length)<=0&&(null===(h=null==l?void 0:l.result)||void 0===h?void 0:h.conversation_uuid)&&(n((function(e){var t,n;return Tn([{title:null===(t=null==l?void 0:l.result)||void 0===t?void 0:t.question,latest_date_time_epoch:Math.floor((new Date).getTime()/1e3),isEdit:!1,isDelete:!1,conversation_uuid:null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.conversation_uuid,deleteConfirmation:null}],e,!0)})),r(null===(m=null==l?void 0:l.result)||void 0===m?void 0:m.question),i(null===(g=null==l?void 0:l.result)||void 0===g?void 0:g.conversation_uuid),console.log(null===(y=null==l?void 0:l.result)||void 0===y?void 0:y.agent_trans_uuid)),[3,3]);case 2:return v.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),A((function(e){return null==e?void 0:e.map((function(e){return(null==e?void 0:e.conversationId)===(null==t?void 0:t.task_id)?kn(kn({},e),{isLoading:!1}):e}))})),[3,3];case 3:return[2]}}))}))};return{opneChatModal:h,setOpenChatModal:m,isResize:y,setIsResize:v,question:r,setQuestion:o,isAgent:S,setIsAgent:C,setConverse:w,isLoading:l,setIsLoading:s,converse:x,prompts:T,setPrompts:A,getTextAnswer:O,getTaskID:function(t,n,r,o,i,a,l){return Cn(void 0,void 0,void 0,(function(){var c,u,d,f;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),s(!0),[4,e.post("/api/v1/cindy/agentic_ai_dfact_ragq/",n)];case 1:return c=p.sent(),console.log("response---",c),c&&(null===(d=null==c?void 0:c.data)||void 0===d?void 0:d.task_id)?((u=document.getElementById("messageTextarea"))&&(u.value=""),r(null),A((function(e){return null==e?void 0:e.map((function(e){var n;return(null==e?void 0:e.id)===t?kn(kn({},e),{conversationId:null===(n=null==c?void 0:c.data)||void 0===n?void 0:n.task_id}):e}))})),O({task_id:null===(f=null==c?void 0:c.data)||void 0===f?void 0:f.task_id,context:null==n?void 0:n.context,payloads:n},o,i,a,l),setTimeout((function(){var e=document.getElementById("chat-container");e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3)):(s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."})),[3,4];case 2:return p.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),[3,4];case 3:return s(!1),[7];case 4:return[2]}}))}))},getTaskAgent:function(t,n,r,o,i,a,l){return Cn(void 0,void 0,void 0,(function(){var c,u,d,f;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),s(!0),console.log(n,x),n.agent_trans_uuid=x,""===n.agent_trans_uuid&&delete n.agent_trans_uuid,[4,e.post("/api/v1/cindy/agentic_ai_catalog_service/",n)];case 1:return c=p.sent(),console.log("response---",c),console.log(null==c?void 0:c.data),c&&(null===(d=null==c?void 0:c.data)||void 0===d?void 0:d.task_id)?((u=document.getElementById("messageTextarea"))&&(u.value=""),r(null),A((function(e){return null==e?void 0:e.map((function(e){var n;return(null==e?void 0:e.id)===t?kn(kn({},e),{conversationId:null===(n=null==c?void 0:c.data)||void 0===n?void 0:n.task_id}):e}))})),O({task_id:null===(f=null==c?void 0:c.data)||void 0===f?void 0:f.task_id,context:null==n?void 0:n.context},o,i,a,l),setTimeout((function(){var e=document.getElementById("chat-container");e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3)):(s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."})),[3,4];case 2:return p.sent(),s(!1),Nn({severity:"error",summary:"Error",detail:"Something went wrong."}),[3,4];case 3:return s(!1),[7];case 4:return[2]}}))}))},messageContainerRef:t,selectedDropDownGraph:d,setselectedDropDownGraph:f}}(e.HTTP);return t(Pn.Provider,{value:r,children:n})}var Dn=function(){var e=c(Pn);if(!e)throw new Error("useAIBotContext must be used within an AIBotProvider");return e};
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.508.0 - ISC
|
|
17
17
|
*
|
|
@@ -30,11 +30,11 @@ var Mn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the ISC license.
|
|
32
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/const Fn=h((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},s)=>m("svg",{ref:s,...Mn,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Rn("lucide",o),...!i&&!jn(l)&&{"aria-hidden":"true"},...l},[...a.map((([e,t])=>m(e,t))),...Array.isArray(i)?i:[i]]))),
|
|
33
|
+
*/const Fn=h((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},s)=>m("svg",{ref:s,...Mn,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Rn("lucide",o),...!i&&!jn(l)&&{"aria-hidden":"true"},...l},[...a.map((([e,t])=>m(e,t))),...Array.isArray(i)?i:[i]]))),qn=(e,t)=>{const n=h((({className:n,...r},o)=>m(Fn,{ref:o,iconNode:t,className:Rn(`lucide-${Ln(_n(e))}`,`lucide-${e}`,n),...r})));return n.displayName=_n(e),n},zn=qn("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),Bn=qn("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),Un=qn("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),Hn=qn("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Vn=qn("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]),Wn=qn("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),$n=qn("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Yn=qn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
34
34
|
/**
|
|
35
35
|
* @license lucide-react v0.508.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const Gn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Jn(e,t){return(Xn.jsx?Zn:Gn).test(e)}const Kn=/[ \t\n\f\r]/g;function Qn(e){return""===e.replace(Kn,"")}class er{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new er(n,r,t)}function nr(e){return e.toLowerCase()}er.prototype.normal={},er.prototype.property={},er.prototype.space=void 0;class rr{constructor(e,t){this.attribute=t,this.property=e}}rr.prototype.attribute="",rr.prototype.booleanish=!1,rr.prototype.boolean=!1,rr.prototype.commaOrSpaceSeparated=!1,rr.prototype.commaSeparated=!1,rr.prototype.defined=!1,rr.prototype.mustUseProperty=!1,rr.prototype.number=!1,rr.prototype.overloadedBoolean=!1,rr.prototype.property="",rr.prototype.spaceSeparated=!1,rr.prototype.space=void 0;let or=0;const ir=fr(),ar=fr(),lr=fr(),sr=fr(),cr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.freeze({__proto__:null,boolean:ir,booleanish:ar,commaOrSpaceSeparated:dr,commaSeparated:ur,number:sr,overloadedBoolean:lr,spaceSeparated:cr});const hr=Object.keys(pr);class mr extends rr{constructor(e,t,n,r){let o=-1;if(super(e,t),gr(this,"space",r),"number"==typeof n)for(;++o<hr.length;){const e=hr[o];gr(this,hr[o],(n&pr[e])===pr[e])}}}function gr(e,t,n){n&&(e[t]=n)}function yr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new mr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nr(r)]=r,n[nr(i.attribute)]=r}return new er(t,n,e.space)}mr.prototype.defined=!0;const vr=yr({properties:{ariaActiveDescendant:null,ariaAtomic:ar,ariaAutoComplete:null,ariaBusy:ar,ariaChecked:ar,ariaColCount:sr,ariaColIndex:sr,ariaColSpan:sr,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:ar,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:ar,ariaFlowTo:cr,ariaGrabbed:ar,ariaHasPopup:null,ariaHidden:ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:sr,ariaLive:null,ariaModal:ar,ariaMultiLine:ar,ariaMultiSelectable:ar,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:sr,ariaPressed:ar,ariaReadOnly:ar,ariaRelevant:null,ariaRequired:ar,ariaRoleDescription:cr,ariaRowCount:sr,ariaRowIndex:sr,ariaRowSpan:sr,ariaSelected:ar,ariaSetSize:sr,ariaSort:null,ariaValueMax:sr,ariaValueMin:sr,ariaValueNow:sr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function xr(e,t){return br(e,t.toLowerCase())}const wr=yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:ir,allowPaymentRequest:ir,allowUserMedia:ir,alt:null,as:null,async:ir,autoCapitalize:null,autoComplete:cr,autoFocus:ir,autoPlay:ir,blocking:cr,capture:null,charSet:null,checked:ir,cite:null,className:cr,cols:sr,colSpan:null,content:null,contentEditable:ar,controls:ir,controlsList:cr,coords:sr|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ir,defer:ir,dir:null,dirName:null,disabled:ir,download:lr,draggable:ar,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ir,formTarget:null,headers:cr,height:sr,hidden:lr,high:sr,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:ir,inputMode:null,integrity:null,is:null,isMap:ir,itemId:null,itemProp:cr,itemRef:cr,itemScope:ir,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ir,low:sr,manifest:null,max:null,maxLength:sr,media:null,method:null,min:null,minLength:sr,multiple:ir,muted:ir,name:null,nonce:null,noModule:ir,noValidate:ir,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ir,optimum:sr,pattern:null,ping:cr,placeholder:null,playsInline:ir,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ir,referrerPolicy:null,rel:cr,required:ir,reversed:ir,rows:sr,rowSpan:sr,sandbox:cr,scope:null,scoped:ir,seamless:ir,selected:ir,shadowRootClonable:ir,shadowRootDelegatesFocus:ir,shadowRootMode:null,shape:null,size:sr,sizes:null,slot:null,span:sr,spellCheck:ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:sr,step:null,style:null,tabIndex:sr,target:null,title:null,translate:null,type:null,typeMustMatch:ir,useMap:null,value:ar,width:sr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cr,axis:null,background:null,bgColor:null,border:sr,borderColor:null,bottomMargin:sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ir,declare:ir,event:null,face:null,frame:null,frameBorder:null,hSpace:sr,leftMargin:sr,link:null,longDesc:null,lowSrc:null,marginHeight:sr,marginWidth:sr,noResize:ir,noHref:ir,noShade:ir,noWrap:ir,object:null,profile:null,prompt:null,rev:null,rightMargin:sr,rules:null,scheme:null,scrolling:ar,standby:null,summary:null,text:null,topMargin:sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ir,disableRemotePlayback:ir,prefix:null,property:null,results:sr,security:null,unselectable:null},space:"html",transform:xr}),kr=yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dr,accentHeight:sr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:sr,amplitude:sr,arabicForm:null,ascent:sr,attributeName:null,attributeType:null,azimuth:sr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:sr,by:null,calcMode:null,capHeight:sr,className:cr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:sr,diffuseConstant:sr,direction:null,display:null,dur:null,divisor:sr,dominantBaseline:null,download:ir,dx:null,dy:null,edgeMode:null,editable:null,elevation:sr,enableBackground:null,end:null,event:null,exponent:sr,externalResourcesRequired:null,fill:null,fillOpacity:sr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:sr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:sr,horizOriginX:sr,horizOriginY:sr,id:null,ideographic:sr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:sr,k:sr,k1:sr,k2:sr,k3:sr,k4:sr,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:sr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:sr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:sr,overlineThickness:sr,paintOrder:null,panose1:null,path:null,pathLength:sr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:sr,pointsAtY:sr,pointsAtZ:sr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:sr,specularExponent:sr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:sr,strikethroughThickness:sr,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:sr,strokeOpacity:sr,strokeWidth:null,style:null,surfaceScale:sr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:sr,tableValues:null,target:null,targetX:sr,targetY:sr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:sr,underlineThickness:sr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:sr,values:null,vAlphabetic:sr,vMathematical:sr,vectorEffect:null,vHanging:sr,vIdeographic:sr,version:null,vertAdvY:sr,vertOriginX:sr,vertOriginY:sr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Sr=yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Cr=yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),Er=yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Tr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Or=/[A-Z]/g,Ar=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Pr(e){return"-"+e.toLowerCase()}function Ir(e){return e.charAt(1).toUpperCase()}const Dr=tr([vr,wr,Sr,Cr,Er],"html"),Lr=tr([vr,kr,Sr,Cr,Er],"svg");var _r={},Rr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jr=/\n/g,Mr=/^\s*/,Fr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,zr=/^:\s*/,qr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Hr=/^\s+|\s+$/g,Ur="";function Vr(e){return e?e.replace(Hr,Ur):Ur}var Wr=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,$r.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var $r=Wr((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(jr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(Mr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Ur!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Ur===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=i(),t=s(Fr);if(t){if(d(),!s(zr))return l("property missing ':'");var n=s(qr),r=e({type:"declaration",property:Vr(t[0].replace(Rr,Ur)),value:n?Vr(n[0].replace(Rr,Ur)):Ur});return s(Br),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}));var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var Gr=/^--[a-zA-Z0-9_-]+$/,Zr=/-([a-z])/g,Xr=/^[^-]+$/,Jr=/^-(webkit|moz|ms|o|khtml)-/,Kr=/^-(ms)-/,Qr=function(e,t){return t.toUpperCase()},eo=function(e,t){return"".concat(t,"-")};Yr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Xr.test(e)||Gr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Kr,eo):e.replace(Jr,eo)).replace(Zr,Qr))};var to=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_r),no=Yr;function ro(e,t){var n={};return e&&"string"==typeof e?((0,to.default)(e,(function(e,r){e&&r&&(n[(0,no.camelCase)(e,t)]=r)})),n):n}ro.default=ro;var oo=fe(ro);const io=lo("end"),ao=lo("start");function lo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function so(e){return e&&"object"==typeof e?"position"in e||"type"in e?uo(e.position):"start"in e||"end"in e?uo(e):"line"in e||"column"in e?co(e):"":""}function co(e){return fo(e&&e.line)+":"+fo(e&&e.column)}function uo(e){return co(e&&e.start)+"-"+co(e&&e.end)}function fo(e){return e&&"number"==typeof e?e:1}class po extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=so(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}po.prototype.file="",po.prototype.name="",po.prototype.reason="",po.prototype.message="",po.prototype.stack="",po.prototype.column=void 0,po.prototype.line=void 0,po.prototype.ancestors=void 0,po.prototype.cause=void 0,po.prototype.fatal=void 0,po.prototype.place=void 0,po.prototype.ruleId=void 0,po.prototype.source=void 0;const ho={}.hasOwnProperty,mo=new Map,go=/[A-Z]/g,yo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),bo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ao(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Lr:Dr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=wo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function wo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=To(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ho.call(t.properties,o)){const i=Eo(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&vo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=Co(e,t);yo.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qn(t.value):Qn(t));var t})));return ko(e,a,i,t),So(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Oo(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:To(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Oo(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Oo(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=Co(e,t);return ko(e,a,i,t),So(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Oo(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return So(r,Co(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ko(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function So(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Co(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:mo;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=wo(e,i,a);void 0!==l&&n.push(l)}return n}function Eo(e,t,n){const r=function(e,t){const n=nr(t);let r=t,o=rr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Nr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Ar,Ir);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Ar.test(e)){let n=e.replace(Or,Pr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=mr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return oo(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new po("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bo+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ho.call(e,n)&&(t[Ao(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tr[r.property]||r.property:r.attribute,n]}}function To(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Jn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Jn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ho.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Oo(e)}function Oo(e,t){const n=new po("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=bo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ao(e){let t=e.replace(go,No);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function No(e){return"-"+e.toLowerCase()}const Po={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Io={};function Do(e,t){return Lo(e,"boolean"!=typeof Io.includeImageAlt||Io.includeImageAlt,"boolean"!=typeof Io.includeHtml||Io.includeHtml)}function Lo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _o(e.children,t,n)}return Array.isArray(e)?_o(e,t,n):""}function _o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Lo(e[o],t,n);return r.join("")}const Ro={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jo={}.hasOwnProperty;function Mo(e){return!!jo.call(Ro,e)&&Ro[e]}function Fo(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function zo(e,t){return e.length>0?(Fo(e,e.length,0,t),e):t}const qo={}.hasOwnProperty;function Bo(e){const t={};let n=-1;for(;++n<e.length;)Ho(t,e[n]);return t}function Ho(e,t){let n;for(n in t){const r=(qo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){qo.call(r,i)||(r[i]=[]);const e=o[i];Uo(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Uo(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Fo(e,0,0,r)}function Vo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $o=oi(/[A-Za-z]/),Yo=oi(/[\dA-Za-z]/),Go=oi(/[#-'*+\--9=?A-Z^-~]/);function Zo(e){return null!==e&&(e<32||127===e)}const Xo=oi(/\d/),Jo=oi(/[\dA-Fa-f]/),Ko=oi(/[!-/:-@[-`{-~]/);function Qo(e){return null!==e&&e<-2}function ei(e){return null!==e&&(e<0||32===e)}function ti(e){return-2===e||-1===e||32===e}const ni=oi(/\p{P}|\p{S}/u),ri=oi(/\s/);function oi(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ii(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Yo(e.charCodeAt(n+1))&&Yo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ai(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ti(r))return e.enter(n),a(r);return t(r)};function a(r){return ti(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const si={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Fo(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ci,u,d)(o)}function u(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(ci,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Fo(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ci={tokenize:function(e,t,n){return ai(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ui(e){return null===e||ei(e)||ri(e)?1:ni(e)?2:void 0}function di(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const fi={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};pi(d,-l),pi(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=zo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=zo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=zo(s,di(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=zo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=zo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fo(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ui(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=ui(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function pi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hi={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return $o(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Yo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Yo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zo(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Go(t)?(e.consume(t),s):n(t)}function c(e){return Yo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Yo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const mi={partial:!0,tokenize:function(e,t,n){return function(t){return ti(t)?ai(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qo(e)?t(e):n(e)}}};const gi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ti(t))return ai(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(gi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ti(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const yi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Ko(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const vi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Yo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Jo,c):(e.enter("characterReferenceValue"),o=7,i=Xo,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Yo||Mo(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const bi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},xi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),ti(t)?ai(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Qo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(bi,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ai(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Qo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ti(t)?ai(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qo(t)?e.check(bi,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const wi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ai(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Qo(t)?e.attempt(ki,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},ki={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ai(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qo(e)?o(e):n(e)}}};const Si={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Qo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class Ci{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ei(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ei(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ei(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ei(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ei(this.left,t.reverse())}}}function Ei(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ti(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Ci(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Oi(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Fo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Oi(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=l.slice(g[f],g[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Ai={resolve:function(e){return Ti(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qo(t)?e.check(Ni,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ni={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,o,"linePrefix")};function o(o){if(null===o||Qo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Pi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Qo(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ei(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Zo(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ii(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Qo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!ti(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Di(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Qo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Li(e,t){let n;return function r(o){if(Qo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ti(o))return ai(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const _i={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ii.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ei(t)?Li(e,l)(t):l(t)}function l(t){return Pi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Ri,c,c)(t)}function c(t){return ti(t)?ai(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Qo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Ri={partial:!0,tokenize:function(e,t,n){return function(t){return ei(t)?Li(e,r)(t):n(t)};function r(t){return Di(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ti(t)?ai(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qo(e)?t(e):n(e)}}};const ji={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Mi={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Fo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ei(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qo(n)?(e.exit("atxHeading"),t(n)):ti(n)?ai(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ei(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Fi=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zi=["pre","script","style","textarea"],qi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:_):$o(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):$o(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:f):n(o)}function p(t){return $o(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ei(l)){const s=47===l,c=a.toLowerCase();return s||i||!zi.includes(c)?Fi.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Yo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return ti(t)?(e.consume(t),g):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||$o(t)?(e.consume(t),v):ti(t)?(e.consume(t),y):C(t)}function v(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):ti(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ti(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||Qo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ei(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||ti(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qo(t)?T(t):ti(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Qo(t)||6!==o&&7!==o?null===t||Qo(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Bi,j,O)(t))}function O(t){return e.check(Hi,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Qo(t)?O(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return zi.includes(n)?(e.consume(t),R):T(t)}return $o(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Qo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Bi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(mi,t,n)}}},Hi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Ui={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):$o(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):$o(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Qo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Qo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Qo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return $o(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Yo(t)?(e.consume(t),w):k(t)}function k(t){return Qo(t)?(a=k,D(t)):ti(t)?(e.consume(t),k):I(t)}function S(t){return 45===t||Yo(t)?(e.consume(t),S):47===t||62===t||ei(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),I):58===t||95===t||$o(t)?(e.consume(t),E):Qo(t)?(a=C,D(t)):ti(t)?(e.consume(t),C):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),O):Qo(t)?(a=T,D(t)):ti(t)?(e.consume(t),T):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):Qo(t)?(a=O,D(t)):ti(t)?(e.consume(t),O):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Qo(t)?(a=A,D(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ei(t)?C(t):(e.consume(t),N)}function P(e){return 47===e||62===e||ei(e)?C(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return ti(t)?ai(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Vi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Fo(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=zo(i,e.slice(r+1,r+l+3)),i=zo(i,[["enter",u,t]]),i=zo(i,di(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=zo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=zo(i,e.slice(o+1)),i=zo(i,[["exit",s,t]]),Fo(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Wo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Wi,c,i?c:u)(t):91===t?e.attempt($i,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Yi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Wi={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ei(t)?Li(e,o)(t):o(t)}function o(t){return 41===t?c(t):Pi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ei(t)?Li(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Di(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ei(t)?Li(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},$i={tokenize:function(e,t,n){const r=this;return function(t){return Ii.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Yi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Gi={name:"labelStartImage",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Zi={name:"labelStartLink",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Xi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}}};const Ji={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ti(t)?ai(e,i,"whitespace")(t):i(t))}}};const Ki={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ai(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ti(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ea,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ai(e,e.attempt(Ki,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Xo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ji,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Xo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(mi,r.interrupt?n:c,e.attempt(Qi,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return ti(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Qi={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return!ti(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ea={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const ta={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ti(t)?ai(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const na={tokenize:function(e){const t=this,n=e.attempt(mi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ai(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ai,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ra={resolveAll:la()},oa=aa("string"),ia=aa("text");function aa(e){return{resolveAll:la("text"===e?sa:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function la(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function sa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const ca={42:Ki,43:Ki,45:Ki,48:Ki,49:Ki,50:Ki,51:Ki,52:Ki,53:Ki,54:Ki,55:Ki,56:Ki,57:Ki,62:gi},ua={91:_i},da={[-2]:wi,[-1]:wi,32:wi},fa={35:Mi,42:Ji,45:[ta,Ji],60:qi,61:ta,95:Ji,96:xi,126:xi},pa={38:vi,92:yi},ha={[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Gi,38:vi,42:fi,60:[hi,Ui],91:Zi,92:[ji,yi],93:Vi,95:fi,96:Si},ma={null:[fi,ra]};var ga=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ua,disable:{null:[]},document:ca,flow:fa,flowInitial:da,insideSpan:ma,string:pa,text:ha});function ya(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Qo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=zo(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=di(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Fo(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const va=/[\0\t\n\r]/g;const ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xa(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vo(n.slice(t?2:1),t?16:10)}return Mo(n)||e}const wa={}.hasOwnProperty;function ka(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(J),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(X),hardBreakEscape:i(K),hardBreakTrailing:i(K),htmlFlow:i(Q,a),htmlFlowData:E,htmlText:i(Q,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(J),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:H,characterReference:U,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:O,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:q,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(C),setextHeadingLineSequence:S,setextHeadingText:k,strong:s(),thematicBreak:s()}};Ca(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];wa.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ta).call(i,void 0,e[0])}for(r.position={start:Sa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Sa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Sa(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ta).call(this,e,r[0])}n.position.end=Sa(e.end)}function u(){return Do(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Sa(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Sa(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Sa(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ba,xa)}(t),n.identifier=Wo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function q(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Mo(t)}this.stack[this.stack.length-1].value+=r}function U(e){this.stack.pop().position.end=Sa(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ti(e););return e}(function(e){const t={constructs:Bo([ga,...(e||{}).extensions||[]]),content:n(li),defined:[],document:n(si),flow:n(na),lazy:{},string:n(oa),text:n(ia)};return t;function n(e){return function(n){return ya(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(va.lastIndex=u,s=va.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Sa(e){return{line:e.line,column:e.column,offset:e.offset}}function Ca(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ca(e,r):Ea(e,r)}}function Ea(e,t){let n;for(n in t)if(wa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ta(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is still open")}function Oa(e){const t=this;t.parser=function(n){return ka(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Aa(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Na(e){const t=e.spread;return null==t?e.children.length>1:t}function Pa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Ia(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Ia(t.slice(o),o>0,!1)),i.join("")}function Ia(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Da={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ii(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Aa(e,t);const o={src:ii(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ii(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Aa(e,t);const o={href:ii(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ii(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Na(n[r])}return t}(n):Na(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ao(t.children[1]),a=io(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Pa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:La,yaml:La,definition:La,footnoteDefinition:La};function La(){}const _a="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new _a[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new _a[i](a),o)};return r})(new Map,e)(0),ja="",{toString:Ma}={},{keys:Fa}=Object,za=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ma.call(e).slice(8,-1);switch(n){case"Array":return[1,ja];case"Object":return[2,ja];case"Date":return[3,ja];case"RegExp":return[4,ja];case"Map":return[5,ja];case"Set":return[6,ja];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},qa=([e,t])=>0===e&&("function"===t||"symbol"===t),Ba=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=za(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Fa(r))!e&&qa(za(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!qa(za(n))&&!qa(za(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&qa(za(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Ha="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(Ba(e,t)):structuredClone(e):(e,t)=>Ra(Ba(e,t));function Ua(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Va(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Wa=function(e){if(null==e)return Ya;if("function"==typeof e)return $a(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wa(e[n]);return $a(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return $a(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return $a(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function $a(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ya(){return!0}const Ga=[],Za=!0,Xa=!1;function Ja(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Wa(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Ga;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Za,e];return null==e?Ga:[e]}(n(o,s)),f[0]===Xa))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function Ka(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ja(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Qa={}.hasOwnProperty,el={};function tl(e,t){e.position&&(t.position=function(e){const t=ao(e),n=io(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Ha(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rl(e,t){const n=t.data||{},r=!("value"in t)||Qa.call(n,"hProperties")||Qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function ol(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function il(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function al(e,t){const n=function(e,t){const n=t||el,r=new Map,o=new Map,i=new Map,a={...Da,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=il(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=il(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:nl,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Qa.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ha(n);return r.children=l.all(e),r}return Ha(e)}return(l.options.unknownHandler||rl)(l,e,t)},options:n,patch:tl,wrap:ol};return Ka(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ua,r=e.options.footnoteBackLabel||Va,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ii(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ha(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ll(e,t){return e&&"run"in e?async function(n,r){const o=al(n,{file:r,...t});await e.run(o,r)}:function(n,r){return al(n,{file:r,...e||t})}}function sl(e){if(e)throw e}var cl=Object.prototype.hasOwnProperty,ul=Object.prototype.toString,dl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,pl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ul.call(e)},hl=function(e){if(!e||"[object Object]"!==ul.call(e))return!1;var t,n=cl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cl.call(e,t)},ml=function(e,t){dl&&"__proto__"===t.name?dl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gl=function(e,t){if("__proto__"===t){if(!cl.call(e,t))return;if(fl)return fl(e,t).value}return e[t]},yl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=gl(l,n),l!==(o=gl(t,n))&&(u&&o&&(hl(o)||(i=pl(o)))?(i?(i=!1,a=r&&pl(r)?r:[]):a=r&&hl(r)?r:{},ml(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&ml(l,{name:n,newValue:o}));return l},vl=fe(yl);function bl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const wl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');kl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(kl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){kl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)kl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){kl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function kl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sl={cwd:function(){return"/"}};function Cl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function El(e){if("string"==typeof e)e=new URL(e);else if(!Cl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Tl=["history","path","basename","stem","extname","dirname"];class Ol{constructor(e){let t;t=e?Cl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Sl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Tl.length;){const e=Tl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Tl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?wl.basename(this.path):void 0}set basename(e){Nl(e,"basename"),Al(e,"basename"),this.path=wl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?wl.dirname(this.path):void 0}set dirname(e){Pl(this.basename,"dirname"),this.path=wl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?wl.extname(this.path):void 0}set extname(e){if(Al(e,"extname"),Pl(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Cl(e)&&(e=El(e)),Nl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?wl.basename(this.path,this.extname):void 0}set stem(e){Nl(e,"stem"),Al(e,"stem"),this.path=wl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new po(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Al(e,t){if(e&&e.includes(wl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wl.sep+"`")}function Nl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Il=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Dl={}.hasOwnProperty;class Ll extends Il{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xl()}copy(){const e=new Ll;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(vl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ml("data",this.frozen),this.namespace[e]=t,this):Dl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=ql(e),n=this.parser||this.Parser;return Rl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Rl("process",this.parser||this.Parser),jl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=ql(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Rl("processSync",this.parser||this.Parser),jl("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,sl(e),t=r})),zl("processSync","process",n),t}run(e,t,n){Fl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=ql(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){sl(e),n=t,r=!0})),zl("runSync","run",r),n}stringify(e,t){this.freeze();const n=ql(t),r=this.compiler||this.Compiler;return jl("stringify",r),Fl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ml("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=vl(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];bl(a)&&bl(r)&&(r=vl(!0,a,r)),n[o]=[e,r,...i]}}}}const _l=(new Ll).freeze();function Rl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fl(e){if(!bl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function zl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ql(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Ol(e)}const Bl=[],Hl={allowDangerousHtml:!0},Ul=/^(https?|ircs?|mailto|xmpp)$/i,Vl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Wl(r){const o=function(e){const t=e.rehypePlugins||Bl,n=e.remarkPlugins||Bl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Hl}:Hl,o=_l().use(Oa).use(n).use(ll,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Ol;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||$l;for(const e of Vl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Ka(r,f),xo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function f(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Po)if(Object.hasOwn(Po,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Po[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function $l(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Ul.test(e.slice(0,t))?e:""}var Yl="access",Gl="refresh",Zl="/token/refresh/",Xl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Jl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Yl=t,Gl=n,Zl=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Cn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Xl.get(Gl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat(Zl),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Xl.set(Yl,t,{expires:i(r.iat,r.exp)}),Xl.set(Gl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Cn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Xl.get(Yl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Xl.get(Gl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Xl.get(Yl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Cn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Kl=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Ql(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var es=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var f={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},p=kn(kn({},f),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},f),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t($n,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:p,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function ts(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var f={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},p={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(Hn,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:f,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"green"}),children:t(Wn,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:f,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"red"}),children:t($n,{size:12})}),t("span",{children:"Delete"})]})]})]})}var ns=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),f=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Wn,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:f,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function rs(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function os(e,t,n){const r=Wa((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([is(e[0]),as(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ja(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function is(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function as(e){return"function"==typeof e?e:function(){return e}}const ls="phrasing",ss=["autolink","link","image","label"];function cs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function us(e){this.config.enter.autolinkProtocol.call(this,e)}function ds(e){this.config.exit.autolinkProtocol.call(this,e)}function fs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ps(e){this.config.exit.autolinkEmail.call(this,e)}function hs(e){this.exit(e)}function ms(e){os(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ys]],{ignore:["link","linkReference"]})}function gs(e,t,n,r,o){let i="";if(!vs(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=rs(e,"(");let i=rs(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function ys(e,t,n,r){return!(!vs(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vs(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ri(n)||ni(n))&&(!t||47!==n)}function bs(){this.buffer()}function xs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ws(){this.buffer()}function ks(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ss(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cs(e){this.exit(e)}function Es(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ts(e){this.exit(e)}function Os(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function As(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ps:Ns)));return l(),a},footnoteReference:Os},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ns(e,t,n){return 0===t?e:Ps(e,t,n)}function Ps(e,t,n){return(n?"":" ")+e}Os.peek=function(){return"["};const Is=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ds(e){this.enter({type:"delete",children:[]},e)}function Ls(e){this.exit(e)}function _s(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Rs(e){return e.length}function js(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ms(e,t,n){return">"+(n?"":" ")+e}function Fs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function zs(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Fs(i,a.inConstruct,!0)&&!Fs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function qs(e,t,n){return(n?"":" ")+e}function Bs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Hs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Us(e,t,n){const r=ui(e),o=ui(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Vs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}function Ws(e){return e.value||""}function $s(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Gs(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Zs(e,t){const n=Do(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Xs(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if(Zs(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Js(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Ks(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qs(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}_s.peek=function(){return"~"},Vs.peek=function(e,t,n){return n.options.emphasis||"*"},Ws.peek=function(){return"<"},$s.peek=function(){return"!"},Ys.peek=function(){return"!"},Gs.peek=function(){return"`"},Xs.peek=function(e,t,n){return Zs(e,n)?"<":"["},Js.peek=function(){return"["};const ec=Wa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tc(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Us(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Hs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Us(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Hs(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}tc.peek=function(e,t,n){return n.options.strong||"*"};const nc={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Ms);return o(),a},break:zs,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,qs);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Vs,hardBreak:zs,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Ka(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Xa})),Boolean((!e.depth||e.depth<3)&&Do(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=Hs(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Ws,image:$s,imageReference:Ys,inlineCode:Gs,link:Xs,linkReference:Js,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ks(n);const l=e.ordered?"."===a?")":".":function(e){const t=Ks(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Qs(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Ks(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return ec(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:tc,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Qs(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function rc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function oc(e){this.exit(e),this.data.inTable=void 0}function ic(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function lc(e){this.enter({type:"tableCell",children:[]},e)}function sc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function uc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=nc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Rs,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=js(r[f]);else{const e=js(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function fc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=nc.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const hc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},mc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(yc,s,l)(t):null===t||ei(t)||ri(t)||45!==t&&ni(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},gc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(yc,t,i)(a):null===a||ei(a)||ri(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||ei(a)||ri(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ei(e)||ri(e)?t(e):r(e)}function i(e){return $o(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):$o(t)?(e.consume(t),a):n(t)}},partial:!0},vc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Yo(e)?n(e):t(e)}},partial:!0},bc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Cc.call(r,r.previous)||Ac(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hc,e.attempt(mc,e.attempt(gc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Cc},xc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ec.call(r,r.previous)&&!Ac(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if($o(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||Zo(t)||ei(t)||ri(t)||ni(t)?n(t):e.attempt(mc,e.attempt(gc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ec},wc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Oc(t)||!Tc.call(r,r.previous)||Ac(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Oc(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(vc,c,s)(t):45===t||95===t||Yo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&$o(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Tc},kc={};let Sc=48;for(;Sc<123;)kc[Sc]=wc,Sc++,58===Sc?Sc=65:91===Sc&&(Sc=97);function Cc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ei(e)}function Ec(e){return!$o(e)}function Tc(e){return!(47===e||Oc(e))}function Oc(e){return 43===e||45===e||46===e||95===e||Yo(e)}function Ac(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}kc[43]=wc,kc[45]=wc,kc[46]=wc,kc[95]=wc,kc[72]=[wc,xc],kc[104]=[wc,xc],kc[87]=[wc,bc],kc[119]=[wc,bc];const Nc={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Pc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Wo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ic(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Dc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||ei(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Wo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return ei(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Lc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||ei(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ei(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ai(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function _c(e,t,n){return e.check(mi,t,e.attempt(Nc,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function jc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=ui(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=ui(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Fo(a,a.length,0,di(l,e.slice(r+1,n),t)),Fo(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Fo(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Mc{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Fc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function zc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Qo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ti(t)?ai(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ei(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,ti(t)?ai(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return ti(t)?ai(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return ti(t)?ai(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||Qo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Qo(n)?(e.exit("tableRow"),t(n)):ti(n)?ai(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||ei(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function qc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Mc;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(Hc(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Bc(f,t,s,l,i,o)):0!==c[1]&&(o=Bc(f,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&Hc(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Fc(t.events,i))}return e}function Bc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Uc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Uc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Uc(t.events,n[2]),i=Uc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Uc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Hc(e,t,n,r,o){const i=[],a=Uc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Uc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Vc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return ei(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qo(r)?t(r):ti(r)?e.check({tokenize:Wc},t,n)(r):n(r)}}};function Wc(e,t,n){return ai(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const $c={};function Yc(e){const t=e||$c,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Bo([{text:kc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:_c},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:Ic}}},jc(e),{flow:{null:{name:"table",tokenize:zc,resolveAll:qc}}},{text:{91:Vc}}])}(t)),o.push([{transforms:[ms],enter:{literalAutolink:cs,literalAutolinkEmail:us,literalAutolinkHttp:us,literalAutolinkWww:us},exit:{literalAutolink:hs,literalAutolinkEmail:ps,literalAutolinkHttp:ds,literalAutolinkWww:fs}},{enter:{gfmFootnoteCallString:bs,gfmFootnoteCall:xs,gfmFootnoteDefinitionLabelString:ws,gfmFootnoteDefinition:ks},exit:{gfmFootnoteCallString:Ss,gfmFootnoteCall:Cs,gfmFootnoteDefinitionLabelString:Es,gfmFootnoteDefinition:Ts}},{canContainEols:["delete"],enter:{strikethrough:Ds},exit:{strikethrough:Ls}},{enter:{table:rc,tableData:lc,tableHeader:lc,tableRow:ic},exit:{codeText:sc,table:oc,tableData:ac,tableHeader:ac,tableRow:ac}},{exit:{taskListCheckValueChecked:dc,taskListCheckValueUnchecked:dc,paragraph:fc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:ss}]},As(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Is}],handlers:{delete:_s}},uc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pc}}]}}(t))}var Gc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function Zc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Xc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Jc(i,...n)]}function Jc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Kc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Kc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Kc(e[t],null)}}}}function eu(...e){return r.useCallback(Qc(...e),e)}function tu(e){const n=nu(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(ou);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function nu(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Qc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var ru=Symbol("radix.slottable");function ou(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ru}var iu=globalThis?.document?r.useLayoutEffect:()=>{},au=r[" useId ".trim().toString()]||(()=>{}),lu=0;function su(e){const[t,n]=r.useState(au());return iu((()=>{n((e=>e??String(lu++)))}),[e]),e||(t?`radix-${t}`:"")}var cu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=tu(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var uu=r[" useInsertionEffect ".trim().toString()]||iu;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return uu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var fu=r.createContext(void 0);function pu(e){const t=r.useContext(fu);return e||t||"ltr"}var hu="rovingFocusGroup.onEntryFocus",mu={bubbles:!1,cancelable:!0},gu="RovingFocusGroup",[yu,vu,bu]=function(e){const n=e+"CollectionProvider",[r,i]=Xc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=tu(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=eu(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=tu(f),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=eu(n,s),u=l(f,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(gu),[xu,wu]=Xc(gu,[bu]),[ku,Su]=xu(gu),Cu=r.forwardRef(((e,n)=>t(yu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(yu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(Eu,{...e,ref:n})})})));Cu.displayName=gu;var Eu=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=r.useRef(null),m=eu(n,h),g=pu(l),[y,v]=du({prop:s,defaultProp:c??null,onChange:u,caller:gu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=vu(o),S=r.useRef(!1),[C,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(hu,w),()=>e.removeEventListener(hu,w)}),[w]),t(ku,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(cu.div,{tabIndex:b||0===C?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:Zc(e.onMouseDown,(()=>{S.current=!0})),onFocus:Zc(e.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(hu,mu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Nu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:Zc(e.onBlur,(()=>x(!1)))})})})),Tu="RovingFocusGroupItem",Ou=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=su(),d=l||u,f=Su(Tu,o),p=f.currentTabStopId===d,h=vu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=f;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(yu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(cu.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i?f.onItemFocus(d):e.preventDefault()})),onFocus:Zc(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:Zc(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Au[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=f.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Nu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})}));Ou.displayName=Tu;var Au={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Pu=Cu,Iu=Ou;var Du=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Lu(o.current);a.current="mounted"===s?e:"none"}),[s]),iu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Lu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),iu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Lu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Lu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=eu(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Lu(e){return e?.animationName||"none"}Du.displayName="Presence";var _u="Tabs",[Ru,ju]=Xc(_u,[wu]),Mu=wu(),[Fu,zu]=Ru(_u),qu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=pu(s),[f,p]=du({prop:o,onChange:i,defaultProp:a??"",caller:_u});return t(Fu,{scope:r,baseId:su(),value:f,onValueChange:p,orientation:l,dir:d,activationMode:c,children:t(cu.div,{dir:d,"data-orientation":l,...u,ref:n})})}));qu.displayName=_u;var Bu="TabsList",Hu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=zu(Bu,r),l=Mu(r);return t(Pu,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(cu.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));Hu.displayName=Bu;var Uu="TabsTrigger",Vu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=zu(Uu,r),s=Mu(r),c=$u(l.baseId,o),u=Yu(l.baseId,o),d=o===l.value;return t(Iu,{asChild:!0,...s,focusable:!i,active:d,children:t(cu.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:Zc(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:Zc(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Vu.displayName=Uu;var Wu="TabsContent";function $u(e,t){return`${e}-trigger-${t}`}function Yu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=zu(Wu,o),u=$u(c.baseId,i),d=Yu(c.baseId,i),f=i===c.value,p=r.useRef(f);return r.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Du,{present:a||f,children:({present:r})=>t(cu.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&l})})})).displayName=Wu;var Gu=qu,Zu=Hu,Xu=Vu;function Ju(e){var n=e.className,r=Sn(e,["className"]);return t(Gu,kn({"data-slot":"tabs",style:kn({display:"flex",flexDirection:"column",gap:"8px"},n?{className:n}:{})},r))}function Ku(e){var n=e.className,r=Sn(e,["className"]);return t(Zu,kn({"data-slot":"tabs-list",style:kn({display:"flex",gap:"4px",backgroundColor:"#e8e8e8",padding:"4px",borderRadius:"8px"},n?{className:n}:{})},r))}function Qu(r){r.className;var o=Sn(r,["className"]);return e(n,{children:[t(Xu,kn({"data-slot":"tabs-trigger",style:{flex:1,userSelect:"none",borderRadius:"6px",padding:"8px 8px",fontSize:"12px",fontWeight:"600",color:"#666",transition:"all 0.15s",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",cursor:"pointer",border:"none",outline:"none"}},o)),t("style",{children:'\n [data-slot="tabs-trigger"][data-state="active"] {\n background-color: #ffffff;\n color: #1a1a1a;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n }\n [data-slot="tabs-trigger"]:not([data-state="active"]):hover {\n background-color: rgba(255, 255, 255, 0.5);\n }\n '})]})}var ed={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities for the selected context",query:"Show me all critical vulnerabilities for the selected context",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Catalog list",description:"Show me the catalogs",query:"Show me the catalogs",category:"compliance",icon:"📋"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"}]}},td=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.setSend,a=n.quickActions,l=n.className,s=void 0===l?"":l,c=ed[o],u=a||c.quickActions;return e("div",{className:"security-assistant ".concat(s),style:{"--primary-color":c.theme.primary,"--background-color":c.theme.background,"--border-color":c.theme.border,"--card-hover-color":c.theme.cardHover,maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:c.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a"},children:c.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:c.subtitle})]}),t("div",{className:"quick-actions-grid",children:u.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query),i(!0)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 12px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n margin-bottom: 12px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},nd=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},rd=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],f=s[1],h=o.useState({}),m=h[0],g=h[1],y=o.useState("devops"),v=y[0],w=y[1],k=o.useState(!1),S=k[0],C=k[1],E=i(!0),T=E[0],O=E[1],A=i(!1),N=A[0],P=A[1],I=i([]),D=I[0],L=I[1],_=i(!1),R=_[0],j=_[1],M=i(!1),F=M[0],z=M[1],q=i(null);q[0];var B=q[1],H=i([]),U=H[0],V=H[1],W=i([]);W[0];var $=W[1],Y=i({}),G=Y[0];Y[1];var Z=i("");Z[0];var X=Z[1],J=i([]),K=J[0],Q=J[1],ee=i(!1),te=ee[0],ne=ee[1],re=i((new Date).toISOString().split("T")[0]),oe=re[0],ie=re[1],ae=u(null),le=i(""),se=le[0],ce=le[1],ue=i(null),de=ue[0],fe=ue[1],pe=i(!1),he=pe[0],me=pe[1],ge=u(null),ye=i([]),ve=ye[0],be=ye[1],xe=i([]),we=xe[0],ke=xe[1],Se=i(null),Ce=Se[0],Ee=Se[1],Te=i(!1),Oe=Te[0],Ae=Te[1],Ne=i(!1),Pe=Ne[0],Ie=Ne[1],De=Dn(),Le=De.getTaskID,_e=De.setIsAgent,Re=De.setConverse,je=De.isAgent,Me=De.getTaskAgent,Fe=De.converse,ze=De.prompts,qe=De.setPrompts,Be=De.isLoading,He=De.isResize;De.setIsResize;var Ue=i(""),Ve=Ue[0],We=Ue[1],$e=i(!0),Ye=$e[0],Ge=$e[1],Ze=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===v?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Name",options:[],disabled:!1}]),Xe=Ze[0],Je=Ze[1];function Ke(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var Qe=Ql("(max-width: 640px)"),et=Ql("(max-width: 1024px)");Ql("(min-width: 1024px)");var tt=Ql("(max-width: 640px)"),nt=p((function(){return Cn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),Q(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]);d((function(){N&&it()}),[N]);var rt=p((function(){return Cn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),L((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),Nn({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),L([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Xl.get(Yl)&&(nt(),rt())}),[nt,rt]),d((function(){var e=b.get("access");if(e){var t=Ke(e);if(null==t?void 0:t.oidc_acs){var n=Ke(t.oidc_acs);(null==n?void 0:n.name)&&X(n.name)}}}),[]),d((function(){Je((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:T?[{label:"Loading...",value:""}]:Array.isArray(D)?D.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[D,T]);var ot="security"===v?Xe.filter((function(e){return"Project"===e.label||"Application"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Name"===e.label})):Xe.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),it=function(){var e,t,n,r,o,i,a,l,s,u,d,p,h,g,y,b;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var w=x();z(!0),qe((function(e){return Tn(Tn([],e,!0),[{id:w,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==D?void 0:D.filter((function(e){return(null==e?void 0:e.uuid)===m.Project})))||void 0===t?void 0:t[0],S={};if("devops"===v||"sre"===v){var C=null===(n=null==U?void 0:U.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=Xe.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===m.Environment})))||void 0===i?void 0:i[0];S={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==m?void 0:m.Application)||"",env_uuid:(null==m?void 0:m.Environment)||"",action_type:(null==m?void 0:m["Action Type"])||"",context:"devops"===v?"devops":"sreops",conversation_title:se,conversation_uuid:de,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==C?void 0:C.name)||"",application_action_type:(null===(l=null===(a=null==m?void 0:m["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==m?void 0:m["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==ve?void 0:ve.filter((function(e){return(null==e?void 0:e.value)===m.Category})))||void 0===u?void 0:u[0],O=null===(g=null===(h=null===(p=null===(d=null==ve?void 0:ve.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Category)})))||void 0===d?void 0:d[0])||void 0===p?void 0:p.tools)||void 0===h?void 0:h.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Tool)})))||void 0===g?void 0:g[0],A=(C=null===(y=null==U?void 0:U.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===y?void 0:y[0],null===(b=null==we?void 0:we.filter((function(e){return(null==e?void 0:e.uuid)===m["Scan Name"]})))||void 0===b?void 0:b[0]);S={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==m?void 0:m["Scan Name"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==m?void 0:m.Application)||"",category:(null==m?void 0:m.Category)||"",tool:(null==m?void 0:m.Tool)||"",context:"secops",conversation_title:se,conversation_uuid:de,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==C?void 0:C.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==O?void 0:O.name)||"",scan_name:(null==A?void 0:A.scan_name)||""}}}f(""),P(!1),je?(console.log(Fe),Me(w,kn(kn({},S),{agent_mode:je,agent_trans_uuid:Fe}),f,Q,ce,fe,se)):Le(w,S,f,Q,ce,fe,se)}else Nn({severity:"error",summary:"Error",detail:"Please enter a message"})},at=function(e){return Cn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=i.sent(),console.log("Applications:",null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.data),V((null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.data)||[]),Je((function(e){return e.map((function(e){var n,r;return"Application"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return n=i.sent(),console.error("Error fetching applications:",n),Nn({severity:"error",summary:"Error Fetching Applications",detail:n.message||"Failed to load applications. Please try again.",life:5e3}),V([]),Je((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},lt=function(e,t,n){return Cn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),$((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Je((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),Nn({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),$([]),Je((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},st=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Je((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===v||"sre"===v||"security"===v)||"Category"===e.label&&"security"===v||"Metric Type"===e.label&&"sre"===v||"Time Range"===e.label&&"sre"===v||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Name":null,Category:null,Tool:null})})),"devops"===v||"sre"===v?at(t):(at(t),n=t,Cn(void 0,void 0,void 0,(function(){var e,t,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=o.sent(),be((null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.categories)||[]),Je((function(t){return t.map((function(t){var n,r;return"Category"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):t}))})),[3,4];case 2:return t=o.sent(),console.error("Error fetching category:",t),Nn({severity:"error",summary:"Error Fetching Category",detail:t.message||"Failed to load category. Please try again.",life:5e3}),V([]),Je((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))),B(null)),"Application"===e&&null!==t&&(Je((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===v?"sre":null})})),"sre"===v&&(Je((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),lt(t,m.Project,"sre"))),"Category"===e&&null!==t){var o=ve.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Je((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Name"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Name":null})}))}"Tool"===e&&null!==t&&(Je((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Cn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:m.Category,tool:r,page:1,"count per page":200,project_id:m.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),ke(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Je((function(e){return e.map((function(e){var t,r;return"Scan Name"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching Scan Name:",o),Nn({severity:"error",summary:"Error Fetching Scan Name",detail:o.message||"Failed to load Scan Name. Please try again.",life:5e3}),Je((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),B(null)),"Action Type"===e&&null!==t&&(Je((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),lt(m.Application,m.Project,t)),"Environment"===e&&null!==t&&B(null==m?void 0:m["Action Type"]),"Scan Name"===e&&null!==t&&B(null)}};"devops"!==v&&"sre"!==v||m.Project&&m.Application&&m.Environment&&m["Action Type"];var ct=function(e,t,n,r){return Cn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=f.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),ie(null==c?void 0:c.toISOString())),n?qe(i):0==(null==i?void 0:i.length)?console.log("skip"):qe((function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])})),i.length>0?ne(!0):ne(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),me(!1),[3,4];case 2:return u=f.sent(),me(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},ut=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},dt=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(An,{}),T&&t(nd,{}),e("div",{style:{display:"flex",flex:1,flexDirection:Qe?"column":"row",overflow:"hidden",height:"calc(100vh - 180px)"},children:[He&&e("aside",{style:{height:"calc(100vh - 40px)",width:et?"100%":Ye?"300px":"0px",backgroundColor:Ye?"#f5f5f5":"transparent",color:"black",padding:Ye?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:tt?"flex":"none"},onClick:function(){return C((function(e){return!e}))},children:[t(S?Bn:qn,{style:{width:"16px",height:"16px"}}),S?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:et?S?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 120px)",maxWidth:Ye?"300px":"10px"},children:e(Gc,{isExpanded:Ye,setIsExpanded:Ge,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(Ju,{value:v,onValueChange:function(e){ce(""),fe(null),ie(ut()),qe([]),z(!1),Re(""),_e(!1),w(e),g({}),B(null),Je((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Name"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(Ku,{children:[e(Qu,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(Qu,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(Qu,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{style:{paddingBottom:"0.5rem",borderBottom:"1px solid rgb(229, 231, 235)"},children:e("button",{onClick:function(){z(!1),ce(""),fe(null),Re(""),_e(!1),ie(ut()),qe([])},title:"New Chat",className:"new-chat-btn",style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",gap:"6px",backgroundColor:"#7761F3",color:"white",border:"none",borderRadius:"0.375rem",fontWeight:"500",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease-in-out",padding:"10px 16px",margin:"16px 0 12px 0"},children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px",paddingTop:"0.5rem",color:"#666"},children:[t("div",{className:"filters-title",style:{fontSize:"11px",fontWeight:"600",color:"#666",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Contextual Filters"}),ot.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label",style:{fontSize:"0.75rem",fontWeight:"600",color:"rgb(55, 65, 81)",marginBottom:"0.25rem"},children:n.label}),o?e("select",{disabled:n.disabled,value:m[n.label]||"",onChange:function(e){return st(n.label,e.target.value)},className:"filter-select",style:{width:"100%",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.875rem",padding:"0.5rem",outline:"none"},onFocus:function(e){var t=e.target;t.style.boxShadow="0 0 0 2px #7761F3",t.style.borderColor="#7761F3"},onBlur:function(e){var t=e.target;t.style.boxShadow="none",t.style.borderColor="rgb(209, 213, 219)"},onMouseEnter:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="#7761F3")},onMouseLeave:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="rgb(209, 213, 219)")},children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",maxHeight:"5rem",overflowY:"auto"},children:"Environment"===n.label&&"buildd"===String((null==m?void 0:m["Action Type"])||"").toLowerCase()?t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==m?void 0:m[n.label])===e.value;return t("div",{onClick:function(){st(n.label,o?null:e.value)},className:"filter-tag",style:{cursor:"pointer",borderRadius:"9999px",padding:"0.25rem 0.75rem",maxHeight:"2.5rem",fontSize:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"500",border:"1px solid ".concat(o?"#7761F3":"rgb(209, 213, 219)"),transition:"all 0.15s ease-in-out",backgroundColor:o?"#7761F3":"rgb(243, 244, 246)",color:o?"white":"rgb(55, 65, 81)"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="rgb(229, 231, 235)")},onMouseLeave:function(e){o||(e.currentTarget.style.backgroundColor="rgb(243, 244, 246)")},children:e.label},r)})):t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),B(null)},style:{width:"100%",padding:"0.375rem",backgroundColor:"transparent",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.75rem",color:"rgb(75, 85, 99)",cursor:"pointer",marginTop:"0.5rem",transition:"all 0.15s ease-in-out"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="rgb(249, 250, 251)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},children:"Clear All Filters"})]}),(null==K?void 0:K.length)>0&&t("div",{style:{marginTop:"10px",borderTop:"1px solid rgb(229, 231, 235)"},children:(null==K?void 0:K.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),K.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){z(!0),qe([]),me(!0),ce(null==n?void 0:n.title),fe(null==n?void 0:n.conversation_uuid),Re(""),_e(!1),ie((null==n?void 0:n.latest_date_time_epoch)?dt(null==n?void 0:n.latest_date_time_epoch):ut()),ct(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?dt(null==n?void 0:n.latest_date_time_epoch):ut(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(ts,{onEdit:function(){Ie(!0),We(null==n?void 0:n.title),Ee(n),Q(K.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Ae(!0),Ee(n),Q(K.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[He?e(n,{children:[t("button",{title:Ye?"Hide Sidebar":"Show Sidebar",onClick:function(){return Ge(!Ye)},"aria-label":Ye?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(Ye?Yn:Vn,{style:{width:"0.75rem",height:"0.75rem",color:"rgb(75, 85, 99)",fontWeight:"bold"}})}),e("div",{style:{display:"flex",flexDirection:et?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666",minWidth:"110px"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:tt?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===v&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===v&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===v&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(m).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===v&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===v&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;if("security"===v&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===v&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=Xe.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=D.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Yn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return st(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"/images/logo.avif",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:He?t("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto",background:"#f8fafc",borderRadius:"8px",fontFamily:"'Inter', -apple-system, system-ui, sans-serif"},children:("security"==v||"devops"==v)&&e(n,{children:[t("span",{style:{fontSize:"12px",fontWeight:600,color:"#64748b",minWidth:"75px"},children:"Agent Mode:"}),t("div",{style:{width:"12px",height:"12px",borderRadius:"50%",position:"relative",cursor:"pointer",background:Fe?"#10b981":je?"#f59e0b":"#e40101ff",boxShadow:Fe?"0 0 0 3px #25ffb6ff":je?"0 0 0 3px #f6d499ff":"0 0 0 3px #fda094ff"},onMouseEnter:function(){},onMouseLeave:function(){},children:t("div",{style:{position:"absolute",top:"-80px",left:"50%",transform:"translateX(-50%)",background:"#1e293b",color:"white",padding:"12px 16px",borderRadius:"8px",fontSize:"12px",whiteSpace:"nowrap",opacity:0,pointerEvents:"none",transition:"opacity 200ms ease",zIndex:1e3},children:"All AI agents enabled and operational"})})]})}):t("button",{title:"New Chat",onClick:function(){ce(""),fe(null),ie(ut()),qe([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==m?void 0:m["Scan Name"])&&"security"===v&&He||He)&&t(n,{children:!F&&t(td,{setMessage:f,onSendMessage:it,type:v,setSend:P})}),F&&e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},ref:ae,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&te&&(me(!0),ct(se,oe,!1,de))}(e)},children:[he&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),ze.map((function(n,r){return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-end"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ebd8ff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"center",maxWidth:"100%",backgroundColor:"#ebd8ff"},children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question})," "]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),t("div",{style:{display:"flex",justifyContent:"flex-start",marginTop:"1rem"},children:t("div",{style:{padding:"20px",paddingTop:"15px",marginTop:"5px",minWidth:"60%",maxWidth:"90%",borderRadius:"20px",borderTopRightRadius:"0px",backgroundColor:"#efefef",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(Un,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Sn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Sn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Sn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Sn(e,["node"]);return t("td",kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Sn(e,["node"]);return t("tr",kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb"}},n))},code:function(e){e.node;var n=e.className,r=e.children,o=Sn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Sn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Sn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Sn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Sn(e,["node"]);return t("td",kn({style:{padding:"12px",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Sn(e,["node"]);return t("tr",kn({style:{backgroundColor:"#f9fafb"}},n))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),t("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})})]})})})]},r)})),ze.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container",style:{display:"flex",flexDirection:"column",width:He?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box",id:"messageInput",rows:1,value:c,disabled:Be,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){f(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),it())},style:{marginTop:"0.25rem",marginBottom:"0.25rem",flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:ge,type:"file",style:{display:"none"},onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:Be?"not-allowed":"pointer",opacity:Be?.5:1,marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return it()},disabled:Be||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),R&&t(Kl,{title:"Authorization",visible:R,setVisible:j,onSubmit:function(e){!function(e){Cn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==G?void 0:G.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(j(!1),Nn({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):Nn({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),Nn({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Oe&&t(es,{title:"Are you sure?",visible:Oe,setVisible:Ae,onSubmit:function(){var e;Ae(!1),e=null==Ce?void 0:Ce.conversation_uuid,Cn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(Q(K.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),Nn({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",de),console.log("prompts---",ze),Ae(!1),Ee(null),e===de&&(fe(null),ie(ut()),qe([]),ce(""))):Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Ae(!1),[7];case 4:return[2]}}))}))},selectedConversation:Ce}),Pe&&t(ns,{title:"Rename chat",visible:Pe,setVisible:Ie,onSubmit:function(){var e,t,n;Ie(!1),Ve&&(null===(e=null==Ve?void 0:Ve.trim())||void 0===e?void 0:e.length)>0?(t=null==Ce?void 0:Ce.conversation_uuid,n=Ve,Cn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(Q((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),Ie(!1),Ee(null),Nn({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),Nn({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):Nn({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:Ce,tempTitle:Ve,setTempTitle:We})]})},od=function(n){var r=n.app_type,o=n.title,i=n.placeholder;n.base_url,n.access_token_key,n.refresh_token_key,n.token_refresh_route;var a=n.aiIconSrc,l=void 0===a?"/images/ai-icon.svg":a;n.expandedStyle,n.dialogStyle,n.position;var s=n.HTTP,c=Dn(),u=c.opneChatModal,d=c.setOpenChatModal;c.isResize;return e("div",{style:{position:"relative"},children:[u&&t("div",{style:{},children:t(rd,{app_type:r,title:o,placeholder:i,HTTP:s,closeChat:function(){d(!1)}})}),!u&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:l,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){d(!u)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},id=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Jl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(In,{HTTP:c,children:t(od,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{id as CindyChatBot};
|
|
39
|
+
*/const Gn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xn={};function Kn(e,t){return(Xn.jsx?Zn:Gn).test(e)}const Qn=/[ \t\n\f\r]/g;function Jn(e){return""===e.replace(Qn,"")}class er{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tr(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new er(n,r,t)}function nr(e){return e.toLowerCase()}er.prototype.normal={},er.prototype.property={},er.prototype.space=void 0;class rr{constructor(e,t){this.attribute=t,this.property=e}}rr.prototype.attribute="",rr.prototype.booleanish=!1,rr.prototype.boolean=!1,rr.prototype.commaOrSpaceSeparated=!1,rr.prototype.commaSeparated=!1,rr.prototype.defined=!1,rr.prototype.mustUseProperty=!1,rr.prototype.number=!1,rr.prototype.overloadedBoolean=!1,rr.prototype.property="",rr.prototype.spaceSeparated=!1,rr.prototype.space=void 0;let or=0;const ir=fr(),ar=fr(),lr=fr(),sr=fr(),cr=fr(),ur=fr(),dr=fr();function fr(){return 2**++or}var pr=Object.freeze({__proto__:null,boolean:ir,booleanish:ar,commaOrSpaceSeparated:dr,commaSeparated:ur,number:sr,overloadedBoolean:lr,spaceSeparated:cr});const hr=Object.keys(pr);class mr extends rr{constructor(e,t,n,r){let o=-1;if(super(e,t),gr(this,"space",r),"number"==typeof n)for(;++o<hr.length;){const e=hr[o];gr(this,hr[o],(n&pr[e])===pr[e])}}}function gr(e,t,n){n&&(e[t]=n)}function yr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new mr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[nr(r)]=r,n[nr(i.attribute)]=r}return new er(t,n,e.space)}mr.prototype.defined=!0;const vr=yr({properties:{ariaActiveDescendant:null,ariaAtomic:ar,ariaAutoComplete:null,ariaBusy:ar,ariaChecked:ar,ariaColCount:sr,ariaColIndex:sr,ariaColSpan:sr,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:ar,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:ar,ariaFlowTo:cr,ariaGrabbed:ar,ariaHasPopup:null,ariaHidden:ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:sr,ariaLive:null,ariaModal:ar,ariaMultiLine:ar,ariaMultiSelectable:ar,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:sr,ariaPressed:ar,ariaReadOnly:ar,ariaRelevant:null,ariaRequired:ar,ariaRoleDescription:cr,ariaRowCount:sr,ariaRowIndex:sr,ariaRowSpan:sr,ariaSelected:ar,ariaSetSize:sr,ariaSort:null,ariaValueMax:sr,ariaValueMin:sr,ariaValueNow:sr,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function br(e,t){return t in e?e[t]:t}function xr(e,t){return br(e,t.toLowerCase())}const wr=yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ur,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:ir,allowPaymentRequest:ir,allowUserMedia:ir,alt:null,as:null,async:ir,autoCapitalize:null,autoComplete:cr,autoFocus:ir,autoPlay:ir,blocking:cr,capture:null,charSet:null,checked:ir,cite:null,className:cr,cols:sr,colSpan:null,content:null,contentEditable:ar,controls:ir,controlsList:cr,coords:sr|ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ir,defer:ir,dir:null,dirName:null,disabled:ir,download:lr,draggable:ar,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ir,formTarget:null,headers:cr,height:sr,hidden:lr,high:sr,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:ir,inputMode:null,integrity:null,is:null,isMap:ir,itemId:null,itemProp:cr,itemRef:cr,itemScope:ir,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ir,low:sr,manifest:null,max:null,maxLength:sr,media:null,method:null,min:null,minLength:sr,multiple:ir,muted:ir,name:null,nonce:null,noModule:ir,noValidate:ir,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ir,optimum:sr,pattern:null,ping:cr,placeholder:null,playsInline:ir,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ir,referrerPolicy:null,rel:cr,required:ir,reversed:ir,rows:sr,rowSpan:sr,sandbox:cr,scope:null,scoped:ir,seamless:ir,selected:ir,shadowRootClonable:ir,shadowRootDelegatesFocus:ir,shadowRootMode:null,shape:null,size:sr,sizes:null,slot:null,span:sr,spellCheck:ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:sr,step:null,style:null,tabIndex:sr,target:null,title:null,translate:null,type:null,typeMustMatch:ir,useMap:null,value:ar,width:sr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:cr,axis:null,background:null,bgColor:null,border:sr,borderColor:null,bottomMargin:sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ir,declare:ir,event:null,face:null,frame:null,frameBorder:null,hSpace:sr,leftMargin:sr,link:null,longDesc:null,lowSrc:null,marginHeight:sr,marginWidth:sr,noResize:ir,noHref:ir,noShade:ir,noWrap:ir,object:null,profile:null,prompt:null,rev:null,rightMargin:sr,rules:null,scheme:null,scrolling:ar,standby:null,summary:null,text:null,topMargin:sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ir,disableRemotePlayback:ir,prefix:null,property:null,results:sr,security:null,unselectable:null},space:"html",transform:xr}),kr=yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:dr,accentHeight:sr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:sr,amplitude:sr,arabicForm:null,ascent:sr,attributeName:null,attributeType:null,azimuth:sr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:sr,by:null,calcMode:null,capHeight:sr,className:cr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:sr,diffuseConstant:sr,direction:null,display:null,dur:null,divisor:sr,dominantBaseline:null,download:ir,dx:null,dy:null,edgeMode:null,editable:null,elevation:sr,enableBackground:null,end:null,event:null,exponent:sr,externalResourcesRequired:null,fill:null,fillOpacity:sr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ur,g2:ur,glyphName:ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:sr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:sr,horizOriginX:sr,horizOriginY:sr,id:null,ideographic:sr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:sr,k:sr,k1:sr,k2:sr,k3:sr,k4:sr,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:sr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:sr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:sr,overlineThickness:sr,paintOrder:null,panose1:null,path:null,pathLength:sr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:sr,pointsAtY:sr,pointsAtZ:sr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:sr,specularExponent:sr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:sr,strikethroughThickness:sr,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:sr,strokeOpacity:sr,strokeWidth:null,style:null,surfaceScale:sr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:sr,tableValues:null,target:null,targetX:sr,targetY:sr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:sr,underlineThickness:sr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:sr,values:null,vAlphabetic:sr,vMathematical:sr,vectorEffect:null,vHanging:sr,vIdeographic:sr,version:null,vertAdvY:sr,vertOriginX:sr,vertOriginY:sr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:sr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:br}),Sr=yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Cr=yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),Er=yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Tr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ar=/[A-Z]/g,Or=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Pr(e){return"-"+e.toLowerCase()}function Ir(e){return e.charAt(1).toUpperCase()}const Dr=tr([vr,wr,Sr,Cr,Er],"html"),Lr=tr([vr,kr,Sr,Cr,Er],"svg");var _r={},Rr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jr=/\n/g,Mr=/^\s*/,Fr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qr=/^:\s*/,zr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Br=/^[;\s]*/,Ur=/^\s+|\s+$/g,Hr="";function Vr(e){return e?e.replace(Ur,Hr):Hr}var Wr=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,$r.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var $r=Wr((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(jr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(Mr)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Hr!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Hr===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function f(){var e=i(),t=s(Fr);if(t){if(d(),!s(qr))return l("property missing ':'");var n=s(zr),r=e({type:"declaration",property:Vr(t[0].replace(Rr,Hr)),value:n?Vr(n[0].replace(Rr,Hr)):Hr});return s(Br),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=f();)!1!==e&&(t.push(e),u(t));return t}()}));var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.camelCase=void 0;var Gr=/^--[a-zA-Z0-9_-]+$/,Zr=/-([a-z])/g,Xr=/^[^-]+$/,Kr=/^-(webkit|moz|ms|o|khtml)-/,Qr=/^-(ms)-/,Jr=function(e,t){return t.toUpperCase()},eo=function(e,t){return"".concat(t,"-")};Yr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Xr.test(e)||Gr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Qr,eo):e.replace(Kr,eo)).replace(Zr,Jr))};var to=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_r),no=Yr;function ro(e,t){var n={};return e&&"string"==typeof e?((0,to.default)(e,(function(e,r){e&&r&&(n[(0,no.camelCase)(e,t)]=r)})),n):n}ro.default=ro;var oo=fe(ro);const io=lo("end"),ao=lo("start");function lo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function so(e){return e&&"object"==typeof e?"position"in e||"type"in e?uo(e.position):"start"in e||"end"in e?uo(e):"line"in e||"column"in e?co(e):"":""}function co(e){return fo(e&&e.line)+":"+fo(e&&e.column)}function uo(e){return co(e&&e.start)+"-"+co(e&&e.end)}function fo(e){return e&&"number"==typeof e?e:1}class po extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=so(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}po.prototype.file="",po.prototype.name="",po.prototype.reason="",po.prototype.message="",po.prototype.stack="",po.prototype.column=void 0,po.prototype.line=void 0,po.prototype.ancestors=void 0,po.prototype.cause=void 0,po.prototype.fatal=void 0,po.prototype.place=void 0,po.prototype.ruleId=void 0,po.prototype.source=void 0;const ho={}.hasOwnProperty,mo=new Map,go=/[A-Z]/g,yo=new Set(["table","tbody","thead","tfoot","tr"]),vo=new Set(["td","th"]),bo="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ao(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Lr:Dr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=wo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function wo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=To(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&ho.call(t.properties,o)){const i=Eo(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&vo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=Co(e,t);yo.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Jn(t.value):Jn(t));var t})));return ko(e,a,i,t),So(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Ao(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Lr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:To(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Ao(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Ao(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=Co(e,t);return ko(e,a,i,t),So(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ao(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return So(r,Co(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ko(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function So(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Co(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:mo;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=wo(e,i,a);void 0!==l&&n.push(l)}return n}function Eo(e,t,n){const r=function(e,t){const n=nr(t);let r=t,o=rr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Nr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Or,Ir);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Or.test(e)){let n=e.replace(Ar,Pr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=mr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return oo(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new po("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bo+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ho.call(e,n)&&(t[Oo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tr[r.property]||r.property:r.attribute,n]}}function To(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Kn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Kn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ho.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ao(e)}function Ao(e,t){const n=new po("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=bo+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Oo(e){let t=e.replace(go,No);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function No(e){return"-"+e.toLowerCase()}const Po={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Io={};function Do(e,t){return Lo(e,"boolean"!=typeof Io.includeImageAlt||Io.includeImageAlt,"boolean"!=typeof Io.includeHtml||Io.includeHtml)}function Lo(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _o(e.children,t,n)}return Array.isArray(e)?_o(e,t,n):""}function _o(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Lo(e[o],t,n);return r.join("")}const Ro={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jo={}.hasOwnProperty;function Mo(e){return!!jo.call(Ro,e)&&Ro[e]}function Fo(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function qo(e,t){return e.length>0?(Fo(e,e.length,0,t),e):t}const zo={}.hasOwnProperty;function Bo(e){const t={};let n=-1;for(;++n<e.length;)Uo(t,e[n]);return t}function Uo(e,t){let n;for(n in t){const r=(zo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){zo.call(r,i)||(r[i]=[]);const e=o[i];Ho(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ho(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Fo(e,0,0,r)}function Vo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $o=oi(/[A-Za-z]/),Yo=oi(/[\dA-Za-z]/),Go=oi(/[#-'*+\--9=?A-Z^-~]/);function Zo(e){return null!==e&&(e<32||127===e)}const Xo=oi(/\d/),Ko=oi(/[\dA-Fa-f]/),Qo=oi(/[!-/:-@[-`{-~]/);function Jo(e){return null!==e&&e<-2}function ei(e){return null!==e&&(e<0||32===e)}function ti(e){return-2===e||-1===e||32===e}const ni=oi(/\p{P}|\p{S}/u),ri=oi(/\s/);function oi(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ii(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Yo(e.charCodeAt(n+1))&&Yo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ai(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ti(r))return e.enter(n),a(r);return t(r)};function a(r){return ti(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const li={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Jo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const si={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Fo(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ci,u,d)(o)}function u(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(ci,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Jo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Fo(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ci={tokenize:function(e,t,n){return ai(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ui(e){return null===e||ei(e)||ri(e)?1:ni(e)?2:void 0}function di(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const fi={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[u][1].start};pi(d,-l),pi(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=qo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=qo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=qo(s,di(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=qo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=qo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Fo(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ui(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=ui(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function pi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hi={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return $o(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Yo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Yo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zo(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Go(t)?(e.consume(t),s):n(t)}function c(e){return Yo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Yo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const mi={partial:!0,tokenize:function(e,t,n){return function(t){return ti(t)?ai(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Jo(e)?t(e):n(e)}}};const gi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ti(t))return ai(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(gi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ti(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const yi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Qo(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const vi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Yo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Ko,c):(e.enter("characterReferenceValue"),o=7,i=Xo,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Yo||Mo(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const bi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},xi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),ti(t)?ai(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Jo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),ti(t)?ai(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Jo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(bi,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Jo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ti(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ai(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Jo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||Jo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ti(t)?ai(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Jo(t)?e.check(bi,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Jo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const wi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ai(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Jo(t)?e.attempt(ki,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Jo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},ki={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Jo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ai(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Jo(e)?o(e):n(e)}}};const Si={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Jo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Jo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class Ci{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ei(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ei(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ei(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ei(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ei(this.left,t.reverse())}}}function Ei(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ti(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new Ci(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ai(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Fo(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Ai(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=l.slice(g[f],g[f+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),f=-1;++f<s.length;)c[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return c}const Oi={resolve:function(e){return Ti(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Jo(t)?e.check(Ni,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ni={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,o,"linePrefix")};function o(o){if(null===o||Jo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Pi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Jo(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!ei(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||Zo(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ii(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Jo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Jo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!ti(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Di(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Jo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Jo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Li(e,t){let n;return function r(o){if(Jo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ti(o))return ai(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const _i={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ii.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ei(t)?Li(e,l)(t):l(t)}function l(t){return Pi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Ri,c,c)(t)}function c(t){return ti(t)?ai(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Jo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Ri={partial:!0,tokenize:function(e,t,n){return function(t){return ei(t)?Li(e,r)(t):n(t)};function r(t){return Di(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ti(t)?ai(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Jo(e)?t(e):n(e)}}};const ji={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Jo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Mi={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Fo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ei(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Jo(n)?(e.exit("atxHeading"),t(n)):ti(n)?ai(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ei(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Fi=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qi=["pre","script","style","textarea"],zi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:_):$o(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):$o(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:f):n(o)}function p(t){return $o(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ei(l)){const s=47===l,c=a.toLowerCase();return s||i||!qi.includes(c)?Fi.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Yo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return ti(t)?(e.consume(t),g):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||$o(t)?(e.consume(t),v):ti(t)?(e.consume(t),y):C(t)}function v(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):ti(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ti(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||Jo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ei(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||ti(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Jo(t)?T(t):ti(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Jo(t)||6!==o&&7!==o?null===t||Jo(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Bi,j,A)(t))}function A(t){return e.check(Ui,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Jo(t)?A(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return qi.includes(n)?(e.consume(t),R):T(t)}return $o(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Jo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Bi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(mi,t,n)}}},Ui={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Jo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Hi={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):$o(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):$o(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Jo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Jo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Jo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Jo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return $o(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Yo(t)?(e.consume(t),w):k(t)}function k(t){return Jo(t)?(a=k,D(t)):ti(t)?(e.consume(t),k):I(t)}function S(t){return 45===t||Yo(t)?(e.consume(t),S):47===t||62===t||ei(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),I):58===t||95===t||$o(t)?(e.consume(t),E):Jo(t)?(a=C,D(t)):ti(t)?(e.consume(t),C):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Yo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),A):Jo(t)?(a=T,D(t)):ti(t)?(e.consume(t),T):C(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):Jo(t)?(a=A,D(t)):ti(t)?(e.consume(t),A):(e.consume(t),N)}function O(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Jo(t)?(a=O,D(t)):(e.consume(t),O)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ei(t)?C(t):(e.consume(t),N)}function P(e){return 47===e||62===e||ei(e)?C(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return ti(t)?ai(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Vi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Fo(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=qo(i,e.slice(r+1,r+l+3)),i=qo(i,[["enter",u,t]]),i=qo(i,di(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=qo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=qo(i,e.slice(o+1)),i=qo(i,[["exit",s,t]]),Fo(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Wo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Wi,c,i?c:u)(t):91===t?e.attempt($i,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Yi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Wi={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ei(t)?Li(e,o)(t):o(t)}function o(t){return 41===t?c(t):Pi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ei(t)?Li(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Di(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return ei(t)?Li(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},$i={tokenize:function(e,t,n){const r=this;return function(t){return Ii.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Wo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Yi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Gi={name:"labelStartImage",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Zi={name:"labelStartLink",resolveAll:Vi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Xi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ai(e,t,"linePrefix")}}};const Ki={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Jo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ti(t)?ai(e,i,"whitespace")(t):i(t))}}};const Qi={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ai(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ti(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ea,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ai(e,e.attempt(Qi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Xo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ki,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Xo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(mi,r.interrupt?n:c,e.attempt(Ji,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return ti(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Ji={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return!ti(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ea={partial:!0,tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const ta={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ti(t)?ai(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Jo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const na={tokenize:function(e){const t=this,n=e.attempt(mi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ai(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Oi,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ra={resolveAll:la()},oa=aa("string"),ia=aa("text");function aa(e){return{resolveAll:la("text"===e?sa:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function la(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function sa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const ca={42:Qi,43:Qi,45:Qi,48:Qi,49:Qi,50:Qi,51:Qi,52:Qi,53:Qi,54:Qi,55:Qi,56:Qi,57:Qi,62:gi},ua={91:_i},da={[-2]:wi,[-1]:wi,32:wi},fa={35:Mi,42:Ki,45:[ta,Ki],60:zi,61:ta,95:Ki,96:xi,126:xi},pa={38:vi,92:yi},ha={[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Gi,38:vi,42:fi,60:[hi,Hi],91:Zi,92:[ji,yi],93:Vi,95:fi,96:Si},ma={null:[fi,ra]};var ga=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ua,disable:{null:[]},document:ca,flow:fa,flowInitial:da,insideSpan:ma,string:pa,text:ha});function ya(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Jo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=qo(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=di(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){p=function(){const e=f(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,p),o}function y(e){return p.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Fo(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const va=/[\0\t\n\r]/g;const ba=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xa(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vo(n.slice(t?2:1),t?16:10)}return Mo(n)||e}const wa={}.hasOwnProperty;function ka(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(K),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(X),hardBreakEscape:i(Q),hardBreakTrailing:i(Q),htmlFlow:i(J,a),htmlFlowData:E,htmlText:i(J,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:q,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:U,characterReference:H,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:A,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:z,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(C),setextHeadingLineSequence:S,setextHeadingText:k,strong:s(),thematicBreak:s()}};Ca(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];wa.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ta).call(i,void 0,e[0])}for(r.position={start:Sa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Sa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Sa(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ta).call(this,e,r[0])}n.position.end=Sa(e.end)}function u(){return Do(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Sa(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Sa(e.end)}function A(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Sa(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function O(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ba,xa)}(t),n.identifier=Wo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Mo(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=Sa(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ti(e););return e}(function(e){const t={constructs:Bo([ga,...(e||{}).extensions||[]]),content:n(li),defined:[],document:n(si),flow:n(na),lazy:{},string:n(oa),text:n(ia)};return t;function n(e){return function(n){return ya(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(va.lastIndex=u,s=va.exec(o),d=s&&void 0!==s.index?s.index:o.length,f=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===f&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),f){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Sa(e){return{line:e.line,column:e.column,offset:e.offset}}function Ca(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ca(e,r):Ea(e,r)}}function Ea(e,t){let n;for(n in t)if(wa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ta(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+so({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+so({start:t.start,end:t.end})+") is still open")}function Aa(e){const t=this;t.parser=function(n){return ka(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Oa(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Na(e){const t=e.spread;return null==t?e.children.length>1:t}function Pa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Ia(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Ia(t.slice(o),o>0,!1)),i.join("")}function Ia(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Da={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ii(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={src:ii(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ii(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Oa(e,t);const o={href:ii(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ii(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Na(n[r])}return t}(n):Na(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ao(t.children[1]),a=io(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Pa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:La,yaml:La,definition:La,footnoteDefinition:La};function La(){}const _a="object"==typeof self?self:globalThis,Ra=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new _a[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new _a[i](a),o)};return r})(new Map,e)(0),ja="",{toString:Ma}={},{keys:Fa}=Object,qa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ma.call(e).slice(8,-1);switch(n){case"Array":return[1,ja];case"Object":return[2,ja];case"Date":return[3,ja];case"RegExp":return[4,ja];case"Map":return[5,ja];case"Set":return[6,ja];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},za=([e,t])=>0===e&&("function"===t||"symbol"===t),Ba=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=qa(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Fa(r))!e&&za(qa(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!za(qa(n))&&!za(qa(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&za(qa(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Ua="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ra(Ba(e,t)):structuredClone(e):(e,t)=>Ra(Ba(e,t));function Ha(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Va(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Wa=function(e){if(null==e)return Ya;if("function"==typeof e)return $a(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wa(e[n]);return $a(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return $a(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return $a(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function $a(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ya(){return!0}const Ga=[],Za=!0,Xa=!1;function Ka(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Wa(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=Ga;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Za,e];return null==e?Ga:[e]}(n(o,s)),f[0]===Xa))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Xa)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function Qa(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ka(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Ja={}.hasOwnProperty,el={};function tl(e,t){e.position&&(t.position=function(e){const t=ao(e),n=io(e);if(t&&n)return{start:t,end:n}}(e))}function nl(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,Ua(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rl(e,t){const n=t.data||{},r=!("value"in t)||Ja.call(n,"hProperties")||Ja.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function ol(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function il(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function al(e,t){const n=function(e,t){const n=t||el,r=new Map,o=new Map,i=new Map,a={...Da,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=il(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=il(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:nl,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Ja.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Ua(n);return r.children=l.all(e),r}return Ua(e)}return(l.options.unknownHandler||rl)(l,e,t)},options:n,patch:tl,wrap:ol};return Qa(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ha,r=e.options.footnoteBackLabel||Va,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ii(a.toLowerCase());let u=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Ua(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ll(e,t){return e&&"run"in e?async function(n,r){const o=al(n,{file:r,...t});await e.run(o,r)}:function(n,r){return al(n,{file:r,...e||t})}}function sl(e){if(e)throw e}var cl=Object.prototype.hasOwnProperty,ul=Object.prototype.toString,dl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,pl=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ul.call(e)},hl=function(e){if(!e||"[object Object]"!==ul.call(e))return!1;var t,n=cl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cl.call(e,t)},ml=function(e,t){dl&&"__proto__"===t.name?dl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gl=function(e,t){if("__proto__"===t){if(!cl.call(e,t))return;if(fl)return fl(e,t).value}return e[t]},yl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=gl(l,n),l!==(o=gl(t,n))&&(u&&o&&(hl(o)||(i=pl(o)))?(i?(i=!1,a=r&&pl(r)?r:[]):a=r&&hl(r)?r:{},ml(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&ml(l,{name:n,newValue:o}));return l},vl=fe(yl);function bl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function xl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const wl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');kl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(kl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){kl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)kl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){kl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function kl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sl={cwd:function(){return"/"}};function Cl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function El(e){if("string"==typeof e)e=new URL(e);else if(!Cl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Tl=["history","path","basename","stem","extname","dirname"];class Al{constructor(e){let t;t=e?Cl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Sl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Tl.length;){const e=Tl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Tl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?wl.basename(this.path):void 0}set basename(e){Nl(e,"basename"),Ol(e,"basename"),this.path=wl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?wl.dirname(this.path):void 0}set dirname(e){Pl(this.basename,"dirname"),this.path=wl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?wl.extname(this.path):void 0}set extname(e){if(Ol(e,"extname"),Pl(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Cl(e)&&(e=El(e)),Nl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?wl.basename(this.path,this.extname):void 0}set stem(e){Nl(e,"stem"),Ol(e,"stem"),this.path=wl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new po(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Ol(e,t){if(e&&e.includes(wl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wl.sep+"`")}function Nl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Il=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Dl={}.hasOwnProperty;class Ll extends Il{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xl()}copy(){const e=new Ll;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(vl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ml("data",this.frozen),this.namespace[e]=t,this):Dl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ml("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=zl(e),n=this.parser||this.Parser;return Rl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Rl("process",this.parser||this.Parser),jl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=zl(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Rl("processSync",this.parser||this.Parser),jl("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,sl(e),t=r})),ql("processSync","process",n),t}run(e,t,n){Fl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=zl(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){sl(e),n=t,r=!0})),ql("runSync","run",r),n}stringify(e,t){this.freeze();const n=zl(t),r=this.compiler||this.Compiler;return jl("stringify",r),Fl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ml("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=vl(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];bl(a)&&bl(r)&&(r=vl(!0,a,r)),n[o]=[e,r,...i]}}}}const _l=(new Ll).freeze();function Rl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function jl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ml(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fl(e){if(!bl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ql(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Al(e)}const Bl=[],Ul={allowDangerousHtml:!0},Hl=/^(https?|ircs?|mailto|xmpp)$/i,Vl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Wl(r){const o=function(e){const t=e.rehypePlugins||Bl,n=e.remarkPlugins||Bl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ul}:Ul,o=_l().use(Aa).use(n).use(ll,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Al;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||$l;for(const e of Vl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Qa(r,f),xo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function f(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Po)if(Object.hasOwn(Po,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Po[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function $l(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Hl.test(e.slice(0,t))?e:""}var Yl="access",Gl="refresh",Zl="/token/refresh/",Xl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Kl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Yl=t,Gl=n,Zl=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Cn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Xl.get(Gl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat(Zl),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Xl.set(Yl,t,{expires:i(r.iat,r.exp)}),Xl.set(Gl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Cn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Xl.get(Yl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Xl.get(Gl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Xl.get(Yl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Cn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Ql=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Jl(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var es=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var f={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},p=kn(kn({},f),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},f),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t($n,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:p,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function ts(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var f={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},p={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(Un,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:f,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"green"}),children:t(Wn,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:f,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},p),{backgroundColor:"red"}),children:t($n,{size:12})}),t("span",{children:"Delete"})]})]})]})}var ns=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),f=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Wn,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:f,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function rs(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function os(e,t,n){const r=Wa((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([is(e[0]),as(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ka(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function is(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function as(e){return"function"==typeof e?e:function(){return e}}const ls="phrasing",ss=["autolink","link","image","label"];function cs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function us(e){this.config.enter.autolinkProtocol.call(this,e)}function ds(e){this.config.exit.autolinkProtocol.call(this,e)}function fs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ps(e){this.config.exit.autolinkEmail.call(this,e)}function hs(e){this.exit(e)}function ms(e){os(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ys]],{ignore:["link","linkReference"]})}function gs(e,t,n,r,o){let i="";if(!vs(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=rs(e,"(");let i=rs(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function ys(e,t,n,r){return!(!vs(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vs(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ri(n)||ni(n))&&(!t||47!==n)}function bs(){this.buffer()}function xs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ws(){this.buffer()}function ks(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ss(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cs(e){this.exit(e)}function Es(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ts(e){this.exit(e)}function As(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function Os(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ps:Ns)));return l(),a},footnoteReference:As},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ns(e,t,n){return 0===t?e:Ps(e,t,n)}function Ps(e,t,n){return(n?"":" ")+e}As.peek=function(){return"["};const Is=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ds(e){this.enter({type:"delete",children:[]},e)}function Ls(e){this.exit(e)}function _s(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Rs(e){return e.length}function js(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ms(e,t,n){return">"+(n?"":" ")+e}function Fs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function qs(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Fs(i,a.inConstruct,!0)&&!Fs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function zs(e,t,n){return(n?"":" ")+e}function Bs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Us(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Hs(e,t,n){const r=ui(e),o=ui(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Vs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Hs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Us(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Hs(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Us(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}function Ws(e){return e.value||""}function $s(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Gs(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Zs(e,t){const n=Do(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Xs(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if(Zs(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Ks(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Qs(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Js(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}_s.peek=function(){return"~"},Vs.peek=function(e,t,n){return n.options.emphasis||"*"},Ws.peek=function(){return"<"},$s.peek=function(){return"!"},Ys.peek=function(){return"!"},Gs.peek=function(){return"`"},Xs.peek=function(e,t,n){return Zs(e,n)?"<":"["},Ks.peek=function(){return"["};const ec=Wa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tc(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=Hs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Us(c)+s.slice(1));const d=s.charCodeAt(s.length-1),f=Hs(r.after.charCodeAt(0),d,o);f.inside&&(s=s.slice(0,-1)+Us(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+s+p}tc.peek=function(e,t,n){return n.options.strong||"*"};const nc={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Ms);return o(),a},break:qs,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,zs);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Bs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Vs,hardBreak:qs,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Qa(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Xa})),Boolean((!e.depth||e.depth<3)&&Do(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=Us(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Ws,image:$s,imageReference:Ys,inlineCode:Gs,link:Xs,linkReference:Ks,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Qs(n);const l=e.ordered?"."===a?")":".":function(e){const t=Qs(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Js(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Qs(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return ec(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:tc,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Js(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function rc(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function oc(e){this.exit(e),this.data.inTable=void 0}function ic(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function lc(e){this.enter({type:"tableCell",children:[]},e)}function sc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function uc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=nc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Rs,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let f=-1;if("object"==typeof r&&"length"in r)for(;++f<c;)i[f]=js(r[f]);else{const e=js(r);for(;++f<c;)i[f]=e}f=-1;const p=[],h=[];for(;++f<c;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[f]&&(s[f]=o),h[f]=o),p[f]=a}a.splice(1,0,p),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];f=-1;const r=[];for(;++f<c;){const o=e[f]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function dc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function fc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function pc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=nc.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const hc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},mc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(yc,s,l)(t):null===t||ei(t)||ri(t)||45!==t&&ni(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},gc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(yc,t,i)(a):null===a||ei(a)||ri(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||ei(a)||ri(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ei(e)||ri(e)?t(e):r(e)}function i(e){return $o(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):$o(t)?(e.consume(t),a):n(t)}},partial:!0},vc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Yo(e)?n(e):t(e)}},partial:!0},bc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Cc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hc,e.attempt(mc,e.attempt(gc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Cc},xc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Ec.call(r,r.previous)&&!Oc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if($o(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||Zo(t)||ei(t)||ri(t)||ni(t)?n(t):e.attempt(mc,e.attempt(gc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Ec},wc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Ac(t)||!Tc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Ac(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(vc,c,s)(t):45===t||95===t||Yo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&$o(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Tc},kc={};let Sc=48;for(;Sc<123;)kc[Sc]=wc,Sc++,58===Sc?Sc=65:91===Sc&&(Sc=97);function Cc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ei(e)}function Ec(e){return!$o(e)}function Tc(e){return!(47===e||Ac(e))}function Ac(e){return 43===e||45===e||46===e||95===e||Yo(e)}function Oc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}kc[43]=wc,kc[45]=wc,kc[46]=wc,kc[95]=wc,kc[72]=[wc,xc],kc[104]=[wc,xc],kc[87]=[wc,bc],kc[119]=[wc,bc];const Nc={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Pc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Wo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ic(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Dc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||ei(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Wo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return ei(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Lc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||ei(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ei(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ai(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function _c(e,t,n){return e.check(mi,t,e.attempt(Nc,t,n))}function Rc(e){e.exit("gfmFootnoteDefinition")}function jc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=ui(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=ui(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Fo(a,a.length,0,di(l,e.slice(r+1,n),t)),Fo(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Fo(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Mc{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Fc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function qc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Jo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):ti(t)?ai(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ei(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,ti(t)?ai(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return ti(t)?ai(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Jo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return ti(t)?ai(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||Jo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Jo(n)?(e.exit("tableRow"),t(n)):ti(n)?ai(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||ei(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function zc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new Mc;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(u=!1,0!==d&&(Uc(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Bc(f,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Bc(f,t,s,l,i,o)):0!==c[1]&&(o=Bc(f,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&Uc(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Fc(t.events,i))}return e}function Bc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Hc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Hc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Hc(t.events,n[2]),i=Hc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Hc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Uc(e,t,n,r,o){const i=[],a=Hc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Hc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Vc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return ei(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Jo(r)?t(r):ti(r)?e.check({tokenize:Wc},t,n)(r):n(r)}}};function Wc(e,t,n){return ai(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const $c={};function Yc(e){const t=e||$c,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Bo([{text:kc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Lc,continuation:{tokenize:_c},exit:Rc}},text:{91:{name:"gfmFootnoteCall",tokenize:Dc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Pc,resolveTo:Ic}}},jc(e),{flow:{null:{name:"table",tokenize:qc,resolveAll:zc}}},{text:{91:Vc}}])}(t)),o.push([{transforms:[ms],enter:{literalAutolink:cs,literalAutolinkEmail:us,literalAutolinkHttp:us,literalAutolinkWww:us},exit:{literalAutolink:hs,literalAutolinkEmail:ps,literalAutolinkHttp:ds,literalAutolinkWww:fs}},{enter:{gfmFootnoteCallString:bs,gfmFootnoteCall:xs,gfmFootnoteDefinitionLabelString:ws,gfmFootnoteDefinition:ks},exit:{gfmFootnoteCallString:Ss,gfmFootnoteCall:Cs,gfmFootnoteDefinitionLabelString:Es,gfmFootnoteDefinition:Ts}},{canContainEols:["delete"],enter:{strikethrough:Ds},exit:{strikethrough:Ls}},{enter:{table:rc,tableData:lc,tableHeader:lc,tableRow:ic},exit:{codeText:sc,table:oc,tableData:ac,tableHeader:ac,tableRow:ac}},{exit:{taskListCheckValueChecked:dc,taskListCheckValueUnchecked:dc,paragraph:fc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ls,notInConstruct:ss},{character:":",before:"[ps]",after:"\\/",inConstruct:ls,notInConstruct:ss}]},Os(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Is}],handlers:{delete:_s}},uc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:pc}}]}}(t))}var Gc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function Zc(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Xc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Kc(i,...n)]}function Kc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Qc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Jc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Qc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Qc(e[t],null)}}}}function eu(...e){return r.useCallback(Jc(...e),e)}function tu(e){const n=nu(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(ou);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function nu(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Jc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var ru=Symbol("radix.slottable");function ou(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ru}var iu=globalThis?.document?r.useLayoutEffect:()=>{},au=r[" useId ".trim().toString()]||(()=>{}),lu=0;function su(e){const[t,n]=r.useState(au());return iu((()=>{n((e=>e??String(lu++)))}),[e]),e||(t?`radix-${t}`:"")}var cu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=tu(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var uu=r[" useInsertionEffect ".trim().toString()]||iu;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return uu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var fu=r.createContext(void 0);function pu(e){const t=r.useContext(fu);return e||t||"ltr"}var hu="rovingFocusGroup.onEntryFocus",mu={bubbles:!1,cancelable:!0},gu="RovingFocusGroup",[yu,vu,bu]=function(e){const n=e+"CollectionProvider",[r,i]=Xc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=tu(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=eu(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=tu(f),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=eu(n,s),u=l(f,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[p]:"",ref:c,children:i})}));return m.displayName=f,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(gu),[xu,wu]=Xc(gu,[bu]),[ku,Su]=xu(gu),Cu=r.forwardRef(((e,n)=>t(yu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(yu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(Eu,{...e,ref:n})})})));Cu.displayName=gu;var Eu=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=r.useRef(null),m=eu(n,h),g=pu(l),[y,v]=du({prop:s,defaultProp:c??null,onChange:u,caller:gu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=vu(o),S=r.useRef(!1),[C,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(hu,w),()=>e.removeEventListener(hu,w)}),[w]),t(ku,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(cu.div,{tabIndex:b||0===C?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:Zc(e.onMouseDown,(()=>{S.current=!0})),onFocus:Zc(e.onFocus,(e=>{const t=!S.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(hu,mu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Nu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}S.current=!1})),onBlur:Zc(e.onBlur,(()=>x(!1)))})})})),Tu="RovingFocusGroupItem",Au=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=su(),d=l||u,f=Su(Tu,o),p=f.currentTabStopId===d,h=vu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=f;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(yu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(cu.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i?f.onItemFocus(d):e.preventDefault()})),onFocus:Zc(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:Zc(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ou[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=f.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Nu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})}));Au.displayName=Tu;var Ou={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Nu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Pu=Cu,Iu=Au;var Du=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Lu(o.current);a.current="mounted"===s?e:"none"}),[s]),iu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Lu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),iu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Lu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Lu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=eu(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Lu(e){return e?.animationName||"none"}Du.displayName="Presence";var _u="Tabs",[Ru,ju]=Xc(_u,[wu]),Mu=wu(),[Fu,qu]=Ru(_u),zu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=pu(s),[f,p]=du({prop:o,onChange:i,defaultProp:a??"",caller:_u});return t(Fu,{scope:r,baseId:su(),value:f,onValueChange:p,orientation:l,dir:d,activationMode:c,children:t(cu.div,{dir:d,"data-orientation":l,...u,ref:n})})}));zu.displayName=_u;var Bu="TabsList",Uu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=qu(Bu,r),l=Mu(r);return t(Pu,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(cu.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));Uu.displayName=Bu;var Hu="TabsTrigger",Vu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=qu(Hu,r),s=Mu(r),c=$u(l.baseId,o),u=Yu(l.baseId,o),d=o===l.value;return t(Iu,{asChild:!0,...s,focusable:!i,active:d,children:t(cu.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:Zc(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:Zc(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:Zc(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Vu.displayName=Hu;var Wu="TabsContent";function $u(e,t){return`${e}-trigger-${t}`}function Yu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=qu(Wu,o),u=$u(c.baseId,i),d=Yu(c.baseId,i),f=i===c.value,p=r.useRef(f);return r.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Du,{present:a||f,children:({present:r})=>t(cu.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&l})})})).displayName=Wu;var Gu=zu,Zu=Uu,Xu=Vu;function Ku(e){var n=e.className,r=Sn(e,["className"]);return t(Gu,kn({"data-slot":"tabs",style:kn({display:"flex",flexDirection:"column",gap:"8px"},n?{className:n}:{})},r))}function Qu(e){var n=e.className,r=Sn(e,["className"]);return t(Zu,kn({"data-slot":"tabs-list",style:kn({display:"flex",gap:"4px",backgroundColor:"#e8e8e8",padding:"4px",borderRadius:"8px"},n?{className:n}:{})},r))}function Ju(r){r.className;var o=Sn(r,["className"]);return e(n,{children:[t(Xu,kn({"data-slot":"tabs-trigger",style:{flex:1,userSelect:"none",borderRadius:"6px",padding:"8px 8px",fontSize:"12px",fontWeight:"600",color:"#666",transition:"all 0.15s",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",cursor:"pointer",border:"none",outline:"none"}},o)),t("style",{children:'\n [data-slot="tabs-trigger"][data-state="active"] {\n background-color: #ffffff;\n color: #1a1a1a;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n }\n [data-slot="tabs-trigger"]:not([data-state="active"]):hover {\n background-color: rgba(255, 255, 255, 0.5);\n }\n '})]})}var ed={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities for the selected context",query:"Show me all critical vulnerabilities for the selected context",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Catalog list",description:"Show me the catalogs",query:"Show me the catalogs",category:"compliance",icon:"📋"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"}]}},td=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.setSend,a=n.quickActions,l=n.className,s=void 0===l?"":l,c=ed[o],u=a||c.quickActions;return e("div",{className:"security-assistant ".concat(s),style:{"--primary-color":c.theme.primary,"--background-color":c.theme.background,"--border-color":c.theme.border,"--card-hover-color":c.theme.cardHover,maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:c.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a"},children:c.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:c.subtitle})]}),t("div",{className:"quick-actions-grid",children:u.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query),i(!0)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 12px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 20px;\n margin-bottom: 12px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},nd=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},rd=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],f=s[1],h=o.useState({}),m=h[0],g=h[1],y=/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\b/g,v=o.useState("devops"),w=v[0],k=v[1],S=o.useState(!1),C=S[0],E=S[1],T=i(!0),A=T[0],O=T[1],N=i(!1),P=N[0],I=N[1],D=i([]),L=D[0],_=D[1],R=i(!1),j=R[0],M=R[1],F=i(!1),q=F[0],z=F[1],B=i(null);B[0];var U=B[1],H=i([]),V=H[0],W=H[1],$=i([]);$[0];var Y=$[1],G=i({}),Z=G[0];G[1];var X=i("");X[0];var K=X[1],Q=i([]),J=Q[0],ee=Q[1],te=i(!1),ne=te[0],re=te[1],oe=i((new Date).toISOString().split("T")[0]),ie=oe[0],ae=oe[1],le=u(null),se=i(""),ce=se[0],ue=se[1],de=i(null),fe=de[0],pe=de[1],he=i(!1),me=he[0],ge=he[1],ye=u(null),ve=i([]),be=ve[0],xe=ve[1],we=i([]),ke=we[0],Se=we[1],Ce=i(null),Ee=Ce[0],Te=Ce[1],Ae=i(!1),Oe=Ae[0],Ne=Ae[1],Pe=i(!1),Ie=Pe[0],De=Pe[1],Le=Dn(),_e=Le.getTaskID,Re=Le.setIsAgent,je=Le.setConverse,Me=Le.isAgent,Fe=Le.getTaskAgent,qe=Le.converse,ze=Le.prompts,Be=Le.setPrompts,Ue=Le.isLoading,He=Le.isResize;Le.setIsResize;var Ve=i(""),We=Ve[0],$e=Ve[1],Ye=i(!0),Ge=Ye[0],Ze=Ye[1],Xe=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===w?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Name",options:[],disabled:!1}]),Ke=Xe[0],Qe=Xe[1];function Je(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var et=Jl("(max-width: 640px)"),tt=Jl("(max-width: 1024px)");Jl("(min-width: 1024px)");var nt=Jl("(max-width: 640px)"),rt=p((function(){return Cn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),ee(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]);d((function(){P&&at()}),[P]);var ot=p((function(){return Cn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),_((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),Nn({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),_([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Xl.get(Yl)&&(rt(),ot())}),[rt,ot]),d((function(){var e=b.get("access");if(e){var t=Je(e);if(null==t?void 0:t.oidc_acs){var n=Je(t.oidc_acs);(null==n?void 0:n.name)&&K(n.name)}}}),[]),d((function(){Qe((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:A?[{label:"Loading...",value:""}]:Array.isArray(L)?L.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[L,A]);var it="security"===w?Ke.filter((function(e){return"Project"===e.label||"Application"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Name"===e.label})):Ke.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),at=function(){var e,t,n,r,o,i,a,l,s,u,d,p,h,g,y,v;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var b=x();z(!0),Be((function(e){return Tn(Tn([],e,!0),[{id:b,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==L?void 0:L.filter((function(e){return(null==e?void 0:e.uuid)===m.Project})))||void 0===t?void 0:t[0],S={};if("devops"===w||"sre"===w){var C=null===(n=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=Ke.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===m.Environment})))||void 0===i?void 0:i[0];S={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==m?void 0:m.Application)||"",env_uuid:(null==m?void 0:m.Environment)||"",action_type:(null==m?void 0:m["Action Type"])||"",context:"devops"===w?"devops":"sreops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==C?void 0:C.name)||"",application_action_type:(null===(l=null===(a=null==m?void 0:m["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==m?void 0:m["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===m.Category})))||void 0===u?void 0:u[0],A=null===(g=null===(h=null===(p=null===(d=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Category)})))||void 0===d?void 0:d[0])||void 0===p?void 0:p.tools)||void 0===h?void 0:h.filter((function(e){return(null==e?void 0:e.value)===(null==m?void 0:m.Tool)})))||void 0===g?void 0:g[0],O=(C=null===(y=null==V?void 0:V.filter((function(e){return(null==e?void 0:e.uuid)===m.Application})))||void 0===y?void 0:y[0],null===(v=null==ke?void 0:ke.filter((function(e){return(null==e?void 0:e.uuid)===m["Scan Name"]})))||void 0===v?void 0:v[0]);S={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==m?void 0:m["Scan Name"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==m?void 0:m.Application)||"",category:(null==m?void 0:m.Category)||"",tool:(null==m?void 0:m.Tool)||"",context:"secops",conversation_title:ce,conversation_uuid:fe,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==C?void 0:C.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==A?void 0:A.name)||"",scan_name:(null==O?void 0:O.scan_name)||""}}}f(""),I(!1),Me?(console.log(qe),Fe(b,kn(kn({},S),{agent_mode:Me,agent_trans_uuid:qe}),f,ee,ue,pe,ce)):_e(b,S,f,ee,ue,pe,ce)}else Nn({severity:"error",summary:"Error",detail:"Please enter a message"})},lt=function(e){return Cn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=i.sent(),console.log("Applications:",null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.data),W((null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.data)||[]),Qe((function(e){return e.map((function(e){var n,r;return"Application"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return n=i.sent(),console.error("Error fetching applications:",n),Nn({severity:"error",summary:"Error Fetching Applications",detail:n.message||"Failed to load applications. Please try again.",life:5e3}),W([]),Qe((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},st=function(e,t,n){return Cn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),Y((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Qe((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),Nn({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),Y([]),Qe((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},ct=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Qe((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===w||"sre"===w||"security"===w)||"Category"===e.label&&"security"===w||"Metric Type"===e.label&&"sre"===w||"Time Range"===e.label&&"sre"===w||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Name":null,Category:null,Tool:null})})),"devops"===w||"sre"===w?lt(t):(lt(t),n=t,Cn(void 0,void 0,void 0,(function(){var e,t,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=o.sent(),xe((null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.categories)||[]),Qe((function(t){return t.map((function(t){var n,r;return"Category"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):t}))})),[3,4];case 2:return t=o.sent(),console.error("Error fetching category:",t),Nn({severity:"error",summary:"Error Fetching Category",detail:t.message||"Failed to load category. Please try again.",life:5e3}),W([]),Qe((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))),U(null)),"Application"===e&&null!==t&&(Qe((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===w?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===w?"sre":null})})),"sre"===w&&(Qe((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),st(t,m.Project,"sre"))),"Category"===e&&null!==t){var o=be.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Qe((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Name"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Name":null})}))}"Tool"===e&&null!==t&&(Qe((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Cn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:m.Category,tool:r,page:1,"count per page":200,project_id:m.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),Se(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Qe((function(e){return e.map((function(e){var t,r;return"Scan Name"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching Scan Name:",o),Nn({severity:"error",summary:"Error Fetching Scan Name",detail:o.message||"Failed to load Scan Name. Please try again.",life:5e3}),Qe((function(e){return e.map((function(e){return"Scan Name"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),U(null)),"Action Type"===e&&null!==t&&(Qe((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),st(m.Application,m.Project,t)),"Environment"===e&&null!==t&&U(null==m?void 0:m["Action Type"]),"Scan Name"===e&&null!==t&&U(null)}};"devops"!==w&&"sre"!==w||m.Project&&m.Application&&m.Environment&&m["Action Type"];var ut=function(e,t,n,r){return Cn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=f.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),ae(null==c?void 0:c.toISOString())),n?Be(i):0==(null==i?void 0:i.length)?console.log("skip"):Be((function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])})),i.length>0?re(!0):re(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),ge(!1),[3,4];case 2:return u=f.sent(),ge(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},dt=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},ft=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(On,{}),A&&t(nd,{}),e("div",{style:{display:"flex",flex:1,flexDirection:et?"column":"row",overflow:"hidden",height:"calc(100vh - 180px)"},children:[He&&e("aside",{style:{height:"calc(100vh - 40px)",width:tt?"100%":Ge?"300px":"0px",backgroundColor:Ge?"#f5f5f5":"transparent",color:"black",padding:Ge?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:nt?"flex":"none"},onClick:function(){return E((function(e){return!e}))},children:[t(C?Bn:zn,{style:{width:"16px",height:"16px"}}),C?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:tt?C?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 120px)",maxWidth:Ge?"300px":"10px"},children:e(Gc,{isExpanded:Ge,setIsExpanded:Ze,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(Ku,{value:w,onValueChange:function(e){ue(""),pe(null),ae(dt()),Be([]),z(!1),je(""),Re(!1),k(e),g({}),U(null),Qe((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Name"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(Qu,{children:[e(Ju,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(Ju,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(Ju,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{style:{paddingBottom:"0.5rem",borderBottom:"1px solid rgb(229, 231, 235)"},children:e("button",{onClick:function(){z(!1),ue(""),pe(null),je(""),Re(!1),ae(dt()),Be([])},title:"New Chat",className:"new-chat-btn",style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",gap:"6px",backgroundColor:"#7761F3",color:"white",border:"none",borderRadius:"0.375rem",fontWeight:"500",fontSize:"13px",cursor:"pointer",transition:"all 0.15s ease-in-out",padding:"10px 16px",margin:"16px 0 12px 0"},children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px",paddingTop:"0.5rem",color:"#666"},children:[t("div",{className:"filters-title",style:{fontSize:"11px",fontWeight:"600",color:"#666",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Contextual Filters"}),it.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label",style:{fontSize:"0.75rem",fontWeight:"600",color:"rgb(55, 65, 81)",marginBottom:"0.25rem"},children:n.label}),o?e("select",{disabled:n.disabled,value:m[n.label]||"",onChange:function(e){return ct(n.label,e.target.value)},className:"filter-select",style:{width:"100%",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.875rem",padding:"0.5rem",outline:"none"},onFocus:function(e){var t=e.target;t.style.boxShadow="0 0 0 2px #7761F3",t.style.borderColor="#7761F3"},onBlur:function(e){var t=e.target;t.style.boxShadow="none",t.style.borderColor="rgb(209, 213, 219)"},onMouseEnter:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="#7761F3")},onMouseLeave:function(e){var t=e.target;document.activeElement!==t&&(t.style.borderColor="rgb(209, 213, 219)")},children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags",style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",maxHeight:"5rem",overflowY:"auto"},children:"Environment"===n.label&&"buildd"===String((null==m?void 0:m["Action Type"])||"").toLowerCase()?t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==m?void 0:m[n.label])===e.value;return t("div",{onClick:function(){ct(n.label,o?null:e.value)},className:"filter-tag",style:{cursor:"pointer",borderRadius:"9999px",padding:"0.25rem 0.75rem",maxHeight:"2.5rem",fontSize:"0.75rem",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"500",border:"1px solid ".concat(o?"#7761F3":"rgb(209, 213, 219)"),transition:"all 0.15s ease-in-out",backgroundColor:o?"#7761F3":"rgb(243, 244, 246)",color:o?"white":"rgb(55, 65, 81)"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="rgb(229, 231, 235)")},onMouseLeave:function(e){o||(e.currentTarget.style.backgroundColor="rgb(243, 244, 246)")},children:e.label},r)})):t("div",{style:{fontSize:"0.75rem",color:"rgb(107, 114, 128)"},children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),U(null)},style:{width:"100%",padding:"0.375rem",backgroundColor:"transparent",border:"1px solid rgb(209, 213, 219)",borderRadius:"0.375rem",fontSize:"0.75rem",color:"rgb(75, 85, 99)",cursor:"pointer",marginTop:"0.5rem",transition:"all 0.15s ease-in-out"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="rgb(249, 250, 251)"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},children:"Clear All Filters"})]}),(null==J?void 0:J.length)>0&&t("div",{style:{marginTop:"10px",borderTop:"1px solid rgb(229, 231, 235)"},children:(null==J?void 0:J.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),J.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){z(!0),Be([]),ge(!0),ue(null==n?void 0:n.title),pe(null==n?void 0:n.conversation_uuid),je(""),Re(!1),ae((null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt()),ut(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?ft(null==n?void 0:n.latest_date_time_epoch):dt(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(ts,{onEdit:function(){De(!0),$e(null==n?void 0:n.title),Te(n),ee(J.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Ne(!0),Te(n),ee(J.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[He?e(n,{children:[t("button",{title:Ge?"Hide Sidebar":"Show Sidebar",onClick:function(){return Ze(!Ge)},"aria-label":Ge?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(Ge?Yn:Vn,{style:{width:"0.75rem",height:"0.75rem",color:"rgb(75, 85, 99)",fontWeight:"bold"}})}),e("div",{style:{display:"flex",flexDirection:tt?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666",minWidth:"110px"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:nt?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===w&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===w&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===w&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(m).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===w&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;if("security"===w&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===w&&("Category"===r||"Tool"===r||"Scan Name"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=Ke.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=L.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Yn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return ct(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:He?t("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto",background:"#f8fafc",borderRadius:"8px",fontFamily:"'Inter', -apple-system, system-ui, sans-serif"},children:("security"==w||"devops"==w)&&e(n,{children:[t("span",{style:{fontSize:"12px",fontWeight:600,color:"#64748b",minWidth:"75px"},children:"Agent Mode:"}),t("div",{style:{width:"12px",height:"12px",borderRadius:"50%",position:"relative",cursor:"pointer",background:qe?"#10b981":Me?"#f59e0b":"#e40101ff",boxShadow:qe?"0 0 0 3px #25ffb6ff":Me?"0 0 0 3px #f6d499ff":"0 0 0 3px #fda094ff"},onMouseEnter:function(){},onMouseLeave:function(){},children:t("div",{style:{position:"absolute",top:"-80px",left:"50%",transform:"translateX(-50%)",background:"#1e293b",color:"white",padding:"12px 16px",borderRadius:"8px",fontSize:"12px",whiteSpace:"nowrap",opacity:0,pointerEvents:"none",transition:"opacity 200ms ease",zIndex:1e3},children:"All AI agents enabled and operational"})})]})}):t("button",{title:"New Chat",onClick:function(){ue(""),pe(null),ae(dt()),Be([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==m?void 0:m["Scan Name"])&&"security"===w&&He||He)&&t(n,{children:!q&&t(td,{setMessage:f,onSendMessage:at,type:w,setSend:I})}),q&&e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column",maxHeight:"calc(100vh - 265px)",minHeight:"calc(100vh - 265px)"},ref:le,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&ne&&(ge(!0),ut(ce,ie,!1,fe))}(e)},children:[me&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),ze.map((function(n,r){return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-end"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ebd8ff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center",justifyContent:"center",maxWidth:"100%",backgroundColor:"#ebd8ff"},children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question.replace(y,"")})," "]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),t("div",{style:{display:"flex",justifyContent:"flex-start",marginTop:"1rem"},children:t("div",{style:{padding:"20px",paddingTop:"15px",marginTop:"5px",minWidth:"60%",maxWidth:"90%",borderRadius:"20px",borderTopRightRadius:"0px",backgroundColor:"#efefef",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(Hn,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Sn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Sn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=e.children,r=Sn(e,["node","children"]);return((null==n?void 0:n.toString())||"").includes("UUID")?null:t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},r,{children:n}))},td:function(e){e.node;var n=e.children,r=Sn(e,["node","children"]),o=function(e){var t;return"string"==typeof e?e:(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)?o(e.props.children):Array.isArray(e)?e.map((function(e){return o(e)})).join(""):""},i=o(n);if(function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(null==e?void 0:e.trim())}(i))return t("td",kn({style:{display:"none",padding:0,margin:0,width:0,height:0,overflow:"hidden",border:"none"},"data-uuid":i},r));var a=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},a,{children:n}))},tr:function(e){e.node;var n=e.children,r=Sn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=Array.from(t.querySelectorAll("td")),r="",o=[];n.forEach((function(e){var t=e.getAttribute("data-uuid");t?o.push(t):"none"!==e.style.display&&(r+=(e.textContent||"").trim()+" ")})),console.log("Row data:",r.trim()),console.log("UUIDs in row:",o);var i=r.trim();o.length>0&&(i+=" ",i+="".concat(o)),f(i),I(!0)}},r);return t("tr",kn({},o,{children:n}))},code:function(e){e.node;var n=e.className,r=e.children,o=Sn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Wl,{remarkPlugins:[Yc],components:{table:function(e){e.node;var n=Sn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Sn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Sn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=e.children,r=Sn(e,["node","children"]),o=kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"},onClick:function(e){var t=e.currentTarget.parentElement;if(t){var n=Array.from(t.children).indexOf(e.currentTarget),r=t.closest("table");if(r){var o=r.querySelector("tr:first-child");if(o){var i=Array.from(o.children)[n];if(i){var a=i.textContent||"Column ".concat(n+1),l=e.currentTarget.textContent||"";console.log("".concat(a,": ").concat(l))}}}}}},r);return t("td",kn({},o,{children:n}))},tr:function(e){e.node;var n=e.children,r=Sn(e,["node","children"]),o=kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#f0f9ff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#f9fafb"},onClick:function(e){var t=e.currentTarget,n=t.closest("table");if(n){var r=n.querySelector("tr:first-child");if(r){var o=Array.from(r.children).map((function(e){return e.textContent||""})),i=Array.from(t.children),a="";i.forEach((function(e,t){o[t]||"Column ".concat(t+1),a+=e.textContent||""})),f(a),I(!0),console.log("Row clicked:",a)}}}},r);return t("tr",kn({},o,{children:n}))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),t("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})})]})})})]},r)})),ze.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container",style:{display:"flex",flexDirection:"column",width:He?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box",id:"messageInput",rows:1,value:c,disabled:Ue,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){f(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),at())},style:{marginTop:"0.25rem",marginBottom:"0.25rem",flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:ye,type:"file",style:{display:"none"},onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:Ue?"not-allowed":"pointer",opacity:Ue?.5:1,marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return at()},disabled:Ue||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),j&&t(Ql,{title:"Authorization",visible:j,setVisible:M,onSubmit:function(e){!function(e){Cn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==Z?void 0:Z.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(M(!1),Nn({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):Nn({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),Nn({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Oe&&t(es,{title:"Are you sure?",visible:Oe,setVisible:Ne,onSubmit:function(){var e;Ne(!1),e=null==Ee?void 0:Ee.conversation_uuid,Cn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(ee(J.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),Nn({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",fe),console.log("prompts---",ze),Ne(!1),Te(null),e===fe&&(pe(null),ae(dt()),Be([]),ue(""))):Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),Nn({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Ne(!1),[7];case 4:return[2]}}))}))},selectedConversation:Ee}),Ie&&t(ns,{title:"Rename chat",visible:Ie,setVisible:De,onSubmit:function(){var e,t,n;De(!1),We&&(null===(e=null==We?void 0:We.trim())||void 0===e?void 0:e.length)>0?(t=null==Ee?void 0:Ee.conversation_uuid,n=We,Cn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(ee((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),De(!1),Te(null),Nn({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),Nn({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):Nn({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:Ee,tempTitle:We,setTempTitle:$e})]})},od=function(n){var r=n.app_type,o=n.title,i=n.placeholder;n.base_url,n.access_token_key,n.refresh_token_key,n.token_refresh_route;var a=n.aiIconSrc,l=void 0===a?"/images/ai-icon.svg":a;n.expandedStyle,n.dialogStyle,n.position;var s=n.HTTP,c=Dn(),u=c.opneChatModal,d=c.setOpenChatModal;c.isResize;return e("div",{style:{position:"relative"},children:[u&&t("div",{style:{},children:t(rd,{app_type:r,title:o,placeholder:i,HTTP:s,closeChat:function(){d(!1)}})}),!u&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:l,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){d(!u)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},id=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Kl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(In,{HTTP:c,children:t(od,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{id as CindyChatBot};
|
|
40
40
|
//# sourceMappingURL=index.esm.js.map
|