2&&void 0!==arguments[2]?arguments[2]:1;Nd(n<=og,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=function(e){var t=rg.exec(e);if(!t)return[,];var n=(0,v.Z)(t,3);return[n[1],n[2]]}(e),o=(0,v.Z)(r,2),a=o[0],i=o[1];if(a){var s=window.getComputedStyle(t).getPropertyValue(a);if(s){var u=s.trim();return _h(u)?parseFloat(u):u}return Uc(i)?ag(i,t,n+1):i}}var ig=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sg=function(e){return ig.has(e)},ug=function(e){return e===Hc||e===nf},lg=function(e,t){return parseFloat(e.split(", ")[t])},cg=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return lg(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?lg(i[1],e):0}},fg=new Set(["x","y","z"]),dg=Rc.filter((function(e){return!fg.has(e)}));var pg={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:cg(4,13),y:cg(5,14)};pg.translateX=pg.x,pg.translateY=pg.y;var hg=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=f({},t),r=f({},r);var o=Object.keys(t).filter(sg),a=[],i=!1,s=[];if(o.forEach((function(o){var u=e.getValue(o);if(e.hasValue(o)){var l,c=n[o],f=Fh(c),d=t[o];if(Df(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=Fh(c);for(var m=h;m=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=pg[e](r,a)})),t.render();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);r&&r.jump(s[n]),e[n]=pg[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=(0,v.Z)(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.render(),lc&&null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}};function mg(e,t,n,r){return function(e){return Object.keys(e).some(sg)}(t)?hg(e,t,n,r):{target:t,transitionEnd:r}}var vg=function(e,t,n,r){var o=function(e,t,n){var r=Object.assign({},(ng(t),t)),o=e.current;if(!(o instanceof Element))return{target:r,transitionEnd:n};for(var a in n&&(n=f({},n)),e.values.forEach((function(e){var t=e.get();if(Uc(t)){var n=ag(t,o);n&&e.set(n)}})),r){var i=r[a];if(Uc(i)){var s=ag(i,o);s&&(r[a]=s,n||(n={}),void 0===n[a]&&(n[a]=i))}}return{target:r,transitionEnd:n}}(e,t,r);return mg(e,t=o.target,n,r=o.transitionEnd)},gg={current:null},yg={current:!1};var bg=new WeakMap,kg=["willChange"],wg=["children"],xg=Object.keys(xc),Sg=xg.length,Tg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Eg=vc.length,Cg=function(){function e(t){var n=this,r=t.parent,o=t.props,a=t.presenceContext,i=t.reducedMotionConfig,s=t.visualState,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,b.Z)(this,e),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return Wf.render(n.render,!1,!0)};var c=s.latestValues,d=s.renderState;this.latestValues=c,this.baseTarget=f({},c),this.initialValues=o.initial?f({},c):{},this.renderState=d,this.parent=r,this.props=o,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.isControllingVariants=gc(o),this.isVariantNode=yc(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(r&&r.current);var p=this.scrapeMotionValuesFromProps(o,{}),h=p.willChange,m=u(p,kg);for(var v in m){var g=m[v];void 0!==c[v]&&Lc(g)&&(g.set(c[v],!1),Ch(h)&&h.add(v))}}return(0,k.Z)(e,[{key:"scrapeMotionValuesFromProps",value:function(e,t){return{}}},{key:"mount",value:function(e){var t=this;this.current=e,bg.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((function(e,n){return t.bindToMotionValue(n,e)})),yg.current||function(){if(yg.current=!0,lc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return gg.current=e.matches};e.addListener(t),t()}else gg.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||gg.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){for(var e in bg.delete(this.current),this.projection&&this.projection.unmount(),Jf(this.notifyUpdate),Jf(this.render),this.valueSubscriptions.forEach((function(e){return e()})),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(var t in this.features)this.features[t].unmount();this.current=null}},{key:"bindToMotionValue",value:function(e,t){var n=this,r=Dc.has(e),o=t.on("change",(function(t){n.latestValues[e]=t,n.props.onUpdate&&Wf.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(function(){o(),a()}))}},{key:"sortNodePosition",value:function(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}},{key:"loadFeatures",value:function(e,t,n,r){for(var o,a,i=this,s=(e.children,u(e,wg)),l=0;l1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}},{key:"update",value:function(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){var e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}for(var t={},n=0;n1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),o=(0,R.Z)(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;a in r&&delete r[a]}}catch(i){o.e(i)}finally{o.f()}return r}(I,["role","id"]):I,P=function(e,t){var n,r={},o=(0,R.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;a in e&&(r[a]=e[a])}}catch(i){o.e(i)}finally{o.f()}return r}(I,["role","id"]);return c?(0,g.jsxs)(g.Fragment,{children:[E,(0,g.jsx)(Ug,{children:C.isOpen&&(0,g.jsx)(Ql,f(f({},v),{},{children:(0,g.jsx)(Is.div,f(f({},C.getTooltipPositionerProps()),{},{__css:{zIndex:a.zIndex,pointerEvents:"none"},children:(0,g.jsxs)(qg,f(f(f({variants:Bs,initial:"exit",animate:"enter",exit:"exit"},w),N),{},{__css:a,children:[c,O&&(0,g.jsx)(Is.span,f(f({srOnly:!0},P),{},{children:p})),h&&(0,g.jsx)(Is.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,g.jsx)(Is.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:a.bg}})})]}))}))}))})]}):(0,g.jsx)(g.Fragment,{children:l})}));Hg.displayName="Tooltip";var Wg=["as","viewBox","color","focusable","children","className","__css"],Jg={path:(0,g.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,g.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,g.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,g.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Gg=Ns((function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,c=e.className,d=e.__css,p=u(e,Wg),h=Lr("chakra-icon",c),m=oc("Icon",e),v={ref:t,focusable:s,className:h,__css:f(f({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},d),m)},y=null!=r?r:Jg.viewBox;if(n&&"string"!==typeof n)return(0,g.jsx)(Is.svg,f(f({as:n},v),p));var b=null!=l?l:Jg.path;return(0,g.jsx)(Is.svg,f(f(f({verticalAlign:"middle",viewBox:y},v),p),{},{children:b}))}));Gg.displayName="Icon";function Yg(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,o=e.d,a=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,u=r.Children.toArray(e.path),l=Ns((function(e,t){return(0,g.jsx)(Gg,f(f(f({ref:t,viewBox:n},s),e),{},{children:u.length?u:(0,g.jsx)("path",{fill:"currentColor",d:o})}))}));return l.displayName=a,l}var Xg=Yg({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),$g=Yg({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Kg=n(6854),Qg=(Kg.domToReact,Kg.htmlToDOM,Kg.attributesToProps,Kg.Comment,Kg.Element,Kg.ProcessingInstruction,Kg.Text,Kg);function ey(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,t=void 0!==e&&e,n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}var ty=ey({onlyFirst:!0});var ny=ey();function ry(e){if("string"!==typeof e)throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(ny,"")}var oy=n(6998),ay=["timeout"];function iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.useState)(!1),o=(0,v.Z)(n,2),a=o[0],i=o[1],s=(0,r.useState)(e),l=(0,v.Z)(s,2),c=l[0],f=l[1];(0,r.useEffect)((function(){return f(e)}),[e]);var d="number"===typeof t?{timeout:t}:t,p=d.timeout,h=void 0===p?1500:p,m=u(d,ay),g=(0,r.useCallback)((function(){var e=oy(c,m);i(e)}),[c,m]);return(0,r.useEffect)((function(){var e=null;return a&&(e=window.setTimeout((function(){i(!1)}),h)),function(){e&&window.clearTimeout(e)}}),[h,a]),{value:c,setValue:f,onCopy:g,hasCopied:a}}var sy,uy=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.elementName?n.elementName:"a",o=n.fileType?n.fileType:"text/plain";console.log(t,o,r);var a=new Blob([e],{type:o}),i=document.createElement(r);i.download=t,i.innerHTML="Download File",window.webkitURL?i.href=window.webkitURL.createObjectURL(a):(i.href=window.URL.createObjectURL(a),i.onclick=function(e){e.target&&document.body.removeChild(e.target)},i.style.display="none",document.body.appendChild(i)),i.click(),window.webkitURL?window.webkitURL.revokeObjectURL(i.href):window.URL.revokeObjectURL(i.href)},ly=["children"],cy=["behavior","align"],fy=["done","behavior","align","calculateViewLocation"],dy=["listState","topItemsIndexes"],py=["style","children"],hy=["style","children"],my=0,vy=1,gy=2,yy=4;function by(e,t){return function(n){return e(t(n))}}function ky(e,t){return t(e)}function wy(e,t){return function(n){return e(t,n)}}function xy(e,t){return function(){return e(t)}}function Sy(e,t){return t(e),e}function Ty(){for(var e=arguments.length,t=new Array(e),n=0;n-1&&e.splice(t,1)};case my:return void e.slice().forEach((function(e){e(n)}));default:throw new Error("unrecognized action ".concat(t))}}}function Ly(e){var t=e,n=Fy();return function(e,r){switch(e){case vy:r(t);break;case my:t=r;break;case yy:return t}return n(e,r)}}function My(e){return Sy(Fy(),(function(t){return Ry(e,t)}))}function By(e,t){return Sy(Ly(t),(function(t){return Ry(e,t)}))}function zy(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:Uy;return function(n){return function(r){t(e,r)||(e=r,n(r))}}}function qy(e){return function(t){return function(n){e(n)&&t(n)}}}function Hy(e){return function(t){return by(t,e)}}function Wy(e){return function(t){return function(){return t(e)}}}function Jy(e,t){return function(n){return function(r){return n(t=e(t,r))}}}function Gy(e){return function(t){return function(n){e>0?e--:t(n)}}}function Yy(e){var t,n=null;return function(r){return function(o){n=o,t||(t=setTimeout((function(){t=void 0,r(n)}),e))}}}function Xy(e){var t,n;return function(r){return function(o){t=o,n&&clearTimeout(n),n=setTimeout((function(){r(t)}),e)}}}function $y(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Uy))}function eb(){for(var e=Fy(),t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:[],n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{singleton:!0}).singleton;return{id:nb(),constructor:e,dependencies:t,singleton:n}}var nb=function(){return Symbol()};var rb="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function ob(e,t,n){var o=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),i=Object.keys(t.methods||{}),s=Object.keys(t.events||{}),l=r.createContext({});function c(e,n){e.propsReady&&Py(e.propsReady,!1);for(var r=0,i=o;r2&&void 0!==arguments[2]?arguments[2]:1;o>=(null!=(r=("undefined"===typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:jy(e))&&console[sb[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}));return{log:t,logLevel:e}}),[],{singleton:!0});function lb(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.useRef(null),o=function(e){};if("undefined"!==typeof ResizeObserver){var a=r.useMemo((function(){return new ResizeObserver((function(t){var n=t[0].target;null!==n.offsetParent&&e(n)}))}),[e]);o=function(e){e&&t?(a.observe(e),n.current=e):(n.current&&a.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:o}}function cb(e){return lb(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1]).callbackRef}function fb(e,t,n,o,a,i,s){var u=r.useCallback((function(n){for(var r=function(e,t,n,r){var o=e.length;if(0===o)return null;for(var a=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:Iy,a=arguments.length>4?arguments[4]:void 0,i=r.useRef(null),s=r.useRef(null),u=r.useRef(null),l=r.useCallback((function(n){var r=n.target,o=r===window||r===document,a=o?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,i=o?document.documentElement.scrollHeight:r.scrollHeight,l=o?window.innerHeight:r.offsetHeight,c=function(){e({scrollTop:Math.max(a,0),scrollHeight:i,viewportHeight:l})};n.suppressFlushSync?c():Vl.flushSync(c),null!==s.current&&(a===s.current||a<=0||a===i-l)&&(s.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))}),[e,t]);return r.useEffect((function(){var e=a||i.current;return o(a||i.current),l({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",l,{passive:!0}),function(){o(null),e.removeEventListener("scroll",l)}}),[i,l,n,o,a]),{scrollerRef:i,scrollByCallback:function(e){i.current.scrollBy(e)},scrollToCallback:function(n){var r=i.current;if(r&&(!("offsetHeight"in r)||0!==r.offsetHeight)){var o,a,l,c="smooth"===n.behavior;r===window?(a=Math.max(db(document.documentElement,"height"),document.documentElement.scrollHeight),o=window.innerHeight,l=document.documentElement.scrollTop):(a=r.scrollHeight,o=db(r,"height"),l=r.scrollTop);var f=a-o;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),pb(o,a)||n.top===l)return e({scrollTop:l,scrollHeight:a,viewportHeight:o}),void(c&&t(!0));c?(s.current=n.top,u.current&&clearTimeout(u.current),u.current=setTimeout((function(){u.current=null,s.current=null,t(!0)}),1e3)):s.current=null,r.scrollTo(n)}}}}var mb=tb((function(){var e=Fy(),t=Fy(),n=Ly(0),r=Fy(),o=Ly(0),a=Fy(),i=Fy(),s=Ly(0),u=Ly(0),l=Ly(0),c=Ly(0),f=Fy(),d=Fy(),p=Ly(!1);return Ry(Zy(e,Hy((function(e){return e.scrollTop}))),t),Ry(Zy(e,Hy((function(e){return e.scrollHeight}))),i),Ry(t,o),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:u,fixedFooterHeight:l,footerHeight:c,scrollHeight:i,smoothScrollTargetReached:r,scrollTo:f,scrollBy:d,statefulScrollTop:o,deviation:n,scrollingInProgress:p}}),[],{singleton:!0}),vb={lvl:0};function gb(e,t,n){return{k:e,v:t,lvl:n,l:arguments.length>3&&void 0!==arguments[3]?arguments[3]:vb,r:arguments.length>4&&void 0!==arguments[4]?arguments[4]:vb}}function yb(e){return e===vb}function bb(){return vb}function kb(e,t){if(yb(e))return vb;var n=e.k,r=e.l,o=e.r;if(t===n){if(yb(r))return o;if(yb(o))return r;var a=Cb(r),i=(0,v.Z)(a,2);return Pb(Ob(e,{k:i[0],v:i[1],l:_b(r)}))}return Pb(Ob(e,t2&&void 0!==arguments[2]?arguments[2]:"k";if(yb(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])t&&(s=s.concat(Tb(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(Tb(i,t,n))),s}function Eb(e){return yb(e)?[]:[].concat((0,i.Z)(Eb(e.l)),[{k:e.k,v:e.v}],(0,i.Z)(Eb(e.r)))}function Cb(e){return yb(e.r)?[e.k,e.v]:Cb(e.r)}function _b(e){return yb(e.r)?e.l:Pb(Ob(e,{r:_b(e.r)}))}function Ob(e,t){return gb(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function Ib(e){return yb(e)||e.lvl>e.r.lvl}function Nb(e){return Rb(Db(e))}function Pb(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(Ib(t))return Db(Ob(e,{lvl:r-1}));if(yb(t)||yb(t.r))throw new Error("Unexpected empty nodes");return Ob(t.r,{l:Ob(t,{r:t.r.l}),r:Ob(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(Ib(e))return Rb(Ob(e,{lvl:r-1}));if(yb(n)||yb(n.l))throw new Error("Unexpected empty nodes");var o=n.l,a=Ib(o)?n.lvl-1:n.lvl;return Ob(o,{l:Ob(e,{r:o.l,lvl:r-1}),r:Rb(Ob(n,{l:o.r,lvl:a})),lvl:o.lvl+1})}function Ab(e,t,n){if(yb(e))return[];var r=xb(e,t)[0];return jb(Tb(e,r,n),(function(e){return{index:e.k,value:e.v}}))}function jb(e,t){var n=e.length;if(0===n)return[];for(var r=t(e[0]),o=r.index,a=r.value,i=[],s=1;s3&&void 0!==arguments[3]?arguments[3]:0,o=e.length-1;r<=o;){var a=Math.floor((r+o)/2),i=n(e[a],t);if(0===i)return a;if(-1===i){if(o-r<2)return a-1;o=a-1}else{if(o===r)return a;r=a+1}}throw new Error("Failed binary finding record in array - ".concat(e.join(","),", searched for ").concat(t))}function Lb(e,t,n){return e[Fb(e,t,n)]}var Mb=tb((function(){return{recalcInProgress:Ly(!1)}}),[],{singleton:!0});function Bb(e){var t=e.size,n=e.startIndex,r=e.endIndex;return function(e){return e.start===n&&(e.end===r||e.end===1/0)&&e.value===t}}function zb(e,t){for(var n=0,r=0;n3&&void 0!==arguments[3]?arguments[3]:0;return r>0&&(t=Math.max(t,Lb(e,r,Zb).offset)),jb(function(e,t,n,r){var o=Fb(e,t,r),a=Fb(e,n,r,o);return e.slice(o,a+1)}(e,t,n,Ub),Vb)}function Hb(e,t,n,r){var o=e,a=0,i=0,s=0,u=0;if(0!==t){s=o[u=Fb(o,t-1,Zb)].offset;var l=xb(n,t-1);a=l[0],i=l[1],o.length&&o[u].size===xb(n,t)[1]&&(u-=1),o=o.slice(0,u+1)}else o=[];var c,f=(0,R.Z)(Ab(n,t,1/0));try{for(f.s();!(c=f.n()).done;){var d=c.value,p=d.start,h=d.value,m=p-a,v=m*i+s+m*r;o.push({offset:v,size:h,index:p}),a=p,s=v,i=h}}catch(g){f.e(g)}finally{f.f()}return{offsetTree:o,lastIndex:a,lastOffset:s,lastSize:i}}function Wb(e,t){var n=(0,v.Z)(t,4),r=n[0],o=n[1],a=n[2],i=n[3];r.length>0&&a("received item sizes",r,ib.DEBUG);var s=e.sizeTree,u=s,l=0;if(o.length>0&&yb(s)&&2===r.length){var c=r[0].size,f=r[1].size;u=o.reduce((function(e,t){return Sb(Sb(e,t,c),t+1,f)}),u)}else{var d=function(e,t){var n,r=yb(e)?0:1/0,o=(0,R.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,i=a.size,s=a.startIndex,u=a.endIndex;if(r=Math.min(r,s),yb(e))e=Sb(e,0,i);else{var l=Ab(e,s-1,u+1);if(!l.some(Bb(a))){var c,f=!1,d=!1,p=(0,R.Z)(l);try{for(p.s();!(c=p.n()).done;){var h=c.value,m=h.start,v=h.end,g=h.value;f?(u>=m||i===g)&&(e=kb(e,m)):(d=g!==i,f=!0),v>u&&u>=m&&g!==i&&(e=Sb(e,u+1,g))}}catch(y){p.e(y)}finally{p.f()}d&&(e=Sb(e,s,i))}}}}catch(y){o.e(y)}finally{o.f()}return[e,r]}(u,r),p=(0,v.Z)(d,2);u=p[0],l=p[1]}if(u===s)return e;var h=Hb(e.offsetTree,l,u,i),m=h.offsetTree,g=h.lastIndex,y=h.lastSize,b=h.lastOffset;return{sizeTree:u,offsetTree:m,lastIndex:g,lastOffset:b,lastSize:y,groupOffsetTree:o.reduce((function(e,t){return Sb(e,t,Jb(t,m,i))}),bb()),groupIndices:o}}function Jb(e,t,n){if(0===t.length)return 0;var r=Lb(t,e,Zb),o=r.offset,a=e-r.index,i=r.size*a+(a-1)*n+o;return i>0?i+n:i}function Gb(e,t,n){if(function(e){return"undefined"!==typeof e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var r=Yb("LAST"===e.index?n:e.index,t);return r=Math.max(0,r,Math.min(n,r))}function Yb(e,t){if(!Xb(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function Xb(e){return!yb(e.groupOffsetTree)}var $b={offsetHeight:"height",offsetWidth:"width"},Kb=tb((function(e){var t=(0,v.Z)(e,2),n=t[0].log,r=t[1].recalcInProgress,o=Fy(),a=Fy(),s=By(a,0),u=Fy(),l=Fy(),c=Ly(0),d=Ly([]),p=Ly(void 0),h=Ly(void 0),m=Ly((function(e,t){return db(e,$b[t])})),g=Ly(void 0),y=Ly(0),b={offsetTree:[],sizeTree:bb(),groupOffsetTree:bb(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},k=By(Zy(o,$y(d,n,y),Jy(Wb,b),Vy()),b),w=By(Zy(d,Vy(),Jy((function(e,t){return{prev:e.current,current:t}}),{prev:[],current:[]}),Hy((function(e){return e.prev}))),[]);Ry(Zy(d,qy((function(e){return e.length>0})),$y(k,y),Hy((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=t[2],a=n.reduce((function(e,t,n){return Sb(e,t,Jb(t,r.offsetTree,o)||n)}),bb());return f(f({},r),{},{groupIndices:n,groupOffsetTree:a})}))),k),Ry(Zy(a,$y(k),qy((function(e){var t=(0,v.Z)(e,2);return t[0]0)Py(r,!0),Py(u,e+zb(e,t));else if(e<0){var n=jy(w);n.length>0&&(e-=zb(-e,n)),Py(l,e)}})),Ny(Zy(c,$y(n)),(function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];n<0&&r("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},ib.ERROR)}));var T=My(u);Ry(Zy(u,$y(k),Hy((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1],o=r.groupIndices.length>0,a=[],s=r.lastSize;if(o){for(var u=wb(r.sizeTree,0),l=0,c=0;l0){if(yb(r.sizeTree))return r;for(var a=bb(),i=jy(w),s=0,u=0,l=0;s<-n;){l=i[u];var c=i[u+1]-l-1;u++,s+=c+1}if(a=Eb(r.sizeTree).reduce((function(e,t){var r=t.k,o=t.v;return Sb(e,Math.max(0,r+n),o)}),a),s!==-n)a=Sb(a,0,wb(r.sizeTree,l)),a=Sb(a,1,xb(r.sizeTree,1-n)[1]);return f(f({},r),{},{sizeTree:a},Hb(r.offsetTree,0,a,o))}var d=Eb(r.sizeTree).reduce((function(e,t){var r=t.k,o=t.v;return Sb(e,Math.max(0,r+n),o)}),bb());return f(f({},r),{},{sizeTree:d},Hb(r.offsetTree,0,d,o))}))),k),{data:g,totalCount:a,sizeRanges:o,groupIndices:d,defaultItemSize:h,fixedItemSize:p,unshiftWith:u,shiftWith:l,shiftWithOffset:E,beforeUnshiftWith:T,firstItemIndex:c,gap:y,sizes:k,listRefresh:S,statefulTotalCount:s,trackItemSizes:x,itemSize:m}}),Ty(ub,Mb),{singleton:!0}),Qb="undefined"!==typeof document&&"scrollBehavior"in document.documentElement.style;function ek(e){var t="number"===typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&Qb||(t.behavior="auto"),t.offset||(t.offset=0),t}var tk=tb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=n.sizes,o=n.totalCount,a=n.listRefresh,i=n.gap,s=t[1],u=s.scrollingInProgress,l=s.viewportHeight,c=s.scrollTo,f=s.smoothScrollTargetReached,d=s.headerHeight,p=s.footerHeight,h=s.fixedHeaderHeight,m=s.fixedFooterHeight,g=t[2].log,y=Fy(),b=Ly(0),k=null,w=null,x=null;function S(){k&&(k(),k=null),x&&(x(),x=null),w&&(clearTimeout(w),w=null),Py(u,!1)}return Ry(Zy(y,$y(r,l,o,b,d,p,g),$y(i,h,m),Hy((function(e){var t=(0,v.Z)(e,4),n=(0,v.Z)(t[0],8),r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=n[5],d=n[6],p=n[7],h=t[1],m=t[2],g=t[3],b=ek(r),T=b.align,E=b.behavior,C=b.offset,_=s-1,O=Gb(b,o,_),I=Jb(O,o.offsetTree,h)+c;"end"===T?(I+=m+xb(o.sizeTree,O)[1]-i+g,O===_&&(I+=d)):"center"===T?I+=(m+xb(o.sizeTree,O)[1]-i+g)/2:I-=l,C&&(I+=C);var N,P=function(e){S(),e?(p("retrying to scroll to",{location:r},ib.DEBUG),Py(y,r)):p("list did not change, scroll successful",{},ib.DEBUG)};if(S(),"smooth"===E){var A=!1;x=Ny(a,(function(e){A=A||e})),k=Dy(f,(function(){P(A)}))}else k=Dy(Zy(a,(N=150,function(e){var t=setTimeout((function(){e(!1)}),N);return function(n){n&&(e(!0),clearTimeout(t))}})),P);return w=setTimeout((function(){S()}),1200),Py(u,!0),p("scrolling from index to",{index:O,top:I,behavior:E},ib.DEBUG),{top:I,behavior:E}}))),c),{scrollToIndex:y,topListHeight:b}}),Ty(Kb,mb,ub),{singleton:!0});var nk="up",rk="down",ok={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},ak=tb((function(e){var t=(0,v.Z)(e,1)[0],n=t.scrollContainerState,r=t.scrollTop,o=t.viewportHeight,a=t.headerHeight,i=t.footerHeight,s=t.scrollBy,u=Ly(!1),l=Ly(!0),c=Fy(),f=Fy(),d=Ly(4),p=Ly(0),h=By(Zy(Ky(Zy(Qy(r),Gy(1),Wy(!0)),Zy(Qy(r),Gy(1),Wy(!1),Xy(100))),Vy()),!1),m=By(Zy(Ky(Zy(s,Wy(!0)),Zy(s,Wy(!1),Xy(200))),Vy()),!1);Ry(Zy(eb(Qy(r),Qy(p)),Hy((function(e){var t=(0,v.Z)(e,2);return t[0]<=t[1]})),Vy()),l),Ry(Zy(l,Yy(50)),f);var g=My(Zy(eb(n,Qy(o),Qy(a),Qy(i),Qy(d)),Jy((function(e,t){var n,r,o=(0,v.Z)(t,5),a=o[0],i=a.scrollTop,s=a.scrollHeight,u=o[1],l=(o[2],o[3],{viewportHeight:u,scrollTop:i,scrollHeight:s});return i+u-s>-o[4]?(i>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-i):(n="SIZE_DECREASED",r=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:n,scrollTopDelta:r}):{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":un+h-y&&(g=nk),(s-=f)0){l=e[0].offset;var f=e[e.length-1];c=f.offset+f.size}var d=n-u,p=l,h=s+d*i+(d-1)*r-c;return{items:Sk(e,o,a),topItems:Sk(t,o,a),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:l,offsetBottom:h,top:p,bottom:c,totalCount:n,firstItemIndex:a}}function Ek(e,t,n,r,o,a){var i=0;if(n.groupIndices.length>0){var s,u=(0,R.Z)(n.groupIndices);try{for(u.s();!(s=u.n()).done;){if(s.value-i>=e)break;i++}}catch(d){u.e(d)}finally{u.f()}}var l=e+i,c=uk(t,l),f=Array.from({length:l}).map((function(e,t){return{index:t+c,size:0,offset:0,data:a[t+c]}}));return Tk(f,[],l,o,n,r)}var Ck=tb((function(e){var t=(0,v.Z)(e,8),n=t[0],r=n.sizes,o=n.totalCount,a=n.data,i=n.firstItemIndex,s=n.gap,u=t[1],l=t[2],c=l.visibleRange,d=l.listBoundary,p=l.topListHeight,h=t[3],m=h.scrolledToInitialItem,g=h.initialTopMostItemIndex,y=t[4].topListHeight,b=t[5],k=t[6].didMount,w=t[7].recalcInProgress,x=Ly([]),S=Ly(0),T=Fy();Ry(u.topItemsIndexes,x);var E=By(Zy(eb(k,w,Qy(c,hk),Qy(o),Qy(r),Qy(g),m,Qy(x),Qy(i),Qy(s),a),qy((function(e){var t=(0,v.Z)(e,11),n=t[0],r=t[1],o=t[3],a=t[10],i=a&&a.length!==o;return n&&!r&&!i})),Hy((function(e){var t=(0,v.Z)(e,11),n=(0,v.Z)(t[2],2),r=n[0],o=n[1],a=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8],d=t[9],p=t[10],h=i,m=h.sizeTree,g=h.offsetTree,y=jy(S);if(0===a)return f(f({},xk),{},{totalCount:a});if(0===r&&0===o)return 0===y?f(f({},xk),{},{totalCount:a}):Ek(y,s,i,c,d,p||[]);if(yb(m)){if(y>0)return null;var b=Tk(function(e,t,n){if(Xb(t)){var r=Yb(e,t);return[{index:xb(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(uk(s,a),h,p),[],a,d,h,c);return b}var k=[];if(l.length>0){var w,x=l[0],T=l[l.length-1],E=0,C=(0,R.Z)(Ab(m,x,T));try{for(C.s();!(w=C.n()).done;)for(var _=w.value,O=_.value,I=Math.max(_.start,x),N=Math.min(_.end,T),P=I;P<=N;P++)k.push({index:P,size:O,offset:E,data:p&&p[P]}),E+=O}catch(L){C.e(L)}finally{C.f()}}if(!u)return Tk([],k,a,d,h,c);var A=l.length>0?l[l.length-1]+1:0,j=qb(g,r,o,A);if(0===j.length)return null;var D=a-1,F=Sy([],(function(e){var t,n=(0,R.Z)(j);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=a.value,s=i.offset,u=a.start,l=i.size;if(i.offset=o);h++)e.push({index:h,size:l,offset:s,data:p&&p[h]}),s+=l+d}}catch(L){n.e(L)}finally{n.f()}}));return Tk(F,k,a,d,h,c)})),qy((function(e){return null!==e})),Vy()),xk);return Ry(Zy(a,qy(Oy),Hy((function(e){return null==e?void 0:e.length}))),o),Ry(Zy(E,Hy((function(e){return e.topListHeight}))),y),Ry(y,p),Ry(Zy(E,Hy((function(e){return[e.top,e.bottom]}))),d),Ry(Zy(E,Hy((function(e){return e.items}))),T),f({listState:E,topItemsIndexes:x,endReached:My(Zy(E,qy((function(e){return e.items.length>0})),$y(o,a),qy((function(e){var t=(0,v.Z)(e,2),n=t[0].items,r=t[1];return n[n.length-1].originalIndex===r-1})),Hy((function(e){var t=(0,v.Z)(e,3);return[t[1]-1,t[2]]})),Vy(hk),Hy((function(e){return(0,v.Z)(e,1)[0]})))),startReached:My(Zy(E,Yy(200),qy((function(e){var t=e.items,n=e.topItems;return t.length>0&&t[0].originalIndex===n.length})),Hy((function(e){return e.items[0].index})),Vy())),rangeChanged:My(Zy(E,qy((function(e){return e.items.length>0})),Hy((function(e){for(var t=e.items,n=0,r=t.length-1;"group"===t[n].type&&nn;)r--;return{startIndex:t[n].index,endIndex:t[r].index}})),Vy(mk))),itemsRendered:T,initialItemCount:S},b)}),Ty(Kb,pk,wk,lk,tk,ak,ik,Mb),{singleton:!0}),_k=tb((function(e){var t=(0,v.Z)(e,4),n=t[0],r=n.sizes,o=n.firstItemIndex,a=n.data,i=n.gap,s=t[1].initialTopMostItemIndex,u=t[2],l=u.initialItemCount,c=u.listState;return Ry(Zy(t[3].didMount,$y(l),qy((function(e){return 0!==(0,v.Z)(e,2)[1]})),$y(s,r,o,i,a),Hy((function(e){var t=(0,v.Z)(e,6),n=(0,v.Z)(t[0],2)[1],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5];return Ek(n,r,o,a,i,void 0===s?[]:s)}))),c),{}}),Ty(Kb,lk,Ck,ik),{singleton:!0}),Ok=tb((function(e){var t=(0,v.Z)(e,1)[0].scrollVelocity,n=Ly(!1),r=Fy(),o=Ly(!1);return Ry(Zy(t,$y(o,n,r),qy((function(e){var t=(0,v.Z)(e,2);t[0];return!!t[1]})),Hy((function(e){var t=(0,v.Z)(e,4),n=t[0],r=t[1],o=t[2],a=t[3],i=r.exit,s=r.enter;if(o){if(i(n,a))return!1}else if(s(n,a))return!0;return o})),Vy()),n),Ny(Zy(eb(n,t,r),$y(o)),(function(e){var t=(0,v.Z)(e,2),n=(0,v.Z)(t[0],3),r=n[0],o=n[1],a=n[2],i=t[1];return r&&i&&i.change&&i.change(o,a)})),{isSeeking:n,scrollSeekConfiguration:o,scrollVelocity:t,scrollSeekRangeChanged:r}}),Ty(ak),{singleton:!0}),Ik=tb((function(e){var t=(0,v.Z)(e,1)[0].topItemsIndexes,n=Ly(0);return Ry(Zy(n,qy((function(e){return e>0})),Hy((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:n}}),Ty(Ck)),Nk=tb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=n.footerHeight,o=n.headerHeight,a=n.fixedHeaderHeight,i=n.fixedFooterHeight,s=t[1].listState,u=Fy(),l=By(Zy(eb(r,i,o,a,s),Hy((function(e){var t=(0,v.Z)(e,5),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4];return n+r+o+a+i.offsetBottom+i.bottom}))),0);return Ry(Qy(l),u),{totalListHeight:l,totalListHeightChanged:u}}),Ty(mb,Ck),{singleton:!0});function Pk(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var Ak=Pk((function(){return/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)})),jk=tb((function(e){var t=(0,v.Z)(e,6),n=t[0],r=n.scrollBy,o=n.scrollTop,a=n.deviation,i=n.scrollingInProgress,s=t[1],u=s.isScrolling,l=s.isAtBottom,c=s.scrollDirection,f=s.lastJumpDueToItemResize,d=t[2].listState,p=t[3],h=p.beforeUnshiftWith,m=p.shiftWithOffset,g=p.sizes,y=p.gap,b=t[4].log,k=t[5].recalcInProgress,w=My(Zy(d,$y(f),Jy((function(e,t){var n=(0,v.Z)(e,4),r=n[1],o=n[2],a=n[3],i=(0,v.Z)(t,2),s=i[0],u=s.items,l=s.totalCount,c=s.bottom,f=s.offsetBottom,d=i[1],p=c+f,h=0;o===l&&(r.length>0&&u.length>0&&(0===u[0].originalIndex&&0===r[0].originalIndex||0!==(h=p-a)&&(h+=d)));return[h,u,l,p]}),[0,[],0,0]),qy((function(e){return 0!==(0,v.Z)(e,1)[0]})),$y(o,c,i,l,b,k),qy((function(e){var t=(0,v.Z)(e,7),n=t[1],r=t[2],o=t[3];return!t[6]&&!o&&0!==n&&r===nk})),Hy((function(e){var t=(0,v.Z)(e,6),n=(0,v.Z)(t[0],1)[0];return(0,t[5])("Upward scrolling compensation",{amount:n},ib.DEBUG),n}))));function x(e){e>0?(Py(r,{top:-e,behavior:"auto"}),Py(a,0)):(Py(a,0),Py(r,{top:-e,behavior:"auto"}))}return Ny(Zy(w,$y(a,u)),(function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1];t[2]&&Ak()?Py(a,r-n):x(-n)})),Ny(Zy(eb(By(u,!1),a,k),qy((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=t[2];return!n&&!o&&0!==r})),Hy((function(e){var t=(0,v.Z)(e,2);t[0];return t[1]})),Yy(1)),x),Ry(Zy(m,Hy((function(e){return{top:-e}}))),r),Ny(Zy(h,$y(g,y),Hy((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=r.lastSize,a=r.groupIndices,i=r.sizeTree,s=t[2];function u(e){return e*(o+s)}if(0===a.length)return u(n);for(var l=0,c=wb(i,0),f=0,d=0;fn&&(l-=c,p=n-f+1),f+=p,l+=u(p),d++}return l}))),(function(e){Py(a,e),requestAnimationFrame((function(){Py(r,{top:e}),requestAnimationFrame((function(){Py(a,0),Py(k,!1)}))}))})),{deviation:a}}),Ty(mb,ak,Ck,Kb,ub,Mb)),Rk=tb((function(e){var t=(0,v.Z)(e,3),n=t[0].didMount,r=t[1].scrollTo,o=t[2].listState,a=Ly(0);return Ny(Zy(n,$y(a),qy((function(e){return 0!==(0,v.Z)(e,2)[1]})),Hy((function(e){return{top:(0,v.Z)(e,2)[1]}}))),(function(e){Dy(Zy(o,Gy(1),qy((function(e){return e.items.length>1}))),(function(){requestAnimationFrame((function(){Py(r,e)}))}))})),{initialScrollTop:a}}),Ty(ik,mb,Ck),{singleton:!0}),Dk=tb((function(e){var t=(0,v.Z)(e,2),n=t[0].viewportHeight,r=t[1].totalListHeight,o=Ly(!1);return{alignToBottom:o,paddingTopAddition:By(Zy(eb(o,n,r),qy((function(e){return(0,v.Z)(e,1)[0]})),Hy((function(e){var t=(0,v.Z)(e,3),n=t[1],r=t[2];return Math.max(0,n-r)})),Yy(0),Vy()),0)}}),Ty(mb,Nk),{singleton:!0}),Fk=tb((function(e){var t=(0,v.Z)(e,1)[0],n=t.scrollTo,r=t.scrollContainerState,o=Fy(),a=Fy(),i=Fy(),s=Ly(!1),u=Ly(void 0);return Ry(Zy(eb(o,a),Hy((function(e){var t=(0,v.Z)(e,2),n=t[0],r=n.viewportHeight,o=n.scrollTop,a=n.scrollHeight,i=t[1].offsetTop;return{scrollTop:Math.max(0,o-i),scrollHeight:a,viewportHeight:r}}))),r),Ry(Zy(n,$y(a),Hy((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1].offsetTop;return f(f({},n),{},{top:n.top+r})}))),i),{useWindowScroll:s,customScrollParent:u,windowScrollContainerState:o,windowViewportRect:a,windowScrollTo:i}}),Ty(mb)),Lk=function(e){var t=e.itemTop,n=e.itemBottom,r=e.viewportTop,o=e.viewportBottom,a=e.locationParams,i=a.behavior,s=a.align,l=u(a,cy);return to?f(f({},l),{},{behavior:i,align:null!=s?s:"end"}):null},Mk=tb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=n.sizes,o=n.totalCount,a=n.gap,i=t[1],s=i.scrollTop,l=i.viewportHeight,c=i.headerHeight,d=i.fixedHeaderHeight,p=i.fixedFooterHeight,h=i.scrollingInProgress,m=t[2].scrollToIndex,g=Fy();return Ry(Zy(g,$y(r,l,o,c,d,p,s),$y(a),Hy((function(e){var t=(0,v.Z)(e,2),n=(0,v.Z)(t[0],8),r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],l=n[5],c=n[6],d=n[7],p=t[1],m=r.done,g=r.behavior,y=r.align,b=r.calculateViewLocation,k=void 0===b?Lk:b,w=u(r,fy),x=Gb(r,o,i-1),S=Jb(x,o.offsetTree,p)+s+l,T=k({itemTop:S,itemBottom:S+xb(o.sizeTree,x)[1],viewportTop:d+l,viewportBottom:d+a-c,locationParams:f({behavior:g,align:y},w)});return T?m&&Dy(Zy(h,qy((function(e){return!1===e})),Gy(jy(h)?1:2)),m):m&&m(),T})),qy((function(e){return null!==e}))),m),{scrollIntoView:g}}),Ty(Kb,mb,tk,Ck,ub),{singleton:!0}),Bk=tb((function(e){var t=(0,v.Z)(e,5),n=t[0],r=n.sizes,o=n.sizeRanges,a=t[1].scrollTop,i=t[2].initialTopMostItemIndex,s=t[3].didMount,u=t[4],l=u.useWindowScroll,c=u.windowScrollContainerState,f=u.windowViewportRect,d=Fy(),p=Ly(void 0),h=Ly(null),m=Ly(null);return Ry(c,h),Ry(f,m),Ny(Zy(d,$y(r,a,l,h,m)),(function(e){var t=(0,v.Z)(e,6),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5],u=Eb(r.sizeTree).map((function(e,t,n){var r=e.k,o=e.v,a=n[t+1];return{startIndex:r,endIndex:a?a.k-1:1/0,size:o}}));a&&null!==i&&null!==s&&(o=i.scrollTop-s.offsetTop),n({ranges:u,scrollTop:o})})),Ry(Zy(p,qy(Oy),Hy(zk)),i),Ry(Zy(s,$y(p),qy((function(e){return void 0!==(0,v.Z)(e,2)[1]})),Vy(),Hy((function(e){return(0,v.Z)(e,2)[1].ranges}))),o),{getState:d,restoreStateFrom:p}}),Ty(Kb,mb,lk,ik,Fk));function zk(e){return{offset:e.scrollTop,index:0,align:"start"}}var Zk=tb((function(e){var t=(0,v.Z)(e,10),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8],d=t[9];return f(f(f(f(f(f(f(f(f(f({},n),r),o),a),i),s),u),l),c),d)}),Ty(wk,_k,ik,Ok,Nk,Rk,Dk,Fk,Mk,ub)),Uk=tb((function(e){var t=(0,v.Z)(e,11),n=t[0],r=n.totalCount,o=n.sizeRanges,a=n.fixedItemSize,i=n.defaultItemSize,s=n.trackItemSizes,l=n.itemSize,c=n.data,d=n.firstItemIndex,p=n.groupIndices,h=n.statefulTotalCount,m=n.gap,g=n.sizes,y=t[1],b=y.initialTopMostItemIndex,k=y.scrolledToInitialItem,w=t[2],x=t[3],S=t[4],T=t[5],E=T.listState,C=T.topItemsIndexes,_=u(T,dy),O=t[6].scrollToIndex,I=(t[7],t[8].topItemCount),N=t[9].groupCounts,P=t[10];return Ry(_.rangeChanged,P.scrollSeekRangeChanged),Ry(Zy(P.windowViewportRect,Hy((function(e){return e.visibleHeight}))),w.viewportHeight),f(f(f(f(f({totalCount:r,data:c,firstItemIndex:d,sizeRanges:o,initialTopMostItemIndex:b,scrolledToInitialItem:k,topItemsIndexes:C,topItemCount:I,groupCounts:N,fixedItemHeight:a,defaultItemHeight:i,gap:m},S),{},{statefulTotalCount:h,listState:E,scrollToIndex:O,trackItemSizes:s,itemSize:l,groupIndices:p},_),P),w),{},{sizes:g},x)}),Ty(Kb,lk,mb,Bk,fk,Ck,tk,jk,Ik,pk,Zk)),Vk="-webkit-sticky",qk="sticky",Hk=Pk((function(){if("undefined"===typeof document)return qk;var e=document.createElement("div");return e.style.position=Vk,e.style.position===Vk?Vk:qk}));function Wk(e,t){var n=r.useRef(null),o=r.useCallback((function(r){if(null!==r&&r.offsetParent){var o,a,i=r.getBoundingClientRect(),s=i.width;if(t){var u=t.getBoundingClientRect(),l=i.top-u.top;o=u.height-Math.max(0,l),a=l+t.scrollTop}else o=window.innerHeight-Math.max(0,i.top),a=i.top+window.pageYOffset;n.current={offsetTop:a,visibleHeight:o,visibleWidth:s},e(n.current)}}),[e,t]),a=lb(o),i=a.callbackRef,s=a.ref,u=r.useCallback((function(){o(s.current)}),[o,s]);return r.useEffect((function(){if(t){t.addEventListener("scroll",u);var e=new ResizeObserver(u);return e.observe(t),function(){t.removeEventListener("scroll",u),e.unobserve(t)}}return window.addEventListener("scroll",u),window.addEventListener("resize",u),function(){window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}}),[u,t]),i}var Jk=r.createContext(void 0),Gk=r.createContext(void 0);function Yk(e){return e}var Xk=tb((function(){var e=Ly((function(e){return"Item ".concat(e)})),t=Ly(null),n=Ly((function(e){return"Group ".concat(e)})),r=Ly({}),o=Ly(Yk),a=Ly("div"),i=Ly(Iy),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return By(Zy(r,Hy((function(t){return t[e]})),Vy()),t)};return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:o,headerFooterTag:a,scrollerRef:i,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}})),$k=tb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),Ty(Uk,Xk)),Kk=function(e){var t=e.height;return r.createElement("div",{style:{height:t}})},Qk={position:Hk(),zIndex:1,overflowAnchor:"none"},ew={overflowAnchor:"none"},tw=r.memo((function(e){var t=e.showTopList,n=void 0!==t&&t,o=vw("listState"),a=mw("sizeRanges"),i=vw("useWindowScroll"),s=vw("customScrollParent"),u=mw("windowScrollContainerState"),l=mw("scrollContainerState"),c=s||i?u:l,d=vw("itemContent"),p=vw("context"),h=vw("groupContent"),m=vw("trackItemSizes"),g=fb(a,vw("itemSize"),m,n?Iy:c,vw("log"),mw("gap"),s).callbackRef,y=r.useState(0),b=(0,v.Z)(y,2),k=b[0],w=b[1];gw("deviation",(function(e){k!==e&&w(e)}));var x=vw("EmptyPlaceholder"),S=vw("ScrollSeekPlaceholder")||Kk,T=vw("ListComponent"),E=vw("ItemComponent"),C=vw("GroupComponent"),_=vw("computeItemKey"),O=vw("isSeeking"),I=vw("groupIndices").length>0,N=vw("paddingTopAddition"),P=vw("scrolledToInitialItem"),A=n?{}:f({boxSizing:"border-box",paddingTop:o.offsetTop+N,paddingBottom:o.offsetBottom,marginTop:k},P?{}:{visibility:"hidden"});return!n&&0===o.totalCount&&x?r.createElement(x,aw(x,p)):r.createElement(T,f(f({},aw(T,p)),{},{ref:g,style:A,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?o.topItems:o.items).map((function(e){var t=e.originalIndex,n=_(t+o.firstItemIndex,e.data,p);return O?r.createElement(S,f(f({},aw(S,p)),{},{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?r.createElement(C,f(f({},aw(C,p)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:Qk}),h(e.index,p)):r.createElement(E,f(f({},aw(E,p)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,item:e.data,style:ew}),I?d(e.index,e.groupIndex,e.data,p):d(e.index,e.data,p))})))})),nw={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},rw={width:"100%",height:"100%",position:"absolute",top:0},ow={width:"100%",position:Hk(),top:0,zIndex:1};function aw(e,t){if("string"!==typeof e)return{context:t}}var iw=r.memo((function(){var e=vw("HeaderComponent"),t=mw("headerHeight"),n=vw("headerFooterTag"),o=cb((function(e){return t(db(e,"height"))})),a=vw("context");return e?r.createElement(n,{ref:o},r.createElement(e,aw(e,a))):null})),sw=r.memo((function(){var e=vw("FooterComponent"),t=mw("footerHeight"),n=vw("headerFooterTag"),o=cb((function(e){return t(db(e,"height"))})),a=vw("context");return e?r.createElement(n,{ref:o},r.createElement(e,aw(e,a))):null}));function uw(e){var t=e.usePublisher,n=e.useEmitter,o=e.useEmitterValue;return r.memo((function(e){var a=e.style,i=e.children,s=u(e,py),l=t("scrollContainerState"),c=o("ScrollerComponent"),d=t("smoothScrollTargetReached"),p=o("scrollerRef"),h=o("context"),m=hb(l,d,c,p),v=m.scrollerRef,g=m.scrollByCallback,y=m.scrollToCallback;return n("scrollTo",y),n("scrollBy",g),r.createElement(c,f(f({ref:v,style:f(f({},nw),a),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},s),aw(c,h)),i)}))}function lw(e){var t=e.usePublisher,n=e.useEmitter,o=e.useEmitterValue;return r.memo((function(e){var a=e.style,i=e.children,s=u(e,hy),l=t("windowScrollContainerState"),c=o("ScrollerComponent"),d=t("smoothScrollTargetReached"),p=o("totalListHeight"),h=o("deviation"),m=o("customScrollParent"),v=o("context"),g=hb(l,d,c,Iy,m),y=g.scrollerRef,b=g.scrollByCallback,k=g.scrollToCallback;return ab((function(){return y.current=m||window,function(){y.current=null}}),[y,m]),n("windowScrollTo",k),n("scrollBy",b),r.createElement(c,f(f({style:f(f({position:"relative"},a),0!==p?{height:p+h}:{}),"data-virtuoso-scroller":!0},s),aw(c,v)),i)}))}var cw=function(e){var t=e.children,n=r.useContext(Jk),o=mw("viewportHeight"),a=mw("fixedItemHeight"),i=cb(by(o,(function(e){return db(e,"height")})));return r.useEffect((function(){n&&(o(n.viewportHeight),a(n.itemHeight))}),[n,o,a]),r.createElement("div",{style:rw,ref:i,"data-viewport-type":"element"},t)},fw=function(e){var t=e.children,n=r.useContext(Jk),o=mw("windowViewportRect"),a=mw("fixedItemHeight"),i=vw("customScrollParent"),s=Wk(o,i);return r.useEffect((function(){n&&(a(n.itemHeight),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,o,a]),r.createElement("div",{ref:s,style:rw,"data-viewport-type":"window"},t)},dw=function(e){var t=e.children,n=vw("TopItemListComponent"),o=vw("headerHeight"),a=f(f({},ow),{},{marginTop:"".concat(o,"px")}),i=vw("context");return r.createElement(n||"div",{style:a,context:i},t)},pw=ob($k,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo((function(e){var t=vw("useWindowScroll"),n=vw("topItemsIndexes").length>0,o=vw("customScrollParent"),a=o||t?bw:yw,i=o||t?fw:cw;return r.createElement(a,f({},e),n&&r.createElement(dw,null,r.createElement(tw,{showTopList:!0})),r.createElement(i,null,r.createElement(iw,null),r.createElement(tw,null),r.createElement(sw,null)))}))),hw=pw.Component,mw=pw.usePublisher,vw=pw.useEmitterValue,gw=pw.useEmitter,yw=uw({usePublisher:mw,useEmitterValue:vw,useEmitter:gw}),bw=lw({usePublisher:mw,useEmitterValue:vw,useEmitter:gw}),kw=hw,ww={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},xw={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Sw=Math.round,Tw=Math.ceil,Ew=Math.floor,Cw=Math.min,_w=Math.max;function Ow(e,t,n){return Array.from({length:t-e+1}).map((function(t,r){var o=null===n?null:n[r+e];return{index:r+e,data:o}}))}function Iw(e,t){return e&&e.column===t.column&&e.row===t.row}function Nw(e,t){return e&&e.width===t.width&&e.height===t.height}var Pw=tb((function(e){var t=(0,v.Z)(e,7),n=t[0],r=n.overscan,o=n.visibleRange,a=n.listBoundary,i=t[1],s=i.scrollTop,u=i.viewportHeight,l=i.scrollBy,c=i.scrollTo,d=i.smoothScrollTargetReached,p=i.scrollContainerState,h=i.footerHeight,m=i.headerHeight,g=t[2],y=t[3],b=t[4],k=b.propsReady,w=b.didMount,x=t[5],S=x.windowViewportRect,T=x.useWindowScroll,E=x.customScrollParent,C=x.windowScrollContainerState,_=x.windowScrollTo,O=t[6],I=Ly(0),N=Ly(0),P=Ly(ww),A=Ly({height:0,width:0}),j=Ly({height:0,width:0}),R=Fy(),D=Fy(),F=Ly(0),L=Ly(null),M=Ly({row:0,column:0}),B=Fy(),z=Fy(),Z=Ly(!1),U=Ly(0),V=Ly(!0),q=Ly(!1);Ny(Zy(w,$y(U),qy((function(e){var t=(0,v.Z)(e,2);t[0];return!!t[1]}))),(function(){Py(V,!1),Py(N,0)})),Ny(Zy(eb(w,V,j,A,U,q),qy((function(e){var t=(0,v.Z)(e,6),n=t[0],r=t[1],o=t[2],a=t[3],i=t[5];return n&&!r&&0!==o.height&&0!==a.height&&!i}))),(function(e){var t=(0,v.Z)(e,5)[4];Py(q,!0),sk(1,(function(){Py(R,t)})),Dy(Zy(s),(function(){Py(a,[0,0]),Py(V,!0)}))})),Ry(Zy(z,qy((function(e){return void 0!==e&&null!==e&&e.scrollTop>0})),Wy(0)),N),Ny(Zy(w,$y(z),qy((function(e){var t=(0,v.Z)(e,2)[1];return void 0!==t&&null!==t}))),(function(e){var t=(0,v.Z)(e,2)[1];t&&(Py(A,t.viewport),Py(j,null==t?void 0:t.item),Py(M,t.gap),t.scrollTop>0&&(Py(Z,!0),Dy(Zy(s,Gy(1)),(function(e){Py(Z,!1)})),Py(c,{top:t.scrollTop})))})),Ry(Zy(A,Hy((function(e){return e.height}))),u),Ry(Zy(eb(Qy(A,Nw),Qy(j,Nw),Qy(M,(function(e,t){return e&&e.column===t.column&&e.row===t.row})),Qy(s)),Hy((function(e){var t=(0,v.Z)(e,4);return{viewport:t[0],item:t[1],gap:t[2],scrollTop:t[3]}}))),B),Ry(Zy(eb(Qy(I),o,Qy(M,Iw),Qy(j,Nw),Qy(A,Nw),Qy(L),Qy(N),Qy(Z),Qy(V),Qy(U)),qy((function(e){return!(0,v.Z)(e,8)[7]})),Hy((function(e){var t=(0,v.Z)(e,10),n=t[0],r=(0,v.Z)(t[1],2),o=r[0],a=r[1],i=t[2],s=t[3],u=t[4],l=t[5],c=t[6],d=t[8],p=t[9],h=i.row,m=i.column,g=s.height,y=s.width,b=u.width;if(0===c&&(0===n||0===b))return ww;if(0===y){var k=uk(p,n);return function(e){return f(f({},xw),{},{items:e})}(Ow(k,0===k?Math.max(c-1,0):k,l))}var w,x,S=Rw(b,y,m);d?0===o&&0===a&&c>0?(w=0,x=c-1):(w=S*Ew((o+h)/(g+h)),x=S*Tw((a+h)/(g+h))-1,x=Cw(n-1,_w(x,S-1)),w=Cw(x,_w(0,w))):(w=0,x=-1);var T=Ow(w,x,l),E=Aw(u,i,s,T),C=E.top,_=E.bottom,O=Tw(n/S);return{items:T,offsetTop:C,offsetBottom:O*g+(O-1)*h-_,top:C,bottom:_,itemHeight:g,itemWidth:y}}))),P),Ry(Zy(L,qy((function(e){return null!==e})),Hy((function(e){return e.length}))),I),Ry(Zy(eb(A,j,P,M),qy((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1];return t[2].items.length>0&&0!==r.height&&0!==n.height})),Hy((function(e){var t=(0,v.Z)(e,4),n=t[0],r=t[1],o=t[2].items,a=Aw(n,t[3],r,o);return[a.top,a.bottom]})),Vy(hk)),a);var H=Ly(!1);Ry(Zy(s,$y(H),Hy((function(e){var t=(0,v.Z)(e,2),n=t[0];return t[1]||0!==n}))),H);var W=My(Zy(Qy(P),qy((function(e){return e.items.length>0})),$y(I,H),qy((function(e){var t=(0,v.Z)(e,3),n=t[0].items,r=t[1];return t[2]&&n[n.length-1].index===r-1})),Hy((function(e){return(0,v.Z)(e,2)[1]-1})),Vy())),J=My(Zy(Qy(P),qy((function(e){var t=e.items;return t.length>0&&0===t[0].index})),Wy(0),Vy())),G=My(Zy(Qy(P),$y(Z),qy((function(e){var t=(0,v.Z)(e,2),n=t[0].items,r=t[1];return n.length>0&&!r})),Hy((function(e){var t=(0,v.Z)(e,1)[0].items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),Vy(mk),Yy(0)));Ry(G,y.scrollSeekRangeChanged),Ry(Zy(R,$y(A,j,I,M),Hy((function(e){var t=(0,v.Z)(e,5),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=ek(n),u=s.align,l=s.behavior,c=s.offset,f=s.index;"LAST"===f&&(f=a-1);var d=jw(r,i,o,f=_w(0,f,Cw(a-1,f)));return"end"===u?d=Sw(d-r.height+o.height):"center"===u&&(d=Sw(d-r.height/2+o.height/2)),c&&(d+=c),{top:d,behavior:l}}))),c);var Y=By(Zy(P,Hy((function(e){return e.offsetBottom+e.bottom}))),0);return Ry(Zy(S,Hy((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),A),f(f(f({data:L,totalCount:I,viewportDimensions:A,itemDimensions:j,scrollTop:s,scrollHeight:D,overscan:r,scrollBy:l,scrollTo:c,scrollToIndex:R,smoothScrollTargetReached:d,windowViewportRect:S,windowScrollTo:_,useWindowScroll:T,customScrollParent:E,windowScrollContainerState:C,deviation:F,scrollContainerState:p,footerHeight:h,headerHeight:m,initialItemCount:N,gap:M,restoreStateFrom:z},y),{},{initialTopMostItemIndex:U,gridState:P,totalListHeight:Y},g),{},{startReached:J,endReached:W,rangeChanged:G,stateChanged:B,propsReady:k,stateRestoreInProgress:Z},O)}),Ty(wk,mb,ak,Ok,ik,Fk,ub));function Aw(e,t,n,r){var o=n.height;return void 0===o||0===r.length?{top:0,bottom:0}:{top:jw(e,t,n,r[0].index),bottom:jw(e,t,n,r[r.length-1].index)+o}}function jw(e,t,n,r){var o=Rw(e.width,n.width,t.column),a=Ew(r/o),i=a*n.height+_w(0,a-1)*t.row;return i>0?i+t.row:i}function Rw(e,t,n){return _w(1,Ew((e+n)/(Ew(t)+n)))}var Dw=tb((function(){var e=Ly((function(e){return"Item ".concat(e)})),t=Ly({}),n=Ly(null),r=Ly("virtuoso-grid-item"),o=Ly("virtuoso-grid-list"),a=Ly(Yk),i=Ly("div"),s=Ly(Iy),u=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return By(Zy(t,Hy((function(t){return t[e]})),Vy()),n)};return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:o,headerFooterTag:i,scrollerRef:s,FooterComponent:u("Footer"),HeaderComponent:u("Header"),ListComponent:u("List","div"),ItemComponent:u("Item","div"),ScrollerComponent:u("Scroller","div"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}})),Fw=tb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),Ty(Pw,Dw)),Lw=r.memo((function(){var e=qw("gridState"),t=qw("listClassName"),n=qw("itemClassName"),o=qw("itemContent"),a=qw("computeItemKey"),i=qw("isSeeking"),s=Vw("scrollHeight"),u=qw("ItemComponent"),l=qw("ListComponent"),c=qw("ScrollSeekPlaceholder"),d=qw("context"),p=Vw("itemDimensions"),h=Vw("gap"),m=qw("log"),v=qw("stateRestoreInProgress"),g=cb((function(e){var t=e.parentElement.parentElement.scrollHeight;s(t);var n=e.firstChild;if(n){var r=n.getBoundingClientRect(),o=r.width,a=r.height;p({width:o,height:a})}h({row:Gw("row-gap",getComputedStyle(e).rowGap,m),column:Gw("column-gap",getComputedStyle(e).columnGap,m)})}));return v?null:r.createElement(l,f(f({ref:g,className:t},aw(l,d)),{},{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-test-id":"virtuoso-item-list"}),e.items.map((function(t){var s=a(t.index,t.data,d);return i?r.createElement(c,f(f({key:s},aw(c,d)),{},{index:t.index,height:e.itemHeight,width:e.itemWidth})):r.createElement(u,f(f({},aw(u,d)),{},{className:n,"data-index":t.index,key:s}),o(t.index,t.data,d))})))})),Mw=r.memo((function(){var e=qw("HeaderComponent"),t=Vw("headerHeight"),n=qw("headerFooterTag"),o=cb((function(e){return t(db(e,"height"))})),a=qw("context");return e?r.createElement(n,{ref:o},r.createElement(e,aw(e,a))):null})),Bw=r.memo((function(){var e=qw("FooterComponent"),t=Vw("footerHeight"),n=qw("headerFooterTag"),o=cb((function(e){return t(db(e,"height"))})),a=qw("context");return e?r.createElement(n,{ref:o},r.createElement(e,aw(e,a))):null})),zw=function(e){var t=e.children,n=r.useContext(Gk),o=Vw("itemDimensions"),a=Vw("viewportDimensions"),i=cb((function(e){a(e.getBoundingClientRect())}));return r.useEffect((function(){n&&(a({height:n.viewportHeight,width:n.viewportWidth}),o({height:n.itemHeight,width:n.itemWidth}))}),[n,a,o]),r.createElement("div",{style:rw,ref:i},t)},Zw=function(e){var t=e.children,n=r.useContext(Gk),o=Vw("windowViewportRect"),a=Vw("itemDimensions"),i=qw("customScrollParent"),s=Wk(o,i);return r.useEffect((function(){n&&(a({height:n.itemHeight,width:n.itemWidth}),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:n.viewportWidth}))}),[n,o,a]),r.createElement("div",{ref:s,style:rw},t)},Uw=ob(Fw,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},r.memo((function(e){var t=Object.assign({},(ng(e),e)),n=qw("useWindowScroll"),o=qw("customScrollParent"),a=o||n?Jw:Ww,i=o||n?Zw:zw;return r.createElement(a,f({},t),r.createElement(i,null,r.createElement(Mw,null),r.createElement(Lw,null),r.createElement(Bw,null)))}))),Vw=(Uw.Component,Uw.usePublisher),qw=Uw.useEmitterValue,Hw=Uw.useEmitter,Ww=uw({usePublisher:Vw,useEmitterValue:qw,useEmitter:Hw}),Jw=lw({usePublisher:Vw,useEmitterValue:qw,useEmitter:Hw});function Gw(e,t,n){return"normal"===t||(null==t?void 0:t.endsWith("px"))||n("".concat(e," was not resolved to pixel value correctly"),t,ib.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var Yw=tb((function(){var e=Ly((function(e){return r.createElement("td",null,"Item $",e)})),t=Ly(null),n=Ly(null),o=Ly(null),a=Ly({}),i=Ly(Yk),s=Ly(Iy),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return By(Zy(a,Hy((function(t){return t[e]})),Vy()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:o,components:a,computeItemKey:i,scrollerRef:s,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}})),Xw=tb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),Ty(Uk,Yw)),$w=function(e){var t=e.height;return r.createElement("tr",null,r.createElement("td",{style:{height:t}}))},Kw=function(e){var t=e.height;return r.createElement("tr",null,r.createElement("td",{style:{height:t,padding:0,border:0}}))},Qw={overflowAnchor:"none"},ex=r.memo((function(){var e=ax("listState"),t=ox("sizeRanges"),n=ax("useWindowScroll"),o=ax("customScrollParent"),a=ox("windowScrollContainerState"),s=ox("scrollContainerState"),u=o||n?a:s,l=ax("itemContent"),c=ax("trackItemSizes"),d=fb(t,ax("itemSize"),c,u,ax("log"),void 0,o),p=d.callbackRef,h=d.ref,m=r.useState(0),g=(0,v.Z)(m,2),y=g[0],b=g[1];ix("deviation",(function(e){y!==e&&(h.current.style.marginTop="".concat(e,"px"),b(e))}));var k=ax("EmptyPlaceholder"),w=ax("ScrollSeekPlaceholder")||$w,x=ax("FillerRow")||Kw,S=ax("TableBodyComponent"),T=ax("TableRowComponent"),E=ax("computeItemKey"),C=ax("isSeeking"),_=ax("paddingTopAddition"),O=ax("firstItemIndex"),I=ax("statefulTotalCount"),N=ax("context");if(0===I&&k)return r.createElement(k,aw(k,N));var P=e.offsetTop+_+y,A=e.offsetBottom,j=P>0?r.createElement(x,{height:P,key:"padding-top",context:N}):null,R=A>0?r.createElement(x,{height:A,key:"padding-bottom",context:N}):null,D=e.items.map((function(e){var t=e.originalIndex,n=E(t+O,e.data,N);return C?r.createElement(w,f(f({},aw(w,N)),{},{key:n,index:e.index,height:e.size,type:e.type||"item"})):r.createElement(T,f(f({},aw(T,N)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,item:e.data,style:Qw}),l(e.index,e.data,N))}));return r.createElement(S,f({ref:p,"data-test-id":"virtuoso-item-list"},aw(S,N)),[j].concat((0,i.Z)(D),[R]))})),tx=function(e){var t=e.children,n=r.useContext(Jk),o=ox("viewportHeight"),a=ox("fixedItemHeight"),i=cb(by(o,(function(e){return db(e,"height")})));return r.useEffect((function(){n&&(o(n.viewportHeight),a(n.itemHeight))}),[n,o,a]),r.createElement("div",{style:rw,ref:i,"data-viewport-type":"element"},t)},nx=function(e){var t=e.children,n=r.useContext(Jk),o=ox("windowViewportRect"),a=ox("fixedItemHeight"),i=ax("customScrollParent"),s=Wk(o,i);return r.useEffect((function(){n&&(a(n.itemHeight),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,o,a]),r.createElement("div",{ref:s,style:rw,"data-viewport-type":"window"},t)},rx=ob(Xw,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo((function(e){var t=ax("useWindowScroll"),n=ax("customScrollParent"),o=ox("fixedHeaderHeight"),a=ox("fixedFooterHeight"),i=ax("fixedHeaderContent"),s=ax("fixedFooterContent"),u=ax("context"),l=cb(by(o,(function(e){return db(e,"height")}))),c=cb(by(a,(function(e){return db(e,"height")}))),d=n||t?ux:sx,p=n||t?nx:tx,h=ax("TableComponent"),m=ax("TableHeadComponent"),v=ax("TableFooterComponent"),g=i?r.createElement(m,f({key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:l},aw(m,u)),i()):null,y=s?r.createElement(v,f({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c},aw(v,u)),s()):null;return r.createElement(d,f({},e),r.createElement(p,null,r.createElement(h,f({style:{borderSpacing:0,overflowAnchor:"none"}},aw(h,u)),[g,r.createElement(ex,{key:"TableBody"}),y])))}))),ox=(rx.Component,rx.usePublisher),ax=rx.useEmitterValue,ix=rx.useEmitter,sx=uw({usePublisher:ox,useEmitterValue:ax,useEmitter:ix}),ux=lw({usePublisher:ox,useEmitterValue:ax,useEmitter:ix}),lx=n(1842),cx=new(n(5304)),fx=function(e){var t=e.log;if(void 0!==t&&0!==t.length){var n=t;if(function(e){return ty.test(e)}(n)){var r=cx.toHtml(n);n=Qg(r)}return(0,g.jsx)(js,{style:px.row,children:n})}return(0,g.jsx)(g.Fragment,{})},dx=function(e){var t=e.logs,n=e.fileName,o=(0,r.useState)(t),a=(0,v.Z)(o,2),i=a[0],s=a[1],u=(0,r.useRef)(null),l=Fr().height,c=iy(""),f=c.onCopy,d=(c.value,c.setValue),p=c.hasCopied;(0,r.useEffect)((function(){s(t);var e=t.map((function(e){return ry(e)}));d(e.join(lx.EOL))}),[t]);return(0,g.jsxs)("div",{className:"flex flex-col bg-black",children:[(0,g.jsx)(kw,{style:{height:.8*(l-100),backgroundColor:"black"},ref:u,data:i,totalCount:i.length-1,itemContent:function(e,t){return(0,g.jsx)(fx,{index:e,log:t})},followOutput:"smooth"}),(0,g.jsxs)(Ls,{className:"bg-black",style:{height:"80px"},children:[(0,g.jsx)(Ms,{}),(0,g.jsx)(Hg,{label:"".concat(p?"copied":"copy"),placement:"top-end",closeOnClick:!1,children:(0,g.jsx)(js,{p:"2",m:"4",onClick:f,height:"40px",children:(0,g.jsxs)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20",children:[(0,g.jsx)("path",{d:"M5 9V4.13a2.96 2.96 0 0 0-1.293.749L.879 7.707A2.96 2.96 0 0 0 .13 9H5Zm11.066-9H9.829a2.98 2.98 0 0 0-2.122.879L7 1.584A.987.987 0 0 0 6.766 2h4.3A3.972 3.972 0 0 1 15 6v10h1.066A1.97 1.97 0 0 0 18 14V2a1.97 1.97 0 0 0-1.934-2Z"}),(0,g.jsx)("path",{d:"M11.066 4H7v5a2 2 0 0 1-2 2H0v7a1.969 1.969 0 0 0 1.933 2h9.133A1.97 1.97 0 0 0 13 18V6a1.97 1.97 0 0 0-1.934-2Z"})]})})}),(0,g.jsx)(Hg,{label:"download",placement:"top",closeOnClick:!1,children:(0,g.jsx)(js,{p:"2",m:"4",onClick:function(){var e=t.map((function(e){return ry(e)})).join(lx.EOL);uy(e,n)},height:"40px",children:(0,g.jsx)(Xg,{textColor:"white"})})}),(0,g.jsx)(Hg,{label:"scroll to bottom",placement:"top",closeOnClick:!1,children:(0,g.jsx)(js,{p:"2",m:"4",onClick:function(){u.current.scrollToIndex({index:i.length-1,behavior:"smooth",align:"end"})},height:"40px",children:(0,g.jsx)($g,{textColor:"white"})})})]})]})},px={row:{fontFamily:"system-ui",boxSizing:"border-box",borderBottom:"1px solid #222",padding:"1em",color:"white"}},hx=function(){var e=m(p().mark((function e(t,n){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fr(t,n);case 2:if(!("enclaveInfo"in(r=e.sent))){e.next=5;break}return e.abrupt("return",Object.keys(r.enclaveInfo).map((function(e){var t=r.enclaveInfo[e];return{uuid:t.enclaveUuid,name:t.name,status:t.apiContainerStatus,host:t.apiContainerInfo.bridgeIpAddress,port:t.apiContainerInfo.grpcPortInsideEnclave,mode:t.mode}})));case 5:return e.abrupt("return",[]);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),mx=function(){var e=m(p().mark((function e(t,n,r){var o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mr(r,t,n);case 2:return o=e.sent,o.enclaveInfo,e.abrupt("return",{});case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),vx=function(){var e=m(p().mark((function e(t,n,r,o){var a,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"","info",e.next=4,vr(r,"info","",t,n,o);case 4:return a=e.sent,i=a.enclaveInfo,e.abrupt("return",{uuid:i.enclaveUuid,name:i.name,created:i.creationTime,status:i.apiContainerStatus,host:i.apiContainerInfo.bridgeIpAddress,port:i.apiContainerInfo.grpcPortInsideEnclave});case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),gx=function(){var e=m(p().mark((function e(t,n,r,o,a,i){var s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=lr(o),u={enclaveIdentifier:n,serviceUuidSet:(0,l.Z)({},r,!0),followLogs:a,returnAllLogs:!1,numLogLines:i},e.abrupt("return",s.getServiceLogs(u,{signal:t.signal}));case 3:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a,i){return e.apply(this,arguments)}}(),yx=function(){var e=m(p().mark((function e(t,n,r,o,a,i){var s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,br(t,n,r,o,a,i);case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a,i){return e.apply(this,arguments)}}(),bx=["axis"],kx=Is("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});kx.displayName="Center";var wx={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Ns((function(e,t){var n=e.axis,r=void 0===n?"both":n,o=u(e,bx);return(0,g.jsx)(Is.div,f(f({ref:t,__css:wx[r]},o),{},{position:"absolute"}))}));function xx(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}var Sx=["className","align","decoration","casing"],Tx=Ns((function(e,t){var n=oc("Text",e),r=Aa(e),o=(r.className,r.align,r.decoration,r.casing,u(r,Sx)),a=xx({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,g.jsx)(Is.p,f(f(f({ref:t,className:Lr("chakra-text",e.className)},a),o),{},{__css:n}))}));Tx.displayName="Text";var Ex=Fl({strict:!1,name:"ButtonGroupContext"}),Cx=(0,v.Z)(Ex,2),_x=(Cx[0],Cx[1]),Ox=["children","className"];function Ix(e){var t=e.children,n=e.className,o=u(e,Ox),a=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,i=Lr("chakra-button__icon",n);return(0,g.jsx)(Is.span,f(f({display:"inline-flex",alignSelf:"center",flexShrink:0},o),{},{className:i,children:a}))}Ix.displayName="ButtonIcon";n(2110);var Nx=fs((function(e,t){var n=e.styles,o=is([n],void 0,r.useContext(ds)),a=r.useRef();return ls((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),a.current=[n,r],function(){n.flush()}}),[t]),ls((function(){var e=a.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&vs(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null}));function Px(){for(var e=arguments.length,t=new Array(e),n=0;n\" "}),Hx=(0,v.Z)(qx,2),Wx=Hx[0],Jx=Hx[1],Gx=Ns((function(e,t){var n=ac("Table",e),r=Aa(e),o=r.className,a=r.layout,i=u(r,Vx);return(0,g.jsx)(Wx,{value:n,children:(0,g.jsx)(Is.table,f({ref:t,__css:f({tableLayout:a},n.table),className:Lr("chakra-table",o)},i))})}));Gx.displayName="Table";var Yx=Ns((function(e,t){var n=Jx();return(0,g.jsx)(Is.tr,f(f({},e),{},{ref:t,__css:n.tr}))})),Xx=["isNumeric"],$x=Ns((function(e,t){var n=e.isNumeric,r=u(e,Xx),o=Jx();return(0,g.jsx)(Is.td,f(f({},r),{},{ref:t,__css:o.td,"data-is-numeric":n}))})),Kx=["overflow","overflowX","className"],Qx=Ns((function(e,t){var n,r=e.overflow,o=e.overflowX,a=e.className,i=u(e,Kx);return(0,g.jsx)(Is.div,f(f({ref:t,className:Lr("chakra-table__container",a)},i),{},{__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:o)?n:"auto",overflowY:"hidden",maxWidth:"100%"}}))})),eS=Ns((function(e,t){var n=Jx();return(0,g.jsx)(Is.tbody,f(f({},e),{},{ref:t,__css:n.tbody}))}));function tS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nS(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 rS(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};pS.initial(e),pS.handler(t);var n={current:e},r=lS(vS)(n,t),o=lS(mS)(n),a=lS(pS.changes)(e),i=lS(hS)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return pS.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),a=0;a2&&void 0!==arguments[2])||arguments[2],o=(0,r.useRef)(!0);(0,r.useEffect)(o.current||!n?function(){o.current=!1}:e,t)};function GS(){}function YS(e,t,n,r){return function(e,t){return e.editor.getModel(XS(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?XS(e,r):void 0)}(e,t,n,r)}function XS(e,t){return e.Uri.parse(t)}var $S=function(e){var t=e.original,n=e.modified,o=e.language,a=e.originalLanguage,i=e.modifiedLanguage,s=e.originalModelPath,u=e.modifiedModelPath,l=e.keepCurrentOriginalModel,c=void 0!==l&&l,d=e.keepCurrentModifiedModel,p=void 0!==d&&d,h=e.theme,m=void 0===h?"light":h,g=e.loading,y=void 0===g?"Loading...":g,b=e.options,k=void 0===b?{}:b,w=e.height,x=void 0===w?"100%":w,S=e.width,T=void 0===S?"100%":S,E=e.className,C=e.wrapperProps,_=void 0===C?{}:C,O=e.beforeMount,I=void 0===O?GS:O,N=e.onMount,P=void 0===N?GS:N,A=(0,r.useState)(!1),j=(0,v.Z)(A,2),R=j[0],D=j[1],F=(0,r.useState)(!0),L=(0,v.Z)(F,2),M=L[0],B=L[1],z=(0,r.useRef)(null),Z=(0,r.useRef)(null),U=(0,r.useRef)(null),V=(0,r.useRef)(P),q=(0,r.useRef)(I),H=(0,r.useRef)(!1);WS((function(){var e=BS.init();return e.then((function(e){return(Z.current=e)&&B(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return z.current?function(){var e,t,n,r,o=null===(e=z.current)||void 0===e?void 0:e.getModel();c||null!==o&&void 0!==o&&null!==(t=o.original)&&void 0!==t&&t.dispose(),p||null!==o&&void 0!==o&&null!==(n=o.modified)&&void 0!==n&&n.dispose(),null===(r=z.current)||void 0===r||r.dispose()}():e.cancel()}})),JS((function(){if(z.current&&Z.current){var e=z.current.getOriginalEditor(),n=YS(Z.current,t||"",a||o||"text",s||"");n!==e.getModel()&&e.setModel(n)}}),[s],R),JS((function(){if(z.current&&Z.current){var e=z.current.getModifiedEditor(),t=YS(Z.current,n||"",i||o||"text",u||"");t!==e.getModel()&&e.setModel(t)}}),[u],R),JS((function(){var e=z.current.getModifiedEditor();e.getOption(Z.current.editor.EditorOption.readOnly)?e.setValue(n||""):n!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[n],R),JS((function(){var e;null===(e=z.current)||void 0===e||null===(e=e.getModel())||void 0===e||e.original.setValue(t||"")}),[t],R),JS((function(){var e=z.current.getModel(),t=e.original,n=e.modified;Z.current.editor.setModelLanguage(t,a||o||"text"),Z.current.editor.setModelLanguage(n,i||o||"text")}),[o,a,i],R),JS((function(){var e;null===(e=Z.current)||void 0===e||e.editor.setTheme(m)}),[m],R),JS((function(){var e;null===(e=z.current)||void 0===e||e.updateOptions(k)}),[k],R);var W=(0,r.useCallback)((function(){var e;if(Z.current){q.current(Z.current);var r=YS(Z.current,t||"",a||o||"text",s||""),l=YS(Z.current,n||"",i||o||"text",u||"");null===(e=z.current)||void 0===e||e.setModel({original:r,modified:l})}}),[o,n,i,t,a,s,u]),J=(0,r.useCallback)((function(){var e;!H.current&&U.current&&(z.current=Z.current.editor.createDiffEditor(U.current,f({automaticLayout:!0},k)),W(),null!==(e=Z.current)&&void 0!==e&&e.editor.setTheme(m),D(!0),H.current=!0)}),[k,m,W]);return(0,r.useEffect)((function(){R&&V.current(z.current,Z.current)}),[R]),(0,r.useEffect)((function(){!M&&!R&&J()}),[M,R,J]),r.createElement(HS,{width:T,height:x,isEditorReady:R,loading:y,_ref:U,className:E,wrapperProps:_})};(0,r.memo)($S);var KS=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current},QS=new Map;var eT=function(e){var t=e.defaultValue,n=e.defaultLanguage,o=e.defaultPath,a=e.value,i=e.language,s=e.path,u=e.theme,l=void 0===u?"light":u,c=e.line,d=e.loading,p=void 0===d?"Loading...":d,h=e.options,m=void 0===h?{}:h,g=e.overrideServices,y=void 0===g?{}:g,b=e.saveViewState,k=void 0===b||b,w=e.keepCurrentModel,x=void 0!==w&&w,S=e.width,T=void 0===S?"100%":S,E=e.height,C=void 0===E?"100%":E,_=e.className,O=e.wrapperProps,I=void 0===O?{}:O,N=e.beforeMount,P=void 0===N?GS:N,A=e.onMount,j=void 0===A?GS:A,R=e.onChange,D=e.onValidate,F=void 0===D?GS:D,L=(0,r.useState)(!1),M=(0,v.Z)(L,2),B=M[0],z=M[1],Z=(0,r.useState)(!0),U=(0,v.Z)(Z,2),V=U[0],q=U[1],H=(0,r.useRef)(null),W=(0,r.useRef)(null),J=(0,r.useRef)(null),G=(0,r.useRef)(j),Y=(0,r.useRef)(P),X=(0,r.useRef)(),$=(0,r.useRef)(a),K=KS(s),Q=(0,r.useRef)(!1),ee=(0,r.useRef)(!1);WS((function(){var e=BS.init();return e.then((function(e){return(H.current=e)&&q(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return W.current?function(){var e,t;null!==(e=X.current)&&void 0!==e&&e.dispose(),x?k&&QS.set(s,W.current.saveViewState()):null===(t=W.current.getModel())||void 0===t||t.dispose(),W.current.dispose()}():e.cancel()}})),JS((function(){var e,r,u,l,c=YS(H.current,t||a||"",n||i||"",s||o||"");c!==(null===(e=W.current)||void 0===e?void 0:e.getModel())&&(k&&QS.set(K,null===(r=W.current)||void 0===r?void 0:r.saveViewState()),null!==(u=W.current)&&void 0!==u&&u.setModel(c),k&&(null===(l=W.current)||void 0===l||l.restoreViewState(QS.get(s))))}),[s],B),JS((function(){var e;null===(e=W.current)||void 0===e||e.updateOptions(m)}),[m],B),JS((function(){!W.current||void 0===a||(W.current.getOption(H.current.editor.EditorOption.readOnly)?W.current.setValue(a):a!==W.current.getValue()&&(ee.current=!0,W.current.executeEdits("",[{range:W.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),W.current.pushUndoStop(),ee.current=!1))}),[a],B),JS((function(){var e,t,n=null===(e=W.current)||void 0===e?void 0:e.getModel();n&&i&&(null===(t=H.current)||void 0===t||t.editor.setModelLanguage(n,i))}),[i],B),JS((function(){var e;void 0!==c&&(null===(e=W.current)||void 0===e||e.revealLine(c))}),[c],B),JS((function(){var e;null===(e=H.current)||void 0===e||e.editor.setTheme(l)}),[l],B);var te=(0,r.useCallback)((function(){if(J.current&&H.current&&!Q.current){var e;Y.current(H.current);var r=s||o,u=YS(H.current,a||t||"",n||i||"",r||"");W.current=null===(e=H.current)||void 0===e?void 0:e.editor.create(J.current,f({model:u,automaticLayout:!0},m),y),k&&W.current.restoreViewState(QS.get(r)),H.current.editor.setTheme(l),z(!0),Q.current=!0}}),[t,n,o,a,i,s,m,y,k,l]);return(0,r.useEffect)((function(){B&&G.current(W.current,H.current)}),[B]),(0,r.useEffect)((function(){!V&&!B&&te()}),[V,B,te]),$.current=a,(0,r.useEffect)((function(){var e,t;B&&R&&(null!==(e=X.current)&&void 0!==e&&e.dispose(),X.current=null===(t=W.current)||void 0===t?void 0:t.onDidChangeModelContent((function(e){ee.current||R(W.current.getValue(),e)})))}),[B,R]),(0,r.useEffect)((function(){if(B){var e=H.current.editor.onDidChangeMarkers((function(e){var t,n=null===(t=W.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((function(e){return e.path===n.path}))){var r=H.current.editor.getModelMarkers({resource:n});null===F||void 0===F||F(r)}}));return function(){null===e||void 0===e||e.dispose()}}return function(){}}),[B,F]),r.createElement(HS,{width:T,height:C,isEditorReady:B,loading:p,_ref:J,className:_,wrapperProps:I})},tT=(0,r.memo)(eT),nT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["json"],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:500,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.includes("json")?"{\n}":"",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=!(arguments.length>8&&void 0!==arguments[8])||arguments[8],c=!(arguments.length>9&&void 0!==arguments[9])||arguments[9],f=!(arguments.length>10&&void 0!==arguments[10])||arguments[10],d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"sm",p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:"1px",h=arguments.length>13&&void 0!==arguments[13]?arguments[13]:"vs-dark",m=(0,r.useRef)(null),y=Fr(),b=(0,r.useState)(!1),k=(0,v.Z)(b,2),w=k[0],x=k[1],S=(0,r.useState)(!1),T=(0,v.Z)(S,2),E=T[0],C=T[1],_=iy(""),O=(0,r.useRef)(n),I=(0,r.useState)(n),N=(0,v.Z)(I,2),P=N[0],A=N[1],j=function(){return m.current?R(e):null},R=function(e){return m.current.editor.getEditors().find((function(t){return t.getModel().uri.toString()==="file:///".concat(e)}))};(0,r.useEffect)((function(){j()&&j().updateOptions({readOnly:P})}),[P]),(0,r.useEffect)((function(){w&&(!function(){try{return j().getOption(86)}catch(e){return}}()?j()&&j().getAction("editor.action.formatDocument").run().then((function(){A(O.current),x(!1)})).catch((function(e){console.error("An error happened",e)})):A(!1))}),[w,E]),(0,r.useEffect)((function(){return D()}),[y]),(0,r.useEffect)((function(){return F(i)}),[i]);var D=function(){if(j()){var e=Math.min(750,j().getContentHeight());j().layout({width:a,height:e}),j().layout()}},F=function(e){D(),t(e),_.setValue(e)},L=function(){x(!0)};return D(),(0,g.jsxs)(js,{border:p,borderColor:"gray.700",borderRadius:"7",margin:"1px",padding:1,children:[(0,g.jsx)(tT,{margin:1,defaultLanguage:"json",value:i,theme:h,path:e,onMount:function(e,t){var n,r;m.current=t,D(),j().onDidChangeConfiguration((function(e){e.hasChanged(86)&&C(!E)})),s&&L(),n="kurtosis-theme",r={base:h,inherit:!0,rules:[],colors:{"editor.background":"#171923"}},m.current.editor.defineTheme(n,r),m.current.editor.setTheme(n)},onChange:F,options:{automaticLayout:!1,selectOnLineNumbers:u,lineNumbers:u,languages:o,readOnly:P,minimap:{enabled:!1},scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:function(e){return e?0:10}(P)},renderLineHighlight:function(e){return e?"none":"line"}(P)}}),(0,g.jsxs)(js,{marginTop:1,children:[l&&(0,g.jsx)(Bx,{margin:1,onClick:function(){_.setValue(i),_.onCopy()},size:d,children:_.hasCopied?"Copied!":"Copy"}),c&&(0,g.jsx)(Bx,{margin:1,onClick:function(){uy(function(){var e;return null===(e=j())||void 0===e?void 0:e.getModel().getValue()}(),e)},size:d,children:"Download"}),f&&(0,g.jsx)(Bx,{margin:1,onClick:L,isDisabled:!o.includes("json"),size:d,children:"Format"})]})]})},rT=function(e,t){var n="";try{n=t()}catch(r){console.error("Error while processing row",r),n="Error while retrieving information"}return(0,g.jsxs)(Yx,{color:"white",children:[(0,g.jsx)($x,{children:(0,g.jsx)("p",{children:(0,g.jsx)("b",{children:e})})}),(0,g.jsx)($x,{children:n})]},e)},oT=function(e,t,n,r){var o=JSON.stringify(r,null,2),a="".concat(e,"-").concat(t,"-").concat(n,".json");return(0,g.jsx)(js,{children:nT(a,(function(){}),!0,["json"],250,o,!0,!1,!0,!0,!1,"xs")})},aT=function(e){var t=e.service;return(0,g.jsx)(Qx,{children:(0,g.jsx)(Gx,{variant:"simple",size:"sm",children:(0,g.jsxs)(eS,{children:[rT("Name",(function(){return t.name})),rT("UUID",(function(){return(0,g.jsx)("pre",{children:t.serviceUuid})})),rT("Status",(function(){return function(e){var t="",n="";if("RUNNING"===e||1===e)t="green",n="RUNNING";else if("STOPPED"===e||0===e)t="red",n="STOPPED";else{if("UNKNOWN"!==e&&2!==e)return(0,g.jsx)(Ux,{children:"N/A"});t="yellow",n="UNKNOWN"}return(0,g.jsx)(Ux,{colorScheme:t,children:n})}(t.serviceStatus)})),rT("Image",(function(){return t.container.imageName})),rT("Ports",(function(){return oT(t.shortenedUuid,t.name,"ports",t.ports)})),rT("ENTRYPOINT",(function(){return oT(t.shortenedUuid,t.name,"entrypoint",t.container.entrypointArgs)})),rT("CMD",(function(){return oT(t.shortenedUuid,t.name,"cmd",t.container.cmdArgs)})),rT("ENV",(function(){return oT(t.shortenedUuid,t.name,"env",t.container.envVars)}))]})})})},iT=function(){var e=It(),t=(0,r.useState)(!1),n=(0,v.Z)(t,2),o=(n[0],n[1],(0,r.useState)([])),a=(0,v.Z)(o,2),s=a[0],u=a[1],l=_t().state,c=l.services,f=l.selected,d=Ir().appData,h=Nt(),y=h.name,b=h.uuid;(0,r.useEffect)((function(){var e=new AbortController;return function(e){var t,n=function(){var n=m(p().mark((function n(){var r,o,a,s,l,c;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,gx(e,y,b,d.apiHost,!0,1500);case 2:t=n.sent,n.prev=3,r=!1,o=!1,n.prev=6,s=p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.value,""!==(n=t.serviceLogsByServiceUuid[b].line[0])&&u((function(e){return[].concat((0,i.Z)(e),[n])}));case 3:case"end":return e.stop()}}),e)})),l=jr(t);case 9:return n.next=11,l.next();case 11:if(!(r=!(c=n.sent).done)){n.next=16;break}return n.delegateYield(s(),"t0",13);case 13:r=!1,n.next=9;break;case 16:n.next=22;break;case 18:n.prev=18,n.t1=n.catch(6),o=!0,a=n.t1;case 22:if(n.prev=22,n.prev=23,!r||null==l.return){n.next=27;break}return n.next=27,l.return();case 27:if(n.prev=27,!o){n.next=30;break}throw a;case 30:return n.finish(27);case 31:return n.finish(22);case 32:n.next=37;break;case 34:n.prev=34,n.t2=n.catch(3),console.log("Abort Initial Log Stream! with error ",n.t2);case 37:case"end":return n.stop()}}),n,null,[[3,34],[6,18,22,32],[23,,27,31]])})));return function(){return n.apply(this,arguments)}}();n()}(e),function(){u([]),e.abort()}}),[b]);var k=function(t){var n="/enclaves/".concat(y,"/services/").concat(t.serviceUuid);e(n,{state:{services:c,selected:t}})},w=function(){return"logs"===h["*"]};return(0,g.jsxs)("div",{className:"flex h-full",children:[(0,g.jsx)(Sr,{home:!1,isServiceInfo:!0,heading:"Services",renderList:function(){return function(e,t){return e.map((function(e){return(0,g.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e)},children:(0,g.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},e.name)}))}(c,k)}}),(0,g.jsx)("div",{className:"flex h-full w-[calc(100vw-39rem)] flex-col space-y-5",children:(0,g.jsxs)("div",{className:"flex-col flex space-y-1 bg-[#171923]",children:[(0,g.jsxs)(Ls,{bg:"#171923",height:"80px",children:[(0,g.jsx)(js,{p:"2",m:"4",children:(0,g.jsxs)(Tx,{color:"white",fontSize:"xl",as:"b",children:[" ",w()?"Logs ":"Detailed Info "," for ",f.name," "]})}),(0,g.jsx)(Ms,{}),(0,g.jsxs)(Bx,{m:"4",onClick:function(){w()?e("/enclaves/".concat(y,"/services/").concat(f.serviceUuid),{state:{services:c,selected:f}}):e("/enclaves/".concat(y,"/services/").concat(f.serviceUuid,"/logs"),{state:{services:c,selected:f}})},children:[" ",w()?"View ".concat(f.name):"View Logs"," "]})]}),(0,g.jsxs)(Jt,{children:[(0,g.jsx)(Ht,{path:"/logs",element:s.length>0?(0,g.jsx)(dx,{logs:s,fileName:"".concat(y,"-").concat(f.name)}):(0,g.jsx)(kx,{color:"white",children:" No Logs Available"})}),(0,g.jsx)(Ht,{path:"/",element:(0,g.jsx)(aT,{service:f})})]})]})}),(0,g.jsx)(Tr,{home:!1,isServiceInfo:!0,enclaveName:y})]})},sT=function(e){var t=e.currentPath,n=e.handleOnClick,r=e.handleCleanButton,o=t.length,a=function(e){var t=e.text,n=e.last,r=e.color,o=void 0===r?"text-white":r,a=e.index,i=e.handleOnClick;return(0,g.jsxs)("div",{className:"".concat(o," cursor-default font-bold"),onClick:function(){return i(a)},children:[t," ",n?"":"/"]})};return(0,g.jsxs)("div",{className:"flex flex-row py-2 px-5 flex-wrap",children:[t.map((function(e,t){return(0,g.jsx)(a,{text:e,last:o-1===t,index:t,handleOnClick:n},t)})),t.length>0?(0,g.jsx)("div",{className:"mx-3",onClick:r,children:(0,g.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,g.jsx)("path",{color:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}):null]})},uT=function(e,t){return 0===e.length?(0,g.jsx)(en,{text:"No File Preview Available",size:"text-xl",color:"text-red-400"}):Object.keys(e).map((function(n,r){var o="".concat(n,"-").concat(r);return(0,g.jsx)("div",{className:"border-2 bg-[#171923] text-lg align-middle text-center h-16 p-3 text-[#24BA27]",onClick:function(){return t(n,e[n])},children:(0,g.jsxs)("div",{children:[" ",n," "]})},o)}))},lT=function(e){var t=e.enclaves,n=It(),o=Nt(),a=o.name,s=o.fileArtifactName,u=(0,r.useState)(!1),l=(0,v.Z)(u,2),c=l[0],d=l[1],h=(0,r.useState)({}),y=(0,v.Z)(h,2),b=y[0],k=y[1],w=(0,r.useState)({}),x=(0,v.Z)(w,2),S=x[0],T=x[1],E=(0,r.useState)([]),C=(0,v.Z)(E,2),_=C[0],O=C[1],I=(0,r.useState)({}),N=(0,v.Z)(I,2),P=N[0],A=N[1],j=_t().state.fileArtifacts,R=Ir().appData;(0,r.useEffect)((function(){if(0===t.length)n("/enclaves/".concat(a));else{d(!0);var e=function(){var e=m(p().mark((function e(){var n,r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t.filter((function(e){return e.name===a}))).length>0)){e.next=10;break}return e.next=4,wr(n[0].host,n[0].port,s,R.jwtToken,R.apiHost);case 4:r=e.sent,o=r.files,T(o),k(o),O([]),A({});case 10:d(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[s,R.jwtToken]);var D=function(e){n("/enclaves/".concat(a,"/files/").concat(e),{replace:!0,state:{fileArtifacts:j}})},F=function(e){var t,n=e.files,r=e.handleFileClick,o=e.detailInfo,a=e.enclaveName,i="".concat(a,"-").concat(o.path);return(0,g.jsx)("div",{className:"flex flex-col h-full space-y-1 overflow-auto",children:0!==Object.keys(o).length?(0,g.jsxs)("div",{className:"flex h-3/4 flex-col text-white",children:[(0,g.jsxs)("p",{className:"text-sm font-bold text-left",children:[" Size: ",null===(t=o.size)||void 0===t?void 0:t.toString()," B "]}),(0,g.jsxs)("p",{className:"text-sm font-bold text-left",children:[" Type: ",o.extension," "]}),o.textPreview.length>0?(0,g.jsx)(js,{children:nT(i,(function(){}),!0,[o.extension],500,o.textPreview,!1)}):(0,g.jsx)("p",{className:"break-all overflow-y-auto",children:(0,g.jsx)("h2",{className:"text-2xl text-center mt-20 text-red-800 font-bold",children:"No Preview Available"})})]}):(0,g.jsxs)("div",{className:"flex flex-col h-[85%] min-h-[85%] border-2",children:[(0,g.jsx)(nn,{color:"text-white",content:"Files",size:"text-xl"}),(0,g.jsx)("div",{className:"overflow-auto space-y-2",children:uT(n,r)})]})})};return(0,g.jsxs)("div",{className:"flex h-full",children:[(0,g.jsx)(Sr,{home:!1,heading:"File Artifacts",renderList:function(){return function(e,t){return e.map((function(e,n){var r="".concat(e.name,"-").concat(n);return(0,g.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e.name)},children:(0,g.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},r)}))}(j,D)}}),(0,g.jsxs)("div",{className:"flex bg-[#171923] w-[calc(100vw-39rem)] flex-col space-y-5",children:[(0,g.jsx)("div",{className:"h-[3rem] flex items-center justify-center m-2",children:(0,g.jsx)(nn,{color:"text-white",content:"".concat(a," - ").concat(s)})}),(0,g.jsx)(sT,{currentPath:_,handleOnClick:function(e){if(e===_.length-1);else{var t=_.slice(0,e+1),n=S;t.map((function(e){n=n[e]})),k(n),O(t),A({})}},handleCleanButton:function(){O([]),A({}),k(S)}}),c?(0,g.jsx)(Er,{}):(0,g.jsx)(F,{files:b,handleFileClick:function(e,t){var n=function(e){if(e)return e.split(".").pop()}(t.path);if((t=f(f({},t),{},{extension:n})).path){A(t);var r=S;_.map((function(e){r=r[e]})),O((function(t){return[].concat((0,i.Z)(t),[e])}))}else{var o=S;_.map((function(e){o=o[e]})),O((function(t){return[].concat((0,i.Z)(t),[e])})),k(o[e]),A({})}},detailInfo:P,enclaveName:a})]}),(0,g.jsx)(Tr,{isServiceInfo:!0,enclaveName:a})]})},cT=function(e){return(0,g.jsx)(Is.div,f(f({className:"chakra-stack__item"},e),{},{__css:f({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))};cT.displayName="StackItem";Object.freeze(["base","sm","md","lg","xl","2xl"]);function fT(e,t){return Array.isArray(e)?e.map((function(e){return null===e?null:t(e)})):Mr(e)?Object.keys(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{}):null!=e?t(e):null}function dT(e){return r.Children.toArray(e).filter((function(e){return(0,r.isValidElement)(e)}))}var pT=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],hT=Ns((function(e,t){var n=e.isInline,o=e.direction,a=e.align,i=e.justify,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.wrap,d=e.children,p=e.divider,h=e.className,m=e.shouldWrapChildren,v=u(e,pT),y=n?"row":null!=o?o:"column",b=(0,r.useMemo)((function(){return function(e){var t=e.spacing,n=e.direction,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":fT(n,(function(e){return r[e]}))}}({spacing:l,direction:y})}),[l,y]),k=!!p,w=!m&&!k,x=(0,r.useMemo)((function(){var e=dT(d);return w?e:e.map((function(t,n){var o="undefined"!==typeof t.key?t.key:n,a=n+1===e.length,i=m?(0,g.jsx)(cT,{children:t},o):t;if(!k)return i;var s=(0,r.cloneElement)(p,{__css:b}),u=a?null:s;return(0,g.jsxs)(r.Fragment,{children:[i,u]},o)}))}),[p,b,k,w,m,d]),S=Lr("chakra-stack",h);return(0,g.jsx)(Is.div,f(f({ref:t,display:"flex",alignItems:a,justifyContent:i,flexDirection:y,flexWrap:c,gap:k?void 0:l,className:S},v),{},{children:x}))}));hT.displayName="Stack";var mT=Ns((function(e,t){return(0,g.jsx)(hT,f(f({align:"center"},e),{},{direction:"row",ref:t}))}));mT.displayName="HStack";var vT=["children","className"],gT=Fl({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),yT=(0,v.Z)(gT,2),bT=yT[0],kT=yT[1],wT=Ns((function(e,t){var n=ac("Input",e),o=Aa(e),a=o.children,i=o.className,s=u(o,vT),l=Lr("chakra-input__group",i),c={},d=dT(a),p=n.field;d.forEach((function(e){var t,r;n&&(p&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=p.height)?t:p.h),p&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=p.height)?r:p.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));var h=d.map((function(t){var n,o,a=xx({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(o=t.props)?void 0:o.variant)||e.variant});return"Input"!==t.type.id?(0,r.cloneElement)(t,a):(0,r.cloneElement)(t,Object.assign(a,c,t.props))}));return(0,g.jsx)(Is.div,f(f({className:l,ref:t,__css:f({width:"100%",display:"flex",position:"relative",isolation:"isolate"},n.group),"data-group":!0},s),{},{children:(0,g.jsx)(bT,{value:n,children:h})}))}));wT.displayName="InputGroup";var xT=["placement"],ST={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},TT=Is("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),ET=Ns((function(e,t){var n,r=e.placement,o=void 0===r?"left":r,a=u(e,xT),i=null!=(n=ST[o])?n:{},s=kT();return(0,g.jsx)(TT,f(f({ref:t},a),{},{__css:f(f({},s.addon),i)}))}));ET.displayName="InputAddon";var CT=Ns((function(e,t){return(0,g.jsx)(ET,f(f({ref:t,placement:"left"},e),{},{className:Lr("chakra-input__left-addon",e.className)}))}));CT.displayName="InputLeftAddon",CT.id="InputLeftAddon";var _T=Ns((function(e,t){return(0,g.jsx)(ET,f(f({ref:t,placement:"right"},e),{},{className:Lr("chakra-input__right-addon",e.className)}))}));_T.displayName="InputRightAddon",_T.id="InputRightAddon";var OT=["id","isRequired","isInvalid","isDisabled","isReadOnly"],IT=["getRootProps","htmlProps"],NT=Fl({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),PT=(0,v.Z)(NT,2),AT=PT[0],jT=PT[1],RT=Fl({strict:!1,name:"FormControlContext"}),DT=(0,v.Z)(RT,2),FT=DT[0],LT=DT[1];var MT=Ns((function(e,t){var n=ac("Form",e),o=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,a=e.isDisabled,i=e.isReadOnly,s=u(e,OT),l=(0,r.useId)(),c=t||"field-".concat(l),d="".concat(c,"-label"),p="".concat(c,"-feedback"),h="".concat(c,"-helptext"),m=(0,r.useState)(!1),g=(0,v.Z)(m,2),y=g[0],b=g[1],k=(0,r.useState)(!1),w=(0,v.Z)(k,2),x=w[0],S=w[1],T=(0,r.useState)(!1),E=(0,v.Z)(T,2),C=E[0],_=E[1],O=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({id:h},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:ru(e,(function(e){e&&S(!0)}))})}),[h]),I=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,"data-focus":Zr(C),"data-disabled":Zr(a),"data-invalid":Zr(o),"data-readonly":Zr(i),id:void 0!==e.id?e.id:d,htmlFor:void 0!==e.htmlFor?e.htmlFor:c})}),[c,a,C,o,i,d]),N=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({id:p},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:ru(e,(function(e){e&&b(!0)})),"aria-live":"polite"})}),[p]),P=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),s),{},{ref:e,role:"group"})}),[s]),A=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!i,isDisabled:!!a,isFocused:!!C,onFocus:function(){return _(!0)},onBlur:function(){return _(!1)},hasFeedbackText:y,setHasFeedbackText:b,hasHelpText:x,setHasHelpText:S,id:c,labelId:d,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:O,getErrorMessageProps:N,getRootProps:P,getLabelProps:I,getRequiredIndicatorProps:A}}(Aa(e)),a=o.getRootProps,i=(o.htmlProps,u(o,IT)),s=Lr("chakra-form-control",e.className);return(0,g.jsx)(FT,{value:i,children:(0,g.jsx)(AT,{value:n,children:(0,g.jsx)(Is.div,f(f({},a({},t)),{},{className:s,__css:n.container}))})})}));MT.displayName="FormControl";var BT=Ns((function(e,t){var n=LT(),r=jT(),o=Lr("chakra-form__helper-text",e.className);return(0,g.jsx)(Is.div,f(f({},null==n?void 0:n.getHelpTextProps(e,t)),{},{__css:r.helperText,className:o}))}));BT.displayName="FormHelperText";var zT=["isDisabled","isInvalid","isReadOnly","isRequired"],ZT=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function UT(e){var t,n,r,o=LT(),a=e.id,i=e.disabled,s=e.readOnly,l=e.required,c=e.isRequired,d=e.isInvalid,p=e.isReadOnly,h=e.isDisabled,m=e.onFocus,v=e.onBlur,g=u(e,ZT),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&y.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&y.push(o.helpTextId),f(f({},g),{},{"aria-describedby":y.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=i?i:h)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:c)?r:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:Vr(null==o?void 0:o.onFocus,m),onBlur:Vr(null==o?void 0:o.onBlur,v)})}var VT=["htmlSize"],qT=Ns((function(e,t){var n=e.htmlSize,r=u(e,VT),o=ac("Input",r),a=function(e){var t=UT(e),n=t.isDisabled,r=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return f(f({},u(t,zT)),{},{disabled:n,readOnly:o,required:a,"aria-invalid":Ur(r),"aria-required":Ur(a),"aria-readonly":Ur(o)})}(Aa(r)),i=Lr("chakra-input",e.className);return(0,g.jsx)(Is.input,f(f({size:n},a),{},{__css:o.field,ref:t,className:i}))}));qT.displayName="Input",qT.id="Input";var HT=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],WT=Ns((function(e,t){var n=e.templateAreas,r=e.gap,o=e.rowGap,a=e.columnGap,i=e.column,s=e.row,l=e.autoFlow,c=e.autoRows,d=e.templateRows,p=e.autoColumns,h=e.templateColumns,m=u(e,HT),v={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:i,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:h};return(0,g.jsx)(Is.div,f({ref:t,__css:v},m))}));WT.displayName="Grid";var JT=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"];function GT(e){return fT(e,(function(e){return"auto"===e?"auto":"span ".concat(e,"/span ").concat(e)}))}var YT=Ns((function(e,t){var n=e.area,r=e.colSpan,o=e.colStart,a=e.colEnd,i=e.rowEnd,s=e.rowSpan,l=e.rowStart,c=u(e,JT),d=xx({gridArea:n,gridColumn:GT(r),gridRow:GT(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});return(0,g.jsx)(Is.div,f({ref:t,__css:d},c))}));YT.displayName="GridItem";var XT=Fl({name:"CheckboxGroupContext",strict:!1}),$T=(0,v.Z)(XT,2),KT=($T[0],$T[1]),QT=["isIndeterminate","isChecked"];function eE(e){return(0,g.jsx)(Is.svg,f(f({width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),{},{children:(0,g.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})}))}function tE(e){return(0,g.jsx)(Is.svg,f(f({width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4}},e),{},{children:(0,g.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}))}function nE(e){var t=e.isIndeterminate,n=e.isChecked,r=u(e,QT),o=t?tE:eE;return n||t?(0,g.jsx)(Is.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,g.jsx)(o,f({},r))}):null}function rE(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current&&o.current)return e();o.current=!0}),t),(0,r.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[])}var oE={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var aE=function(){return"undefined"!==typeof document};var iE=!1,sE=null,uE=!1,lE=!1,cE=new Set;function fE(e,t){cE.forEach((function(n){return n(e,t)}))}var dE="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function pE(e){var t;uE=!0,(t=e).metaKey||!dE&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(sE="keyboard",fE("keyboard",e))}function hE(e){if(sE="pointer","mousedown"===e.type||"pointerdown"===e.type){uE=!0;var t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch(r){}if(n)return;fE("pointer",e)}}function mE(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(uE=!0,sE="virtual")}function vE(e){e.target!==window&&e.target!==document&&(uE||lE||(sE="virtual",fE("virtual",e)),uE=!1,lE=!1)}function gE(){uE=!1,lE=!0}function yE(){return"pointer"!==sE}function bE(){if(aE()&&!iE){var e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){uE=!0;for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=UT(e),n=t.isDisabled,o=t.isReadOnly,a=t.isRequired,i=t.isInvalid,s=t.id,l=t.onBlur,c=t.onFocus,d=t["aria-describedby"],p=e.defaultChecked,h=e.isChecked,m=e.isFocusable,g=e.onChange,y=e.isIndeterminate,b=e.name,k=e.value,w=e.tabIndex,x=void 0===w?void 0:w,S=e["aria-label"],T=e["aria-labelledby"],E=e["aria-invalid"],C=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),o=(0,R.Z)(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;a in r&&delete r[a]}}catch(i){o.e(i)}finally{o.f()}return r}(u(e,wE),["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=Il(g),O=Il(l),I=Il(c),N=(0,r.useState)(!1),P=(0,v.Z)(N,2),A=P[0],j=P[1],D=(0,r.useState)(!1),F=(0,v.Z)(D,2),L=F[0],M=F[1],B=(0,r.useState)(!1),z=(0,v.Z)(B,2),Z=z[0],U=z[1],V=(0,r.useState)(!1),q=(0,v.Z)(V,2),H=q[0],W=q[1];(0,r.useEffect)((function(){return kE(j)}),[]);var J=(0,r.useRef)(null),G=(0,r.useState)(!0),Y=(0,v.Z)(G,2),X=Y[0],$=Y[1],K=(0,r.useState)(!!p),Q=(0,v.Z)(K,2),ee=Q[0],te=Q[1],ne=void 0!==h,re=ne?h:ee,oe=(0,r.useCallback)((function(e){o||n?e.preventDefault():(ne||te(re?e.target.checked:!!y||e.target.checked),null==_||_(e))}),[o,n,re,ne,y,_]);Ul((function(){J.current&&(J.current.indeterminate=Boolean(y))}),[y]),rE((function(){n&&M(!1)}),[n,M]),Ul((function(){var e=J.current;if(null==e?void 0:e.form){var t=function(){te(!!p)};return e.form.addEventListener("reset",t),function(){var n;return null==(n=e.form)?void 0:n.removeEventListener("reset",t)}}}),[]);var ae=n&&!m,ie=(0,r.useCallback)((function(e){" "===e.key&&W(!0)}),[W]),se=(0,r.useCallback)((function(e){" "===e.key&&W(!1)}),[W]);Ul((function(){J.current&&(J.current.checked!==re&&te(J.current.checked))}),[J.current]);var ue=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,"data-active":Zr(H),"data-hover":Zr(Z),"data-checked":Zr(re),"data-focus":Zr(L),"data-focus-visible":Zr(L&&A),"data-indeterminate":Zr(y),"data-disabled":Zr(n),"data-invalid":Zr(i),"data-readonly":Zr(o),"aria-hidden":!0,onMouseDown:Vr(e.onMouseDown,(function(e){L&&e.preventDefault(),W(!0)})),onMouseUp:Vr(e.onMouseUp,(function(){return W(!1)})),onMouseEnter:Vr(e.onMouseEnter,(function(){return U(!0)})),onMouseLeave:Vr(e.onMouseLeave,(function(){return U(!1)}))})}),[H,re,n,L,A,Z,y,i,o]),le=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:e,"data-active":Zr(H),"data-hover":Zr(Z),"data-checked":Zr(re),"data-focus":Zr(L),"data-focus-visible":Zr(L&&A),"data-indeterminate":Zr(y),"data-disabled":Zr(n),"data-invalid":Zr(i),"data-readonly":Zr(o)})}),[H,re,n,L,A,Z,y,i,o]),ce=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f(f({},C),e),{},{ref:ru(t,(function(e){e&&$("LABEL"===e.tagName)})),onClick:Vr(e.onClick,(function(){var e;X||(null==(e=J.current)||e.click(),requestAnimationFrame((function(){var e;null==(e=J.current)||e.focus({preventScroll:!0})})))})),"data-disabled":Zr(n),"data-checked":Zr(re),"data-invalid":Zr(i)})}),[C,n,re,i,X]),fe=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:ru(J,t),type:"checkbox",name:b,value:k,id:s,tabIndex:x,onChange:Vr(e.onChange,oe),onBlur:Vr(e.onBlur,O,(function(){return M(!1)})),onFocus:Vr(e.onFocus,I,(function(){return M(!0)})),onKeyDown:Vr(e.onKeyDown,ie),onKeyUp:Vr(e.onKeyUp,se),required:a,checked:re,disabled:ae,readOnly:o,"aria-label":S,"aria-labelledby":T,"aria-invalid":E?Boolean(E):i,"aria-describedby":d,"aria-disabled":n,style:oE})}),[b,k,s,oe,O,I,ie,se,a,re,ae,o,S,T,E,i,d,n,x]),de=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,onMouseDown:Vr(e.onMouseDown,SE),"data-disabled":Zr(n),"data-checked":Zr(re),"data-invalid":Zr(i)})}),[re,n,i]);return{state:{isInvalid:i,isFocused:L,isChecked:re,isActive:H,isHovered:Z,isIndeterminate:y,isDisabled:n,isReadOnly:o,isRequired:a},getRootProps:ce,getCheckboxProps:ue,getIndicatorProps:le,getInputProps:fe,getLabelProps:de,htmlProps:C}}function SE(e){e.preventDefault(),e.stopPropagation()}var TE=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],EE={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},CE={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},_E=Ax({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),OE=Ax({from:{opacity:0},to:{opacity:1}}),IE=Ax({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),NE=Ns((function(e,t){var n=KT(),o=ac("Checkbox",f(f({},n),e)),a=Aa(e),i=a.spacing,s=void 0===i?"0.5rem":i,l=a.className,c=a.children,d=a.iconColor,p=a.iconSize,h=a.icon,m=void 0===h?(0,g.jsx)(nE,{}):h,y=a.isChecked,b=a.isDisabled,k=void 0===b?null==n?void 0:n.isDisabled:b,w=a.onChange,x=a.inputProps,S=u(a,TE),T=y;(null==n?void 0:n.value)&&a.value&&(T=n.value.includes(a.value));var E=w;(null==n?void 0:n.onChange)&&a.value&&(E=function(){for(var e=arguments.length,t=new Array(e),n=0;n ").concat(o).toLowerCase()}catch(a){return"DICT".toLowerCase()}return e.toLowerCase()},zE=function(e){return e.name},ZE=function(e){return e.typeV2.topLevelType},UE=function(e){return e.typeV2.innerType1},VE=function(e){return e.typeV2.innerType2},qE=function(e){return e.isRequired},HE=function(e,t,n,r,o){return e.map((function(e,a){if("plan"!==zE(e)){var i="STRING";try{switch(ZE(e)){case"INTEGER":i="INTEGER";break;case"STRING":i="STRING";break;case"BOOL":i="BOOL";break;case"FLOAT":i="FLOAT";break;case"DICT":i="DICT";break;case"LIST":i="LIST";break;default:i="JSON"}}catch(s){console.log("no data type provided, falling back to string")}return(0,g.jsxs)(Ls,{color:"white",children:[(0,g.jsxs)(Ls,{mr:"3",direction:"column",w:"15%",children:[(0,g.jsxs)(Tx,{marginLeft:3,align:"right",fontSize:"l",children:[jE()(e.name),(0,g.jsx)(Tx,{fontSize:"l",as:"span",color:"red",children:(0,g.jsx)(Hg,{label:"Required variable",children:(0,g.jsx)("span",{children:e.isRequired?" *":null})})}),(0,g.jsx)(Hg,{label:e.description,children:(0,g.jsx)(RE,{marginLeft:2})})]}),(0,g.jsx)(Tx,{marginLeft:3,as:"kbd",fontSize:"xs",align:"right",children:BE(i,e)})]}),(0,g.jsxs)(Ls,{flex:"1",mr:"3",direction:"column",children:[r[a].length>0?(0,g.jsx)(Tx,{marginLeft:3,align:"left",fontSize:"xs",color:"red.500",children:r[a]}):null,WE(e.name,i,r,n,a,t,o)]})]},"entry-".concat(a))}}))},WE=function(e,t,n,r,o,a,i){var s="".concat(i,"-").concat(e);switch(t){case"INTEGER":case"STRING":case"BOOL":case"LIST":case"FLOAT":return(0,g.jsx)(qT,{color:"gray.300",onChange:function(e){return a(e.target.value,o)},value:r[o],borderColor:n[o]?"red.400":null});case"JSON":return(0,g.jsx)(js,{border:n[o]?"1px":null,borderColor:n[o]?"red.400":null,children:nT(s,(function(e){return a(e,o)}))});case"DICT":return(0,g.jsx)(js,{border:n[o]?"1px":null,borderColor:n[o]?"red.400":null,children:ME((function(e){return a(e,o)}))});default:return(0,g.jsx)("p",{children:"Unsupported data type encountered"},"data-".concat(o))}},JE=function(e){if(void 0===e||"undefined"===e||0===e.length)return!1;try{return JSON.parse(e),!0}catch(t){return!1}},GE=function(e,t){var n=function(e){switch(e.trim().toLowerCase()){case"int":case"integer":case"float":return"number";case"str":case"string":return"string";case"bool":case"boolean":return"boolean";case"dict":case"json":return"object"}}(t),r=e.trim(),o="[".concat(r,"]"),a=JSON.parse(o);return a.forEach((function(e){var t=typeof e;if(t!==n)throw"Invalid datatype: Expected ".concat(n," but got ").concat(t)})),a},YE=function(e){var t=e.createEnclave,n=It(),o=_t().state.kurtosisPackage,a=(0,r.useState)(!1),i=(0,v.Z)(a,2),s=i[0],u=i[1],c=(0,r.useState)(""),d=(0,v.Z)(c,2),h=d[0],y=d[1],b=(0,r.useState)(!1),k=(0,v.Z)(b,2),w=k[0],x=k[1],S={};o.args.forEach((function(e,t){"plan"!==e.name&&(S[t]="")}));var T=(0,r.useState)(S),E=(0,v.Z)(T,2),C=E[0],_=E[1],O={};o.args.forEach((function(e,t){"plan"!==e.name&&(O[t]="")}));var I=(0,r.useState)(O),N=(0,v.Z)(I,2),P=N[0],A=N[1],j=function(){var e=m(p().mark((function e(n,r,o){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n,r,o);case 2:u(!1);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return(0,g.jsx)("div",{className:"w-screen",children:(0,g.jsxs)(WT,{templateAreas:'"option"\n "packageId"\n "main"\n "configure"',gridTemplateRows:"60px 60px 1fr 60px",gridTemplateColumns:"1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,g.jsx)(YT,{area:"option",pt:"1",children:(0,g.jsx)(PE,{catalog:!0})}),(0,g.jsx)(YT,{area:"packageId",p:"1",children:(0,g.jsxs)(Ls,{direction:"column",gap:"2",children:[(0,g.jsx)(kx,{children:(0,g.jsxs)(Tx,{color:"white",fontSize:"2xl",children:[" ",o.name," "]})}),(0,g.jsx)(NE,{marginLeft:2,color:"white",fontSize:"xl",isChecked:w,onChange:function(e){return x(e.target.checked)},children:(0,g.jsxs)(Tx,{children:["Restart services",(0,g.jsx)(Hg,{label:"When enabled, Kurtosis will automatically restart any services that crash inside the enclave",children:(0,g.jsx)(RE,{marginLeft:2})})]})})]})}),(0,g.jsx)(YT,{area:"main",h:"90%",overflowY:"scroll",mt:"10",children:(0,g.jsxs)(hT,{spacing:4,children:[(0,g.jsxs)(Ls,{color:"white",children:[(0,g.jsx)(Ls,{mr:"3",direction:"column",w:"15%",children:(0,g.jsxs)(Tx,{marginLeft:3,align:"right",fontSize:"l",children:["Enclave Name",(0,g.jsx)(Hg,{label:"Leave empty to auto-generate an enclave name",children:(0,g.jsx)(RE,{marginLeft:2})})]})}),(0,g.jsx)(Ls,{flex:"1",mr:"3",direction:"column",children:(0,g.jsx)(qT,{color:"gray.300",value:h,onChange:function(e){return y(e.target.value)}})})]}),HE(o.args,(function(e,t){var n=f(f({},C),{},(0,l.Z)({},t,e));if(_(n),P[t]){var r=f(f({},P),{},(0,l.Z)({},t,!1));A(r)}}),C,P,o.name)]})}),(0,g.jsx)(YT,{area:"configure",m:"10px",children:(0,g.jsxs)(Ls,{gap:5,children:[(0,g.jsx)(Bx,{colorScheme:"red",w:"50%",onClick:function(){n("/catalog")},children:" Cancel "}),(0,g.jsx)(Bx,{bg:"#24BA27",w:"50%",onClick:function(){var e={};if(Object.keys(C).filter((function(t){var n=o.args[t],r="";try{r=ZE(n)}catch(u){}if(qE(n)||0!==C[t].length){var a=!0;if("STRING"===r)a=function(e){if("undefined"===e||0===e.length)return!1;try{return"string"===typeof JSON.parse(e)}catch(t){return!e.includes('"')&&!e.includes("'")}}(C[t]);else if("INTEGER"===r)a=function(e){if("undefined"===e)return!1;try{var t=e.trim();return/^-?\d+$/.test(t)}catch(n){return!1}}(C[t]);else if("BOOL"===r)a=function(e){var t=e.trim();return["TRUE","FALSE"].includes(t.toUpperCase())}(C[t]);else if("FLOAT"===r)a=function(e){if("undefined"===e)return!1;var t=e.trim();return 0!==t.length&&!isNaN(Number(t))}(C[t]);else if("LIST"===r){var i=UE(n);a=function(e,t){if("undefined"===e)return!1;try{return GE(e,t),!0}catch(n){return!1}}(C[t],i)}else a="DICT"===r||"JSON"===r?JE(C[t]):function(e){try{LE.load(e)}catch(t){return!1}return!0}(C[t]);var s=r;s=void 0===r?"JSON":"BOOL"===r?"BOOLEAN (TRUE/FALSE)":BE(r,o.args[t]),a||(e[t]="Incorrect type: expected ".concat(s))}})),Object.keys(C).filter((function(t){var n=!0;qE(o.args[t])&&0===C[t].length&&(n=!1),n||(e[t]="This field is required and cannot be empty")})),0===Object.keys(e).length){u(!0);var t={};Object.keys(C).map((function(e){var n=o.args[e],r=zE(n),a="";try{a=ZE(n)}catch(l){}var i,s=C[e];if(s.length>0)if("INTEGER"===a)i=parseInt(s),t[r]=i;else if("BOOL"===a)i=s.toUpperCase(),t[r]="TRUE"===i;else if("FLOAT"===a)i=parseFloat(s),t[r]=i;else if("LIST"===a){var u=UE(o,e);i=GE(s,u),t[r]=i}else"STRING"===a?t[r]=s:(i=JSON.parse(s),t[r]=i)}));var n=JSON.stringify(t),r={packageId:o.name,args:n};j(r,h,w)}else{var a=f(f({},P),e);A(a)}},isLoading:s,loadingText:"Running...",children:"Run"})]})})]})})},XE=["children","styleType","stylePosition","spacing"],$E=["as"],KE=["as"],QE=Fl({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"
\" "}),eC=(0,v.Z)(QE,2),tC=eC[0],nC=eC[1],rC=Ns((function(e,t){var n=ac("List",e),r=Aa(e),o=r.children,a=r.styleType,i=void 0===a?"none":a,s=r.stylePosition,c=r.spacing,d=u(r,XE),p=dT(o),h=c?(0,l.Z)({},"& > *:not(style) ~ *:not(style)",{mt:c}):{};return(0,g.jsx)(tC,{value:n,children:(0,g.jsx)(Is.ul,f(f({ref:t,listStyleType:i,listStylePosition:s,role:"list",__css:f(f({},n.container),h)},d),{},{children:p}))})}));rC.displayName="List",Ns((function(e,t){e.as;var n=u(e,$E);return(0,g.jsx)(rC,f({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))})).displayName="OrderedList",Ns((function(e,t){e.as;var n=u(e,KE);return(0,g.jsx)(rC,f({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))})).displayName="UnorderedList";var oC=Ns((function(e,t){var n=nC();return(0,g.jsx)(Is.li,f(f({ref:t},e),{},{__css:n.item}))}));oC.displayName="ListItem";var aC=Ns((function(e,t){var n=nC();return(0,g.jsx)(Gg,f(f({ref:t,role:"presentation"},e),{},{__css:n.icon}))}));aC.displayName="ListIcon";var iC=["placement"],sC=["className"],uC=["className"],lC=Is("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),cC=Ns((function(e,t){var n,r,o,a=e.placement,i=void 0===a?"left":a,s=u(e,iC),c=kT(),d=c.field,p="left"===i?"insetStart":"insetEnd",h=f((n={},(0,l.Z)(n,p,"0"),(0,l.Z)(n,"width",null!=(r=null==d?void 0:d.height)?r:null==d?void 0:d.h),(0,l.Z)(n,"height",null!=(o=null==d?void 0:d.height)?o:null==d?void 0:d.h),(0,l.Z)(n,"fontSize",null==d?void 0:d.fontSize),n),c.element);return(0,g.jsx)(lC,f({ref:t,__css:h},s))}));cC.id="InputElement",cC.displayName="InputElement";var fC=Ns((function(e,t){var n=e.className,r=u(e,sC),o=Lr("chakra-input__left-element",n);return(0,g.jsx)(cC,f({ref:t,placement:"left",className:o},r))}));fC.id="InputLeftElement",fC.displayName="InputLeftElement";var dC=Ns((function(e,t){var n=e.className,r=u(e,uC),o=Lr("chakra-input__right-element",n);return(0,g.jsx)(cC,f({ref:t,placement:"right",className:o},r))}));dC.id="InputRightElement",dC.displayName="InputRightElement";var pC=Yg({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),hC=n(5586);function mC(e){return e&&"object"===typeof e?"position"in e||"type"in e?gC(e.position):"start"in e||"end"in e?gC(e):"line"in e||"column"in e?vC(e):"":""}function vC(e){return yC(e&&e.line)+":"+yC(e&&e.column)}function gC(e){return vC(e&&e.start)+"-"+vC(e&&e.end)}function yC(e){return e&&"number"===typeof e?e:1}var bC=function(e){(0,w.Z)(n,e);var t=(0,x.Z)(n);function n(e,r,o){var a;(0,b.Z)(this,n);var i=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(a=t.call(this),"string"===typeof r&&(o=r,r=void 0),"string"===typeof o){var u=o.indexOf(":");-1===u?i[1]=o:(i[0]=o.slice(0,u),i[1]=o.slice(u+1))}return r&&("type"in r||"position"in r?r.position&&(s=r.position):"start"in r||"end"in r?s=r:("line"in r||"column"in r)&&(s.start=r)),a.name=mC(r)||"1:1",a.message="object"===typeof e?e.message:e,a.stack="","object"===typeof e&&e.stack&&(a.stack=e.stack),a.reason=a.message,a.fatal,a.line=s.start.line,a.column=s.start.column,a.position=s,a.source=i[0],a.ruleId=i[1],a.file,a.actual,a.expected,a.url,a.note,a}return(0,k.Z)(n)}(_(Error));bC.prototype.file="",bC.prototype.name="",bC.prototype.reason="",bC.prototype.message="",bC.prototype.stack="",bC.prototype.fatal=null,bC.prototype.column=null,bC.prototype.line=null,bC.prototype.source=null,bC.prototype.ruleId=null,bC.prototype.position=null;var kC={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');wC(e);var n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";var i=-1,s=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),s>-1&&(e.charCodeAt(a)===t.charCodeAt(s--)?s<0&&(o=a):(s=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(wC(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){wC(e);var t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){var s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===o+1)return"";return e.slice(a,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),o=0;o2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=u,s=0;continue}}else if(o.length>0){o="",a=0,i=u,s=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,u):o=e.slice(i+1,u),a=u-i-1;i=u,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function wC(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var xC={cwd:function(){return"/"}};function SC(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function TC(e){if("string"===typeof e)e=new URL(e);else if(!SC(e)){var 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){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r1?u-1:0),c=1;co.length;l&&o.push(a);try{u=e.apply(this,o)}catch(r){if(l&&n)throw r;return a(r)}l||(u instanceof Promise?u.then(i,a):u instanceof Error?a(u):i(u))}function a(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a1?n-1:0),u=1;ua?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice.apply(e,(0,i.Z)(o));else for(n&&e.splice(t,n);s0?(WC(e,e.length,0,t),e):t}var GC={}.hasOwnProperty;function YC(e){for(var t={},n=-1;++nr))return;for(var l,c,f=o.events.length,d=f;d--;)if("exit"===o.events[d][0]&&"chunkFlow"===o.events[d][1].type){if(l){c=o.events[d][1].end;break}l=!0}for(g(i),u=f;ut;){var r=a[n];o.containerState=r[1],r[0].exit.call(o,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},h_={tokenize:function(e,t,n){return f_(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var m_={tokenize:function(e,t,n){return function(t){return s_(t)?f_(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||a_(e)?t(e):n(e)}},partial:!0};function v_(e){for(var t,n,r,o,a,i,s,u={},l=-1;++l=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};var k_={tokenize:function(e){var t=this,n=e.attempt(m_,(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,f_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(y_,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)}}};var w_={resolveAll:E_()},x_=T_("string"),S_=T_("text");function T_(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return u(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;var t=r[e],o=-1;if(t)for(;++o-1){var s=n[0];"string"===typeof s?n[0]=s.slice(o):n.shift()}i>0&&n.push(e[a].slice(0,i))}return n}(s,e)}function p(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function h(){for(var e;r._index=3&&(null===a||a_(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),s_(t)?f_(e,a,"whitespace")(t):a(t))}}};var N_={name:"list",tokenize:function(e,t,n){var r=this,o=r.events[r.events.length-1],a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){var o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:n_(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(I_,n,u)(t):u(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return n_(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):n(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(m_,r.interrupt?n:l,e.attempt(P_,f,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function c(t){return s_(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(m_,o,a);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,f_(e,t,"listItemIndent",r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!s_(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(A_,t,i)(n))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,f_(e,e.attempt(N_,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},P_={tokenize:function(e,t,n){var r=this;return f_(e,(function(e){var o=r.events[r.events.length-1];return!s_(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},A_={tokenize:function(e,t,n){var r=this;return f_(e,(function(e){var 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)},partial:!0};var j_={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return s_(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){var r=this;return function(t){if(s_(t))return f_(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(j_,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function R_(e,t,n,r,o,a,i,s,u){var l=u||Number.POSITIVE_INFINITY,c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||32===t||41===t||t_(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function f(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||a_(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(o){return c||null!==o&&41!==o&&!i_(o)?c999||null===f||91===f||93===f&&!i||94===f&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):93===f?(e.exit(a),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):a_(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||a_(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),i||(i=!s_(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function F_(e,t,n,r,o,a){var i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),u(n))}function u(t){return t===i?(e.exit(a),s(i)):null===t?n(t):a_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f_(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===i||null===t||a_(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return t===i||92===t?(e.consume(t),l):l(t)}}function L_(e,t){var n;return function r(o){if(a_(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(s_(o))return f_(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function M_(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var B_={name:"definition",tokenize:function(e,t,n){var r,o=this;return function(t){return e.enter("definition"),function(t){return D_.call(o,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return r=M_(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return i_(t)?L_(e,s)(t):s(t)}function s(t){return R_(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(z_,l,l)(t)}function l(t){return s_(t)?f_(e,c,"whitespace")(t):c(t)}function c(a){return null===a||a_(a)?(e.exit("definition"),o.parser.defined.push(r),t(a)):n(a)}}},z_={tokenize:function(e,t,n){return function(t){return i_(t)?L_(e,r)(t):n(t)};function r(t){return F_(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return s_(t)?f_(e,a,"whitespace")(t):a(t)}function a(e){return null===e||a_(e)?t(e):n(e)}},partial:!0};var Z_={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),f_(e,o,"linePrefix",5)(t)};function o(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):a_(t)?e.attempt(U_,a,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||a_(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},U_={tokenize:function(e,t,n){var r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):a_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):f_(e,a,"linePrefix",5)(t)}function a(e){var a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):a_(e)?o(e):n(e)}},partial:!0};var V_={name:"headingAtx",tokenize:function(e,t,n){var 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||i_(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||a_(n)?(e.exit("atxHeading"),t(n)):s_(n)?f_(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||i_(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}},resolve:function(e,t){var n,r,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&WC(e,a,o-a+1,[["enter",n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},t],["enter",r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var q_={name:"setextUnderline",tokenize:function(e,t,n){var r,o=this;return function(t){var i,s=o.events.length;for(;s--;)if("lineEnding"!==o.events[s][1].type&&"linePrefix"!==o.events[s][1].type&&"content"!==o.events[s][1].type){i="paragraph"===o.events[s][1].type;break}if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t);return n(t)};function a(t){return t===r?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),s_(t)?f_(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||a_(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);var i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};var H_=["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"],W_=["pre","script","style","textarea"],J_={name:"htmlFlow",tokenize:function(e,t,n){var r,o,a,i,s,u=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(i){return 33===i?(e.consume(i),c):47===i?(e.consume(i),o=!0,p):63===i?(e.consume(i),r=3,u.interrupt?t:R):KC(i)?(e.consume(i),a=String.fromCharCode(i),h):n(i)}function c(o){return 45===o?(e.consume(o),r=2,f):91===o?(e.consume(o),r=5,i=0,d):KC(o)?(e.consume(o),r=4,u.interrupt?t:R):n(o)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:R):n(r)}function d(r){var o="CDATA[";return r===o.charCodeAt(i++)?(e.consume(r),6===i?u.interrupt?t:C:d):n(r)}function p(t){return KC(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(i){if(null===i||47===i||62===i||i_(i)){var s=47===i,l=a.toLowerCase();return s||o||!W_.includes(l)?H_.includes(a.toLowerCase())?(r=6,s?(e.consume(i),m):u.interrupt?t(i):C(i)):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(i):o?v(i):g(i)):(r=1,u.interrupt?t(i):C(i))}return 45===i||QC(i)?(e.consume(i),a+=String.fromCharCode(i),h):n(i)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function v(t){return s_(t)?(e.consume(t),v):T(t)}function g(t){return 47===t?(e.consume(t),T):58===t||95===t||KC(t)?(e.consume(t),y):s_(t)?(e.consume(t),g):T(t)}function y(t){return 45===t||46===t||58===t||95===t||QC(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),k):s_(t)?(e.consume(t),b):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):s_(t)?(e.consume(t),k):x(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||a_(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||i_(t)?b(t):(e.consume(t),x)}function S(e){return 47===e||62===e||s_(e)?g(e):n(e)}function T(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||a_(t)?C(t):s_(t)?(e.consume(t),E):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),j):!a_(t)||6!==r&&7!==r?null===t||a_(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(G_,F,_)(t))}function _(t){return e.check(Y_,O,F)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||a_(t)?_(t):(e.enter("htmlFlowData"),C(t))}function N(t){return 45===t?(e.consume(t),R):C(t)}function P(t){return 47===t?(e.consume(t),a="",A):C(t)}function A(t){if(62===t){var n=a.toLowerCase();return W_.includes(n)?(e.consume(t),D):C(t)}return KC(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):C(t)}function j(t){return 93===t?(e.consume(t),R):C(t)}function R(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),R):C(t)}function D(t){return null===t||a_(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),D)}function F(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var 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},concrete:!0},G_={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(m_,t,n)}},partial:!0},Y_={tokenize:function(e,t,n){var r=this;return function(t){if(a_(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)}},partial:!0};var X_={tokenize:function(e,t,n){var 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)}},partial:!0},$_={name:"codeFenced",tokenize:function(e,t,n){var r,o=this,a={tokenize:function(e,t,n){var a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u}function u(t){return e.enter("codeFencedFence"),s_(t)?f_(e,l,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===r?(a++,e.consume(t),c):a>=s?(e.exit("codeFencedFenceSequence"),s_(t)?f_(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||a_(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,s=0;return function(t){return function(t){var n=o.events[o.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}(t)};function u(t){return t===r?(s++,e.consume(t),u):s<3?n(t):(e.exit("codeFencedFenceSequence"),s_(t)?f_(e,l,"whitespace")(t):l(t))}function l(n){return null===n||a_(n)?(e.exit("codeFencedFence"),o.interrupt?t(n):e.check(X_,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||a_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):s_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f_(e,f,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),c)}function f(t){return null===t||a_(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||a_(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===r?n(t):(e.consume(t),d)}function p(t){return e.attempt(a,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&s_(t)?f_(e,v,"linePrefix",i+1)(t):v(t)}function v(t){return null===t||a_(t)?e.check(X_,p,y)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||a_(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var K_=document.createElement("i");function Q_(e){var t="&"+e+";";K_.innerHTML=t;var n=K_.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}var eO={name:"characterReference",tokenize:function(e,t,n){var r,o,a=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,o=QC,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=r_,l):(e.enter("characterReferenceValue"),r=7,o=n_,l(t))}function l(s){if(59===s&&i){var u=e.exit("characterReferenceValue");return o!==QC||Q_(a.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);cO(f,-s),cO(d,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[c][1].start=Object.assign({},i.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=JC(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=JC(u,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=JC(u,__(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=JC(u,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,u=JC(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,WC(e,n-1,c-n+3,u),c=n+u.length-l-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var AO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jO(e){return e.replace(AO,RO)}function RO(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),o=120===r||88===r;return PO(n.slice(o?2:1),o?16:10)}return Q_(n)||e}var DO={}.hasOwnProperty,FO=function(t,n,r){return"string"!==typeof n&&(r=n,n=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:_,autolinkEmail:_,atxHeading:s(K),blockQuote:s(J),characterEscape:_,characterReference:_,codeFenced:s(G),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(G,u),codeText:s(Y,u),codeTextData:_,data:_,codeFlowValue:_,definition:s(X),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s($),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(ee,u),htmlFlowData:_,htmlText:s(ee,u),htmlTextData:_,image:s(te),label:u,link:s(ne),listItem:s(oe),listItemValue:h,listOrdered:s(re,p),listUnordered:s(re),paragraph:s(ae),reference:Z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(K),strong:s(ie),thematicBreak:s(ue)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:W,autolinkProtocol:H,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:q,codeFenced:c(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:c(b),codeText:c(j),codeTextData:O,data:O,definition:c(),definitionDestinationString:x,definitionLabelString:k,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(N),hardBreakTrailing:c(N),htmlFlow:c(P),htmlFlowData:O,htmlText:c(A),htmlTextData:O,image:c(D),label:L,labelText:F,lineEnding:I,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:U,resourceDestinationString:M,resourceTitleString:B,resource:z,setextHeading:c(C),setextHeadingLineSequence:E,setextHeadingText:T,strong:c(),thematicBreak:c()}};MO(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:l,exit:f,buffer:u,resume:d,setData:a,getData:i},s=[],c=-1;++c0){var h=r.tokenStack[r.tokenStack.length-1];(h[1]||zO).call(r,void 0,h[0])}for(n.position={start:LO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:LO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c55295&&a<57344){var s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),o=1):i="\ufffd"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}var VO=function(e){if(void 0===e||null===e)return HO;if("string"===typeof e)return function(e){return qO(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){var t=[],n=-1;for(;++n1?n-1:0),o=1;o":"")+")"})}return f;function f(){var l,c,f,d=[];if((!t||o(i,s,u[u.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(i,u)),false===d[0]))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=u.concat(i);c>-1&&c-1?n.offset:null}}}var $O={}.hasOwnProperty;function KO(e){return String(e||"").toUpperCase()}function QO(e,t){var n,r=String(t.identifier).toUpperCase(),o=UO(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);-1===a?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=a+1);var i=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);var u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function eI(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});var i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function tI(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var nI=9,rI=32;function oI(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,a=[];r;)a.push(aI(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(aI(t.slice(o),o>0,!1)),a.join("")}function aI(e,t,n){var r=0,o=e.length;if(t)for(var a=e.codePointAt(r);a===nI||a===rI;)r++,a=e.codePointAt(r);if(n)for(var i=e.codePointAt(o-1);i===nI||i===rI;)o--,i=e.codePointAt(o-1);return o>r?e.slice(r,o):""}var iI={blockquote:function(e,t){var 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){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);var a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:QO,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},QO(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){var 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.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return eI(e,t);var r={src:UO(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){var n={src:UO(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return eI(e,t);var r={href:UO(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){var n={href:UO(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var 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){var r=e.all(t),o=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}for(var c=-1;++c0){var i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=GO(t.children[1]),u=YO(t.children[t.children.length-1]);s.line&&u.line&&(i.position={start:s,end:u}),o.push(i)}var l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length,s=-1,u=[];++s0&&n.push({type:"text",value:"\n"}),n}function mI(e,t){var n=lI(e,t),r=n.one(e,null),o=function(e){for(var t=[],n=-1;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(l)}var c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){var d,p=c.children[c.children.length-1];p&&"text"===p.type?p.value+=" ":c.children.push({type:"text",value:" "}),(d=c.children).push.apply(d,u)}else o.push.apply(o,u);var h={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,h),t.push(h)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:f(f({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var vI=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,o){e.run(mI(n,t),r,(function(e){o(e)}))}}(e,t):function(e){return function(t){return mI(t,e)}}(e||t)};var gI=n(2007),yI=(0,k.Z)((function e(t,n,r){(0,b.Z)(this,e),this.property=t,this.normal=n,r&&(this.space=r)}));function bI(e,t){for(var n={},r={},o=-1;++oo||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}var oN={}.hasOwnProperty,aN=new Set(["table","thead","tbody","tfoot","tr"]);function iN(e,t){for(var n,r=[],o=-1;++o0?r.createElement(m,c,d):r.createElement(m,c)}function uN(e,t){for(var n=-1,r=0;++n4&&"data"===n.slice(0,4)&&YI.test(t)){if("-"===t.charAt(4)){var a=t.slice(5).replace(XI,QI);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{var i=t.slice(4);if(!XI.test(i)){var s=i.replace($I,KI);"-"!==s.charAt(0)&&(s="-"+s),t="data"+s}}o=AI}return new o(r,t)}(r.schema,t),a=n;null!==a&&void 0!==a&&a===a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e,t){var n=t||{};return(""===e[e.length-1]?[].concat((0,i.Z)(e),[""]):e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"===typeof a&&(a=function(e){var t={};try{tN(e,n)}catch(r){}return t;function n(e,n){var r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,cN)]=n}}(a)),o.space&&o.property?e[oN.call(eN,o.property)?eN[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}function cN(e,t){return t.toUpperCase()}var fN={}.hasOwnProperty,dN={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function pN(e){for(var t in dN)if(fN.call(dN,t)&&fN.call(e,t)){var n=dN[t];console.warn("[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(n.id,"> for more info)")),delete dN[t]}var o=RC().use(ZO).use(e.remarkPlugins||[]).use(vI,f(f({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(WI,e),a=new CC;"string"===typeof e.children?a.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var i=o.runSync(o.parse(a),a);if("root"!==i.type)throw new TypeError("Expected a `root` node");var s=r.createElement(r.Fragment,{},iN({options:e,schema:qI,listDepth:0},i));return e.className&&(s=r.createElement("div",{className:e.className},s)),s}pN.propTypes={children:gI.string,className:gI.string,allowElement:gI.func,allowedElements:gI.arrayOf(gI.string),disallowedElements:gI.arrayOf(gI.string),unwrapDisallowed:gI.bool,remarkPlugins:gI.arrayOf(gI.oneOfType([gI.object,gI.func,gI.arrayOf(gI.oneOfType([gI.bool,gI.string,gI.object,gI.func,gI.arrayOf(gI.any)]))])),rehypePlugins:gI.arrayOf(gI.oneOfType([gI.object,gI.func,gI.arrayOf(gI.oneOfType([gI.bool,gI.string,gI.object,gI.func,gI.arrayOf(gI.any)]))])),sourcePos:gI.bool,rawSourcePos:gI.bool,skipHtml:gI.bool,includeElementIndex:gI.bool,transformLinkUri:gI.oneOfType([gI.func,gI.bool]),linkTarget:gI.oneOfType([gI.func,gI.string]),transformImageUri:gI.func,components:gI.object};for(var hN={tokenize:function(e,t,n){var r=0;return function t(a){if((87===a||119===a)&&r<3)return r++,e.consume(a),t;if(46===a&&3===r)return e.consume(a),o;return n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},mN={tokenize:function(e,t,n){var r,o,a;return i;function i(t){return 46===t||95===t?e.check(gN,u,s)(t):null===t||i_(t)||l_(t)||45!==t&&u_(t)?u(t):(a=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function u(e){return o||r||!a?n(e):t(e)}},partial:!0},vN={tokenize:function(e,t){var n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}xN[43]=wN,xN[45]=wN,xN[46]=wN,xN[95]=wN,xN[72]=[wN,kN],xN[104]=[wN,kN],xN[87]=[wN,bN],xN[119]=[wN,bN];var NN={tokenize:function(e,t,n){var r=this;return f_(e,(function(e){var 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 PN(){var e;return{document:(0,l.Z)({},91,{tokenize:DN,continuation:{tokenize:FN},exit:LN}),text:(e={},(0,l.Z)(e,91,{tokenize:RN}),(0,l.Z)(e,93,{add:"after",tokenize:AN,resolveTo:jN}),e)}}function AN(e,t,n){for(var r,o=this,a=o.events.length,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);a--;){var s=o.events[a][1];if("labelImage"===s.type){r=s;break}if("gfmFootnoteCall"===s.type||"labelLink"===s.type||"label"===s.type||"image"===s.type||"link"===s.type)break}return function(a){if(!r||!r._balanced)return n(a);var s=M_(o.sliceSerialize({start:r.end,end:o.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function jN(e,t){for(var n=e.length;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";var 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++;var a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice.apply(e,[n,e.length-n+1].concat(s)),e}function RN(e,t,n){var r,o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){if(i>999||93===s&&!r||null===s||91===s||i_(s))return n(s);if(93===s){e.exit("chunkString");var c=e.exit("gfmFootnoteCallString");return a.includes(M_(o.sliceSerialize(c)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return i_(s)||(r=!0),i++,e.consume(s),92===s?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),i++,u):u(t)}}function DN(e,t,n){var r,o,a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(s>999||93===t&&!o||null===t||91===t||i_(t))return n(t);if(93===t){e.exit("chunkString");var i=e.exit("gfmFootnoteDefinitionLabelString");return r=M_(a.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return i_(t)||(o=!0),s++,e.consume(t),92===t?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(r)||i.push(r),f_(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function FN(e,t,n){return e.check(m_,t,e.attempt(NN,t,n))}function LN(e){e.exit("gfmFootnoteDefinition")}function MN(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,r){var o=this.previous,a=this.events,i=0;return function(t){if(126===o&&"characterEscape"!==a[a.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(a){var u=uO(o);if(126===a)return i>1?r(a):(e.consume(a),i++,s);if(i<2&&!t)return r(a);var l=e.exit("strikethroughSequenceTemporary"),c=uO(a);return l._open=!c||2===c&&Boolean(u),l._close=!u||2===u&&Boolean(c),n(a)}},resolveAll:function(e,t){var n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push((0,i.Z)(e)),e.length=0;for(var r=n.pop();r;)e.push.apply(e,(0,i.Z)(r)),r=n.pop();this.map.length=0}}}]),e}();function zN(e,t){for(var n=!1,r=[];t-1;){var r=o.events[t][1].type;if("lineEnding"!==r&&"linePrefix"!==r)break;t--}var a=t>-1?o.events[t][1].type:null,i="tableHead"===a||"tableRow"===a?k:s;if(i===k&&o.parser.lazy[o.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return u(e);return r=!0,i+=1,u(e)}(t)}function u(t){return null===t?n(t):a_(t)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):s_(t)?f_(e,u,"whitespace")(t):(i+=1,r&&(r=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||i_(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return 92===t||124===t?(e.consume(t),l):l(t)}function f(t){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,s_(t)?f_(e,d,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return s_(t)?f_(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(i+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||a_(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),v(t)):b(t)}function v(t){return 45===t?(e.consume(t),v):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return s_(t)?f_(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?d(n):(null===n||a_(n))&&r&&a===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function k(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||a_(n)?(e.exit("tableRow"),t(n)):s_(n)?f_(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||i_(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:x)}function S(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){var n,r,o,a=-1,i=!0,s=0,u=[0,0,0,0],l=[0,0,0,0],c=!1,f=0,d=new BN;for(;++an[2]+1){var p=n[2]+1,h=n[3]-n[2]-1;e.add(p,h,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return void 0!==o&&(a.end=Object.assign({},qN(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function VN(e,t,n,r,o){var a=[],i=qN(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function qN(e,t){var n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}var HN={tokenize:function(e,t,n){var 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 i_(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return a_(r)?t(r):s_(r)?e.check({tokenize:JN},t,n)(r):n(r)}}},WN={text:(0,l.Z)({},91,HN)};function JN(e,t,n){return f_(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function GN(e,t){var n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");for(var r=0,o=n.indexOf(t);-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}var YN={}.hasOwnProperty,XN=function(e,t,n,r){var o,a;"string"===typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});for(var s=VO(o.ignore||[]),u=function(e){var t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e))for(var n=-1;++n0?{type:"text",value:m}:void 0),!1!==m){var v;if(a!==p&&f.push({type:"text",value:e.value.slice(a,p)}),Array.isArray(m))(v=f).push.apply(v,(0,i.Z)(m));else m&&f.push(m);a=p+d[0].length,c=!0}if(!r.global)break;d=r.exec(e.value)}if(c){var g;a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);var n=t[0],r=n.indexOf(")"),o=GN(e,"("),a=GN(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;var s={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function aP(e,t,n,r){return!(!iP(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iP(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||l_(n)||u_(n))&&(!t||47!==n)}function sP(e){return e.label||!e.identifier?e.label||"":jO(e.identifier)}function uP(e,t,n,r){for(var o=r.join.length;o--;){var a=r.join[o](e,t,n,r);if(!0===a||1===a)break;if("number"===typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}var lP=/\r?\n|\r/g;function cP(e){if(!e._compiled){var t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function fP(e,t){return dP(e,t.inConstruct,!0)&&!dP(e,t.notInConstruct,!1)}function dP(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;for(var r=-1;++r=m||(v+10?" ":"")),o.shift(4),a+=o.move(function(e,t){for(var n,r=[],o=0,a=0;n=lP.exec(e);)i(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,a++;return i(e.slice(o)),r.join("");function i(e){r.push(t(e,a,!e))}}(function(e,t,n){var r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[],s=-1;for(r.push(-1);++s0&&("\r"===s||"\n"===s)&&"html"===l.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(u=t.createTracker(n)).move(a.join(""))),a.push(u.move(t.handle(l,e,t,f(f({},u.current()),{},{before:s,after:c})))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}EP.peek=function(){return"["};PP.peek=function(){return"~"};var IP={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},NP={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:PP}};function PP(e,t,n,r){var o=vP(r),a=n.enter("strikethrough"),i=o.move("~~");return i+=OP(e,n,f(f({},o.current()),{},{before:i,after:"~"})),i+=o.move("~~"),a(),i}function AP(e,t,n){for(var r=e.value||"",o="`",a=-1;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a1&&void 0!==arguments[1]?arguments[1]:{},r=(n.align||[]).concat(),o=n.stringLength||jP,a=[],i=[],s=[],u=[],l=0,c=-1;++cl&&(l=e[c].length);++pu[p])&&(u[p]=m)}f.push(h)}i[c]=f,s[c]=d}var v=-1;if("object"===typeof r&&"length"in r)for(;++vu[v]&&(u[v]=S),b[v]=S),y[v]=T}i.splice(1,0,y),s.splice(1,0,b),c=-1;for(var E=[];++c-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);var i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));var s=n.createTracker(r);s.move(a+" ".repeat(i-a.length)),s.shift(i);var u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?a:a+" ".repeat(i-a.length))+e}));return u(),l}var ZP={exit:{taskListCheckValueChecked:VP,taskListCheckValueUnchecked:VP,paragraph:function(e){var t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){var n=this.stack[this.stack.length-1],r=n.children[0];if(r&&"text"===r.type){for(var o,a=t.children,i=-1;++i0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return YC([SN,PN(),MN(e),ZN,WN])}(e)),n("fromMarkdownExtensions",[tP,{enter:{gfmFootnoteDefinition:gP,gfmFootnoteDefinitionLabelString:yP,gfmFootnoteCall:wP,gfmFootnoteCallString:xP},exit:{gfmFootnoteDefinition:kP,gfmFootnoteDefinitionLabelString:bP,gfmFootnoteCall:TP,gfmFootnoteCallString:SP}},IP,DP,ZP]),n("toMarkdownExtensions",function(e){return{extensions:[nP,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:CP,footnoteReference:EP}},NP,BP(e),UP]}}(e))}var HP=function(e){var t=e.content;return(0,g.jsx)("div",{className:"markdown bg-white prose m-5",style:{height:"100%"},children:(0,g.jsx)(pN,{children:t,remarkPlugins:[qP]})})},WP=function(e){var t=e.renderKurtosisPackages,n=e.selectedKurtosisPackage;return(0,g.jsxs)(WT,{templateAreas:'"enclaves description"',gridTemplateRows:"1fr",gridTemplateColumns:"1fr 1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,g.jsx)(YT,{area:"enclaves",h:"100%",overflowY:"scroll",children:(0,g.jsx)(rC,{spacing:1,padding:"10px",h:"100%",children:t()})}),(0,g.jsx)(YT,{area:"description",h:"100%",overflowY:"scroll",className:"bg-white",children:n.description?(0,g.jsx)(HP,{content:n.description}):(0,g.jsx)(HP,{content:"No Description found for: ".concat(n.name)})})]})},JP=function(e){var t=e.kurtosisPackages,n=It(),o=(0,r.useState)([]),a=(0,v.Z)(o,2),i=a[0],s=a[1],u=(0,r.useState)({}),l=(0,v.Z)(u,2),c=l[0],f=l[1];(0,r.useEffect)((function(){s(t)}),[t.length]);var d=function(){return i.map((function(e,t){var n=e.name===c.name?"#24BA27":"gray.300";if("name"in e)return(0,g.jsx)(oC,{bg:n,onClick:function(){var t;(t=e).name===c.name?f({}):f(t)},children:(0,g.jsx)(kx,{h:"70px",w:"100%",children:(0,g.jsxs)(Tx,{fontSize:"2xl",color:"blue.800",fontWeight:"bold",children:[" ",e.name," "]})})},t)}))};return(0,g.jsx)("div",{className:"w-screen",children:(0,g.jsxs)(WT,{templateAreas:'"option"\n "search"\n "main"\n "configure"',gridTemplateRows:"60px 60px 1fr 60px",gridTemplateColumns:"1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,g.jsx)(YT,{area:"option",pt:"1",children:(0,g.jsx)(PE,{catalog:!0})}),(0,g.jsx)(YT,{area:"search",m:"10px",children:(0,g.jsxs)(wT,{children:[(0,g.jsx)(fC,{pointerEvents:"none",children:(0,g.jsx)(pC,{color:"gray.300"})}),(0,g.jsx)(qT,{placeholder:"Package Name",color:"gray.300",onChange:function(e){var n=e.target.value;""===n&&s(t);var r=t.filter((function(e){if("name"in e){var t=n.trim();return e.name.toLowerCase().includes(t)}return!1}));s(r)}})]})}),(0,g.jsx)(YT,{area:"main",h:"100%",overflowY:"scroll",children:"name"in c?(0,g.jsx)(WP,{renderKurtosisPackages:d,selectedKurtosisPackage:c}):(0,g.jsx)(rC,{spacing:1,padding:"10px",h:"100%",children:d()})}),(0,g.jsx)(YT,{area:"configure",m:"10px",children:(0,g.jsx)(Bx,{bg:"#24BA27",w:"100%",isDisabled:0===Object.keys(c).length,onClick:function(){n("/catalog/form",{state:{kurtosisPackage:c}})},children:"Configure >> "})})]})})},GP=function(e){var t=e.packageId,n=e.enclave,o=e.args,a=e.appData,s=It(),u=(0,r.useState)(!1),l=(0,v.Z)(u,2),c=l[0],f=l[1],d=(0,r.useState)([]),h=(0,v.Z)(d,2),y=h[0],b=h[1],k=(0,r.useState)([]),w=(0,v.Z)(k,2),x=w[0],S=w[1],T=function(){var e=m(p().mark((function e(t){var n,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xr(t.host,t.port,a.jwtToken,a.apiHost);case 2:n=e.sent,(r=n.services).length>x.length&&S(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(e){if("instruction"===e.case&&b((function(t){return[].concat((0,i.Z)(t),[e.value.executableInstruction])})),"progressInfo"===e.case&&e.value.currentStepInfo.length>0&&void 0!==e.value.currentStepInfo[e.value.currentStepNumber]&&b((function(t){return[].concat((0,i.Z)(t),[e.value.currentStepInfo[e.value.currentStepNumber]])})),"instructionResult"===e.case&&e.value.serializedInstructionResult&&(e.value.serializedInstructionResult.includes("added with service")&&T(n),b((function(t){return[].concat((0,i.Z)(t),[e.value.serializedInstructionResult])}))),"error"===e.case){var t=e.value.error.value.errorMessage;b((function(e){return[].concat((0,i.Z)(e),[t])}))}};(0,r.useEffect)((function(){var e;f(!0);var r=function(){var r=m(p().mark((function r(){var i,s,u,l,c,d,h;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,yx(n.host,n.port,t,o,a.jwtToken,a.apiHost);case 3:e=r.sent,i=!1,s=!1,r.prev=6,l=jr(e);case 8:return r.next=10,l.next();case 10:if(!(i=!(c=r.sent).done)){r.next=17;break}d=c.value,h=d.runResponseLine,E(h);case 14:i=!1,r.next=8;break;case 17:r.next=23;break;case 19:r.prev=19,r.t0=r.catch(6),s=!0,u=r.t0;case 23:if(r.prev=23,r.prev=24,!i||null==l.return){r.next=28;break}return r.next=28,l.return();case 28:if(r.prev=28,!s){r.next=31;break}throw u;case 31:return r.finish(28);case 32:return r.finish(23);case 33:r.next=38;break;case 35:r.prev=35,r.t1=r.catch(0),console.error("Error occured while reading data from the enclave: ",n.name);case 38:return r.prev=38,f(!1),r.finish(38);case 41:case"end":return r.stop()}}),r,null,[[0,35,38,41],[6,19,23,33],[24,,28,32]])})));return function(){return r.apply(this,arguments)}}();r()}),[t]);var C=function(e){s("/enclaves/".concat(n.name,"/services/").concat(e.serviceUuid),{state:{services:x,selected:e}})};return(0,g.jsx)("div",{className:"flex h-full",children:(0,g.jsxs)("div",{className:"flex h-full",children:[(0,g.jsx)(Sr,{home:!1,heading:"Services",isServiceInfo:!0,renderList:function(){return function(e,t){return e.map((function(e){return(0,g.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e)},children:(0,g.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},e.name)}))}(x,C)}}),(0,g.jsx)("div",{className:"flex h-full w-[calc(100vw-39rem)] flex-col space-y-5",children:(0,g.jsxs)("div",{className:"flex flex-col h-full space-y-1 bg-[#171923]",children:[(0,g.jsxs)(Ls,{bg:"#171923",height:"80px",children:[(0,g.jsx)(js,{p:"2",m:"4",children:(0,g.jsxs)(Tx,{color:"white",fontSize:"xl",as:"b",children:["Logs for ",n.name]})}),(0,g.jsx)(Ms,{})]}),c&&0===y.length?(0,g.jsx)(Er,{}):y.length>0?(0,g.jsx)(dx,{logs:y,fileName:n.name}):(0,g.jsx)(kx,{color:"white",children:" No Logs Available"})]})}),(0,g.jsx)(Tr,{home:!1,isServiceInfo:!c,enclaveName:n.name})]})})},YP=function(e){var t=e.appData,n=_t().state,r=n.enclave,o=n.runArgs.packageId,a=n.runArgs.args;return(0,g.jsx)("div",{className:"h-full w-full flex",children:(0,g.jsx)(GP,{args:a,packageId:o,enclave:r,appData:t})})};function XP(e,t){return function(){return e.apply(t,arguments)}}var $P,KP=Object.prototype.toString,QP=Object.getPrototypeOf,eA=($P=Object.create(null),function(e){var t=KP.call(e);return $P[t]||($P[t]=t.slice(8,-1).toLowerCase())}),tA=function(e){return e=e.toLowerCase(),function(t){return eA(t)===e}},nA=function(e){return function(t){return typeof t===e}},rA=Array.isArray,oA=nA("undefined");var aA=tA("ArrayBuffer");var iA=nA("string"),sA=nA("function"),uA=nA("number"),lA=function(e){return null!==e&&"object"===typeof e},cA=function(e){if("object"!==eA(e))return!1;var t=QP(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fA=tA("Date"),dA=tA("File"),pA=tA("Blob"),hA=tA("FileList"),mA=tA("URLSearchParams");function vA(e,t){var n,r,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==o&&o;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),rA(e))for(n=0,r=e.length;n0;)if(t===(n=r[o]).toLowerCase())return n;return null}var yA="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,bA=function(e){return!oA(e)&&e!==yA};var kA,wA=(kA="undefined"!==typeof Uint8Array&&QP(Uint8Array),function(e){return kA&&e instanceof kA}),xA=tA("HTMLFormElement"),SA=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),TA=tA("RegExp"),EA=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};vA(n,(function(n,o){var a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},CA="abcdefghijklmnopqrstuvwxyz",_A="0123456789",OA={DIGIT:_A,ALPHA:CA,ALPHA_DIGIT:CA+CA.toUpperCase()+_A};var IA=tA("AsyncFunction"),NA={isArray:rA,isArrayBuffer:aA,isBuffer:function(e){return null!==e&&!oA(e)&&null!==e.constructor&&!oA(e.constructor)&&sA(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||sA(e.append)&&("formdata"===(t=eA(e))||"object"===t&&sA(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&aA(e.buffer)},isString:iA,isNumber:uA,isBoolean:function(e){return!0===e||!1===e},isObject:lA,isPlainObject:cA,isUndefined:oA,isDate:fA,isFile:dA,isBlob:pA,isRegExp:TA,isFunction:sA,isStream:function(e){return lA(e)&&sA(e.pipe)},isURLSearchParams:mA,isTypedArray:wA,isFileList:hA,forEach:vA,merge:function e(){for(var t=(bA(this)&&this||{}).caseless,n={},r=function(r,o){var a=t&&gA(n,o)||o;cA(n[a])&&cA(r)?n[a]=e(n[a],r):cA(r)?n[a]=e({},r):rA(r)?n[a]=r.slice():n[a]=r},o=0,a=arguments.length;o3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,a,i,s={};if(t=t||{},null==e)return t;do{for(a=(o=Object.getOwnPropertyNames(e)).length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&QP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:eA,kindOfTest:tA,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(rA(e))return e;var t=e.length;if(!uA(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:xA,hasOwnProperty:SA,hasOwnProp:SA,reduceDescriptors:EA,freezeMethods:function(e){EA(e,(function(t,n){if(sA(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];sA(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return rA(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:gA,global:yA,isContextDefined:bA,ALPHABET:OA,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OA.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&sA(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(lA(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=rA(n)?[]:{};return vA(n,(function(t,n){var a=e(t,r+1);!oA(a)&&(o[n]=a)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:IA,isThenable:function(e){return e&&(lA(e)||sA(e))&&sA(e.then)&&sA(e.catch)}};function PA(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}NA.inherits(PA,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:NA.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var AA=PA.prototype,jA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){jA[e]={value:e}})),Object.defineProperties(PA,jA),Object.defineProperty(AA,"isAxiosError",{value:!0}),PA.from=function(e,t,n,r,o,a){var i=Object.create(AA);return NA.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),PA.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var RA=PA;function DA(e){return NA.isPlainObject(e)||NA.isArray(e)}function FA(e){return NA.endsWith(e,"[]")?e.slice(0,-2):e}function LA(e,t,n){return e?e.concat(t).map((function(e,t){return e=FA(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var MA=NA.toFlatObject(NA,{},null,(function(e){return/^is[A-Z]/.test(e)}));var BA=function(e,t,n){if(!NA.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=NA.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!NA.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&NA.isSpecCompliantForm(t);if(!NA.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(NA.isDate(e))return e.toISOString();if(!s&&NA.isBlob(e))throw new RA("Blob is not supported. Use a Buffer instead.");return NA.isArrayBuffer(e)||NA.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){var s=e;if(e&&!o&&"object"===typeof e)if(NA.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(NA.isArray(e)&&function(e){return NA.isArray(e)&&!e.some(DA)}(e)||(NA.isFileList(e)||NA.endsWith(n,"[]"))&&(s=NA.toArray(e)))return n=FA(n),s.forEach((function(e,r){!NA.isUndefined(e)&&null!==e&&t.append(!0===i?LA([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!DA(e)||(t.append(LA(o,n,a),u(e)),!1)}var c=[],f=Object.assign(MA,{defaultVisitor:l,convertValue:u,isVisitable:DA});if(!NA.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!NA.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),NA.forEach(n,(function(n,a){!0===(!(NA.isUndefined(n)||null===n)&&o.call(t,n,NA.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function zA(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ZA(e,t){this._pairs=[],e&&BA(e,this,t)}var UA=ZA.prototype;UA.append=function(e,t){this._pairs.push([e,t])},UA.toString=function(e){var t=e?function(t){return e.call(this,t,zA)}:zA;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var VA=ZA;function qA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function HA(e,t,n){if(!t)return e;var r,o=n&&n.encode||qA,a=n&&n.serialize;if(r=a?a(t,n):NA.isURLSearchParams(t)?t.toString():new VA(t,n).toString(o)){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var WA=function(){function e(){(0,b.Z)(this,e),this.handlers=[]}return(0,k.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){NA.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),JA=WA,GA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YA={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:VA,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},isStandardBrowserEnv:function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),isStandardBrowserWebWorkerEnv:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var XA=function(e){function t(e,n,r,o){var a=e[o++],i=Number.isFinite(+a),s=o>=e.length;return a=!a&&NA.isArray(r)?r.length:a,s?(NA.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&NA.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&NA.isArray(r[a])&&(r[a]=function(e){var t,n,r={},o=Object.keys(e),a=o.length;for(t=0;t-1,a=NA.isObject(e);if(a&&NA.isHTMLForm(e)&&(e=new FormData(e)),NA.isFormData(e))return o&&o?JSON.stringify(XA(e)):e;if(NA.isArrayBuffer(e)||NA.isBuffer(e)||NA.isStream(e)||NA.isFile(e)||NA.isBlob(e))return e;if(NA.isArrayBufferView(e))return e.buffer;if(NA.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return BA(e,new YA.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return YA.isNode&&NA.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=NA.isFileList(e))||r.indexOf("multipart/form-data")>-1){var i=this.env&&this.env.FormData;return BA(n?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(NA.isString(e))try{return(t||JSON.parse)(e),NA.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||$A.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&NA.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o){if("SyntaxError"===a.name)throw RA.from(a,RA.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:YA.classes.FormData,Blob:YA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};NA.forEach(["delete","get","head","post","put","patch"],(function(e){$A.headers[e]={}}));var KA=$A,QA=NA.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ej=Symbol("internals");function tj(e){return e&&String(e).trim().toLowerCase()}function nj(e){return!1===e||null==e?e:NA.isArray(e)?e.map(nj):String(e)}function rj(e,t,n,r,o){return NA.isFunction(r)?r.call(this,t,n):(o&&(t=n),NA.isString(t)?NA.isString(r)?-1!==t.indexOf(r):NA.isRegExp(r)?r.test(t):void 0:void 0)}var oj=function(e,t){function n(e){(0,b.Z)(this,n),e&&this.set(e)}return(0,k.Z)(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=tj(t);if(!o)throw new Error("header name must be a non-empty string");var a=NA.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=nj(e))}var a=function(e,t){return NA.forEach(e,(function(e,n){return o(e,n,t)}))};return NA.isPlainObject(e)||e instanceof this.constructor?a(e,t):NA.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&QA[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=tj(e)){var n=NA.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(NA.isFunction(t))return t.call(this,r,n);if(NA.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=tj(e)){var n=NA.findKey(this,e);return!(!n||void 0===this[n]||t&&!rj(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=tj(e)){var o=NA.findKey(n,e);!o||t&&!rj(0,n[o],o,t)||(delete n[o],r=!0)}}return NA.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!rj(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return NA.forEach(this,(function(r,o){var a=NA.findKey(n,o);if(a)return t[a]=nj(r),void delete t[o];var i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();i!==o&&delete t[o],t[i]=nj(r),n[i]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r1?n-1:0),o=1;o1?"since :\n"+s.map(gj).join("\n"):" "+gj(s[0]):"as no adapter specified";throw new RA("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n};function kj(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lj(null,e)}function wj(e){return kj(e),e.headers=aj.from(e.headers),e.data=ij.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bj(e.adapter||KA.adapter)(e).then((function(t){return kj(e),t.data=ij.call(e,e.transformResponse,t),t.headers=aj.from(t.headers),t}),(function(t){return sj(t)||(kj(e),t&&t.response&&(t.response.data=ij.call(e,e.transformResponse,t.response),t.response.headers=aj.from(t.response.headers))),Promise.reject(t)}))}var xj=function(e){return e instanceof aj?e.toJSON():e};function Sj(e,t){t=t||{};var n={};function r(e,t,n){return NA.isPlainObject(e)&&NA.isPlainObject(t)?NA.merge.call({caseless:n},e,t):NA.isPlainObject(t)?NA.merge({},t):NA.isArray(t)?t.slice():t}function o(e,t,n){return NA.isUndefined(t)?NA.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!NA.isUndefined(t))return r(void 0,t)}function i(e,t){return NA.isUndefined(t)?NA.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}var u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:function(e,t){return o(xj(e),xj(t),!0)}};return NA.forEach(Object.keys(Object.assign({},e,t)),(function(r){var a=u[r]||o,i=a(e[r],t[r],r);NA.isUndefined(i)&&a!==s||(n[r]=i)})),n}var Tj="1.5.1",Ej={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ej[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Cj={};Ej.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new RA(r(o," has been removed"+(t?" in "+t:"")),RA.ERR_DEPRECATED);return t&&!Cj[o]&&(Cj[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var _j={assertOptions:function(e,t,n){if("object"!==typeof e)throw new RA("options must be an object",RA.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],u=void 0===s||i(s,a,e);if(!0!==u)throw new RA("option "+a+" must be "+u,RA.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new RA("Unknown option "+a,RA.ERR_BAD_OPTION)}},validators:Ej},Oj=_j.validators,Ij=function(){function e(t){(0,b.Z)(this,e),this.defaults=t,this.interceptors={request:new JA,response:new JA}}return(0,k.Z)(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=Sj(this.defaults,t),r=n.transitional,o=n.paramsSerializer,a=n.headers;void 0!==r&&_j.assertOptions(r,{silentJSONParsing:Oj.transitional(Oj.boolean),forcedJSONParsing:Oj.transitional(Oj.boolean),clarifyTimeoutError:Oj.transitional(Oj.boolean)},!1),null!=o&&(NA.isFunction(o)?t.paramsSerializer={serialize:o}:_j.assertOptions(o,{encode:Oj.function,serialize:Oj.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=a&&NA.merge(a.common,a[t.method]);a&&NA.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=aj.concat(i,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var l,c=[];this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));var f,d=0;if(!u){var p=[wj.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,l=Promise.resolve(t);d0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new lj(e,t,o),n(r.reason))}))}return(0,k.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),Aj=Pj;var jj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jj).forEach((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];jj[r]=n}));var Rj=jj;var Dj=function e(t){var n=new Nj(t),r=XP(Nj.prototype.request,n);return NA.extend(r,Nj.prototype,n,{allOwnKeys:!0}),NA.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Sj(t,n))},r}(KA);Dj.Axios=Nj,Dj.CanceledError=lj,Dj.CancelToken=Aj,Dj.isCancel=sj,Dj.VERSION=Tj,Dj.toFormData=BA,Dj.AxiosError=RA,Dj.Cancel=Dj.CanceledError,Dj.all=function(e){return Promise.all(e)},Dj.spread=function(e){return function(t){return e.apply(null,t)}},Dj.isAxiosError=function(e){return NA.isObject(e)&&!0===e.isAxiosError},Dj.mergeConfig=Sj,Dj.AxiosHeaders=aj,Dj.formToJSON=function(e){return XA(NA.isHTMLForm(e)?new FormData(e):e)},Dj.getAdapter=bj,Dj.HttpStatusCode=Rj,Dj.default=Dj;var Fj=Dj,Lj=function(){var e=m(p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Fj.post("https://cloud.kurtosis.com:9770/kurtosis_package_indexer.KurtosisPackageIndexer/GetPackages",{field:""},{headers:{"Content-Type":"application/json"}});case 3:if(t=e.sent,!("packages"in(n=t.data))){e.next=7;break}return e.abrupt("return",n.packages);case 7:return e.abrupt("return",[]);case 10:return e.prev=10,e.t0=e.catch(0),console.log("error occurred"),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),Mj=function(e){var t=e.addEnclave,n=It(),o=Ir().appData,a=(0,r.useState)([]),i=(0,v.Z)(a,2),s=i[0],u=i[1];(0,r.useEffect)((function(){var e=function(){var e=m(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lj();case 2:t=e.sent,u(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var l=function(){var e=m(p().mark((function e(r,a,i){var s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=function(){var e=m(p().mark((function e(){var s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,vx(o.jwtToken,o.apiHost,a,i);case 3:s=e.sent,t(s),n("/catalog/progress",{state:{enclave:s,runArgs:r}}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),alert("Error occurred while creating enclave for package. An error message should be printed in console, please share it with us to help debug this problem");case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),e.next=3,s();case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return(0,g.jsx)("div",{className:"h-full w-full flex",children:(0,g.jsxs)(Jt,{children:[(0,g.jsx)(Ht,{path:"/progress",element:(0,g.jsx)(YP,{appData:o})}),(0,g.jsx)(Ht,{path:"/form",element:(0,g.jsx)(YE,{createEnclave:l})}),(0,g.jsx)(Ht,{path:"/",element:(0,g.jsx)(JP,{kurtosisPackages:s})})]})})},Bj={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var zj={enter:{duration:.2,ease:Bj.easeOut},exit:{duration:.1,ease:Bj.easeIn}},Zj=function(e,t){return f(f({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.enter})},Uj=function(e,t){return f(f({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.exit})},Vj=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],qj={initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,a=e.transitionEnd,i=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:Uj(zj.exit,i),transitionEnd:null==a?void 0:a.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:Zj(zj.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,a=e.transitionEnd,i=e.reverse,s=e.delay,u={x:r,y:n};return f({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:Uj(zj.exit,s)},i?f(f({},u),{},{transitionEnd:null==a?void 0:a.exit}):{transitionEnd:f(f({},u),null==a?void 0:a.exit)})}},Hj={initial:"initial",animate:"enter",exit:"exit",variants:qj},Wj=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,c=e.offsetY,d=void 0===c?8:c,p=e.transition,h=e.transitionEnd,m=e.delay,v=u(e,Vj),y=!n||r&&n,b=r||n?"enter":"exit",k={offsetX:l,offsetY:d,reverse:a,transition:p,transitionEnd:h,delay:m};return(0,g.jsx)(Ug,{custom:k,children:y&&(0,g.jsx)(Dg.div,f(f({ref:t,className:Lr("chakra-offset-slide",i),custom:k},Hj),{},{animate:b},v))})}));Wj.displayName="SlideFade";var Jj=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],Gj={exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,a=e.transitionEnd,i=e.delay;return f(f({opacity:0},n?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:f({scale:r},null==a?void 0:a.exit)}),{},{transition:null!=(t=null==o?void 0:o.exit)?t:Uj(zj.exit,i)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:Zj(zj.enter,o),transitionEnd:null==n?void 0:n.enter}}},Yj={initial:"exit",animate:"enter",exit:"exit",variants:Gj},Xj=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.initialScale,s=void 0===i?.95:i,l=e.className,c=e.transition,d=e.transitionEnd,p=e.delay,h=u(e,Jj),m=!n||r&&n,v=r||n?"enter":"exit",y={initialScale:s,reverse:a,transition:c,transitionEnd:d,delay:p};return(0,g.jsx)(Ug,{custom:y,children:m&&(0,g.jsx)(Dg.div,f(f({ref:t,className:Lr("chakra-offset-slide",l)},Yj),{},{animate:v,custom:y},h))})}));Xj.displayName="ScaleFade";var $j=["preset","motionProps"],Kj={slideInBottom:f(f({},Hj),{},{custom:{offsetY:16,reverse:!0}}),slideInRight:f(f({},Hj),{},{custom:{offsetX:16,reverse:!0}}),slideInTop:f(f({},Hj),{},{custom:{offsetY:-16,reverse:!0}}),slideInLeft:f(f({},Hj),{},{custom:{offsetX:-16,reverse:!0}}),scale:f(f({},Yj),{},{custom:{initialScale:.95,reverse:!0}}),none:{}},Qj=Is(Dg.section),eR=(0,r.forwardRef)((function(e,t){var n=e.preset,r=e.motionProps,o=void 0===r?function(e){return Kj[e||"none"]}(n):r,a=u(e,$j);return(0,g.jsx)(Qj,f(f({ref:t},o),a))}));eR.displayName="ModalTransition";var tR=Object.defineProperty,nR=function(e,t,n){return function(e,t,n){t in e?tR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==typeof t?t+"":t,n),n},rR=new(function(){function e(){(0,b.Z)(this,e),nR(this,"modals"),this.modals=new Map}return(0,k.Z)(e,[{key:"add",value:function(e){return this.modals.set(e,this.modals.size+1),this.modals.size}},{key:"remove",value:function(e){this.modals.delete(e)}},{key:"isTopModal",value:function(e){return!!e&&this.modals.get(e)===this.modals.size}}]),e}());function oR(e,t){var n=(0,r.useState)(0),o=(0,v.Z)(n,2),a=o[0],i=o[1];return(0,r.useEffect)((function(){var n=e.current;if(n){if(t){var r=rR.add(n);i(r)}return function(){rR.remove(n),i(0)}}}),[t,e]),a}var aR=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},iR=new WeakMap,sR=new WeakMap,uR={},lR=0,cR=function e(t){return t&&(t.host||e(t.parentNode))},fR=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=cR(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);uR[n]||(uR[n]=new WeakMap);var a=uR[n],i=[],s=new Set,u=new Set(o);o.forEach((function e(t){t&&!s.has(t)&&(s.add(t),e(t.parentNode))}));return function e(t){t&&!u.has(t)&&Array.prototype.forEach.call(t.children,(function(t){if(s.has(t))e(t);else{var o=t.getAttribute(r),u=null!==o&&"false"!==o,l=(iR.get(t)||0)+1,c=(a.get(t)||0)+1;iR.set(t,l),a.set(t,c),i.push(t),1===l&&u&&sR.set(t,!0),1===c&&t.setAttribute(n,"true"),u||t.setAttribute(r,"true")}}))}(t),s.clear(),lR++,function(){i.forEach((function(e){var t=iR.get(e)-1,o=a.get(e)-1;iR.set(e,t),a.set(e,o),t||(sR.has(e)||e.removeAttribute(r),sR.delete(e)),o||e.removeAttribute(n)})),--lR||(iR=new WeakMap,iR=new WeakMap,sR=new WeakMap,uR={})}},dR=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||aR(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),fR(r,o,n,"aria-hidden")):function(){return null}};function pR(e){var t=e.isOpen,n=e.onClose,o=e.id,a=e.closeOnOverlayClick,i=void 0===a||a,s=e.closeOnEsc,u=void 0===s||s,l=e.useInert,c=void 0===l||l,d=e.onOverlayClick,p=e.onEsc,h=(0,r.useRef)(null),m=(0,r.useRef)(null),g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({role:"dialog"},e),{},{ref:ru(t,h),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":O?k:void 0,"aria-describedby":A?w:void 0,onClick:Vr(e.onClick,(function(e){return e.stopPropagation()}))})}),[w,A,b,k,O]),D=(0,r.useCallback)((function(e){e.stopPropagation(),S.current===e.target&&rR.isTopModal(h.current)&&(i&&(null==n||n()),null==d||d())}),[n,i,d]),F=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:ru(t,m),onClick:Vr(e.onClick,D),onKeyDown:Vr(e.onKeyDown,E),onMouseDown:Vr(e.onMouseDown,T)})}),[E,T,D]);return{isOpen:t,onClose:n,headerId:k,bodyId:w,setBodyMounted:j,setHeaderMounted:I,dialogRef:h,overlayRef:m,getDialogProps:R,getDialogContainerProps:F,index:x}}var hR=Fl({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),mR=(0,v.Z)(hR,2),vR=mR[0],gR=mR[1],yR=Fl({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),bR=(0,v.Z)(yR,2),kR=bR[0],wR=bR[1],xR=function(e){var t=f({scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0},e),n=t.portalProps,r=t.children,o=t.autoFocus,a=t.trapFocus,i=t.initialFocusRef,s=t.finalFocusRef,u=t.returnFocusOnClose,l=t.blockScrollOnMount,c=t.allowPinchZoom,d=t.preserveScrollBarGap,p=t.motionPreset,h=t.lockFocusAcrossFrames,m=t.onCloseComplete,v=ac("Modal",t),y=f(f({},pR(t)),{},{autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:l,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:p,lockFocusAcrossFrames:h});return(0,g.jsx)(kR,{value:y,children:(0,g.jsx)(vR,{value:v,children:(0,g.jsx)(Ug,{onExitComplete:m,children:y.isOpen&&(0,g.jsx)(Ql,f(f({},n),{},{children:r}))})})})};xR.displayName="Modal";var SR="data-focus-lock",TR="data-focus-lock-disabled";function ER(e,t){return function(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var CR={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},_R=function(e){var t=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:CR}),t,t&&r.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:CR}))};_R.propTypes={},_R.defaultProps={children:null};var OR=function(){return OR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0})).sort(oD)},iD=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),sD="".concat(iD,", [data-focus-guard]"),uD=function e(t,n){return VR((t.shadowRoot||t).children).reduce((function(t,r){return t.concat(r.matches(n?sD:iD)?[r]:[],e(r))}),[])},lD=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?cD([e.contentDocument.body],t):[e]},cD=function(e,t){return e.reduce((function(e,n){var r,o=uD(n,t),a=(r=[]).concat.apply(r,o.map((function(e){return lD(e,t)})));return e.concat(a,n.parentNode?VR(n.parentNode.querySelectorAll(iD)).filter((function(e){return e===n})):[])}),[])},fD=function(e,t){return VR(e).filter((function(e){return YR(t,e)})).filter((function(e){return function(e){return!((KR(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},dD=function(e,t){return void 0===t&&(t=new Map),VR(e).filter((function(e){return XR(t,e)}))},pD=function(e,t,n){return aD(fD(cD(e,n),t),!0,n)},hD=function(e,t){return aD(fD(cD(e),t),!1)},mD=function(e,t){return fD(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return VR(t).map((function(e){return cD([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},vD=function e(t,n){return t.shadowRoot?e(t.shadowRoot,n):!(void 0===Object.getPrototypeOf(t).contains||!Object.getPrototypeOf(t).contains.call(t,n))||VR(t.children).some((function(t){var r;if(t instanceof HTMLIFrameElement){var o=null===(r=t.contentDocument)||void 0===r?void 0:r.body;return!!o&&e(o,n)}return e(t,n)}))},gD=function e(t){if(void 0===t&&(t=document),t&&t.activeElement){var n=t.activeElement;return n.shadowRoot?e(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return n.contentWindow.document}))?e(n.contentWindow.document):n}},yD=function e(t){return t.parentNode?e(t.parentNode):t},bD=function(e){return qR(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(SR);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(VR(yD(t).querySelectorAll("[".concat(SR,'="').concat(n,'"]:not([').concat(TR,'="disabled"])')))):[t]),e}),[])},kD=function(e,t){return void 0===t&&(t=gD(HR(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&bD(e).some((function(e){return vD(e,t)||function(e,t){return Boolean(VR(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},wD=function(e,t){return QR(e)&&e.name?function(e,t){return t.filter(QR).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},xD=function(e){return e[0]&&e.length>1?wD(e[0],e):e[0]},SD=function(e,t){return e.length>1?e.indexOf(wD(e[t],e)):t},TD="NEW_FOCUS",ED=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],s=tD(n);if(!(n&&e.indexOf(n)>=0)){var u=void 0!==n?t.indexOf(n):-1,l=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,f=u-l,d=t.indexOf(a),p=t.indexOf(i),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(wD(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):u),v=SD(e,0),g=SD(e,o-1);return-1===u||-1===c?TD:!f&&c>=0?c:u<=d&&s&&Math.abs(f)>1?g:u>=p&&s&&Math.abs(f)>1?v:f&&Math.abs(m)>1?c:u<=d?g:u>p?v:f?Math.abs(f)>1?c:(o+c+f)%o:void 0}},CD=function(e,t,n){var r,o=e.map((function(e){return e.node})),a=dD(o.filter((r=n,function(e){var t,n=null===(t=$R(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return a&&a.length?xD(a):xD(dD(t))},_D=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode.host||t.parentNode,n),n},OD=function(e,t){for(var n=_D(e),r=_D(t),o=0;o=0)return a}return!1},ID=function(e,t,n){var r=qR(e),o=qR(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=OD(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=OD(a,e);t&&(i=!i||vD(t,i)?t:OD(t,i))}))})),i},ND=function(e,t){var n=gD(qR(e).length>0?document:HR(e).ownerDocument),r=bD(e).filter(nD),o=ID(n||e,e,r),a=new Map,i=hD(r,a),s=pD(r,a).filter((function(e){var t=e.node;return nD(t)}));if(s[0]||(s=i)[0]){var u=hD([o],a).map((function(e){return e.node})),l=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(rD)}(u,s),c=l.map((function(e){return e.node})),f=ED(c,u,n,t);if(f===TD){var d=CD(i,c,function(e,t){return e.reduce((function(e,n){return e.concat(mD(n,t))}),[])}(r,a));return d?{node:d}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:l[f]}},PD=0,AD=!1,jD=function(e,t,n){void 0===n&&(n={});var r,o,a=ND(e,t);if(!AD&&a){if(PD>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),AD=!0,void setTimeout((function(){AD=!1}),1);PD++,r=a.node,o=n.focusOptions,"focus"in r&&r.focus(o),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),PD--}},RD=function(e){var t=bD(e).filter(nD),n=ID(e,e,t),r=new Map,o=pD([n],r,!0),a=pD(t,r).filter((function(e){var t=e.node;return nD(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:tD(t)}}))};function DD(e){setTimeout(e,1)}var FD=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=gD(e);return!!t&&VR(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return vD(e,t)}))}()},LD=null,MD=null,BD=null,zD=!1,ZD=function(){return!0};function UD(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var VD=function(e){return e&&"current"in e?e.current:e},qD=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},HD=function(){var e,t=!1;if(LD){var n=LD,r=n.observed,o=n.persistentFocus,a=n.autoFocus,i=n.shards,s=n.crossFrame,u=n.focusOptions,l=r||BD&&BD.portaledElement,c=document&&document.activeElement;if(l){var f=[l].concat(i.map(VD).filter(Boolean));if(c&&!function(e){return(LD.whiteList||ZD)(e)}(c)||(o||(s?Boolean(zD):"meanwhile"===zD)||!FD()||!MD&&a)&&(l&&!(kD(f)||c&&function(e,t){return t.some((function(t){return qD(e,t,t)}))}(c,f)||(e=c,BD&&BD.portaledElement===e))&&(document&&!MD&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=jD(f,MD,{focusOptions:u}),BD={})),zD=!1,MD=document&&document.activeElement),document){var d=document&&document.activeElement,p=RD(f),h=p.map((function(e){return e.node})).indexOf(d);h>-1&&(p.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),UD(h,p.length,1,p),UD(h,-1,-1,p))}}}return t},WD=function(e){HD()&&e&&(e.stopPropagation(),e.preventDefault())},JD=function(){return DD(HD)},GD=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(BD={observerNode:n,portaledElement:t})},YD=function(){zD="just",DD((function(){zD="meanwhile"}))};DR.assignSyncMedium(GD),FR.assignMedium(JD),LR.assignMedium((function(e){return e({moveFocusInside:jD,focusInside:kD})}));var XD=UR((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!LD&&(document.addEventListener("focusin",WD),document.addEventListener("focusout",JD),window.addEventListener("blur",YD));var n=LD,r=n&&t&&t.id===n.id;LD=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(MD=null,r&&n.observed===t.observed||t.onActivation(),HD(),DD(HD)):(document.removeEventListener("focusin",WD),document.removeEventListener("focusout",JD),window.removeEventListener("blur",YD),MD=null)}))((function(){return null})),$D=r.forwardRef((function(e,t){return r.createElement(ZR,Va({sideCar:XD,ref:t},e))})),KD=ZR.propTypes||{};KD.sideCar,s(KD,["sideCar"]);$D.propTypes={};var QD=$D,eF=function(e){return e.hasAttribute("tabindex")};function tF(e){return!(!e.parentElement||!tF(e.parentElement))||e.hidden}function nF(e){if(!Zs(e)||tF(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||eF(e)}var rF,oF=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),aF=function(e){return e.offsetWidth>0&&e.offsetHeight>0};function iF(e){var t=Array.from(e.querySelectorAll(oF));return t.unshift(e),t.filter((function(e){return nF(e)&&aF(e)}))}var sF=null!=(rF=QD.default)?rF:QD,uF=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,o=e.contentRef,a=e.restoreFocus,i=e.children,s=e.isDisabled,u=e.autoFocus,l=e.persistentFocus,c=e.lockFocusAcrossFrames,f=(0,r.useCallback)((function(){if(null==t?void 0:t.current)t.current.focus();else if(null==o?void 0:o.current){0===iF(o.current).length&&requestAnimationFrame((function(){var e;null==(e=o.current)||e.focus()}))}}),[t,o]),d=(0,r.useCallback)((function(){var e;null==(e=null==n?void 0:n.current)||e.focus()}),[n]),p=a&&!n;return(0,g.jsx)(sF,{crossFrame:c,persistentFocus:l,autoFocus:u,disabled:s,onActivation:f,onDeactivation:d,returnFocus:p,children:i})};uF.displayName="FocusLock";var lF="right-scroll-bar-position",cF="width-before-scroll-bar",fF=RR(),dF=function(){},pF=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:dF,onWheelCapture:dF,onTouchMoveCapture:dF}),a=o[0],i=o[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,k=IR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=ER([n,t]),S=OR(OR({},k),a);return r.createElement(r.Fragment,null,f&&r.createElement(w,{sideCar:fF,removeScrollBar:c,shards:d,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?r.cloneElement(r.Children.only(u),OR(OR({},S),{ref:x})):r.createElement(y,OR({},S,{className:l,ref:x}),u))}));pF.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pF.classNames={fullWidth:cF,zeroRight:lF};var hF,mF=function(e){var t=e.sideCar,n=IR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,OR({},n))};mF.isSideCarExport=!0;function vF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hF||n.nc;return t&&e.setAttribute("nonce",t),e}var gF=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=vF())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yF=function(){var e=function(){var e=gF();return function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},bF={left:0,top:0,right:0,gap:0},kF=function(e){return parseInt(e||"",10)||0},wF=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return bF;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[kF(n),kF(r),kF(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xF=yF(),SF=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(lF," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(cF," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(lF," .").concat(lF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(cF," .").concat(cF," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},TF=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o,i=r.useMemo((function(){return wF(a)}),[a]);return r.createElement(xF,{styles:SF(i,!t,a,n?"":"!important")})},EF=!1;if("undefined"!==typeof window)try{var CF=Object.defineProperty({},"passive",{get:function(){return EF=!0,!0}});window.addEventListener("test",CF,CF),window.removeEventListener("test",CF,CF)}catch(AW){EF=!1}var _F=!!EF&&{passive:!1},OF=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},IF=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),NF(e,r)){var o=PF(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},NF=function(e,t){return"v"===e?function(e){return OF(e,"overflowY")}(t):function(e){return OF(e,"overflowX")}(t)},PF=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},AF=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jF=function(e){return[e.deltaX,e.deltaY]},RF=function(e){return e&&"current"in e?e.current:e},DF=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},FF=0,LF=[];var MF,BF=(MF=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(FF++)[0],i=r.useState(yF)[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=NR([e.lockRef.current],(e.shards||[]).map(RF),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,a=AF(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,f=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=IF(f,c);if(!d)return!0;if(d?r=f:(r="v"===f?"h":"v",d=IF(f,c)),!d)return!1;if(!o.current&&"changedTouches"in e&&(u||l)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),l=!1,c=i>0,f=0,d=0;do{var p=PF(e,s),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&NF(e,s)&&(f+=m,d+=h),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(o&&0===f||!o&&i>f)||!c&&(o&&0===d||!o&&-i>d))&&(l=!0),l}(p,t,e,"h"===p?u:l,!0)}),[]),l=r.useCallback((function(e){var n=e;if(LF.length&&LF[LF.length-1]===i){var r="deltaY"in n?jF(n):AF(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(RF).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=r.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=r.useCallback((function(e){n.current=AF(e),o.current=void 0}),[]),d=r.useCallback((function(t){c(t.type,jF(t),t.target,u(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){c(t.type,AF(t),t.target,u(t,e.lockRef.current))}),[]);r.useEffect((function(){return LF.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_F),document.addEventListener("touchmove",l,_F),document.addEventListener("touchstart",f,_F),function(){LF=LF.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,_F),document.removeEventListener("touchmove",l,_F),document.removeEventListener("touchstart",f,_F)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(i,{styles:DF(a)}):null,h?r.createElement(TF,{gapMode:e.gapMode}):null)},fF.useMedium(MF),mF),zF=r.forwardRef((function(e,t){return r.createElement(pF,OR({},e,{ref:t,sideCar:BF}))}));zF.classNames=pF.classNames;var ZF=zF;function UF(e){var t=wR(),n=t.autoFocus,o=t.trapFocus,a=t.dialogRef,i=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,l=t.finalFocusRef,c=t.returnFocusOnClose,f=t.preserveScrollBarGap,d=t.lockFocusAcrossFrames,p=t.isOpen,h=Ym(),m=(0,v.Z)(h,2),y=m[0],b=m[1];(0,r.useEffect)((function(){!y&&b&&setTimeout(b)}),[y,b]);var k=oR(a,p);return(0,g.jsx)(uF,{autoFocus:n,isDisabled:!o,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:a,lockFocusAcrossFrames:d,children:(0,g.jsx)(ZF,{removeScrollBar:!f,allowPinchZoom:u,enabled:1===k&&s,forwardProps:!0,children:e.children})})}var VF=["className","children","containerProps","motionProps"],qF=Ns((function(e,t){var n=e.className,r=e.children,o=e.containerProps,a=e.motionProps,i=u(e,VF),s=wR(),l=s.getDialogProps,c=s.getDialogContainerProps,d=l(i,t),p=c(o),h=Lr("chakra-modal__content",n),m=gR(),v=f({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),y=f({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0},m.dialogContainer),b=wR().motionPreset;return(0,g.jsx)(UF,{children:(0,g.jsx)(Is.div,f(f({},p),{},{className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,g.jsx)(eR,f(f({preset:b,motionProps:a,className:h},d),{},{__css:v,children:r}))}))})}));qF.displayName="ModalContent";var HF=["leastDestructiveRef"];function WF(e){var t=e.leastDestructiveRef,n=u(e,HF);return(0,g.jsx)(xR,f(f({},n),{},{initialFocusRef:t}))}var JF=Ns((function(e,t){return(0,g.jsx)(qF,f({ref:t,role:"alertdialog"},e))})),GF=["unmountOnExit","in","className","transition","transitionEnd","delay"],YF={enter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,o=t.delay;return{opacity:1,transition:null!=(e=null==n?void 0:n.enter)?e:Zj(zj.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,o=t.delay;return{opacity:0,transition:null!=(e=null==n?void 0:n.exit)?e:Uj(zj.exit,o),transitionEnd:null==r?void 0:r.exit}}},XF={initial:"exit",animate:"enter",exit:"exit",variants:YF},$F=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.className,a=e.transition,i=e.transitionEnd,s=e.delay,l=u(e,GF),c=r||n?"enter":"exit",d=!n||r&&n,p={transition:a,transitionEnd:i,delay:s};return(0,g.jsx)(Ug,{custom:p,children:d&&(0,g.jsx)(Dg.div,f(f({ref:t,className:Lr("chakra-fade",o),custom:p},XF),{},{animate:c},l))})}));$F.displayName="Fade";var KF=["className","transition","motionProps"],QF=Is(Dg.div),eL=Ns((function(e,t){var n=e.className,r=(e.transition,e.motionProps),o=u(e,KF),a=Lr("chakra-modal__overlay",n),i=f({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},gR().overlay),s=wR().motionPreset,l=r||("none"===s?{}:XF);return(0,g.jsx)(QF,f(f({},l),{},{__css:i,ref:t,className:a},o))}));eL.displayName="ModalOverlay";var tL=["className"],nL=Ns((function(e,t){var n=e.className,o=u(e,tL),a=wR(),i=a.headerId,s=a.setHeaderMounted;(0,r.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var l=Lr("chakra-modal__header",n),c=f({flex:0},gR().header);return(0,g.jsx)(Is.header,f(f({ref:t,className:l,id:i},o),{},{__css:c}))}));nL.displayName="ModalHeader";var rL=["className"],oL=Ns((function(e,t){var n=e.className,o=u(e,rL),a=wR(),i=a.bodyId,s=a.setBodyMounted;(0,r.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var l=Lr("chakra-modal__body",n),c=gR();return(0,g.jsx)(Is.div,f(f({ref:t,className:l,id:i},o),{},{__css:c.body}))}));oL.displayName="ModalBody";var aL=["className"],iL=Ns((function(e,t){var n=e.className,r=u(e,aL),o=Lr("chakra-modal__footer",n),a=f({display:"flex",alignItems:"center",justifyContent:"flex-end"},gR().footer);return(0,g.jsx)(Is.footer,f(f({ref:t},r),{},{__css:a,className:o}))}));function sL(e,t){var n=(0,r.useId)();return(0,r.useMemo)((function(){return e||[t,n].filter(Boolean).join("-")}),[e,t,n])}function uL(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}iL.displayName="ModalFooter";var lL=uL()?r.useLayoutEffect:r.useEffect;function cL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return lL((function(){n.current=e})),(0,r.useCallback)((function(){for(var e,t,r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=e.onOpen,o=e.isOpen,a=e.id,i=cL(n),s=cL(t),u=(0,r.useState)(e.defaultIsOpen||!1),l=(0,v.Z)(u,2),c=l[0],d=l[1],p=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}(o,c),h=(0,v.Z)(p,2),m=h[0],g=h[1],y=sL(a,"disclosure"),b=(0,r.useCallback)((function(){m||d(!1),null==s||s()}),[m,s]),k=(0,r.useCallback)((function(){m||d(!0),null==i||i()}),[m,i]),w=(0,r.useCallback)((function(){(g?b:k)()}),[g,k,b]);return{isOpen:!!g,onOpen:k,onClose:b,onToggle:w,isControlled:m,getButtonProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(f({},e),{},{"aria-expanded":g,"aria-controls":y,onClick:Ua(e.onClick,w)})},getDisclosureProps:function(){return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{hidden:!g,id:y})}}}(),p=d.isOpen,h=d.onOpen,m=d.onClose;return(0,g.jsxs)("div",{className:"flex h-full flex-grow",children:[n?(0,g.jsx)(Er,{}):(0,g.jsx)(hL,{setEnclave:c,onOpen:h,enclaves:t,handleClick:function(e){a("/enclaves/".concat(e))},handleCreateEnvClick:function(){a("/catalog")},handleDeleteClick:o}),(0,g.jsx)(fL,{isOpen:p,onOpen:h,onClose:m,cancelRef:i,enclaveToDelete:l,setEnclave:c,handleDeleteClick:o})]})};function vL(){return vL=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&b(f(f({},h),{},{apiHost:e}))}),[]);var C=function(){return h.apiHost&&h.apiHost.length>0},_=function(){var e=m(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hx(h.jwtToken,h.apiHost);case 2:t=e.sent,o(t),c(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){T&&h.jwtToken&&h.jwtToken.length>0&&C()&&(c(!0),_())}),[h.jwtToken,h.apiHost]),(0,r.useEffect)((function(){!T&&C()&&_()}),[h.apiHost]);var O=function(e){e.created;var t=u(e,EL);o((function(e){return[].concat((0,i.Z)(e),[t])}))},I=function(e){return!T&&h.apiHost||T&&h.jwtToken&&h.apiHost||!T||h.jwtToken&&!h.apiHost?e:w},N=function(e,t){return Ne({basename:null==t?void 0:t.basename,future:vL({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:M({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||gL(),routes:e,mapRouteProperties:$t}).initialize()}(Xt((0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Ht,{exact:!0,path:"/enclaves",element:I((0,g.jsx)(mL,{enclaves:n,isLoading:l,handleDeleteClick:k}))}),(0,g.jsx)(Ht,{exact:!0,path:"/enclave/*",element:I((0,g.jsx)(TL,{addEnclave:O}))}),(0,g.jsx)(Ht,{path:"/enclaves/:name",element:I((0,g.jsx)(Ar,{enclaves:n}))}),(0,g.jsx)(Ht,{path:"/enclaves/:name/services/:uuid/*",element:I((0,g.jsx)(iT,{}))}),(0,g.jsx)(Ht,{path:"/enclaves/:name/files/:fileArtifactName",element:I((0,g.jsx)(lT,{enclaves:n}))}),(0,g.jsx)(Ht,{exact:!0,path:"/catalog/*",element:I((0,g.jsx)(Mj,{addEnclave:O}))}),(0,g.jsx)(Ht,{path:"/",element:I((0,g.jsx)(tn,{totalEnclaves:n.length}))})]})),{basename:x});return(0,g.jsxs)("div",{className:"h-screen flex flex-col bg-[#171923]",children:[(0,g.jsx)(y,{}),(0,g.jsx)("div",{className:"flex h-[calc(100vh-4rem)]",children:(0,g.jsx)(Vt,{router:N})})]})};function _L(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var OL=String.raw,IL=OL(wL||(wL=_L(["\n :root,\n :host {\n --chakra-vh: 100vh;\n }\n\n @supports (height: -webkit-fill-available) {\n :root,\n :host {\n --chakra-vh: -webkit-fill-available;\n }\n }\n\n @supports (height: -moz-fill-available) {\n :root,\n :host {\n --chakra-vh: -moz-fill-available;\n }\n }\n\n @supports (height: 100dvh) {\n :root,\n :host {\n --chakra-vh: 100dvh;\n }\n }\n"]))),NL=function(){return(0,g.jsx)(Nx,{styles:IL})},PL=function(e){var t=e.scope,n=void 0===t?"":t;return(0,g.jsx)(Nx,{styles:OL(xL||(xL=_L(['\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n margin: 0;\n font-feature-settings: "kern";\n }\n\n '," :where(*, *::before, *::after) {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n word-wrap: break-word;\n }\n\n main {\n display: block;\n }\n\n "," hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n "," :where(pre, code, kbd,samp) {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n "," a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n "," abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n "," :where(b, strong) {\n font-weight: bold;\n }\n\n "," small {\n font-size: 80%;\n }\n\n "," :where(sub,sup) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n "," sub {\n bottom: -0.25em;\n }\n\n "," sup {\n top: -0.5em;\n }\n\n "," img {\n border-style: none;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n "," :where(button, input) {\n overflow: visible;\n }\n\n "," :where(button, select) {\n text-transform: none;\n }\n\n ",' :where(\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner\n ) {\n border-style: none;\n padding: 0;\n }\n\n '," fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n "," legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n "," progress {\n vertical-align: baseline;\n }\n\n "," textarea {\n overflow: auto;\n }\n\n ",' :where([type="checkbox"], [type="radio"]) {\n box-sizing: border-box;\n padding: 0;\n }\n\n ',' input[type="number"]::-webkit-inner-spin-button,\n ',' input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n ',' input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ',' input[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n ',' input[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n '," ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n "," details {\n display: block;\n }\n\n "," summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n "," :where(\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre\n ) {\n margin: 0;\n }\n\n "," button {\n background: transparent;\n padding: 0;\n }\n\n "," fieldset {\n margin: 0;\n padding: 0;\n }\n\n "," :where(ol, ul) {\n margin: 0;\n padding: 0;\n }\n\n "," textarea {\n resize: vertical;\n }\n\n ",' :where(button, [role="button"]) {\n cursor: pointer;\n }\n\n '," button::-moz-focus-inner {\n border: 0 !important;\n }\n\n "," table {\n border-collapse: collapse;\n }\n\n "," :where(h1, h2, h3, h4, h5, h6) {\n font-size: inherit;\n font-weight: inherit;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n "," :where(img, svg, video, canvas, audio, iframe, embed, object) {\n display: block;\n }\n\n "," :where(img, video) {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible]\n :focus:not([data-focus-visible-added]):not(\n [data-focus-visible-disabled]\n ) {\n outline: none;\n box-shadow: none;\n }\n\n "," select::-ms-expand {\n display: none;\n }\n\n ","\n "])),n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,IL)})};function AL(e){var t=e.cssVarsRoot,n=e.theme,o=e.children,a=(0,r.useMemo)((function(){return ka(n)}),[n]);return(0,g.jsxs)(hs,{theme:a,children:[(0,g.jsx)(jL,{root:t}),o]})}function jL(e){var t=e.root,n=[void 0===t?":host, :root":t,"[data-theme]"].join(",");return(0,g.jsx)(Nx,{styles:function(e){return(0,l.Z)({},n,e.__cssVars)}})}var RL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.strict,n=void 0===t||t,o=e.errorMessage,a=void 0===o?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":o,i=e.name,s=(0,r.createContext)(void 0);return s.displayName=i,[s.Provider,function e(){var t,o=(0,r.useContext)(s);if(!o&&n){var i=new Error(a);throw i.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,i,e),i}return o},s]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),DL=(0,v.Z)(RL,2);DL[0],DL[1];function FL(){var e=La().colorMode;return(0,g.jsx)(Nx,{styles:function(t){var n=Za(Ma(t,"styles.global"),{theme:t,colorMode:e});if(n){var r=Ia(n)(t);return r}}})}var LL={light:"chakra-ui-light",dark:"chakra-ui-dark"};var ML="chakra-ui-color-mode";var BL=function(e){return{ssr:!1,type:"localStorage",get:function(t){if(!(null==globalThis?void 0:globalThis.document))return t;var n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set:function(t){try{localStorage.setItem(e,t)}catch(n){}}}}(ML);function zL(e,t){var n=e.match(new RegExp("(^| )".concat(t,"=([^;]+)")));return null==n?void 0:n[2]}function ZL(e,t){return{ssr:!!t,type:"cookie",get:function(n){return t?zL(t,e):(null==globalThis?void 0:globalThis.document)&&zL(document.cookie,e)||n},set:function(t){document.cookie="".concat(e,"=").concat(t,"; max-age=31536000; path=/")}}}ZL(ML);var UL=function(){};function VL(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function qL(e){var t=e.value,n=e.children,o=e.options,a=void 0===o?{}:o,i=a.useSystemColorMode,s=a.initialColorMode,u=a.disableTransitionOnChange,l=e.colorModeManager,c=void 0===l?BL:l,f="dark"===s?"dark":"light",d=(0,r.useState)((function(){return VL(c,f)})),p=(0,v.Z)(d,2),h=p[0],m=p[1],y=(0,r.useState)((function(){return VL(c)})),b=(0,v.Z)(y,2),k=b[0],w=b[1],x=(0,r.useMemo)((function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).preventTransition,t=void 0===e||e,n={setDataset:function(e){var r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName:function(e){document.body.classList.add(e?LL.dark:LL.light),document.body.classList.remove(e?LL.light:LL.dark)},query:function(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme:function(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener:function(e){var t=n.query(),r=function(t){e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(r):t.addEventListener("change",r),function(){"function"===typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition:function(){var e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),function(){window.getComputedStyle(document.body),requestAnimationFrame((function(){requestAnimationFrame((function(){document.head.removeChild(e)}))}))}}};return n}({preventTransition:u})}),[u]),S=x.getSystemTheme,T=x.setClassName,E=x.setDataset,C=x.addListener,_="system"!==s||h?h:k,O=(0,r.useCallback)((function(e){var t="system"===e?S():e;m(t),T("dark"===t),E(t),c.set(t)}),[c,S,T,E]);Ul((function(){"system"===s&&w(S())}),[]),(0,r.useEffect)((function(){var e=c.get();O(e||("system"!==s?f:"system"))}),[c,f,s,O]);var I=(0,r.useCallback)((function(){O("dark"===_?"light":"dark")}),[_,O]);(0,r.useEffect)((function(){if(i)return C(O)}),[i,C,O]);var N=(0,r.useMemo)((function(){return{colorMode:null!=t?t:_,toggleColorMode:t?UL:I,setColorMode:t?UL:O,forced:void 0!==t}}),[_,I,O,t]);return(0,g.jsx)(Fa.Provider,{value:N,children:n})}qL.displayName="ColorModeProvider";var HL=(0,r.createContext)({getDocument:function(){return document},getWindow:function(){return window}});function WL(e){var t=e.children,n=e.environment,o=e.disabled,a=(0,r.useRef)(null),i=(0,r.useMemo)((function(){return n||{getDocument:function(){var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument)?t:document},getWindow:function(){var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument.defaultView)?t:window}}}),[n]),s=!o||!n;return(0,g.jsxs)(HL.Provider,{value:i,children:[t,s&&(0,g.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}HL.displayName="EnvironmentContext",WL.displayName="EnvironmentProvider";var JL,GL,YL,XL,$L=function(e){var t=e.children,n=e.colorModeManager,r=e.portalZIndex,o=e.resetScope,a=e.resetCSS,i=void 0===a||a,s=e.theme,u=void 0===s?{}:s,l=e.environment,c=e.cssVarsRoot,f=e.disableEnvironment,d=e.disableGlobalStyle,p=(0,g.jsx)(WL,{environment:l,disabled:f,children:t});return(0,g.jsx)(AL,{theme:u,cssVarsRoot:c,children:(0,g.jsxs)(qL,{colorModeManager:n,options:u.config,children:[i?(0,g.jsx)(PL,{scope:o}):(0,g.jsx)(NL,{}),!d&&(0,g.jsx)(FL,{}),r?(0,g.jsx)(Zl,{zIndex:r,children:p}):p]})})},KL={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},QL={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},eM={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},tM={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},nM={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},rM={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},oM={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},aM={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},iM={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},sM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},uM=f(f(f({},sM),{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"}),{},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),lM=f(f({breakpoints:tM,zIndices:QL,radii:rM,blur:aM,colors:nM},iM),{},{sizes:uM,shadows:oM,space:sM,borders:eM,transition:KL}),cM=Na(["stepper","step","title","description","indicator","separator","icon","number"]),fM=cM.defineMultiStyleConfig,dM=cM.definePartsStyle,pM=Ho("stepper-indicator-size"),hM=Ho("stepper-icon-size"),mM=Ho("stepper-title-font-size"),vM=Ho("stepper-description-font-size"),gM=Ho("stepper-accent-color"),yM=dM((function(e){var t,n=e.colorScheme;return{stepper:(t={display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"}},(0,l.Z)(t,gM.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},gM.variable,"colors.".concat(n,".200"))),t),title:{fontSize:mM.reference,fontWeight:"medium"},description:{fontSize:vM.reference,color:"chakra-subtle-text"},number:{fontSize:mM.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:hM.reference,height:hM.reference},indicator:{flexShrink:0,borderRadius:"full",width:pM.reference,height:pM.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:gM.reference},"&[data-status=complete]":{bg:gM.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:gM.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:"calc(100% - ".concat(pM.reference," - 8px)"),top:"calc(".concat(pM.reference," + 4px)"),insetStart:"calc(".concat(pM.reference," / 2 - 1px)")}}}})),bM=fM({baseStyle:yM,sizes:{xs:dM({stepper:(JL={},(0,l.Z)(JL,pM.variable,"sizes.4"),(0,l.Z)(JL,hM.variable,"sizes.3"),(0,l.Z)(JL,mM.variable,"fontSizes.xs"),(0,l.Z)(JL,vM.variable,"fontSizes.xs"),JL)}),sm:dM({stepper:(GL={},(0,l.Z)(GL,pM.variable,"sizes.6"),(0,l.Z)(GL,hM.variable,"sizes.4"),(0,l.Z)(GL,mM.variable,"fontSizes.sm"),(0,l.Z)(GL,vM.variable,"fontSizes.xs"),GL)}),md:dM({stepper:(YL={},(0,l.Z)(YL,pM.variable,"sizes.8"),(0,l.Z)(YL,hM.variable,"sizes.5"),(0,l.Z)(YL,mM.variable,"fontSizes.md"),(0,l.Z)(YL,vM.variable,"fontSizes.sm"),YL)}),lg:dM({stepper:(XL={},(0,l.Z)(XL,pM.variable,"sizes.10"),(0,l.Z)(XL,hM.variable,"sizes.6"),(0,l.Z)(XL,mM.variable,"fontSizes.lg"),(0,l.Z)(XL,vM.variable,"fontSizes.md"),XL)})},defaultProps:{size:"md",colorScheme:"blue"}});function kM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;function r(t){var n=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),r="chakra-".concat(n);return{className:r,selector:".".concat(r),toString:function(){return t}}}return{parts:function(){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(var o=arguments.length,a=new Array(o),i=0;i1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function JM(e,t){return"var(".concat(WM(e)).concat(t?", ".concat(t):"",")")}function GM(e){return"--".concat(function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",WM(e)].filter(Boolean).join("-")}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:""))}function YM(e,t){var n=GM(e,null==t?void 0:t.prefix);return{variable:n,reference:JM(n,XM(null==t?void 0:t.fallback))}}function XM(e){return"string"===typeof e?e:null==e?void 0:e.reference}function $M(e){return Mr(e)&&e.reference?e.reference:String(e)}var KM,QM,eB,tB=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)%2341}(t)];if(!n)throw new PB(e);return"#".concat(n)}(e):e;var n=FB.exec(t);if(n){var r=Array.from(n).slice(1);return[].concat((0,i.Z)(r.slice(0,3).map((function(e){return parseInt(DB(e,2),16)}))),[parseInt(DB(r[3]||"f",2),16)/255])}var o=LB.exec(t);if(o){var a=Array.from(o).slice(1);return[].concat((0,i.Z)(a.slice(0,3).map((function(e){return parseInt(e,16)}))),[parseInt(a[3]||"ff",16)/255])}var s=MB.exec(t);if(s){var u=Array.from(s).slice(1);return[].concat((0,i.Z)(u.slice(0,3).map((function(e){return parseInt(e,10)}))),[parseFloat(u[3]||"1")])}var l=BB.exec(t);if(l){var c=Array.from(l).slice(1).map(parseFloat),f=(0,v.Z)(c,4),d=f[0],p=f[1],h=f[2],m=f[3];if(IB(0,100,p)!==p)throw new PB(e);if(IB(0,100,h)!==h)throw new PB(e);return[].concat((0,i.Z)(UB(d,p,h)),[Number.isNaN(m)?1:m])}throw new PB(e)}var jB=function(e){return parseInt(e.replace(/_/g,""),36)},RB="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((function(e,t){for(var n=jB(t.substring(0,3)),r=jB(t.substring(3)).toString(16),o="",a=0;a<6-r.length;a++)o+="0";return e[n]="".concat(o).concat(r),e}),{});var DB=function(e,t){return Array.from(Array(t)).map((function(){return e})).join("")},FB=new RegExp("^#".concat(DB("([a-f0-9])",3),"([a-f0-9])?$"),"i"),LB=new RegExp("^#".concat(DB("([a-f0-9]{2})",3),"([a-f0-9]{2})?$"),"i"),MB=new RegExp("^rgba?\\(\\s*(\\d+)\\s*".concat(DB(",\\s*(\\d+)\\s*",2),"(?:,\\s*([\\d.]+))?\\s*\\)$"),"i"),BB=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,zB=/^[a-z]+$/i,ZB=function(e){return Math.round(255*e)},UB=function(e,t,n){var r=n/100;if(0===t)return[r,r,r].map(ZB);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),i=a*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=a,u=i):o>=1&&o<2?(s=i,u=a):o>=2&&o<3?(u=a,l=i):o>=3&&o<4?(u=i,l=a):o>=4&&o<5?(s=i,l=a):o>=5&&o<6&&(s=a,l=i);var c=r-a/2;return[s+c,u+c,l+c].map(ZB)};function VB(e,t,n,r){return"rgba(".concat(IB(0,255,e).toFixed(),", ").concat(IB(0,255,t).toFixed(),", ").concat(IB(0,255,n).toFixed(),", ").concat(parseFloat(IB(0,1,r).toFixed(3)),")")}function qB(e,t){var n=AB(e),r=(0,v.Z)(n,4);return VB(r[0],r[1],r[2],r[3]-t)}var HB=function(e,t,n){var r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r0&&void 0!==arguments[0]?arguments[0]:"1rem",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(255, 255, 255, 0.15)";return{backgroundImage:"linear-gradient(\n 45deg,\n ".concat(t," 25%,\n transparent 25%,\n transparent 50%,\n ").concat(t," 50%,\n ").concat(t," 75%,\n transparent 75%,\n transparent\n )"),backgroundSize:"".concat(e," ").concat(e)}}function YB(e){var t,n="#".concat(Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0"));return e&&(t=e,0!==Object.keys(t).length)?e.string&&e.colors?function(e,t){var n=0;if(0===e.length)return t[0];for(var r=0;r>8*o&255).toString(16)).substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):n:n}var XB,$B,KB,QB,ez,tz,nz,rz,oz=Ho("tabs-color"),az=Ho("tabs-bg"),iz=Ho("tabs-border-color"),sz=Na(VM.keys),uz=sz.defineMultiStyleConfig,lz=sz.definePartsStyle,cz=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},fz=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},dz=function(e){var t=e.align,n=void 0===t?"start":t,r=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[n],flexDirection:"vertical"===r?"column":"row"}},pz={p:4},hz=lz((function(e){return{root:cz(e),tab:fz(e),tablist:dz(e),tabpanel:pz}})),mz={sm:lz({tab:{py:1,px:4,fontSize:"sm"}}),md:lz({tab:{fontSize:"md",py:2,px:4}}),lg:lz({tab:{fontSize:"lg",py:3,px:4}})},vz=lz((function(e){var t,n,r,o,a=e.colorScheme,i="vertical"===e.orientation,s=i?"borderStart":"borderBottom",u=i?"marginStart":"marginBottom";return{tablist:(t={},(0,l.Z)(t,s,"2px solid"),(0,l.Z)(t,"borderColor","inherit"),t),tab:(o={},(0,l.Z)(o,s,"2px solid"),(0,l.Z)(o,"borderColor","transparent"),(0,l.Z)(o,u,"-2px"),(0,l.Z)(o,"_selected",(n={},(0,l.Z)(n,oz.variable,"colors.".concat(a,".600")),(0,l.Z)(n,"_dark",(0,l.Z)({},oz.variable,"colors.".concat(a,".300"))),(0,l.Z)(n,"borderColor","currentColor"),n)),(0,l.Z)(o,"_active",(r={},(0,l.Z)(r,az.variable,"colors.gray.200"),(0,l.Z)(r,"_dark",(0,l.Z)({},az.variable,"colors.whiteAlpha.300")),r)),(0,l.Z)(o,"_disabled",{_active:{bg:"none"}}),(0,l.Z)(o,"color",oz.reference),(0,l.Z)(o,"bg",az.reference),o)}})),gz=lz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px"},(0,l.Z)(r,iz.variable,"transparent"),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,oz.variable,"colors.".concat(o,".600")),(0,l.Z)(n,iz.variable,"colors.white"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,oz.variable,"colors.".concat(o,".300")),(0,l.Z)(t,iz.variable,"colors.gray.800"),t)),(0,l.Z)(n,"borderColor","inherit"),(0,l.Z)(n,"borderBottomColor",iz.reference),n)),(0,l.Z)(r,"color",oz.reference),r),tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),yz=lz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={border:"1px solid",borderColor:"inherit"},(0,l.Z)(r,az.variable,"colors.gray.50"),(0,l.Z)(r,"_dark",(0,l.Z)({},az.variable,"colors.whiteAlpha.50")),(0,l.Z)(r,"mb","-1px"),(0,l.Z)(r,"_notLast",{marginEnd:"-1px"}),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,az.variable,"colors.white"),(0,l.Z)(n,oz.variable,"colors.".concat(o,".600")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,az.variable,"colors.gray.800"),(0,l.Z)(t,oz.variable,"colors.".concat(o,".300")),t)),(0,l.Z)(n,"borderColor","inherit"),(0,l.Z)(n,"borderTopColor","currentColor"),(0,l.Z)(n,"borderBottomColor","transparent"),n)),(0,l.Z)(r,"color",oz.reference),(0,l.Z)(r,"bg",az.reference),r),tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),bz=lz((function(e){var t=e.colorScheme,n=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:HB(n,"".concat(t,".700")),bg:HB(n,"".concat(t,".100"))}}}})),kz=uz({baseStyle:hz,sizes:mz,variants:{line:vz,enclosed:gz,"enclosed-colored":yz,"soft-rounded":bz,"solid-rounded":lz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={borderRadius:"full",fontWeight:"semibold"},(0,l.Z)(r,oz.variable,"colors.gray.600"),(0,l.Z)(r,"_dark",(0,l.Z)({},oz.variable,"inherit")),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,oz.variable,"colors.white"),(0,l.Z)(n,az.variable,"colors.".concat(o,".600")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,oz.variable,"colors.gray.800"),(0,l.Z)(t,az.variable,"colors.".concat(o,".300")),t)),n)),(0,l.Z)(r,"color",oz.reference),(0,l.Z)(r,"bg",az.reference),r)}})),unstyled:lz({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),wz=function(e,t){var n,r={},o=(0,R.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(Array.isArray(a)){var i=(0,v.Z)(a,2),s=i[0],u=i[1];r[s]=Ho("".concat(e,"-").concat(s),u)}else r[a]=Ho("".concat(e,"-").concat(a))}}catch(AW){o.e(AW)}finally{o.f()}return r}("badge",["bg","color","shadow"]),xz=function(e){var t,n,r=e.colorScheme,o=e.theme,a=JB("".concat(r,".500"),.6)(o);return n={},(0,l.Z)(n,wz.bg.variable,"colors.".concat(r,".500")),(0,l.Z)(n,wz.color.variable,"colors.white"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wz.bg.variable,a),(0,l.Z)(t,wz.color.variable,"colors.whiteAlpha.800"),t)),n},Sz=function(e){var t,n,r=e.colorScheme,o=e.theme,a=JB("".concat(r,".200"),.16)(o);return n={},(0,l.Z)(n,wz.bg.variable,"colors.".concat(r,".100")),(0,l.Z)(n,wz.color.variable,"colors.".concat(r,".800")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wz.bg.variable,a),(0,l.Z)(t,wz.color.variable,"colors.".concat(r,".200")),t)),n},Tz=function(e){var t,n=e.colorScheme,r=e.theme,o=JB("".concat(n,".200"),.8)(r);return t={},(0,l.Z)(t,wz.color.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},wz.color.variable,o)),(0,l.Z)(t,wz.shadow.variable,"inset 0 0 0px 1px ".concat(wz.color.reference)),t},Ez={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:wz.bg.reference,color:wz.color.reference,boxShadow:wz.shadow.reference},variants:{solid:xz,subtle:Sz,outline:Tz},defaultProps:{variant:"subtle",colorScheme:"gray"}},Cz=Na(qM.keys),_z=Cz.defineMultiStyleConfig,Oz=Cz.definePartsStyle,Iz=Ho("tag-bg"),Nz=Ho("tag-color"),Pz=Ho("tag-shadow"),Az=Ho("tag-min-height"),jz=Ho("tag-min-width"),Rz=Ho("tag-font-size"),Dz=Ho("tag-padding-inline"),Fz=Oz({container:(XB={fontWeight:"medium",lineHeight:1.2,outline:0},(0,l.Z)(XB,Nz.variable,wz.color.reference),(0,l.Z)(XB,Iz.variable,wz.bg.reference),(0,l.Z)(XB,Pz.variable,wz.shadow.reference),(0,l.Z)(XB,"color",Nz.reference),(0,l.Z)(XB,"bg",Iz.reference),(0,l.Z)(XB,"boxShadow",Pz.reference),(0,l.Z)(XB,"borderRadius","md"),(0,l.Z)(XB,"minH",Az.reference),(0,l.Z)(XB,"minW",jz.reference),(0,l.Z)(XB,"fontSize",Rz.reference),(0,l.Z)(XB,"px",Dz.reference),(0,l.Z)(XB,"_focusVisible",(0,l.Z)({},Pz.variable,"shadows.outline")),XB),label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Lz={sm:Oz({container:($B={},(0,l.Z)($B,Az.variable,"sizes.5"),(0,l.Z)($B,jz.variable,"sizes.5"),(0,l.Z)($B,Rz.variable,"fontSizes.xs"),(0,l.Z)($B,Dz.variable,"space.2"),$B),closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Oz({container:(KB={},(0,l.Z)(KB,Az.variable,"sizes.6"),(0,l.Z)(KB,jz.variable,"sizes.6"),(0,l.Z)(KB,Rz.variable,"fontSizes.sm"),(0,l.Z)(KB,Dz.variable,"space.2"),KB)}),lg:Oz({container:(QB={},(0,l.Z)(QB,Az.variable,"sizes.8"),(0,l.Z)(QB,jz.variable,"sizes.8"),(0,l.Z)(QB,Rz.variable,"fontSizes.md"),(0,l.Z)(QB,Dz.variable,"space.3"),QB)})},Mz={subtle:Oz((function(e){var t;return{container:null==(t=Ez.variants)?void 0:t.subtle(e)}})),solid:Oz((function(e){var t;return{container:null==(t=Ez.variants)?void 0:t.solid(e)}})),outline:Oz((function(e){var t;return{container:null==(t=Ez.variants)?void 0:t.outline(e)}}))},Bz=_z({variants:Mz,baseStyle:Fz,sizes:Lz,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),zz=Na(NM.keys),Zz=zz.definePartsStyle,Uz=zz.defineMultiStyleConfig,Vz=Ho("input-height"),qz=Ho("input-font-size"),Hz=Ho("input-padding"),Wz=Ho("input-border-radius"),Jz=Zz({addon:{height:Vz.reference,fontSize:qz.reference,px:Hz.reference,borderRadius:Wz.reference},field:{width:"100%",height:Vz.reference,fontSize:qz.reference,px:Hz.reference,borderRadius:Wz.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Gz={lg:(ez={},(0,l.Z)(ez,qz.variable,"fontSizes.lg"),(0,l.Z)(ez,Hz.variable,"space.4"),(0,l.Z)(ez,Wz.variable,"radii.md"),(0,l.Z)(ez,Vz.variable,"sizes.12"),ez),md:(tz={},(0,l.Z)(tz,qz.variable,"fontSizes.md"),(0,l.Z)(tz,Hz.variable,"space.4"),(0,l.Z)(tz,Wz.variable,"radii.md"),(0,l.Z)(tz,Vz.variable,"sizes.10"),tz),sm:(nz={},(0,l.Z)(nz,qz.variable,"fontSizes.sm"),(0,l.Z)(nz,Hz.variable,"space.3"),(0,l.Z)(nz,Wz.variable,"radii.sm"),(0,l.Z)(nz,Vz.variable,"sizes.8"),nz),xs:(rz={},(0,l.Z)(rz,qz.variable,"fontSizes.xs"),(0,l.Z)(rz,Hz.variable,"space.2"),(0,l.Z)(rz,Wz.variable,"radii.sm"),(0,l.Z)(rz,Vz.variable,"sizes.6"),rz)},Yz={lg:Zz({field:Gz.lg,group:Gz.lg}),md:Zz({field:Gz.md,group:Gz.md}),sm:Zz({field:Gz.sm,group:Gz.sm}),xs:Zz({field:Gz.xs,group:Gz.xs})};function Xz(e){var t=e.focusBorderColor,n=e.errorBorderColor;return{focusBorderColor:t||wB("blue.500","blue.300")(e),errorBorderColor:n||wB("red.500","red.300")(e)}}var $z,Kz,Qz,eZ,tZ,nZ,rZ,oZ,aZ,iZ,sZ,uZ,lZ,cZ=Zz((function(e){var t=e.theme,n=Xz(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:wB("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:HB(t,o),boxShadow:"0 0 0 1px ".concat(HB(t,o))},_focusVisible:{zIndex:1,borderColor:HB(t,r),boxShadow:"0 0 0 1px ".concat(HB(t,r))}},addon:{border:"1px solid",borderColor:wB("inherit","whiteAlpha.50")(e),bg:wB("gray.100","whiteAlpha.300")(e)}}})),fZ=Zz((function(e){var t=e.theme,n=Xz(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:wB("gray.100","whiteAlpha.50")(e),_hover:{bg:wB("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:HB(t,o)},_focusVisible:{bg:"transparent",borderColor:HB(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:wB("gray.100","whiteAlpha.50")(e)}}})),dZ=Zz((function(e){var t=e.theme,n=Xz(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:HB(t,o),boxShadow:"0px 1px 0px 0px ".concat(HB(t,o))},_focusVisible:{borderColor:HB(t,r),boxShadow:"0px 1px 0px 0px ".concat(HB(t,r))}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),pZ=Uz({baseStyle:Jz,sizes:Yz,variants:{outline:cZ,filled:fZ,flushed:dZ,unstyled:Zz({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),hZ=f(f({},null==($z=pZ.baseStyle)?void 0:$z.field),{},{paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),mZ={outline:function(e){var t,n;return null!=(n=null==(t=pZ.variants)?void 0:t.outline(e).field)?n:{}},flushed:function(e){var t,n;return null!=(n=null==(t=pZ.variants)?void 0:t.flushed(e).field)?n:{}},filled:function(e){var t,n;return null!=(n=null==(t=pZ.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(Qz=null==(Kz=pZ.variants)?void 0:Kz.unstyled.field)?Qz:{}},vZ={baseStyle:hZ,sizes:{xs:null!=(tZ=null==(eZ=pZ.sizes)?void 0:eZ.xs.field)?tZ:{},sm:null!=(rZ=null==(nZ=pZ.sizes)?void 0:nZ.sm.field)?rZ:{},md:null!=(aZ=null==(oZ=pZ.sizes)?void 0:oZ.md.field)?aZ:{},lg:null!=(sZ=null==(iZ=pZ.sizes)?void 0:iZ.lg.field)?sZ:{}},variants:mZ,defaultProps:{size:"md",variant:"outline"}},gZ=YM("tooltip-bg"),yZ=YM("tooltip-fg"),bZ=YM("popper-arrow-bg"),kZ={baseStyle:(lZ={bg:gZ.reference,color:yZ.reference},(0,l.Z)(lZ,gZ.variable,"colors.gray.700"),(0,l.Z)(lZ,yZ.variable,"colors.whiteAlpha.900"),(0,l.Z)(lZ,"_dark",(uZ={},(0,l.Z)(uZ,gZ.variable,"colors.gray.300"),(0,l.Z)(uZ,yZ.variable,"colors.gray.900"),uZ)),(0,l.Z)(lZ,bZ.variable,gZ.reference),(0,l.Z)(lZ,"px","2"),(0,l.Z)(lZ,"py","0.5"),(0,l.Z)(lZ,"borderRadius","sm"),(0,l.Z)(lZ,"fontWeight","medium"),(0,l.Z)(lZ,"fontSize","sm"),(0,l.Z)(lZ,"boxShadow","md"),(0,l.Z)(lZ,"maxW","xs"),(0,l.Z)(lZ,"zIndex","tooltip"),lZ)},wZ=Na(FM.keys),xZ=wZ.defineMultiStyleConfig,SZ=wZ.definePartsStyle,TZ=function(e){var t=e.colorScheme,n=e.theme,r=e.isIndeterminate,o=e.hasStripe,a=wB(GB(),GB("1rem","rgba(0,0,0,0.1)"))(e),i=wB("".concat(t,".500"),"".concat(t,".200"))(e),s="linear-gradient(\n to right,\n transparent 0%,\n ".concat(HB(n,i)," 50%,\n transparent 100%\n )");return f(f({},!r&&o&&a),r?{bgImage:s}:{bgColor:i})},EZ={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},CZ=function(e){return{bg:wB("gray.100","whiteAlpha.300")(e)}},_Z=function(e){return f({transitionProperty:"common",transitionDuration:"slow"},TZ(e))},OZ=SZ((function(e){return{label:EZ,filledTrack:_Z(e),track:CZ(e)}})),IZ=xZ({sizes:{xs:SZ({track:{h:"1"}}),sm:SZ({track:{h:"2"}}),md:SZ({track:{h:"3"}}),lg:SZ({track:{h:"4"}})},baseStyle:OZ,defaultProps:{size:"md",colorScheme:"blue"}});function NZ(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r option, > optgroup",{bg:gU.reference}),PZ)),icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:f(f({},null==(jZ=pZ.sizes)?void 0:jZ.lg),{},{field:f(f({},null==(RZ=pZ.sizes)?void 0:RZ.lg.field),yU)}),md:f(f({},null==(DZ=pZ.sizes)?void 0:DZ.md),{},{field:f(f({},null==(FZ=pZ.sizes)?void 0:FZ.md.field),yU)}),sm:f(f({},null==(LZ=pZ.sizes)?void 0:LZ.sm),{},{field:f(f({},null==(MZ=pZ.sizes)?void 0:MZ.sm.field),yU)}),xs:f(f({},null==(BZ=pZ.sizes)?void 0:BZ.xs),{},{field:f(f({},null==(zZ=pZ.sizes)?void 0:zZ.xs.field),yU),icon:{insetEnd:"1"}})},variants:pZ.variants,defaultProps:pZ.defaultProps}),kU=Ho("skeleton-start-color"),wU=Ho("skeleton-end-color"),xU={baseStyle:(UZ={},(0,l.Z)(UZ,kU.variable,"colors.gray.100"),(0,l.Z)(UZ,wU.variable,"colors.gray.400"),(0,l.Z)(UZ,"_dark",(ZZ={},(0,l.Z)(ZZ,kU.variable,"colors.gray.800"),(0,l.Z)(ZZ,wU.variable,"colors.gray.600"),ZZ)),(0,l.Z)(UZ,"background",kU.reference),(0,l.Z)(UZ,"borderColor",wU.reference),(0,l.Z)(UZ,"opacity",.7),(0,l.Z)(UZ,"borderRadius","sm"),UZ)},SU=Ho("skip-link-bg"),TU={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:(VZ={boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6"},(0,l.Z)(VZ,SU.variable,"colors.white"),(0,l.Z)(VZ,"_dark",(0,l.Z)({},SU.variable,"colors.gray.700")),(0,l.Z)(VZ,"bg",SU.reference),VZ)}},EU=Na(BM.keys),CU=EU.defineMultiStyleConfig,_U=EU.definePartsStyle,OU=Ho("slider-thumb-size"),IU=Ho("slider-track-size"),NU=Ho("slider-bg"),PU=function(e){return f({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},xB({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},AU=function(e){var t,n;return f(f({},xB({orientation:e.orientation,horizontal:{h:IU.reference},vertical:{w:IU.reference}})),{},(n={overflow:"hidden",borderRadius:"sm"},(0,l.Z)(n,NU.variable,"colors.gray.200"),(0,l.Z)(n,"_dark",(0,l.Z)({},NU.variable,"colors.whiteAlpha.200")),(0,l.Z)(n,"_disabled",(t={},(0,l.Z)(t,NU.variable,"colors.gray.300"),(0,l.Z)(t,"_dark",(0,l.Z)({},NU.variable,"colors.whiteAlpha.300")),t)),(0,l.Z)(n,"bg",NU.reference),n))},jU=function(e){return f(f({},xB({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})),{},{w:OU.reference,h:OU.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}})},RU=function(e){var t,n=e.colorScheme;return t={width:"inherit",height:"inherit"},(0,l.Z)(t,NU.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},NU.variable,"colors.".concat(n,".200"))),(0,l.Z)(t,"bg",NU.reference),t},DU=CU({baseStyle:_U((function(e){return{container:PU(e),track:AU(e),thumb:jU(e),filledTrack:RU(e)}})),sizes:{lg:_U({container:(qZ={},(0,l.Z)(qZ,OU.variable,"sizes.4"),(0,l.Z)(qZ,IU.variable,"sizes.1"),qZ)}),md:_U({container:(HZ={},(0,l.Z)(HZ,OU.variable,"sizes.3.5"),(0,l.Z)(HZ,IU.variable,"sizes.1"),HZ)}),sm:_U({container:(WZ={},(0,l.Z)(WZ,OU.variable,"sizes.2.5"),(0,l.Z)(WZ,IU.variable,"sizes.0.5"),WZ)})},defaultProps:{size:"md",colorScheme:"blue"}}),FU=YM("spinner-size"),LU={baseStyle:{width:[FU.reference],height:[FU.reference]},sizes:{xs:(0,l.Z)({},FU.variable,"sizes.3"),sm:(0,l.Z)({},FU.variable,"sizes.4"),md:(0,l.Z)({},FU.variable,"sizes.6"),lg:(0,l.Z)({},FU.variable,"sizes.8"),xl:(0,l.Z)({},FU.variable,"sizes.12")},defaultProps:{size:"md"}},MU=Na(zM.keys),BU=MU.defineMultiStyleConfig,zU=MU.definePartsStyle,ZU=BU({baseStyle:zU({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:zU({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),UU=Ho("kbd-bg"),VU={baseStyle:(JZ={},(0,l.Z)(JZ,UU.variable,"colors.gray.100"),(0,l.Z)(JZ,"_dark",(0,l.Z)({},UU.variable,"colors.whiteAlpha.100")),(0,l.Z)(JZ,"bg",UU.reference),(0,l.Z)(JZ,"borderRadius","md"),(0,l.Z)(JZ,"borderWidth","1px"),(0,l.Z)(JZ,"borderBottomWidth","3px"),(0,l.Z)(JZ,"fontSize","0.8em"),(0,l.Z)(JZ,"fontWeight","bold"),(0,l.Z)(JZ,"lineHeight","normal"),(0,l.Z)(JZ,"px","0.4em"),(0,l.Z)(JZ,"whiteSpace","nowrap"),JZ)},qU={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},HU=Na(PM.keys),WU=(0,HU.defineMultiStyleConfig)({baseStyle:(0,HU.definePartsStyle)({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),JU=Na(AM.keys),GU=JU.defineMultiStyleConfig,YU=JU.definePartsStyle,XU=Ho("menu-bg"),$U=Ho("menu-shadow"),KU=GU({baseStyle:YU({button:{transitionProperty:"common",transitionDuration:"normal"},list:(YZ={},(0,l.Z)(YZ,XU.variable,"#fff"),(0,l.Z)(YZ,$U.variable,"shadows.sm"),(0,l.Z)(YZ,"_dark",(GZ={},(0,l.Z)(GZ,XU.variable,"colors.gray.700"),(0,l.Z)(GZ,$U.variable,"shadows.dark-lg"),GZ)),(0,l.Z)(YZ,"color","inherit"),(0,l.Z)(YZ,"minW","3xs"),(0,l.Z)(YZ,"py","2"),(0,l.Z)(YZ,"zIndex",1),(0,l.Z)(YZ,"borderRadius","md"),(0,l.Z)(YZ,"borderWidth","1px"),(0,l.Z)(YZ,"bg",XU.reference),(0,l.Z)(YZ,"boxShadow",$U.reference),YZ),item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:(XZ={},(0,l.Z)(XZ,XU.variable,"colors.gray.100"),(0,l.Z)(XZ,"_dark",(0,l.Z)({},XU.variable,"colors.whiteAlpha.100")),XZ),_active:($Z={},(0,l.Z)($Z,XU.variable,"colors.gray.200"),(0,l.Z)($Z,"_dark",(0,l.Z)({},XU.variable,"colors.whiteAlpha.200")),$Z),_expanded:(KZ={},(0,l.Z)(KZ,XU.variable,"colors.gray.100"),(0,l.Z)(KZ,"_dark",(0,l.Z)({},XU.variable,"colors.whiteAlpha.100")),KZ),_disabled:{opacity:.4,cursor:"not-allowed"},bg:XU.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),QU=Na(jM.keys),eV=QU.defineMultiStyleConfig,tV=QU.definePartsStyle,nV=Ho("modal-bg"),rV=Ho("modal-shadow"),oV={bg:"blackAlpha.600",zIndex:"modal"},aV=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto",overscrollBehaviorY:"none"}},iV=function(e){var t,n,r=e.isCentered;return n={borderRadius:"md",color:"inherit",my:r?"auto":"16",mx:r?"auto":void 0,zIndex:"modal",maxH:"inside"===e.scrollBehavior?"calc(100% - 7.5rem)":void 0},(0,l.Z)(n,nV.variable,"colors.white"),(0,l.Z)(n,rV.variable,"shadows.lg"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,nV.variable,"colors.gray.700"),(0,l.Z)(t,rV.variable,"shadows.dark-lg"),t)),(0,l.Z)(n,"bg",nV.reference),(0,l.Z)(n,"boxShadow",rV.reference),n},sV={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},uV={position:"absolute",top:"2",insetEnd:"3"},lV=function(e){return{px:"6",py:"2",flex:"1",overflow:"inside"===e.scrollBehavior?"auto":void 0}},cV={px:"6",py:"4"};function fV(e){return tV("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var dV,pV,hV,mV,vV=eV({baseStyle:tV((function(e){return{overlay:oV,dialogContainer:NZ(aV,e),dialog:NZ(iV,e),header:sV,closeButton:uV,body:NZ(lV,e),footer:cV}})),sizes:{xs:fV("xs"),sm:fV("sm"),md:fV("md"),lg:fV("lg"),xl:fV("xl"),"2xl":fV("2xl"),"3xl":fV("3xl"),"4xl":fV("4xl"),"5xl":fV("5xl"),"6xl":fV("6xl"),full:fV("full")},defaultProps:{size:"md"}}),gV=Na(RM.keys),yV=gV.defineMultiStyleConfig,bV=gV.definePartsStyle,kV=YM("number-input-stepper-width"),wV=YM("number-input-input-padding"),xV=sB(kV).add("0.5rem").toString(),SV=YM("number-input-bg"),TV=YM("number-input-color"),EV=YM("number-input-border-color"),CV=(dV={},(0,l.Z)(dV,kV.variable,"sizes.6"),(0,l.Z)(dV,wV.variable,xV),dV),_V=function(e){var t,n;return null!=(n=null==(t=NZ(pZ.baseStyle,e))?void 0:t.field)?n:{}},OV={width:kV.reference},IV=(mV={borderStart:"1px solid",borderStartColor:EV.reference,color:TV.reference,bg:SV.reference},(0,l.Z)(mV,TV.variable,"colors.chakra-body-text"),(0,l.Z)(mV,EV.variable,"colors.chakra-border-color"),(0,l.Z)(mV,"_dark",(pV={},(0,l.Z)(pV,TV.variable,"colors.whiteAlpha.800"),(0,l.Z)(pV,EV.variable,"colors.whiteAlpha.300"),pV)),(0,l.Z)(mV,"_active",(hV={},(0,l.Z)(hV,SV.variable,"colors.gray.200"),(0,l.Z)(hV,"_dark",(0,l.Z)({},SV.variable,"colors.whiteAlpha.300")),hV)),(0,l.Z)(mV,"_disabled",{opacity:.4,cursor:"not-allowed"}),mV),NV=bV((function(e){var t;return{root:CV,field:null!=(t=NZ(_V,e))?t:{},stepperGroup:OV,stepper:IV}}));function PV(e){var t,n,r,o=null==(t=pZ.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=iM.fontSizes[i];return bV({field:f(f({},o.field),{},{paddingInlineEnd:wV.reference,verticalAlign:"top"}),stepper:{fontSize:sB(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var AV,jV,RV,DV,FV,LV=yV({baseStyle:NV,sizes:{xs:PV("xs"),sm:PV("sm"),md:PV("md"),lg:PV("lg")},variants:pZ.variants,defaultProps:pZ.defaultProps}),MV=f(f({},null==(AV=pZ.baseStyle)?void 0:AV.field),{},{textAlign:"center"}),BV={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},zV={outline:function(e){var t,n,r;return null!=(r=null==(n=NZ(null==(t=pZ.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:function(e){var t,n,r;return null!=(r=null==(n=NZ(null==(t=pZ.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:function(e){var t,n,r;return null!=(r=null==(n=NZ(null==(t=pZ.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(RV=null==(jV=pZ.variants)?void 0:jV.unstyled.field)?RV:{}},ZV={baseStyle:MV,sizes:BV,variants:zV,defaultProps:pZ.defaultProps},UV=Na(DM.keys),VV=UV.defineMultiStyleConfig,qV=UV.definePartsStyle,HV=YM("popper-bg"),WV=YM("popper-arrow-bg"),JV=YM("popper-arrow-shadow-color"),GV=VV({baseStyle:qV({popper:{zIndex:10},content:(FV={},(0,l.Z)(FV,HV.variable,"colors.white"),(0,l.Z)(FV,"bg",HV.reference),(0,l.Z)(FV,WV.variable,HV.reference),(0,l.Z)(FV,JV.variable,"colors.gray.200"),(0,l.Z)(FV,"_dark",(DV={},(0,l.Z)(DV,HV.variable,"colors.gray.700"),(0,l.Z)(DV,JV.variable,"colors.whiteAlpha.300"),DV)),(0,l.Z)(FV,"width","xs"),(0,l.Z)(FV,"border","1px solid"),(0,l.Z)(FV,"borderColor","inherit"),(0,l.Z)(FV,"borderRadius","md"),(0,l.Z)(FV,"boxShadow","sm"),(0,l.Z)(FV,"zIndex","inherit"),(0,l.Z)(FV,"_focusVisible",{outline:0,boxShadow:"outline"}),FV),header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),YV=Na(CM.keys),XV=YV.definePartsStyle,$V=YV.defineMultiStyleConfig,KV=Ho("drawer-bg"),QV=Ho("drawer-box-shadow");function eq(e){return XV("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var tq,nq,rq,oq,aq,iq,sq,uq,lq,cq,fq,dq,pq,hq,mq,vq,gq={bg:"blackAlpha.600",zIndex:"modal"},yq={display:"flex",zIndex:"modal",justifyContent:"center"},bq=function(e){var t,n;return f(f({},e.isFullHeight&&{height:"100vh"}),{},(n={zIndex:"modal",maxH:"100vh",color:"inherit"},(0,l.Z)(n,KV.variable,"colors.white"),(0,l.Z)(n,QV.variable,"shadows.lg"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,KV.variable,"colors.gray.700"),(0,l.Z)(t,QV.variable,"shadows.dark-lg"),t)),(0,l.Z)(n,"bg",KV.reference),(0,l.Z)(n,"boxShadow",QV.reference),n))},kq={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},wq={position:"absolute",top:"2",insetEnd:"3"},xq={px:"6",py:"2",flex:"1",overflow:"auto"},Sq={px:"6",py:"4"},Tq=$V({baseStyle:XV((function(e){return{overlay:gq,dialogContainer:yq,dialog:NZ(bq,e),header:kq,closeButton:wq,body:xq,footer:Sq}})),sizes:{xs:eq("xs"),sm:eq("md"),md:eq("lg"),lg:eq("2xl"),xl:eq("4xl"),full:eq("full")},defaultProps:{size:"xs"}}),Eq=Na(_M.keys),Cq=Eq.definePartsStyle,_q=(0,Eq.defineMultiStyleConfig)({baseStyle:Cq({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),Oq=Na(OM.keys),Iq=Oq.definePartsStyle,Nq=Oq.defineMultiStyleConfig,Pq=Ho("form-control-color"),Aq=Nq({baseStyle:Iq({container:{width:"100%",position:"relative"},requiredIndicator:(tq={marginStart:"1"},(0,l.Z)(tq,Pq.variable,"colors.red.500"),(0,l.Z)(tq,"_dark",(0,l.Z)({},Pq.variable,"colors.red.300")),(0,l.Z)(tq,"color",Pq.reference),tq),helperText:(nq={mt:"2"},(0,l.Z)(nq,Pq.variable,"colors.gray.600"),(0,l.Z)(nq,"_dark",(0,l.Z)({},Pq.variable,"colors.whiteAlpha.600")),(0,l.Z)(nq,"color",Pq.reference),(0,l.Z)(nq,"lineHeight","normal"),(0,l.Z)(nq,"fontSize","sm"),nq)})}),jq=Na(IM.keys),Rq=jq.definePartsStyle,Dq=jq.defineMultiStyleConfig,Fq=Ho("form-error-color"),Lq=Dq({baseStyle:Rq({text:(rq={},(0,l.Z)(rq,Fq.variable,"colors.red.500"),(0,l.Z)(rq,"_dark",(0,l.Z)({},Fq.variable,"colors.red.300")),(0,l.Z)(rq,"color",Fq.reference),(0,l.Z)(rq,"mt","2"),(0,l.Z)(rq,"fontSize","sm"),(0,l.Z)(rq,"lineHeight","normal"),rq),icon:(oq={marginEnd:"0.5em"},(0,l.Z)(oq,Fq.variable,"colors.red.500"),(0,l.Z)(oq,"_dark",(0,l.Z)({},Fq.variable,"colors.red.300")),(0,l.Z)(oq,"color",Fq.reference),oq)})}),Mq={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Bq={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},zq=Na(TM.keys),Zq=zq.defineMultiStyleConfig,Uq=zq.definePartsStyle,Vq=Ho("breadcrumb-link-decor"),qq=Zq({baseStyle:Uq({link:(aq={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Vq.reference},(0,l.Z)(aq,Vq.variable,"none"),(0,l.Z)(aq,"&:not([aria-current=page])",{cursor:"pointer",_hover:(0,l.Z)({},Vq.variable,"underline"),_focusVisible:{boxShadow:"outline"}}),aq)})}),Hq=function(e){var t=e.colorScheme,n=e.theme;if("gray"===t)return{color:wB("gray.800","whiteAlpha.900")(e),_hover:{bg:wB("gray.100","whiteAlpha.200")(e)},_active:{bg:wB("gray.200","whiteAlpha.300")(e)}};var r=JB("".concat(t,".200"),.12)(n),o=JB("".concat(t,".200"),.24)(n);return{color:wB("".concat(t,".600"),"".concat(t,".200"))(e),bg:"transparent",_hover:{bg:wB("".concat(t,".50"),r)(e)},_active:{bg:wB("".concat(t,".100"),o)(e)}}},Wq={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Jq=function(e){var t,n=e.colorScheme;if("gray"===n){var r=wB("gray.100","whiteAlpha.200")(e);return{bg:r,color:wB("gray.800","whiteAlpha.900")(e),_hover:{bg:wB("gray.200","whiteAlpha.300")(e),_disabled:{bg:r}},_active:{bg:wB("gray.300","whiteAlpha.400")(e)}}}var o=null!=(t=Wq[n])?t:{},a=o.bg,i=void 0===a?"".concat(n,".500"):a,s=o.color,u=void 0===s?"white":s,l=o.hoverBg,c=void 0===l?"".concat(n,".600"):l,f=o.activeBg,d=void 0===f?"".concat(n,".700"):f,p=wB(i,"".concat(n,".200"))(e);return{bg:p,color:wB(u,"gray.800")(e),_hover:{bg:wB(c,"".concat(n,".300"))(e),_disabled:{bg:p}},_active:{bg:wB(d,"".concat(n,".400"))(e)}}},Gq={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:Hq,outline:function(e){var t=e.colorScheme,n=wB("gray.200","whiteAlpha.300")(e);return f({border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"}},NZ(Hq,e))},solid:Jq,link:function(e){var t=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:wB("".concat(t,".500"),"".concat(t,".200"))(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:wB("".concat(t,".700"),"".concat(t,".500"))(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},Yq=Na(HM.keys),Xq=Yq.definePartsStyle,$q=Yq.defineMultiStyleConfig,Kq=Ho("card-bg"),Qq=Ho("card-padding"),eH=Ho("card-shadow"),tH=Ho("card-radius"),nH=Ho("card-border-width","0"),rH=Ho("card-border-color"),oH=Xq({container:(iq={},(0,l.Z)(iq,Kq.variable,"colors.chakra-body-bg"),(0,l.Z)(iq,"backgroundColor",Kq.reference),(0,l.Z)(iq,"boxShadow",eH.reference),(0,l.Z)(iq,"borderRadius",tH.reference),(0,l.Z)(iq,"color","chakra-body-text"),(0,l.Z)(iq,"borderWidth",nH.reference),(0,l.Z)(iq,"borderColor",rH.reference),iq),body:{padding:Qq.reference,flex:"1 1 0%"},header:{padding:Qq.reference},footer:{padding:Qq.reference}}),aH={sm:Xq({container:(sq={},(0,l.Z)(sq,tH.variable,"radii.base"),(0,l.Z)(sq,Qq.variable,"space.3"),sq)}),md:Xq({container:(uq={},(0,l.Z)(uq,tH.variable,"radii.md"),(0,l.Z)(uq,Qq.variable,"space.5"),uq)}),lg:Xq({container:(lq={},(0,l.Z)(lq,tH.variable,"radii.xl"),(0,l.Z)(lq,Qq.variable,"space.7"),lq)})},iH=$q({baseStyle:oH,variants:{elevated:Xq({container:(cq={},(0,l.Z)(cq,eH.variable,"shadows.base"),(0,l.Z)(cq,"_dark",(0,l.Z)({},Kq.variable,"colors.gray.700")),cq)}),outline:Xq({container:(fq={},(0,l.Z)(fq,nH.variable,"1px"),(0,l.Z)(fq,rH.variable,"colors.chakra-border-color"),fq)}),filled:Xq({container:(0,l.Z)({},Kq.variable,"colors.chakra-subtle-bg")}),unstyled:{body:(0,l.Z)({},Qq.variable,0),header:(0,l.Z)({},Qq.variable,0),footer:(0,l.Z)({},Qq.variable,0)}},sizes:aH,defaultProps:{variant:"elevated",size:"md"}}),sH=YM("close-button-size"),uH=YM("close-button-bg"),lH={baseStyle:{w:[sH.reference],h:[sH.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:(dq={},(0,l.Z)(dq,uH.variable,"colors.blackAlpha.100"),(0,l.Z)(dq,"_dark",(0,l.Z)({},uH.variable,"colors.whiteAlpha.100")),dq),_active:(pq={},(0,l.Z)(pq,uH.variable,"colors.blackAlpha.200"),(0,l.Z)(pq,"_dark",(0,l.Z)({},uH.variable,"colors.whiteAlpha.200")),pq),_focusVisible:{boxShadow:"outline"},bg:uH.reference},sizes:{lg:(hq={},(0,l.Z)(hq,sH.variable,"sizes.10"),(0,l.Z)(hq,"fontSize","md"),hq),md:(mq={},(0,l.Z)(mq,sH.variable,"sizes.8"),(0,l.Z)(mq,"fontSize","xs"),mq),sm:(vq={},(0,l.Z)(vq,sH.variable,"sizes.6"),(0,l.Z)(vq,"fontSize","2xs"),vq)},defaultProps:{size:"md"}},cH=Ez.variants,fH=Ez.defaultProps,dH={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:wz.bg.reference,color:wz.color.reference,boxShadow:wz.shadow.reference},variants:cH,defaultProps:fH},pH={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},hH={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},mH=Na(wM.keys),vH=mH.definePartsStyle,gH=(0,mH.defineMultiStyleConfig)({baseStyle:vH({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),yH=Na(xM.keys),bH=yH.definePartsStyle,kH=yH.defineMultiStyleConfig,wH=Ho("alert-fg"),xH=Ho("alert-bg"),SH=bH({container:{bg:xH.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:wH.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:wH.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function TH(e){var t=e.theme,n=e.colorScheme,r=JB("".concat(n,".200"),.16)(t);return{light:"colors.".concat(n,".100"),dark:r}}var EH,CH,_H=bH((function(e){var t,n,r=e.colorScheme,o=TH(e);return{container:(n={},(0,l.Z)(n,wH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,xH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,xH.variable,o.dark),t)),n)}})),OH=bH((function(e){var t,n,r=e.colorScheme,o=TH(e);return{container:(n={},(0,l.Z)(n,wH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,xH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,xH.variable,o.dark),t)),(0,l.Z)(n,"paddingStart","3"),(0,l.Z)(n,"borderStartWidth","4px"),(0,l.Z)(n,"borderStartColor",wH.reference),n)}})),IH=bH((function(e){var t,n,r=e.colorScheme,o=TH(e);return{container:(n={},(0,l.Z)(n,wH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,xH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,xH.variable,o.dark),t)),(0,l.Z)(n,"pt","2"),(0,l.Z)(n,"borderTopWidth","4px"),(0,l.Z)(n,"borderTopColor",wH.reference),n)}})),NH=bH((function(e){var t,n,r=e.colorScheme;return{container:(n={},(0,l.Z)(n,wH.variable,"colors.white"),(0,l.Z)(n,xH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,wH.variable,"colors.gray.900"),(0,l.Z)(t,xH.variable,"colors.".concat(r,".200")),t)),(0,l.Z)(n,"color",wH.reference),n)}})),PH=kH({baseStyle:SH,variants:{subtle:_H,"left-accent":OH,"top-accent":IH,solid:NH},defaultProps:{variant:"subtle",colorScheme:"blue"}}),AH=Na(SM.keys),jH=AH.definePartsStyle,RH=AH.defineMultiStyleConfig,DH=Ho("avatar-border-color"),FH=Ho("avatar-bg"),LH=Ho("avatar-font-size"),MH=Ho("avatar-size"),BH=(EH={borderRadius:"full",border:"0.2em solid",borderColor:DH.reference},(0,l.Z)(EH,DH.variable,"white"),(0,l.Z)(EH,"_dark",(0,l.Z)({},DH.variable,"colors.gray.800")),EH),zH=(CH={bg:FH.reference,fontSize:LH.reference,width:MH.reference,height:MH.reference,lineHeight:"1"},(0,l.Z)(CH,FH.variable,"colors.gray.200"),(0,l.Z)(CH,"_dark",(0,l.Z)({},FH.variable,"colors.whiteAlpha.400")),CH),ZH=function(e){var t,n=e.name,r=e.theme,o=n?YB({string:n}):"colors.gray.400",a=function(e){return function(t){return"dark"===WB(e)(t)}}(o)(r),i="white";return a||(i="gray.800"),t={bg:FH.reference,fontSize:LH.reference,color:i,borderColor:DH.reference,verticalAlign:"top",width:MH.reference,height:MH.reference,"&:not([data-loaded])":(0,l.Z)({},FH.variable,o)},(0,l.Z)(t,DH.variable,"colors.white"),(0,l.Z)(t,"_dark",(0,l.Z)({},DH.variable,"colors.gray.800")),t},UH={fontSize:LH.reference,lineHeight:"1"};function VH(e){var t,n,r="100%"!==e?uM[e]:void 0;return jH({container:(t={},(0,l.Z)(t,MH.variable,null!=r?r:e),(0,l.Z)(t,LH.variable,"calc(".concat(null!=r?r:e," / 2.5)")),t),excessLabel:(n={},(0,l.Z)(n,MH.variable,null!=r?r:e),(0,l.Z)(n,LH.variable,"calc(".concat(null!=r?r:e," / 2.5)")),n)})}var qH={Accordion:gH,Alert:PH,Avatar:RH({baseStyle:jH((function(e){return{badge:NZ(BH,e),excessLabel:NZ(zH,e),container:NZ(ZH,e),label:UH}})),sizes:{"2xs":VH(4),xs:VH(6),sm:VH(8),md:VH(12),lg:VH(16),xl:VH(24),"2xl":VH(32),full:VH("100%")},defaultProps:{size:"md"}}),Badge:Ez,Breadcrumb:qq,Button:Gq,Checkbox:sU,CloseButton:lH,Code:dH,Container:pH,Divider:hH,Drawer:Tq,Editable:_q,Form:Aq,FormError:Lq,FormLabel:Mq,Heading:Bq,Input:pZ,Kbd:VU,Link:qU,List:WU,Menu:KU,Modal:vV,NumberInput:LV,PinInput:ZV,Popover:GV,Progress:IZ,Radio:pU,Select:bU,Skeleton:xU,SkipLink:TU,Slider:DU,Spinner:LU,Stat:ZU,Switch:kB,Table:OB,Tabs:kz,Tag:Bz,Textarea:vZ,Tooltip:kZ,Card:iH,Stepper:bM},HH={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},WH={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},JH={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},GH=f(f({semanticTokens:HH,direction:"ltr"},lM),{},{components:qH,styles:WH,config:JH}),YH=f(f({semanticTokens:HH,direction:"ltr",components:{}},lM),{},{styles:WH,config:JH}),XH=function(e,t){return e.find((function(e){return e.id===t}))};function $H(e,t){var n=KH(e,t);return{position:n,index:n?e[n].findIndex((function(e){return e.id===t})):-1}}function KH(e,t){for(var n=0,r=Object.entries(e);n